@tap-payments/os-micro-frontend-shared 0.0.311-test.1 → 0.0.311-test.1-test.51

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.
Files changed (151) hide show
  1. package/build/components/JSONViewer/JSONViewer.js +1 -1
  2. package/build/components/MultiSelectDropdownButton/MultiSelectDropdownButton.js +1 -1
  3. package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/SheetViewVirtualTable.d.ts +1 -1
  4. package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/SheetViewVirtualTable.js +5 -5
  5. package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableHeader/TableCell.js +2 -2
  6. package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableHeader/type.d.ts +1 -1
  7. package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableNoData.js +1 -1
  8. package/build/components/{VirtualTable → VirtualTables/VirtualTable}/VirtualTable.d.ts +2 -2
  9. package/build/components/{VirtualTable → VirtualTables/VirtualTable}/VirtualTable.js +11 -11
  10. package/build/components/{VirtualTable → VirtualTables/VirtualTableWithCard}/VirtualTableWithCard.d.ts +2 -2
  11. package/build/components/{VirtualTable → VirtualTables/VirtualTableWithCard}/VirtualTableWithCard.js +7 -7
  12. package/build/components/{VirtualTable → VirtualTables}/components/TableHeader/components/TableCell/TableCell.d.ts +1 -1
  13. package/build/components/{VirtualTable → VirtualTables}/components/TableHeader/components/TableCell/TableCell.js +3 -3
  14. package/build/components/{VirtualTable → VirtualTables}/components/TableLoadingWithCard.d.ts +2 -3
  15. package/build/components/{VirtualTable → VirtualTables}/components/TableNoData.js +1 -1
  16. package/build/components/{VirtualTable → VirtualTables}/components/TableNoDataWithCard.d.ts +3 -4
  17. package/build/components/{VirtualTable → VirtualTables}/components/TableNoDataWithCard.js +1 -1
  18. package/build/components/{VirtualTable → VirtualTables}/components/TableRow.js +1 -1
  19. package/build/components/{VirtualTable → VirtualTables}/components/TableRowLoadingWithCard.d.ts +2 -3
  20. package/build/components/{VirtualTable → VirtualTables}/components/TableRowWithCard.d.ts +2 -3
  21. package/build/components/{VirtualTable → VirtualTables}/components/TableRowWithCard.js +1 -1
  22. package/build/components/{VirtualTable → VirtualTables/components}/style.d.ts +1 -0
  23. package/build/components/{VirtualTable → VirtualTables/components}/style.js +6 -5
  24. package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/ListItemWrapper.js +2 -2
  25. package/build/components/VirtualTables/index.d.ts +6 -0
  26. package/build/components/VirtualTables/index.js +6 -0
  27. package/build/components/index.d.ts +2 -2
  28. package/build/components/index.js +2 -2
  29. package/build/types/apps.d.ts +1 -0
  30. package/build/types/table.d.ts +2 -1
  31. package/package.json +2 -2
  32. package/build/components/VirtualTable/index.d.ts +0 -6
  33. package/build/components/VirtualTable/index.js +0 -6
  34. package/build/playground/VTDemo.d.ts +0 -1
  35. package/build/playground/VTDemo.js +0 -58
  36. package/build/playground/index.d.ts +0 -1
  37. package/build/playground/index.js +0 -1
  38. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableHeader/SheetViewTableHeader.d.ts +0 -0
  39. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableHeader/SheetViewTableHeader.js +0 -0
  40. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableHeader/TableCell.d.ts +0 -0
  41. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableHeader/index.d.ts +0 -0
  42. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableHeader/index.js +0 -0
  43. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableHeader/type.js +0 -0
  44. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableLoading.d.ts +0 -0
  45. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableLoading.js +0 -0
  46. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableNoData.d.ts +0 -0
  47. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableRowLoading.d.ts +0 -0
  48. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableRowLoading.js +0 -0
  49. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/index.d.ts +0 -0
  50. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/index.js +0 -0
  51. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/hooks/usePinnedColumns.d.ts +0 -0
  52. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/hooks/usePinnedColumns.js +0 -0
  53. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/hooks/useSynchronizedScroll.d.ts +0 -0
  54. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/hooks/useSynchronizedScroll.js +0 -0
  55. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/index.d.ts +0 -0
  56. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/index.js +0 -0
  57. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/style.d.ts +0 -0
  58. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/style.js +0 -0
  59. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/ColumnFilter.d.ts +0 -0
  60. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/ColumnFilter.js +0 -0
  61. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/Inputs/Inputs.d.ts +0 -0
  62. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/Inputs/Inputs.js +0 -0
  63. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/Inputs/index.d.ts +0 -0
  64. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/Inputs/index.js +0 -0
  65. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/Inputs/style.d.ts +0 -0
  66. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/Inputs/style.js +0 -0
  67. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/List/List.d.ts +0 -0
  68. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/List/List.js +0 -0
  69. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/List/index.d.ts +0 -0
  70. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/List/index.js +0 -0
  71. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/index.d.ts +0 -0
  72. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/index.js +0 -0
  73. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/style.d.ts +0 -0
  74. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/style.js +0 -0
  75. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/type.d.ts +0 -0
  76. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/type.js +0 -0
  77. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnSort/ColumnSort.d.ts +0 -0
  78. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnSort/ColumnSort.js +0 -0
  79. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnSort/index.d.ts +0 -0
  80. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnSort/index.js +0 -0
  81. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnSort/style.d.ts +0 -0
  82. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnSort/style.js +0 -0
  83. /package/build/components/{VirtualTable → VirtualTables}/components/EmptyList/EmptyList.d.ts +0 -0
  84. /package/build/components/{VirtualTable → VirtualTables}/components/EmptyList/EmptyList.js +0 -0
  85. /package/build/components/{VirtualTable → VirtualTables}/components/EmptyList/index.d.ts +0 -0
  86. /package/build/components/{VirtualTable → VirtualTables}/components/EmptyList/index.js +0 -0
  87. /package/build/components/{VirtualTable → VirtualTables}/components/EmptyList/styles.d.ts +0 -0
  88. /package/build/components/{VirtualTable → VirtualTables}/components/EmptyList/styles.js +0 -0
  89. /package/build/components/{VirtualTable → VirtualTables}/components/ErrorList/ErrorList.d.ts +0 -0
  90. /package/build/components/{VirtualTable → VirtualTables}/components/ErrorList/ErrorList.js +0 -0
  91. /package/build/components/{VirtualTable → VirtualTables}/components/ErrorList/index.d.ts +0 -0
  92. /package/build/components/{VirtualTable → VirtualTables}/components/ErrorList/index.js +0 -0
  93. /package/build/components/{VirtualTable → VirtualTables}/components/ErrorList/styles.d.ts +0 -0
  94. /package/build/components/{VirtualTable → VirtualTables}/components/ErrorList/styles.js +0 -0
  95. /package/build/components/{VirtualTable → VirtualTables}/components/RowErrorState.d.ts +0 -0
  96. /package/build/components/{VirtualTable → VirtualTables}/components/RowErrorState.js +0 -0
  97. /package/build/components/{VirtualTable → VirtualTables}/components/TableError.d.ts +0 -0
  98. /package/build/components/{VirtualTable → VirtualTables}/components/TableError.js +0 -0
  99. /package/build/components/{VirtualTable → VirtualTables}/components/TableFooter/TableFooter.d.ts +0 -0
  100. /package/build/components/{VirtualTable → VirtualTables}/components/TableFooter/TableFooter.js +0 -0
  101. /package/build/components/{VirtualTable → VirtualTables}/components/TableFooter/index.d.ts +0 -0
  102. /package/build/components/{VirtualTable → VirtualTables}/components/TableFooter/index.js +0 -0
  103. /package/build/components/{VirtualTable → VirtualTables}/components/TableFooter/style.d.ts +0 -0
  104. /package/build/components/{VirtualTable → VirtualTables}/components/TableFooter/style.js +0 -0
  105. /package/build/components/{VirtualTable → VirtualTables}/components/TableHeader/TableHeader.d.ts +0 -0
  106. /package/build/components/{VirtualTable → VirtualTables}/components/TableHeader/TableHeader.js +0 -0
  107. /package/build/components/{VirtualTable → VirtualTables}/components/TableHeader/components/TableCell/index.d.ts +0 -0
  108. /package/build/components/{VirtualTable → VirtualTables}/components/TableHeader/components/TableCell/index.js +0 -0
  109. /package/build/components/{VirtualTable → VirtualTables}/components/TableHeader/components/index.d.ts +0 -0
  110. /package/build/components/{VirtualTable → VirtualTables}/components/TableHeader/components/index.js +0 -0
  111. /package/build/components/{VirtualTable → VirtualTables}/components/TableHeader/constant.d.ts +0 -0
  112. /package/build/components/{VirtualTable → VirtualTables}/components/TableHeader/constant.js +0 -0
  113. /package/build/components/{VirtualTable → VirtualTables}/components/TableHeader/index.d.ts +0 -0
  114. /package/build/components/{VirtualTable → VirtualTables}/components/TableHeader/index.js +0 -0
  115. /package/build/components/{VirtualTable → VirtualTables}/components/TableHeader/style.d.ts +0 -0
  116. /package/build/components/{VirtualTable → VirtualTables}/components/TableHeader/style.js +0 -0
  117. /package/build/components/{VirtualTable → VirtualTables}/components/TableHeader/type.d.ts +0 -0
  118. /package/build/components/{VirtualTable → VirtualTables}/components/TableHeader/type.js +0 -0
  119. /package/build/components/{VirtualTable → VirtualTables}/components/TableLastItem.d.ts +0 -0
  120. /package/build/components/{VirtualTable → VirtualTables}/components/TableLastItem.js +0 -0
  121. /package/build/components/{VirtualTable → VirtualTables}/components/TableLoading.d.ts +0 -0
  122. /package/build/components/{VirtualTable → VirtualTables}/components/TableLoading.js +0 -0
  123. /package/build/components/{VirtualTable → VirtualTables}/components/TableLoadingWithCard.js +0 -0
  124. /package/build/components/{VirtualTable → VirtualTables}/components/TableNoData.d.ts +0 -0
  125. /package/build/components/{VirtualTable → VirtualTables}/components/TableRow.d.ts +0 -0
  126. /package/build/components/{VirtualTable → VirtualTables}/components/TableRowLoading.d.ts +0 -0
  127. /package/build/components/{VirtualTable → VirtualTables}/components/TableRowLoading.js +0 -0
  128. /package/build/components/{VirtualTable → VirtualTables}/components/TableRowLoadingWithCard.js +0 -0
  129. /package/build/components/{VirtualTable → VirtualTables}/components/index.d.ts +0 -0
  130. /package/build/components/{VirtualTable → VirtualTables}/components/index.js +0 -0
  131. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/ListItemWrapper.d.ts +0 -0
  132. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/ListItemWrapperWithCard.d.ts +0 -0
  133. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/ListItemWrapperWithCard.js +0 -0
  134. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/VirtualScrollInner.d.ts +0 -0
  135. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/VirtualScrollInner.js +0 -0
  136. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/VirtualScrollList.d.ts +0 -0
  137. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/VirtualScrollList.js +0 -0
  138. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/VirtualScrollOuter.d.ts +0 -0
  139. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/VirtualScrollOuter.js +0 -0
  140. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/index.d.ts +0 -0
  141. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/index.js +0 -0
  142. /package/build/components/{VirtualTable → VirtualTables}/context/Provider.d.ts +0 -0
  143. /package/build/components/{VirtualTable → VirtualTables}/context/Provider.js +0 -0
  144. /package/build/components/{VirtualTable → VirtualTables}/context/context.d.ts +0 -0
  145. /package/build/components/{VirtualTable → VirtualTables}/context/context.js +0 -0
  146. /package/build/components/{VirtualTable → VirtualTables}/context/index.d.ts +0 -0
  147. /package/build/components/{VirtualTable → VirtualTables}/context/index.js +0 -0
  148. /package/build/components/{VirtualTable → VirtualTables}/hooks/useScrollBackShadow.d.ts +0 -0
  149. /package/build/components/{VirtualTable → VirtualTables}/hooks/useScrollBackShadow.js +0 -0
  150. /package/build/components/{VirtualTable → VirtualTables}/utils/getSelectionStyles.d.ts +0 -0
  151. /package/build/components/{VirtualTable → VirtualTables}/utils/getSelectionStyles.js +0 -0
