@tap-payments/os-micro-frontend-shared 0.1.366 → 0.1.367-test.1-test.2-test.3
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/AnimatedSpinnerIcon/style.d.ts +0 -1
- package/build/components/Chip/style.d.ts +0 -1
- package/build/components/CountBadge/style.d.ts +0 -1
- package/build/components/Dialog/style.d.ts +0 -1
- package/build/components/FlippingCard/style.d.ts +0 -1
- package/build/components/ImageWrapper/ImageWrapper.d.ts +0 -1
- package/build/components/JSONViewer/style.d.ts +0 -1
- package/build/components/LeftPeekRightExpandingChip/style.d.ts +0 -1
- package/build/components/RightLeftExpandingCenterChip/style.d.ts +0 -1
- package/build/components/SearchButton/styles.d.ts +0 -1
- package/build/components/StatusIcons/AuthIcons/style.d.ts +0 -1
- package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +0 -1
- package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +0 -1
- package/build/components/StatusIcons/SourceIcons/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/IDButton/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/style.d.ts +0 -1
- package/build/components/TableHeader/FiltersRow.d.ts +1 -1
- package/build/components/TableHeader/FiltersRow.js +4 -2
- package/build/components/TableHeader/TableHeader.d.ts +1 -1
- package/build/components/TableHeader/TableHeader.js +2 -2
- package/build/components/TableHeader/TableView/CreateViewDialog.d.ts +3 -0
- package/build/components/TableHeader/TableView/CreateViewDialog.js +98 -0
- package/build/components/TableHeader/TableView/CustomViews.js +1 -1
- package/build/components/TableHeader/TableView/ViewsDropdown.d.ts +22 -0
- package/build/components/TableHeader/TableView/ViewsDropdown.js +137 -0
- package/build/components/TableHeader/TableView/ViewsManager.d.ts +29 -0
- package/build/components/TableHeader/TableView/ViewsManager.js +108 -0
- package/build/components/TableHeader/TableView/constants.d.ts +10 -0
- package/build/components/TableHeader/TableView/constants.js +10 -0
- package/build/components/TableHeader/TableView/data.d.ts +5 -0
- package/build/components/TableHeader/TableView/data.js +54 -0
- package/build/components/TableHeader/TableView/hooks.d.ts +25 -0
- package/build/components/TableHeader/TableView/hooks.js +79 -0
- package/build/components/TableHeader/TableView/index.d.ts +12 -3
- package/build/components/TableHeader/TableView/index.js +11 -3
- package/build/components/TableHeader/TableView/styles.d.ts +114 -0
- package/build/components/TableHeader/TableView/styles.js +399 -0
- package/build/components/TableHeader/TableView/types.d.ts +52 -0
- package/build/components/TableHeader/TableView/types.js +1 -0
- package/build/components/TableHeader/TableView/utils.d.ts +74 -0
- package/build/components/TableHeader/TableView/utils.js +234 -0
- package/build/components/TableHeader/type.d.ts +16 -0
- package/build/components/TableReports/components/DownloadButton/style.d.ts +0 -1
- package/build/components/TableReports/style.d.ts +0 -1
- package/build/components/VirtualTables/components/style.d.ts +0 -1
- package/build/constants/assets.d.ts +1 -0
- package/build/constants/assets.js +1 -0
- package/build/constants/reports.d.ts +18 -1
- package/build/constants/reports.js +77 -27
- package/build/types/apps.d.ts +9 -9
- package/build/utils/navigation.d.ts +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
export declare const ButtonStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
6
|
+
export declare const ViewWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
8
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
9
|
+
export declare const ListStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
11
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
12
|
+
export declare const DropdownStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
13
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
14
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
15
|
+
export declare const MenuItem: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
17
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
18
|
+
addColumnViewEl?: boolean | undefined;
|
|
19
|
+
}, {}, {}>;
|
|
20
|
+
export declare const Space: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
21
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
22
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
23
|
+
export declare const SpaceAfter: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
24
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
25
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
26
|
+
export declare const DialogContentWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
27
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
28
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
29
|
+
export declare const ScrollableContent: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
30
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
31
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
32
|
+
export declare const TitleSection: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
33
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
34
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
35
|
+
export declare const ColumnListContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
36
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
37
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
38
|
+
export declare const SelectAllHeader: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
39
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
40
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
41
|
+
export declare const ColumnItemRow: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
42
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
43
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
44
|
+
isHovered?: boolean | undefined;
|
|
45
|
+
isDate?: boolean | undefined;
|
|
46
|
+
}, {}, {}>;
|
|
47
|
+
export declare const DragIconWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
48
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
49
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
50
|
+
export declare const CheckboxWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
51
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
52
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
53
|
+
export declare const FooterBar: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
54
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
55
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
56
|
+
export declare const CreateButtonWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
57
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
58
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
59
|
+
export declare const SubmenuPaper: import("@emotion/styled").StyledComponent<import("@mui/material").PaperOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
60
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
61
|
+
}, "classes" | "className" | "style" | "children" | "sx" | "variant" | "square" | "elevation"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
62
|
+
export declare const SubmenuItem: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
63
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
64
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
65
|
+
export declare const DeleteButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
66
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
67
|
+
}, "color" | "disabled" | "classes" | "className" | "style" | "tabIndex" | "children" | "sx" | "variant" | "size" | "fullWidth" | "href" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
68
|
+
export declare const CreateButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
69
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
70
|
+
}, "color" | "disabled" | "classes" | "className" | "style" | "tabIndex" | "children" | "sx" | "variant" | "size" | "fullWidth" | "href" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
71
|
+
export declare const NameTextField: import("@emotion/styled").StyledComponent<{
|
|
72
|
+
variant?: import("@mui/material").TextFieldVariants | undefined;
|
|
73
|
+
} & Omit<import("@mui/material").FilledTextFieldProps | import("@mui/material").OutlinedTextFieldProps | import("@mui/material").StandardTextFieldProps, "variant"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
74
|
+
export declare const checkboxSx: SxProps<Theme>;
|
|
75
|
+
export declare const getDialogPaperStyle: (width: number, height: number) => {
|
|
76
|
+
margin: number;
|
|
77
|
+
maxHeight: string;
|
|
78
|
+
maxWidth: string;
|
|
79
|
+
width: number;
|
|
80
|
+
height: number;
|
|
81
|
+
borderRadius: number;
|
|
82
|
+
overflow: string;
|
|
83
|
+
boxShadow: string;
|
|
84
|
+
};
|
|
85
|
+
export declare const dialogSx: {
|
|
86
|
+
backgroundColor: string;
|
|
87
|
+
pointerEvents: string;
|
|
88
|
+
'& .MuiDialog-paper': {
|
|
89
|
+
pointerEvents: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
export declare const ResetHeaderBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
93
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
94
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
95
|
+
export declare const ResetCheckboxSx: SxProps<Theme>;
|
|
96
|
+
export declare const SubmenuContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
97
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
98
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
99
|
+
export declare const ColumnItemsContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
100
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
101
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
102
|
+
export declare const SaveCustomViewBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
103
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
104
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
105
|
+
export declare const SaveCustomViewInnerBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
106
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
107
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
108
|
+
disabled?: boolean | undefined;
|
|
109
|
+
}, {}, {}>;
|
|
110
|
+
export declare const ButtonsContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
111
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
112
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
113
|
+
export declare const CancelButtonSx: SxProps<Theme>;
|
|
114
|
+
export declare const OkayButtonSx: SxProps<Theme>;
|
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
import { Box, styled, Button, Paper, TextField } from '@mui/material';
|
|
2
|
+
export const ButtonStyled = styled(Box)(({ theme }) => ({
|
|
3
|
+
display: 'flex',
|
|
4
|
+
alignItems: 'center',
|
|
5
|
+
justifyContent: 'space-between',
|
|
6
|
+
borderRadius: '4px',
|
|
7
|
+
background: theme.palette.common.white,
|
|
8
|
+
padding: '8px',
|
|
9
|
+
border: '1px solid',
|
|
10
|
+
borderColor: theme.palette.divider,
|
|
11
|
+
gap: 8,
|
|
12
|
+
height: 32,
|
|
13
|
+
cursor: 'pointer',
|
|
14
|
+
'&:hover': {
|
|
15
|
+
border: '1px solid',
|
|
16
|
+
borderColor: theme.palette.info.dark,
|
|
17
|
+
boxShadow: theme.shadows[7],
|
|
18
|
+
},
|
|
19
|
+
}));
|
|
20
|
+
export const ViewWrapper = styled(Box)(({ theme }) => ({
|
|
21
|
+
background: theme.palette.common.white,
|
|
22
|
+
display: 'flex',
|
|
23
|
+
gap: theme.spacing(1),
|
|
24
|
+
alignItems: 'center',
|
|
25
|
+
color: theme.palette.text.primary,
|
|
26
|
+
fontSize: '11px',
|
|
27
|
+
fontWeight: theme.typography.fontWeightRegular,
|
|
28
|
+
textTransform: 'capitalize',
|
|
29
|
+
position: 'relative',
|
|
30
|
+
transition: '0.5s',
|
|
31
|
+
'&:after': {
|
|
32
|
+
content: '""',
|
|
33
|
+
position: 'absolute',
|
|
34
|
+
left: -8,
|
|
35
|
+
right: 0,
|
|
36
|
+
width: '100%',
|
|
37
|
+
height: '100%',
|
|
38
|
+
boxShadow: theme.shadows[11],
|
|
39
|
+
borderRadius: theme.spacing(0.5),
|
|
40
|
+
paddingInlineStart: theme.spacing(1),
|
|
41
|
+
paddingTop: '9px',
|
|
42
|
+
paddingBottom: '9px',
|
|
43
|
+
paddingInlineEnd: '9px',
|
|
44
|
+
zIndex: -1,
|
|
45
|
+
},
|
|
46
|
+
}));
|
|
47
|
+
export const ListStyled = styled(Box)(({ theme }) => ({
|
|
48
|
+
background: theme.palette.common.white,
|
|
49
|
+
borderRadius: theme.spacing(1),
|
|
50
|
+
boxShadow: theme.shadows[5],
|
|
51
|
+
border: '1px solid',
|
|
52
|
+
borderColor: theme.palette.divider,
|
|
53
|
+
zIndex: 5,
|
|
54
|
+
fontSize: '11px',
|
|
55
|
+
width: 192,
|
|
56
|
+
}));
|
|
57
|
+
export const DropdownStyled = styled(Box)(() => ({
|
|
58
|
+
minWidth: 160,
|
|
59
|
+
position: 'relative',
|
|
60
|
+
}));
|
|
61
|
+
export const MenuItem = styled(Box, { shouldForwardProp: (props) => props !== 'addColumnViewEl' })(({ theme }) => ({
|
|
62
|
+
padding: theme.spacing(1),
|
|
63
|
+
paddingInlineEnd: 2,
|
|
64
|
+
borderBottom: '1px solid',
|
|
65
|
+
borderColor: theme.palette.divider,
|
|
66
|
+
display: 'flex',
|
|
67
|
+
alignItems: 'center',
|
|
68
|
+
height: 32,
|
|
69
|
+
cursor: 'pointer',
|
|
70
|
+
img: {
|
|
71
|
+
height: 12,
|
|
72
|
+
},
|
|
73
|
+
'.check-icon': {
|
|
74
|
+
height: 'auto',
|
|
75
|
+
marginInlineEnd: theme.spacing(1),
|
|
76
|
+
},
|
|
77
|
+
'&:hover': {
|
|
78
|
+
color: theme.palette.info.dark,
|
|
79
|
+
fontWeight: theme.typography.fontWeightBold,
|
|
80
|
+
},
|
|
81
|
+
'&.add-column': {
|
|
82
|
+
justifyContent: 'space-between',
|
|
83
|
+
paddingInlineEnd: theme.spacing(1),
|
|
84
|
+
position: 'relative',
|
|
85
|
+
border: 'none',
|
|
86
|
+
zIndex: 5,
|
|
87
|
+
borderBottom: '1px solid',
|
|
88
|
+
borderColor: theme.palette.divider,
|
|
89
|
+
borderTopRightRadius: theme.spacing(1),
|
|
90
|
+
borderTopLeftRadius: theme.spacing(1),
|
|
91
|
+
'&:hover': {
|
|
92
|
+
boxShadow: theme.shadows[6],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
}));
|
|
96
|
+
export const Space = styled(Box)(({ theme }) => ({
|
|
97
|
+
width: 12,
|
|
98
|
+
marginInlineEnd: theme.spacing(1),
|
|
99
|
+
}));
|
|
100
|
+
export const SpaceAfter = styled(Box)(() => ({
|
|
101
|
+
width: 16,
|
|
102
|
+
}));
|
|
103
|
+
export const DialogContentWrapper = styled(Box)(({ theme }) => ({
|
|
104
|
+
display: 'flex',
|
|
105
|
+
flexDirection: 'column',
|
|
106
|
+
height: 'calc(100% - 32px)',
|
|
107
|
+
backgroundColor: theme.palette.background.paper,
|
|
108
|
+
position: 'relative',
|
|
109
|
+
}));
|
|
110
|
+
export const ScrollableContent = styled(Box)(() => ({
|
|
111
|
+
flex: 1,
|
|
112
|
+
overflowY: 'auto',
|
|
113
|
+
paddingLeft: 16,
|
|
114
|
+
paddingRight: 16,
|
|
115
|
+
paddingBottom: 64,
|
|
116
|
+
}));
|
|
117
|
+
export const TitleSection = styled(Box)(() => ({
|
|
118
|
+
padding: '24px 0',
|
|
119
|
+
display: 'flex',
|
|
120
|
+
justifyContent: 'space-between',
|
|
121
|
+
alignItems: 'center',
|
|
122
|
+
}));
|
|
123
|
+
export const ColumnListContainer = styled(Box)(({ theme }) => ({
|
|
124
|
+
border: '1px solid',
|
|
125
|
+
borderColor: theme.palette.divider,
|
|
126
|
+
borderRadius: '8px',
|
|
127
|
+
overflow: 'hidden',
|
|
128
|
+
display: 'flex',
|
|
129
|
+
flexDirection: 'column',
|
|
130
|
+
flex: 1,
|
|
131
|
+
minHeight: 0,
|
|
132
|
+
}));
|
|
133
|
+
export const SelectAllHeader = styled(Box)(({ theme }) => ({
|
|
134
|
+
display: 'flex',
|
|
135
|
+
alignItems: 'center',
|
|
136
|
+
padding: '12px',
|
|
137
|
+
borderBottom: '1px solid',
|
|
138
|
+
borderColor: theme.palette.divider,
|
|
139
|
+
backgroundColor: '#FAFAFA',
|
|
140
|
+
cursor: 'pointer',
|
|
141
|
+
'&:hover': {
|
|
142
|
+
backgroundColor: '#F0F0F0',
|
|
143
|
+
},
|
|
144
|
+
}));
|
|
145
|
+
export const ColumnItemRow = styled(Box, {
|
|
146
|
+
shouldForwardProp: (prop) => prop !== 'isHovered' && prop !== 'isDate',
|
|
147
|
+
})(({ theme, isHovered, isDate }) => ({
|
|
148
|
+
display: 'flex',
|
|
149
|
+
alignItems: 'center',
|
|
150
|
+
padding: '12px',
|
|
151
|
+
borderBottom: '1px solid',
|
|
152
|
+
borderColor: theme.palette.divider,
|
|
153
|
+
backgroundColor: isHovered ? theme.palette.action.hover : theme.palette.background.paper,
|
|
154
|
+
cursor: isDate ? 'default' : 'grab',
|
|
155
|
+
'&:hover': {
|
|
156
|
+
backgroundColor: isDate ? theme.palette.background.paper : theme.palette.action.hover,
|
|
157
|
+
},
|
|
158
|
+
'&:last-child': {
|
|
159
|
+
borderBottom: 'none',
|
|
160
|
+
},
|
|
161
|
+
}));
|
|
162
|
+
export const DragIconWrapper = styled(Box)(() => ({
|
|
163
|
+
width: 20,
|
|
164
|
+
height: 20,
|
|
165
|
+
marginRight: 8,
|
|
166
|
+
display: 'flex',
|
|
167
|
+
alignItems: 'center',
|
|
168
|
+
justifyContent: 'center',
|
|
169
|
+
flexShrink: 0,
|
|
170
|
+
}));
|
|
171
|
+
export const CheckboxWrapper = styled(Box)(() => ({
|
|
172
|
+
display: 'flex',
|
|
173
|
+
alignItems: 'center',
|
|
174
|
+
justifyContent: 'center',
|
|
175
|
+
padding: 0,
|
|
176
|
+
width: 18,
|
|
177
|
+
height: 18,
|
|
178
|
+
minWidth: 18,
|
|
179
|
+
minHeight: 18,
|
|
180
|
+
flexShrink: 0,
|
|
181
|
+
}));
|
|
182
|
+
export const FooterBar = styled(Box)(({ theme }) => ({
|
|
183
|
+
position: 'absolute',
|
|
184
|
+
bottom: 0,
|
|
185
|
+
left: 0,
|
|
186
|
+
right: 0,
|
|
187
|
+
height: 35,
|
|
188
|
+
backgroundColor: '#F8F9FB',
|
|
189
|
+
borderTop: '1px solid',
|
|
190
|
+
borderColor: theme.palette.divider,
|
|
191
|
+
}));
|
|
192
|
+
export const CreateButtonWrapper = styled(Box)(() => ({
|
|
193
|
+
position: 'absolute',
|
|
194
|
+
bottom: 12,
|
|
195
|
+
right: 16,
|
|
196
|
+
padding: 6,
|
|
197
|
+
backgroundColor: 'white',
|
|
198
|
+
}));
|
|
199
|
+
export const SubmenuPaper = styled(Paper)(() => ({
|
|
200
|
+
paddingTop: 4,
|
|
201
|
+
paddingBottom: 4,
|
|
202
|
+
minWidth: 180,
|
|
203
|
+
boxShadow: '0 4px 12px rgba(0,0,0,0.15)',
|
|
204
|
+
borderRadius: '8px',
|
|
205
|
+
}));
|
|
206
|
+
export const SubmenuItem = styled(Box)(({ theme }) => ({
|
|
207
|
+
display: 'flex',
|
|
208
|
+
alignItems: 'center',
|
|
209
|
+
padding: '8px 12px',
|
|
210
|
+
cursor: 'pointer',
|
|
211
|
+
'&:hover': {
|
|
212
|
+
backgroundColor: theme.palette.action.hover,
|
|
213
|
+
},
|
|
214
|
+
}));
|
|
215
|
+
export const DeleteButton = styled(Button)(() => ({
|
|
216
|
+
color: '#FF0000',
|
|
217
|
+
textTransform: 'none',
|
|
218
|
+
fontSize: 10,
|
|
219
|
+
fontWeight: 500,
|
|
220
|
+
borderRadius: '4px',
|
|
221
|
+
border: '1px solid #F4F4F4',
|
|
222
|
+
paddingLeft: 8,
|
|
223
|
+
paddingRight: 8,
|
|
224
|
+
paddingTop: 4,
|
|
225
|
+
paddingBottom: 4,
|
|
226
|
+
'&:hover': {
|
|
227
|
+
backgroundColor: 'transparent',
|
|
228
|
+
},
|
|
229
|
+
}));
|
|
230
|
+
export const CreateButton = styled(Button)(({ theme }) => ({
|
|
231
|
+
fontSize: 9,
|
|
232
|
+
fontWeight: 600,
|
|
233
|
+
borderRadius: 4,
|
|
234
|
+
paddingLeft: 20,
|
|
235
|
+
paddingRight: 20,
|
|
236
|
+
paddingTop: 8,
|
|
237
|
+
paddingBottom: 8,
|
|
238
|
+
textTransform: 'none',
|
|
239
|
+
backgroundColor: '#1F88D0',
|
|
240
|
+
'&:hover': {
|
|
241
|
+
backgroundColor: '#1A7BC0',
|
|
242
|
+
},
|
|
243
|
+
'&.Mui-disabled': {
|
|
244
|
+
backgroundColor: theme.palette.grey[300],
|
|
245
|
+
color: theme.palette.grey[500],
|
|
246
|
+
},
|
|
247
|
+
}));
|
|
248
|
+
export const NameTextField = styled(TextField)(({ theme }) => ({
|
|
249
|
+
'& .MuiFilledInput-root': {
|
|
250
|
+
borderRadius: '8px',
|
|
251
|
+
backgroundColor: theme.palette.background.paper,
|
|
252
|
+
border: '1px solid',
|
|
253
|
+
borderColor: theme.palette.divider,
|
|
254
|
+
'&:hover': {
|
|
255
|
+
backgroundColor: theme.palette.background.paper,
|
|
256
|
+
},
|
|
257
|
+
'&.Mui-focused': {
|
|
258
|
+
backgroundColor: theme.palette.background.paper,
|
|
259
|
+
},
|
|
260
|
+
'&::before, &::after': {
|
|
261
|
+
display: 'none',
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
}));
|
|
265
|
+
export const checkboxSx = {
|
|
266
|
+
display: 'flex',
|
|
267
|
+
alignItems: 'center',
|
|
268
|
+
justifyContent: 'center',
|
|
269
|
+
padding: 0,
|
|
270
|
+
width: 18,
|
|
271
|
+
height: 18,
|
|
272
|
+
minWidth: 18,
|
|
273
|
+
minHeight: 18,
|
|
274
|
+
flexShrink: 0,
|
|
275
|
+
color: 'grey.A400',
|
|
276
|
+
'&.Mui-checked': {
|
|
277
|
+
color: 'info.dark',
|
|
278
|
+
},
|
|
279
|
+
'&.MuiCheckbox-indeterminate': {
|
|
280
|
+
color: 'info.dark',
|
|
281
|
+
},
|
|
282
|
+
'&.Mui-disabled.Mui-checked': {
|
|
283
|
+
color: 'grey.500',
|
|
284
|
+
'& .MuiSvgIcon-root': {
|
|
285
|
+
backgroundColor: 'grey.500',
|
|
286
|
+
borderRadius: '3px',
|
|
287
|
+
color: '#fff',
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
'& .MuiSvgIcon-root': {
|
|
291
|
+
width: 18,
|
|
292
|
+
height: 18,
|
|
293
|
+
},
|
|
294
|
+
'& img': {
|
|
295
|
+
width: 14,
|
|
296
|
+
height: 14,
|
|
297
|
+
},
|
|
298
|
+
};
|
|
299
|
+
export const getDialogPaperStyle = (width, height) => ({
|
|
300
|
+
margin: 0,
|
|
301
|
+
maxHeight: '90vh',
|
|
302
|
+
maxWidth: 'none',
|
|
303
|
+
width,
|
|
304
|
+
height,
|
|
305
|
+
borderRadius: 12,
|
|
306
|
+
overflow: 'hidden',
|
|
307
|
+
boxShadow: '0px 8px 32px rgba(0, 0, 0, 0.15)',
|
|
308
|
+
});
|
|
309
|
+
export const dialogSx = {
|
|
310
|
+
backgroundColor: 'transparent',
|
|
311
|
+
pointerEvents: 'none',
|
|
312
|
+
'& .MuiDialog-paper': {
|
|
313
|
+
pointerEvents: 'auto',
|
|
314
|
+
},
|
|
315
|
+
};
|
|
316
|
+
export const ResetHeaderBox = styled(Box)(({ theme }) => ({
|
|
317
|
+
display: 'flex',
|
|
318
|
+
alignItems: 'center',
|
|
319
|
+
justifyContent: 'space-between',
|
|
320
|
+
paddingLeft: theme.spacing(1.5),
|
|
321
|
+
paddingRight: theme.spacing(1.5),
|
|
322
|
+
paddingTop: theme.spacing(1),
|
|
323
|
+
paddingBottom: theme.spacing(1),
|
|
324
|
+
cursor: 'pointer',
|
|
325
|
+
'&:hover': {
|
|
326
|
+
backgroundColor: theme.palette.action.hover,
|
|
327
|
+
},
|
|
328
|
+
}));
|
|
329
|
+
export const ResetCheckboxSx = {
|
|
330
|
+
p: 0,
|
|
331
|
+
width: 14,
|
|
332
|
+
height: 14,
|
|
333
|
+
minWidth: 14,
|
|
334
|
+
minHeight: 14,
|
|
335
|
+
'&.Mui-checked': { color: 'info.dark' },
|
|
336
|
+
'&.MuiCheckbox-indeterminate': { color: 'info.dark' },
|
|
337
|
+
'& .MuiSvgIcon-root': { width: 14, height: 14 },
|
|
338
|
+
};
|
|
339
|
+
export const SubmenuContainer = styled(Box)(() => ({
|
|
340
|
+
minWidth: 200,
|
|
341
|
+
}));
|
|
342
|
+
export const ColumnItemsContainer = styled(Box)(() => ({
|
|
343
|
+
maxHeight: 300,
|
|
344
|
+
overflowY: 'auto',
|
|
345
|
+
paddingLeft: 6,
|
|
346
|
+
paddingRight: 6,
|
|
347
|
+
}));
|
|
348
|
+
export const SaveCustomViewBox = styled(Box)(() => ({
|
|
349
|
+
paddingLeft: 8,
|
|
350
|
+
paddingRight: 8,
|
|
351
|
+
paddingTop: 8,
|
|
352
|
+
paddingBottom: 8,
|
|
353
|
+
}));
|
|
354
|
+
export const SaveCustomViewInnerBox = styled(Box)(({ disabled }) => ({
|
|
355
|
+
width: '100%',
|
|
356
|
+
borderRadius: '8px',
|
|
357
|
+
backgroundColor: '#1F88D00D',
|
|
358
|
+
padding: '8px',
|
|
359
|
+
marginLeft: 6,
|
|
360
|
+
marginRight: 6,
|
|
361
|
+
display: 'flex',
|
|
362
|
+
flexDirection: 'column',
|
|
363
|
+
gap: '6px',
|
|
364
|
+
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
365
|
+
opacity: disabled ? 0.5 : 1,
|
|
366
|
+
}));
|
|
367
|
+
export const ButtonsContainer = styled(Box)(() => ({
|
|
368
|
+
display: 'flex',
|
|
369
|
+
justifyContent: 'flex-end',
|
|
370
|
+
gap: 12,
|
|
371
|
+
paddingTop: 8,
|
|
372
|
+
paddingBottom: 8,
|
|
373
|
+
paddingLeft: 12,
|
|
374
|
+
paddingRight: 12,
|
|
375
|
+
}));
|
|
376
|
+
export const CancelButtonSx = {
|
|
377
|
+
fontSize: 11,
|
|
378
|
+
fontWeight: 400,
|
|
379
|
+
textTransform: 'none',
|
|
380
|
+
color: 'text.primary',
|
|
381
|
+
minWidth: 80,
|
|
382
|
+
height: 38,
|
|
383
|
+
borderRadius: '8px',
|
|
384
|
+
border: '1px solid #F2F2F2',
|
|
385
|
+
};
|
|
386
|
+
export const OkayButtonSx = {
|
|
387
|
+
fontSize: 11,
|
|
388
|
+
fontWeight: 500,
|
|
389
|
+
textTransform: 'none',
|
|
390
|
+
backgroundColor: '#1F88D0',
|
|
391
|
+
minWidth: 80,
|
|
392
|
+
height: 38,
|
|
393
|
+
borderRadius: '8px',
|
|
394
|
+
boxShadow: 'none',
|
|
395
|
+
'&:hover': {
|
|
396
|
+
backgroundColor: '#1976B8',
|
|
397
|
+
boxShadow: 'none',
|
|
398
|
+
},
|
|
399
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { ColumnViewProps } from '../../../types/index.js';
|
|
2
|
+
export type ViewMode = 'advanced' | 'sheet';
|
|
3
|
+
export interface ViewMenuItem {
|
|
4
|
+
label: string;
|
|
5
|
+
id: string;
|
|
6
|
+
columns?: string[];
|
|
7
|
+
submenu?: ColumnViewProps[];
|
|
8
|
+
isCustom?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface FieldItem {
|
|
11
|
+
code: string;
|
|
12
|
+
name: {
|
|
13
|
+
text: string;
|
|
14
|
+
lang: string;
|
|
15
|
+
}[];
|
|
16
|
+
default?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface ColumnItem {
|
|
19
|
+
code: string;
|
|
20
|
+
name: {
|
|
21
|
+
text: string;
|
|
22
|
+
lang: string;
|
|
23
|
+
}[];
|
|
24
|
+
order?: number;
|
|
25
|
+
default?: boolean;
|
|
26
|
+
fields?: FieldItem[];
|
|
27
|
+
}
|
|
28
|
+
export interface LayoutSection {
|
|
29
|
+
code: string;
|
|
30
|
+
columns: ColumnItem[];
|
|
31
|
+
}
|
|
32
|
+
export interface CreateCustomViewDialogProps {
|
|
33
|
+
open: boolean;
|
|
34
|
+
onClose: () => void;
|
|
35
|
+
onCreate?: (data: {
|
|
36
|
+
name: string;
|
|
37
|
+
selectedColumns: ColumnViewProps[];
|
|
38
|
+
}) => Promise<void>;
|
|
39
|
+
availableColumns?: ColumnViewProps[];
|
|
40
|
+
isLoading?: boolean;
|
|
41
|
+
defaultColumns?: ColumnViewProps[];
|
|
42
|
+
editingView?: {
|
|
43
|
+
id: string;
|
|
44
|
+
label: string;
|
|
45
|
+
submenu?: ColumnViewProps[];
|
|
46
|
+
} | null;
|
|
47
|
+
onDelete?: (viewId: string) => Promise<void>;
|
|
48
|
+
}
|
|
49
|
+
export interface ColumnCheckState {
|
|
50
|
+
checked: boolean;
|
|
51
|
+
indeterminate: boolean;
|
|
52
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { ColumnViewProps } from '../../../types/index.js';
|
|
2
|
+
import type { LayoutSection, ViewMenuItem, ColumnCheckState, ViewMode } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Transform API layout response to internal ColumnViewProps format
|
|
5
|
+
*/
|
|
6
|
+
export declare const transformLayoutToColumns: (layout: LayoutSection[], lang?: string) => ColumnViewProps[];
|
|
7
|
+
export declare const getColumnsByMode: (mode: ViewMode) => ColumnViewProps[];
|
|
8
|
+
export declare const isDateColumn: (name: string) => boolean;
|
|
9
|
+
export declare const getColumnCheckState: (column: ColumnViewProps) => ColumnCheckState;
|
|
10
|
+
export declare const createCustomViewMenuItem: (name: string, selectedColumns: ColumnViewProps[]) => ViewMenuItem;
|
|
11
|
+
/**
|
|
12
|
+
* Initialize columns for editing mode
|
|
13
|
+
*/
|
|
14
|
+
export declare const initializeEditingColumns: (editingColumns: ColumnViewProps[], availableColumns: ColumnViewProps[]) => ColumnViewProps[];
|
|
15
|
+
/**
|
|
16
|
+
* Initialize columns for create mode (all unchecked except date)
|
|
17
|
+
*/
|
|
18
|
+
export declare const initializeCreateColumns: (availableColumns: ColumnViewProps[]) => ColumnViewProps[];
|
|
19
|
+
/**
|
|
20
|
+
* Reset columns to their default selection state
|
|
21
|
+
*/
|
|
22
|
+
export declare const resetColumnsToDefault: (columns: ColumnViewProps[]) => ColumnViewProps[];
|
|
23
|
+
/**
|
|
24
|
+
* Toggle a column's selection (including all children if present)
|
|
25
|
+
*/
|
|
26
|
+
export declare const toggleColumn: (columns: ColumnViewProps[], columnName: string) => ColumnViewProps[];
|
|
27
|
+
/**
|
|
28
|
+
* Toggle a sub-item's selection and update parent state
|
|
29
|
+
*/
|
|
30
|
+
export declare const toggleSubItem: (columns: ColumnViewProps[], columnName: string, subItemName: string) => ColumnViewProps[];
|
|
31
|
+
/**
|
|
32
|
+
* Select or deselect all columns (except date)
|
|
33
|
+
*/
|
|
34
|
+
export declare const toggleAllColumns: (columns: ColumnViewProps[], selectAll: boolean) => ColumnViewProps[];
|
|
35
|
+
/**
|
|
36
|
+
* Check if all non-date columns are selected
|
|
37
|
+
*/
|
|
38
|
+
export declare const areAllColumnsSelected: (columns: ColumnViewProps[]) => boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Check if some (but not all) non-date columns are selected
|
|
41
|
+
*/
|
|
42
|
+
export declare const areSomeColumnsSelected: (columns: ColumnViewProps[], allSelected: boolean) => boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Validate template name
|
|
45
|
+
*/
|
|
46
|
+
export declare const isValidTemplateName: (name: string, maxLength: number) => boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Deep clone columns array with all nested properties
|
|
49
|
+
*/
|
|
50
|
+
export declare const deepCloneColumns: (columns: ColumnViewProps[]) => ColumnViewProps[];
|
|
51
|
+
/**
|
|
52
|
+
* Toggle a single column's selection state
|
|
53
|
+
*/
|
|
54
|
+
export declare const toggleSingleColumn: (columns: ColumnViewProps[], columnName: string) => ColumnViewProps[];
|
|
55
|
+
/**
|
|
56
|
+
* Get submenu items for a view menu item
|
|
57
|
+
*/
|
|
58
|
+
export declare const getSubmenuItems: (item: ViewMenuItem, defaultColumns: ColumnViewProps[]) => ColumnViewProps[];
|
|
59
|
+
/**
|
|
60
|
+
* Check if a view menu item has submenu
|
|
61
|
+
*/
|
|
62
|
+
export declare const hasSubmenu: (item: ViewMenuItem, defaultColumns: ColumnViewProps[]) => boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Check if all columns in current state are selected
|
|
65
|
+
*/
|
|
66
|
+
export declare const areAllCurrentColumnsSelected: (columns: ColumnViewProps[]) => boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Check if some (but not all) columns in current state are selected
|
|
69
|
+
*/
|
|
70
|
+
export declare const areSomeCurrentColumnsSelected: (columns: ColumnViewProps[], allSelected: boolean) => boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Toggle all columns selection (select all or unselect all)
|
|
73
|
+
*/
|
|
74
|
+
export declare const toggleAllCurrentColumns: (columns: ColumnViewProps[], shouldSelect: boolean) => ColumnViewProps[];
|