@tap-payments/os-micro-frontend-shared 0.0.81 → 0.0.83

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 (45) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +12 -12
  3. package/build/components/SearchButton/styles.d.ts +1 -1
  4. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -1
  5. package/build/components/TableCells/CustomCells/ApplicationStatusCell/ApplicationStatusCell.d.ts +1 -1
  6. package/build/components/TableCells/CustomCells/ApplicationStatusCell/ApplicationStatusCell.js +2 -2
  7. package/build/components/TableCells/CustomCells/ApplicationStatusCell/type.d.ts +2 -0
  8. package/build/components/TableCells/CustomCells/SourceMergedCell/style.d.ts +1 -1
  9. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +1 -1
  10. package/build/components/VirtualTable/SheetView/SheetViewTableHeader.d.ts +17 -0
  11. package/build/components/VirtualTable/SheetView/SheetViewTableHeader.js +69 -0
  12. package/build/components/VirtualTable/SheetView/SheetViewVirtualTable.d.ts +10 -0
  13. package/build/components/VirtualTable/SheetView/SheetViewVirtualTable.js +120 -0
  14. package/build/components/VirtualTable/SheetView/hooks/usePinnedColumns.d.ts +11 -0
  15. package/build/components/VirtualTable/SheetView/hooks/usePinnedColumns.js +62 -0
  16. package/build/components/VirtualTable/SheetView/hooks/useSynchronizedScroll.d.ts +8 -0
  17. package/build/components/VirtualTable/SheetView/hooks/useSynchronizedScroll.js +30 -0
  18. package/build/components/VirtualTable/SheetView/index.d.ts +3 -0
  19. package/build/components/VirtualTable/SheetView/index.js +3 -0
  20. package/build/components/VirtualTable/SheetView/style.d.ts +31 -0
  21. package/build/components/VirtualTable/SheetView/style.js +86 -0
  22. package/build/components/VirtualTable/components/virtualScroll/ListItemWrapper.d.ts +1 -1
  23. package/build/components/VirtualTable/components/virtualScroll/ListItemWrapper.js +6 -2
  24. package/build/components/VirtualTable/components/virtualScroll/VirtualScrollList.d.ts +5 -5
  25. package/build/components/VirtualTable/components/virtualScroll/VirtualScrollList.js +9 -7
  26. package/build/components/VirtualTable/hooks/useScrollBackShadow.d.ts +2 -1
  27. package/build/components/VirtualTable/hooks/useScrollBackShadow.js +2 -2
  28. package/build/components/VirtualTable/index.d.ts +1 -0
  29. package/build/components/VirtualTable/index.js +1 -0
  30. package/build/components/VirtualTable/style.d.ts +3 -2
  31. package/build/components/VirtualTable/style.js +3 -0
  32. package/build/components/index.d.ts +1 -0
  33. package/build/components/index.js +1 -0
  34. package/build/constants/apps.d.ts +17 -0
  35. package/build/constants/apps.js +4 -0
  36. package/build/constants/assets.d.ts +2 -0
  37. package/build/constants/assets.js +2 -0
  38. package/build/constants/table/cell/walletStatementTableCellWidth.d.ts +1 -1
  39. package/build/constants/table/cell/walletStatementTableCellWidth.js +1 -1
  40. package/build/constants/table/cell/walletTableCellWidth.d.ts +1 -1
  41. package/build/constants/table/cell/walletTableCellWidth.js +1 -1
  42. package/build/constants/table.d.ts +1 -1
  43. package/build/constants/table.js +1 -1
  44. package/build/types/table.d.ts +3 -0
  45. package/package.json +129 -129
