@tap-payments/os-micro-frontend-shared 0.1.108 → 0.1.110-test.2
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/AmountStatusChip/AmountStatusChip.js +1 -1
- package/build/components/StatusChip/style.d.ts +1 -0
- package/build/components/StatusChip/style.js +3 -4
- package/build/components/StatusChip/type.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ActionCell/constant.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ActionCell/constant.js +2 -1
- package/build/components/TableCells/CustomCells/ActionCell/hooks/useActionCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -1
- package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/PaymentAgreementCell.d.ts +13 -0
- package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/PaymentAgreementCell.js +26 -0
- package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/index.d.ts +1 -0
- package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/index.js +1 -0
- package/build/components/TableCells/SheetViewCells/index.d.ts +1 -0
- package/build/components/TableCells/SheetViewCells/index.js +1 -0
- package/build/components/TableCells/index.d.ts +1 -0
- package/build/components/TableCells/index.js +1 -0
- package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableLoading.js +1 -1
- package/build/constants/table/cell/authorizationTableCellWidth.d.ts +2 -2
- package/build/constants/table/cell/authorizationTableCellWidth.js +2 -2
- package/build/constants/table/cell/chargeTableCellWidth.d.ts +2 -2
- package/build/constants/table/cell/chargeTableCellWidth.js +2 -2
- package/build/constants/table/cell/destinationsTableCellWidth.d.ts +3 -3
- package/build/constants/table/cell/destinationsTableCellWidth.js +3 -3
- package/build/constants/table/cell/merchantsTableCellWidth.d.ts +1 -1
- package/build/constants/table/cell/merchantsTableCellWidth.js +1 -1
- package/build/constants/table/cell/refundTableCellWidth.d.ts +3 -3
- package/build/constants/table/cell/refundTableCellWidth.js +3 -3
- package/build/types/brand.d.ts +62 -0
- package/build/utils/table.d.ts +3 -1
- package/build/utils/table.js +7 -1
- package/package.json +3 -3
|
@@ -14,6 +14,6 @@ import { memo } from 'react';
|
|
|
14
14
|
import { AmountLabel, StyledAmountStatusChip } from './style';
|
|
15
15
|
function AmountStatusChip(_a) {
|
|
16
16
|
var { amount, currency } = _a, rest = __rest(_a, ["amount", "currency"]);
|
|
17
|
-
return (_jsxs(StyledAmountStatusChip, Object.assign({ expandDirection: "left" }, rest, { children: [currency && _jsx(AmountLabel, { children: currency }), amount] })));
|
|
17
|
+
return (_jsxs(StyledAmountStatusChip, Object.assign({ disableAnimation: true, expandDirection: "left" }, rest, { children: [currency && _jsx(AmountLabel, { children: currency }), amount] })));
|
|
18
18
|
}
|
|
19
19
|
export default memo(AmountStatusChip);
|
|
@@ -8,6 +8,7 @@ export declare const ChipStyled: import("@emotion/styled").StyledComponent<impor
|
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
padding?: string | undefined;
|
|
10
10
|
unknownText?: string | undefined;
|
|
11
|
+
minWidth?: string | undefined;
|
|
11
12
|
maxWidth?: string | undefined;
|
|
12
13
|
isSelected?: boolean | undefined;
|
|
13
14
|
copyText?: string | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Box from '@mui/material/Box';
|
|
2
2
|
import { styled } from '@mui/material/styles';
|
|
3
3
|
export const ChipStyled = styled(Box, {
|
|
4
|
-
shouldForwardProp: (prop) => !['textColor', 'bgColor', 'borderColor', 'disabled', 'padding', 'maxWidth', 'isSelected', 'disableAnimation'].includes(prop),
|
|
5
|
-
})(({ theme, isSelected, textColor = theme.palette.text.primary, bgColor = '#EFF1F2', borderColor = '#EFF1F2', disabled = false, padding, maxWidth, disableAnimation, }) => {
|
|
6
|
-
return Object.assign(Object.assign({ display: 'flex', justifyContent: 'center', alignItems: 'center', gap: '4px', height: '18px', padding: padding || '0px 9.5px', borderRadius: '30px', border: `1px solid ${borderColor}`, backgroundColor: bgColor, color: textColor, cursor: disabled ? 'not-allowed' : 'pointer', opacity: disabled ? 0.5 : 1, whiteSpace: 'nowrap', fontSize: '11px', minWidth: '67px', maxWidth: maxWidth || 'none', width: 'fit-content', overflow: 'hidden', textOverflow: maxWidth ? 'ellipsis' : 'unset', boxSizing: 'border-box' }, (isSelected && {
|
|
4
|
+
shouldForwardProp: (prop) => !['textColor', 'bgColor', 'borderColor', 'disabled', 'minWidth', 'padding', 'maxWidth', 'isSelected', 'disableAnimation'].includes(prop),
|
|
5
|
+
})(({ theme, isSelected, textColor = theme.palette.text.primary, bgColor = '#EFF1F2', borderColor = '#EFF1F2', disabled = false, padding, minWidth, maxWidth, disableAnimation, }) => {
|
|
6
|
+
return Object.assign(Object.assign({ display: 'flex', justifyContent: 'center', alignItems: 'center', gap: '4px', height: '18px', padding: padding || '0px 9.5px', borderRadius: '30px', border: `1px solid ${borderColor}`, backgroundColor: bgColor, color: textColor, cursor: disabled ? 'not-allowed' : 'pointer', opacity: disabled ? 0.5 : 1, whiteSpace: 'nowrap', fontSize: '11px', minWidth: minWidth || '67px', maxWidth: maxWidth || 'none', width: 'fit-content', overflow: 'hidden', textOverflow: maxWidth ? 'ellipsis' : 'unset', boxSizing: 'border-box' }, (isSelected && {
|
|
7
7
|
boxShadow: 'white 7px 0px 8px 2px',
|
|
8
8
|
})), (disableAnimation && {
|
|
9
9
|
transition: 'none !important',
|
|
@@ -21,7 +21,6 @@ export const Wrapper = styled(Box)(() => ({
|
|
|
21
21
|
alignItems: 'center',
|
|
22
22
|
justifyContent: 'center',
|
|
23
23
|
gap: '4px',
|
|
24
|
-
minWidth: 46,
|
|
25
24
|
textAlign: 'center',
|
|
26
25
|
}));
|
|
27
26
|
export const CopyWrapper = styled(Box)(() => ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BadgeVariants } from '../../../CountBadge';
|
|
2
|
-
import { flagIcon, clockIcon, disputeIcon, redFlagIcon, cancelledIcon, closedFlagIcon, orangeFlagIcon, refundInitiatedIcon, viewInvoiceIcon, reverseActionIcon, voidedIcon, capturedDropdownIcon, destinationReversedTableIcon, brandPlaceholderIcon, usersIcon, clipboardIcon, } from '../../../../constants/index.js';
|
|
2
|
+
import { flagIcon, clockIcon, disputeIcon, redFlagIcon, cancelledIcon, closedFlagIcon, orangeFlagIcon, refundInitiatedIcon, viewInvoiceIcon, reverseActionIcon, voidedIcon, capturedDropdownIcon, destinationReversedTableIcon, brandPlaceholderIcon, usersIcon, clipboardIcon, jsonBlackIcon, } from '../../../../constants/index.js';
|
|
3
3
|
export const flags = {
|
|
4
4
|
GRAY: { icon: closedFlagIcon, color: '#CFCFCF' },
|
|
5
5
|
ORANGE: { icon: orangeFlagIcon, color: '#FFD503' },
|
|
@@ -24,4 +24,5 @@ export const actionIcons = {
|
|
|
24
24
|
users: usersIcon,
|
|
25
25
|
brand: brandPlaceholderIcon,
|
|
26
26
|
clipboard: clipboardIcon,
|
|
27
|
+
viewApi: jsonBlackIcon,
|
|
27
28
|
};
|
|
@@ -13,7 +13,7 @@ export declare function useActionCell({ actions, isDropdownShown, onCloseDropdow
|
|
|
13
13
|
label: string;
|
|
14
14
|
onClick: (e: React.MouseEvent<HTMLLIElement, MouseEvent>) => void;
|
|
15
15
|
onRightClick?: ((e: React.MouseEvent<HTMLLIElement, MouseEvent>) => void) | undefined;
|
|
16
|
-
icon: "brand" | "users" | "cancel" | "reverse" | "refund" | "destination" | "capture" | "flag" | "dispute" | "void" | "clock" | "invoice" | "clipboard";
|
|
16
|
+
icon: "brand" | "users" | "cancel" | "reverse" | "refund" | "destination" | "capture" | "flag" | "dispute" | "void" | "clock" | "invoice" | "clipboard" | "viewApi";
|
|
17
17
|
isLoading?: boolean | undefined;
|
|
18
18
|
isError?: boolean | undefined;
|
|
19
19
|
isSuccess?: boolean | undefined;
|
|
@@ -283,5 +283,5 @@ export declare const ActionIcon: import("@emotion/styled").StyledComponent<{
|
|
|
283
283
|
fetchPriority?: "auto" | "high" | "low" | undefined;
|
|
284
284
|
srcSet?: string | undefined;
|
|
285
285
|
} & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLImageElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
286
|
-
icon?: "brand" | "users" | "cancel" | "reverse" | "refund" | "destination" | "capture" | "flag" | "dispute" | "void" | "clock" | "invoice" | "clipboard" | undefined;
|
|
286
|
+
icon?: "brand" | "users" | "cancel" | "reverse" | "refund" | "destination" | "capture" | "flag" | "dispute" | "void" | "clock" | "invoice" | "clipboard" | "viewApi" | undefined;
|
|
287
287
|
}, {}, {}>;
|
package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/PaymentAgreementCell.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StatusChipWithCopyProps } from '../../../StatusChipWithCopy';
|
|
2
|
+
interface PaymentAgreementCellProps extends Omit<StatusChipWithCopyProps, 'chipIndex'> {
|
|
3
|
+
type?: keyof typeof paymentAgreementTypes;
|
|
4
|
+
count?: number;
|
|
5
|
+
}
|
|
6
|
+
declare const paymentAgreementTypes: {
|
|
7
|
+
SAVED_CARD: string;
|
|
8
|
+
ORDER: string;
|
|
9
|
+
SUBSCRIPTION: string;
|
|
10
|
+
INSTALLMENT: string;
|
|
11
|
+
};
|
|
12
|
+
declare function PaymentAgreementCell({ type, count, ...props }: PaymentAgreementCellProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default PaymentAgreementCell;
|
package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/PaymentAgreementCell.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { Box } from '@mui/material';
|
|
14
|
+
import { StatusChipWithCopy } from '../../../index.js';
|
|
15
|
+
const paymentAgreementTypes = {
|
|
16
|
+
SAVED_CARD: 'Card Agreement',
|
|
17
|
+
ORDER: 'Order',
|
|
18
|
+
SUBSCRIPTION: 'Subscription',
|
|
19
|
+
INSTALLMENT: 'Installment',
|
|
20
|
+
};
|
|
21
|
+
function PaymentAgreementCell(_a) {
|
|
22
|
+
var { type, count } = _a, props = __rest(_a, ["type", "count"]);
|
|
23
|
+
const countText = count === null || count === void 0 ? void 0 : count.toString();
|
|
24
|
+
return (_jsxs(Box, Object.assign({ sx: { display: 'flex', flexDirection: 'row', gap: '4px' } }, { children: [_jsx(StatusChipWithCopy, Object.assign({ copyText: type, unknownText: "noPaymentAgreement" }, props, { chipIndex: 0 }, { children: type ? paymentAgreementTypes[type] : type })), countText && (_jsx(StatusChipWithCopy, Object.assign({ copyText: countText }, props, { chipIndex: 1, minWidth: "38px" }, { children: countText })))] })));
|
|
25
|
+
}
|
|
26
|
+
export default PaymentAgreementCell;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PaymentAgreementCell } from './PaymentAgreementCell';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PaymentAgreementCell } from './PaymentAgreementCell';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PaymentAgreementCell';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PaymentAgreementCell';
|
package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableLoading.js
CHANGED
|
@@ -14,7 +14,7 @@ const Wrapper = styled('section')(({ isLoaded = false, isPinned = false }) => ({
|
|
|
14
14
|
height: '100%',
|
|
15
15
|
maxHeight: '100%',
|
|
16
16
|
}));
|
|
17
|
-
function SheetViewTableLoading({ columns, isLoaded = false, animationType, isLoading = false, rowsCount, isPinned = false, }) {
|
|
17
|
+
function SheetViewTableLoading({ columns, isLoaded = false, animationType, isLoading = false, rowsCount = 13, isPinned = false, }) {
|
|
18
18
|
const [maxAllowedRows, setMaxAllowedRows] = useState(() => {
|
|
19
19
|
return rowsCount || Math.min(calculateMaxAllowedRows(isLoaded, isLoading), 15);
|
|
20
20
|
});
|
|
@@ -82,7 +82,7 @@ export declare const authorizationTableCellWidth: {
|
|
|
82
82
|
readonly merchant: {
|
|
83
83
|
readonly default: "110px";
|
|
84
84
|
readonly text: "150px";
|
|
85
|
-
readonly sheet: "
|
|
85
|
+
readonly sheet: "138px";
|
|
86
86
|
};
|
|
87
87
|
readonly charge: {
|
|
88
88
|
readonly default: "150px";
|
|
@@ -207,7 +207,7 @@ export declare const authorizationTableCellWidth: {
|
|
|
207
207
|
readonly eci: {
|
|
208
208
|
readonly default: "150px";
|
|
209
209
|
readonly text: "150px";
|
|
210
|
-
readonly sheet: "
|
|
210
|
+
readonly sheet: "72px";
|
|
211
211
|
};
|
|
212
212
|
readonly acquirer_response: {
|
|
213
213
|
readonly default: "70px";
|
|
@@ -82,7 +82,7 @@ export const authorizationTableCellWidth = {
|
|
|
82
82
|
merchant: {
|
|
83
83
|
default: '110px',
|
|
84
84
|
text: '150px',
|
|
85
|
-
sheet: '
|
|
85
|
+
sheet: '138px',
|
|
86
86
|
},
|
|
87
87
|
charge: {
|
|
88
88
|
default: '150px',
|
|
@@ -207,7 +207,7 @@ export const authorizationTableCellWidth = {
|
|
|
207
207
|
eci: {
|
|
208
208
|
default: '150px',
|
|
209
209
|
text: '150px',
|
|
210
|
-
sheet: '
|
|
210
|
+
sheet: '72px',
|
|
211
211
|
},
|
|
212
212
|
acquirer_response: {
|
|
213
213
|
default: '70px',
|
|
@@ -92,7 +92,7 @@ export declare const chargeTableCellWidth: {
|
|
|
92
92
|
readonly eci: {
|
|
93
93
|
readonly default: "150px";
|
|
94
94
|
readonly text: "150px";
|
|
95
|
-
readonly sheet: "
|
|
95
|
+
readonly sheet: "72px";
|
|
96
96
|
};
|
|
97
97
|
readonly amount: {
|
|
98
98
|
readonly default: "170px";
|
|
@@ -132,7 +132,7 @@ export declare const chargeTableCellWidth: {
|
|
|
132
132
|
readonly merchant: {
|
|
133
133
|
readonly default: "100px";
|
|
134
134
|
readonly text: "150px";
|
|
135
|
-
readonly sheet: "
|
|
135
|
+
readonly sheet: "138px";
|
|
136
136
|
};
|
|
137
137
|
readonly charge: {
|
|
138
138
|
readonly default: "150px";
|
|
@@ -92,7 +92,7 @@ export const chargeTableCellWidth = {
|
|
|
92
92
|
eci: {
|
|
93
93
|
default: '150px',
|
|
94
94
|
text: '150px',
|
|
95
|
-
sheet: '
|
|
95
|
+
sheet: '72px',
|
|
96
96
|
},
|
|
97
97
|
amount: {
|
|
98
98
|
default: '170px',
|
|
@@ -132,7 +132,7 @@ export const chargeTableCellWidth = {
|
|
|
132
132
|
merchant: {
|
|
133
133
|
default: '100px',
|
|
134
134
|
text: '150px',
|
|
135
|
-
sheet: '
|
|
135
|
+
sheet: '138px',
|
|
136
136
|
},
|
|
137
137
|
charge: {
|
|
138
138
|
default: '150px',
|
|
@@ -62,7 +62,7 @@ export declare const destinationsTableCellWidth: {
|
|
|
62
62
|
readonly payment_agreement: {
|
|
63
63
|
readonly default: "50px";
|
|
64
64
|
readonly text: "250px";
|
|
65
|
-
readonly sheet: "
|
|
65
|
+
readonly sheet: "165px";
|
|
66
66
|
};
|
|
67
67
|
readonly amount: {
|
|
68
68
|
readonly default: "195px";
|
|
@@ -82,7 +82,7 @@ export declare const destinationsTableCellWidth: {
|
|
|
82
82
|
readonly merchant: {
|
|
83
83
|
readonly default: "100px";
|
|
84
84
|
readonly text: "150px";
|
|
85
|
-
readonly sheet: "
|
|
85
|
+
readonly sheet: "138px";
|
|
86
86
|
};
|
|
87
87
|
readonly actions: {
|
|
88
88
|
readonly default: "100px";
|
|
@@ -157,7 +157,7 @@ export declare const destinationsTableCellWidth: {
|
|
|
157
157
|
readonly eci: {
|
|
158
158
|
readonly default: "150px";
|
|
159
159
|
readonly text: "150px";
|
|
160
|
-
readonly sheet: "
|
|
160
|
+
readonly sheet: "72px";
|
|
161
161
|
};
|
|
162
162
|
readonly payout_status: {
|
|
163
163
|
readonly default: "120px";
|
|
@@ -62,7 +62,7 @@ export const destinationsTableCellWidth = {
|
|
|
62
62
|
payment_agreement: {
|
|
63
63
|
default: '50px',
|
|
64
64
|
text: '250px',
|
|
65
|
-
sheet: '
|
|
65
|
+
sheet: '165px',
|
|
66
66
|
},
|
|
67
67
|
amount: {
|
|
68
68
|
default: '195px',
|
|
@@ -82,7 +82,7 @@ export const destinationsTableCellWidth = {
|
|
|
82
82
|
merchant: {
|
|
83
83
|
default: '100px',
|
|
84
84
|
text: '150px',
|
|
85
|
-
sheet: '
|
|
85
|
+
sheet: '138px',
|
|
86
86
|
},
|
|
87
87
|
actions: {
|
|
88
88
|
default: '100px',
|
|
@@ -157,7 +157,7 @@ export const destinationsTableCellWidth = {
|
|
|
157
157
|
eci: {
|
|
158
158
|
default: '150px',
|
|
159
159
|
text: '150px',
|
|
160
|
-
sheet: '
|
|
160
|
+
sheet: '72px',
|
|
161
161
|
},
|
|
162
162
|
payout_status: {
|
|
163
163
|
default: '120px',
|
|
@@ -47,7 +47,7 @@ export declare const refundTableCellWidth: {
|
|
|
47
47
|
readonly payment_agreement: {
|
|
48
48
|
readonly default: "50px";
|
|
49
49
|
readonly text: "200px";
|
|
50
|
-
readonly sheet: "
|
|
50
|
+
readonly sheet: "165px";
|
|
51
51
|
};
|
|
52
52
|
readonly payment_initiated: {
|
|
53
53
|
readonly default: "150px";
|
|
@@ -87,7 +87,7 @@ export declare const refundTableCellWidth: {
|
|
|
87
87
|
readonly eci: {
|
|
88
88
|
readonly default: "150px";
|
|
89
89
|
readonly text: "150px";
|
|
90
|
-
readonly sheet: "
|
|
90
|
+
readonly sheet: "72px";
|
|
91
91
|
};
|
|
92
92
|
readonly amount: {
|
|
93
93
|
readonly default: "195px";
|
|
@@ -122,7 +122,7 @@ export declare const refundTableCellWidth: {
|
|
|
122
122
|
readonly merchant: {
|
|
123
123
|
readonly default: "100px";
|
|
124
124
|
readonly text: "150px";
|
|
125
|
-
readonly sheet: "
|
|
125
|
+
readonly sheet: "138px";
|
|
126
126
|
};
|
|
127
127
|
readonly reference: {
|
|
128
128
|
readonly default: "95px";
|
|
@@ -47,7 +47,7 @@ export const refundTableCellWidth = {
|
|
|
47
47
|
payment_agreement: {
|
|
48
48
|
default: '50px',
|
|
49
49
|
text: '200px',
|
|
50
|
-
sheet: '
|
|
50
|
+
sheet: '165px',
|
|
51
51
|
},
|
|
52
52
|
payment_initiated: {
|
|
53
53
|
default: '150px',
|
|
@@ -87,7 +87,7 @@ export const refundTableCellWidth = {
|
|
|
87
87
|
eci: {
|
|
88
88
|
default: '150px',
|
|
89
89
|
text: '150px',
|
|
90
|
-
sheet: '
|
|
90
|
+
sheet: '72px',
|
|
91
91
|
},
|
|
92
92
|
amount: {
|
|
93
93
|
default: '195px',
|
|
@@ -122,7 +122,7 @@ export const refundTableCellWidth = {
|
|
|
122
122
|
merchant: {
|
|
123
123
|
default: '100px',
|
|
124
124
|
text: '150px',
|
|
125
|
-
sheet: '
|
|
125
|
+
sheet: '138px',
|
|
126
126
|
},
|
|
127
127
|
reference: {
|
|
128
128
|
default: '95px',
|
package/build/types/brand.d.ts
CHANGED
|
@@ -28,6 +28,68 @@ export interface Brand {
|
|
|
28
28
|
name: TextAndLang[];
|
|
29
29
|
logo: string;
|
|
30
30
|
entities: (EntityDetails & Entity)[];
|
|
31
|
+
activities: Array<{
|
|
32
|
+
id: string;
|
|
33
|
+
code: string;
|
|
34
|
+
name: Record<string, string>;
|
|
35
|
+
isic_code: string;
|
|
36
|
+
mcc_value: {
|
|
37
|
+
id: string;
|
|
38
|
+
mcc: string;
|
|
39
|
+
name: Record<string, string>;
|
|
40
|
+
description: string;
|
|
41
|
+
created: number;
|
|
42
|
+
};
|
|
43
|
+
}>;
|
|
44
|
+
operations: {
|
|
45
|
+
sales: {
|
|
46
|
+
id: string;
|
|
47
|
+
name: TextAndLang[];
|
|
48
|
+
range: {
|
|
49
|
+
from: number;
|
|
50
|
+
to: number;
|
|
51
|
+
};
|
|
52
|
+
sub: Array<{
|
|
53
|
+
id: string;
|
|
54
|
+
name: TextAndLang[];
|
|
55
|
+
range: {
|
|
56
|
+
from: number;
|
|
57
|
+
to: number;
|
|
58
|
+
};
|
|
59
|
+
}>;
|
|
60
|
+
};
|
|
61
|
+
customer_base: {
|
|
62
|
+
id: string;
|
|
63
|
+
name: TextAndLang[];
|
|
64
|
+
locations: Array<{
|
|
65
|
+
id: string;
|
|
66
|
+
code: string;
|
|
67
|
+
name: TextAndLang[];
|
|
68
|
+
}>;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
segment: {
|
|
72
|
+
team: {
|
|
73
|
+
id: string;
|
|
74
|
+
name: TextAndLang[];
|
|
75
|
+
};
|
|
76
|
+
location_type: {
|
|
77
|
+
id: string;
|
|
78
|
+
name: TextAndLang[];
|
|
79
|
+
};
|
|
80
|
+
profit_type: {
|
|
81
|
+
id: string;
|
|
82
|
+
name: TextAndLang[];
|
|
83
|
+
tech_type: {
|
|
84
|
+
id: string;
|
|
85
|
+
name: TextAndLang[];
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
business_id: string;
|
|
90
|
+
channel_services: Channel[];
|
|
91
|
+
physical_store_available: boolean;
|
|
92
|
+
data_state: string;
|
|
31
93
|
}
|
|
32
94
|
export interface BrandDetails {
|
|
33
95
|
id: string;
|
package/build/utils/table.d.ts
CHANGED
|
@@ -6,4 +6,6 @@ export declare const getColumnWidthPercentage: (widthInPx: number, options?: {
|
|
|
6
6
|
export declare const getCellWidth: ({ table, cellID, tableMode }: TableCellWidthProps) => string;
|
|
7
7
|
export declare const calculateMaxAllowedRows: (isLoaded: boolean, isLoading: boolean) => number;
|
|
8
8
|
export declare const isHeightNotFullyFilledByRows: (totalRows: number) => boolean;
|
|
9
|
-
export declare const isTableDefaultMode: (tableMode
|
|
9
|
+
export declare const isTableDefaultMode: (tableMode: TableMode) => boolean;
|
|
10
|
+
export declare const isTableSheetMode: (tableMode: TableMode) => boolean;
|
|
11
|
+
export declare const isTableTextMode: (tableMode: TableMode) => boolean;
|
package/build/utils/table.js
CHANGED
|
@@ -73,6 +73,12 @@ export const isHeightNotFullyFilledByRows = (totalRows) => {
|
|
|
73
73
|
const allowedRows = maxRowsThatFit();
|
|
74
74
|
return totalRows < allowedRows + 1;
|
|
75
75
|
};
|
|
76
|
-
export const isTableDefaultMode = (tableMode
|
|
76
|
+
export const isTableDefaultMode = (tableMode) => {
|
|
77
77
|
return tableMode === 'default';
|
|
78
78
|
};
|
|
79
|
+
export const isTableSheetMode = (tableMode) => {
|
|
80
|
+
return tableMode === 'sheet';
|
|
81
|
+
};
|
|
82
|
+
export const isTableTextMode = (tableMode) => {
|
|
83
|
+
return tableMode === 'text';
|
|
84
|
+
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
3
|
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
-
"version": "0.1.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.110-test.2",
|
|
5
|
+
"testVersion": 2,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|
|
@@ -136,4 +136,4 @@
|
|
|
136
136
|
"publishConfig": {
|
|
137
137
|
"registry": "https://registry.npmjs.org/"
|
|
138
138
|
}
|
|
139
|
-
}
|
|
139
|
+
}
|