@tap-payments/os-micro-frontend-shared 0.1.374-test.1 → 0.1.374-test.1-test.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/FilterDropdown/FilterDropdown.d.ts +4 -11
- package/build/components/FilterDropdown/FilterDropdown.js +4 -18
- package/build/components/FilterDropdown/style.js +1 -1
- package/build/components/RangeCalender/RangeCalender.js +2 -4
- package/build/components/Sandbox/style.js +3 -2
- 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 +91 -0
- package/build/components/TableHeader/TableView/CustomViews.js +1 -1
- package/build/components/TableHeader/TableView/TableView.js +0 -1
- package/build/components/TableHeader/TableView/ViewSelector.d.ts +5 -0
- package/build/components/TableHeader/TableView/ViewSelector.js +46 -0
- package/build/components/TableHeader/TableView/ViewsDropdown.d.ts +5 -0
- package/build/components/TableHeader/TableView/ViewsDropdown.js +243 -0
- package/build/components/TableHeader/TableView/components/ColumnList.d.ts +3 -0
- package/build/components/TableHeader/TableView/components/ColumnList.js +70 -0
- package/build/components/TableHeader/TableView/components/ViewsSubmenu.d.ts +3 -0
- package/build/components/TableHeader/TableView/components/ViewsSubmenu.js +52 -0
- package/build/components/TableHeader/TableView/components/index.d.ts +2 -0
- package/build/components/TableHeader/TableView/components/index.js +2 -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 +48 -0
- package/build/components/TableHeader/TableView/hooks/index.d.ts +6 -0
- package/build/components/TableHeader/TableView/hooks/index.js +6 -0
- package/build/components/TableHeader/TableView/hooks/useCreateViewDialog.d.ts +22 -0
- package/build/components/TableHeader/TableView/hooks/useCreateViewDialog.js +88 -0
- package/build/components/TableHeader/TableView/hooks/useDialogPosition.d.ts +8 -0
- package/build/components/TableHeader/TableView/hooks/useDialogPosition.js +16 -0
- package/build/components/TableHeader/TableView/hooks/useNestedSubmenu.d.ts +7 -0
- package/build/components/TableHeader/TableView/hooks/useNestedSubmenu.js +34 -0
- package/build/components/TableHeader/TableView/hooks/useOriginalColumns.d.ts +6 -0
- package/build/components/TableHeader/TableView/hooks/useOriginalColumns.js +18 -0
- package/build/components/TableHeader/TableView/hooks/useSubmenuHover.d.ts +8 -0
- package/build/components/TableHeader/TableView/hooks/useSubmenuHover.js +43 -0
- package/build/components/TableHeader/TableView/hooks/useViewSelector.d.ts +59 -0
- package/build/components/TableHeader/TableView/hooks/useViewSelector.js +219 -0
- package/build/components/TableHeader/TableView/hooks/useViewsManager.d.ts +12 -0
- package/build/components/TableHeader/TableView/hooks/useViewsManager.js +139 -0
- package/build/components/TableHeader/TableView/index.d.ts +12 -3
- package/build/components/TableHeader/TableView/index.js +13 -3
- package/build/components/TableHeader/TableView/styles.d.ts +127 -0
- package/build/components/TableHeader/TableView/styles.js +426 -0
- package/build/components/TableHeader/TableView/types.d.ts +198 -0
- package/build/components/TableHeader/TableView/utils.d.ts +121 -0
- package/build/components/TableHeader/TableView/utils.js +457 -0
- package/build/components/TableHeader/type.d.ts +22 -1
- package/build/components/Toolbar/Toolbar.js +1 -1
- package/build/components/index.d.ts +0 -1
- package/build/components/index.js +0 -1
- package/build/constants/apps.js +0 -2
- package/build/constants/assets.d.ts +1 -2
- package/build/constants/assets.js +1 -2
- package/build/types/index.d.ts +0 -1
- package/build/types/index.js +0 -1
- package/build/types/reports.d.ts +0 -21
- package/build/utils/date.d.ts +0 -5
- package/build/utils/date.js +0 -37
- package/package.json +3 -2
- package/build/components/MultiDatakeyDonut/MultiDatakeyDonut.d.ts +0 -12
- package/build/components/MultiDatakeyDonut/MultiDatakeyDonut.js +0 -19
- package/build/components/MultiDatakeyDonut/index.d.ts +0 -1
- package/build/components/MultiDatakeyDonut/index.js +0 -1
- package/build/components/MultiDatakeyDonut/style.d.ts +0 -10
- package/build/components/MultiDatakeyDonut/style.js +0 -23
- package/build/types/toggleOptions.d.ts +0 -2
- /package/build/{types/toggleOptions.js → components/TableHeader/TableView/types.js} +0 -0
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { useState, useCallback, useEffect, useRef } from 'react';
|
|
11
|
+
import { createCustomViewMenuItem } from '../utils';
|
|
12
|
+
export const useViewSelector = ({ mode, onViewChange, onTableViewsChange, onCustomViewsChange, onCreateCustomView, onEditCustomView, onDeleteCustomView, resetTableViews, setTableViews, tableViews, customViews, defaultColumns, defaultTemplate, setInternalCustomViews, setInternalTableViews, setDefaultColumns, apiMetadata, }) => {
|
|
13
|
+
const [anchorViewEl, setAnchorViewEl] = useState(null);
|
|
14
|
+
const [defaultViewEl, setDefaultViewElement] = useState(null);
|
|
15
|
+
const [isCreateDialogOpen, setIsCreateDialogOpen] = useState(false);
|
|
16
|
+
const [editingView, setEditingView] = useState(null);
|
|
17
|
+
const [selectedViewInfo, setSelectedViewInfo] = useState({ id: 'default', label: 'Default' });
|
|
18
|
+
const [shouldUseCurrentState, setShouldUseCurrentState] = useState(false);
|
|
19
|
+
const [selectedView, setSelectedView] = useState(undefined);
|
|
20
|
+
const hasInitializedRef = useRef(false);
|
|
21
|
+
const prevModeRef = useRef(mode);
|
|
22
|
+
// Update editingView when customViews changes to ensure it reflects the latest saved state
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
if (editingView && customViews.length > 0) {
|
|
25
|
+
const updatedView = customViews.find((view) => view.id === editingView.id);
|
|
26
|
+
if (updatedView && updatedView !== editingView) {
|
|
27
|
+
setEditingView(updatedView);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}, [customViews, editingView]);
|
|
31
|
+
// Update selectedView when customViews changes to ensure it reflects the latest saved state
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
if (selectedView && selectedView.isCustom && customViews.length > 0) {
|
|
34
|
+
const updatedView = customViews.find((view) => view.id === selectedView.id);
|
|
35
|
+
if (updatedView) {
|
|
36
|
+
// Compare submenu to detect changes (deep comparison would be better, but this works for now)
|
|
37
|
+
const submenuChanged = JSON.stringify(updatedView.submenu) !== JSON.stringify(selectedView.submenu);
|
|
38
|
+
const labelChanged = updatedView.label !== selectedView.label;
|
|
39
|
+
if (submenuChanged || labelChanged) {
|
|
40
|
+
// Create a new object reference to ensure React detects the change
|
|
41
|
+
const newSelectedView = Object.assign(Object.assign({}, updatedView), { submenu: updatedView.submenu ? [...updatedView.submenu] : undefined });
|
|
42
|
+
setSelectedView(newSelectedView);
|
|
43
|
+
onViewChange === null || onViewChange === void 0 ? void 0 : onViewChange(newSelectedView);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}, [customViews, selectedView, onViewChange]);
|
|
48
|
+
// Notify parent of initial view on mount only
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
// Only initialize once on mount, don't reset if user has already selected a view
|
|
51
|
+
if (hasInitializedRef.current)
|
|
52
|
+
return;
|
|
53
|
+
// Use defaultTemplate if available, otherwise undefined (built-in default view)
|
|
54
|
+
const initialView = defaultTemplate || undefined;
|
|
55
|
+
setSelectedView(initialView);
|
|
56
|
+
onViewChange === null || onViewChange === void 0 ? void 0 : onViewChange(initialView);
|
|
57
|
+
hasInitializedRef.current = true;
|
|
58
|
+
}, [defaultTemplate, onViewChange]);
|
|
59
|
+
// Update selected view when mode changes
|
|
60
|
+
useEffect(() => {
|
|
61
|
+
// Skip initial mount
|
|
62
|
+
if (!hasInitializedRef.current)
|
|
63
|
+
return;
|
|
64
|
+
// Only run if mode actually changed
|
|
65
|
+
if (prevModeRef.current === mode)
|
|
66
|
+
return;
|
|
67
|
+
prevModeRef.current = mode;
|
|
68
|
+
if ((selectedView === null || selectedView === void 0 ? void 0 : selectedView.id) === 'default' && defaultTemplate) {
|
|
69
|
+
// Mode has changed, update with new default template columns
|
|
70
|
+
const updatedView = Object.assign(Object.assign({}, defaultTemplate), { submenu: defaultTemplate.submenu ? [...defaultTemplate.submenu] : undefined });
|
|
71
|
+
setSelectedView(updatedView);
|
|
72
|
+
onViewChange === null || onViewChange === void 0 ? void 0 : onViewChange(updatedView);
|
|
73
|
+
}
|
|
74
|
+
else if ((selectedView === null || selectedView === void 0 ? void 0 : selectedView.isCustom) && customViews.length > 0) {
|
|
75
|
+
// If viewing a custom view, update it with the new columns for this mode
|
|
76
|
+
const updatedCustomView = customViews.find((view) => view.id === selectedView.id);
|
|
77
|
+
if (updatedCustomView) {
|
|
78
|
+
const newView = Object.assign(Object.assign({}, updatedCustomView), { submenu: updatedCustomView.submenu ? [...updatedCustomView.submenu] : undefined });
|
|
79
|
+
setSelectedView(newView);
|
|
80
|
+
onViewChange === null || onViewChange === void 0 ? void 0 : onViewChange(newView);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}, [mode, defaultTemplate, customViews, selectedView, onViewChange]);
|
|
84
|
+
const handleTableViewsChange = useCallback((newTableViews) => {
|
|
85
|
+
const setTableViewsState = setTableViews !== null && setTableViews !== void 0 ? setTableViews : setInternalTableViews;
|
|
86
|
+
setTableViewsState(newTableViews);
|
|
87
|
+
onTableViewsChange === null || onTableViewsChange === void 0 ? void 0 : onTableViewsChange(newTableViews);
|
|
88
|
+
}, [setTableViews, setInternalTableViews, onTableViewsChange]);
|
|
89
|
+
const handleCustomViewsChange = useCallback((newCustomViews) => {
|
|
90
|
+
setInternalCustomViews(newCustomViews);
|
|
91
|
+
onCustomViewsChange === null || onCustomViewsChange === void 0 ? void 0 : onCustomViewsChange(newCustomViews);
|
|
92
|
+
}, [setInternalCustomViews, onCustomViewsChange]);
|
|
93
|
+
const handleViewButtonClick = useCallback((event) => {
|
|
94
|
+
setAnchorViewEl(event.currentTarget);
|
|
95
|
+
setDefaultViewElement(event.currentTarget);
|
|
96
|
+
}, []);
|
|
97
|
+
const handleCloseViewDropdown = useCallback(() => {
|
|
98
|
+
setDefaultViewElement(null);
|
|
99
|
+
}, []);
|
|
100
|
+
const handleClose = useCallback(() => {
|
|
101
|
+
setAnchorViewEl(null);
|
|
102
|
+
setDefaultViewElement(null);
|
|
103
|
+
setSelectedViewInfo({ label: 'Default', id: 'default' });
|
|
104
|
+
}, []);
|
|
105
|
+
const handleSelectedViewInfo = useCallback((selected, viewMenuItem) => {
|
|
106
|
+
setSelectedViewInfo(selected);
|
|
107
|
+
// Update selected view and notify parent
|
|
108
|
+
const newSelectedView = viewMenuItem || undefined;
|
|
109
|
+
setSelectedView(newSelectedView);
|
|
110
|
+
onViewChange === null || onViewChange === void 0 ? void 0 : onViewChange(newSelectedView);
|
|
111
|
+
handleCloseViewDropdown();
|
|
112
|
+
}, [handleCloseViewDropdown, onViewChange]);
|
|
113
|
+
// Internal function to update selected view and notify parent
|
|
114
|
+
// Used when default columns change via "Okay" button
|
|
115
|
+
const updateSelectedView = useCallback((updatedView) => {
|
|
116
|
+
setSelectedView(updatedView);
|
|
117
|
+
setSelectedViewInfo({ id: updatedView.id, label: updatedView.label });
|
|
118
|
+
onViewChange === null || onViewChange === void 0 ? void 0 : onViewChange(updatedView);
|
|
119
|
+
}, [onViewChange, setSelectedViewInfo]);
|
|
120
|
+
const handleOpenCreateDialog = useCallback((useCurrentState = false) => {
|
|
121
|
+
setEditingView(null);
|
|
122
|
+
setShouldUseCurrentState(useCurrentState);
|
|
123
|
+
setIsCreateDialogOpen(true);
|
|
124
|
+
setDefaultViewElement(null);
|
|
125
|
+
}, []);
|
|
126
|
+
const handleOpenEditDialog = useCallback((view) => {
|
|
127
|
+
setEditingView(view);
|
|
128
|
+
setShouldUseCurrentState(true);
|
|
129
|
+
setIsCreateDialogOpen(true);
|
|
130
|
+
}, []);
|
|
131
|
+
const handleCloseCreateDialog = useCallback(() => {
|
|
132
|
+
setIsCreateDialogOpen(false);
|
|
133
|
+
setEditingView(null);
|
|
134
|
+
setShouldUseCurrentState(false);
|
|
135
|
+
}, []);
|
|
136
|
+
const handleSaveView = useCallback((data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
137
|
+
try {
|
|
138
|
+
if (editingView) {
|
|
139
|
+
// Use templateId for API calls, not the internal view id
|
|
140
|
+
const templateId = editingView.templateId || editingView.id;
|
|
141
|
+
yield (onEditCustomView === null || onEditCustomView === void 0 ? void 0 : onEditCustomView(templateId, data));
|
|
142
|
+
// Update state after promise resolves successfully
|
|
143
|
+
const updatedView = Object.assign(Object.assign({}, editingView), { label: data.name, columns: data.selectedColumns.map((col) => col.name), submenu: data.selectedColumns });
|
|
144
|
+
const updatedViews = customViews.map((view) => (view.id === editingView.id ? updatedView : view));
|
|
145
|
+
handleCustomViewsChange(updatedViews);
|
|
146
|
+
// If the updated view is currently selected, update selectedView to reflect changes
|
|
147
|
+
// Create a new object reference to ensure React detects the change
|
|
148
|
+
if ((selectedView === null || selectedView === void 0 ? void 0 : selectedView.id) === editingView.id) {
|
|
149
|
+
const newSelectedView = Object.assign(Object.assign({}, updatedView), { submenu: [...updatedView.submenu] });
|
|
150
|
+
setSelectedView(newSelectedView);
|
|
151
|
+
onViewChange === null || onViewChange === void 0 ? void 0 : onViewChange(newSelectedView);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
yield (onCreateCustomView === null || onCreateCustomView === void 0 ? void 0 : onCreateCustomView(data));
|
|
156
|
+
// Update state after promise resolves successfully
|
|
157
|
+
const newView = createCustomViewMenuItem(data.name, data.selectedColumns);
|
|
158
|
+
const updatedViews = [...customViews, newView];
|
|
159
|
+
handleCustomViewsChange(updatedViews);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
catch (error) {
|
|
163
|
+
// Error will be handled by the toast in CreateViewDialog
|
|
164
|
+
throw error;
|
|
165
|
+
}
|
|
166
|
+
}), [editingView, customViews, handleCustomViewsChange, onEditCustomView, onCreateCustomView, selectedView, onViewChange]);
|
|
167
|
+
const handleDeleteView = useCallback((viewId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
168
|
+
try {
|
|
169
|
+
// Find the view to get its templateId
|
|
170
|
+
const viewToDelete = customViews.find((view) => view.id === viewId);
|
|
171
|
+
const templateId = (viewToDelete === null || viewToDelete === void 0 ? void 0 : viewToDelete.templateId) || viewId;
|
|
172
|
+
yield (onDeleteCustomView === null || onDeleteCustomView === void 0 ? void 0 : onDeleteCustomView(templateId));
|
|
173
|
+
// Update state after promise resolves successfully
|
|
174
|
+
const updatedViews = customViews.filter((view) => view.id !== viewId);
|
|
175
|
+
handleCustomViewsChange(updatedViews);
|
|
176
|
+
// If the deleted view was selected, reset to default
|
|
177
|
+
if ((selectedView === null || selectedView === void 0 ? void 0 : selectedView.id) === viewId) {
|
|
178
|
+
setSelectedView(undefined);
|
|
179
|
+
onViewChange === null || onViewChange === void 0 ? void 0 : onViewChange(undefined);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
catch (error) {
|
|
183
|
+
// Error will be handled by the toast in CreateViewDialog
|
|
184
|
+
throw error;
|
|
185
|
+
}
|
|
186
|
+
}), [customViews, handleCustomViewsChange, onDeleteCustomView, selectedView, onViewChange]);
|
|
187
|
+
const handleResetViews = useCallback((views) => {
|
|
188
|
+
if (resetTableViews) {
|
|
189
|
+
resetTableViews({ id: views[0], label: views[0] });
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
// Reset to default columns from templates
|
|
193
|
+
handleTableViewsChange([...defaultColumns]);
|
|
194
|
+
}
|
|
195
|
+
}, [resetTableViews, defaultColumns, handleTableViewsChange]);
|
|
196
|
+
return {
|
|
197
|
+
// State
|
|
198
|
+
anchorViewEl,
|
|
199
|
+
defaultViewEl,
|
|
200
|
+
setDefaultViewElement,
|
|
201
|
+
isCreateDialogOpen,
|
|
202
|
+
editingView,
|
|
203
|
+
selectedViewInfo,
|
|
204
|
+
shouldUseCurrentState,
|
|
205
|
+
// Handlers
|
|
206
|
+
handleViewButtonClick,
|
|
207
|
+
handleCloseViewDropdown,
|
|
208
|
+
handleClose,
|
|
209
|
+
handleSelectedViewInfo,
|
|
210
|
+
handleOpenCreateDialog,
|
|
211
|
+
handleOpenEditDialog,
|
|
212
|
+
handleCloseCreateDialog,
|
|
213
|
+
handleSaveView,
|
|
214
|
+
handleDeleteView,
|
|
215
|
+
handleResetViews,
|
|
216
|
+
handleTableViewsChange,
|
|
217
|
+
updateSelectedView,
|
|
218
|
+
};
|
|
219
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ColumnViewProps } from '../../../../types/index.js';
|
|
3
|
+
import type { UseViewsManagerProps, ViewMenuItem } from '../types';
|
|
4
|
+
export declare const useViewsManager: ({ mode, templates, lang }: UseViewsManagerProps) => {
|
|
5
|
+
defaultColumns: ColumnViewProps[];
|
|
6
|
+
setDefaultColumns: (newColumns: ColumnViewProps[]) => void;
|
|
7
|
+
internalTableViews: ColumnViewProps[];
|
|
8
|
+
setInternalTableViews: import("react").Dispatch<import("react").SetStateAction<ColumnViewProps[]>>;
|
|
9
|
+
internalCustomViews: ViewMenuItem[];
|
|
10
|
+
setInternalCustomViews: import("react").Dispatch<import("react").SetStateAction<ViewMenuItem[]>>;
|
|
11
|
+
defaultTemplate: ViewMenuItem | undefined;
|
|
12
|
+
};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { useState, useEffect, useMemo, useCallback } from 'react';
|
|
2
|
+
import { transformTemplatesToViewMenuItems } from '../utils';
|
|
3
|
+
export const useViewsManager = ({ mode, templates, lang = 'en' }) => {
|
|
4
|
+
// Maintain internal templates state that can be modified
|
|
5
|
+
const [internalTemplates, setInternalTemplates] = useState(() => templates);
|
|
6
|
+
// Update internal templates when external templates prop changes
|
|
7
|
+
useEffect(() => {
|
|
8
|
+
if (templates) {
|
|
9
|
+
setInternalTemplates(templates);
|
|
10
|
+
}
|
|
11
|
+
}, [templates]);
|
|
12
|
+
// Transform templates internally - this is the only source of data
|
|
13
|
+
const transformedTemplates = useMemo(() => {
|
|
14
|
+
if (!internalTemplates)
|
|
15
|
+
return null;
|
|
16
|
+
const templatesArray = Array.isArray(internalTemplates) ? internalTemplates : internalTemplates.templates;
|
|
17
|
+
const { customViews, defaultTemplateColumns, defaultTemplate } = transformTemplatesToViewMenuItems(templatesArray, mode, lang);
|
|
18
|
+
// Only use default template columns - no fallback to layout data
|
|
19
|
+
// The default view must come from a template with default: true
|
|
20
|
+
const effectiveLayoutData = defaultTemplateColumns
|
|
21
|
+
? [
|
|
22
|
+
{
|
|
23
|
+
code: mode === 'advanced' ? 'Advanced' : 'Sheet',
|
|
24
|
+
columns: defaultTemplateColumns.map((col, idx) => {
|
|
25
|
+
var _a, _b;
|
|
26
|
+
return ({
|
|
27
|
+
code: col.name,
|
|
28
|
+
name: [{ text: typeof col.label === 'string' ? col.label : col.name, lang }],
|
|
29
|
+
order: idx + 1,
|
|
30
|
+
default: (_a = col.selected) !== null && _a !== void 0 ? _a : false,
|
|
31
|
+
fields: (_b = col.menuItems) === null || _b === void 0 ? void 0 : _b.map((item) => {
|
|
32
|
+
var _a;
|
|
33
|
+
return ({
|
|
34
|
+
code: item.name,
|
|
35
|
+
name: [{ text: typeof item.label === 'string' ? item.label : item.name, lang: '' }],
|
|
36
|
+
default: (_a = item.selected) !== null && _a !== void 0 ? _a : false,
|
|
37
|
+
});
|
|
38
|
+
}),
|
|
39
|
+
});
|
|
40
|
+
}),
|
|
41
|
+
},
|
|
42
|
+
]
|
|
43
|
+
: [];
|
|
44
|
+
return {
|
|
45
|
+
customViews,
|
|
46
|
+
layoutData: effectiveLayoutData,
|
|
47
|
+
defaultTemplateColumns,
|
|
48
|
+
defaultTemplate,
|
|
49
|
+
};
|
|
50
|
+
}, [internalTemplates, mode, lang]);
|
|
51
|
+
const [defaultColumns, setDefaultColumns] = useState([]);
|
|
52
|
+
const [internalTableViews, setInternalTableViews] = useState([]);
|
|
53
|
+
const [internalCustomViews, setInternalCustomViews] = useState([]);
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
// Only use default template columns from template with default: true
|
|
56
|
+
// No fallback to layout data - default must come from templates array
|
|
57
|
+
if (transformedTemplates === null || transformedTemplates === void 0 ? void 0 : transformedTemplates.defaultTemplateColumns) {
|
|
58
|
+
// Create new array references to ensure state updates
|
|
59
|
+
const newColumns = [...transformedTemplates.defaultTemplateColumns];
|
|
60
|
+
setDefaultColumns(newColumns);
|
|
61
|
+
setInternalTableViews(newColumns);
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
// No default template found - set empty arrays
|
|
65
|
+
setDefaultColumns([]);
|
|
66
|
+
setInternalTableViews([]);
|
|
67
|
+
}
|
|
68
|
+
}, [mode, transformedTemplates]);
|
|
69
|
+
// Update custom views when templates/mode change
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
if (transformedTemplates === null || transformedTemplates === void 0 ? void 0 : transformedTemplates.customViews) {
|
|
72
|
+
// Create new array reference to ensure state updates
|
|
73
|
+
setInternalCustomViews([...transformedTemplates.customViews]);
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
setInternalCustomViews([]);
|
|
77
|
+
}
|
|
78
|
+
}, [mode, transformedTemplates]);
|
|
79
|
+
// Custom setDefaultColumns that also updates the internal templates
|
|
80
|
+
const setDefaultColumnsWithTemplateUpdate = useCallback((newColumns) => {
|
|
81
|
+
setDefaultColumns(newColumns);
|
|
82
|
+
// Update the internal templates to persist the changes
|
|
83
|
+
setInternalTemplates((prevTemplates) => {
|
|
84
|
+
if (!prevTemplates)
|
|
85
|
+
return prevTemplates;
|
|
86
|
+
const templatesArray = Array.isArray(prevTemplates) ? prevTemplates : prevTemplates.templates;
|
|
87
|
+
const templatesCopy = templatesArray.map((t) => (Object.assign({}, t)));
|
|
88
|
+
// Find the default template
|
|
89
|
+
const defaultTemplateIndex = templatesCopy.findIndex((t) => t.default);
|
|
90
|
+
if (defaultTemplateIndex === -1)
|
|
91
|
+
return prevTemplates;
|
|
92
|
+
const defaultTemplate = Object.assign({}, templatesCopy[defaultTemplateIndex]);
|
|
93
|
+
const layoutCopy = [...defaultTemplate.layout];
|
|
94
|
+
// Find and update the appropriate layout section
|
|
95
|
+
const layoutCode = mode === 'advanced' ? 'Advanced' : 'Sheet';
|
|
96
|
+
const layoutSectionIndex = layoutCopy.findIndex((section) => section.code === layoutCode);
|
|
97
|
+
if (layoutSectionIndex !== -1) {
|
|
98
|
+
// Convert ColumnViewProps back to template format
|
|
99
|
+
const updatedColumns = newColumns.map((col, idx) => {
|
|
100
|
+
var _a, _b;
|
|
101
|
+
return ({
|
|
102
|
+
code: col.name,
|
|
103
|
+
name: [{ text: typeof col.label === 'string' ? col.label : col.name, lang }],
|
|
104
|
+
order: idx + 1,
|
|
105
|
+
default: (_a = col.selected) !== null && _a !== void 0 ? _a : false,
|
|
106
|
+
fields: (_b = col.menuItems) === null || _b === void 0 ? void 0 : _b.map((item) => {
|
|
107
|
+
var _a;
|
|
108
|
+
return ({
|
|
109
|
+
code: item.name,
|
|
110
|
+
name: [{ text: typeof item.label === 'string' ? item.label : item.name, lang }],
|
|
111
|
+
order: null,
|
|
112
|
+
default: (_a = item.selected) !== null && _a !== void 0 ? _a : false,
|
|
113
|
+
});
|
|
114
|
+
}),
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
layoutCopy[layoutSectionIndex] = Object.assign(Object.assign({}, layoutCopy[layoutSectionIndex]), { columns: updatedColumns });
|
|
118
|
+
defaultTemplate.layout = layoutCopy;
|
|
119
|
+
templatesCopy[defaultTemplateIndex] = defaultTemplate;
|
|
120
|
+
}
|
|
121
|
+
// Return updated templates in the same format as the input
|
|
122
|
+
if (Array.isArray(prevTemplates)) {
|
|
123
|
+
return templatesCopy;
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
return Object.assign(Object.assign({}, prevTemplates), { templates: templatesCopy });
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
}, [mode, lang]);
|
|
130
|
+
return {
|
|
131
|
+
defaultColumns,
|
|
132
|
+
setDefaultColumns: setDefaultColumnsWithTemplateUpdate,
|
|
133
|
+
internalTableViews,
|
|
134
|
+
setInternalTableViews,
|
|
135
|
+
internalCustomViews,
|
|
136
|
+
setInternalCustomViews,
|
|
137
|
+
defaultTemplate: transformedTemplates === null || transformedTemplates === void 0 ? void 0 : transformedTemplates.defaultTemplate,
|
|
138
|
+
};
|
|
139
|
+
};
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export default
|
|
1
|
+
export { default } from './TableView';
|
|
2
|
+
export { default as TableView } from './TableView';
|
|
3
|
+
export { default as DefaultViews } from './DefaultViews';
|
|
4
|
+
export { default as CustomViews } from './CustomViews';
|
|
5
|
+
export { default as ViewSelector } from './ViewSelector';
|
|
6
|
+
export { default as ViewsDropdown } from './ViewsDropdown';
|
|
7
|
+
export { default as CreateViewDialog } from './CreateViewDialog';
|
|
8
|
+
export type { ViewMenuItem, ViewMode, CreateCustomViewDialogProps, LayoutSection, ColumnItem, FieldItem, TemplateResponse, TemplatesListResponse, TemplateAPIMetadata, CreateTemplatePayload, UpdateTemplatePayload, } from './types';
|
|
9
|
+
export { transformLayoutToColumns, getColumnsByMode, createCustomViewMenuItem, setViewAsDefault, transformTemplatesToViewMenuItems, convertColumnsToLayoutSection, isDateColumn, getColumnCheckState, } from './utils';
|
|
10
|
+
export { useSubmenuHover } from './hooks';
|
|
11
|
+
export { DIALOG_WIDTH, DIALOG_HEIGHT, MAX_CUSTOM_VIEWS, TEMPLATE_NAME_MAX_LENGTH } from './constants';
|
|
12
|
+
export { defaultViewList, advancedColumns, sheetColumns } from './data';
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export default
|
|
1
|
+
export { default } from './TableView';
|
|
2
|
+
export { default as TableView } from './TableView';
|
|
3
|
+
export { default as DefaultViews } from './DefaultViews';
|
|
4
|
+
export { default as CustomViews } from './CustomViews';
|
|
5
|
+
export { default as ViewSelector } from './ViewSelector';
|
|
6
|
+
export { default as ViewsDropdown } from './ViewsDropdown';
|
|
7
|
+
export { default as CreateViewDialog } from './CreateViewDialog';
|
|
8
|
+
export { transformLayoutToColumns, getColumnsByMode, createCustomViewMenuItem, setViewAsDefault, transformTemplatesToViewMenuItems, convertColumnsToLayoutSection, isDateColumn, getColumnCheckState, } from './utils';
|
|
9
|
+
export { useSubmenuHover } from './hooks';
|
|
10
|
+
export { DIALOG_WIDTH, DIALOG_HEIGHT, MAX_CUSTOM_VIEWS, TEMPLATE_NAME_MAX_LENGTH } from './constants';
|
|
11
|
+
// Note: defaultViewList, advancedColumns, sheetColumns are only exported for demo purposes
|
|
12
|
+
// They should not be used as defaults in production - all data should come from API
|
|
13
|
+
export { defaultViewList, advancedColumns, sheetColumns } from './data';
|
|
@@ -0,0 +1,127 @@
|
|
|
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
|
+
};
|