@tap-payments/os-micro-frontend-shared 0.1.376-test.1-test.2 → 0.1.376-test.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/build/components/FilterDropdown/FilterDropdown.d.ts +11 -4
  2. package/build/components/FilterDropdown/FilterDropdown.js +18 -4
  3. package/build/components/FilterDropdown/style.js +1 -1
  4. package/build/components/MultiDatakeyDonut/MultiDatakeyDonut.d.ts +12 -0
  5. package/build/components/MultiDatakeyDonut/MultiDatakeyDonut.js +19 -0
  6. package/build/components/MultiDatakeyDonut/index.d.ts +1 -0
  7. package/build/components/MultiDatakeyDonut/index.js +1 -0
  8. package/build/components/MultiDatakeyDonut/style.d.ts +10 -0
  9. package/build/components/MultiDatakeyDonut/style.js +23 -0
  10. package/build/components/RangeCalender/RangeCalender.js +4 -2
  11. package/build/components/TableHeader/FiltersRow.d.ts +1 -1
  12. package/build/components/TableHeader/FiltersRow.js +2 -4
  13. package/build/components/TableHeader/TableHeader.d.ts +1 -1
  14. package/build/components/TableHeader/TableHeader.js +2 -2
  15. package/build/components/TableHeader/TableView/CustomViews.js +1 -1
  16. package/build/components/TableHeader/TableView/TableView.js +1 -0
  17. package/build/components/TableHeader/TableView/hooks/index.d.ts +0 -6
  18. package/build/components/TableHeader/TableView/hooks/index.js +0 -6
  19. package/build/components/TableHeader/TableView/index.d.ts +3 -12
  20. package/build/components/TableHeader/TableView/index.js +3 -13
  21. package/build/components/TableHeader/index.d.ts +0 -1
  22. package/build/components/TableHeader/type.d.ts +1 -15
  23. package/build/components/index.d.ts +1 -0
  24. package/build/components/index.js +1 -0
  25. package/build/constants/assets.d.ts +3 -1
  26. package/build/constants/assets.js +3 -1
  27. package/build/types/index.d.ts +1 -0
  28. package/build/types/index.js +1 -0
  29. package/build/types/toggleOptions.d.ts +2 -0
  30. package/build/utils/date.d.ts +5 -0
  31. package/build/utils/date.js +37 -0
  32. package/package.json +1 -2
  33. package/build/components/TableHeader/TableView/CreateViewDialog.d.ts +0 -3
  34. package/build/components/TableHeader/TableView/CreateViewDialog.js +0 -91
  35. package/build/components/TableHeader/TableView/ViewSelector.d.ts +0 -5
  36. package/build/components/TableHeader/TableView/ViewSelector.js +0 -81
  37. package/build/components/TableHeader/TableView/ViewsDropdown.d.ts +0 -5
  38. package/build/components/TableHeader/TableView/ViewsDropdown.js +0 -198
  39. package/build/components/TableHeader/TableView/components/ColumnList.d.ts +0 -3
  40. package/build/components/TableHeader/TableView/components/ColumnList.js +0 -70
  41. package/build/components/TableHeader/TableView/components/ViewsSubmenu.d.ts +0 -3
  42. package/build/components/TableHeader/TableView/components/ViewsSubmenu.js +0 -71
  43. package/build/components/TableHeader/TableView/components/index.d.ts +0 -2
  44. package/build/components/TableHeader/TableView/components/index.js +0 -2
  45. package/build/components/TableHeader/TableView/constants.d.ts +0 -10
  46. package/build/components/TableHeader/TableView/constants.js +0 -10
  47. package/build/components/TableHeader/TableView/data.d.ts +0 -5
  48. package/build/components/TableHeader/TableView/data.js +0 -48
  49. package/build/components/TableHeader/TableView/hooks/useCreateViewDialog.d.ts +0 -22
  50. package/build/components/TableHeader/TableView/hooks/useCreateViewDialog.js +0 -86
  51. package/build/components/TableHeader/TableView/hooks/useDialogPosition.d.ts +0 -8
  52. package/build/components/TableHeader/TableView/hooks/useDialogPosition.js +0 -16
  53. package/build/components/TableHeader/TableView/hooks/useNestedSubmenu.d.ts +0 -7
  54. package/build/components/TableHeader/TableView/hooks/useNestedSubmenu.js +0 -34
  55. package/build/components/TableHeader/TableView/hooks/useOriginalColumns.d.ts +0 -6
  56. package/build/components/TableHeader/TableView/hooks/useOriginalColumns.js +0 -18
  57. package/build/components/TableHeader/TableView/hooks/useSubmenuHover.d.ts +0 -8
  58. package/build/components/TableHeader/TableView/hooks/useSubmenuHover.js +0 -43
  59. package/build/components/TableHeader/TableView/hooks/useViewSelector.d.ts +0 -50
  60. package/build/components/TableHeader/TableView/hooks/useViewSelector.js +0 -239
  61. package/build/components/TableHeader/TableView/hooks/useViewsManager.d.ts +0 -20
  62. package/build/components/TableHeader/TableView/hooks/useViewsManager.js +0 -96
  63. package/build/components/TableHeader/TableView/styles.d.ts +0 -127
  64. package/build/components/TableHeader/TableView/styles.js +0 -426
  65. package/build/components/TableHeader/TableView/types.d.ts +0 -183
  66. package/build/components/TableHeader/TableView/utils.d.ts +0 -121
  67. package/build/components/TableHeader/TableView/utils.js +0 -463
  68. /package/build/{components/TableHeader/TableView/types.js → types/toggleOptions.js} +0 -0
