@danikokonn/yarik-frontend-lib 2.0.49-test3 → 2.0.49-test5
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/dist/components/DatetimeRangeInput/DatetimeRangeInput.d.ts +1 -0
- package/dist/components/DatetimeRangeInput/DatetimeRangeInput.d.ts.map +1 -1
- package/dist/components/DatetimeRangeInput/DatetimeRangeInput.js +3 -3
- package/dist/components/Navigation/Navigation.d.ts +1 -1
- package/dist/components/Navigation/Navigation.d.ts.map +1 -1
- package/dist/components/Navigation/Navigation.js +5 -4
- package/dist/components/Navigation/NavigationProps.d.ts +0 -1
- package/dist/components/Navigation/NavigationProps.d.ts.map +1 -1
- package/dist/components/SubtaskItem/SubtaskItemProps.d.ts +1 -1
- package/dist/components/SubtaskItem/SubtaskItemProps.d.ts.map +1 -1
- package/package.json +20 -20
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatetimeRangeInput.d.ts","sourceRoot":"","sources":["../../../src/components/DatetimeRangeInput/DatetimeRangeInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DatetimeRangeInput.d.ts","sourceRoot":"","sources":["../../../src/components/DatetimeRangeInput/DatetimeRangeInput.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,GAAG,EAAoC,MAAM,OAAO,CAAC;AAGrE,OAAO,kBAAkB,CAAC;AAQ1B,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAQhE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,cAAc,EACd,IAAI,EACJ,EAAE,EACF,OAAO,EACP,EAAE,EACF,WAAW,EACX,IAAI,EACJ,QAAQ,EACR,QAAQ,GACT,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAiHvC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { lazy, Suspense, useRef, useState } from "react";
|
|
2
2
|
import moment from "moment-timezone";
|
|
3
3
|
import "moment/locale/ru";
|
|
4
|
-
import
|
|
4
|
+
import ClearIcon from "@mui/icons-material/Clear";
|
|
5
5
|
import DateRangeIcon from "@mui/icons-material/DateRange";
|
|
6
|
+
import IconButton from "@mui/material/IconButton";
|
|
6
7
|
import Popover from "@mui/material/Popover";
|
|
7
8
|
import TextField from "@mui/material/TextField";
|
|
8
|
-
import ClearIcon from "@mui/icons-material/Clear";
|
|
9
9
|
const DateTimeRangePicker = lazy(() => import("../DateTimeRangePicker/DateTimeRangePicker"));
|
|
10
|
-
import { prettyDatetime } from "../../utils";
|
|
11
10
|
import { Skeleton, Stack } from "@mui/material";
|
|
11
|
+
import { prettyDatetime } from "../../utils";
|
|
12
12
|
/**
|
|
13
13
|
* Компонент выбора диапазона дат и времени.
|
|
14
14
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import NavigationProps from "./NavigationProps";
|
|
3
|
-
export default function Navigation({
|
|
3
|
+
export default function Navigation({ additionalControls, username, title, navLinks, logoutPageUrl, defautlUrl, appsUrl, profileUrl, }: NavigationProps): React.JSX.Element;
|
|
4
4
|
//# sourceMappingURL=Navigation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/Navigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AA4BzC,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAGhD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,
|
|
1
|
+
{"version":3,"file":"Navigation.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/Navigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AA4BzC,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,GACX,EAAE,eAAe,qBAmVjB"}
|
|
@@ -15,14 +15,15 @@ import Menu from "@mui/material/Menu";
|
|
|
15
15
|
import MenuItem from "@mui/material/MenuItem";
|
|
16
16
|
import Toolbar from "@mui/material/Toolbar";
|
|
17
17
|
import Typography from "@mui/material/Typography";
|
|
18
|
-
import { Link as RouterLink } from "react-router";
|
|
18
|
+
import { Link as RouterLink, useLocation } from "react-router";
|
|
19
19
|
import Avatar from "@mui/material/Avatar";
|
|
20
20
|
import ListItemIcon from "@mui/material/ListItemIcon";
|
|
21
21
|
import ListItemText from "@mui/material/ListItemText";
|
|
22
22
|
import { Button, useColorScheme, useMediaQuery } from "@mui/material";
|
|
23
23
|
import { popoverClasses } from "@mui/material/Popover";
|
|
24
24
|
import NavMenu from "./NavMenu";
|
|
25
|
-
export default function Navigation({
|
|
25
|
+
export default function Navigation({ additionalControls, username, title, navLinks, logoutPageUrl, defautlUrl, appsUrl, profileUrl, }) {
|
|
26
|
+
const locationRouter = useLocation();
|
|
26
27
|
const { mode, setMode } = useColorScheme();
|
|
27
28
|
const prefersDarkMode = useMediaQuery("(prefers-color-scheme: dark)");
|
|
28
29
|
const [anchorElNav, setAnchorElNav] = React.useState(null);
|
|
@@ -40,10 +41,10 @@ export default function Navigation({ activeTab, additionalControls, username, ti
|
|
|
40
41
|
const getPages = (sx, anchorOrigin, transformOrigin, endIcon) => {
|
|
41
42
|
return navLinks.map((lnk, idx) => {
|
|
42
43
|
if ("groupName" in lnk) {
|
|
43
|
-
return (React.createElement(NavMenu, { key: idx, name: lnk.groupName, routes: lnk.links, activeTab:
|
|
44
|
+
return (React.createElement(NavMenu, { key: idx, name: lnk.groupName, routes: lnk.links, activeTab: locationRouter.pathname, sx: sx, anchorOrigin: anchorOrigin, transformOrigin: transformOrigin, endIcon: endIcon }));
|
|
44
45
|
}
|
|
45
46
|
else {
|
|
46
|
-
return (React.createElement(Button, { component: RouterLink, to: lnk.url, key: idx, sx: sx, color: "inherit", variant: "text" }, lnk.name));
|
|
47
|
+
return (React.createElement(Button, { component: RouterLink, to: lnk.url, key: idx, sx: sx, color: "inherit", variant: "text", disabled: lnk.url === locationRouter.pathname }, lnk.name));
|
|
47
48
|
}
|
|
48
49
|
});
|
|
49
50
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationProps.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/NavigationProps.ts"],"names":[],"mappings":"AAAA,UAAU,OAAO;IACf,KAAK,
|
|
1
|
+
{"version":3,"file":"NavigationProps.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/NavigationProps.ts"],"names":[],"mappings":"AAAA,UAAU,OAAO;IACf,KAAK,EACH,SAAS,GACT,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,MAAM,GACN,SAAS,GACT,OAAO,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EACH,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;IACR,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,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;QACA,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,EAAE,IAAI,EAAE,CAAC;KACf,GACC,IAAI,CACP,EAAE,CAAC;CACL"}
|
|
@@ -4,7 +4,7 @@ export default interface SubtaskItemProps {
|
|
|
4
4
|
taskInstance: TaskInstance;
|
|
5
5
|
logs: string;
|
|
6
6
|
expanded: boolean;
|
|
7
|
-
expandedLogContainerRef?: RefObject<HTMLDivElement>;
|
|
7
|
+
expandedLogContainerRef?: RefObject<HTMLDivElement | null>;
|
|
8
8
|
onShowLogs(taskId: string, tryNum: number): void;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=SubtaskItemProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubtaskItemProps.d.ts","sourceRoot":"","sources":["../../../src/components/SubtaskItem/SubtaskItemProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,CAAC,OAAO,WAAW,gBAAgB;IACvC,YAAY,EAAE,YAAY,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,uBAAuB,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"SubtaskItemProps.d.ts","sourceRoot":"","sources":["../../../src/components/SubtaskItem/SubtaskItemProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,CAAC,OAAO,WAAW,gBAAgB;IACvC,YAAY,EAAE,YAAY,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,uBAAuB,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC3D,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CAClD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danikokonn/yarik-frontend-lib",
|
|
3
|
-
"version": "2.0.49-
|
|
3
|
+
"version": "2.0.49-test5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "",
|
|
@@ -13,37 +13,37 @@
|
|
|
13
13
|
"url": "https://github.com/YARIK-ML/YARIK-frontend-lib.git"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@eslint/js": "^9.
|
|
16
|
+
"@eslint/js": "^9.34.0",
|
|
17
17
|
"@types/lodash.debounce": "^4.0.9",
|
|
18
18
|
"@types/moment-duration-format": "^2.2.6",
|
|
19
|
-
"eslint": "^9.
|
|
20
|
-
"eslint-plugin-react": "^7.37.
|
|
21
|
-
"globals": "^
|
|
22
|
-
"prettier": "3.2
|
|
23
|
-
"ts-loader": "^9.5.
|
|
24
|
-
"tss-react": "^4.9.
|
|
25
|
-
"typescript": "^5.
|
|
26
|
-
"typescript-eslint": "^8.
|
|
19
|
+
"eslint": "^9.34.0",
|
|
20
|
+
"eslint-plugin-react": "^7.37.5",
|
|
21
|
+
"globals": "^16.3.0",
|
|
22
|
+
"prettier": "3.6.2",
|
|
23
|
+
"ts-loader": "^9.5.4",
|
|
24
|
+
"tss-react": "^4.9.19",
|
|
25
|
+
"typescript": "^5.9.2",
|
|
26
|
+
"typescript-eslint": "^8.42.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@emotion/react": "^11.14.0",
|
|
30
|
-
"@emotion/styled": "^11.14.
|
|
31
|
-
"@mui/icons-material": "^
|
|
32
|
-
"@mui/material": "^
|
|
33
|
-
"@mui/x-date-pickers": "^
|
|
34
|
-
"@types/react": "^
|
|
35
|
-
"@types/react-dom": "^
|
|
30
|
+
"@emotion/styled": "^11.14.1",
|
|
31
|
+
"@mui/icons-material": "^7.3.2",
|
|
32
|
+
"@mui/material": "^7.3.2",
|
|
33
|
+
"@mui/x-date-pickers": "^8.11.1",
|
|
34
|
+
"@types/react": "^19.1.12",
|
|
35
|
+
"@types/react-dom": "^19.1.9",
|
|
36
36
|
"css-loader": "^7.1.2",
|
|
37
37
|
"moment": "^2.30.1",
|
|
38
38
|
"moment-duration-format": "^2.3.2",
|
|
39
|
-
"moment-timezone": "^0.
|
|
39
|
+
"moment-timezone": "^0.6.0",
|
|
40
40
|
"notistack": "^3.0.2",
|
|
41
|
-
"react": "^
|
|
42
|
-
"react-dom": "^
|
|
41
|
+
"react": "^19.1.1",
|
|
42
|
+
"react-dom": "^19.1.1",
|
|
43
43
|
"react-imask": "^7.6.1",
|
|
44
44
|
"react-json-tree": "^0.20.0",
|
|
45
45
|
"react-router": "^7.8.2",
|
|
46
|
-
"react-virtuoso": "^4.
|
|
46
|
+
"react-virtuoso": "^4.14.0",
|
|
47
47
|
"style-loader": "^4.0.0",
|
|
48
48
|
"transliteration": "^2.3.5"
|
|
49
49
|
},
|