@@ -0,0 +1,86 @@
1
+ import { styled } from '@mui/material/styles';
2
+ import { TableHead } from '@mui/material';
3
+ import MUITableRow from '@mui/material/TableRow';
4
+ export const ActionIcon = styled('img')(() => ({
5
+ width: '13.3px',
6
+ height: '13.3px',
7
+ }));
8
+ export const ColumnIcon = styled('img')(() => ({
9
+ width: '8px',
10
+ height: '6.4px',
11
+ cursor: 'pointer',
12
+ }));
13
+ export const PinIconContainer = styled('div')(({ theme, isPinned }) => ({
14
+ width: '16px',
15
+ height: 'auto',
16
+ cursor: 'pointer',
17
+ display: 'flex',
18
+ alignItems: 'center',
19
+ justifyContent: 'center',
20
+ borderRadius: '2px',
21
+ padding: '2px',
22
+ transition: 'all 0.2s ease',
23
+ }));
24
+ export const StyledHeader = styled(TableHead, {
25
+ shouldForwardProp: (prop) => prop !== 'showBackDrop',
26
+ })(({ showBackDrop, theme }) => ({
27
+ width: '100%',
28
+ minWidth: 'fit-content',
29
+ flex: '0 0 auto',
30
+ boxShadow: showBackDrop ? theme.shadows[23] : 'none',
31
+ backgroundColor: theme.palette.background.default,
32
+ zIndex: 1,
33
+ }));
34
+ export const StyledMUITableRow = styled(MUITableRow)(({ theme }) => ({
35
+ display: 'flex',
36
+ justifyContent: 'flex-start',
37
+ width: '100%',
38
+ minWidth: 'fit-content',
39
+ height: '28px',
40
+ borderBottom: `1px solid ${theme.palette.divider}`,
41
+ backgroundColor: theme.palette.primary.light,
42
+ }));
43
+ export const SheetViewVirtualTableWrapper = styled('div')({
44
+ display: 'flex',
45
+ width: '100%',
46
+ height: '100%',
47
+ overflow: 'hidden',
48
+ });
49
+ const PinnedColumnBase = styled('div', {
50
+ shouldForwardProp: (prop) => prop !== 'width',
51
+ })(({ theme, width }) => ({
52
+ width: `${width}px`,
53
+ zIndex: 10,
54
+ flex: '0 0 auto',
55
+ minWidth: 0,
56
+ display: 'flex',
57
+ flexDirection: 'column',
58
+ position: 'relative',
59
+ backgroundColor: theme.palette.primary.light,
60
+ border: '1px solid #F2F2F2',
61
+ }));
62
+ export const PinnedStartColumnWrapper = styled(PinnedColumnBase)({
63
+ marginLeft: '32px',
64
+ boxShadow: '4px 0px 24px 0px #00000014',
65
+ });
66
+ export const PinnedEndColumnWrapper = styled(PinnedColumnBase)({
67
+ marginRight: '32px',
68
+ boxShadow: '-4px 0px 24px 0px #00000014',
69
+ });
70
+ export const MainTableWrapper = styled('div', {
71
+ shouldForwardProp: (prop) => prop !== 'hasPinnedStart' && prop !== 'hasPinnedEnd',
72
+ })(({ hasPinnedStart, hasPinnedEnd }) => ({
73
+ flex: '1 1 auto',
74
+ minWidth: 0,
75
+ display: 'flex',
76
+ flexDirection: 'column',
77
+ border: '1px solid #F2F2F2',
78
+ marginLeft: hasPinnedStart ? '0' : '32px',
79
+ marginRight: hasPinnedEnd ? '0' : '32px',
80
+ position: 'relative',
81
+ }));
82
+ export const UnpinnedTableHeaderWrapper = styled('div')({
83
+ flexShrink: 0,
84
+ borderBottom: '1px solid #E0E0E0',
85
+ height: 'auto',
86
+ });
@@ -6,5 +6,5 @@ export declare const LastRowContent: React.MemoExoticComponent<({ isLoadingRow }
6
6
  export declare const StyledItemWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
7
7
  showShadowHighlight?: boolean | undefined;
8
8
  }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
- declare function ListItemWrapper({ index, style, data: { renderedScrollTopRef, rows, rowProps, columns, isLoading, scrollToIndex, limit, totalCount, newLoadedRowsEndIndex, isError, areAllRowsLoaded, isSheetView, ...restData }, }: Readonly<ListChildComponentProps>): import("react/jsx-runtime").JSX.Element;
9
+ declare function ListItemWrapper({ index, style, data: { renderedScrollTopRef, rows, rowProps, columns, isLoading, scrollToIndex, limit, totalCount, newLoadedRowsEndIndex, isError, areAllRowsLoaded, isSheetView, isPinned, ...restData }, }: Readonly<ListChildComponentProps>): import("react/jsx-runtime").JSX.Element;
10
10
  export default ListItemWrapper;