@@ -11,7 +11,7 @@ import { isSafariBrowser } from '../../utils/index.js';
11
11
  import AnimatedButton from './components/FooterButton';
12
12
  import JSONTitleBar from './components/JSONTitleBar';
13
13
  import { ButtonsWrapper, FooterWrapper, JSONContainer, JSONViewerWrapper, SectionWrapper, StyledCopyButton, StyledHeaderWrapper, StyledTitle, jsonTheme, requestJsonTheme, TITLE_BAR_HEIGHT, VIEWER_HEIGHT, FOOTER_HEIGHT, } from './style';
14
- import TableFooter from '../VirtualTable/components/TableFooter';
14
+ import TableFooter from '../VirtualTables/components/TableFooter';
15
15
  const VIEWER_WIDTH = 400;
16
16
  const animationDuration = 0.5;
17
17
  export default function JSONViewer({ index, json, requestJson = {}, isWindowMinimized, windowOrder, onClose }) {
@@ -4,7 +4,7 @@ import { Popper } from '@mui/material';
4
4
  import { ButtonLabel } from './style';
5
5
  import CustomBackdrop from '../CustomBackdrop';
6
6
  import StatusButton from '../StatusButton';
7
- import ListColumnFilter from '../VirtualTable/components/ColumnFilter/List';
7
+ import ListColumnFilter from '../VirtualTables/components/ColumnFilter/List';
8
8
  import { downArrowIcon } from '../../constants/index.js';
9
9
  function MultiSelectDropdownButton({ buttonLabel, onClear, onConfirm, dropdownItems, apiKey, data, styles, buttonDisabled, }) {
10
10
  const [anchorEl, setAnchorEl] = useState(null);
@@ -5,6 +5,6 @@ interface ISheetViewVirtualTable extends Omit<IVirtualTable, 'isSheetView'> {
5
5
  isPinnable?: boolean;
6
6
  clearBackdropVisibilityTimeout?: number;
7
7
  }
8
- declare function SheetViewVirtualTable({ columns, rows, threshold, showHeader, headerProps, rowProps, footerProps, rowHeight, isLoading, error, columnsSorting, onColumnSort, loadMoreItems, isFetchingNextPage, triggerDataRefetch, scrollToIndex, areAllRowsLoaded, tableBodyStyles, tableTitle, dragControls, onColumnPin, clearBackdropVisibilityTimeout, isPinnable, tableMode, }: Readonly<ISheetViewVirtualTable>): import("react/jsx-runtime").JSX.Element;
8
+ declare function SheetViewVirtualTable({ columns, rows, threshold, showHeader, headerProps, rowProps, footerProps, rowHeight, isLoading, error, columnsSorting, onColumnSort, loadMoreItems, isFetchingNextPage, triggerDataRefetch, scrollToIndex, showBackgroundColor, areAllRowsLoaded, tableBodyStyles, tableTitle, dragControls, onColumnPin, clearBackdropVisibilityTimeout, isPinnable, tableMode, }: Readonly<ISheetViewVirtualTable>): import("react/jsx-runtime").JSX.Element;
9
9
  declare const _default: import("react").MemoExoticComponent<typeof SheetViewVirtualTable>;
10
10
  export default _default;
@@ -20,7 +20,7 @@ import TableFooter from '../components/TableFooter/TableFooter';
20
20
  import TableNoData from '../components/TableNoData';
21
21
  import { SheetViewTableNoData } from './components';
22
22
  import ListItemWrapper from '../components/virtualScroll/ListItemWrapper';
23
- import { StyledBox, StyledTableBox, StyledVirtualList, TableContainer, TableWrapper } from '../style';
23
+ import { StyledBox, StyledTableBox, StyledVirtualList, TableContainer, TableWrapper } from '../components/style';
24
24
  import { SheetViewVirtualTableWrapper, PinnedStartColumnWrapper, PinnedEndColumnWrapper, MainTableWrapper, UnpinnedTableHeaderWrapper } from './style';
25
25
  import SheetViewTableHeader from './components/SheetViewTableHeader';
26
26
  import { usePinnedColumns } from './hooks/usePinnedColumns';
@@ -45,7 +45,7 @@ const createItemData = memoize((columns, isLoading, rows, rowProps, scrollToInde
45
45
  containerHeight,
46
46
  rowHeight,
47
47
  }));
48
- function SheetViewVirtualTable({ columns, rows, threshold = TABLE_THRESHOLD, showHeader, headerProps, rowProps, footerProps, rowHeight = 28, isLoading, error, columnsSorting, onColumnSort, loadMoreItems, isFetchingNextPage, triggerDataRefetch, scrollToIndex, areAllRowsLoaded = false, tableBodyStyles, tableTitle, dragControls, onColumnPin, clearBackdropVisibilityTimeout = 100, isPinnable = false, tableMode, }) {
48
+ function SheetViewVirtualTable({ columns, rows, threshold = TABLE_THRESHOLD, showHeader, headerProps, rowProps, footerProps, rowHeight = 28, isLoading, error, columnsSorting, onColumnSort, loadMoreItems, isFetchingNextPage, triggerDataRefetch, scrollToIndex, showBackgroundColor, areAllRowsLoaded = false, tableBodyStyles, tableTitle, dragControls, onColumnPin, clearBackdropVisibilityTimeout = 100, isPinnable = false, tableMode, }) {
49
49
  const theme = useTheme();
50
50
  const { pinnedStartColumns, pinnedEndColumns, handleColumnPin, pinnedStartColumnsData, pinnedEndColumnsData, unpinnedColumnsData, orderedColumns, lastColumnId, } = usePinnedColumns(columns, isPinnable, onColumnPin);
51
51
  const { pinnedStartVirtualListRef, scrollableVirtualListRef, pinnedEndVirtualListRef, handleScroll } = useSynchronizedScroll();
@@ -166,13 +166,13 @@ function SheetViewVirtualTable({ columns, rows, threshold = TABLE_THRESHOLD, sho
166
166
  const containerKey = position === 'start' ? 'pinnedStart' : 'pinnedEnd';
167
167
  if (columnsData.length === 0)
168
168
  return null;
169
- return (_jsx(Wrapper, { children: _jsxs(StyledTableBox, Object.assign({ as: "main", id: "sheet-table-box-container", "aria-labelledby": "sheet-table-box-container", "data-testid": "SheetViewVirtualTable_StyledTableBox", "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-table-mode": tableMode, height: "100%", dir: theme.direction, showNoDataView: showNoDataView }, { children: [showHeader && (_jsx(SheetViewTableHeader, { "data-testid": "SheetViewVirtualTable_PinnedTableHeader", columnsSorting: columnsSorting, onColumnSort: onColumnSort, columns: columnsData, headerProps: headerProps, showBackDrop: showBackDrop, pinnedColumns: pinnedColumnsList, onColumnPin: handleColumnPin, isPinnable: isPinnable, lastColumnId: lastColumnId, selectedColumn: selectedColumn, onColumnClick: handleColumnClick })), _jsx(TableWrapper, Object.assign({ "data-testid": "VirtualTable_TableWrapper", sx: {
169
+ return (_jsx(Wrapper, { children: _jsxs(StyledTableBox, Object.assign({ as: "main", id: "sheet-table-box-container", "aria-labelledby": "sheet-table-box-container", "data-testid": "SheetViewVirtualTable_StyledTableBox", "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: "100%", dir: theme.direction, showBackgroundColor: showBackgroundColor, showNoDataView: showNoDataView }, { children: [showHeader && (_jsx(SheetViewTableHeader, { "data-testid": "SheetViewVirtualTable_PinnedTableHeader", columnsSorting: columnsSorting, onColumnSort: onColumnSort, columns: columnsData, headerProps: headerProps, showBackDrop: showBackDrop, pinnedColumns: pinnedColumnsList, onColumnPin: handleColumnPin, isPinnable: isPinnable, lastColumnId: lastColumnId, selectedColumn: selectedColumn, onColumnClick: handleColumnClick })), _jsx(TableWrapper, Object.assign({ "data-testid": "VirtualTable_TableWrapper", sx: {
170
170
  width: '100%',
171
171
  minWidth: 'fit-content',
172
172
  overflowX: 'hidden',
173
173
  } }, { children: _jsx(StyledBox, Object.assign({ "data-testid": "SheetViewVirtualTable_PinnedStyledBox", hidePadding: true, className: "list-wrapper" }, { children: createVirtualTableContainer(columnsData, containerKey, true, columnsWidth) })) }))] })) }));
174
174
  };
175
- return (_jsxs(_Fragment, { children: [_jsx(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-table-mode": tableMode, height: "100%", dir: theme.direction, showNoDataView: showNoDataView, scrollable: true, sx: {
175
+ return (_jsxs(_Fragment, { children: [_jsx(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: "100%", dir: theme.direction, showBackgroundColor: showBackgroundColor, showNoDataView: showNoDataView, scrollable: true, sx: {
176
176
  marginLeft: '28px',
177
177
  maxHeight: 'calc(100vh - 300px)',
178
178
  overflow: 'auto',
@@ -186,7 +186,7 @@ function SheetViewVirtualTable({ columns, rows, threshold = TABLE_THRESHOLD, sho
186
186
  height: 'auto',
187
187
  display: 'flex',
188
188
  flexDirection: 'column',
189
- } }, { children: _jsx(SheetViewTableNoData, { error: error, tableEmpty: tableEmpty, isTimeoutError: hasTimeoutError, tableError: tableError, tableLoading: tableLoading, orderedColumns: orderedColumns, triggerDataRefetch: triggerDataRefetch, footerProps: footerProps }) })) }))] })) }))) : (_jsx(StyledTableBox, Object.assign({ as: "main", id: "sheet-table-box-container", "aria-labelledby": "sheet-table-box-container", "data-testid": "SheetViewVirtualTable_StyledTableBox", "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-table-mode": tableMode, height: "100%", dir: theme.direction, showNoDataView: showNoDataView }, { children: _jsxs(TableWrapper, Object.assign({ isSheetView: true, "data-testid": "SheetViewVirtualTable_TableWrapper", showNoDataView: showNoDataView, sx: tableBodyStyles }, { 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(TableNoData, { error: error, tableEmpty: tableEmpty, isTimeoutError: hasTimeoutError, tableError: tableError, tableLoading: tableLoading, orderedColumns: orderedColumns, triggerDataRefetch: triggerDataRefetch, footerProps: footerProps })] })) })))) : (_jsxs(SheetViewVirtualTableWrapper, { children: [renderPinnedColumn('start', pinnedStartColumnsData, pinnedStartColumnsWidth, pinnedStartColumns), _jsx(MainTableWrapper, Object.assign({ hasPinnedStart: pinnedStartColumnsData.length > 0, hasPinnedEnd: pinnedEndColumnsData.length > 0 }, { children: _jsx(StyledTableBox, Object.assign({ as: "main", id: "sheet-table-box-container", "aria-labelledby": "sheet-table-box-container", "data-testid": "SheetViewVirtualTable_StyledTableBox", "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-table-mode": tableMode, height: "100%", dir: theme.direction, showNoDataView: showNoDataView, scrollable: true }, { children: _jsxs(TableWrapper, Object.assign({ "data-testid": "SheetViewVirtualTable_TableWrapper", showNoDataView: showNoDataView, sx: Object.assign(Object.assign({}, tableBodyStyles), { display: 'flex', flexDirection: 'column', height: '100%' }) }, { children: [showHeader && (_jsx(UnpinnedTableHeaderWrapper, { children: _jsx(SheetViewTableHeader, { "data-testid": "SheetViewVirtualTable_UnpinnedTableHeader", columnsSorting: columnsSorting, onColumnSort: onColumnSort, columns: unpinnedColumnsData, headerProps: headerProps, showBackDrop: showBackDrop, pinnedColumns: [...pinnedStartColumns, ...pinnedEndColumns], onColumnPin: handleColumnPin, isPinnable: isPinnable, lastColumnId: lastColumnId, selectedColumn: selectedColumn, onColumnClick: handleColumnClick }) })), _jsx(TableWrapper, Object.assign({ "data-testid": "VirtualTable_TableWrapper", sx: {
189
+ } }, { children: _jsx(SheetViewTableNoData, { error: error, tableEmpty: tableEmpty, isTimeoutError: hasTimeoutError, tableError: tableError, tableLoading: tableLoading, orderedColumns: orderedColumns, triggerDataRefetch: triggerDataRefetch, footerProps: footerProps }) })) }))] })) }))) : (_jsx(StyledTableBox, Object.assign({ as: "main", id: "sheet-table-box-container", "aria-labelledby": "sheet-table-box-container", "data-testid": "SheetViewVirtualTable_StyledTableBox", "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: "100%", dir: theme.direction, showBackgroundColor: showBackgroundColor, showNoDataView: showNoDataView }, { children: _jsxs(TableWrapper, Object.assign({ isSheetView: true, "data-testid": "SheetViewVirtualTable_TableWrapper", showNoDataView: showNoDataView, sx: tableBodyStyles }, { 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(TableNoData, { error: error, tableEmpty: tableEmpty, isTimeoutError: hasTimeoutError, tableError: tableError, tableLoading: tableLoading, orderedColumns: orderedColumns, triggerDataRefetch: triggerDataRefetch, footerProps: footerProps })] })) })))) : (_jsxs(SheetViewVirtualTableWrapper, { children: [renderPinnedColumn('start', pinnedStartColumnsData, pinnedStartColumnsWidth, pinnedStartColumns), _jsx(MainTableWrapper, Object.assign({ hasPinnedStart: pinnedStartColumnsData.length > 0, hasPinnedEnd: pinnedEndColumnsData.length > 0 }, { children: _jsx(StyledTableBox, Object.assign({ as: "main", id: "sheet-table-box-container", "aria-labelledby": "sheet-table-box-container", "data-testid": "SheetViewVirtualTable_StyledTableBox", "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: "100%", dir: theme.direction, showBackgroundColor: showBackgroundColor, showNoDataView: showNoDataView, scrollable: true }, { children: _jsxs(TableWrapper, Object.assign({ "data-testid": "SheetViewVirtualTable_TableWrapper", showNoDataView: showNoDataView, sx: Object.assign(Object.assign({}, tableBodyStyles), { display: 'flex', flexDirection: 'column', height: '100%' }) }, { children: [showHeader && (_jsx(UnpinnedTableHeaderWrapper, { children: _jsx(SheetViewTableHeader, { "data-testid": "SheetViewVirtualTable_UnpinnedTableHeader", columnsSorting: columnsSorting, onColumnSort: onColumnSort, columns: unpinnedColumnsData, headerProps: headerProps, showBackDrop: showBackDrop, pinnedColumns: [...pinnedStartColumns, ...pinnedEndColumns], onColumnPin: handleColumnPin, isPinnable: isPinnable, lastColumnId: lastColumnId, selectedColumn: selectedColumn, onColumnClick: handleColumnClick }) })), _jsx(TableWrapper, Object.assign({ "data-testid": "VirtualTable_TableWrapper", sx: {
190
190
  width: '100%',
191
191
  minWidth: 'fit-content',
192
192
  } }, { children: _jsx(StyledBox, Object.assign({ "data-testid": "SheetViewVirtualTable_ScrollableStyledBox", hidePadding: true, className: "list-wrapper" }, { children: createVirtualTableContainer(unpinnedColumnsData, 'scrollable', false) })) }))] })) })) })), renderPinnedColumn('end', pinnedEndColumnsData, pinnedEndColumnsWidth, [...pinnedStartColumns, ...pinnedEndColumns])] })) }), _jsx(TableFooter, Object.assign({ "data-testid": "SheetViewVirtualTable_TableFooter", showSeparator: true, showBackDrop: showBackDrop, onPointerDown: onPointerDown }, footerProps))] }));
