@tap-payments/os-micro-frontend-shared 0.1.95 → 0.1.96-test.11

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 (59) hide show
  1. package/build/components/ActionMenu/style.d.ts +1 -1
  2. package/build/components/AppServices/AppServices.d.ts +10 -5
  3. package/build/components/AppServices/AppServices.js +16 -18
  4. package/build/components/AppServices/ServiceItem.d.ts +2 -4
  5. package/build/components/AppServices/ServiceItem.js +2 -4
  6. package/build/components/AppServicesBar/AppServicesBar.d.ts +25 -0
  7. package/build/components/AppServicesBar/AppServicesBar.js +18 -0
  8. package/build/components/AppServicesBar/index.d.ts +3 -0
  9. package/build/components/AppServicesBar/index.js +3 -0
  10. package/build/components/AppServicesBar/style.d.ts +4 -0
  11. package/build/components/AppServicesBar/style.js +6 -0
  12. package/build/components/ListLayout/ListLayout.d.ts +10 -0
  13. package/build/components/ListLayout/ListLayout.js +20 -0
  14. package/build/components/ListLayout/index.d.ts +2 -0
  15. package/build/components/ListLayout/index.js +2 -0
  16. package/build/components/ListLayout/styles.d.ts +4 -0
  17. package/build/components/ListLayout/styles.js +9 -0
  18. package/build/components/SearchButton/styles.d.ts +1 -1
  19. package/build/components/StatusIcons/AuthorizedIcon/AuthorizedIcon.d.ts +4 -2
  20. package/build/components/StatusIcons/AuthorizedIcon/AuthorizedIcon.js +9 -4
  21. package/build/components/StatusIcons/ChargeStatusIcon/ChargeStatusIcon.d.ts +2 -1
  22. package/build/components/StatusIcons/ChargeStatusIcon/ChargeStatusIcon.js +2 -2
  23. package/build/components/StatusIcons/DestinationIcon/DestinationIcon.d.ts +5 -2
  24. package/build/components/StatusIcons/DestinationIcon/DestinationIcon.js +13 -5
  25. package/build/components/StatusIcons/PayoutIcon/PayoutIcon.d.ts +5 -1
  26. package/build/components/StatusIcons/PayoutIcon/PayoutIcon.js +8 -3
  27. package/build/components/StatusIcons/RefundIcon/RefundIcon.d.ts +5 -1
  28. package/build/components/StatusIcons/RefundIcon/RefundIcon.js +18 -10
  29. package/build/components/ToggleView/ToggleView.d.ts +16 -0
  30. package/build/components/ToggleView/ToggleView.js +32 -0
  31. package/build/components/ToggleView/ToggleWrapper.d.ts +4 -0
  32. package/build/components/ToggleView/ToggleWrapper.js +8 -0
  33. package/build/components/ToggleView/index.d.ts +3 -0
  34. package/build/components/ToggleView/index.js +3 -0
  35. package/build/components/ToggleView/style.d.ts +14 -0
  36. package/build/components/ToggleView/style.js +31 -0
  37. package/build/components/ToggleView/types.d.ts +6 -0
  38. package/build/components/ToggleView/types.js +6 -0
  39. package/build/components/Toolbar/style.d.ts +6 -0
  40. package/build/components/Toolbar/style.js +5 -0
  41. package/build/components/VirtualTables/SheetViewVirtualTable/SheetViewVirtualTable.d.ts +1 -1
  42. package/build/components/VirtualTables/SheetViewVirtualTable/SheetViewVirtualTable.js +2 -2
  43. package/build/components/VirtualTables/VirtualTable/VirtualTable.d.ts +1 -1
  44. package/build/components/VirtualTables/VirtualTable/VirtualTable.js +2 -2
  45. package/build/components/VirtualTables/VirtualTableWithCard/VirtualTableWithCard.d.ts +1 -1
  46. package/build/components/VirtualTables/VirtualTableWithCard/VirtualTableWithCard.js +2 -2
  47. package/build/components/index.d.ts +6 -0
  48. package/build/components/index.js +6 -0
  49. package/build/constants/apps.d.ts +3 -0
  50. package/build/constants/apps.js +3 -0
  51. package/build/constants/table/cell/authorizationTableCellWidth.d.ts +1 -1
  52. package/build/constants/table/cell/authorizationTableCellWidth.js +1 -1
  53. package/build/constants/table/cell/chargeTableCellWidth.d.ts +1 -1
  54. package/build/constants/table/cell/chargeTableCellWidth.js +1 -1
  55. package/build/constants/table/cell/destinationsTableCellWidth.d.ts +67 -7
  56. package/build/constants/table/cell/destinationsTableCellWidth.js +67 -7
  57. package/build/types/apps.d.ts +52 -1
  58. package/build/types/table.d.ts +1 -1
  59. package/package.json +29 -2
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cardViewButtonIcon, listViewButtonIcon } from '../../constants/index.js';
3
+ import { ActiveOverlay, ViewButton } from './style';
4
+ import { ToggleViews } from './types';
5
+ import { useMemo } from 'react';
6
+ import ToggleWrapper from './ToggleWrapper';
7
+ const DEFAULT_TOGGLE_VIEWS = [
8
+ {
9
+ icon: _jsx("img", { src: cardViewButtonIcon, alt: "card" }),
10
+ value: ToggleViews.CARDS,
11
+ },
12
+ {
13
+ icon: _jsx("img", { src: listViewButtonIcon, alt: ToggleViews.LIST }),
14
+ value: ToggleViews.LIST,
15
+ },
16
+ ];
17
+ const ToggleView = (props) => {
18
+ const { currentView, onToggleClick, getOverrideViews } = props;
19
+ const views = useMemo(() => {
20
+ if (getOverrideViews)
21
+ return getOverrideViews(DEFAULT_TOGGLE_VIEWS);
22
+ return DEFAULT_TOGGLE_VIEWS;
23
+ }, [getOverrideViews]);
24
+ const viewIndex = useMemo(() => views.findIndex((view) => view.value === currentView), [views, currentView]);
25
+ if (!onToggleClick)
26
+ return null;
27
+ return (_jsxs(ToggleWrapper, { children: [views.map((view) => (_jsx(ViewButton, Object.assign({ onClick: () => onToggleClick(view.value), sx: {
28
+ height: '11.6px',
29
+ width: '11.6px',
30
+ }, isActive: currentView === view.value }, { children: view.icon }), view.value))), _jsx(ActiveOverlay, { activeIndex: viewIndex })] }));
31
+ };
32
+ export default ToggleView;
@@ -0,0 +1,4 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { type BoxProps } from '@mui/material/Box';
3
+ declare const ToggleWrapper: (props: PropsWithChildren<BoxProps>) => import("react/jsx-runtime").JSX.Element;
4
+ export default ToggleWrapper;
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import { ToggleWrapperStyled } from './style';
4
+ const ToggleWrapper = (props) => {
5
+ const viewTogglers = React.Children.count(props.children) - 1;
6
+ return _jsx(ToggleWrapperStyled, Object.assign({}, props, { sx: { width: viewTogglers * 30 + 2 } }));
7
+ };
8
+ export default ToggleWrapper;
@@ -0,0 +1,3 @@
1
+ import ToggleView from './ToggleView';
2
+ export default ToggleView;
3
+ export * from './types';
@@ -0,0 +1,3 @@
1
+ import ToggleView from './ToggleView';
2
+ export default ToggleView;
3
+ export * from './types';
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ export declare const ToggleWrapperStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
+ export declare const ViewButton: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
6
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
7
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
8
+ isActive: boolean;
9
+ }, {}, {}>;
10
+ export declare const ActiveOverlay: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
11
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
12
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
13
+ activeIndex: number;
14
+ }, {}, {}>;
@@ -0,0 +1,31 @@
1
+ import { Box, styled } from '@mui/material';
2
+ export const ToggleWrapperStyled = styled(Box)(({ theme }) => ({
3
+ height: '32px',
4
+ borderRadius: '4px',
5
+ backgroundColor: theme.palette.action.hover,
6
+ padding: '2px',
7
+ display: 'flex',
8
+ alignItems: 'center',
9
+ position: 'relative',
10
+ cursor: 'pointer'
11
+ }));
12
+ export const ViewButton = styled(Box, { shouldForwardProp: (props) => props !== 'isActive' })(({ isActive }) => ({
13
+ flex: 1,
14
+ display: 'flex',
15
+ justifyContent: 'center',
16
+ alignItems: 'center',
17
+ position: 'relative',
18
+ zIndex: 2,
19
+ opacity: isActive ? 1 : 0.5
20
+ }));
21
+ export const ActiveOverlay = styled(Box, { shouldForwardProp: (props) => props !== 'activeIndex' })(({ theme, activeIndex }) => ({
22
+ position: 'absolute',
23
+ top: 2,
24
+ left: activeIndex * 30 + 2,
25
+ transition: 'all 0.25s ease-in-out',
26
+ width: '28px',
27
+ height: '28px',
28
+ backgroundColor: theme.palette.common.white,
29
+ borderRadius: '2px',
30
+ boxShadow: '0px 0px 4px 0px rgba(0, 0, 0, 0.20)'
31
+ }));
@@ -0,0 +1,6 @@
1
+ export declare enum ToggleViews {
2
+ LIST = "LIST",
3
+ CARDS = "CARDS",
4
+ MAP = "MAP"
5
+ }
6
+ export type ToggleViewsValues = `${ToggleViews}` | (string & {});
@@ -0,0 +1,6 @@
1
+ export var ToggleViews;
2
+ (function (ToggleViews) {
3
+ ToggleViews["LIST"] = "LIST";
4
+ ToggleViews["CARDS"] = "CARDS";
5
+ ToggleViews["MAP"] = "MAP";
6
+ })(ToggleViews || (ToggleViews = {}));
@@ -13,6 +13,12 @@ export declare const StyledHeaderWrapper: import("@emotion/styled").StyledCompon
13
13
  maximized?: boolean | undefined;