@@ -1,96 +0,0 @@
1
- import { useState, useEffect, useMemo, useCallback } from 'react';
2
- import { transformTemplatesToViewMenuItems, deepCloneColumns } from '../utils';
3
- /**
4
- * Simplified hook for managing templates and views.
5
- *
6
- * Key principles:
7
- * - Templates from parent are parsed into allTemplates
8
- * - defaultColumns is the local working copy that can be modified
9
- * - When user modifies default template, we keep changes locally
10
- */
11
- export const useViewsManager = ({ tableMode, templates, lang = 'en' }) => {
12
- // Parse templates (this just transforms the data, doesn't manage modifications)
13
- const parsedTemplates = useMemo(() => {
14
- if (!templates || templates.length === 0) {
15
- return {
16
- customViews: [],
17
- defaultTemplate: undefined,
18
- templateDefaultColumns: [],
19
- allTemplates: [],
20
- };
21
- }
22
- const { customViews, defaultTemplate } = transformTemplatesToViewMenuItems(templates, tableMode, lang);
23
- // Combine all templates for easy access
24
- const allTemplates = defaultTemplate ? [defaultTemplate, ...customViews] : customViews;
25
- return {
26
- customViews,
27
- defaultTemplate,
28
- templateDefaultColumns: (defaultTemplate === null || defaultTemplate === void 0 ? void 0 : defaultTemplate.submenu) || [],
29
- allTemplates,
30
- };
31
- }, [templates, tableMode, lang]);
32
- // Local state for default columns - this is the working copy that can be modified
33
- const [defaultColumns, setDefaultColumns] = useState([]);
34
- // Track if we've initialized for this mode (to avoid resetting user modifications)
35
- const [initializedMode, setInitializedMode] = useState(null);
36
- // Initialize defaultColumns when templates load or mode changes
37
- useEffect(() => {
38
- // Only initialize if mode changed or we haven't initialized yet
39
- if (initializedMode !== tableMode && parsedTemplates.templateDefaultColumns.length > 0) {
40
- setDefaultColumns(deepCloneColumns(parsedTemplates.templateDefaultColumns));
41
- setInitializedMode(tableMode);
42
- }
43
- }, [tableMode, parsedTemplates.templateDefaultColumns, initializedMode]);
44
- // Custom views state
45
- const [internalCustomViews, setInternalCustomViews] = useState([]);
46
- useEffect(() => {
47
- setInternalCustomViews([...parsedTemplates.customViews]);
48
- }, [parsedTemplates.customViews]);
49
- // Function to update default columns (called when user modifies and clicks Okay)
50
- const updateDefaultColumns = useCallback((columns) => {
51
- setDefaultColumns(deepCloneColumns(columns));
52
- }, []);
53
- // Create an updated default template with current defaultColumns
54
- // IMPORTANT: When mode just changed (initializedMode !== tableMode), use parsedTemplates
55
- // directly because defaultColumns state hasn't updated yet
56
- const updatedDefaultTemplate = useMemo(() => {
57
- if (!parsedTemplates.defaultTemplate) {
58
- return parsedTemplates.defaultTemplate;
59
- }
60
- // If mode just changed, use the fresh parsed columns, not the stale state
61
- const columnsToUse = initializedMode !== tableMode ? parsedTemplates.templateDefaultColumns : defaultColumns;
62
- if (columnsToUse.length === 0) {
63
- return parsedTemplates.defaultTemplate;
64
- }
65
- return Object.assign(Object.assign({}, parsedTemplates.defaultTemplate), { submenu: columnsToUse, columns: columnsToUse.map((col) => col.name) });
66
- }, [parsedTemplates.defaultTemplate, parsedTemplates.templateDefaultColumns, defaultColumns, initializedMode, tableMode]);
67
- // Build allTemplates with the updated default template
68
- const updatedAllTemplates = useMemo(() => {
69
- if (!updatedDefaultTemplate) {
70
- return parsedTemplates.customViews;
71
- }
72
- return [updatedDefaultTemplate, ...parsedTemplates.customViews];
73
- }, [updatedDefaultTemplate, parsedTemplates.customViews]);
74
- // For mode changes, provide the correct columns
75
- // Key: ALWAYS prefer state columns if they exist (preserves user modifications)
76
- const effectiveDefaultColumns = useMemo(() => {
77
- // If mode just changed AND we have no initialized state, use parsed columns
78
- if (initializedMode !== tableMode && defaultColumns.length === 0) {
79
- return parsedTemplates.templateDefaultColumns;
80
- }
81
- // Otherwise use state columns (which may include user edits)
82
- return defaultColumns.length > 0 ? defaultColumns : parsedTemplates.templateDefaultColumns;
83
- }, [initializedMode, tableMode, defaultColumns, parsedTemplates.templateDefaultColumns]);
84
- return {
85
- // Template data (with updated default template including modifications)
86
- defaultTemplate: updatedDefaultTemplate,
87
- customViews: parsedTemplates.customViews,
88
- allTemplates: updatedAllTemplates,
89
- // Default columns - preserves user edits
90
- defaultColumns: effectiveDefaultColumns,
91
- updateDefaultColumns,
92
- // Internal state
93
- internalCustomViews,
94
- setInternalCustomViews,
95
- };
96
- };
@@ -1,127 +0,0 @@
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
- zIndex: number;
89
- '& .MuiDialog-container': {
90
- transition: string;
91
- zIndex: number;
92
- };
93
- '& .MuiDialog-paper': {
94
- transition: string;
95
- pointerEvents: string;
96
- zIndex: number;
97
- };
98
- };
99
- export declare const ResetHeaderBox: 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 ResetCheckboxSx: SxProps<Theme>;
103
- export declare const SubmenuContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
104
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
105
- }, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
106
- export declare const ColumnItemsContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
107
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
108
- }, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
109
- export declare const SaveCustomViewBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
110
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
111
- }, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
112
- export declare const SaveCustomViewInnerBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
113
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
114
- }, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme> & {
115
- disabled?: boolean | undefined;
116
- }, {}, {}>;
117
- export declare const ButtonsContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
118
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
119
- }, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
120
- export declare const CancelButtonSx: SxProps<Theme>;
121
- export declare const OkayButtonSx: SxProps<Theme>;
122
- export declare const ModifiedTextSx: {
123
- readonly color: "#20232B80";
124
- readonly fontSize: "9px";
125
- readonly fontWeight: 500;
126
- readonly marginLeft: "4px";
127
- };
@@ -1,426 +0,0 @@
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
- paddingRight: 0,
32
- marginRight: 0,
33
- '&:after': {
34
- content: '""',
35
- position: 'absolute',
36
- left: -8,
37
- right: 0,
38
- width: '100%',
39
- height: '100%',
40
- boxShadow: theme.shadows[11],
41
- borderRadius: theme.spacing(0.5),
42
- paddingInlineStart: theme.spacing(1),
43
- paddingTop: '9px',
44
- paddingBottom: '9px',
45
- paddingInlineEnd: '9px',
46
- zIndex: -1,
47
- },
48
- '& > *:last-child': {
49
- marginRight: 0,
50
- paddingRight: 0,
51
- },
52
- }));
53
- export const ListStyled = styled(Box)(({ theme }) => ({
54
- background: theme.palette.common.white,
55
- borderRadius: theme.spacing(1),
56
- boxShadow: theme.shadows[5],
57
- border: '1px solid',
58
- borderColor: theme.palette.divider,
59
- zIndex: 5,
60
- fontSize: '11px',
61
- width: 192,
62
- }));
63
- export const DropdownStyled = styled(Box)(() => ({
64
- minWidth: 160,
65
- position: 'relative',
66
- marginRight: 0,
67
- paddingRight: 0,
68
- }));
69
- export const MenuItem = styled(Box, { shouldForwardProp: (props) => props !== 'addColumnViewEl' })(({ theme }) => ({
70
- padding: theme.spacing(1),
71
- paddingInlineEnd: 2,
72
- borderBottom: '1px solid',
73
- borderColor: theme.palette.divider,
74
- display: 'flex',
75
- alignItems: 'center',
76
- height: 32,
77
- cursor: 'pointer',
78
- img: {
79
- height: 12,
80
- },
81
- '.check-icon': {
82
- height: 'auto',
83
- marginInlineEnd: theme.spacing(1),
84
- },
85
- '&:hover': {
86
- color: theme.palette.info.dark,
87
- fontWeight: theme.typography.fontWeightBold,
88
- },
89
- '&.add-column': {
90
- justifyContent: 'space-between',
91
- paddingInlineEnd: theme.spacing(1),
92
- position: 'relative',
93
- border: 'none',
94
- zIndex: 5,
95
- borderBottom: '1px solid',
96
- borderColor: theme.palette.divider,
97
- borderTopRightRadius: theme.spacing(1),
98
- borderTopLeftRadius: theme.spacing(1),
99
- '&:hover': {
100
- boxShadow: theme.shadows[6],
101
- },
102
- },
103
- }));
104
- export const Space = styled(Box)(({ theme }) => ({
105
- width: 12,
106
- marginInlineEnd: theme.spacing(1),
107
- }));
108
- export const SpaceAfter = styled(Box)(() => ({
109
- width: 16,
110
- }));
111
- export const DialogContentWrapper = styled(Box)(({ theme }) => ({
112
- display: 'flex',
113
- flexDirection: 'column',
114
- height: 'calc(100% - 32px)',
115
- backgroundColor: theme.palette.background.paper,
116
- position: 'relative',
117
- }));
118
- export const ScrollableContent = styled(Box)(() => ({
119
- flex: 1,
120
- overflowY: 'auto',
121
- paddingLeft: 16,
122
- paddingRight: 16,
123
- paddingBottom: 64,
124
- }));
125
- export const TitleSection = styled(Box)(() => ({
126
- padding: '24px 0',
127
- display: 'flex',
128
- justifyContent: 'space-between',
129
- alignItems: 'center',
130
- }));
131
- export const ColumnListContainer = styled(Box)(({ theme }) => ({
132
- border: '1px solid',
133
- borderColor: theme.palette.divider,
134
- borderRadius: '8px',
135
- overflow: 'hidden',
136
- display: 'flex',
137
- flexDirection: 'column',
138
- flex: 1,
139
- minHeight: 0,
140
- }));
141
- export const SelectAllHeader = styled(Box)(({ theme }) => ({
142
- display: 'flex',
143
- alignItems: 'center',
144
- padding: '12px',
145
- borderBottom: '1px solid',
146
- borderColor: theme.palette.divider,
147
- backgroundColor: '#FAFAFA',
148
- cursor: 'pointer',
149
- '&:hover': {
150
- backgroundColor: '#F0F0F0',
151
- },
152
- }));
153
- export const ColumnItemRow = styled(Box, {
154
- shouldForwardProp: (prop) => prop !== 'isHovered' && prop !== 'isDate',
155
- })(({ theme, isHovered, isDate }) => ({
156
- display: 'flex',
157
- alignItems: 'center',
158
- padding: '12px',
159
- borderBottom: '1px solid',
160
- borderColor: theme.palette.divider,
161
- backgroundColor: isHovered ? theme.palette.action.hover : theme.palette.background.paper,
162
- cursor: isDate ? 'default' : 'grab',
163
- '&:hover': {
164
- backgroundColor: isDate ? theme.palette.background.paper : theme.palette.action.hover,
165
- },
166
- '&:last-child': {
167
- borderBottom: 'none',
168
- },
169
- }));
170
- export const DragIconWrapper = styled(Box)(() => ({
171
- width: 20,
172
- height: 20,
173
- marginRight: 8,
174
- display: 'flex',
175
- alignItems: 'center',
176
- justifyContent: 'center',
177
- flexShrink: 0,
178
- }));
179
- export const CheckboxWrapper = styled(Box)(() => ({
180
- display: 'flex',
181
- alignItems: 'center',
182
- justifyContent: 'center',
183
- padding: 0,
184
- width: 14,
185
- height: 14,
186
- minWidth: 14,
187
- minHeight: 14,
188
- flexShrink: 0,
189
- }));
190
- export const FooterBar = styled(Box)(({ theme }) => ({
191
- position: 'absolute',
192
- bottom: 0,
193
- left: 0,
194
- right: 0,
195
- height: 35,
196
- backgroundColor: '#F8F9FB',
197
- borderTop: '1px solid',
198
- borderColor: theme.palette.divider,
199
- }));
200
- export const CreateButtonWrapper = styled(Box)(() => ({
201
- position: 'absolute',
202
- bottom: 12,
203
- right: 16,
204
- padding: 6,
205
- backgroundColor: 'white',
206
- }));
207
- export const SubmenuPaper = styled(Paper)(() => ({
208
- paddingTop: 4,
209
- paddingBottom: 4,
210
- minWidth: 180,
211
- boxShadow: '0 4px 12px rgba(0,0,0,0.15)',
212
- borderRadius: '8px',
213
- }));
214
- export const SubmenuItem = styled(Box)(({ theme }) => ({
215
- display: 'flex',
216
- alignItems: 'center',
217
- padding: '8px 12px',
218
- cursor: 'pointer',
219
- }));
220
- export const DeleteButton = styled(Button)(() => ({
221
- color: '#FF0000',
222
- textTransform: 'none',
223
- fontSize: 10,
224
- fontWeight: 500,
225
- borderRadius: '4px',
226
- border: '1px solid #F4F4F4',
227
- paddingLeft: 8,
228
- paddingRight: 8,
229
- paddingTop: 4,
230
- paddingBottom: 4,
231
- '&:hover': {
232
- backgroundColor: 'transparent',
233
- },
234
- }));
235
- export const CreateButton = styled(Button)(({ theme }) => ({
236
- fontSize: 9,
237
- fontWeight: 600,
238
- borderRadius: 4,
239
- paddingLeft: 20,
240
- paddingRight: 20,
241
- paddingTop: 8,
242
- paddingBottom: 8,
243
- textTransform: 'none',
244
- backgroundColor: '#1F88D0',
245
- '&:hover': {
246
- backgroundColor: '#1A7BC0',
247
- },
248
- '&.Mui-disabled': {
249
- backgroundColor: theme.palette.grey[300],
250
- color: theme.palette.grey[500],
251
- },
252
- }));
253
- export const NameTextField = styled(TextField)(({ theme }) => ({
254
- '& .MuiFilledInput-root': {
255
- borderRadius: '8px',
256
- backgroundColor: theme.palette.background.paper,
257
- border: '1px solid',
258
- borderColor: theme.palette.divider,
259
- '&:hover': {
260
- backgroundColor: theme.palette.background.paper,
261
- },
262
- '&.Mui-focused': {
263
- backgroundColor: theme.palette.background.paper,
264
- },
265
- '&::before, &::after': {
266
- display: 'none',
267
- },
268
- },
269
- }));
270
- export const checkboxSx = {
271
- display: 'flex',
272
- alignItems: 'center',
273
- justifyContent: 'center',
274
- padding: 0,
275
- width: 14,
276
- height: 14,
277
- minWidth: 14,
278
- minHeight: 14,
279
- flexShrink: 0,
280
- color: 'grey.A400',
281
- '&.Mui-checked': {
282
- color: 'info.dark',
283
- },
284
- '&.MuiCheckbox-indeterminate': {
285
- color: 'info.dark',
286
- },
287
- '&.Mui-disabled.Mui-checked': {
288
- color: 'grey.500',
289
- '& .MuiSvgIcon-root': {
290
- backgroundColor: 'grey.500',
291
- borderRadius: '3px',
292
- color: '#fff',
293
- },
294
- },
295
- '& .MuiSvgIcon-root': {
296
- width: 14,
297
- height: 14,
298
- },
299
- '& img': {
300
- width: 14,
301
- height: 14,
302
- },
303
- };
304
- export const getDialogPaperStyle = (width, height) => ({
305
- margin: 0,
306
- maxHeight: '100%',
307
- maxWidth: 'none',
308
- width,
309
- height,
310
- borderRadius: 12,
311
- overflow: 'hidden',
312
- boxShadow: '0px 8px 32px rgba(0, 0, 0, 0.15)',
313
- });
314
- export const dialogSx = {
315
- backgroundColor: 'transparent',
316
- pointerEvents: 'none',
317
- zIndex: 1300,
318
- '& .MuiDialog-container': {
319
- transition: 'none !important',
320
- zIndex: 1300,
321
- },
322
- '& .MuiDialog-paper': {
323
- transition: 'none !important',
324
- pointerEvents: 'auto',
325
- zIndex: 1300,
326
- },
327
- };
328
- export const ResetHeaderBox = styled(Box)(({ theme }) => ({
329
- display: 'flex',
330
- alignItems: 'center',
331
- justifyContent: 'space-between',
332
- paddingLeft: theme.spacing(1.5),
333
- paddingRight: theme.spacing(1.5),
334
- paddingTop: theme.spacing(1),
335
- paddingBottom: theme.spacing(1),
336
- cursor: 'pointer',
337
- '&:hover': {
338
- backgroundColor: theme.palette.action.hover,
339
- },
340
- }));
341
- export const ResetCheckboxSx = {
342
- p: 0,
343
- width: 14,
344
- height: 14,
345
- minWidth: 14,
346
- minHeight: 14,
347
- '&.Mui-checked': { color: 'info.dark' },
348
- '&.MuiCheckbox-indeterminate': { color: 'info.dark' },
349
- '& .MuiSvgIcon-root': { width: 14, height: 14 },
350
- };
351
- export const SubmenuContainer = styled(Box)(() => ({
352
- minWidth: 200,
353
- display: 'flex',
354
- flexDirection: 'column',
355
- maxHeight: '80vh',
356
- overflow: 'hidden',
357
- }));
358
- export const ColumnItemsContainer = styled(Box)(() => ({
359
- flex: 1,
360
- overflowY: 'auto',
361
- paddingLeft: 6,
362
- paddingRight: 6,
363
- minHeight: 0,
364
- }));
365
- export const SaveCustomViewBox = styled(Box)(() => ({
366
- paddingLeft: 8,
367
- paddingRight: 8,
368
- paddingTop: 8,
369
- paddingBottom: 8,
370
- flexShrink: 0,
371
- }));
372
- export const SaveCustomViewInnerBox = styled(Box)(({ disabled }) => ({
373
- width: '100%',
374
- borderRadius: '8px',
375
- backgroundColor: '#1F88D00D',
376
- padding: '8px',
377
- marginLeft: 6,
378
- marginRight: 6,
379
- display: 'flex',
380
- flexDirection: 'column',
381
- gap: '6px',
382
- cursor: disabled ? 'not-allowed' : 'pointer',
383
- opacity: disabled ? 0.5 : 1,
384
- }));
385
- export const ButtonsContainer = styled(Box)(({ theme }) => ({
386
- display: 'flex',
387
- justifyContent: 'flex-end',
388
- gap: 12,
389
- paddingTop: 8,
390
- paddingBottom: 8,
391
- paddingLeft: 12,
392
- paddingRight: 12,
393
- flexShrink: 0,
394
- borderTop: '1px solid',
395
- borderColor: theme.palette.divider,
396
- }));
397
- export const CancelButtonSx = {
398
- fontSize: 11,
399
- fontWeight: 400,
400
- textTransform: 'none',
401
- color: 'text.primary',
402
- minWidth: 80,
403
- height: 38,
404
- borderRadius: '8px',
405
- border: '1px solid #F2F2F2',
406
- };
407
- export const OkayButtonSx = {
408
- fontSize: 11,
409
- fontWeight: 500,
410
- textTransform: 'none',
411
- backgroundColor: '#1F88D0',
412
- minWidth: 80,
413
- height: 38,
414
- borderRadius: '8px',
415
- boxShadow: 'none',
416
- '&:hover': {
417
- backgroundColor: '#1976B8',
418
- boxShadow: 'none',
419
- },
420
- };
421
- export const ModifiedTextSx = {
422
- color: '#20232B80',
423
- fontSize: '9px',
424
- fontWeight: 500,
425
- marginLeft: '4px',
426
- };