@@ -3,9 +3,9 @@ import { memo, useCallback, useMemo, useState } from 'react';
3
3
  import Box from '@mui/material/Box';
4
4
  import { pinIcon, unpinIcon } from '../../../../../constants/index.js';
5
5
  import ColumnFilter from '../../../components/ColumnFilter';
6
- import { StyledCell } from '../../../style';
6
+ import { StyledCell } from '../../../components/style';
7
7
  import { PinIconContainer, HeaderText } from '../../style';
8
- import ColumnSort from '../../../../VirtualTable/components/ColumnSort';
8
+ import ColumnSort from '../../../../VirtualTables/components/ColumnSort';
9
9
  function TableCell({ column: { header, id, align, headerStyle, sortable, filter, pinnable, width, order }, isFirst, isLast, isSelected, isDefaultPinned, onColumnSort, columnsSorting, onColumnPin, isPinnable, lastColumnId, onColumnClick, pinnedColumns, }) {
10
10
  const [columnFilterEl, setColumnFilterEl] = useState(null);
11
11
  const checkIsPanned = useCallback((columnId) => pinnedColumns === null || pinnedColumns === void 0 ? void 0 : pinnedColumns.includes(columnId), [pinnedColumns]);
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { TableHeaderProps } from '../../../../VirtualTable/components/TableHeader/type';
2
+ import { TableHeaderProps } from '../../../../VirtualTables/components/TableHeader/type';
3
3
  import { IColumnProps, IVirtualTable } from '../../../../../types/index.js';
4
4
  export interface SheetViewTableHeaderProps {
5
5
  columns: IColumnProps[];
@@ -4,7 +4,7 @@ import { backendErrorHandler } from '../../../../utils/index.js';
4
4
  import EmptyList from '../../components/EmptyList/EmptyList';
5
5
  import ErrorList from '../../components/ErrorList/ErrorList';
6
6
  import SheetViewTableLoading from './SheetViewTableLoading';
7
- import { StyledSolidBackground } from '../../style';
7
+ import { StyledSolidBackground } from '../../components/style';
8
8
  function SheetViewTableNoData({ error, tableEmpty, isTimeoutError, tableError, tableLoading, orderedColumns, triggerDataRefetch, footerProps, }) {
9
9
  let content;
10
10
  if (tableLoading) {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { IVirtualTable } from '../../types/index.js';
3
- declare function VirtualTable({ columns, rows, threshold, showHeader, headerProps, rowProps, footerProps, isLoading, error, columnsSorting, onColumnSort, loadMoreItems, isFetchingNextPage, triggerDataRefetch, scrollToIndex, areAllRowsLoaded, tableBodyStyles, tableMode, tableTitle, dragControls, isSheetView, }: Readonly<IVirtualTable>): import("react/jsx-runtime").JSX.Element;
2
+ import type { IVirtualTable } from '../../../types/index.js';
3
+ declare function VirtualTable({ columns, rows, threshold, showHeader, headerProps, rowProps, footerProps, isLoading, error, columnsSorting, onColumnSort, loadMoreItems, isFetchingNextPage, triggerDataRefetch, scrollToIndex, showBackgroundColor, areAllRowsLoaded, tableBodyStyles, tableMode, tableTitle, dragControls, isSheetView, }: Readonly<IVirtualTable>): import("react/jsx-runtime").JSX.Element;
4
4
  declare const _default: import("react").MemoExoticComponent<typeof VirtualTable>;
5
5
  export default _default;
@@ -13,15 +13,15 @@ import { useTheme } from '@mui/material/styles';
13
13
  import memoize from 'memoize-one';
14
14
  import AutoSizer from 'react-virtualized-auto-sizer';
15
15
  import InfiniteLoader from 'react-window-infinite-loader';
16
- import { TABLE_ROW_HEIGHT, TABLE_THRESHOLD, TABLE_LIST_OVER_SCAN, SHEET_VIEW_TABLE_ROW_HEIGHT } from '../../constants/index.js';
17
- import { useDelayToSetValue } from '../../hooks/index.js';
18
- import { isHeightNotFullyFilledByRows, isNotFoundError, isTimeoutError, hasError } from '../../utils/index.js';
19
- import TableFooter from './components/TableFooter/TableFooter';
20
- import TableHeader from './components/TableHeader';
21
- import TableLastItem from './components/TableLastItem';
22
- import TableNoData from './components/TableNoData';
23
- import ListItemWrapper from './components/virtualScroll/ListItemWrapper';
24
- import { StyledBox, StyledTableBox, StyledVirtualList, TableContainer, TableWrapper } from './style';
16
+ import { TABLE_ROW_HEIGHT, TABLE_THRESHOLD, TABLE_LIST_OVER_SCAN, SHEET_VIEW_TABLE_ROW_HEIGHT } from '../../../constants/index.js';
17
+ import { useDelayToSetValue } from '../../../hooks/index.js';
18
+ import { isHeightNotFullyFilledByRows, isNotFoundError, isTimeoutError, hasError } from '../../../utils/index.js';
19
+ import TableFooter from '../components/TableFooter/TableFooter';
20
+ import TableHeader from '../components/TableHeader';
21
+ import TableLastItem from '../components/TableLastItem';
22
+ import TableNoData from '../components/TableNoData';
23
+ import ListItemWrapper from '../components/virtualScroll/ListItemWrapper';
24
+ import { StyledBox, StyledTableBox, StyledVirtualList, TableContainer, TableWrapper } from '../components/style';
25
25
  const createItemData = memoize((columns, isLoading, rows, rowProps, scrollToIndex, lastItemIndex, totalCount, isError, areAllRowsLoaded, isSheetView) => ({
26
26
  columns,
27
27
  isLoading,
@@ -34,7 +34,7 @@ const createItemData = memoize((columns, isLoading, rows, rowProps, scrollToInde
34
34
  areAllRowsLoaded,
35
35
  isSheetView,
36
36
  }));
37
- function VirtualTable({ columns, rows, threshold = TABLE_THRESHOLD, showHeader, headerProps, rowProps, footerProps, isLoading, error, columnsSorting, onColumnSort, loadMoreItems, isFetchingNextPage, triggerDataRefetch, scrollToIndex, areAllRowsLoaded = false, tableBodyStyles, tableMode, tableTitle, dragControls, isSheetView = false, }) {
37
+ function VirtualTable({ columns, rows, threshold = TABLE_THRESHOLD, showHeader, headerProps, rowProps, footerProps, isLoading, error, columnsSorting, onColumnSort, loadMoreItems, isFetchingNextPage, triggerDataRefetch, scrollToIndex, showBackgroundColor, areAllRowsLoaded = false, tableBodyStyles, tableMode, tableTitle, dragControls, isSheetView = false, }) {
38
38
  var _a;
39
39
  const theme = useTheme();
40
40
  const onPointerDown = (e) => {
@@ -86,7 +86,7 @@ function VirtualTable({ columns, rows, threshold = TABLE_THRESHOLD, showHeader,
86
86
  scrollToIndex,
87
87
  ]);
88
88
  const showNoDataView = tableLoading || tableError || tableEmpty || hasTimeoutError;
89
- return (_jsxs(_Fragment, { children: [_jsxs(TableContainer, { children: [_jsx(StyledTableBox, Object.assign({ as: "main", id: "table-box-container", "aria-labelledby": "table-box-container", "data-testid": "VirtualTable_StyledTableBox", "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-table-mode": tableMode, height: "100%", dir: theme.direction, showNoDataView: showNoDataView }, { children: _jsxs(TableWrapper, Object.assign({ isSheetView: isSheetView, "data-testid": "VirtualTable_TableWrapper", showNoDataView: showNoDataView, sx: Object.assign({}, tableBodyStyles) }, { children: [showHeader && (_jsx(TableHeader, { "data-testid": "VirtualTable_TableHeader", columnsSorting: columnsSorting, onColumnSort: onColumnSort, columns: orderedColumns, headerProps: headerProps, showBackDrop: showBackDrop, isSheetView: isSheetView })), showNoDataView ? (_jsx(TableNoData, { error: error, tableEmpty: tableEmpty, isTimeoutError: hasTimeoutError, tableError: tableError, tableLoading: tableLoading, orderedColumns: orderedColumns, triggerDataRefetch: triggerDataRefetch, footerProps: footerProps })) : (_jsx(TableWrapper, Object.assign({ "data-testid": "VirtualTable_TableWrapper", sx: {
89
+ return (_jsxs(_Fragment, { children: [_jsxs(TableContainer, { children: [_jsx(StyledTableBox, Object.assign({ as: "main", id: "table-box-container", "aria-labelledby": "table-box-container", "data-testid": "VirtualTable_StyledTableBox", "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: "100%", dir: theme.direction, showBackgroundColor: showBackgroundColor, showNoDataView: showNoDataView }, { children: _jsxs(TableWrapper, Object.assign({ isSheetView: isSheetView, "data-testid": "VirtualTable_TableWrapper", showNoDataView: showNoDataView, sx: Object.assign({}, tableBodyStyles) }, { children: [showHeader && (_jsx(TableHeader, { "data-testid": "VirtualTable_TableHeader", columnsSorting: columnsSorting, onColumnSort: onColumnSort, columns: orderedColumns, headerProps: headerProps, showBackDrop: showBackDrop, isSheetView: isSheetView })), showNoDataView ? (_jsx(TableNoData, { error: error, tableEmpty: tableEmpty, isTimeoutError: hasTimeoutError, tableError: tableError, tableLoading: tableLoading, orderedColumns: orderedColumns, triggerDataRefetch: triggerDataRefetch, footerProps: footerProps })) : (_jsx(TableWrapper, Object.assign({ "data-testid": "VirtualTable_TableWrapper", sx: {
90
90
  width: '100%',
91
91
  minWidth: 'fit-content',
92
92
  } }, { children: _jsx(StyledBox, Object.assign({ "data-testid": "VirtualTable_StyledBox", hidePadding: true, className: "list-wrapper" }, { children: renderTableContainer })) })))] })) })), !showNoDataView && areTotalRowsNotFillingHeight && !isFetchingNextPage && (_jsx(TableLastItem, { height: (itemsCount + 1) * tableRowHeight, sandboxMode: footerProps === null || footerProps === void 0 ? void 0 : footerProps.sandboxMode, "data-testid": "VirtualTable_TableLastItem" }))] }), _jsx(TableFooter, Object.assign({ "data-testid": "VirtualTable_TableFooter", showSeparator: true, showBackDrop: showBackDrop, onPointerDown: onPointerDown }, footerProps))] }));
@@ -1,6 +1,6 @@
1
1
  import { ReactNode, ReactElement } from 'react';
2
- import type { IVirtualTable } from '../../types/index.js';
3
- export interface VirtualTableWithCardProps extends Omit<IVirtualTable, 'showHeader' | 'dimensions' | 'columns'> {
2
+ import type { IVirtualTable } from '../../../types/index.js';
3
+ export interface VirtualTableWithCardProps extends Omit<IVirtualTable, 'showHeader' | 'dimensions' | ' showBackgroundColor' | 'columns'> {
4
4
  tableHeader?: ReactNode;
5
5
  renderCardComponent: (rows: any) => ReactElement | null;
6
6
  cardLoadingComponent: ReactNode;
@@ -14,13 +14,13 @@ import { useTheme } from '@mui/material/styles';
14
14
  import memoize from 'memoize-one';
15
15
  import AutoSizer from 'react-virtualized-auto-sizer';
16
16
  import InfiniteLoader from 'react-window-infinite-loader';
17
- import { useDelayToSetValue } from '../../hooks/index.js';
18
- import { isHeightNotFullyFilledByRows, isNotFoundError, isTimeoutError, hasError } from '../../utils/index.js';
19
- import { TABLE_ROW_HEIGHT, TABLE_THRESHOLD, TABLE_LIST_OVER_SCAN } from '../../constants/index.js';
20
- import TableFooter from './components/TableFooter';
21
- import TableNoDataWithCard from './components/TableNoDataWithCard';
22
- import ListItemWrapperWithCard from './components/virtualScroll/ListItemWrapperWithCard';
23
- import { StyledCardsBox, StyledVirtualList, TableContainer, TableWrapper } from './style';
17
+ import { useDelayToSetValue } from '../../../hooks/index.js';
18
+ import { isHeightNotFullyFilledByRows, isNotFoundError, isTimeoutError, hasError } from '../../../utils/index.js';
19
+ import { TABLE_ROW_HEIGHT, TABLE_THRESHOLD, TABLE_LIST_OVER_SCAN } from '../../../constants/index.js';
20
+ import TableFooter from '../components/TableFooter';
21
+ import TableNoDataWithCard from '../components/TableNoDataWithCard';
22
+ import ListItemWrapperWithCard from '../components/virtualScroll/ListItemWrapperWithCard';
23
+ import { StyledCardsBox, StyledVirtualList, TableContainer, TableWrapper } from '../components/style';
24
24
  const createItemData = memoize((isLoading, rows, rowProps, scrollToIndex, lastItemIndex, totalCount, isError, areAllRowsLoaded, renderCardComponent) => ({
25
25
  isLoading,
26
26
  rows,
@@ -1,5 +1,5 @@
1
1
  import type { IColumnProps } from '../../../../../../types/index.js';
2
- import { TableHeaderProps } from '../../../../../VirtualTable/components/TableHeader';
2
+ import { TableHeaderProps } from '../../../../../VirtualTables/components/TableHeader';
3
3
  interface TableCellProps extends Pick<TableHeaderProps, 'onColumnSort' | 'isSheetView' | 'columnsSorting'> {
4
4
  column: IColumnProps;
5
5
  isFirst: boolean;
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useState } from 'react';
3
3
  import Box from '@mui/material/Box';
4
- import ColumnFilter from '../../../../../VirtualTable/components/ColumnFilter';
5
- import ColumnSort from '../../../../../VirtualTable/components/ColumnSort';
6
- import { StyledCell } from '../../../../../VirtualTable/style';
4
+ import ColumnFilter from '../../../../../VirtualTables/components/ColumnFilter';
5
+ import ColumnSort from '../../../../../VirtualTables/components/ColumnSort';
6
+ import { StyledCell } from '../../../../../VirtualTables/components/style';
7
7
  export function TableCell({ column: { header, id, align, headerStyle, sortable, filter, width, order }, isFirst, isLast, isSheetView, onColumnSort, columnsSorting, }) {
8
8
  const [columnFilterEl, setColumnFilterEl] = useState(null);
9
9
  return (_jsxs(StyledCell, Object.assign({ "data-id": id, component: "div", "data-testid": "VirtualTable_TableHeader_StyledCell", "data-column-id": id, "data-column-width": width, "data-column-width-used": width, "data-column-align": align, "data-column-order": order, "data-column-header": typeof header === 'string' ? header : 'component', "data-column-sortable": !!sortable, "data-column-filterable": !!filter, isFirst: isFirst, isLast: isLast, onClick: (event) => {
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
- import { VirtualTableWithCardProps } from '../VirtualTableWithCard';
1
+ import { ReactNode } from 'react';
3
2
  interface ITableLoadingProps {
4
3
  isLoaded?: boolean;
5
4
  isLoading?: boolean;
6
5
  rowsCount?: number;
7
- cardLoadingComponent: VirtualTableWithCardProps['cardLoadingComponent'];
6
+ cardLoadingComponent: ReactNode;
8
7
  }
9
8
  declare function TableLoadingWithCard({ isLoaded, isLoading, rowsCount, cardLoadingComponent }: ITableLoadingProps): import("react/jsx-runtime").JSX.Element;
10
9
  declare const _default: import("react").MemoExoticComponent<typeof TableLoadingWithCard>;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { memo } from 'react';
3
3
  import TableLoading from './TableLoading';
4
- import { StyledSolidBackground } from '../style';
4
+ import { StyledSolidBackground } from './style';
5
5
  import TableError from './TableError';
6
6
  function TableNoData({ error, tableEmpty, isTimeoutError, tableError, tableLoading, orderedColumns, triggerDataRefetch, footerProps, }) {
7
7
  if (tableLoading) {
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
1
+ import { ReactElement, ReactNode } from 'react';
2
2
  import type { IVirtualTable } from '../../../types/index.js';
3
- import { VirtualTableWithCardProps } from '../VirtualTableWithCard';
4
3
  interface TableNoDataWithCardProps {
5
4
  tableEmpty: boolean;
6
5
  tableLoading: boolean;
@@ -9,8 +8,8 @@ interface TableNoDataWithCardProps {
9
8
  tableError: boolean;
10
9
  triggerDataRefetch: () => Promise<unknown>;
11
10
  footerProps: IVirtualTable['footerProps'];
12
- cardLoadingComponent: VirtualTableWithCardProps['cardLoadingComponent'];
13
- noDataComponent: VirtualTableWithCardProps['noDataComponent'];
11
+ cardLoadingComponent: ReactNode;
12
+ noDataComponent: ReactElement;
14
13
  }
15
14
  declare function TableNoDataWithCard({ error, tableEmpty, isTimeoutError, tableError, tableLoading, triggerDataRefetch, footerProps, cardLoadingComponent, noDataComponent: NoDataComponent, }: TableNoDataWithCardProps): JSX.Element;
16
15
  declare namespace TableNoDataWithCard {
@@ -3,7 +3,7 @@ import { memo } from 'react';
3
3
  import { backendErrorHandler } from '../../../utils/index.js';
4
4
  import ErrorList from './ErrorList/ErrorList';
5
5
  import TableLoadingWithCard from './TableLoadingWithCard';
6
- import { StyledSolidBackground } from '../style';
6
+ import { StyledSolidBackground } from './style';
7
7
  function TableNoDataWithCard({ error, tableEmpty, isTimeoutError, tableError, tableLoading, triggerDataRefetch, footerProps, cardLoadingComponent, noDataComponent: NoDataComponent, }) {
8
8
  let content;
9
9
  if (tableLoading) {
@@ -2,7 +2,7 @@ import { createElement as _createElement } from "react";
2
2
  import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
3
3
  import { memo, useMemo } from 'react';
4
4
  import { areEqual } from 'react-window';
5
- import { StyledCell, StyledTableRow } from '../style';
5
+ import { StyledCell, StyledTableRow } from './style';
6
6
  import { getSelectionStyles } from '../utils/getSelectionStyles';
7
7
  function TableRow({ row, columns, index, rowProps, isSheetView, selectedCell = null, selectedColumn = null, onCellClick, isLastRow = false, }) {
8
8
  const renderCell = (column) => {
@@ -1,9 +1,8 @@
1
- import { CSSProperties } from 'react';
2
- import { VirtualTableWithCardProps } from '../VirtualTableWithCard';
1
+ import { CSSProperties, ReactNode } from 'react';
3
2
  interface ITableRowLoadingProps {
4
3
  index?: number;
5
4
  style?: CSSProperties;
6
- cardLoadingComponent: VirtualTableWithCardProps['cardLoadingComponent'];
5
+ cardLoadingComponent: ReactNode;
7
6
  }
8
7
  declare function TableRowLoadingWithCard({ style, index, cardLoadingComponent: CardLoadingComponent }: ITableRowLoadingProps): import("react/jsx-runtime").JSX.Element;
9
8
  declare const _default: import("react").MemoExoticComponent<typeof TableRowLoadingWithCard>;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
1
+ import { ReactElement } from 'react';
2
2
  import type { TableRowProps } from '@mui/material';
3
- import { VirtualTableWithCardProps } from '../VirtualTableWithCard';
4
3
  interface ITableRowProps<R = any> {
5
4
  row: R;
6
5
  index: number;
@@ -9,7 +8,7 @@ interface ITableRowProps<R = any> {
9
8
  onRowClick?: (row: R) => void;
10
9
  showLoadedStyle?: boolean;
11
10
  };
12
- renderCardComponent: VirtualTableWithCardProps['renderCardComponent'];
11
+ renderCardComponent: (rows: any) => ReactElement | null;
13
12
  }
14
13
  declare function TableRowWithCard({ row, index, rowProps, renderCardComponent: RenderCardComponent }: Readonly<ITableRowProps>): import("react/jsx-runtime").JSX.Element;
15
14
  declare const _default: import("react").MemoExoticComponent<typeof TableRowWithCard>;
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { createElement as _createElement } from "react";
3
3
  import { memo } from 'react';
4
4
  import { areEqual } from 'react-window';
5
- import { StyledTableRow } from '../style';
5
+ import { StyledTableRow } from './style';
6
6
  function TableRowWithCard({ row, index, rowProps, renderCardComponent: RenderCardComponent }) {
7
7
  return (_createElement(StyledTableRow, Object.assign({ "data-testid": "TableRow", onClick: rowProps === null || rowProps === void 0 ? void 0 : rowProps.onRowClick, showShadowHighlight: rowProps === null || rowProps === void 0 ? void 0 : rowProps.showShadowHighlight, showLoadedStyle: rowProps === null || rowProps === void 0 ? void 0 : rowProps.showLoadedStyle, component: "article" }, rowProps, { key: index }), RenderCardComponent && _jsx(RenderCardComponent, Object.assign({}, row))));
8
8
  }
@@ -40,6 +40,7 @@ export declare const StyledTableRow: import("@emotion/styled").StyledComponent<i
40
40
  export declare const StyledTableBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
41
41
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
42
42
  }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
43
+ showBackgroundColor: boolean;
43
44
  showNoDataView: boolean;
44
45
  scrollable?: boolean | undefined;
45
46
  }, {}, {}>;
@@ -3,8 +3,8 @@ import Box from '@mui/material/Box';
3
3
  import { styled } from '@mui/material/styles';
4
4
  import MUITableRow from '@mui/material/TableRow';
5
5
  import { motion } from 'framer-motion';
6
- import { TABLE_FOOTER_HEIGHT } from './components/TableFooter/style';
7
- import VirtualScrollList from './components/virtualScroll/VirtualScrollList';
6
+ import { TABLE_FOOTER_HEIGHT } from './TableFooter/style';
7
+ import VirtualScrollList from './virtualScroll/VirtualScrollList';
8
8
  export const TableWrapper = styled(Box, {
9
9
  shouldForwardProp: (prop) => prop !== 'showNoDataView' && prop !== 'isSheetView',
10
10
  })(({ showNoDataView, isSheetView }) => ({
@@ -87,12 +87,13 @@ export const StyledTableRow = styled(MUITableRow, {
87
87
  },
88
88
  }))))));
89
89
  export const StyledTableBox = styled(Box, {
90
- shouldForwardProp: (prop) => prop !== 'showNoDataView' && prop !== 'scrollable',
91
- })(({ theme, showNoDataView, scrollable }) => ({
90
+ shouldForwardProp: (prop) => prop !== 'showBackgroundColor' && prop !== 'showNoDataView' && prop !== 'scrollable',
91
+ })(({ theme, showBackgroundColor, showNoDataView, scrollable }) => ({
92
92
  position: 'relative',
93
- backgroundColor: theme.palette.background.default,
93
+ backgroundColor: showBackgroundColor ? theme.palette.background.default : 'transparent',
94
94
  height: '100%',
95
95
  overflowX: showNoDataView ? 'hidden' : 'scroll',
96
+ paddingBottom: showBackgroundColor ? '52px' : '0',
96
97
  display: 'flex',
97
98
  flexDirection: 'column',
98
99
  '&:hover': {
@@ -15,11 +15,11 @@ import { Box } from '@mui/material';
15
15
  import { styled } from '@mui/material/styles';
16
16
  import { useTranslation } from 'react-i18next';
17
17
  import { blueCircleLoaderIcon, tableBackgroundLoader, TABLE_ROW_HEIGHT, SHEET_VIEW_TABLE_ROW_HEIGHT } from '../../../../constants/index.js';
18
- import { ActionIcon } from '../../style';
18
+ import { ActionIcon } from '../style';
19
19
  import { RowErrorState } from '../RowErrorState';
20
20
  import { StyledParagraph } from '../TableLastItem';
21
21
  import TableRow from '../TableRow';
22
- import SheetViewTableRowLoading from '../../SheetView/components/SheetViewTableRowLoading';
22
+ import SheetViewTableRowLoading from '../../SheetViewVirtualTable/components/SheetViewTableRowLoading';
23
23
  export const LastRowContent = React.memo(({ isLoadingRow, isSheetView, columns, currentRowCount, }) => {
24
24
  const { t } = useTranslation();
25
25
  if (isLoadingRow) {
@@ -0,0 +1,6 @@
1
+ import VirtualTable from './VirtualTable/VirtualTable';
2
+ import VirtualTableWithCard from './VirtualTableWithCard/VirtualTableWithCard';
3
+ export * from './components';
4
+ export * from './SheetViewVirtualTable';
5
+ export { StyledCell } from './components/style';
6
+ export { VirtualTable, VirtualTableWithCard };
@@ -0,0 +1,6 @@
1
+ import VirtualTable from './VirtualTable/VirtualTable';
2
+ import VirtualTableWithCard from './VirtualTableWithCard/VirtualTableWithCard';
3
+ export * from './components';
4
+ export * from './SheetViewVirtualTable';
5
+ export { StyledCell } from './components/style';
6
+ export { VirtualTable, VirtualTableWithCard };
@@ -12,8 +12,8 @@ export { default as Checkbox } from './Checkbox';
12
12
  export { default as Dialog, DialogToolbar } from './Dialog';
13
13
  export { default as Tooltip } from './Tooltip';
14
14
  export * from './RFH';
15
- export { default as VirtualTable, TableRowLoading, TableHeader as VirtualTableHeader, TableLastItem, TableLoading, TableLoadingWithCard, TableNoData, TableNoDataWithCard, LastRowContent, ListItemWrapperWithCard, RowErrorState, StyledItemWrapper, TableRow, TableRowLoadingWithCard, TableRowWithCard, VirtualScrollInner, VirtualScrollList, VirtualScrollOuter, VirtualTableWithCard, Inputs, List, ColumnFilter, StyledCell, TableFooter, TableError, } from './VirtualTable';
16
- export { default as SheetViewVirtualTable } from './VirtualTable/SheetView/SheetViewVirtualTable';
15
+ export { VirtualTable, TableRowLoading, TableHeader as VirtualTableHeader, TableLastItem, TableLoading, TableLoadingWithCard, TableNoData, TableNoDataWithCard, LastRowContent, ListItemWrapperWithCard, RowErrorState, StyledItemWrapper, TableRow, TableRowLoadingWithCard, TableRowWithCard, VirtualScrollInner, VirtualScrollList, VirtualScrollOuter, VirtualTableWithCard, Inputs, List, ColumnFilter, StyledCell, TableFooter, TableError, } from './VirtualTables';
16
+ export { default as SheetViewVirtualTable } from './VirtualTables/SheetViewVirtualTable/SheetViewVirtualTable';
17
17
  export { default as Widget, ListItem, WidgetHeader, WidgetList } from './Widget';
18
18
  export { default as TapLogo } from './TapLogo';
19
19
  export { default as StatusButton, ChevronIcon, type ChevronIconProps, type StatusButtonIcon, type StatusButtonProps } from './StatusButton';
@@ -12,8 +12,8 @@ export { default as Checkbox } from './Checkbox';
12
12
  export { default as Dialog, DialogToolbar } from './Dialog';
13
13
  export { default as Tooltip } from './Tooltip';
14
14
  export * from './RFH';
15
- export { default as VirtualTable, TableRowLoading, TableHeader as VirtualTableHeader, TableLastItem, TableLoading, TableLoadingWithCard, TableNoData, TableNoDataWithCard, LastRowContent, ListItemWrapperWithCard, RowErrorState, StyledItemWrapper, TableRow, TableRowLoadingWithCard, TableRowWithCard, VirtualScrollInner, VirtualScrollList, VirtualScrollOuter, VirtualTableWithCard, Inputs, List, ColumnFilter, StyledCell, TableFooter, TableError, } from './VirtualTable';
16
- export { default as SheetViewVirtualTable } from './VirtualTable/SheetView/SheetViewVirtualTable';
15
+ export { VirtualTable, TableRowLoading, TableHeader as VirtualTableHeader, TableLastItem, TableLoading, TableLoadingWithCard, TableNoData, TableNoDataWithCard, LastRowContent, ListItemWrapperWithCard, RowErrorState, StyledItemWrapper, TableRow, TableRowLoadingWithCard, TableRowWithCard, VirtualScrollInner, VirtualScrollList, VirtualScrollOuter, VirtualTableWithCard, Inputs, List, ColumnFilter, StyledCell, TableFooter, TableError, } from './VirtualTables';
16
+ export { default as SheetViewVirtualTable } from './VirtualTables/SheetViewVirtualTable/SheetViewVirtualTable';
17
17
  export { default as Widget, ListItem, WidgetHeader, WidgetList } from './Widget';
18
18
  export { default as TapLogo } from './TapLogo';
19
19
  export { default as StatusButton, ChevronIcon } from './StatusButton';
@@ -29,6 +29,7 @@ export interface AppDetails {
29
29
  openOrder?: number;
30
30
  color: string;
31
31
  sandboxMode: boolean;
32
+ showBackgroundColor: boolean;
32
33
  dimensions: {
33
34
  width: number | string;
34
35
  height: number | string;
@@ -4,7 +4,7 @@ import { BoxProps } from '@mui/material/Box';
4
4
  import { TableHeadProps } from '@mui/material/TableHead';
5
5
  import { TableRowProps } from '@mui/material/TableRow';
6
6
  import { DragControls } from 'framer-motion';
7
- import { CustomColumnFilterProps } from '../components/VirtualTable';
7
+ import { CustomColumnFilterProps } from '../components/VirtualTables';
8
8
  import { Country } from './appConfig';
9
9
  import { SortingOrder } from './sort';
10
10
  export interface TableFilters<T> {
@@ -116,6 +116,7 @@ export interface IVirtualTable<R = any> {
116
116
  loadMoreItems?: () => Promise<unknown>;
117
117
  triggerDataRefetch: () => Promise<unknown>;
118
118
  scrollToIndex?: number;
119
+ showBackgroundColor: boolean;
119
120
  areAllRowsLoaded?: boolean;
120
121
  tableBodyStyles?: React.CSSProperties;
121
122
  isTextShown?: boolean;
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.311-test.1",
5
- "testVersion": 1,
4
+ "version": "0.0.311-test.1-test.51",
5
+ "testVersion": 51,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",
@@ -1,6 +0,0 @@
1
- import VirtualTable from './VirtualTable';
2
- export { default as VirtualTableWithCard } from './VirtualTableWithCard';
3
- export * from './components';
4
- export * from './SheetView';
5
- export { StyledCell } from './style';
6
- export default VirtualTable;
@@ -1,6 +0,0 @@
1
- import VirtualTable from './VirtualTable';
2
- export { default as VirtualTableWithCard } from './VirtualTableWithCard';
3
- export * from './components';
4
- export * from './SheetView';
5
- export { StyledCell } from './style';
6
- export default VirtualTable;
@@ -1 +0,0 @@
1
- export declare const VTDemo: () => import("react/jsx-runtime").JSX.Element;
@@ -1,58 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useState } from 'react';
3
- import { Button, VirtualTable } from '../components/index.js';
4
- import { Box } from '@mui/material';
5
- export const VTDemo = () => {
6
- const [isSheetView, setIsSheetView] = useState(false);
7
- const toggleView = () => {
8
- setIsSheetView((prev) => !prev);
9
- };
10
- return (_jsx(Box, Object.assign({ sx: {
11
- width: '100%',
12
- height: '100vh',
13
- overflow: 'auto',
14
- flexDirection: 'row',
15
- display: 'flex',
16
- justifyContent: 'center',
17
- p: 3,
18
- backgroundColor: 'gray',
19
- } }, { children: _jsxs(Box, Object.assign({ "data-testid": "ChargesList", sx: {
20
- position: 'relative',
21
- display: 'flex',
22
- flexDirection: 'column',
23
- width: '80%',
24
- height: '100%',
25
- } }, { children: [_jsx(Button, Object.assign({ onClick: toggleView }, { children: "Toggle" })), _jsx(VirtualTable, { showHeader: true, showFooter: true, footerProps: {
26
- totalCount: 4,
27
- sandboxMode: false,
28
- maximized: false,
29
- }, loadMoreItems: () => Promise.resolve(), isLoading: false, isFetchingNextPage: false, rows: [
30
- { index: '1', date: 'date', order: 'order' },
31
- { index: '2', date: 'date', order: 'order' },
32
- { index: '3', date: 'date', order: 'order' },
33
- ], areAllRowsLoaded: true, columnsSorting: { id: 'asc' }, onColumnSort: () => { }, columns: [
34
- { id: 'index', header: '', width: '28px' },
35
- {
36
- id: 'date',
37
- header: 'Date',
38
- width: '170px',
39
- },
40
- {
41
- id: 'order',
42
- header: 'Order',
43
- width: '170px',
44
- filter: {
45
- onConfirm: undefined,
46
- onClear: () => { },
47
- type: 'inputs',
48
- options: [
49
- {
50
- placeholder: 'Order',
51
- apiKey: 'orderID',
52
- },
53
- ],
54
- data: {},
55
- },
56
- },
57
- ], error: null, triggerDataRefetch: () => Promise.resolve(), tableTitle: "Acceptance-Charges", tableMode: 'sheet', dragControls: undefined, isSheetView: isSheetView })] })) })));
58
- };
@@ -1 +0,0 @@
1
- export { VTDemo } from './VTDemo';
@@ -1 +0,0 @@
1
- export { VTDemo } from './VTDemo';