@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,14 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import "moment/locale/ru";
|
|
4
|
-
import IconButton from "@mui/material/IconButton";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import ClearIcon from "@mui/icons-material/Clear";
|
|
5
3
|
import DateRangeIcon from "@mui/icons-material/DateRange";
|
|
4
|
+
import { Skeleton, Stack } from "@mui/material";
|
|
5
|
+
import IconButton from "@mui/material/IconButton";
|
|
6
6
|
import Popover from "@mui/material/Popover";
|
|
7
7
|
import TextField from "@mui/material/TextField";
|
|
8
|
-
import
|
|
9
|
-
|
|
8
|
+
import moment from "moment-timezone";
|
|
9
|
+
import "moment/locale/ru";
|
|
10
|
+
import { lazy, Suspense, useRef, useState } from "react";
|
|
10
11
|
import { prettyDatetime } from "../../utils";
|
|
11
|
-
|
|
12
|
+
const DateTimeRangePicker = lazy(() => import("../DateTimeRangePicker/DateTimeRangePicker"));
|
|
12
13
|
/**
|
|
13
14
|
* Компонент выбора диапазона дат и времени.
|
|
14
15
|
*
|
|
@@ -40,41 +41,34 @@ export default function DatetimeRangeInput({ onDateRangeSet, from, to, variant,
|
|
|
40
41
|
toDateTime &&
|
|
41
42
|
fromDatetime !== toDateTime &&
|
|
42
43
|
moment(fromDatetime) < moment(toDateTime);
|
|
43
|
-
return (
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
React.createElement(DateTimeRangePicker, { required: required, disableFuture: true, disabled: disabled, fromDatetime: fromDatetime, toDateTime: toDateTime, onStartDateSet: (s) => {
|
|
74
|
-
setFromDatetime(s);
|
|
75
|
-
onDateRangeSet(s, toDateTime);
|
|
76
|
-
}, onEndDateSet: (e) => {
|
|
77
|
-
setToDatetime(e);
|
|
78
|
-
onDateRangeSet(fromDatetime, e);
|
|
79
|
-
} })))));
|
|
44
|
+
return (_jsxs(_Fragment, { children: [_jsx(TextField, { size: size, variant: variant || "standard", disabled: disabled, required: required, placeholder: variant === "outlined" ? undefined : placeholder, label: variant === "outlined" ? placeholder : undefined, slotProps: {
|
|
45
|
+
input: {
|
|
46
|
+
startAdornment: _jsx(DateRangeIcon, {}),
|
|
47
|
+
readOnly: true,
|
|
48
|
+
endAdornment: datetimeRangeText.length > 0 ? (_jsx(IconButton, { onClick: (e) => {
|
|
49
|
+
setFromDatetime("");
|
|
50
|
+
setToDatetime("");
|
|
51
|
+
onDateRangeSet("", "");
|
|
52
|
+
e.stopPropagation();
|
|
53
|
+
}, children: _jsx(ClearIcon, { fontSize: "small" }) })) : null,
|
|
54
|
+
},
|
|
55
|
+
}, error: required ? !rangeValid : false, title: required && !rangeValid
|
|
56
|
+
? "Некорректно введён диапазон дат"
|
|
57
|
+
: datetimeRangeText, value: datetimeRangeText, ref: dateRangePickerAnchor, onClick: () => setDatetimeRangePickerOpen(true), sx: sx }), _jsx(Popover, { open: datetimeRangePickerOpen, anchorEl: dateRangePickerAnchor.current, onClose: () => setDatetimeRangePickerOpen(false), anchorOrigin: {
|
|
58
|
+
vertical: "bottom",
|
|
59
|
+
horizontal: "left",
|
|
60
|
+
}, transformOrigin: {
|
|
61
|
+
vertical: "top",
|
|
62
|
+
horizontal: "left",
|
|
63
|
+
}, slotProps: {
|
|
64
|
+
paper: {
|
|
65
|
+
sx: { minWidth: "30rem" },
|
|
66
|
+
},
|
|
67
|
+
}, children: _jsx(Suspense, { fallback: _jsxs(Stack, { direction: "row", spacing: 2, sx: { m: 1 }, children: [_jsx(Skeleton, { variant: "rounded", width: 231, height: 32, animation: "wave" }), _jsx(Skeleton, { variant: "rounded", width: 231, height: 32, animation: "wave" })] }), children: _jsx(DateTimeRangePicker, { required: required, disableFuture: true, disabled: disabled, fromDatetime: fromDatetime, toDateTime: toDateTime, onStartDateSet: (s) => {
|
|
68
|
+
setFromDatetime(s);
|
|
69
|
+
onDateRangeSet(s, toDateTime);
|
|
70
|
+
}, onEndDateSet: (e) => {
|
|
71
|
+
setToDatetime(e);
|
|
72
|
+
onDateRangeSet(fromDatetime, e);
|
|
73
|
+
} }) }) })] }));
|
|
80
74
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default } from "./DatetimeRangeInput";
|
|
2
1
|
export * from "./DatetimeRangeInput";
|
|
3
|
-
export { default
|
|
2
|
+
export { default } from "./DatetimeRangeInput";
|
|
4
3
|
export * from "./DatetimeRangeInputProps";
|
|
4
|
+
export { type default as DatetimeRangeInputProps } from "./DatetimeRangeInputProps";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DatetimeRangeInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DatetimeRangeInput/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,KAAK,OAAO,IAAI,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,OAAO,EACP,OAAO,EACP,IAAI,GACL,EAAE;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,2CAsBA"}
|
|
@@ -1,22 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Typography from "@mui/material/Typography";
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
3
2
|
import { useTheme } from "@mui/material";
|
|
3
|
+
import Typography from "@mui/material/Typography";
|
|
4
4
|
export default function Footer({ version, appName, desc, }) {
|
|
5
5
|
const theme = useTheme();
|
|
6
|
-
return (
|
|
6
|
+
return (_jsx("footer", { style: {
|
|
7
7
|
padding: "0.5rem 1rem",
|
|
8
8
|
display: "flex",
|
|
9
9
|
justifyContent: "space-between",
|
|
10
10
|
alignItems: "center",
|
|
11
11
|
flexWrap: "wrap",
|
|
12
|
-
boxShadow: theme.shadows[5],
|
|
13
|
-
} },
|
|
14
|
-
React.createElement(Typography, { sx: { marginLeft: "auto", fontSize: "1rem" } },
|
|
15
|
-
"\u00A9",
|
|
16
|
-
React.createElement("a", { target: "_blank", href: "" },
|
|
17
|
-
appName,
|
|
18
|
-
" ",
|
|
19
|
-
version),
|
|
20
|
-
" ",
|
|
21
|
-
desc && `— ${desc}.`)));
|
|
12
|
+
boxShadow: theme.vars?.shadows[5] || theme.shadows[5],
|
|
13
|
+
}, children: _jsxs(Typography, { sx: { marginLeft: "auto", fontSize: "1rem" }, children: ["\u00A9", _jsxs("a", { target: "_blank", href: "", children: [appName, " ", version] }), " ", desc && `— ${desc}.`] }) }));
|
|
22
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Footer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Footer/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import IpAddressInputProps from "./IpAddressInputProps";
|
|
3
|
-
declare const IpAddressInput: ({ value, ipV, variant, label, size, disabled, required, startAdorment, onChange, }: IpAddressInputProps) =>
|
|
2
|
+
declare const IpAddressInput: ({ value, ipV, variant, label, size, disabled, required, startAdorment, onChange, }: IpAddressInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default IpAddressInput;
|
|
5
4
|
//# sourceMappingURL=IpAddressInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IpAddressInput.d.ts","sourceRoot":"","sources":["../../../src/components/IpAddressInput/IpAddressInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IpAddressInput.d.ts","sourceRoot":"","sources":["../../../src/components/IpAddressInput/IpAddressInput.tsx"],"names":[],"mappings":"AAMA,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AA4BxD,QAAA,MAAM,cAAc,GAAI,oFAUrB,mBAAmB,4CAiCrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { InputAdornment } from "@mui/material";
|
|
2
3
|
import FormControl from "@mui/material/FormControl";
|
|
3
4
|
import InputLabel from "@mui/material/InputLabel";
|
|
4
5
|
import OutlinedInput from "@mui/material/OutlinedInput";
|
|
6
|
+
import React from "react";
|
|
5
7
|
import { IMaskInput } from "react-imask";
|
|
6
|
-
import { InputAdornment } from "@mui/material";
|
|
7
8
|
const CustomIpMask = React.forwardRef(function TextMaskCustom(props, ref) {
|
|
8
9
|
const { onChange, ipV, ...other } = props;
|
|
9
|
-
return (
|
|
10
|
+
return (_jsx(IMaskInput, { ...other, mask: ipV === "6"
|
|
10
11
|
? "#[###]:#[###]:#[###]:#[###]:#[###]:#[###]:#[###]:#[###]"
|
|
11
12
|
: "0[00].0[00].0[00].0[00]", definitions: { "#": /[0-9a-fA-F]/ }, inputRef: ref, onAccept: (value) => onChange({ target: { name: props.name, value } }), overwrite: true }));
|
|
12
13
|
});
|
|
@@ -14,8 +15,6 @@ const IpAddressInput = ({ value, ipV, variant, label, size, disabled, required,
|
|
|
14
15
|
const ipRegex = ipV === "6"
|
|
15
16
|
? /(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))/
|
|
16
17
|
: /^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$/;
|
|
17
|
-
return (
|
|
18
|
-
React.createElement(InputLabel, { htmlFor: "formatted-text-mask-input" }, label),
|
|
19
|
-
React.createElement(OutlinedInput, { autoComplete: "off", title: !ipRegex.test(value) ? "IP-адрес не корректный" : "", value: value, label: label, onChange: (e) => onChange(e.target.value), name: "ipmask", id: "formatted-text-mask-input", inputComponent: CustomIpMask, inputProps: { ipV: ipV }, startAdornment: startAdorment && (React.createElement(InputAdornment, { position: "start" }, startAdorment)) })));
|
|
18
|
+
return (_jsxs(FormControl, { required: required, disabled: disabled, size: size || "medium", variant: variant || "outlined", error: !ipRegex.test(value), sx: { width: ipV === "6" ? "28rem" : "14rem" }, children: [_jsx(InputLabel, { htmlFor: "formatted-text-mask-input", children: label }), _jsx(OutlinedInput, { autoComplete: "off", title: !ipRegex.test(value) ? "IP-адрес не корректный" : "", value: value, label: label, onChange: (e) => onChange(e.target.value), name: "ipmask", id: "formatted-text-mask-input", inputComponent: CustomIpMask, inputProps: { ipV: ipV }, startAdornment: startAdorment && (_jsx(InputAdornment, { position: "start", children: startAdorment })) })] }));
|
|
20
19
|
};
|
|
21
20
|
export default IpAddressInput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default } from "./IpAddressInput";
|
|
2
1
|
export * from "./IpAddressInput";
|
|
3
|
-
export { default
|
|
2
|
+
export { default } from "./IpAddressInput";
|
|
4
3
|
export * from "./IpAddressInputProps";
|
|
4
|
+
export { type default as IpAddressInputProps } from "./IpAddressInputProps";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IpAddressInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IpAddressInput/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,KAAK,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import IpAddressSwitchableInputProps from "./IpAddressSwitchableInputProps";
|
|
3
|
-
declare const IpAddressSwitchableInput: ({ ...rest }: IpAddressSwitchableInputProps) =>
|
|
2
|
+
declare const IpAddressSwitchableInput: ({ ...rest }: IpAddressSwitchableInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default IpAddressSwitchableInput;
|
|
5
4
|
//# sourceMappingURL=IpAddressSwitchableInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IpAddressSwitchableInput.d.ts","sourceRoot":"","sources":["../../../src/components/IpAddressSwitchableInput/IpAddressSwitchableInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IpAddressSwitchableInput.d.ts","sourceRoot":"","sources":["../../../src/components/IpAddressSwitchableInput/IpAddressSwitchableInput.tsx"],"names":[],"mappings":"AAGA,OAAO,6BAA6B,MAAM,iCAAiC,CAAC;AAE5E,QAAA,MAAM,wBAAwB,GAAI,aAE/B,6BAA6B,4CAyB/B,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from "@mui/material";
|
|
1
3
|
import React from "react";
|
|
2
4
|
import IpAddressInput from "../IpAddressInput/IpAddressInput";
|
|
3
|
-
import { Button } from "@mui/material";
|
|
4
5
|
const IpAddressSwitchableInput = ({ ...rest }) => {
|
|
5
6
|
const bestMode = /(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))/.test(rest.value)
|
|
6
7
|
? "6"
|
|
7
8
|
: "4";
|
|
8
9
|
const [mode, setMode] = React.useState(bestMode);
|
|
9
|
-
return (
|
|
10
|
+
return (_jsx(IpAddressInput, { ...rest, ipV: mode, startAdorment: _jsx(Button, { title: "\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0432\u0435\u0440\u0441\u0438\u044E IP-\u0430\u0434\u0440\u0435\u0441\u0430", variant: "text", sx: { textTransform: "none" }, onClick: () => setMode(mode === "6" ? "4" : "6"), children: mode === "6" ? "IPv6" : "IPv4" }) }));
|
|
10
11
|
};
|
|
11
12
|
export default IpAddressSwitchableInput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default } from "./IpAddressSwitchableInput";
|
|
2
1
|
export * from "./IpAddressSwitchableInput";
|
|
3
|
-
export { default
|
|
2
|
+
export { default } from "./IpAddressSwitchableInput";
|
|
4
3
|
export * from "./IpAddressSwitchableInputProps";
|
|
4
|
+
export { type default as IpAddressSwitchableInputProps } from "./IpAddressSwitchableInputProps";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IpAddressSwitchableInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IpAddressSwitchableInput/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,cAAc,iCAAiC,CAAC;AAChD,OAAO,EAAE,KAAK,OAAO,IAAI,6BAA6B,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import "moment/locale/ru";
|
|
3
2
|
import LocalizedDatetimePickerProps from "./LocalizedDatetimePickerProps";
|
|
4
|
-
export default function LocalizedDateTimePicker({ disableFuture, disabled, value, required, variant, size, onChange, }: LocalizedDatetimePickerProps):
|
|
3
|
+
export default function LocalizedDateTimePicker({ disableFuture, disabled, value, required, variant, size, onChange, }: LocalizedDatetimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
//# sourceMappingURL=LocalizedDatetimePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalizedDatetimePicker.d.ts","sourceRoot":"","sources":["../../../src/components/LocalizedDatetimePicker/LocalizedDatetimePicker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LocalizedDatetimePicker.d.ts","sourceRoot":"","sources":["../../../src/components/LocalizedDatetimePicker/LocalizedDatetimePicker.tsx"],"names":[],"mappings":"AAMA,OAAO,kBAAkB,CAAC;AAG1B,OAAO,4BAA4B,MAAM,gCAAgC,CAAC;AAE1E,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,EAC9C,aAAa,EACb,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,QAAQ,GACT,EAAE,4BAA4B,2CA6C9B"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import moment from "moment-timezone";
|
|
3
|
-
import "moment/locale/ru";
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
2
|
import { DesktopDateTimePicker, LocalizationProvider, } from "@mui/x-date-pickers";
|
|
5
3
|
import { AdapterMoment } from "@mui/x-date-pickers/AdapterMoment";
|
|
4
|
+
import moment from "moment-timezone";
|
|
5
|
+
import "moment/locale/ru";
|
|
6
|
+
import { useState } from "react";
|
|
6
7
|
import { useDebounce } from "../../utils";
|
|
7
8
|
export default function LocalizedDateTimePicker({ disableFuture, disabled, value, required, variant, size, onChange, }) {
|
|
8
9
|
const [open, setOpen] = useState(false);
|
|
9
10
|
const datetime = value?.length > 0 ? moment(value) : null;
|
|
10
|
-
return (
|
|
11
|
-
React.createElement(DesktopDateTimePicker, { disabled: disabled, open: open, reduceAnimations: true, onChange: useDebounce((v, _c) => {
|
|
11
|
+
return (_jsx(LocalizationProvider, { dateAdapter: AdapterMoment, adapterLocale: "ru", dateLibInstance: moment, children: _jsx(DesktopDateTimePicker, { disabled: disabled, open: open, reduceAnimations: true, onChange: useDebounce((v, _c) => {
|
|
12
12
|
onChange((v && v.toISOString(true)) || "");
|
|
13
13
|
}, 200), disableFuture: disableFuture, views: ["year", "month", "day", "hours", "minutes", "seconds"], timezone: "Europe/Moscow", ampm: false, ampmInClock: false, value: datetime, timeSteps: { hours: 1, minutes: 1, seconds: 1 }, slotProps: {
|
|
14
14
|
field: {
|
|
@@ -25,5 +25,5 @@ export default function LocalizedDateTimePicker({ disableFuture, disabled, value
|
|
|
25
25
|
position: "start",
|
|
26
26
|
onClick: () => setOpen(true),
|
|
27
27
|
},
|
|
28
|
-
}, onClose: () => setOpen(false) })));
|
|
28
|
+
}, onClose: () => setOpen(false) }) }));
|
|
29
29
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default } from "./LocalizedDatetimePicker";
|
|
2
1
|
export * from "./LocalizedDatetimePicker";
|
|
3
|
-
export { default
|
|
2
|
+
export { default } from "./LocalizedDatetimePicker";
|
|
4
3
|
export * from "./LocalizedDatetimePickerProps";
|
|
4
|
+
export { type default as LocalizedDatetimePickerProps } from "./LocalizedDatetimePickerProps";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/LocalizedDatetimePicker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/LocalizedDatetimePicker/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEpD,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,KAAK,OAAO,IAAI,4BAA4B,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import { PopoverOrigin } from "@mui/material/Popover";
|
|
3
1
|
import { SxProps, Theme } from "@mui/material";
|
|
2
|
+
import { PopoverOrigin } from "@mui/material/Popover";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
4
|
interface NavMenuProps {
|
|
5
5
|
name: string;
|
|
6
6
|
routes: {
|
|
@@ -13,7 +13,8 @@ interface NavMenuProps {
|
|
|
13
13
|
anchorOrigin: PopoverOrigin;
|
|
14
14
|
transformOrigin: PopoverOrigin;
|
|
15
15
|
endIcon: ReactNode;
|
|
16
|
+
withReactRouter?: boolean;
|
|
16
17
|
}
|
|
17
|
-
export default function NavMenu({ name, activeTab, routes, sx, anchorOrigin, transformOrigin, endIcon, }: NavMenuProps):
|
|
18
|
+
export default function NavMenu({ name, activeTab, routes, sx, anchorOrigin, transformOrigin, endIcon, withReactRouter, }: NavMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export {};
|
|
19
20
|
//# sourceMappingURL=NavMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavMenu.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/NavMenu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NavMenu.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/NavMenu.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAK/C,OAAO,EAAkB,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE;QACN,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,EAAE,CAAC;IACJ,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACnB,YAAY,EAAE,aAAa,CAAC;IAC5B,eAAe,EAAE,aAAa,CAAC;IAC/B,OAAO,EAAE,SAAS,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,IAAI,EACJ,SAAS,EACT,MAAM,EACN,EAAE,EACF,YAAY,EACZ,eAAe,EACf,OAAO,EACP,eAAe,GAChB,EAAE,YAAY,2CA6Ed"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import OpenInNewIcon from "@mui/icons-material/OpenInNew";
|
|
2
3
|
import Button from "@mui/material/Button";
|
|
3
4
|
import Link from "@mui/material/Link";
|
|
4
5
|
import Menu from "@mui/material/Menu";
|
|
5
6
|
import MenuItem from "@mui/material/MenuItem";
|
|
6
7
|
import { popoverClasses } from "@mui/material/Popover";
|
|
7
|
-
import
|
|
8
|
-
|
|
8
|
+
import React from "react";
|
|
9
|
+
import { Link as RouterLink } from "react-router";
|
|
10
|
+
export default function NavMenu({ name, activeTab, routes, sx, anchorOrigin, transformOrigin, endIcon, withReactRouter, }) {
|
|
9
11
|
const [anchorEl, setAnchorEl] = React.useState(null);
|
|
10
12
|
let currentlyHovering = false;
|
|
11
13
|
const open = anchorEl != null;
|
|
@@ -17,28 +19,22 @@ export default function NavMenu({ name, activeTab, routes, sx, anchorOrigin, tra
|
|
|
17
19
|
}
|
|
18
20
|
}, 50);
|
|
19
21
|
}
|
|
20
|
-
return (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
}, sx: { [`&.${popoverClasses.root}`]: { pointerEvents: "none" } }, elevation: 0, anchorOrigin: anchorOrigin, transformOrigin: transformOrigin }, routes.map((route, idx) => (React.createElement(MenuItem, { key: idx, disabled: route.url === activeTab, sx: { p: 0 } },
|
|
40
|
-
React.createElement(Link, { href: route.url, underline: "none", color: "inherit", sx: { px: "1rem", py: "0.5rem", width: "-webkit-fill-available" }, target: route.targetBlank ? "_blank" : undefined, rel: route.targetBlank ? "noopener noreferrer" : undefined },
|
|
41
|
-
route.name,
|
|
42
|
-
" ",
|
|
43
|
-
route.targetBlank && (React.createElement(OpenInNewIcon, { fontSize: "small", color: "primary" })))))))));
|
|
22
|
+
return (_jsxs(_Fragment, { children: [_jsx(Button, { id: `navTabName-${name}`, color: "inherit", variant: "text", sx: {
|
|
23
|
+
"& .MuiButton-endIcon": {
|
|
24
|
+
ml: 0,
|
|
25
|
+
},
|
|
26
|
+
...sx,
|
|
27
|
+
}, onClick: (e) => {
|
|
28
|
+
if (anchorEl !== e.currentTarget)
|
|
29
|
+
setAnchorEl(e.currentTarget);
|
|
30
|
+
}, onMouseOver: (e) => {
|
|
31
|
+
if (anchorEl !== e.currentTarget)
|
|
32
|
+
setAnchorEl(e.currentTarget);
|
|
33
|
+
}, onMouseLeave: handleCloseHover, endIcon: endIcon, children: name }), _jsx(Menu, { autoFocus: false, open: open, anchorEl: anchorEl, onClose: () => setAnchorEl(null), slotProps: {
|
|
34
|
+
list: {
|
|
35
|
+
onMouseEnter: () => (currentlyHovering = true),
|
|
36
|
+
onMouseLeave: handleCloseHover,
|
|
37
|
+
style: { pointerEvents: "auto" },
|
|
38
|
+
},
|
|
39
|
+
}, sx: { [`&.${popoverClasses.root}`]: { pointerEvents: "none" } }, elevation: 0, anchorOrigin: anchorOrigin, transformOrigin: transformOrigin, children: routes.map((route, idx) => (_jsx(MenuItem, { disabled: route.url === activeTab, sx: { p: 0 }, children: _jsxs(Link, { component: withReactRouter ? RouterLink : "a", to: withReactRouter ? route.url : undefined, href: withReactRouter ? undefined : route.url, underline: "none", color: "inherit", sx: { px: "1rem", py: "0.5rem", width: "-webkit-fill-available" }, target: route.targetBlank ? "_blank" : undefined, rel: route.targetBlank ? "noopener noreferrer" : undefined, children: [route.name, " ", route.targetBlank && (_jsx(OpenInNewIcon, { fontSize: "small", color: "primary" }))] }) }, idx))) })] }));
|
|
44
40
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import NavigationProps from "./NavigationProps";
|
|
3
|
-
export default function Navigation({
|
|
2
|
+
export default function Navigation({ additionalControls, username, title, navLinks, logoutPageUrl, defautlUrl, appsUrl, profileUrl, activeTab, withReactRouter, }: NavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
//# sourceMappingURL=Navigation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/Navigation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Navigation.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/Navigation.tsx"],"names":[],"mappings":"AAyBA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAGhD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,kBAAkB,EAClB,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,aAAa,EACb,UAAU,EACV,OAAO,EACP,UAAU,EACV,SAAS,EACT,eAAe,GAChB,EAAE,eAAe,2CA+VjB"}
|