@tap-payments/os-micro-frontend-shared 0.0.131 → 0.0.132
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/DeviceIcon/DeviceIcon.d.ts +3 -1
- package/build/components/DeviceIcon/DeviceIcon.js +3 -3
- package/build/components/DeviceIcon/style.d.ts +4 -1
- package/build/components/DeviceIcon/style.js +4 -1
- package/build/components/MaskedText/MaskedText.d.ts +3 -0
- package/build/components/MaskedText/MaskedText.js +11 -0
- package/build/components/MaskedText/index.d.ts +3 -0
- package/build/components/MaskedText/index.js +2 -0
- package/build/components/MaskedText/type.d.ts +7 -0
- package/build/components/MaskedText/type.js +1 -0
- package/build/components/StatusButton/StatusButton.js +2 -2
- package/build/components/StatusChip/StatusChip.d.ts +4 -0
- package/build/components/StatusChip/StatusChip.js +19 -0
- package/build/components/StatusChip/index.d.ts +3 -0
- package/build/components/StatusChip/index.js +2 -0
- package/build/components/StatusChip/style.d.ts +14 -0
- package/build/components/StatusChip/style.js +32 -0
- package/build/components/StatusChip/type.d.ts +9 -0
- package/build/components/StatusChip/type.js +1 -0
- package/build/components/StatusIcons/AuthorizedIcon/AuthorizedIcon.d.ts +3 -1
- package/build/components/StatusIcons/AuthorizedIcon/AuthorizedIcon.js +4 -4
- package/build/components/StatusIcons/DeviceIcon/DeviceIcon.d.ts +3 -1
- package/build/components/StatusIcons/DeviceIcon/DeviceIcon.js +2 -2
- package/build/components/StatusIcons/IssuerIcon/IssuerIcon.d.ts +1 -1
- package/build/components/StatusIcons/IssuerIcon/IssuerIcon.js +2 -2
- package/build/components/StatusIcons/IssuerIcon/style.d.ts +4 -1
- package/build/components/StatusIcons/IssuerIcon/style.js +3 -4
- package/build/components/StatusIcons/IssuerIcon/type.d.ts +2 -0
- package/build/components/TableCells/CustomCells/ActionCell/ActionCell.d.ts +3 -1
- package/build/components/TableCells/CustomCells/ActionCell/ActionCell.js +5 -4
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +4 -1
- package/build/components/TableCells/CustomCells/ActionCell/style.js +4 -2
- package/build/components/TableCells/CustomCells/DestinationCell/DestinationCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/DestinationCell/DestinationCell.js +3 -2
- package/build/components/TableCells/CustomCells/DestinationCell/styled.d.ts +4 -1
- package/build/components/TableCells/CustomCells/DestinationCell/styled.js +4 -2
- package/build/components/TableCells/CustomCells/ReceiptCell/ReceiptCell.d.ts +2 -1
- package/build/components/TableCells/CustomCells/ReceiptCell/ReceiptCell.js +4 -1
- package/build/components/TableCells/CustomCells/ReferenceCell/ReferenceCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/ReferenceCell/ReferenceCell.js +5 -1
- package/build/components/TableCells/CustomCells/ReferenceCell/type.d.ts +5 -2
- package/build/components/TableCells/CustomCells/SheetViewIDButton/SheetViewIDButton.d.ts +7 -0
- package/build/components/TableCells/CustomCells/SheetViewIDButton/SheetViewIDButton.js +35 -0
- package/build/components/TableCells/CustomCells/SheetViewIDButton/index.d.ts +1 -0
- package/build/components/TableCells/CustomCells/SheetViewIDButton/index.js +1 -0
- package/build/components/TableCells/CustomCells/SheetViewIDButton/style.d.ts +3 -0
- package/build/components/TableCells/CustomCells/SheetViewIDButton/style.js +22 -0
- package/build/components/TableCells/CustomCells/SourceMergedCell/SourceMergedCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/SourceMergedCell/SourceMergedCell.js +28 -2
- package/build/components/TableCells/CustomCells/SourceMergedCell/type.d.ts +2 -1
- package/build/components/TableCells/CustomCells/StatusCell/StatusCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/StatusCell/StatusCell.js +6 -2
- package/build/components/TableCells/CustomCells/StatusCell/style.js +1 -0
- package/build/components/TableCells/CustomCells/StatusCell/type.d.ts +1 -0
- package/build/components/TableCells/CustomCells/index.d.ts +1 -0
- package/build/components/TableCells/CustomCells/index.js +1 -0
- package/build/components/TableCells/CustomCells/style.d.ts +4 -1
- package/build/components/TableCells/CustomCells/style.js +6 -9
- package/build/components/TableCells/CustomCells/type.d.ts +2 -1
- package/build/components/TableHeader_V2/components/StatusButtons/StatusButton.js +4 -7
- package/build/components/VirtualTable/SheetView/SheetViewVirtualTable.d.ts +1 -1
- package/build/components/VirtualTable/SheetView/SheetViewVirtualTable.js +1 -1
- package/build/components/VirtualTable/style.js +3 -3
- package/build/components/index.d.ts +2 -0
- package/build/components/index.js +2 -0
- package/build/constants/assets.d.ts +1 -0
- package/build/constants/assets.js +1 -0
- package/build/constants/table/cell/chargeTableCellWidth.d.ts +13 -13
- package/build/constants/table/cell/chargeTableCellWidth.js +13 -13
- package/build/types/table.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SheetViewIDButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SheetViewIDButton';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Button: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
|
+
export declare const RowId: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { styled } from '@mui/material/styles';
|
|
2
|
+
export const Button = styled('div')(({ theme }) => ({
|
|
3
|
+
position: 'relative',
|
|
4
|
+
display: 'flex',
|
|
5
|
+
alignItems: 'center',
|
|
6
|
+
gap: theme.spacing(1),
|
|
7
|
+
cursor: 'pointer',
|
|
8
|
+
justifyContent: 'center',
|
|
9
|
+
paddingInline: '8px',
|
|
10
|
+
borderRadius: '24px',
|
|
11
|
+
border: `1px solid ${theme.palette.divider}`,
|
|
12
|
+
}));
|
|
13
|
+
export const RowId = styled('div')(({ theme }) => ({
|
|
14
|
+
fontSize: '11px',
|
|
15
|
+
height: '18px',
|
|
16
|
+
display: 'flex',
|
|
17
|
+
alignItems: 'center',
|
|
18
|
+
fontWeight: 400,
|
|
19
|
+
whiteSpace: 'nowrap',
|
|
20
|
+
overflow: 'hidden',
|
|
21
|
+
textOverflow: 'ellipsis',
|
|
22
|
+
}));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SourceMergedCellProps } from './type';
|
|
2
|
-
declare function SourceMergedCell({ icons, isTextShown, centerIconKey, collapsedViewIcon, isReversed, ...props }: Readonly<SourceMergedCellProps>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare function SourceMergedCell({ icons, isTextShown, centerIconKey, collapsedViewIcon, isReversed, tableMode, ...props }: Readonly<SourceMergedCellProps>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default SourceMergedCell;
|
|
@@ -16,13 +16,16 @@ import { StatusContainer, StatusWrapper, StatusIcon } from './style';
|
|
|
16
16
|
import { getIconXTranslation } from './utils';
|
|
17
17
|
import CollapsedViewIcon from './CollapsedViewIcon';
|
|
18
18
|
function SourceMergedCell(_a) {
|
|
19
|
-
var { icons, isTextShown, centerIconKey, collapsedViewIcon, isReversed = false } = _a, props = __rest(_a, ["icons", "isTextShown", "centerIconKey", "collapsedViewIcon", "isReversed"]);
|
|
19
|
+
var { icons, isTextShown, centerIconKey, collapsedViewIcon, isReversed = false, tableMode } = _a, props = __rest(_a, ["icons", "isTextShown", "centerIconKey", "collapsedViewIcon", "isReversed", "tableMode"]);
|
|
20
20
|
const iconsList = useMemo(() => icons.filter((icon) => Boolean(icon.icon)), [icons]);
|
|
21
21
|
const [isHovering, setIsHovering] = useState(false);
|
|
22
22
|
const centerIconIndex = Math.max(centerIconKey ? iconsList.findIndex((icon) => icon.key === centerIconKey) : 0, 0);
|
|
23
23
|
const iconRefs = useRef([]);
|
|
24
24
|
const [iconMeasurements, setIconMeasurements] = useState(new Map());
|
|
25
|
+
const isSheetMode = tableMode === 'sheet';
|
|
25
26
|
useEffect(() => {
|
|
27
|
+
if (isSheetMode)
|
|
28
|
+
return;
|
|
26
29
|
setTimeout(() => {
|
|
27
30
|
const tableMode = isTextShown ? 'text' : 'default';
|
|
28
31
|
const newMeasurements = new Map();
|
|
@@ -35,9 +38,32 @@ function SourceMergedCell(_a) {
|
|
|
35
38
|
});
|
|
36
39
|
setIconMeasurements(new Map([...iconMeasurements, ...newMeasurements]));
|
|
37
40
|
}, 50);
|
|
38
|
-
}, [iconsList, isTextShown, isHovering]);
|
|
41
|
+
}, [iconsList, isTextShown, isHovering, isSheetMode]);
|
|
39
42
|
const hasPreviousIcon = (isReversed && iconsList.length > 1) || centerIconIndex > 0;
|
|
40
43
|
const hasNextIcon = !isReversed && centerIconIndex < iconsList.length - 1;
|
|
44
|
+
if (isSheetMode) {
|
|
45
|
+
return (_jsx(TableCell, Object.assign({}, props, { "data-testid": "StatusCell", sx: {
|
|
46
|
+
position: 'relative',
|
|
47
|
+
overflow: 'visible',
|
|
48
|
+
zIndex: 101,
|
|
49
|
+
} }, { children: _jsx("div", Object.assign({ style: {
|
|
50
|
+
display: 'flex',
|
|
51
|
+
alignItems: 'center',
|
|
52
|
+
gap: '4px',
|
|
53
|
+
height: '18px',
|
|
54
|
+
} }, { children: iconsList === null || iconsList === void 0 ? void 0 : iconsList.map((icon, index) => (_jsx("div", Object.assign({ "data-testid": `StatusWrapper-${icon.key}`, style: {
|
|
55
|
+
display: 'flex',
|
|
56
|
+
alignItems: 'center',
|
|
57
|
+
opacity: 1,
|
|
58
|
+
border: '1px solid #F2F2F2',
|
|
59
|
+
borderRadius: '24px',
|
|
60
|
+
padding: '0px 8px',
|
|
61
|
+
} }, { children: _jsx("div", Object.assign({ style: {
|
|
62
|
+
display: 'flex',
|
|
63
|
+
alignItems: 'center',
|
|
64
|
+
opacity: 1,
|
|
65
|
+
} }, { children: icon.icon })) }), `StatusWrapper-${icon.key}-${index}`))) })) })));
|
|
66
|
+
}
|
|
41
67
|
return (_jsx(TableCell, Object.assign({}, props, { "data-testid": "StatusCell", sx: {
|
|
42
68
|
position: 'relative',
|
|
43
69
|
overflow: 'visible',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { TableCellProps } from '@mui/material/TableCell';
|
|
3
|
-
import { SourceMergedCellIcons } from '../../../../types/index.js';
|
|
3
|
+
import { SourceMergedCellIcons, TableMode } from '../../../../types/index.js';
|
|
4
4
|
import type { SxProps } from '@mui/material';
|
|
5
5
|
export interface SourceMergedCellProps extends TableCellProps {
|
|
6
6
|
icons: {
|
|
@@ -15,4 +15,5 @@ export interface SourceMergedCellProps extends TableCellProps {
|
|
|
15
15
|
};
|
|
16
16
|
isReversed?: boolean;
|
|
17
17
|
sx?: SxProps;
|
|
18
|
+
tableMode?: TableMode;
|
|
18
19
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StatusCellProps } from './type';
|
|
2
|
-
declare function StatusCell({ statuses, isTextShown, centerIconKey, xGap, ...props }: Readonly<StatusCellProps & {
|
|
2
|
+
declare function StatusCell({ statuses, isTextShown, centerIconKey, xGap, tableMode, ...props }: Readonly<StatusCellProps & {
|
|
3
3
|
isChargesService?: boolean;
|
|
4
4
|
isAuthorizationsService?: boolean;
|
|
5
5
|
}>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,12 +11,16 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { TableCell } from '../../../TableCells';
|
|
14
|
+
import StatusChip from '../../../StatusChip';
|
|
14
15
|
import { StatusIcon, StatusContainer, StatusWrapper } from './style';
|
|
15
16
|
import { getStatusesFilteredObject } from './utils';
|
|
16
17
|
function StatusCell(_a) {
|
|
17
|
-
var { statuses, isTextShown, centerIconKey, xGap } = _a, props = __rest(_a, ["statuses", "isTextShown", "centerIconKey", "xGap"]);
|
|
18
|
-
const statusesFilteredObject = getStatusesFilteredObject(statuses);
|
|
18
|
+
var { statuses, isTextShown, centerIconKey, xGap, tableMode } = _a, props = __rest(_a, ["statuses", "isTextShown", "centerIconKey", "xGap", "tableMode"]);
|
|
19
|
+
const statusesFilteredObject = statuses ? getStatusesFilteredObject(statuses) : {};
|
|
19
20
|
const statusesList = Object.values(statusesFilteredObject).filter(Boolean);
|
|
21
|
+
if (tableMode === 'sheet') {
|
|
22
|
+
return (_jsx(TableCell, Object.assign({}, props, { children: _jsx(StatusContainer, { children: statusesList.map((status, index) => (_jsx(StatusChip, Object.assign({ borderColor: "transparent", padding: '0px' }, { children: status }), index))) }) })));
|
|
23
|
+
}
|
|
20
24
|
const xGapValue = isTextShown ? xGap || 120 : 40;
|
|
21
25
|
const centerIconIndex = centerIconKey ? Object.entries(statusesFilteredObject).findIndex(([key]) => key === centerIconKey) : 0;
|
|
22
26
|
return (_jsx(TableCell, Object.assign({}, props, { "data-testid": "StatusCell", sx: {
|
|
@@ -42,6 +42,7 @@ export * from './ApplicationStatusCell';
|
|
|
42
42
|
export * from './SegmentsCell';
|
|
43
43
|
export * from './MarketPlaceCell';
|
|
44
44
|
export * from './IndividualsCell';
|
|
45
|
+
export * from './SheetViewIDButton';
|
|
45
46
|
export * from './BrandsCell';
|
|
46
47
|
export * from './type';
|
|
47
48
|
export * from './style';
|
|
@@ -42,6 +42,7 @@ export * from './ApplicationStatusCell';
|
|
|
42
42
|
export * from './SegmentsCell';
|
|
43
43
|
export * from './MarketPlaceCell';
|
|
44
44
|
export * from './IndividualsCell';
|
|
45
|
+
export * from './SheetViewIDButton';
|
|
45
46
|
export * from './BrandsCell';
|
|
46
47
|
export * from './type';
|
|
47
48
|
export * from './style';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { TableMode } from '../../../types/index.js';
|
|
2
3
|
export declare const GeographyBox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
3
4
|
variant?: "Local" | "Global" | "Regional" | undefined;
|
|
4
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -271,7 +272,9 @@ export declare const StarBadgeWrapper: import("@emotion/styled").StyledComponent
|
|
|
271
272
|
isShown?: boolean | undefined;
|
|
272
273
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
273
274
|
export declare const CountBadge: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
274
|
-
export declare const IdButtonContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme
|
|
275
|
+
export declare const IdButtonContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
276
|
+
tableMode?: TableMode | undefined;
|
|
277
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
275
278
|
export declare const AvatarStyled: import("@emotion/styled").StyledComponent<import("@mui/material").AvatarOwnProps & import("@mui/material").AvatarSlotsAndSlotProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
276
279
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
277
280
|
}, "className" | "style" | "classes" | "children" | "sx" | "src" | "alt" | "variant" | "slots" | "slotProps" | "sizes" | "srcSet" | "imgProps"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -63,15 +63,12 @@ export const CountBadge = styled('span')(({ theme }) => ({
|
|
|
63
63
|
fontSize: '9.782px',
|
|
64
64
|
fontWeight: 600,
|
|
65
65
|
}));
|
|
66
|
-
export const IdButtonContainer = styled('div'
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
borderRadius: '64px;',
|
|
73
|
-
border: '1px solid #F2F2F2;',
|
|
74
|
-
});
|
|
66
|
+
export const IdButtonContainer = styled('div', {
|
|
67
|
+
shouldForwardProp: (props) => props !== 'tableMode',
|
|
68
|
+
})(({ tableMode }) => (Object.assign({ display: 'flex', width: '24px', height: tableMode === 'sheet' ? '18px' : '24px', alignItems: 'center', justifyContent: 'center', borderRadius: '64px;', border: '1px solid #F2F2F2;' }, (tableMode === 'sheet' && {
|
|
69
|
+
width: '100%',
|
|
70
|
+
padding: '5px 8px',
|
|
71
|
+
}))));
|
|
75
72
|
export const AvatarStyled = styled(Avatar)(({ theme }) => ({
|
|
76
73
|
width: 24,
|
|
77
74
|
height: 24,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { TableCellProps } from '@mui/material';
|
|
3
|
-
import type { Charge } from '../../../types/index.js';
|
|
3
|
+
import type { Charge, TableMode } from '../../../types/index.js';
|
|
4
4
|
import type { ActionType, FlagType } from './ActionCell';
|
|
5
5
|
import { getGeographyBoxColor } from '../../../utils/index.js';
|
|
6
6
|
export type GeographyBoxVariant = keyof ReturnType<typeof getGeographyBoxColor>;
|
|
@@ -80,6 +80,7 @@ export interface DestinationCellProps extends TableCellProps {
|
|
|
80
80
|
}>;
|
|
81
81
|
};
|
|
82
82
|
iconDirection?: 'left' | 'right';
|
|
83
|
+
tableMode?: TableMode;
|
|
83
84
|
}
|
|
84
85
|
export interface ActionCellProps extends TableCellProps {
|
|
85
86
|
row?: unknown;
|
|
@@ -37,15 +37,12 @@ export const StatusButton = memo((props) => {
|
|
|
37
37
|
var _a, _b;
|
|
38
38
|
(_a = props === null || props === void 0 ? void 0 : props.onClick) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
39
39
|
onButtonBodyClick === null || onButtonBodyClick === void 0 ? void 0 : onButtonBodyClick(lastActiveStatus || ((_b = dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions[0]) === null || _b === void 0 ? void 0 : _b.status) || 'all');
|
|
40
|
+
if (hasDropdown) {
|
|
41
|
+
setAnchorEl(buttonRef.current);
|
|
42
|
+
}
|
|
40
43
|
}, sx: Object.assign({}, (hasDropdown && {
|
|
41
44
|
paddingInlineEnd: '27px',
|
|
42
|
-
})) }, { children: _jsxs(LabelWrapper, { children: [_jsxs(Label, Object.assign({ variant: variant }, { children: [statusIcon, lastActiveStatus ? t(lastActiveStatus) : label, statusBadge] })), dropdownIcon &&
|
|
43
|
-
e.stopPropagation();
|
|
44
|
-
e.preventDefault();
|
|
45
|
-
if (hasDropdown) {
|
|
46
|
-
setAnchorEl(buttonRef.current);
|
|
47
|
-
}
|
|
48
|
-
} }, { children: dropdownIcon })))] }) })), open && (_jsx(StyledDropdown, { open: open, onClose: handleClose, anchorEl: anchorEl, menuItems: (_b = (dropdownOptions || [])) === null || _b === void 0 ? void 0 : _b.map((item) => (Object.assign(Object.assign({}, item), { onClick: (e) => {
|
|
45
|
+
})) }, { children: _jsxs(LabelWrapper, { children: [_jsxs(Label, Object.assign({ variant: variant }, { children: [statusIcon, lastActiveStatus ? t(lastActiveStatus) : label, statusBadge] })), dropdownIcon && _jsx(ChevronContainer, { children: dropdownIcon })] }) })), open && (_jsx(StyledDropdown, { open: open, onClose: handleClose, anchorEl: anchorEl, menuItems: (_b = (dropdownOptions || [])) === null || _b === void 0 ? void 0 : _b.map((item) => (Object.assign(Object.assign({}, item), { onClick: (e) => {
|
|
49
46
|
var _a;
|
|
50
47
|
(_a = item === null || item === void 0 ? void 0 : item.onClick) === null || _a === void 0 ? void 0 : _a.call(item, e);
|
|
51
48
|
setLastActiveStatus(item.status);
|
|
@@ -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, showBackgroundColor, areAllRowsLoaded, tableBodyStyles,
|
|
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;
|
|
@@ -40,7 +40,7 @@ const createItemData = memoize((columns, isLoading, rows, rowProps, scrollToInde
|
|
|
40
40
|
isSheetView: true,
|
|
41
41
|
isPinned,
|
|
42
42
|
}));
|
|
43
|
-
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,
|
|
43
|
+
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, }) {
|
|
44
44
|
var _a, _b, _c;
|
|
45
45
|
const theme = useTheme();
|
|
46
46
|
const { pinnedStartColumns, pinnedEndColumns, handleColumnPin, pinnedStartColumnsData, pinnedEndColumnsData, unpinnedColumnsData, orderedColumns, lastColumnId, } = usePinnedColumns(columns, isPinnable, onColumnPin);
|
|
@@ -32,9 +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: '
|
|
36
|
-
paddingLeft: '
|
|
37
|
-
paddingRight: '
|
|
35
|
+
paddingInline: '8px !important',
|
|
36
|
+
paddingLeft: '8px !important',
|
|
37
|
+
paddingRight: '8px !important',
|
|
38
38
|
}))));
|
|
39
39
|
export const StyledVirtualList = styled(VirtualScrollList, {
|
|
40
40
|
shouldForwardProp: (prop) => !['areTotalRowsNotFillingHeight', 'isSheetView'].includes(prop),
|
|
@@ -17,6 +17,7 @@ export { default as SheetViewVirtualTable } from './VirtualTable/SheetView/Sheet
|
|
|
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';
|
|
20
|
+
export { default as StatusChip } from './StatusChip';
|
|
20
21
|
export { default as SimpleDialog, type SimpleDialogProps } from './SimpleDialog';
|
|
21
22
|
export { default as SearchButton } from './SearchButton';
|
|
22
23
|
export { default as Loaders } from './Loaders';
|
|
@@ -44,6 +45,7 @@ export { default as ResizableHeightInput } from './ResizableHeightInput';
|
|
|
44
45
|
export { default as MainContainer } from './MainContainer';
|
|
45
46
|
export { default as Menu } from './Menu';
|
|
46
47
|
export { default as MenuItem } from './MenuItem';
|
|
48
|
+
export { default as MaskedText } from './MaskedText';
|
|
47
49
|
export { default as MultiSelectDropdownButton, type ButtonWithDropdownProps } from './MultiSelectDropdownButton';
|
|
48
50
|
export { default as MultiSelectWithSearch, type MultiSelectWithSearchProps, ChildMenuItem, ParentMenuItem } from './MultiSelectWithSearch';
|
|
49
51
|
export { default as NestedDropdown, type DropdownProps, type Selected, type Placement, Dropdown, NestedMenuItem } from './NestedDropdown';
|
|
@@ -17,6 +17,7 @@ export { default as SheetViewVirtualTable } from './VirtualTable/SheetView/Sheet
|
|
|
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';
|
|
20
|
+
export { default as StatusChip } from './StatusChip';
|
|
20
21
|
export { default as SimpleDialog } from './SimpleDialog';
|
|
21
22
|
export { default as SearchButton } from './SearchButton';
|
|
22
23
|
export { default as Loaders } from './Loaders';
|
|
@@ -44,6 +45,7 @@ export { default as ResizableHeightInput } from './ResizableHeightInput';
|
|
|
44
45
|
export { default as MainContainer } from './MainContainer';
|
|
45
46
|
export { default as Menu } from './Menu';
|
|
46
47
|
export { default as MenuItem } from './MenuItem';
|
|
48
|
+
export { default as MaskedText } from './MaskedText';
|
|
47
49
|
export { default as MultiSelectDropdownButton } from './MultiSelectDropdownButton';
|
|
48
50
|
export { default as MultiSelectWithSearch, ChildMenuItem, ParentMenuItem } from './MultiSelectWithSearch';
|
|
49
51
|
export { default as NestedDropdown, Dropdown, NestedMenuItem } from './NestedDropdown';
|
|
@@ -232,6 +232,7 @@ export declare const leadTitleIcon: string;
|
|
|
232
232
|
export declare const orderAppIcon: string;
|
|
233
233
|
export declare const orderWindowIcon: string;
|
|
234
234
|
export declare const dottedLine: string;
|
|
235
|
+
export declare const passwordDotsIcon: string;
|
|
235
236
|
export declare const dollarSignIcon: string;
|
|
236
237
|
export declare const reloadIcon: string;
|
|
237
238
|
export declare const deletedStatusIcon: string;
|
|
@@ -233,6 +233,7 @@ export const leadTitleIcon = `${lightUrl}/window/leadTitleIcon.svg`;
|
|
|
233
233
|
export const orderAppIcon = `${appBaseUrl}/OrderApp.svg`;
|
|
234
234
|
export const orderWindowIcon = `${appBaseUrl}/OrderTitleIcon.svg`;
|
|
235
235
|
export const dottedLine = `${lightUrl}/dottedLine.svg`;
|
|
236
|
+
export const passwordDotsIcon = `${lightUrl}/passwordDots.svg`;
|
|
236
237
|
export const dollarSignIcon = `${lightUrl}/dollarSign.svg`;
|
|
237
238
|
export const reloadIcon = `${lightUrl}/reload.svg`;
|
|
238
239
|
export const deletedStatusIcon = `${appBaseUrl}/deletedStatus1.svg`;
|
|
@@ -12,7 +12,7 @@ export declare const chargeTableCellWidth: {
|
|
|
12
12
|
readonly id: {
|
|
13
13
|
readonly default: "225px";
|
|
14
14
|
readonly text: "225px";
|
|
15
|
-
readonly sheet: "
|
|
15
|
+
readonly sheet: "215px";
|
|
16
16
|
};
|
|
17
17
|
readonly product: {
|
|
18
18
|
readonly default: "85px";
|
|
@@ -27,7 +27,7 @@ export declare const chargeTableCellWidth: {
|
|
|
27
27
|
readonly reference: {
|
|
28
28
|
readonly default: "95px";
|
|
29
29
|
readonly text: "180px";
|
|
30
|
-
readonly sheet: "
|
|
30
|
+
readonly sheet: "550px";
|
|
31
31
|
};
|
|
32
32
|
readonly order: {
|
|
33
33
|
readonly default: "80px";
|
|
@@ -37,12 +37,12 @@ export declare const chargeTableCellWidth: {
|
|
|
37
37
|
readonly customer: {
|
|
38
38
|
readonly default: "180px";
|
|
39
39
|
readonly text: "180px";
|
|
40
|
-
readonly sheet: "
|
|
40
|
+
readonly sheet: "115px";
|
|
41
41
|
};
|
|
42
42
|
readonly source: {
|
|
43
43
|
readonly default: "114px";
|
|
44
44
|
readonly text: "125px";
|
|
45
|
-
readonly sheet: "
|
|
45
|
+
readonly sheet: "410px";
|
|
46
46
|
};
|
|
47
47
|
readonly authenticate: {
|
|
48
48
|
readonly default: "55px";
|
|
@@ -57,7 +57,7 @@ export declare const chargeTableCellWidth: {
|
|
|
57
57
|
readonly amount: {
|
|
58
58
|
readonly default: "170px";
|
|
59
59
|
readonly text: "195px";
|
|
60
|
-
readonly sheet: "
|
|
60
|
+
readonly sheet: "141px";
|
|
61
61
|
};
|
|
62
62
|
readonly destinations: {
|
|
63
63
|
readonly default: "70px";
|
|
@@ -72,12 +72,12 @@ export declare const chargeTableCellWidth: {
|
|
|
72
72
|
readonly status: {
|
|
73
73
|
readonly default: "70px";
|
|
74
74
|
readonly text: "300px";
|
|
75
|
-
readonly sheet: "
|
|
75
|
+
readonly sheet: "185px";
|
|
76
76
|
};
|
|
77
77
|
readonly merchant: {
|
|
78
78
|
readonly default: "100px";
|
|
79
79
|
readonly text: "150px";
|
|
80
|
-
readonly sheet: "
|
|
80
|
+
readonly sheet: "115px";
|
|
81
81
|
};
|
|
82
82
|
readonly charge: {
|
|
83
83
|
readonly default: "150px";
|
|
@@ -97,7 +97,7 @@ export declare const chargeTableCellWidth: {
|
|
|
97
97
|
readonly receipt: {
|
|
98
98
|
readonly default: "85px";
|
|
99
99
|
readonly text: "150px";
|
|
100
|
-
readonly sheet: "
|
|
100
|
+
readonly sheet: "131px";
|
|
101
101
|
};
|
|
102
102
|
readonly fees: {
|
|
103
103
|
readonly default: "150px";
|
|
@@ -107,7 +107,7 @@ export declare const chargeTableCellWidth: {
|
|
|
107
107
|
readonly metadata: {
|
|
108
108
|
readonly default: "180px";
|
|
109
109
|
readonly text: "180px";
|
|
110
|
-
readonly sheet: "
|
|
110
|
+
readonly sheet: "235px";
|
|
111
111
|
};
|
|
112
112
|
readonly settlement: {
|
|
113
113
|
readonly default: "200px";
|
|
@@ -122,7 +122,7 @@ export declare const chargeTableCellWidth: {
|
|
|
122
122
|
readonly actions: {
|
|
123
123
|
readonly default: "100px";
|
|
124
124
|
readonly text: "100px";
|
|
125
|
-
readonly sheet: "
|
|
125
|
+
readonly sheet: "315px";
|
|
126
126
|
};
|
|
127
127
|
readonly payment_id: {
|
|
128
128
|
readonly default: "150px";
|
|
@@ -132,7 +132,7 @@ export declare const chargeTableCellWidth: {
|
|
|
132
132
|
readonly card_number: {
|
|
133
133
|
readonly default: "120px";
|
|
134
134
|
readonly text: "120px";
|
|
135
|
-
readonly sheet: "
|
|
135
|
+
readonly sheet: "190px";
|
|
136
136
|
};
|
|
137
137
|
readonly auth_code: {
|
|
138
138
|
readonly default: "80px";
|
|
@@ -142,7 +142,7 @@ export declare const chargeTableCellWidth: {
|
|
|
142
142
|
readonly rrn: {
|
|
143
143
|
readonly default: "100px";
|
|
144
144
|
readonly text: "100px";
|
|
145
|
-
readonly sheet: "
|
|
145
|
+
readonly sheet: "83px";
|
|
146
146
|
};
|
|
147
147
|
readonly device: {
|
|
148
148
|
readonly default: "70px";
|
|
@@ -152,7 +152,7 @@ export declare const chargeTableCellWidth: {
|
|
|
152
152
|
readonly card_no: {
|
|
153
153
|
readonly default: "120px";
|
|
154
154
|
readonly text: "120px";
|
|
155
|
-
readonly sheet: "
|
|
155
|
+
readonly sheet: "190px";
|
|
156
156
|
};
|
|
157
157
|
readonly meta: {
|
|
158
158
|
readonly default: "52px";
|
|
@@ -12,7 +12,7 @@ export const chargeTableCellWidth = {
|
|
|
12
12
|
id: {
|
|
13
13
|
default: '225px',
|
|
14
14
|
text: '225px',
|
|
15
|
-
sheet: '
|
|
15
|
+
sheet: '215px',
|
|
16
16
|
},
|
|
17
17
|
product: {
|
|
18
18
|
default: '85px',
|
|
@@ -27,7 +27,7 @@ export const chargeTableCellWidth = {
|
|
|
27
27
|
reference: {
|
|
28
28
|
default: '95px',
|
|
29
29
|
text: '180px',
|
|
30
|
-
sheet: '
|
|
30
|
+
sheet: '550px',
|
|
31
31
|
},
|
|
32
32
|
order: {
|
|
33
33
|
default: '80px',
|
|
@@ -37,12 +37,12 @@ export const chargeTableCellWidth = {
|
|
|
37
37
|
customer: {
|
|
38
38
|
default: '180px',
|
|
39
39
|
text: '180px',
|
|
40
|
-
sheet: '
|
|
40
|
+
sheet: '115px',
|
|
41
41
|
},
|
|
42
42
|
source: {
|
|
43
43
|
default: '114px',
|
|
44
44
|
text: '125px',
|
|
45
|
-
sheet: '
|
|
45
|
+
sheet: '410px',
|
|
46
46
|
},
|
|
47
47
|
authenticate: {
|
|
48
48
|
default: '55px',
|
|
@@ -57,7 +57,7 @@ export const chargeTableCellWidth = {
|
|
|
57
57
|
amount: {
|
|
58
58
|
default: '170px',
|
|
59
59
|
text: '195px',
|
|
60
|
-
sheet: '
|
|
60
|
+
sheet: '141px',
|
|
61
61
|
},
|
|
62
62
|
destinations: {
|
|
63
63
|
default: '70px',
|
|
@@ -72,12 +72,12 @@ export const chargeTableCellWidth = {
|
|
|
72
72
|
status: {
|
|
73
73
|
default: '70px',
|
|
74
74
|
text: '300px',
|
|
75
|
-
sheet: '
|
|
75
|
+
sheet: '185px',
|
|
76
76
|
},
|
|
77
77
|
merchant: {
|
|
78
78
|
default: '100px',
|
|
79
79
|
text: '150px',
|
|
80
|
-
sheet: '
|
|
80
|
+
sheet: '115px',
|
|
81
81
|
},
|
|
82
82
|
charge: {
|
|
83
83
|
default: '150px',
|
|
@@ -97,7 +97,7 @@ export const chargeTableCellWidth = {
|
|
|
97
97
|
receipt: {
|
|
98
98
|
default: '85px',
|
|
99
99
|
text: '150px',
|
|
100
|
-
sheet: '
|
|
100
|
+
sheet: '131px',
|
|
101
101
|
},
|
|
102
102
|
fees: {
|
|
103
103
|
default: '150px',
|
|
@@ -107,7 +107,7 @@ export const chargeTableCellWidth = {
|
|
|
107
107
|
metadata: {
|
|
108
108
|
default: '180px',
|
|
109
109
|
text: '180px',
|
|
110
|
-
sheet: '
|
|
110
|
+
sheet: '235px',
|
|
111
111
|
},
|
|
112
112
|
settlement: {
|
|
113
113
|
default: '200px',
|
|
@@ -122,7 +122,7 @@ export const chargeTableCellWidth = {
|
|
|
122
122
|
actions: {
|
|
123
123
|
default: '100px',
|
|
124
124
|
text: '100px',
|
|
125
|
-
sheet: '
|
|
125
|
+
sheet: '315px',
|
|
126
126
|
},
|
|
127
127
|
payment_id: {
|
|
128
128
|
default: '150px',
|
|
@@ -132,7 +132,7 @@ export const chargeTableCellWidth = {
|
|
|
132
132
|
card_number: {
|
|
133
133
|
default: '120px',
|
|
134
134
|
text: '120px',
|
|
135
|
-
sheet: '
|
|
135
|
+
sheet: '190px',
|
|
136
136
|
},
|
|
137
137
|
auth_code: {
|
|
138
138
|
default: '80px',
|
|
@@ -142,7 +142,7 @@ export const chargeTableCellWidth = {
|
|
|
142
142
|
rrn: {
|
|
143
143
|
default: '100px',
|
|
144
144
|
text: '100px',
|
|
145
|
-
sheet: '
|
|
145
|
+
sheet: '83px',
|
|
146
146
|
},
|
|
147
147
|
device: {
|
|
148
148
|
default: '70px',
|
|
@@ -152,7 +152,7 @@ export const chargeTableCellWidth = {
|
|
|
152
152
|
card_no: {
|
|
153
153
|
default: '120px',
|
|
154
154
|
text: '120px',
|
|
155
|
-
sheet: '
|
|
155
|
+
sheet: '190px',
|
|
156
156
|
},
|
|
157
157
|
meta: {
|
|
158
158
|
default: '52px',
|
package/build/types/table.d.ts
CHANGED
|
@@ -93,6 +93,7 @@ export interface IColumnFilterCustom {
|
|
|
93
93
|
render: (v: any) => JSX.Element;
|
|
94
94
|
}
|
|
95
95
|
export type AnimationType = false | 'pulse' | 'wave' | undefined;
|
|
96
|
+
export type TableMode = 'sheet' | 'text' | 'default';
|
|
96
97
|
export interface IVirtualTable<R = any> {
|
|
97
98
|
rows: R[];
|
|
98
99
|
columns: Array<IColumnProps<R>>;
|
|
@@ -117,7 +118,7 @@ export interface IVirtualTable<R = any> {
|
|
|
117
118
|
areAllRowsLoaded?: boolean;
|
|
118
119
|
tableBodyStyles?: React.CSSProperties;
|
|
119
120
|
isTextShown?: boolean;
|
|
120
|
-
tableMode?:
|
|
121
|
+
tableMode?: TableMode;
|
|
121
122
|
tableTitle?: string;
|
|
122
123
|
dimensions?: {
|
|
123
124
|
height: string | number;
|
package/package.json
CHANGED