@danikokonn/yarik-frontend-lib 2.0.58-test9 → 2.1.0
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/README.md +309 -1
- package/dist/components/ActionDialog/ActionDialog.d.ts +1 -2
- package/dist/components/ActionDialog/ActionDialog.d.ts.map +1 -1
- package/dist/components/ActionDialog/ActionDialog.js +8 -19
- package/dist/components/ActionDialog/ActionDialogProps.d.ts +1 -3
- package/dist/components/ActionDialog/ActionDialogProps.d.ts.map +1 -1
- package/dist/components/ActionDialog/index.d.ts +2 -2
- package/dist/components/ActionDialog/index.d.ts.map +1 -1
- package/dist/components/ActionDialog/index.js +1 -1
- package/dist/components/ColumnSearchInput/ColumnSearchInput.d.ts +1 -2
- package/dist/components/ColumnSearchInput/ColumnSearchInput.d.ts.map +1 -1
- package/dist/components/ColumnSearchInput/ColumnSearchInput.js +5 -5
- package/dist/components/ColumnSearchInput/index.d.ts +2 -2
- package/dist/components/ColumnSearchInput/index.d.ts.map +1 -1
- package/dist/components/ColumnSearchInput/index.js +1 -1
- package/dist/components/DateTimeRangePicker/DateTimeRangePicker.d.ts +2 -3
- package/dist/components/DateTimeRangePicker/DateTimeRangePicker.d.ts.map +1 -1
- package/dist/components/DateTimeRangePicker/DateTimeRangePicker.js +39 -42
- package/dist/components/DateTimeRangePicker/index.d.ts +2 -2
- package/dist/components/DateTimeRangePicker/index.d.ts.map +1 -1
- package/dist/components/DateTimeRangePicker/index.js +1 -1
- package/dist/components/DatetimeRangeInput/DatetimeRangeInput.d.ts +1 -0
- package/dist/components/DatetimeRangeInput/DatetimeRangeInput.d.ts.map +1 -1
- package/dist/components/DatetimeRangeInput/DatetimeRangeInput.js +38 -44
- package/dist/components/DatetimeRangeInput/index.d.ts +2 -2
- package/dist/components/DatetimeRangeInput/index.d.ts.map +1 -1
- package/dist/components/DatetimeRangeInput/index.js +1 -1
- package/dist/components/Footer/Footer.d.ts +1 -2
- package/dist/components/Footer/Footer.d.ts.map +1 -1
- package/dist/components/Footer/Footer.js +5 -13
- package/dist/components/Footer/index.d.ts +1 -1
- package/dist/components/Footer/index.d.ts.map +1 -1
- package/dist/components/Footer/index.js +1 -1
- package/dist/components/IpAddressInput/IpAddressInput.d.ts +1 -2
- package/dist/components/IpAddressInput/IpAddressInput.d.ts.map +1 -1
- package/dist/components/IpAddressInput/IpAddressInput.js +5 -6
- package/dist/components/IpAddressInput/index.d.ts +2 -2
- package/dist/components/IpAddressInput/index.d.ts.map +1 -1
- package/dist/components/IpAddressInput/index.js +1 -1
- package/dist/components/IpAddressSwitchableInput/IpAddressSwitchableInput.d.ts +1 -2
- package/dist/components/IpAddressSwitchableInput/IpAddressSwitchableInput.d.ts.map +1 -1
- package/dist/components/IpAddressSwitchableInput/IpAddressSwitchableInput.js +3 -2
- package/dist/components/IpAddressSwitchableInput/index.d.ts +2 -2
- package/dist/components/IpAddressSwitchableInput/index.d.ts.map +1 -1
- package/dist/components/IpAddressSwitchableInput/index.js +1 -1
- package/dist/components/LocalizedDatetimePicker/LocalizedDatetimePicker.d.ts +1 -2
- package/dist/components/LocalizedDatetimePicker/LocalizedDatetimePicker.d.ts.map +1 -1
- package/dist/components/LocalizedDatetimePicker/LocalizedDatetimePicker.js +6 -6
- package/dist/components/LocalizedDatetimePicker/index.d.ts +2 -2
- package/dist/components/LocalizedDatetimePicker/index.d.ts.map +1 -1
- package/dist/components/LocalizedDatetimePicker/index.js +1 -1
- package/dist/components/Navigation/NavMenu.d.ts +4 -3
- package/dist/components/Navigation/NavMenu.d.ts.map +1 -1
- package/dist/components/Navigation/NavMenu.js +23 -27
- package/dist/components/Navigation/Navigation.d.ts +1 -2
- package/dist/components/Navigation/Navigation.d.ts.map +1 -1
- package/dist/components/Navigation/Navigation.js +122 -147
- package/dist/components/Navigation/NavigationProps.d.ts +2 -1
- package/dist/components/Navigation/NavigationProps.d.ts.map +1 -1
- package/dist/components/Navigation/index.d.ts +2 -2
- package/dist/components/Navigation/index.d.ts.map +1 -1
- package/dist/components/Navigation/index.js +1 -1
- package/dist/components/NumberRangeInput/NumberRangeInput.d.ts +1 -2
- package/dist/components/NumberRangeInput/NumberRangeInput.d.ts.map +1 -1
- package/dist/components/NumberRangeInput/NumberRangeInput.js +34 -39
- package/dist/components/NumberRangeInput/index.d.ts +2 -2
- package/dist/components/NumberRangeInput/index.d.ts.map +1 -1
- package/dist/components/NumberRangeInput/index.js +1 -1
- package/dist/components/PageWrapper/PageWrapper.d.ts +2 -2
- package/dist/components/PageWrapper/PageWrapper.d.ts.map +1 -1
- package/dist/components/PageWrapper/PageWrapper.js +11 -14
- package/dist/components/PageWrapper/index.d.ts +2 -2
- package/dist/components/PageWrapper/index.d.ts.map +1 -1
- package/dist/components/PageWrapper/index.js +1 -1
- package/dist/components/RichFilterTextField/FilterHistoryMenu.d.ts +1 -2
- package/dist/components/RichFilterTextField/FilterHistoryMenu.d.ts.map +1 -1
- package/dist/components/RichFilterTextField/FilterHistoryMenu.js +17 -31
- package/dist/components/RichFilterTextField/HintOptionsMenu.d.ts +4 -4
- package/dist/components/RichFilterTextField/HintOptionsMenu.d.ts.map +1 -1
- package/dist/components/RichFilterTextField/HintOptionsMenu.js +8 -10
- package/dist/components/RichFilterTextField/RichFilterTextField.d.ts +1 -2
- package/dist/components/RichFilterTextField/RichFilterTextField.d.ts.map +1 -1
- package/dist/components/RichFilterTextField/RichFilterTextField.js +101 -86
- package/dist/components/RichFilterTextField/index.d.ts +2 -2
- package/dist/components/RichFilterTextField/index.d.ts.map +1 -1
- package/dist/components/RichFilterTextField/index.js +1 -1
- package/dist/components/RichFilterTextField/utils.d.ts.map +1 -1
- package/dist/components/RichFilterTextField/utils.js +13 -5
- package/dist/components/SmartTable/RowContent.d.ts +29 -9
- package/dist/components/SmartTable/RowContent.d.ts.map +1 -1
- package/dist/components/SmartTable/RowContent.js +59 -20
- package/dist/components/SmartTable/SmartTable.d.ts +9 -2
- package/dist/components/SmartTable/SmartTable.d.ts.map +1 -1
- package/dist/components/SmartTable/SmartTable.js +97 -109
- package/dist/components/SmartTable/SmartTableProps.d.ts +20 -10
- package/dist/components/SmartTable/SmartTableProps.d.ts.map +1 -1
- package/dist/components/SmartTable/TableHeader.d.ts +1 -2
- package/dist/components/SmartTable/TableHeader.d.ts.map +1 -1
- package/dist/components/SmartTable/TableHeader.js +5 -4
- package/dist/components/SmartTable/index.d.ts +2 -2
- package/dist/components/SmartTable/index.d.ts.map +1 -1
- package/dist/components/SmartTable/index.js +1 -1
- package/dist/components/SortBtn/SortBtn.d.ts +1 -2
- package/dist/components/SortBtn/SortBtn.d.ts.map +1 -1
- package/dist/components/SortBtn/SortBtn.js +3 -2
- package/dist/components/SortBtn/index.d.ts +2 -2
- package/dist/components/SortBtn/index.d.ts.map +1 -1
- package/dist/components/SortBtn/index.js +1 -1
- package/dist/components/SubtaskItem/SubtaskItem.d.ts +1 -2
- package/dist/components/SubtaskItem/SubtaskItem.d.ts.map +1 -1
- package/dist/components/SubtaskItem/SubtaskItem.js +82 -43
- package/dist/components/SubtaskItem/SubtaskItemProps.d.ts +1 -1
- package/dist/components/SubtaskItem/SubtaskItemProps.d.ts.map +1 -1
- package/dist/components/SubtaskItem/index.d.ts +2 -2
- package/dist/components/SubtaskItem/index.d.ts.map +1 -1
- package/dist/components/SubtaskItem/index.js +1 -1
- package/dist/components/TaskLoader/TaskLoader.d.ts +2 -2
- package/dist/components/TaskLoader/TaskLoader.d.ts.map +1 -1
- package/dist/components/TaskLoader/TaskLoader.js +181 -196
- package/dist/components/TaskLoader/TaskLoaderProps.d.ts +1 -0
- package/dist/components/TaskLoader/TaskLoaderProps.d.ts.map +1 -1
- package/dist/components/TaskLoader/index.d.ts +2 -2
- package/dist/components/TaskLoader/index.d.ts.map +1 -1
- package/dist/components/TaskLoader/index.js +1 -1
- package/dist/components/TaskStateDialog/TaskStateDialog.d.ts +1 -2
- package/dist/components/TaskStateDialog/TaskStateDialog.d.ts.map +1 -1
- package/dist/components/TaskStateDialog/TaskStateDialog.js +33 -47
- package/dist/components/TaskStateDialog/TaskStateDialogProps.d.ts +2 -1
- package/dist/components/TaskStateDialog/TaskStateDialogProps.d.ts.map +1 -1
- package/dist/components/TaskStateDialog/index.d.ts +2 -2
- package/dist/components/TaskStateDialog/index.d.ts.map +1 -1
- package/dist/components/TaskStateDialog/index.js +1 -1
- package/dist/components/icons/GenerateAndRunIcon.d.ts +1 -2
- package/dist/components/icons/GenerateAndRunIcon.d.ts.map +1 -1
- package/dist/components/icons/GenerateAndRunIcon.js +6 -23
- package/dist/components/icons/GenerateIcon.d.ts +1 -2
- package/dist/components/icons/GenerateIcon.d.ts.map +1 -1
- package/dist/components/icons/GenerateIcon.js +6 -21
- package/dist/components/icons/IntegerIcon.d.ts +1 -2
- package/dist/components/icons/IntegerIcon.d.ts.map +1 -1
- package/dist/components/icons/IntegerIcon.js +6 -9
- package/dist/components/icons/ProcessingIcon.d.ts +1 -2
- package/dist/components/icons/ProcessingIcon.d.ts.map +1 -1
- package/dist/components/icons/ProcessingIcon.js +2 -12
- package/dist/components/icons/QueueIcon.d.ts +1 -2
- package/dist/components/icons/QueueIcon.d.ts.map +1 -1
- package/dist/components/icons/QueueIcon.js +6 -9
- package/dist/components/icons/RangeIcon.d.ts +1 -2
- package/dist/components/icons/RangeIcon.d.ts.map +1 -1
- package/dist/components/icons/RangeIcon.js +6 -9
- package/dist/components/icons/RunIcon.d.ts +1 -2
- package/dist/components/icons/RunIcon.d.ts.map +1 -1
- package/dist/components/icons/RunIcon.js +6 -12
- package/dist/components/icons/TextModeIcon.d.ts.map +1 -1
- package/dist/components/icons/TextModeIcon.js +2 -6
- package/dist/components/icons/TreeModeIcon.d.ts.map +1 -1
- package/dist/components/icons/TreeModeIcon.js +2 -6
- package/dist/components/icons/index.d.ts +1 -1
- package/dist/components/icons/index.js +1 -1
- package/dist/http.d.ts +2 -2
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +4 -29
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/providers/AirflowProvider.d.ts +10 -8
- package/dist/providers/AirflowProvider.d.ts.map +1 -1
- package/dist/providers/AirflowProvider.js +59 -70
- package/dist/providers/DagStateProvider.d.ts +8 -6
- package/dist/providers/DagStateProvider.d.ts.map +1 -1
- package/dist/providers/DagStateProvider.js +105 -98
- package/dist/providers/SessionProvider.d.ts +2 -2
- package/dist/providers/SessionProvider.d.ts.map +1 -1
- package/dist/providers/SessionProvider.js +15 -8
- package/dist/providers/SnackBarProvider.d.ts +3 -2
- package/dist/providers/SnackBarProvider.d.ts.map +1 -1
- package/dist/providers/SnackBarProvider.js +22 -16
- package/dist/providers/index.d.ts +4 -4
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/index.js +4 -4
- package/dist/types.d.ts +17 -4
- package/dist/types.d.ts.map +1 -1
- package/dist/utils.d.ts +3 -3
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +4 -2
- package/package.json +43 -26
- package/dist/components/SmartTable/RuleRow.d.ts +0 -22
- package/dist/components/SmartTable/RuleRow.d.ts.map +0 -1
- package/dist/components/SmartTable/RuleRow.js +0 -35
|
@@ -1,27 +1,31 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import ArrowDropDownRoundedIcon from "@mui/icons-material/ArrowDropDownRounded";
|
|
3
|
+
import ArrowRightRoundedIcon from "@mui/icons-material/ArrowRightRounded";
|
|
4
|
+
import DarkModeIcon from "@mui/icons-material/DarkMode";
|
|
5
|
+
import HubIcon from "@mui/icons-material/Hub";
|
|
6
|
+
import LightModeIcon from "@mui/icons-material/LightMode";
|
|
7
|
+
import LogoutIcon from "@mui/icons-material/Logout";
|
|
8
|
+
import ManageAccountsIcon from "@mui/icons-material/ManageAccounts";
|
|
9
|
+
import MenuIcon from "@mui/icons-material/Menu";
|
|
10
|
+
import { Button, useMediaQuery } from "@mui/material";
|
|
11
|
+
import { useColorScheme } from "@mui/material/styles";
|
|
2
12
|
import AppBar from "@mui/material/AppBar";
|
|
13
|
+
import Avatar from "@mui/material/Avatar";
|
|
3
14
|
import Box from "@mui/material/Box";
|
|
4
15
|
import Container from "@mui/material/Container";
|
|
5
16
|
import IconButton from "@mui/material/IconButton";
|
|
17
|
+
import ListItemIcon from "@mui/material/ListItemIcon";
|
|
18
|
+
import ListItemText from "@mui/material/ListItemText";
|
|
6
19
|
import Menu from "@mui/material/Menu";
|
|
7
20
|
import MenuItem from "@mui/material/MenuItem";
|
|
21
|
+
import { popoverClasses } from "@mui/material/Popover";
|
|
8
22
|
import Toolbar from "@mui/material/Toolbar";
|
|
9
23
|
import Typography from "@mui/material/Typography";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import LightModeIcon from "@mui/icons-material/LightMode";
|
|
13
|
-
import DarkModeIcon from "@mui/icons-material/DarkMode";
|
|
14
|
-
import HubIcon from "@mui/icons-material/Hub";
|
|
15
|
-
import ManageAccountsIcon from "@mui/icons-material/ManageAccounts";
|
|
16
|
-
import ArrowDropDownRoundedIcon from "@mui/icons-material/ArrowDropDownRounded";
|
|
17
|
-
import ArrowRightRoundedIcon from "@mui/icons-material/ArrowRightRounded";
|
|
18
|
-
import Avatar from "@mui/material/Avatar";
|
|
19
|
-
import ListItemIcon from "@mui/material/ListItemIcon";
|
|
20
|
-
import ListItemText from "@mui/material/ListItemText";
|
|
21
|
-
import { Button, useColorScheme, useMediaQuery } from "@mui/material";
|
|
22
|
-
import { popoverClasses } from "@mui/material/Popover";
|
|
24
|
+
import React from "react";
|
|
25
|
+
import { Link as RouterLink, useLocation } from "react-router";
|
|
23
26
|
import NavMenu from "./NavMenu";
|
|
24
|
-
export default function Navigation({
|
|
27
|
+
export default function Navigation({ additionalControls, username, title, navLinks, logoutPageUrl, defautlUrl, appsUrl, profileUrl, activeTab, withReactRouter, }) {
|
|
28
|
+
const locationRouter = withReactRouter ? useLocation() : undefined;
|
|
25
29
|
const { mode, setMode } = useColorScheme();
|
|
26
30
|
const prefersDarkMode = useMediaQuery("(prefers-color-scheme: dark)");
|
|
27
31
|
const [anchorElNav, setAnchorElNav] = React.useState(null);
|
|
@@ -39,150 +43,121 @@ export default function Navigation({ activeTab, additionalControls, username, ti
|
|
|
39
43
|
const getPages = (sx, anchorOrigin, transformOrigin, endIcon) => {
|
|
40
44
|
return navLinks.map((lnk, idx) => {
|
|
41
45
|
if ("groupName" in lnk) {
|
|
42
|
-
return (
|
|
46
|
+
return (_jsx(NavMenu, { name: lnk.groupName, routes: lnk.links, activeTab: (withReactRouter ? locationRouter?.pathname : activeTab) || "", sx: sx, anchorOrigin: anchorOrigin, transformOrigin: transformOrigin, endIcon: endIcon, withReactRouter: withReactRouter }, idx));
|
|
43
47
|
}
|
|
44
48
|
else {
|
|
45
|
-
|
|
49
|
+
return (_jsx(Button, { component: withReactRouter ? RouterLink : "button", disabled: lnk.url ===
|
|
50
|
+
(withReactRouter ? locationRouter?.pathname : activeTab), to: withReactRouter ? lnk.url : undefined, href: withReactRouter ? undefined : lnk.url, sx: sx, color: "inherit", variant: "text", children: lnk.name }, idx));
|
|
46
51
|
}
|
|
47
52
|
});
|
|
48
53
|
};
|
|
49
54
|
const getMenuItemsPages = (sx, anchorOrigin, transformOrigin, endIcon) => {
|
|
50
55
|
return getPages(sx, anchorOrigin, transformOrigin, endIcon).map((page, idx) => {
|
|
51
|
-
return (
|
|
56
|
+
return (_jsx(MenuItem, { sx: { p: 0 }, onClick: () => setAnchorElNav(null), children: page }, idx));
|
|
52
57
|
});
|
|
53
58
|
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
59
|
+
const handleToggleTheme = () => {
|
|
60
|
+
if (mode === "light")
|
|
61
|
+
setMode("dark");
|
|
62
|
+
else if (mode === "dark")
|
|
63
|
+
setMode("light");
|
|
64
|
+
else {
|
|
65
|
+
if (prefersDarkMode) {
|
|
66
|
+
setMode("light");
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
setMode("dark");
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
return (_jsx(AppBar, { color: "inherit", position: "sticky", style: { top: "0%", zIndex: 1000 }, children: _jsx(Container, { maxWidth: "xl", children: _jsxs(Toolbar, { disableGutters: true, children: [_jsx(Typography, { variant: "h6", component: "a", noWrap: true, href: defautlUrl, sx: {
|
|
74
|
+
mr: 2,
|
|
75
|
+
display: { xs: "none", md: "flex" },
|
|
76
|
+
fontWeight: 700,
|
|
77
|
+
color: "inherit",
|
|
78
|
+
textDecoration: "none",
|
|
79
|
+
}, children: title }), _jsxs(Box, { className: "me-auto", sx: {
|
|
80
|
+
flexGrow: 1,
|
|
81
|
+
display: { xs: "flex", md: "none" },
|
|
82
|
+
marginRight: "auto",
|
|
83
|
+
}, children: [_jsx(IconButton, { size: "large", color: "inherit", onClick: (e) => {
|
|
84
|
+
if (anchorElNav !== e.currentTarget)
|
|
85
|
+
setAnchorElNav(e.currentTarget);
|
|
86
|
+
}, onMouseOver: (e) => {
|
|
87
|
+
if (anchorElNav !== e.currentTarget)
|
|
88
|
+
setAnchorElNav(e.currentTarget);
|
|
89
|
+
}, onMouseLeave: handleCloseElNavHover, children: _jsx(MenuIcon, {}) }), _jsx(Menu, { autoFocus: false, id: "menu-appbar", anchorEl: anchorElNav, anchorOrigin: {
|
|
90
|
+
vertical: "bottom",
|
|
91
|
+
horizontal: "left",
|
|
92
|
+
}, keepMounted: true, transformOrigin: {
|
|
93
|
+
vertical: "top",
|
|
94
|
+
horizontal: "left",
|
|
95
|
+
}, open: Boolean(anchorElNav), onClose: () => setAnchorElNav(null), slotProps: {
|
|
96
|
+
list: {
|
|
97
|
+
onMouseEnter: () => (currentlyHoveringElNav = true),
|
|
98
|
+
onMouseLeave: handleCloseElNavHover,
|
|
99
|
+
sx: { pointerEvents: "auto" },
|
|
100
|
+
},
|
|
101
|
+
}, sx: {
|
|
102
|
+
display: { xs: "block", md: "none" },
|
|
103
|
+
[`&.${popoverClasses.root}`]: { pointerEvents: "none" },
|
|
104
|
+
}, children: getMenuItemsPages({
|
|
105
|
+
textAlign: "center",
|
|
106
|
+
display: "flex",
|
|
107
|
+
justifyContent: "space-between",
|
|
108
|
+
width: "-webkit-fill-available",
|
|
109
|
+
}, {
|
|
110
|
+
vertical: "top",
|
|
111
|
+
horizontal: "right",
|
|
112
|
+
}, {
|
|
113
|
+
vertical: "top",
|
|
114
|
+
horizontal: "left",
|
|
115
|
+
}, _jsx(ArrowRightRoundedIcon, {})) })] }), _jsx(Typography, { variant: "h5", component: "a", noWrap: true, href: defautlUrl, sx: {
|
|
116
|
+
mr: 2,
|
|
117
|
+
display: { xs: "flex", md: "none" },
|
|
118
|
+
flexGrow: 1,
|
|
119
|
+
fontWeight: 700,
|
|
120
|
+
color: "inherit",
|
|
121
|
+
textDecoration: "none",
|
|
122
|
+
}, children: title }), _jsx(Box, { sx: {
|
|
123
|
+
flexGrow: 1,
|
|
124
|
+
display: { xs: "none", md: "flex" },
|
|
125
|
+
gap: ".3rem",
|
|
126
|
+
}, children: getPages({ display: "flex" }, {
|
|
78
127
|
vertical: "bottom",
|
|
79
128
|
horizontal: "left",
|
|
80
|
-
},
|
|
129
|
+
}, {
|
|
81
130
|
vertical: "top",
|
|
82
131
|
horizontal: "left",
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
display: { xs: "none", md: "flex" },
|
|
113
|
-
gap: ".3rem",
|
|
114
|
-
} }, getPages({ display: "flex" }, {
|
|
115
|
-
vertical: "bottom",
|
|
116
|
-
horizontal: "left",
|
|
117
|
-
}, {
|
|
118
|
-
vertical: "top",
|
|
119
|
-
horizontal: "left",
|
|
120
|
-
}, React.createElement(ArrowDropDownRoundedIcon, null))),
|
|
121
|
-
React.createElement(Box, { sx: { flexGrow: 0 } },
|
|
122
|
-
additionalControls &&
|
|
123
|
-
additionalControls.map((control, idx) => (React.createElement(IconButton, { className: "position-relative", key: idx,
|
|
124
|
-
// @ts-expect-error такой пропс на самом деле есть
|
|
125
|
-
href: control.href, color: control.color, title: control.title, onClick: (e) => control.onClick(`${e.clientX}px ${e.clientY}px`), disabled: control.disabled, size: "large" }, control.icon))),
|
|
126
|
-
React.createElement(IconButton, { title: "\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0442\u0435\u043C\u0443", onClick: (_) => {
|
|
127
|
-
if (mode === "light")
|
|
128
|
-
setMode("dark");
|
|
129
|
-
else if (mode === "dark")
|
|
130
|
-
setMode("light");
|
|
131
|
-
else {
|
|
132
|
-
if (prefersDarkMode) {
|
|
133
|
-
setMode("light");
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
setMode("dark");
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
} }, mode === "light" ? React.createElement(LightModeIcon, null) : React.createElement(DarkModeIcon, null)),
|
|
140
|
-
appsUrl && (React.createElement(IconButton, { title: "\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F\u043C \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F", href: new URL(appsUrl, location.origin).href },
|
|
141
|
-
React.createElement(HubIcon, null))),
|
|
142
|
-
React.createElement(IconButton, { title: "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F", onClick: (e) => setAvatarAnchorEl(e.currentTarget), size: "small", sx: { ml: 2 } },
|
|
143
|
-
React.createElement(Avatar, { sx: { width: 32, height: 32 } }, username.substring(0, 1).toUpperCase())),
|
|
144
|
-
React.createElement(Menu, { anchorEl: avatarAnchorEl, open: openAvatar, onClose: () => setAvatarAnchorEl(null), onClick: () => setAvatarAnchorEl(null), slotProps: {
|
|
145
|
-
paper: {
|
|
146
|
-
elevation: 0,
|
|
147
|
-
sx: {
|
|
148
|
-
overflow: "visible",
|
|
149
|
-
filter: "drop-shadow(0px 2px 8px rgba(0,0,0,0.32))",
|
|
150
|
-
mt: 1.5,
|
|
151
|
-
"& .MuiAvatar-root": {
|
|
152
|
-
width: 32,
|
|
153
|
-
height: 32,
|
|
154
|
-
ml: -0.5,
|
|
155
|
-
mr: 1,
|
|
156
|
-
},
|
|
157
|
-
"&::before": {
|
|
158
|
-
content: '""',
|
|
159
|
-
display: "block",
|
|
160
|
-
position: "absolute",
|
|
161
|
-
top: 0,
|
|
162
|
-
right: 14,
|
|
163
|
-
width: 10,
|
|
164
|
-
height: 10,
|
|
165
|
-
bgcolor: "background.paper",
|
|
166
|
-
transform: "translateY(-50%) rotate(45deg)",
|
|
167
|
-
zIndex: 0,
|
|
132
|
+
}, _jsx(ArrowDropDownRoundedIcon, {})) }), _jsxs(Box, { sx: { flexGrow: 0 }, children: [additionalControls &&
|
|
133
|
+
additionalControls.map((control, idx) => (_jsx(IconButton, { className: "position-relative",
|
|
134
|
+
// @ts-expect-error такой пропс на самом деле есть
|
|
135
|
+
href: control.href, color: control.color, title: control.title, onClick: (e) => control.onClick(`${e.clientX}px ${e.clientY}px`), disabled: control.disabled, size: "large", children: control.icon }, idx))), _jsx(IconButton, { title: "\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0442\u0435\u043C\u0443", onClick: handleToggleTheme, children: mode === "light" ? _jsx(LightModeIcon, {}) : _jsx(DarkModeIcon, {}) }), appsUrl && (_jsx(IconButton, { title: "\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F\u043C \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F", href: new URL(appsUrl, location.origin).href, children: _jsx(HubIcon, {}) })), _jsx(IconButton, { title: "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F", onClick: (e) => setAvatarAnchorEl(e.currentTarget), size: "small", sx: { ml: 2 }, children: _jsx(Avatar, { sx: { width: 32, height: 32 }, children: username.substring(0, 1).toUpperCase() }) }), _jsxs(Menu, { anchorEl: avatarAnchorEl, open: openAvatar, onClose: () => setAvatarAnchorEl(null), onClick: () => setAvatarAnchorEl(null), slotProps: {
|
|
136
|
+
paper: {
|
|
137
|
+
elevation: 0,
|
|
138
|
+
sx: {
|
|
139
|
+
overflow: "visible",
|
|
140
|
+
filter: "drop-shadow(0px 2px 8px rgba(0,0,0,0.32))",
|
|
141
|
+
mt: 1.5,
|
|
142
|
+
"& .MuiAvatar-root": {
|
|
143
|
+
width: 32,
|
|
144
|
+
height: 32,
|
|
145
|
+
ml: -0.5,
|
|
146
|
+
mr: 1,
|
|
147
|
+
},
|
|
148
|
+
"&::before": {
|
|
149
|
+
content: '""',
|
|
150
|
+
display: "block",
|
|
151
|
+
position: "absolute",
|
|
152
|
+
top: 0,
|
|
153
|
+
right: 14,
|
|
154
|
+
width: 10,
|
|
155
|
+
height: 10,
|
|
156
|
+
bgcolor: "background.paper",
|
|
157
|
+
transform: "translateY(-50%) rotate(45deg)",
|
|
158
|
+
zIndex: 0,
|
|
159
|
+
},
|
|
160
|
+
},
|
|
168
161
|
},
|
|
169
|
-
},
|
|
170
|
-
},
|
|
171
|
-
}, transformOrigin: { horizontal: "right", vertical: "top" }, anchorOrigin: { horizontal: "right", vertical: "bottom" } },
|
|
172
|
-
React.createElement(MenuItem, { sx: { pointerEvents: "none" } },
|
|
173
|
-
React.createElement(Avatar, null),
|
|
174
|
-
" ",
|
|
175
|
-
username),
|
|
176
|
-
profileUrl && (React.createElement(MenuItem, { href: new URL(profileUrl, location.origin).href, component: "a" },
|
|
177
|
-
React.createElement(ListItemIcon, null,
|
|
178
|
-
React.createElement(ManageAccountsIcon, { fontSize: "small" })),
|
|
179
|
-
React.createElement(ListItemText, null, "\u0414\u0430\u043D\u043D\u044B\u0435 \u043F\u0440\u043E\u0444\u0438\u043B\u044F"))),
|
|
180
|
-
appsUrl && (React.createElement(MenuItem, { href: new URL(appsUrl, location.origin).href, component: "a" },
|
|
181
|
-
React.createElement(ListItemIcon, null,
|
|
182
|
-
React.createElement(HubIcon, { fontSize: "small" })),
|
|
183
|
-
React.createElement(ListItemText, null, "\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F"))),
|
|
184
|
-
React.createElement(MenuItem, { href: logoutPageUrl, component: "a" },
|
|
185
|
-
React.createElement(ListItemIcon, null,
|
|
186
|
-
React.createElement(LogoutIcon, { fontSize: "small" })),
|
|
187
|
-
React.createElement(ListItemText, null, "\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u0441\u0438\u0441\u0442\u0435\u043C\u044B"))))))));
|
|
162
|
+
}, transformOrigin: { horizontal: "right", vertical: "top" }, anchorOrigin: { horizontal: "right", vertical: "bottom" }, children: [_jsxs(MenuItem, { sx: { pointerEvents: "none" }, children: [_jsx(Avatar, {}), " ", username] }), profileUrl && (_jsxs(MenuItem, { href: new URL(profileUrl, location.origin).href, component: "a", children: [_jsx(ListItemIcon, { children: _jsx(ManageAccountsIcon, { fontSize: "small" }) }), _jsx(ListItemText, { children: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043F\u0440\u043E\u0444\u0438\u043B\u044F" })] })), appsUrl && (_jsxs(MenuItem, { href: new URL(appsUrl, location.origin).href, component: "a", children: [_jsx(ListItemIcon, { children: _jsx(HubIcon, { fontSize: "small" }) }), _jsx(ListItemText, { children: "\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F" })] })), _jsxs(MenuItem, { to: withReactRouter ? logoutPageUrl : undefined, href: withReactRouter ? undefined : logoutPageUrl, component: withReactRouter ? RouterLink : "a", children: [_jsx(ListItemIcon, { children: _jsx(LogoutIcon, { fontSize: "small" }) }), _jsx(ListItemText, { children: "\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u0441\u0438\u0441\u0442\u0435\u043C\u044B" })] })] })] })] }) }) }));
|
|
188
163
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationProps.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/NavigationProps.ts"],"names":[],"mappings":"AAAA,UAAU,OAAO;IACf,KAAK,EACD,SAAS,GACT,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,MAAM,GACN,SAAS,GACT,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EACD,IAAI,GACJ,IAAI,GACJ,QAAQ,GACR,aAAa,GACb,IAAI,GACJ,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;IACV,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,UAAU,IAAI;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,eAAe;IACtC,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"NavigationProps.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/NavigationProps.ts"],"names":[],"mappings":"AAAA,UAAU,OAAO;IACf,KAAK,EACD,SAAS,GACT,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,MAAM,GACN,SAAS,GACT,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EACD,IAAI,GACJ,IAAI,GACJ,QAAQ,GACR,aAAa,GACb,IAAI,GACJ,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;IACV,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,UAAU,IAAI;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,eAAe;IACtC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,OAAO,EAAE,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CACN;QACE,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,EAAE,IAAI,EAAE,CAAC;KACf,GACD,IAAI,CACP,EAAE,CAAC;CACL"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default } from "./Navigation";
|
|
2
1
|
export * from "./Navigation";
|
|
3
|
-
export { default
|
|
2
|
+
export { default } from "./Navigation";
|
|
4
3
|
export * from "./NavigationProps";
|
|
4
|
+
export { type default as NavigationProps } from "./NavigationProps";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,KAAK,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import NumberRangeInputProps from "./NumberRangeInputProps";
|
|
3
|
-
declare const NumberRangeInput: ({ from: _from, to: _to, variant, sx, placeholder, size, onRangeSet, }: NumberRangeInputProps) =>
|
|
2
|
+
declare const NumberRangeInput: ({ from: _from, to: _to, variant, sx, placeholder, size, onRangeSet, }: NumberRangeInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default NumberRangeInput;
|
|
5
4
|
//# sourceMappingURL=NumberRangeInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberRangeInput.d.ts","sourceRoot":"","sources":["../../../src/components/NumberRangeInput/NumberRangeInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NumberRangeInput.d.ts","sourceRoot":"","sources":["../../../src/components/NumberRangeInput/NumberRangeInput.tsx"],"names":[],"mappings":"AAMA,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAE5D,QAAA,MAAM,gBAAgB,GAAI,uEAQvB,qBAAqB,4CAgGvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import ClearIcon from "@mui/icons-material/Clear";
|
|
3
|
+
import { Stack } from "@mui/material";
|
|
2
4
|
import IconButton from "@mui/material/IconButton";
|
|
3
5
|
import Popover from "@mui/material/Popover";
|
|
4
6
|
import TextField from "@mui/material/TextField";
|
|
5
|
-
import
|
|
6
|
-
import { Stack } from "@mui/material";
|
|
7
|
+
import { useState } from "react";
|
|
7
8
|
const NumberRangeInput = ({ from: _from, to: _to, variant, sx, placeholder, size, onRangeSet, }) => {
|
|
8
9
|
const [anchorEl, setAnchorEl] = useState(null);
|
|
9
10
|
const [from, setFrom] = useState(_from);
|
|
@@ -11,41 +12,35 @@ const NumberRangeInput = ({ from: _from, to: _to, variant, sx, placeholder, size
|
|
|
11
12
|
const rangeText = (from != null && to != null && `(${from}, ${to})`) || "";
|
|
12
13
|
const open = Boolean(anchorEl);
|
|
13
14
|
const validRange = from && to && from !== to && from < to;
|
|
14
|
-
return (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
onRangeSet(Number(e.target.value), to);
|
|
45
|
-
}, size: "small", type: "number", variant: "standard" }),
|
|
46
|
-
React.createElement(TextField, { required: true, label: "\u0414\u043E", value: to, error: !validRange, onChange: (e) => {
|
|
47
|
-
setTo(Number(e.target.value));
|
|
48
|
-
onRangeSet(from, Number(e.target.value));
|
|
49
|
-
}, size: "small", type: "number", variant: "standard" })))));
|
|
15
|
+
return (_jsxs(_Fragment, { children: [_jsx(TextField, { size: size, variant: variant || "standard", placeholder: open ? rangeText || "" : "", label: placeholder, title: validRange ? rangeText : "Некорректно введён диапазон", value: rangeText, onClick: (e) => setAnchorEl(e.currentTarget), error: !validRange, sx: sx, required: true, slotProps: {
|
|
16
|
+
input: {
|
|
17
|
+
readOnly: true,
|
|
18
|
+
endAdornment: rangeText.length > 0 ? (_jsx(IconButton, { onClick: (e) => {
|
|
19
|
+
setFrom(null);
|
|
20
|
+
setTo(null);
|
|
21
|
+
onRangeSet(null, null);
|
|
22
|
+
e.stopPropagation();
|
|
23
|
+
}, children: _jsx(ClearIcon, { fontSize: "small" }) })) : null,
|
|
24
|
+
},
|
|
25
|
+
inputLabel: {
|
|
26
|
+
shrink: open || rangeText.length > 0, // позволяет метке находиться сверху при поиске, при этом выбранное значение будет в заполнителе
|
|
27
|
+
},
|
|
28
|
+
} }), _jsx(Popover, { open: open, anchorEl: anchorEl, onClose: () => setAnchorEl(null), anchorOrigin: {
|
|
29
|
+
vertical: "bottom",
|
|
30
|
+
horizontal: "left",
|
|
31
|
+
}, transformOrigin: {
|
|
32
|
+
vertical: "top",
|
|
33
|
+
horizontal: "left",
|
|
34
|
+
}, slotProps: {
|
|
35
|
+
paper: {
|
|
36
|
+
sx: { minWidth: "30rem" },
|
|
37
|
+
},
|
|
38
|
+
}, children: _jsxs(Stack, { direction: "row", sx: { m: 2 }, spacing: 2, children: [_jsx(TextField, { required: true, label: "\u041E\u0442", value: from, error: !validRange, onChange: (e) => {
|
|
39
|
+
setFrom(Number(e.target.value));
|
|
40
|
+
onRangeSet(Number(e.target.value), to);
|
|
41
|
+
}, size: "small", type: "number", variant: "standard" }), _jsx(TextField, { required: true, label: "\u0414\u043E", value: to, error: !validRange, onChange: (e) => {
|
|
42
|
+
setTo(Number(e.target.value));
|
|
43
|
+
onRangeSet(from, Number(e.target.value));
|
|
44
|
+
}, size: "small", type: "number", variant: "standard" })] }) })] }));
|
|
50
45
|
};
|
|
51
46
|
export default NumberRangeInput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default } from "./NumberRangeInput";
|
|
2
1
|
export * from "./NumberRangeInput";
|
|
3
|
-
export { default
|
|
2
|
+
export { default } from "./NumberRangeInput";
|
|
4
3
|
export * from "./NumberRangeInputProps";
|
|
4
|
+
export { type default as NumberRangeInputProps } from "./NumberRangeInputProps";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NumberRangeInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NumberRangeInput/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,KAAK,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import PageWrapperProps from "./PageWrapperProps";
|
|
3
|
-
|
|
2
|
+
declare const PageWrapper: ({ children, version, appName, desc, ...props }: PageWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default PageWrapper;
|
|
4
4
|
//# sourceMappingURL=PageWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/PageWrapper/PageWrapper.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PageWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/PageWrapper/PageWrapper.tsx"],"names":[],"mappings":"AAIA,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AASlD,QAAA,MAAM,WAAW,GAAI,gDAMlB,gBAAgB,4CAMlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { styled } from "@mui/material";
|
|
2
3
|
import Stack from "@mui/material/Stack";
|
|
3
|
-
import Navigation from "../Navigation/Navigation";
|
|
4
4
|
import Footer from "../Footer/Footer";
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
children,
|
|
15
|
-
React.createElement(Footer, { version: version, appName: appName, desc: desc })));
|
|
16
|
-
}
|
|
5
|
+
import Navigation from "../Navigation/Navigation";
|
|
6
|
+
const StackWithDefaultBgColor = styled(Stack)(({ theme }) => ({
|
|
7
|
+
backgroundColor: theme.vars?.palette.background.default,
|
|
8
|
+
justifyContent: "space-between",
|
|
9
|
+
minHeight: "100vh",
|
|
10
|
+
position: "relative",
|
|
11
|
+
}));
|
|
12
|
+
const PageWrapper = ({ children, version, appName, desc, ...props }) => (_jsxs(StackWithDefaultBgColor, { direction: "column", children: [_jsx(Navigation, { ...props }), children, _jsx(Footer, { version: version, appName: appName, desc: desc })] }));
|
|
13
|
+
export default PageWrapper;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default } from "./PageWrapper";
|
|
2
1
|
export * from "./PageWrapper";
|
|
3
|
-
export { default
|
|
2
|
+
export { default } from "./PageWrapper";
|
|
4
3
|
export * from "./PageWrapperProps";
|
|
4
|
+
export { type default as PageWrapperProps } from "./PageWrapperProps";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PageWrapper/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PageWrapper/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,KAAK,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
declare const FilterHistoryMenu: ({ searchHist, onChange, onCopy, }: {
|
|
3
2
|
searchHist: string[];
|
|
4
3
|
onChange(text: string, idx: number): void;
|
|
5
4
|
onCopy(): void;
|
|
6
|
-
}) =>
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export default FilterHistoryMenu;
|
|
8
7
|
//# sourceMappingURL=FilterHistoryMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterHistoryMenu.d.ts","sourceRoot":"","sources":["../../../src/components/RichFilterTextField/FilterHistoryMenu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FilterHistoryMenu.d.ts","sourceRoot":"","sources":["../../../src/components/RichFilterTextField/FilterHistoryMenu.tsx"],"names":[],"mappings":"AAaA,QAAA,MAAM,iBAAiB,GAAI,mCAIxB;IACD,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,MAAM,IAAI,IAAI,CAAC;CAChB,4CA2DA,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|