@tap-payments/os-micro-frontend-shared 0.0.312 → 0.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.
Files changed (150) 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.js +1 -1
  4. package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableHeader/TableCell.js +3 -11
  5. package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableHeader/type.d.ts +1 -1
  6. package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableNoData.js +1 -1
  7. package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/style.js +0 -1
  8. package/build/components/{VirtualTable → VirtualTables/VirtualTable}/VirtualTable.d.ts +1 -1
  9. package/build/components/{VirtualTable → VirtualTables/VirtualTable}/VirtualTable.js +9 -9
  10. package/build/components/{VirtualTable → VirtualTables/VirtualTableWithCard}/VirtualTableWithCard.d.ts +1 -1
  11. package/build/components/{VirtualTable → VirtualTables/VirtualTableWithCard}/VirtualTableWithCard.js +7 -7
  12. package/build/components/{VirtualTable → VirtualTables}/components/ColumnSort/ColumnSort.js +1 -1
  13. package/build/components/{VirtualTable → VirtualTables}/components/TableHeader/components/TableCell/TableCell.d.ts +1 -1
  14. package/build/components/{VirtualTable → VirtualTables}/components/TableHeader/components/TableCell/TableCell.js +3 -3
  15. package/build/components/{VirtualTable → VirtualTables}/components/TableLoadingWithCard.d.ts +2 -3
  16. package/build/components/{VirtualTable → VirtualTables}/components/TableNoData.js +1 -1
  17. package/build/components/{VirtualTable → VirtualTables}/components/TableNoDataWithCard.d.ts +3 -4
  18. package/build/components/{VirtualTable → VirtualTables}/components/TableNoDataWithCard.js +1 -1
  19. package/build/components/{VirtualTable → VirtualTables}/components/TableRow.js +2 -2
  20. package/build/components/{VirtualTable → VirtualTables}/components/TableRowLoadingWithCard.d.ts +2 -3
  21. package/build/components/{VirtualTable → VirtualTables}/components/TableRowWithCard.d.ts +2 -3
  22. package/build/components/{VirtualTable → VirtualTables}/components/TableRowWithCard.js +1 -1
  23. package/build/components/{VirtualTable → VirtualTables/components}/style.js +9 -12
  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/{VirtualTable → VirtualTables}/utils/getSelectionStyles.d.ts +0 -11
  28. package/build/components/{VirtualTable → VirtualTables}/utils/getSelectionStyles.js +1 -8
  29. package/build/components/index.d.ts +2 -2
  30. package/build/components/index.js +2 -2
  31. package/build/types/table.d.ts +1 -1
  32. package/package.json +2 -2
  33. package/build/components/VirtualTable/index.d.ts +0 -6
  34. package/build/components/VirtualTable/index.js +0 -6
  35. package/build/playground/VTDemo.d.ts +0 -1
  36. package/build/playground/VTDemo.js +0 -58
  37. package/build/playground/index.d.ts +0 -1
  38. package/build/playground/index.js +0 -1
  39. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/SheetViewVirtualTable.d.ts +0 -0
  40. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableHeader/SheetViewTableHeader.d.ts +0 -0
  41. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableHeader/SheetViewTableHeader.js +0 -0
  42. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableHeader/TableCell.d.ts +0 -0
  43. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableHeader/index.d.ts +0 -0
  44. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableHeader/index.js +0 -0
  45. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableHeader/type.js +0 -0
  46. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableLoading.d.ts +0 -0
  47. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableLoading.js +0 -0
  48. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableNoData.d.ts +0 -0
  49. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableRowLoading.d.ts +0 -0
  50. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/SheetViewTableRowLoading.js +0 -0
  51. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/index.d.ts +0 -0
  52. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/components/index.js +0 -0
  53. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/hooks/usePinnedColumns.d.ts +0 -0
  54. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/hooks/usePinnedColumns.js +0 -0
  55. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/hooks/useSynchronizedScroll.d.ts +0 -0
  56. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/hooks/useSynchronizedScroll.js +0 -0
  57. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/index.d.ts +0 -0
  58. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/index.js +0 -0
  59. /package/build/components/{VirtualTable/SheetView → VirtualTables/SheetViewVirtualTable}/style.d.ts +0 -0
  60. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/ColumnFilter.d.ts +0 -0
  61. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/ColumnFilter.js +0 -0
  62. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/Inputs/Inputs.d.ts +0 -0
  63. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/Inputs/Inputs.js +0 -0
  64. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/Inputs/index.d.ts +0 -0
  65. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/Inputs/index.js +0 -0
  66. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/Inputs/style.d.ts +0 -0
  67. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/Inputs/style.js +0 -0
  68. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/List/List.d.ts +0 -0
  69. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/List/List.js +0 -0
  70. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/List/index.d.ts +0 -0
  71. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/List/index.js +0 -0
  72. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/index.d.ts +0 -0
  73. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/index.js +0 -0
  74. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/style.d.ts +0 -0
  75. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/style.js +0 -0
  76. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/type.d.ts +0 -0
  77. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnFilter/type.js +0 -0
  78. /package/build/components/{VirtualTable → VirtualTables}/components/ColumnSort/ColumnSort.d.ts +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}/style.d.ts +0 -0
  132. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/ListItemWrapper.d.ts +0 -0
  133. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/ListItemWrapperWithCard.d.ts +0 -0
  134. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/ListItemWrapperWithCard.js +0 -0
  135. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/VirtualScrollInner.d.ts +0 -0
  136. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/VirtualScrollInner.js +0 -0
  137. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/VirtualScrollList.d.ts +0 -0
  138. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/VirtualScrollList.js +0 -0
  139. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/VirtualScrollOuter.d.ts +0 -0
  140. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/VirtualScrollOuter.js +0 -0
  141. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/index.d.ts +0 -0
  142. /package/build/components/{VirtualTable → VirtualTables}/components/virtualScroll/index.js +0 -0
  143. /package/build/components/{VirtualTable → VirtualTables}/context/Provider.d.ts +0 -0
  144. /package/build/components/{VirtualTable → VirtualTables}/context/Provider.js +0 -0
  145. /package/build/components/{VirtualTable → VirtualTables}/context/context.d.ts +0 -0
  146. /package/build/components/{VirtualTable → VirtualTables}/context/context.js +0 -0
  147. /package/build/components/{VirtualTable → VirtualTables}/context/index.d.ts +0 -0
  148. /package/build/components/{VirtualTable → VirtualTables}/context/index.js +0 -0
  149. /package/build/components/{VirtualTable → VirtualTables}/hooks/useScrollBackShadow.d.ts +0 -0
  150. /package/build/components/{VirtualTable → VirtualTables}/hooks/useScrollBackShadow.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);
