@tap-payments/os-micro-frontend-shared 0.1.96-test.2 → 0.1.96-test.21
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/LICENSE +21 -21
- package/README.md +12 -12
- package/build/components/ActionMenu/style.d.ts +1 -1
- package/build/components/AmountStatusChip/AmountStatusChip.d.ts +9 -0
- package/build/components/AmountStatusChip/AmountStatusChip.js +19 -0
- package/build/components/AmountStatusChip/index.d.ts +3 -0
- package/build/components/AmountStatusChip/index.js +2 -0
- package/build/components/AmountStatusChip/style.d.ts +3 -0
- package/build/components/AmountStatusChip/style.js +13 -0
- package/build/components/AppServices/AppServices.d.ts +10 -5
- package/build/components/AppServices/AppServices.js +16 -18
- package/build/components/AppServices/ServiceItem.d.ts +2 -4
- package/build/components/AppServices/ServiceItem.js +2 -4
- package/build/components/AppServicesBar/AppServicesBar.d.ts +22 -0
- package/build/components/AppServicesBar/AppServicesBar.js +18 -0
- package/build/components/AppServicesBar/index.d.ts +3 -0
- package/build/components/AppServicesBar/index.js +3 -0
- package/build/components/AppServicesBar/style.d.ts +4 -0
- package/build/components/AppServicesBar/style.js +6 -0
- package/build/components/AppWindowWrapper/headers/AccountHeader/components/AccountHeaderTitle/AccountHeaderTitle.d.ts +1 -1
- package/build/components/AppWindowWrapper/headers/AccountHeader/components/AccountHeaderTitle/AccountHeaderTitle.js +1 -1
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/AppWindowHeaderBase.d.ts +1 -1
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/AppWindowHeaderBase.js +2 -2
- package/build/components/AuthenticationTypeChip/AuthenticationTypeChip.d.ts +9 -0
- package/build/components/AuthenticationTypeChip/AuthenticationTypeChip.js +21 -0
- package/build/components/AuthenticationTypeChip/constants.d.ts +16 -0
- package/build/components/AuthenticationTypeChip/constants.js +13 -0
- package/build/components/AuthenticationTypeChip/index.d.ts +3 -0
- package/build/components/AuthenticationTypeChip/index.js +2 -0
- package/build/components/ColorPicker/ColorPicker.d.ts +4 -1
- package/build/components/ColorPicker/ColorPicker.js +10 -43
- package/build/components/ColorPicker/ColorPickerPanel.d.ts +7 -0
- package/build/components/ColorPicker/ColorPickerPanel.js +41 -0
- package/build/components/ColorPicker/ColorSchemeSelect.d.ts +7 -0
- package/build/components/ColorPicker/ColorSchemeSelect.js +35 -0
- package/build/components/ColorPicker/HexaFields.d.ts +7 -0
- package/build/components/ColorPicker/HexaFields.js +79 -0
- package/build/components/ColorPicker/RGBAFields.d.ts +7 -0
- package/build/components/ColorPicker/RGBAFields.js +25 -0
- package/build/components/ColorPicker/style.d.ts +20 -9
- package/build/components/ColorPicker/style.js +49 -2
- package/build/components/JSONViewer/components/JSONTitleBar/JSONTitleBar.d.ts +1 -1
- package/build/components/JSONViewer/components/JSONTitleBar/JSONTitleBar.js +1 -1
- package/build/components/ListLayout/ListLayout.d.ts +10 -0
- package/build/components/ListLayout/ListLayout.js +20 -0
- package/build/components/ListLayout/index.d.ts +2 -0
- package/build/components/ListLayout/index.js +2 -0
- package/build/components/ListLayout/styles.d.ts +4 -0
- package/build/components/ListLayout/styles.js +9 -0
- package/build/components/RightLeftExpandingCenterChip/style.js +0 -2
- package/build/components/SearchButton/styles.d.ts +1 -1
- package/build/components/StatusChip/StatusChip.d.ts +1 -1
- package/build/components/StatusChip/StatusChip.js +13 -10
- package/build/components/StatusChip/style.d.ts +4 -0
- package/build/components/StatusChip/style.js +13 -5
- package/build/components/StatusChip/type.d.ts +4 -0
- package/build/components/StatusChipWithCopy/StatusChipWithCopy.d.ts +2 -1
- package/build/components/StatusChipWithCopy/StatusChipWithCopy.js +2 -2
- package/build/components/StatusIcons/AuthorizationAutoIcons/style.js +1 -1
- 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/CustomCells/ApplicationStatusCell/ApplicationStatusCell.js +4 -4
- package/build/components/TableCells/CustomCells/BalanceCell/style.js +1 -1
- package/build/components/TableCells/CustomCells/ProductsCell/style.js +1 -1
- package/build/components/TableCells/CustomCells/RefundChargeCell/style.js +1 -1
- package/build/components/TableCells/CustomCells/RefundStatusCell/style.js +1 -1
- package/build/components/TableCells/CustomCells/style.js +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/ToggleView/ToggleView.d.ts +16 -0
- package/build/components/ToggleView/ToggleView.js +32 -0
- package/build/components/ToggleView/ToggleWrapper.d.ts +4 -0
- package/build/components/ToggleView/ToggleWrapper.js +8 -0
- package/build/components/ToggleView/index.d.ts +3 -0
- package/build/components/ToggleView/index.js +3 -0
- package/build/components/ToggleView/style.d.ts +14 -0
- package/build/components/ToggleView/style.js +31 -0
- package/build/components/ToggleView/types.d.ts +6 -0
- package/build/components/ToggleView/types.js +6 -0
- package/build/components/Toolbar/style.d.ts +5 -2
- package/build/components/Toolbar/style.js +6 -1
- package/build/components/VirtualTables/SheetViewVirtualTable/SheetViewVirtualTable.d.ts +1 -1
- package/build/components/VirtualTables/SheetViewVirtualTable/SheetViewVirtualTable.js +2 -2
- package/build/components/VirtualTables/SheetViewVirtualTable/components/LoadingMainTable.js +2 -0
- package/build/components/VirtualTables/SheetViewVirtualTable/components/MainTable.js +5 -1
- package/build/components/VirtualTables/SheetViewVirtualTable/components/PinnedColumn.js +5 -1
- package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableLoading.d.ts +1 -4
- package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableLoading.js +39 -7
- package/build/components/VirtualTables/VirtualTable/VirtualTable.d.ts +1 -1
- package/build/components/VirtualTables/VirtualTable/VirtualTable.js +2 -2
- package/build/components/VirtualTables/VirtualTableWithCard/VirtualTableWithCard.d.ts +1 -1
- package/build/components/VirtualTables/VirtualTableWithCard/VirtualTableWithCard.js +2 -2
- package/build/components/VirtualTables/components/TableRow.js +2 -1
- package/build/components/Window/Window.d.ts +2 -1
- package/build/components/Window/Window.js +2 -2
- package/build/components/Window/style.d.ts +1 -0
- package/build/components/Window/style.js +1 -1
- package/build/components/index.d.ts +8 -0
- package/build/components/index.js +8 -0
- package/build/constants/apps.d.ts +41 -0
- package/build/constants/apps.js +19 -2
- package/build/constants/chips/index.d.ts +1 -0
- package/build/constants/chips/index.js +1 -0
- package/build/{components/StatusChip/constants.d.ts → constants/chips/statusChips.d.ts} +1 -1
- package/build/{components/StatusChip/constants.js → constants/chips/statusChips.js} +1 -1
- package/build/constants/index.d.ts +1 -0
- package/build/constants/index.js +1 -0
- package/build/constants/table/cell/authenticationsTableCellWidth.d.ts +1 -1
- package/build/constants/table/cell/authenticationsTableCellWidth.js +1 -1
- package/build/constants/table/cell/authorizationTableCellWidth.d.ts +4 -4
- package/build/constants/table/cell/authorizationTableCellWidth.js +4 -4
- package/build/constants/table/cell/chargeTableCellWidth.d.ts +3 -3
- package/build/constants/table/cell/chargeTableCellWidth.js +3 -3
- 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/apps.d.ts +50 -1
- package/build/types/table.d.ts +1 -1
- package/build/utils/color.d.ts +11 -0
- package/build/utils/color.js +27 -0
- package/build/utils/object.d.ts +1 -0
- package/build/utils/object.js +4 -3
- package/build/utils/table.d.ts +3 -6
- package/build/utils/table.js +6 -32
- package/package.json +29 -2
|
@@ -4,7 +4,7 @@ import { motion } from 'framer-motion';
|
|
|
4
4
|
import { Resizable } from 're-resizable';
|
|
5
5
|
import { APP_WINDOW_Z_INDEX, FOOTER_HEIGHT, HEADER_HEIGHT } from '../../constants/index.js';
|
|
6
6
|
import { contentStyle, ContentWrapper, initalStyle, resizableMainStyle, AppContainerWrapper, AppContainerContainer } from './style';
|
|
7
|
-
function WindowWrapper({ children, id, onResize, isMaximized, isMinimized, dragControls, onClick, options: { width, height, minHeight, minWidth, maxHeight, maxWidth, order, openOrder = 1 }, }) {
|
|
7
|
+
function WindowWrapper({ children, id, onResize, isMaximized, isMinimized, dragControls, onClick, options: { width, height, minHeight, minWidth, maxHeight, maxWidth, order, openOrder = 1 }, sandboxMode = false, }) {
|
|
8
8
|
const [isDrag, setIsDrag] = useState(true);
|
|
9
9
|
const modalRef = useRef(null);
|
|
10
10
|
const constraintsRef = useRef(null);
|
|
@@ -32,7 +32,7 @@ function WindowWrapper({ children, id, onResize, isMaximized, isMinimized, dragC
|
|
|
32
32
|
left: 48 * (openOrder - 1),
|
|
33
33
|
})), animate: Object.assign(Object.assign({ width }, (isMaximized && {
|
|
34
34
|
width: '100vw',
|
|
35
|
-
})), { scale: Number(!isMinimized), top: isMaximized ? 0 : HEADER_HEIGHT + FOOTER_HEIGHT * (openOrder - 1), left: isMaximized ? 0 : 48 * (openOrder - 1) }), ref: modalRef, maximized: isMaximized, transition: { duration: isMaximized ? 0.3 : 0 } }, { children: _jsx(Resizable, Object.assign({ ref: (c) => {
|
|
35
|
+
})), { scale: Number(!isMinimized), top: isMaximized ? 0 : HEADER_HEIGHT + FOOTER_HEIGHT * (openOrder - 1), left: isMaximized ? 0 : 48 * (openOrder - 1) }), ref: modalRef, maximized: isMaximized, transition: { duration: isMaximized ? 0.3 : 0 }, sandboxMode: sandboxMode }, { children: _jsx(Resizable, Object.assign({ ref: (c) => {
|
|
36
36
|
resizableRef.current = c;
|
|
37
37
|
}, style: resizableStyle, minHeight: minHeight, minWidth: minWidth, maxHeight: maxHeight, maxWidth: maxWidth, onResizeStart: onResizeStart, onResizeStop: onResizeStop, onResize: (_, __, element) => {
|
|
38
38
|
onResize === null || onResize === void 0 ? void 0 : onResize(element);
|
|
@@ -265,6 +265,7 @@ export declare const ContentWrapper: import("@emotion/styled").StyledComponent<{
|
|
|
265
265
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
266
266
|
} & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLDivElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
267
267
|
maximized?: boolean | undefined;
|
|
268
|
+
sandboxMode?: boolean | undefined;
|
|
268
269
|
}, {}, {}>;
|
|
269
270
|
export declare const AppContainerWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
270
271
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
@@ -30,7 +30,7 @@ export const initalStyle = {
|
|
|
30
30
|
};
|
|
31
31
|
export const ContentWrapper = styled(motion.div, {
|
|
32
32
|
shouldForwardProp: (props) => props !== 'maximized',
|
|
33
|
-
})(({ maximized }) => (Object.assign({ overflow: 'hidden', display: 'flex', flexDirection: 'column', width: '100%', height: '100%', zIndex: 1, borderRadius: '12px' }, (maximized && {
|
|
33
|
+
})(({ maximized, sandboxMode, theme }) => (Object.assign({ background: sandboxMode ? theme.palette.common.lightOrange : theme.palette.background.transparent[0], backdropFilter: 'blur(32px)', overflow: 'hidden', display: 'flex', flexDirection: 'column', width: '100%', height: '100%', zIndex: 1, borderRadius: '12px' }, (maximized && {
|
|
34
34
|
transform: 'translate(0,0) !important',
|
|
35
35
|
}))));
|
|
36
36
|
export const AppContainerWrapper = styled(Box)(() => ({
|
|
@@ -105,4 +105,12 @@ export * from './LeftPeekRightExpandingChip';
|
|
|
105
105
|
export { default as ColorPicker } from './ColorPicker';
|
|
106
106
|
export { default as WindowBackdrop } from './WindowBackdrop';
|
|
107
107
|
export { default as LazyImage } from './LazyImage';
|
|
108
|
+
export { default as AmountStatusChip, type AmountStatusChipProps } from './AmountStatusChip';
|
|
109
|
+
export { default as AuthenticationTypeChip, type AuthenticationTypeChipProps } from './AuthenticationTypeChip';
|
|
108
110
|
export * from './LazyImage';
|
|
111
|
+
export { default as ListLayout } from './ListLayout';
|
|
112
|
+
export * from './ListLayout';
|
|
113
|
+
export { default as ToggleView } from './ToggleView';
|
|
114
|
+
export * from './ToggleView';
|
|
115
|
+
export { default as AppServicesBar } from './AppServicesBar';
|
|
116
|
+
export * from './AppServicesBar';
|
|
@@ -105,4 +105,12 @@ export * from './LeftPeekRightExpandingChip';
|
|
|
105
105
|
export { default as ColorPicker } from './ColorPicker';
|
|
106
106
|
export { default as WindowBackdrop } from './WindowBackdrop';
|
|
107
107
|
export { default as LazyImage } from './LazyImage';
|
|
108
|
+
export { default as AmountStatusChip } from './AmountStatusChip';
|
|
109
|
+
export { default as AuthenticationTypeChip } from './AuthenticationTypeChip';
|
|
108
110
|
export * from './LazyImage';
|
|
111
|
+
export { default as ListLayout } from './ListLayout';
|
|
112
|
+
export * from './ListLayout';
|
|
113
|
+
export { default as ToggleView } from './ToggleView';
|
|
114
|
+
export * from './ToggleView';
|
|
115
|
+
export { default as AppServicesBar } from './AppServicesBar';
|
|
116
|
+
export * from './AppServicesBar';
|
|
@@ -12,6 +12,20 @@ export declare const SERVICE_COMMON_FUNCTIONS: {
|
|
|
12
12
|
code: string;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
+
export declare const BUSINESS_FUNCTIONS: {
|
|
16
|
+
updateEntity: {
|
|
17
|
+
code: string;
|
|
18
|
+
};
|
|
19
|
+
updateBrand: {
|
|
20
|
+
code: string;
|
|
21
|
+
};
|
|
22
|
+
updateUsers: {
|
|
23
|
+
code: string;
|
|
24
|
+
};
|
|
25
|
+
createUsers: {
|
|
26
|
+
code: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
15
29
|
export declare const APP_CODES: {
|
|
16
30
|
tokens: {
|
|
17
31
|
code: string;
|
|
@@ -84,6 +98,18 @@ export declare const APP_CODES: {
|
|
|
84
98
|
merchant: {
|
|
85
99
|
code: string;
|
|
86
100
|
functions: {
|
|
101
|
+
updateEntity: {
|
|
102
|
+
code: string;
|
|
103
|
+
};
|
|
104
|
+
updateBrand: {
|
|
105
|
+
code: string;
|
|
106
|
+
};
|
|
107
|
+
updateUsers: {
|
|
108
|
+
code: string;
|
|
109
|
+
};
|
|
110
|
+
createUsers: {
|
|
111
|
+
code: string;
|
|
112
|
+
};
|
|
87
113
|
view: {
|
|
88
114
|
code: string;
|
|
89
115
|
};
|
|
@@ -101,6 +127,18 @@ export declare const APP_CODES: {
|
|
|
101
127
|
retailer: {
|
|
102
128
|
code: string;
|
|
103
129
|
functions: {
|
|
130
|
+
updateEntity: {
|
|
131
|
+
code: string;
|
|
132
|
+
};
|
|
133
|
+
updateBrand: {
|
|
134
|
+
code: string;
|
|
135
|
+
};
|
|
136
|
+
updateUsers: {
|
|
137
|
+
code: string;
|
|
138
|
+
};
|
|
139
|
+
createUsers: {
|
|
140
|
+
code: string;
|
|
141
|
+
};
|
|
104
142
|
view: {
|
|
105
143
|
code: string;
|
|
106
144
|
};
|
|
@@ -719,3 +757,6 @@ export declare const APP_ICONS: {
|
|
|
719
757
|
toolbarIconUrl: string;
|
|
720
758
|
}[];
|
|
721
759
|
export declare const excludedApps: string[];
|
|
760
|
+
export declare const MF_APPS_MAPPER: Readonly<{
|
|
761
|
+
TERMINALS: "TERMINALS";
|
|
762
|
+
}>;
|
package/build/constants/apps.js
CHANGED
|
@@ -14,6 +14,20 @@ export const SERVICE_COMMON_FUNCTIONS = {
|
|
|
14
14
|
code: 'REPORTS',
|
|
15
15
|
},
|
|
16
16
|
};
|
|
17
|
+
export const BUSINESS_FUNCTIONS = {
|
|
18
|
+
updateEntity: {
|
|
19
|
+
code: 'UPDATE ENTITY',
|
|
20
|
+
},
|
|
21
|
+
updateBrand: {
|
|
22
|
+
code: 'UPDATE BRAND',
|
|
23
|
+
},
|
|
24
|
+
updateUsers: {
|
|
25
|
+
code: 'UPDATE USERS',
|
|
26
|
+
},
|
|
27
|
+
createUsers: {
|
|
28
|
+
code: 'CREATE USERS',
|
|
29
|
+
},
|
|
30
|
+
};
|
|
17
31
|
export const APP_CODES = {
|
|
18
32
|
tokens: {
|
|
19
33
|
code: 'TOKEN',
|
|
@@ -40,11 +54,11 @@ export const APP_CODES = {
|
|
|
40
54
|
services: {
|
|
41
55
|
merchant: {
|
|
42
56
|
code: 'MERCHANT',
|
|
43
|
-
functions: Object.assign({}, SERVICE_COMMON_FUNCTIONS),
|
|
57
|
+
functions: Object.assign(Object.assign({}, SERVICE_COMMON_FUNCTIONS), BUSINESS_FUNCTIONS),
|
|
44
58
|
},
|
|
45
59
|
retailer: {
|
|
46
60
|
code: 'RETAILER',
|
|
47
|
-
functions: Object.assign({}, SERVICE_COMMON_FUNCTIONS),
|
|
61
|
+
functions: Object.assign(Object.assign({}, SERVICE_COMMON_FUNCTIONS), BUSINESS_FUNCTIONS),
|
|
48
62
|
},
|
|
49
63
|
},
|
|
50
64
|
},
|
|
@@ -359,3 +373,6 @@ export const APP_ICONS = [
|
|
|
359
373
|
},
|
|
360
374
|
];
|
|
361
375
|
export const excludedApps = ['login'];
|
|
376
|
+
export const MF_APPS_MAPPER = Object.freeze({
|
|
377
|
+
TERMINALS: 'TERMINALS',
|
|
378
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './statusChips';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './statusChips';
|
package/build/constants/index.js
CHANGED
|
@@ -57,12 +57,12 @@ export declare const authorizationTableCellWidth: {
|
|
|
57
57
|
readonly payment_agreement: {
|
|
58
58
|
readonly default: "50px";
|
|
59
59
|
readonly text: "150px";
|
|
60
|
-
readonly sheet: "
|
|
60
|
+
readonly sheet: "230px";
|
|
61
61
|
};
|
|
62
62
|
readonly amount: {
|
|
63
63
|
readonly default: "170px";
|
|
64
64
|
readonly text: "195px";
|
|
65
|
-
readonly sheet: "
|
|
65
|
+
readonly sheet: "150px";
|
|
66
66
|
};
|
|
67
67
|
readonly destinations: {
|
|
68
68
|
readonly default: "70px";
|
|
@@ -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";
|
|
@@ -57,12 +57,12 @@ export const authorizationTableCellWidth = {
|
|
|
57
57
|
payment_agreement: {
|
|
58
58
|
default: '50px',
|
|
59
59
|
text: '150px',
|
|
60
|
-
sheet: '
|
|
60
|
+
sheet: '230px',
|
|
61
61
|
},
|
|
62
62
|
amount: {
|
|
63
63
|
default: '170px',
|
|
64
64
|
text: '195px',
|
|
65
|
-
sheet: '
|
|
65
|
+
sheet: '150px',
|
|
66
66
|
},
|
|
67
67
|
destinations: {
|
|
68
68
|
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";
|
|
@@ -222,7 +222,7 @@ export declare const chargeTableCellWidth: {
|
|
|
222
222
|
readonly consolidated_amount: {
|
|
223
223
|
readonly default: "180px";
|
|
224
224
|
readonly text: "180px";
|
|
225
|
-
readonly sheet: "
|
|
225
|
+
readonly sheet: "150px";
|
|
226
226
|
};
|
|
227
227
|
readonly customer_amount: {
|
|
228
228
|
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',
|
|
@@ -222,7 +222,7 @@ export const chargeTableCellWidth = {
|
|
|
222
222
|
consolidated_amount: {
|
|
223
223
|
default: '180px',
|
|
224
224
|
text: '180px',
|
|
225
|
-
sheet: '
|
|
225
|
+
sheet: '150px',
|
|
226
226
|
},
|
|
227
227
|
customer_amount: {
|
|
228
228
|
default: '150px',
|
|
@@ -67,7 +67,7 @@ export declare const destinationsTableCellWidth: {
|
|
|
67
67
|
readonly amount: {
|
|
68
68
|
readonly default: "195px";
|
|
69
69
|
readonly text: "195px";
|
|
70
|
-
readonly sheet: "
|
|
70
|
+
readonly sheet: "150px";
|
|
71
71
|
};
|
|
72
72
|
readonly status: {
|
|
73
73
|
readonly default: "50px";
|
|
@@ -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";
|
|
@@ -67,7 +67,7 @@ export const destinationsTableCellWidth = {
|
|
|
67
67
|
amount: {
|
|
68
68
|
default: '195px',
|
|
69
69
|
text: '195px',
|
|
70
|
-
sheet: '
|
|
70
|
+
sheet: '150px',
|
|
71
71
|
},
|
|
72
72
|
status: {
|
|
73
73
|
default: '50px',
|
|
@@ -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',
|
|
@@ -87,12 +87,12 @@ 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";
|
|
94
94
|
readonly text: "195px";
|
|
95
|
-
readonly sheet: "
|
|
95
|
+
readonly sheet: "150px";
|
|
96
96
|
};
|
|
97
97
|
readonly payouts: {
|
|
98
98
|
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";
|
|
@@ -87,12 +87,12 @@ 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',
|
|
94
94
|
text: '195px',
|
|
95
|
-
sheet: '
|
|
95
|
+
sheet: '150px',
|
|
96
96
|
},
|
|
97
97
|
payouts: {
|
|
98
98
|
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/apps.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { ColumnsView } from './column';
|
|
2
|
-
import { TextAndLang } from './user';
|
|
2
|
+
import { Segment, SegmentCountry, TextAndLang } from './user';
|
|
3
3
|
import { BusinessMerchant } from './merchant';
|
|
4
|
+
import type { i18n } from 'i18next';
|
|
5
|
+
import type { DragControls } from 'framer-motion';
|
|
6
|
+
import { Theme } from '@mui/material';
|
|
7
|
+
import { CalenderMode } from './theme';
|
|
8
|
+
import { Timezone } from './appConfig';
|
|
4
9
|
export interface AccountAppPayload {
|
|
5
10
|
disabledAccountDataFetching?: boolean;
|
|
6
11
|
isAccountDetailsOpen: boolean;
|
|
@@ -63,3 +68,47 @@ export interface UserApp {
|
|
|
63
68
|
name: TextAndLang[];
|
|
64
69
|
app_services: AppService[];
|
|
65
70
|
}
|
|
71
|
+
export type NavigateFunction = (params: {
|
|
72
|
+
instanceId?: string;
|
|
73
|
+
appId?: string;
|
|
74
|
+
appCode: string;
|
|
75
|
+
serviceCode: string;
|
|
76
|
+
state?: any;
|
|
77
|
+
}) => void;
|
|
78
|
+
export type MFWidgetBaseProps = {
|
|
79
|
+
instanceId: string;
|
|
80
|
+
i18n?: i18n;
|
|
81
|
+
app?: UserApp;
|
|
82
|
+
appWindow: {
|
|
83
|
+
isMinimized: boolean;
|
|
84
|
+
isMaximized: boolean;
|
|
85
|
+
order: number;
|
|
86
|
+
dimensions: Pick<AppDetails['dimensions'], 'width' | 'height'>;
|
|
87
|
+
};
|
|
88
|
+
features: {
|
|
89
|
+
hasReportsApp: boolean;
|
|
90
|
+
hasHeader: boolean;
|
|
91
|
+
sandboxMode: boolean;
|
|
92
|
+
initialServiceCode?: string;
|
|
93
|
+
};
|
|
94
|
+
segment: Pick<Segment, 'id' | 'brands' | 'countries'> & {
|
|
95
|
+
defaultCountry?: SegmentCountry;
|
|
96
|
+
};
|
|
97
|
+
ui: {
|
|
98
|
+
theme: Theme;
|
|
99
|
+
onStartDrag: DragControls['start'];
|
|
100
|
+
};
|
|
101
|
+
calendar: {
|
|
102
|
+
mode: CalenderMode;
|
|
103
|
+
onSwitch: (mode: CalenderMode) => void;
|
|
104
|
+
};
|
|
105
|
+
navigation: {
|
|
106
|
+
navigate: NavigateFunction;
|
|
107
|
+
};
|
|
108
|
+
timezone: {
|
|
109
|
+
current?: Timezone | null;
|
|
110
|
+
default?: Timezone;
|
|
111
|
+
onChange: (timezone: Timezone) => void;
|
|
112
|
+
onChangeHistory: (timezone: Timezone) => void;
|
|
113
|
+
};
|
|
114
|
+
};
|
package/build/types/table.d.ts
CHANGED
package/build/utils/color.d.ts
CHANGED
|
@@ -1,2 +1,13 @@
|
|
|
1
|
+
import { ColorObject } from 'color';
|
|
1
2
|
export declare function getRandomColor(): string;
|
|
2
3
|
export declare function getRandomGradientColor(): string;
|
|
4
|
+
export declare const hexa2Rgba: (value: string) => {
|
|
5
|
+
value: {
|
|
6
|
+
r: number;
|
|
7
|
+
g: number;
|
|
8
|
+
b: number;
|
|
9
|
+
alpha: number;
|
|
10
|
+
};
|
|
11
|
+
stringified: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const rgba2Hexa: (value: ColorObject) => string;
|
package/build/utils/color.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Color from 'color';
|
|
1
2
|
export function getRandomColor() {
|
|
2
3
|
const colors = [
|
|
3
4
|
'#D6D6D6',
|
|
@@ -36,3 +37,29 @@ export function getRandomGradientColor() {
|
|
|
36
37
|
];
|
|
37
38
|
return colors[Math.trunc(Math.random() * colors.length)];
|
|
38
39
|
}
|
|
40
|
+
const BLACK_RGBA_COLOR = {
|
|
41
|
+
r: 0,
|
|
42
|
+
g: 0,
|
|
43
|
+
b: 0,
|
|
44
|
+
alpha: 1,
|
|
45
|
+
};
|
|
46
|
+
export const hexa2Rgba = (value) => {
|
|
47
|
+
try {
|
|
48
|
+
const colorInstance = Color(value).rgb();
|
|
49
|
+
const { r, g, b, alpha = 1 } = colorInstance.object();
|
|
50
|
+
return {
|
|
51
|
+
value: { r, g, b, alpha },
|
|
52
|
+
stringified: `rgba(${r},${g},${b},${alpha})`,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
catch (error) {
|
|
56
|
+
console.error(error);
|
|
57
|
+
console.warn(`Invalid hex color: "${value}". Falling back to black.`);
|
|
58
|
+
const { r, g, b, alpha } = BLACK_RGBA_COLOR;
|
|
59
|
+
return {
|
|
60
|
+
value: BLACK_RGBA_COLOR,
|
|
61
|
+
stringified: `rgba(${r},${g},${b},${alpha})`,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
export const rgba2Hexa = (value) => Color(value).hexa();
|
package/build/utils/object.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare function removeUndefinedValues(obj: Record<string, unknown>): {
|
|
2
2
|
[k: string]: unknown;
|
|
3
3
|
};
|
|
4
|
+
export declare const isEmptyValue: (value: unknown) => boolean;
|
|
4
5
|
export declare function removeUndefinedArrayValues(obj: Record<string, unknown>): {
|
|
5
6
|
[k: string]: unknown;
|
|
6
7
|
};
|
package/build/utils/object.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
export function removeUndefinedValues(obj) {
|
|
2
2
|
return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== undefined));
|
|
3
3
|
}
|
|
4
|
+
export const isEmptyValue = (value) => value === undefined || value === null || value === '';
|
|
4
5
|
export function removeUndefinedArrayValues(obj) {
|
|
5
6
|
return Object.fromEntries(Object.entries(obj).filter(([, value]) => {
|
|
6
7
|
if (Array.isArray(value)) {
|
|
7
|
-
return value.length > 0 && (value === null || value === void 0 ? void 0 : value.some((v) =>
|
|
8
|
+
return value.length > 0 && (value === null || value === void 0 ? void 0 : value.some((v) => !isEmptyValue(v)));
|
|
8
9
|
}
|
|
9
10
|
if (typeof value === 'object') {
|
|
10
|
-
return Object.values(value || {}).some((v) =>
|
|
11
|
+
return Object.values(value || {}).some((v) => !isEmptyValue(v));
|
|
11
12
|
}
|
|
12
|
-
return
|
|
13
|
+
return !isEmptyValue(value);
|
|
13
14
|
}));
|
|
14
15
|
}
|
package/build/utils/table.d.ts
CHANGED
|
@@ -6,9 +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
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const getSheetViewRowHeight: () => number;
|
|
13
|
-
export declare const calculateSheetViewOptimalHeight: (totalRows: number, tableType: string, maxHeightPercentage?: number) => number;
|
|
14
|
-
export declare const isTableDefaultMode: (tableMode?: TableMode) => boolean;
|
|
9
|
+
export declare const isTableDefaultMode: (tableMode: TableMode) => boolean;
|
|
10
|
+
export declare const isTableSheetMode: (tableMode: TableMode) => boolean;
|
|
11
|
+
export declare const isTableTextMode: (tableMode: TableMode) => boolean;
|