@@ -44,7 +44,8 @@ export const StyledItemWrapper = styled('div', {
44
44
  height: '100%',
45
45
  }));
46
46
  function ListItemWrapper(_a) {
47
- var { index, style } = _a, _b = _a.data, { renderedScrollTopRef, rows, rowProps, columns, isLoading, scrollToIndex, limit, totalCount, newLoadedRowsEndIndex, isError, areAllRowsLoaded, isSheetView } = _b, restData = __rest(_b, ["renderedScrollTopRef", "rows", "rowProps", "columns", "isLoading", "scrollToIndex", "limit", "totalCount", "newLoadedRowsEndIndex", "isError", "areAllRowsLoaded", "isSheetView"]);
47
+ var _b;
48
+ var { index, style } = _a, _c = _a.data, { renderedScrollTopRef, rows, rowProps, columns, isLoading, scrollToIndex, limit, totalCount, newLoadedRowsEndIndex, isError, areAllRowsLoaded, isSheetView, isPinned = false } = _c, restData = __rest(_c, ["renderedScrollTopRef", "rows", "rowProps", "columns", "isLoading", "scrollToIndex", "limit", "totalCount", "newLoadedRowsEndIndex", "isError", "areAllRowsLoaded", "isSheetView", "isPinned"]);
48
49
  const lastItemIndex = rows.length - 1;
49
50
  const row = rows[index];
50
51
  const isLoadingRow = isLoading && index === lastItemIndex + 1;
@@ -54,6 +55,9 @@ function ListItemWrapper(_a) {
54
55
  const memoizedListItemComponent = React.useMemo(() => {
55
56
  const lastRowContent = _jsx(LastRowContent, { isLoadingRow: isLoadingRow });
56
57
  const isLastRow = isLoadingRow || (areAllRowsLoaded && index === lastItemIndex + 1);
58
+ if (isPinned && isLastRow) {
59
+ return _jsx(Box, { sx: { height: isSheetView ? SHEET_VIEW_TABLE_ROW_HEIGHT : TABLE_ROW_HEIGHT, backgroundColor: '#F6F8FACC' } });
60
+ }
57
61
  if (isLastRow) {
58
62
  return (_jsx(Box, Object.assign({ sx: {
59
63
  height: isSheetView ? SHEET_VIEW_TABLE_ROW_HEIGHT : TABLE_ROW_HEIGHT,
@@ -71,6 +75,6 @@ function ListItemWrapper(_a) {
71
75
  }
72
76
  return _jsx(TableRow, { index: index, row: row, columns: columns, rowProps: memoizedRowProps, isSheetView: isSheetView }, `row-${index}`);
73
77
  }, [restData, index, row, columns, memoizedRowProps, isSheetView]);
74
- return (_jsx("div", Object.assign({ "data-testid": "ListItemWrapper", style: Object.assign(Object.assign({}, style), { top: Number(style.top) - renderedScrollTopRef.current, willChange: 'top' }) }, { children: _jsx(StyledItemWrapper, Object.assign({ "data-testid": "ListItemWrapper_StyledItemWrapper" }, { children: memoizedListItemComponent })) })));
78
+ return (_jsx("div", Object.assign({ "data-testid": "ListItemWrapper", style: Object.assign(Object.assign({}, style), { top: Number(style.top) - ((_b = renderedScrollTopRef === null || renderedScrollTopRef === void 0 ? void 0 : renderedScrollTopRef.current) !== null && _b !== void 0 ? _b : 0), willChange: 'top' }) }, { children: _jsx(StyledItemWrapper, Object.assign({ "data-testid": "ListItemWrapper_StyledItemWrapper" }, { children: memoizedListItemComponent })) })));
75
79
  }
76
80
  export default ListItemWrapper;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { VariableSizeList, VariableSizeListProps } from 'react-window';
3
- type ExtendedVariableSizeListProps = VariableSizeListProps & {
3
+ declare const VirtualScrollList: React.ForwardRefExoticComponent<VariableSizeListProps<any> & {
4
4
  setBackdropVisibility: (isVisible: boolean) => void;
5
- scrollToIndex?: number;
6
- listRef?: React.RefObject<VariableSizeList>;
7
- };
8
- declare function VirtualScrollList({ itemData, children, setBackdropVisibility, scrollToIndex, listRef: externalListRef, ...restProps }: ExtendedVariableSizeListProps): import("react/jsx-runtime").JSX.Element;
5
+ scrollToIndex?: number | undefined;
6
+ listRef?: React.RefObject<VariableSizeList<any>> | undefined;
7
+ clearBackdropVisibilityTimeout?: number | undefined;
8
+ } & React.RefAttributes<VariableSizeList<any>>>;
9
9
  export default VirtualScrollList;
@@ -16,16 +16,17 @@ import VirtualScrollInner from './VirtualScrollInner';
16
16
  import VirtualScrollOuter from './VirtualScrollOuter';
17
17
  import useScrollBackShadow from '../../hooks/useScrollBackShadow';
18
18
  import { VirtualScrollOuterProvider } from '../../context';
19
- function VirtualScrollList(_a) {
20
- var { itemData, children, setBackdropVisibility, scrollToIndex, listRef: externalListRef } = _a, restProps = __rest(_a, ["itemData", "children", "setBackdropVisibility", "scrollToIndex", "listRef"]);
19
+ const VirtualScrollList = React.forwardRef((_a, ref) => {
20
+ var { itemData, children, setBackdropVisibility, scrollToIndex, listRef: externalListRef, onScroll, clearBackdropVisibilityTimeout } = _a, restProps = __rest(_a, ["itemData", "children", "setBackdropVisibility", "scrollToIndex", "listRef", "onScroll", "clearBackdropVisibilityTimeout"]);
21
21
  const { handleBackDropVisibility, clearBackdropVisibility, clearTimer } = useScrollBackShadow({
22
22
  setBackdropVisibility,
23
+ clearBackdropVisibilityTimeout,
23
24
  });
24
25
  const renderedScrollTopRef = useRef(0);
25
26
  const scrollTopRef = useRef(undefined);
26
27
  const scrollLocked = useRef(false);
27
28
  const internalListRef = useRef(null);
28
- const listRef = externalListRef || internalListRef;
29
+ const listRef = ref || externalListRef || internalListRef;
29
30
  const scrollTo = useCallback(() => {
30
31
  var _a, _b;
31
32
  clearTimer();
@@ -54,9 +55,10 @@ function VirtualScrollList(_a) {
54
55
  }
55
56
  }, [scrollToIndex, listRef]);
56
57
  const itemDataInternal = React.useMemo(() => (Object.assign(Object.assign({}, itemData), { renderedScrollTopRef })), [itemData]);
57
- const handleOnScroll = React.useCallback(() => {
58
+ const handleOnScroll = React.useCallback((props) => {
59
+ onScroll === null || onScroll === void 0 ? void 0 : onScroll(props);
58
60
  scrollLocked.current = scrollTo();
59
- }, [scrollTo]);
60
- return (_jsx(VirtualScrollOuterProvider, Object.assign({ value: handleScroll }, { children: _jsx(VariableSizeList, Object.assign({ ref: listRef, "data-testid": "VirtualScrollList", itemData: itemDataInternal, outerElementType: VirtualScrollOuter, innerElementType: VirtualScrollInner, onScroll: handleOnScroll }, restProps, { children: children })) })));
61
- }
61
+ }, [scrollTo, onScroll]);
62
+ return (_jsx(VirtualScrollOuterProvider, Object.assign({ value: handleScroll }, { children: _jsx(VariableSizeList, Object.assign({ ref: listRef, "data-testid": "VirtualScrollList", itemData: itemDataInternal, outerElementType: VirtualScrollOuter, innerElementType: VirtualScrollInner }, restProps, { onScroll: handleOnScroll }, { children: children })) })));
63
+ });
62
64
  export default VirtualScrollList;
@@ -1,7 +1,8 @@
1
1
  interface ScrollShadowProps {
2
2
  setBackdropVisibility: (isVisible: boolean) => void;
3
+ clearBackdropVisibilityTimeout?: number;
3
4
  }
4
- declare function useScrollBackShadow({ setBackdropVisibility }: ScrollShadowProps): {
5
+ declare function useScrollBackShadow({ setBackdropVisibility, clearBackdropVisibilityTimeout }: ScrollShadowProps): {
5
6
  handleBackDropVisibility: () => void;
6
7
  clearBackdropVisibility: () => void;
7
8
  clearTimer: () => void;
@@ -1,5 +1,5 @@
1
1
  import { useRef, useEffect } from 'react';
2
- function useScrollBackShadow({ setBackdropVisibility }) {
2
+ function useScrollBackShadow({ setBackdropVisibility, clearBackdropVisibilityTimeout }) {
3
3
  const timer = useRef(undefined);
4
4
  useEffect(() => {
5
5
  return () => {
@@ -12,7 +12,7 @@ function useScrollBackShadow({ setBackdropVisibility }) {
12
12
  const clearBackdropVisibility = () => {
13
13
  timer.current = setTimeout(() => {
14
14
  setBackdropVisibility(false);
15
- }, 2000);
15
+ }, clearBackdropVisibilityTimeout || 2000);
16
16
  };
17
17
  const clearTimer = () => {
18
18
  clearTimeout(timer.current);
@@ -1,5 +1,6 @@
1
1
  import VirtualTable from './VirtualTable';
2
2
  export { default as VirtualTableWithCard } from './VirtualTableWithCard';
3
3
  export * from './components';
4
+ export * from './SheetView';
4
5
  export { StyledCell } from './style';
5
6
  export default VirtualTable;
@@ -1,5 +1,6 @@
1
1
  import VirtualTable from './VirtualTable';
2
2
  export { default as VirtualTableWithCard } from './VirtualTableWithCard';
3
3
  export * from './components';
4
+ export * from './SheetView';
4
5
  export { StyledCell } from './style';
5
6
  export default VirtualTable;
@@ -27,7 +27,8 @@ export declare const StyledVirtualList: import("@emotion/styled").StyledComponen
27
27
  setBackdropVisibility: (isVisible: boolean) => void;
28
28
  scrollToIndex?: number | undefined;
29
29
  listRef?: import("react").RefObject<import("react-window").VariableSizeList<any>> | undefined;
30
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & StyledVirtualListProps, {}, {}>;
30
+ clearBackdropVisibilityTimeout?: number | undefined;
31
+ } & import("react").RefAttributes<import("react-window").VariableSizeList<any>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & StyledVirtualListProps, {}, {}>;
31
32
  export declare const StyledTableRow: import("@emotion/styled").StyledComponent<import("@mui/material").TableRowOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & {
32
33
  ref?: ((instance: HTMLTableRowElement | null) => void) | import("react").RefObject<HTMLTableRowElement> | null | undefined;
33
34
  }, "className" | "style" | "classes" | "children" | "sx" | "hover" | "selected"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
@@ -304,9 +305,9 @@ export declare const ActionIcon: import("@emotion/styled").StyledComponent<{
304
305
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
305
306
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
306
307
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
307
- referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
308
308
  src?: string | undefined;
309
309
  alt?: string | undefined;
310
+ referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
310
311
  crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
311
312
  useMap?: string | undefined;
312
313
  loading?: "eager" | "lazy" | undefined;
@@ -32,6 +32,9 @@ export const StyledCell = styled(TableCell, {
32
32
  shouldForwardProp: (prop) => !['isLast', 'isFirst', 'isSheetView'].includes(prop),
33
33
  })(({ theme, isLast, isFirst, isSheetView }) => (Object.assign({ paddingBlock: '0', paddingInline: '0.3875rem !important', paddingLeft: isFirst ? '0 !important' : '0.3875rem !important', paddingRight: isLast ? '0 !important' : '0.3875rem !important', color: theme.palette.grey[700], fontSize: theme.typography.caption.fontSize, height: '100%', fontWeight: theme.typography.fontWeightRegular, whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', display: 'flex', alignItems: 'center' }, (isSheetView && {
34
34
  borderRight: isLast ? 'none' : `1px solid ${theme.palette.divider}`,
35
+ paddingInline: '0.375rem !important',
36
+ paddingLeft: '0.375rem !important',
37
+ paddingRight: '0.375rem !important',
35
38
  }))));
36
39
  export const StyledVirtualList = styled(VirtualScrollList, {
37
40
  shouldForwardProp: (prop) => !['areTotalRowsNotFillingHeight', 'isSheetView'].includes(prop),
@@ -12,6 +12,7 @@ export { default as Dialog, DialogToolbar } from './Dialog';
12
12
  export { default as Tooltip } from './Tooltip';
13
13
  export * from './RFH';
14
14
  export { default as VirtualTable, TableRowLoading, TableHeader, TableLastItem, TableLoading, TableLoadingWithCard, TableNoData, TableNoDataWithCard, LastRowContent, ListItemWrapperWithCard, RowErrorState, StyledItemWrapper, TableRow, TableRowLoadingWithCard, TableRowWithCard, VirtualScrollInner, VirtualScrollList, VirtualScrollOuter, VirtualTableWithCard, Inputs, List, ColumnFilter, StyledCell, } from './VirtualTable';
15
+ export { default as SheetViewVirtualTable } from './VirtualTable/SheetView/SheetViewVirtualTable';
15
16
  export { default as Widget, ListItem, WidgetHeader, WidgetList } from './Widget';
16
17
  export { default as TapLogo } from './TapLogo';
17
18
  export { default as StatusButton, ChevronIcon, type ChevronIconProps, type StatusButtonIcon, type StatusButtonProps } from './StatusButton';
@@ -12,6 +12,7 @@ export { default as Dialog, DialogToolbar } from './Dialog';
12
12
  export { default as Tooltip } from './Tooltip';
13
13
  export * from './RFH';
14
14
  export { default as VirtualTable, TableRowLoading, TableHeader, TableLastItem, TableLoading, TableLoadingWithCard, TableNoData, TableNoDataWithCard, LastRowContent, ListItemWrapperWithCard, RowErrorState, StyledItemWrapper, TableRow, TableRowLoadingWithCard, TableRowWithCard, VirtualScrollInner, VirtualScrollList, VirtualScrollOuter, VirtualTableWithCard, Inputs, List, ColumnFilter, StyledCell, } from './VirtualTable';
15
+ export { default as SheetViewVirtualTable } from './VirtualTable/SheetView/SheetViewVirtualTable';
15
16
  export { default as Widget, ListItem, WidgetHeader, WidgetList } from './Widget';
16
17
  export { default as TapLogo } from './TapLogo';
17
18
  export { default as StatusButton, ChevronIcon } from './StatusButton';
@@ -98,6 +98,23 @@ export declare const APP_CODES: {
98
98
  };
99
99
  };
100
100
  };
101
+ retailer: {
102
+ code: string;
103
+ functions: {
104
+ view: {
105
+ code: string;
106
+ };
107
+ sandbox: {
108
+ code: string;
109
+ };
110
+ jsonApi: {
111
+ code: string;
112
+ };
113
+ reports: {
114
+ code: string;
115
+ };
116
+ };
117
+ };
101
118
  };
102
119
  };
103
120
  acceptance: {
@@ -42,6 +42,10 @@ export const APP_CODES = {
42
42
  code: 'MERCHANT',
43
43
  functions: Object.assign({}, SERVICE_COMMON_FUNCTIONS),
44
44
  },
45
+ retailer: {
46
+ code: 'RETAILER',
47
+ functions: Object.assign({}, SERVICE_COMMON_FUNCTIONS),
48
+ },
45
49
  },
46
50
  },
47
51
  acceptance: {
@@ -326,6 +326,8 @@ export declare const authenticationBiometricIcon: string;
326
326
  export declare const authenticationDeviceIcon: string;
327
327
  export declare const authenticationIssuerIcon: string;
328
328
  export declare const authenticationSchemeIcon: string;
329
+ export declare const pinIcon: string;
330
+ export declare const unpinIcon: string;
329
331
  export declare const switcherIcon: string;
330
332
  export declare const tokenSavedStatusIcon: string;
331
333
  export declare const tokenTransactedStatusIcon: string;
@@ -327,6 +327,8 @@ export const authenticationBiometricIcon = `${lightUrl}/status/authenticationBio
327
327
  export const authenticationDeviceIcon = `${lightUrl}/status/authenticationDevice.svg`;
328
328
  export const authenticationIssuerIcon = `${lightUrl}/status/authenticationIssuer.svg`;
329
329
  export const authenticationSchemeIcon = `${lightUrl}/status/authenticationScheme.svg`;
330
+ export const pinIcon = `${lightUrl}/pin.svg`;
331
+ export const unpinIcon = `${lightUrl}/unpin.svg`;
330
332
  export const switcherIcon = `${appBaseUrl}/switcher.svg`;
331
333
  export const tokenSavedStatusIcon = `${lightUrl}/status/table/tokensSaved.svg`;
332
334
  export const tokenTransactedStatusIcon = `${lightUrl}/status/table/tokensTransacted.svg`;
@@ -35,7 +35,7 @@ export declare const walletStatementTableCellWidth: {
35
35
  readonly sheet: "400px";
36
36
  };
37
37
  readonly source: {
38
- readonly default: "100px";
38
+ readonly default: "75px";
39
39
  readonly text: "125px";
40
40
  readonly sheet: "125px";
41
41
  };
@@ -35,7 +35,7 @@ export const walletStatementTableCellWidth = {
35
35
  sheet: '400px',
36
36
  },
37
37
  source: {
38
- default: '100px',
38
+ default: '75px',
39
39
  text: '125px',
40
40
  sheet: '125px',
41
41
  },
@@ -15,7 +15,7 @@ export declare const walletTableCellWidth: {
15
15
  readonly sheet: "250px";
16
16
  };
17
17
  readonly source: {
18
- readonly default: "70px";
18
+ readonly default: "75px";
19
19
  readonly text: "125px";
20
20
  readonly sheet: "125px";
21
21
  };
@@ -15,7 +15,7 @@ export const walletTableCellWidth = {
15
15
  sheet: '250px',
16
16
  },
17
17
  source: {
18
- default: '70px',
18
+ default: '75px',
19
19
  text: '125px',
20
20
  sheet: '125px',
21
21
  },
@@ -3,4 +3,4 @@ export declare const TABLE_CONTENT_ROW_HEIGHT = 70;
3
3
  export declare const TABLE_ROW_HEIGHT = 57;
4
4
  export declare const TABLE_THRESHOLD = 200;
5
5
  export declare const TABLE_LIST_OVER_SCAN = 5;
6
- export declare const SHEET_VIEW_TABLE_ROW_HEIGHT = 24;
6
+ export declare const SHEET_VIEW_TABLE_ROW_HEIGHT = 28;
@@ -3,4 +3,4 @@ export const TABLE_CONTENT_ROW_HEIGHT = 70;
3
3
  export const TABLE_ROW_HEIGHT = 57;
4
4
  export const TABLE_THRESHOLD = 200;
5
5
  export const TABLE_LIST_OVER_SCAN = 5;
6
- export const SHEET_VIEW_TABLE_ROW_HEIGHT = 24;
6
+ export const SHEET_VIEW_TABLE_ROW_HEIGHT = 28;
@@ -30,9 +30,12 @@ export interface IColumnProps<R = any> {
30
30
  sortable?: boolean;
31
31
  hidden?: boolean;
32
32
  order?: number;
33
+ pinned?: 'start' | 'end';
34
+ pinnable?: boolean;
33
35
  cellStyle?: React.CSSProperties;
34
36
  headerStyle?: React.CSSProperties;
35
37
  filter?: IColumnFilter;
38
+ isDefaultPinned?: boolean;
36
39
  }
37
40
  export interface TableFooterProps extends BoxProps {
38
41
  totalCount?: number;