@@ -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';
@@ -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]);
@@ -26,15 +26,7 @@ function TableCell({ column: { header, id, align, headerStyle, sortable, filter,
26
26
  return (_jsxs(StyledCell, Object.assign({ "data-id": id, component: "div", "data-testid": "SheetViewVirtualTable_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, "data-column-pinned": isPinned, isFirst: isFirst, isLast: isLast, isSheetView: true, onClick: (event) => {
27
27
  onColumnClick === null || onColumnClick === void 0 ? void 0 : onColumnClick(id, event);
28
28
  setColumnFilterEl(event.currentTarget);
29
- }, sx: (theme) => (Object.assign({ display: 'flex', gap: theme.spacing(0.5), alignItems: 'center', justifyContent: align === 'right' ? 'flex-end' : 'flex-start', width, textAlign: align, overflow: 'unset', cursor: 'pointer', boxSizing: 'border-box', border: isSelected ? '1px solid #1F88D0' : '1px solid #F2F2F2', backgroundColor: isSelected ? '#F2F2F2' : '#FCFCFC', minHeight: isSelected ? '28px' : 'auto', position: 'relative', '&:before': {
30
- content: '""',
31
- border: isSelected ? '1px solid #1F88D0' : '1px solid transparent',
32
- position: 'absolute',
33
- top: 0,
34
- right: 0,
35
- left: 0,
36
- bottom: 0,
37
- } }, headerStyle)) }, { children: [typeof header === 'function' ? (header()) : (_jsx(Box, Object.assign({ "data-testid": "SheetViewTableHeader_columns_header", sx: { maxWidth: '100%', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' } }, { children: header && _jsx(HeaderText, Object.assign({ "data-testid": "SheetViewVirtualTable_TableHeader_StyledCell_header_text" }, { children: header })) }))), filter && (_jsx(ColumnFilter, Object.assign({}, filter, { anchorEl: columnFilterEl, setAnchorEl: setColumnFilterEl, onClose: (event) => {
29
+ }, sx: (theme) => (Object.assign({ display: 'flex', gap: theme.spacing(0.5), alignItems: 'center', justifyContent: align === 'right' ? 'flex-end' : 'flex-start', width, textAlign: align, overflow: 'unset', cursor: 'pointer', boxSizing: 'border-box', border: isSelected ? '2px solid #1F88D0' : '1px solid #F2F2F2', backgroundColor: isSelected ? '#F2F2F2' : '#FCFCFC', height: isSelected ? '100%' : 'auto', minHeight: isSelected ? '28px' : 'auto' }, headerStyle)) }, { children: [typeof header === 'function' ? (header()) : (_jsx(Box, Object.assign({ "data-testid": "SheetViewTableHeader_columns_header", sx: { maxWidth: '100%', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' } }, { children: header && _jsx(HeaderText, Object.assign({ "data-testid": "SheetViewVirtualTable_TableHeader_StyledCell_header_text" }, { children: header })) }))), filter && (_jsx(ColumnFilter, Object.assign({}, filter, { anchorEl: columnFilterEl, setAnchorEl: setColumnFilterEl, onClose: (event) => {
38
30
  onColumnClick === null || onColumnClick === void 0 ? void 0 : onColumnClick(id, event);
39
31
  } }))), sortable && (_jsx(ColumnSort, { columnId: id, onColumnSort: onColumnSort, columnsSorting: columnsSorting, onClick: (e) => {
40
32
  onColumnClick === null || onColumnClick === void 0 ? void 0 : onColumnClick(id, e);
@@ -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) {
@@ -44,7 +44,6 @@ export const StyledHeader = styled(TableHead, {
44
44
  export const StyledMUITableRow = styled(MUITableRow)(({ theme }) => ({
45
45
  display: 'flex',
46
46
  justifyContent: 'flex-start',
47
- alignItems: 'center',
48
47
  width: '100%',
49
48
  minWidth: 'fit-content',
50
49
  height: '28px',
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { IVirtualTable } from '../../types/index.js';
2
+ import type { IVirtualTable } from '../../../types/index.js';
3
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,
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, ReactElement } from 'react';
2
- import type { IVirtualTable } from '../../types/index.js';
2
+ import type { IVirtualTable } from '../../../types/index.js';
3
3
  export interface VirtualTableWithCardProps extends Omit<IVirtualTable, 'showHeader' | 'dimensions' | ' showBackgroundColor' | 'columns'> {
4
4
  tableHeader?: ReactNode;
5
5
  renderCardComponent: (rows: any) => ReactElement | null;
@@ -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,
@@ -27,7 +27,7 @@ function ColumnSort({ onColumnSort, columnsSorting, columnId, onClick }) {
27
27
  handleClose(event);
28
28
  }
29
29
  };
30
- return (_jsxs(_Fragment, { children: [_jsx(ColumnIcon, { onClick: handleClick, src: columnIcon, alt: "column-icon", "data-id": columnId, sx: { userSelect: 'none', marginTop: '2px' } }), open && _jsx(CustomBackdrop, { onClick: handleClose }), _jsxs(Menu, Object.assign({ anchorEl: anchorEl, open: open }, { children: [_jsxs(MenuItem, Object.assign({ onClick: (e) => {
30
+ return (_jsxs(_Fragment, { children: [_jsx(ColumnIcon, { onClick: handleClick, src: columnIcon, alt: "column-icon", "data-id": columnId, sx: { userSelect: 'none' } }), open && _jsx(CustomBackdrop, { onClick: handleClose }), _jsxs(Menu, Object.assign({ anchorEl: anchorEl, open: open }, { children: [_jsxs(MenuItem, Object.assign({ onClick: (e) => {
31
31
  handleSortingOption(anchorEl === null || anchorEl === void 0 ? void 0 : anchorEl.dataset.id, 'asc', e);
32
32
  }, sx: (theme) => (Object.assign({}, ((columnsSorting === null || columnsSorting === void 0 ? void 0 : columnsSorting[(anchorEl === null || anchorEl === void 0 ? void 0 : anchorEl.dataset.id) || '']) === 'asc' && { boxShadow: theme.shadows[10] }))) }, { children: [_jsx(ActionIcon, { src: sortAzIcon, alt: "sort-icon" }), _jsx(Text, Object.assign({ sx: { fontSize: '0.6875rem' } }, { children: "Sort Z-A" }))] })), _jsxs(MenuItem, Object.assign({ onClick: (e) => {
33
33
  handleSortingOption(anchorEl === null || anchorEl === void 0 ? void 0 : anchorEl.dataset.id, 'desc', e);
@@ -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) => {
@@ -25,7 +25,7 @@ function TableRow({ row, columns, index, rowProps, isSheetView, selectedCell = n
25
25
  isColumnSelected,
26
26
  isLastRow,
27
27
  });
28
- return (_jsx(StyledCell, Object.assign({ component: "div", "data-testid": "TableRow_TableCell", "data-column-id": column.id, "data-column-width": column.width, "data-column-width-used": column.width, "data-column-align": column.align, "data-column-order": column.order, "data-column-header": typeof column.header === 'string' ? column.header : 'component', "data-column-sortable": !!column.sortable, "data-column-filterable": !!column.filter, isFirst: column.id === columns[0].id, isLast: column.id === columns[columns.length - 1].id, onClick: (event) => onCellClick === null || onCellClick === void 0 ? void 0 : onCellClick(index, columnIdStr, event), sx: Object.assign(Object.assign({ width: column.width, minWidth: column.width, textAlign: column.align, justifyContent: column.align === 'right' ? 'flex-end' : 'flex-start', cursor: onCellClick ? 'pointer' : 'default' }, selectionStyles), column.cellStyle), isSheetView: isSheetView, isSelected: isCellSelected }, { children: renderCell(column) }), `${column.id}-${colIndex}`));
28
+ return (_jsx(StyledCell, Object.assign({ component: "div", "data-testid": "TableRow_TableCell", "data-column-id": column.id, "data-column-width": column.width, "data-column-width-used": column.width, "data-column-align": column.align, "data-column-order": column.order, "data-column-header": typeof column.header === 'string' ? column.header : 'component', "data-column-sortable": !!column.sortable, "data-column-filterable": !!column.filter, isFirst: column.id === columns[0].id, isLast: column.id === columns[columns.length - 1].id, onClick: (event) => onCellClick === null || onCellClick === void 0 ? void 0 : onCellClick(index, columnIdStr, event), sx: Object.assign(Object.assign({ width: column.width, minWidth: column.width, textAlign: column.align, justifyContent: column.align === 'right' ? 'flex-end' : 'flex-start', cursor: onCellClick ? 'pointer' : 'default' }, selectionStyles), column.cellStyle), isSheetView: isSheetView, isSelected: isCellSelected && (column === null || column === void 0 ? void 0 : column.isDefaultPinned) }, { children: renderCell(column) }), `${column.id}-${colIndex}`));
29
29
  }) })), [columns, row, index, selectedCell, selectedColumn, onCellClick, isLastRow]);
30
30
  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, isSheetView: isSheetView }), content));
31
31
  }
@@ -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
  }
@@ -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 }) => ({
@@ -30,20 +30,17 @@ export const StyledSolidBackground = styled(Box)(({ theme }) => ({
30
30
  }));
31
31
  export const StyledCell = styled(TableCell, {
32
32
  shouldForwardProp: (prop) => !['isLast', 'isFirst', 'isSheetView', 'isSelected'].includes(prop),
33
- })(({ theme, isLast, isFirst, isSheetView, isSelected }) => (Object.assign({ paddingBlock: '0', paddingInline: '0.3875rem !important', paddingLeft: isFirst ? '0 !important' : '0.3875rem !important', paddingRight: isLast ? '0 !important' : '0.3875rem !important', color: isSheetView ? theme.palette.text.primary : theme.palette.grey[700], fontSize: isSheetView ? theme.typography.subtitle1.fontSize : theme.typography.caption.fontSize, height: '100%', fontWeight: isSheetView ? 400 : theme.typography.fontWeightRegular, whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', display: 'flex', alignItems: 'center', cursor: 'pointer' }, (isSheetView && Object.assign({ borderRight: isLast ? 'none' : `1px solid ${theme.palette.divider}`, paddingInline: '8px !important', paddingLeft: '8px !important', paddingRight: '8px !important', position: 'relative', borderTop: '1px solid transparent', borderLeft: '1px solid transparent', '&:before': {
34
- content: '""',
35
- borderRight: isLast ? 'none' : '1px solid transparent',
36
- position: 'absolute',
37
- top: 0,
38
- right: 0,
39
- left: 0,
40
- bottom: 0,
41
- } }, (isSelected && {
33
+ })(({ theme, isLast, isFirst, isSheetView, isSelected }) => (Object.assign(Object.assign({ paddingBlock: '0', paddingInline: '0.3875rem !important', paddingLeft: isFirst ? '0 !important' : '0.3875rem !important', paddingRight: isLast ? '0 !important' : '0.3875rem !important', color: isSheetView ? theme.palette.text.primary : theme.palette.grey[700], fontSize: isSheetView ? theme.typography.subtitle1.fontSize : theme.typography.caption.fontSize, height: '100%', fontWeight: isSheetView ? 400 : theme.typography.fontWeightRegular, whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', display: 'flex', alignItems: 'center', cursor: 'pointer' }, (isSheetView && {
34
+ borderRight: isLast ? 'none' : `1px solid ${theme.palette.divider}`,
35
+ paddingInline: '8px !important',
36
+ paddingLeft: '8px !important',
37
+ paddingRight: '8px !important',
38
+ })), (isSelected && {
42
39
  color: '#1F88D0 !important',
43
40
  '& *': {
44
41
  color: '#1F88D0 !important',
45
42
  },
46
- }))))));
43
+ }))));
47
44
  export const StyledVirtualList = styled(VirtualScrollList, {
48
45
  shouldForwardProp: (prop) => !['areTotalRowsNotFillingHeight', 'isSheetView'].includes(prop),
49
46
  })(({ theme, areTotalRowsNotFillingHeight, isSheetView }) => (Object.assign({ backgroundColor: areTotalRowsNotFillingHeight ? 'transparent' : theme.palette.background.default }, (isSheetView && {
@@ -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 };
@@ -8,7 +8,6 @@ export declare const getSelectionStyles: ({ isSelected, isCellSelected, isColumn
8
8
  border?: undefined;
9
9
  backgroundColor?: undefined;
10
10
  color?: undefined;
11
- '&:before'?: undefined;
12
11
  borderWidth?: undefined;
13
12
  borderStyle?: undefined;
14
13
  borderColor?: undefined;
@@ -21,11 +20,6 @@ export declare const getSelectionStyles: ({ isSelected, isCellSelected, isColumn
21
20
  border: string;
22
21
  backgroundColor: string;
23
22
  color: string;
24
- '&:before': {
25
- border: string;
26
- borderWidth?: undefined;
27
- borderBottom?: undefined;
28
- };
29
23
  borderWidth?: undefined;
30
24
  borderStyle?: undefined;
31
25
  borderColor?: undefined;
@@ -43,11 +37,6 @@ export declare const getSelectionStyles: ({ isSelected, isCellSelected, isColumn
43
37
  minHeight: string;
44
38
  display: string;
45
39
  alignItems: string;
46
- '&:before': {
47
- borderWidth: string;
48
- borderBottom: string;
49
- border?: undefined;
50
- };
51
40
  border?: undefined;
52
41
  backgroundColor?: undefined;
53
42
  color?: undefined;
@@ -3,12 +3,9 @@ export const getSelectionStyles = ({ isSelected, isCellSelected, isColumnSelecte
3
3
  return {};
4
4
  if (isCellSelected && !isColumnSelected) {
5
5
  return {
6
- border: '1px solid #1F88D0',
6
+ border: '2px solid #1F88D0',
7
7
  backgroundColor: 'white',
8
8
  color: '#1F88D0',
9
- '&:before': {
10
- border: '1px solid #1F88D0',
11
- },
12
9
  };
13
10
  }
14
11
  if (isColumnSelected) {
@@ -21,10 +18,6 @@ export const getSelectionStyles = ({ isSelected, isCellSelected, isColumnSelecte
21
18
  minHeight: '28px',
22
19
  display: 'flex',
23
20
  alignItems: 'center',
24
- '&:before': {
25
- borderWidth: isLastRow ? '0px 1.5px 1px 1.5px' : '0px 1.5px 0px 1.5px',
26
- borderBottom: !isLastRow ? '1px solid transparent' : '1.5px solid #1F88D0',
27
- },
28
21
  };
29
22
  }
30
23
  return {};
@@ -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';
@@ -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> {
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.312",
5
- "testVersion": 0,
4
+ "version": "0.1.1",
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(), showBackgroundColor: false, 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';