14
14
  isDragging?: boolean | undefined;
15
15
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
16
+ export declare const StyledAppHeaderWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
17
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
18
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
19
+ sandboxMode?: boolean | undefined;
20
+ isDragging?: boolean | undefined;
21
+ }, {}, {}>;
16
22
  export declare const ToolbarStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
17
23
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
18
24
  }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
@@ -44,6 +44,11 @@ export const StyledHeaderWrapper = styled('div', {
44
44
  })), (isDragging && {
45
45
  cursor: 'move',
46
46
  })), { margin: 0 })));
47
+ export const StyledAppHeaderWrapper = styled(Box, {
48
+ shouldForwardProp: (prop) => prop !== 'maximized' && prop !== 'isDragging',
49
+ })(({ isDragging }) => (Object.assign(Object.assign({}, (isDragging && {
50
+ cursor: 'move',
51
+ })), { margin: 0 })));
47
52
  export const ToolbarStyled = styled(Box, {
48
53
  shouldForwardProp: (props) => props !== 'maximized' && props !== 'isHovered',
49
54
  })(({ theme, maximized }) => (Object.assign(Object.assign({ height: 32, position: 'relative', display: 'flex', width: '100%', justifyContent: 'center', transition: 'all 0.5s ease-in-out', borderTopLeftRadius: '12px', borderTopRightRadius: '12px' }, (maximized && {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { ISheetViewVirtualTable } from './types';
3
- declare function SheetViewVirtualTable({ columns, rows, threshold, showHeader, headerProps, rowProps, footerProps, rowHeight, isLoading, error, columnsSorting, onColumnSort, loadMoreItems, isFetchingNextPage, triggerDataRefetch, scrollToIndex, areAllRowsLoaded, tableBodyStyles, tableTitle, dragControls, onColumnPin, clearBackdropVisibilityTimeout, isPinnable, tableMode, overscanCount, }: Readonly<ISheetViewVirtualTable>): import("react/jsx-runtime").JSX.Element;
3
+ declare function SheetViewVirtualTable({ columns, rows, threshold, showHeader, headerProps, rowProps, footerProps, rowHeight, isLoading, error, columnsSorting, onColumnSort, loadMoreItems, isFetchingNextPage, triggerDataRefetch, scrollToIndex, areAllRowsLoaded, tableBodyStyles, tableTitle, onStartDrag, onColumnPin, clearBackdropVisibilityTimeout, isPinnable, tableMode, overscanCount, }: Readonly<ISheetViewVirtualTable>): import("react/jsx-runtime").JSX.Element;
4
4
  declare const _default: import("react").MemoExoticComponent<typeof SheetViewVirtualTable>;
5
5
  export default _default;
@@ -6,7 +6,7 @@ import { SheetViewTableContainer } from '../components/style';
6
6
  import { SheetViewVirtualTableWrapper } from './style';
7
7
  import { usePinnedColumns, useSynchronizedScroll, useTableState, useTableData, useVirtualTableContainer, usePinnedColumnsWidths } from './hooks';
8
8
  import { PinnedColumn, MainTable, LoadingMainTable, NoDataView, VirtualTable } from './components';
9
- function SheetViewVirtualTable({ columns, rows, threshold = SHEET_VIEW_TABLE_THRESHOLD, showHeader, headerProps, rowProps, footerProps, rowHeight = 28, isLoading, error, columnsSorting, onColumnSort, loadMoreItems, isFetchingNextPage, triggerDataRefetch, scrollToIndex, areAllRowsLoaded = false, tableBodyStyles, tableTitle, dragControls, onColumnPin, clearBackdropVisibilityTimeout = 100, isPinnable = false, tableMode, overscanCount, }) {
9
+ function SheetViewVirtualTable({ columns, rows, threshold = SHEET_VIEW_TABLE_THRESHOLD, showHeader, headerProps, rowProps, footerProps, rowHeight = 28, isLoading, error, columnsSorting, onColumnSort, loadMoreItems, isFetchingNextPage, triggerDataRefetch, scrollToIndex, areAllRowsLoaded = false, tableBodyStyles, tableTitle, onStartDrag, onColumnPin, clearBackdropVisibilityTimeout = 100, isPinnable = false, tableMode, overscanCount, }) {
10
10
  const { selectedCell, selectedColumn, selectedRow, showBackDrop, setShowBackdrop, handleCellClick, handleColumnClick, handleChipClick, selectedChip, } = useTableState();
11
11
  const { isError, tableLoading, tableError, tableEmpty, hasTimeoutError, showNoDataView, lastItemIndex, areTotalRowsNotFillingHeight, itemsCount, isDelayedFetchingNextPage, } = useTableData({
12
12
  rows,
@@ -35,7 +35,7 @@ function SheetViewVirtualTable({ columns, rows, threshold = SHEET_VIEW_TABLE_THR
35
35
  handleChipClick,
36
36
  });
37
37
  const onPointerDown = (e) => {
38
- dragControls === null || dragControls === void 0 ? void 0 : dragControls.start(e);
38
+ onStartDrag === null || onStartDrag === void 0 ? void 0 : onStartDrag(e);
39
39
  };
40
40
  const createVirtualTableContainer = useCallback((columnsData, containerKey, isPinned = false, fixedWidth) => {
41
41
  const listRef = containerKey === 'pinnedStart' ? pinnedStartVirtualListRef : containerKey === 'pinnedEnd' ? pinnedEndVirtualListRef : scrollableVirtualListRef;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import type { IVirtualTable } from '../../../types/index.js';
3
- declare function VirtualTable({ columns, rows, threshold, showHeader, headerProps, rowProps, footerProps, isLoading, error, columnsSorting, onColumnSort, loadMoreItems, isFetchingNextPage, triggerDataRefetch, scrollToIndex, areAllRowsLoaded, tableBodyStyles, tableMode, tableTitle, dragControls, isSheetView, isMinimized, }: Readonly<IVirtualTable>): import("react/jsx-runtime").JSX.Element;
3
+ declare function VirtualTable({ columns, rows, threshold, showHeader, headerProps, rowProps, footerProps, isLoading, error, columnsSorting, onColumnSort, loadMoreItems, isFetchingNextPage, triggerDataRefetch, scrollToIndex, areAllRowsLoaded, tableBodyStyles, tableMode, tableTitle, onStartDrag, isSheetView, isMinimized, }: Readonly<IVirtualTable>): import("react/jsx-runtime").JSX.Element;
4
4
  declare const _default: import("react").MemoExoticComponent<typeof VirtualTable>;
5
5
  export default _default;
@@ -34,11 +34,11 @@ const createItemData = memoize((columns, isLoading, rows, rowProps, scrollToInde
34
34
  areAllRowsLoaded,
35
35
  isSheetView,
36
36
  }));
37
- function VirtualTable({ columns, rows, threshold = TABLE_THRESHOLD, showHeader, headerProps, rowProps, footerProps, isLoading, error, columnsSorting, onColumnSort, loadMoreItems, isFetchingNextPage, triggerDataRefetch, scrollToIndex, areAllRowsLoaded = false, tableBodyStyles, tableMode, tableTitle, dragControls, isSheetView = false, isMinimized, }) {
37
+ function VirtualTable({ columns, rows, threshold = TABLE_THRESHOLD, showHeader, headerProps, rowProps, footerProps, isLoading, error, columnsSorting, onColumnSort, loadMoreItems, isFetchingNextPage, triggerDataRefetch, scrollToIndex, areAllRowsLoaded = false, tableBodyStyles, tableMode, tableTitle, onStartDrag, isSheetView = false, isMinimized, }) {
38
38
  var _a;
39
39
  const theme = useTheme();
40
40
  const onPointerDown = (e) => {
41
- dragControls === null || dragControls === void 0 ? void 0 : dragControls.start(e);
41
+ onStartDrag === null || onStartDrag === void 0 ? void 0 : onStartDrag(e);
42
42
  };
43
43
  const isDelayedFetchingNextPage = useDelayToSetValue({
44
44
  value: isFetchingNextPage,
@@ -8,6 +8,6 @@ export interface VirtualTableWithCardProps extends Omit<IVirtualTable, 'showHead
8
8
  tableHeight: number;
9
9
  tableHeaderHeight?: number;
10
10
  }
11
- declare function VirtualTableWithCard({ rows, threshold, rowProps, footerProps, rowHeight, isLoading, error, tableHeader, loadMoreItems, isFetchingNextPage, triggerDataRefetch, scrollToIndex, areAllRowsLoaded, tableBodyStyles, tableMode, tableTitle, renderCardComponent, cardLoadingComponent, tableHeight, tableHeaderHeight, noDataComponent, dragControls, }: VirtualTableWithCardProps): import("react/jsx-runtime").JSX.Element;
11
+ declare function VirtualTableWithCard({ rows, threshold, rowProps, footerProps, rowHeight, isLoading, error, tableHeader, loadMoreItems, isFetchingNextPage, triggerDataRefetch, scrollToIndex, areAllRowsLoaded, tableBodyStyles, tableMode, tableTitle, renderCardComponent, cardLoadingComponent, tableHeight, tableHeaderHeight, noDataComponent, onStartDrag, }: Readonly<VirtualTableWithCardProps>): import("react/jsx-runtime").JSX.Element;
12
12
  declare const _default: import("react").MemoExoticComponent<typeof VirtualTableWithCard>;
13
13
  export default _default;
@@ -32,11 +32,11 @@ const createItemData = memoize((isLoading, rows, rowProps, scrollToIndex, lastIt
32
32
  areAllRowsLoaded,
33
33
  renderCardComponent,
34
34
  }));
35
- function VirtualTableWithCard({ rows, threshold = TABLE_THRESHOLD, rowProps, footerProps, rowHeight = TABLE_ROW_HEIGHT, isLoading, error, tableHeader, loadMoreItems, isFetchingNextPage, triggerDataRefetch, scrollToIndex, areAllRowsLoaded = false, tableBodyStyles, tableMode, tableTitle, renderCardComponent, cardLoadingComponent, tableHeight, tableHeaderHeight, noDataComponent, dragControls, }) {
35
+ function VirtualTableWithCard({ rows, threshold = TABLE_THRESHOLD, rowProps, footerProps, rowHeight = TABLE_ROW_HEIGHT, isLoading, error, tableHeader, loadMoreItems, isFetchingNextPage, triggerDataRefetch, scrollToIndex, areAllRowsLoaded = false, tableBodyStyles, tableMode, tableTitle, renderCardComponent, cardLoadingComponent, tableHeight, tableHeaderHeight, noDataComponent, onStartDrag, }) {
36
36
  var _a;
37
37
  const theme = useTheme();
38
38
  const onPointerDown = (e) => {
39
- dragControls === null || dragControls === void 0 ? void 0 : dragControls.start(e);
39
+ onStartDrag === null || onStartDrag === void 0 ? void 0 : onStartDrag(e);
40
40
  };
41
41
  const isDelayedFetchingNextPage = useDelayToSetValue({
42
42
  value: isFetchingNextPage,
@@ -97,6 +97,10 @@ export { default as AppServices } from './AppServices';
97
97
  export { default as ScrollLoader } from './ScrollLoader';
98
98
  export * from './ScrollLoader';
99
99
  export * from './TooltipChip';
100
+ export { default as ListLayout } from './ListLayout';
101
+ export * from './ListLayout';
102
+ export { default as ToggleView } from './ToggleView';
103
+ export * from './ToggleView';
100
104
  export * from './RightLeftExpandingCenterChip';
101
105
  export { default as StatusChipWithCopy } from './StatusChipWithCopy';
102
106
  export * from './RadioButton';
@@ -106,3 +110,5 @@ export { default as ColorPicker } from './ColorPicker';
106
110
  export { default as WindowBackdrop } from './WindowBackdrop';
107
111
  export { default as LazyImage } from './LazyImage';
108
112
  export * from './LazyImage';
113
+ export { default as AppServicesBar } from './AppServicesBar';
114
+ export * from './AppServicesBar';
@@ -97,6 +97,10 @@ export { default as AppServices } from './AppServices';
97
97
  export { default as ScrollLoader } from './ScrollLoader';
98
98
  export * from './ScrollLoader';
99
99
  export * from './TooltipChip';
100
+ export { default as ListLayout } from './ListLayout';
101
+ export * from './ListLayout';
102
+ export { default as ToggleView } from './ToggleView';
103
+ export * from './ToggleView';
100
104
  export * from './RightLeftExpandingCenterChip';
101
105
  export { default as StatusChipWithCopy } from './StatusChipWithCopy';
102
106
  export * from './RadioButton';
@@ -106,3 +110,5 @@ export { default as ColorPicker } from './ColorPicker';
106
110
  export { default as WindowBackdrop } from './WindowBackdrop';
107
111
  export { default as LazyImage } from './LazyImage';
108
112
  export * from './LazyImage';
113
+ export { default as AppServicesBar } from './AppServicesBar';
114
+ export * from './AppServicesBar';
@@ -719,3 +719,6 @@ export declare const APP_ICONS: {
719
719
  toolbarIconUrl: string;
720
720
  }[];
721
721
  export declare const excludedApps: string[];
722
+ export declare const MF_APPS_MAPPER: Readonly<{
723
+ TERMINALS: "TERMINALS";
724
+ }>;
@@ -359,3 +359,6 @@ export const APP_ICONS = [
359
359
  },
360
360
  ];
361
361
  export const excludedApps = ['login'];
362
+ export const MF_APPS_MAPPER = Object.freeze({
363
+ TERMINALS: 'TERMINALS',
364
+ });
@@ -27,7 +27,7 @@ export declare const authorizationTableCellWidth: {
27
27
  readonly date: {
28
28
  readonly default: "170px";
29
29
  readonly text: "170px";
30
- readonly sheet: "170px";
30
+ readonly sheet: "130px";
31
31
  };
32
32
  readonly order: {
33
33
  readonly default: "80px";
@@ -27,7 +27,7 @@ export const authorizationTableCellWidth = {
27
27
  date: {
28
28
  default: '170px',
29
29
  text: '170px',
30
- sheet: '170px',
30
+ sheet: '130px',
31
31
  },
32
32
  order: {
33
33
  default: '80px',
@@ -22,7 +22,7 @@ export declare const chargeTableCellWidth: {
22
22
  readonly date: {
23
23
  readonly default: "170px";
24
24
  readonly text: "170px";
25
- readonly sheet: "129px";
25
+ readonly sheet: "130px";
26
26
  };
27
27
  readonly reference: {
28
28
  readonly default: "95px";
@@ -22,7 +22,7 @@ export const chargeTableCellWidth = {
22
22
  date: {
23
23
  default: '170px',
24
24
  text: '170px',
25
- sheet: '129px',
25
+ sheet: '130px',
26
26
  },
27
27
  reference: {
28
28
  default: '95px',
@@ -12,12 +12,12 @@ export declare const destinationsTableCellWidth: {
12
12
  readonly created: {
13
13
  readonly default: "170px";
14
14
  readonly text: "170px";
15
- readonly sheet: "170px";
15
+ readonly sheet: "130px";
16
16
  };
17
17
  readonly receipt: {
18
18
  readonly default: "85px";
19
19
  readonly text: "150px";
20
- readonly sheet: "150px";
20
+ readonly sheet: "165px";
21
21
  };
22
22
  readonly reference: {
23
23
  readonly default: "95px";
@@ -47,7 +47,7 @@ export declare const destinationsTableCellWidth: {
47
47
  readonly device: {
48
48
  readonly default: "150px";
49
49
  readonly text: "250px";
50
- readonly sheet: "250px";
50
+ readonly sheet: "235px";
51
51
  };
52
52
  readonly source: {
53
53
  readonly default: "114px";
@@ -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: "250px";
65
+ readonly sheet: "165px";
66
66
  };
67
67
  readonly amount: {
68
68
  readonly default: "195px";
@@ -81,13 +81,13 @@ export declare const destinationsTableCellWidth: {
81
81
  };
82
82
  readonly merchant: {
83
83
  readonly default: "100px";
84
- readonly text: "180px";
85
- readonly sheet: "180px";
84
+ readonly text: "150px";
85
+ readonly sheet: "215px";
86
86
  };
87
87
  readonly actions: {
88
88
  readonly default: "100px";
89
89
  readonly text: "100px";
90
- readonly sheet: "100px";
90
+ readonly sheet: "85px";
91
91
  };
92
92
  readonly destination: {
93
93
  readonly default: "100px";
@@ -109,4 +109,64 @@ export declare const destinationsTableCellWidth: {
109
109
  readonly text: "116px";
110
110
  readonly sheet: "116px";
111
111
  };
112
+ readonly payment_initiated: {
113
+ readonly default: "150px";
114
+ readonly text: "150px";
115
+ readonly sheet: "150px";
116
+ };
117
+ readonly payment_issuers: {
118
+ readonly default: "150px";
119
+ readonly text: "150px";
120
+ readonly sheet: "350px";
121
+ };
122
+ readonly card_number: {
123
+ readonly default: "120px";
124
+ readonly text: "120px";
125
+ readonly sheet: "155px";
126
+ };
127
+ readonly card_no: {
128
+ readonly default: "120px";
129
+ readonly text: "120px";
130
+ readonly sheet: "200px";
131
+ };
132
+ readonly payment_type: {
133
+ readonly default: "150px";
134
+ readonly text: "150px";
135
+ readonly sheet: "120px";
136
+ };
137
+ readonly payment_method: {
138
+ readonly default: "150px";
139
+ readonly text: "150px";
140
+ readonly sheet: "145px";
141
+ };
142
+ readonly payment_scheme: {
143
+ readonly default: "150px";
144
+ readonly text: "150px";
145
+ readonly sheet: "145px";
146
+ };
147
+ readonly auth_status: {
148
+ readonly default: "150px";
149
+ readonly text: "150px";
150
+ readonly sheet: "165px";
151
+ };
152
+ readonly auth_type: {
153
+ readonly default: "150px";
154
+ readonly text: "150px";
155
+ readonly sheet: "155px";
156
+ };
157
+ readonly eci: {
158
+ readonly default: "150px";
159
+ readonly text: "150px";
160
+ readonly sheet: "100px";
161
+ };
162
+ readonly payout_status: {
163
+ readonly default: "120px";
164
+ readonly text: "120px";
165
+ readonly sheet: "120px";
166
+ };
167
+ readonly reference_transfer: {
168
+ readonly default: "350px";
169
+ readonly text: "350px";
170
+ readonly sheet: "350px";
171
+ };
112
172
  };
@@ -12,12 +12,12 @@ export const destinationsTableCellWidth = {
12
12
  created: {
13
13
  default: '170px',
14
14
  text: '170px',
15
- sheet: '170px',
15
+ sheet: '130px',
16
16
  },
17
17
  receipt: {
18
18
  default: '85px',
19
19
  text: '150px',
20
- sheet: '150px',
20
+ sheet: '165px',
21
21
  },
22
22
  reference: {
23
23
  default: '95px',
@@ -47,7 +47,7 @@ export const destinationsTableCellWidth = {
47
47
  device: {
48
48
  default: '150px',
49
49
  text: '250px',
50
- sheet: '250px',
50
+ sheet: '235px',
51
51
  },
52
52
  source: {
53
53
  default: '114px',
@@ -62,7 +62,7 @@ export const destinationsTableCellWidth = {
62
62
  payment_agreement: {
63
63
  default: '50px',
64
64
  text: '250px',
65
- sheet: '250px',
65
+ sheet: '165px',
66
66
  },
67
67
  amount: {
68
68
  default: '195px',
@@ -81,13 +81,13 @@ export const destinationsTableCellWidth = {
81
81
  },
82
82
  merchant: {
83
83
  default: '100px',
84
- text: '180px',
85
- sheet: '180px',
84
+ text: '150px',
85
+ sheet: '215px',
86
86
  },
87
87
  actions: {
88
88
  default: '100px',
89
89
  text: '100px',
90
- sheet: '100px',
90
+ sheet: '85px',
91
91
  },
92
92
  destination: {
93
93
  default: '100px',
@@ -109,4 +109,64 @@ export const destinationsTableCellWidth = {
109
109
  text: '116px',
110
110
  sheet: '116px',
111
111
  },
112
+ payment_initiated: {
113
+ default: '150px',
114
+ text: '150px',
115
+ sheet: '150px',
116
+ },
117
+ payment_issuers: {
118
+ default: '150px',
119
+ text: '150px',
120
+ sheet: '350px',
121
+ },
122
+ card_number: {
123
+ default: '120px',
124
+ text: '120px',
125
+ sheet: '155px',
126
+ },
127
+ card_no: {
128
+ default: '120px',
129
+ text: '120px',
130
+ sheet: '200px',
131
+ },
132
+ payment_type: {
133
+ default: '150px',
134
+ text: '150px',
135
+ sheet: '120px',
136
+ },
137
+ payment_method: {
138
+ default: '150px',
139
+ text: '150px',
140
+ sheet: '145px',
141
+ },
142
+ payment_scheme: {
143
+ default: '150px',
144
+ text: '150px',
145
+ sheet: '145px',
146
+ },
147
+ auth_status: {
148
+ default: '150px',
149
+ text: '150px',
150
+ sheet: '165px',
151
+ },
152
+ auth_type: {
153
+ default: '150px',
154
+ text: '150px',
155
+ sheet: '155px',
156
+ },
157
+ eci: {
158
+ default: '150px',
159
+ text: '150px',
160
+ sheet: '100px',
161
+ },
162
+ payout_status: {
163
+ default: '120px',
164
+ text: '120px',
165
+ sheet: '120px',
166
+ },
167
+ reference_transfer: {
168
+ default: '350px',
169
+ text: '350px',
170
+ sheet: '350px',
171
+ },
112
172
  };
@@ -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,49 @@ export interface UserApp {
63
68
  name: TextAndLang[];
64
69
  app_services: AppService[];
65
70
  }
71
+ export type MFWidgetBaseProps = {
72
+ id: string;
73
+ i18n?: i18n;
74
+ app?: UserApp;
75
+ appWindow: {
76
+ isMinimized: boolean;
77
+ isMaximized: boolean;
78
+ order: number;
79
+ dimensions: Pick<AppDetails['dimensions'], 'width' | 'height'>;
80
+ };
81
+ features: {
82
+ hasReportsApp: boolean;
83
+ hasHeader: boolean;
84
+ sandboxMode: boolean;
85
+ initialServiceCode?: string;
86
+ };
87
+ segment: Pick<Segment, 'id' | 'brands' | 'countries'> & {
88
+ defaultCountry?: SegmentCountry;
89
+ };
90
+ ui: {
91
+ theme: Theme;
92
+ onStartDrag: DragControls['start'];
93
+ };
94
+ calendar: {
95
+ mode: CalenderMode;
96
+ onSwitch: (mode: CalenderMode) => void;
97
+ };
98
+ navigation: {
99
+ openAppService: (navigation: {
100
+ id?: string;
101
+ appId?: string;
102
+ appCode: string;
103
+ serviceCode: string;
104
+ state?: unknown;
105
+ }) => void;
106
+ openApp: (app: Pick<AppDetails, 'appCode' | 'serviceCode' | 'payload'> & {
107
+ sandboxMode?: boolean;
108
+ }) => void;
109
+ };
110
+ timezone: {
111
+ current?: Timezone | null;
112
+ default?: Timezone;
113
+ onChange: (timezone: Timezone) => void;
114
+ onChangeHistory: (timezone: Timezone) => void;
115
+ };
116
+ };
@@ -136,7 +136,7 @@ export interface IVirtualTable<R = any> {
136
136
  height: string | number;
137
137
  width: string | number;
138
138
  };
139
- dragControls?: DragControls;
139
+ onStartDrag?: DragControls['start'];
140
140
  isSheetView?: boolean;
141
141
  isMinimized?: boolean;
142
142
  }