@danikokonn/yarik-frontend-lib 2.0.49-test4 → 2.0.49-test6
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 +4 -3
- package/dist/components/Navigation/NavigationProps.d.ts +2 -0
- 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({ additionalControls, username, title, navLinks, logoutPageUrl, defautlUrl, appsUrl, profileUrl, }: NavigationProps): React.JSX.Element;
|
|
3
|
+
export default function Navigation({ additionalControls, username, title, navLinks, logoutPageUrl, defautlUrl, appsUrl, profileUrl, activeTab, withReactRouter, }: 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,kBAAkB,EAClB,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,aAAa,EACb,UAAU,EACV,OAAO,EACP,UAAU,
|
|
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,EACV,SAAS,EACT,eAAe,GAChB,EAAE,eAAe,qBAyVjB"}
|
|
@@ -22,7 +22,7 @@ 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({ additionalControls, username, title, navLinks, logoutPageUrl, defautlUrl, appsUrl, profileUrl, }) {
|
|
25
|
+
export default function Navigation({ additionalControls, username, title, navLinks, logoutPageUrl, defautlUrl, appsUrl, profileUrl, activeTab, withReactRouter, }) {
|
|
26
26
|
const locationRouter = useLocation();
|
|
27
27
|
const { mode, setMode } = useColorScheme();
|
|
28
28
|
const prefersDarkMode = useMediaQuery("(prefers-color-scheme: dark)");
|
|
@@ -41,10 +41,11 @@ export default function Navigation({ additionalControls, username, title, navLin
|
|
|
41
41
|
const getPages = (sx, anchorOrigin, transformOrigin, endIcon) => {
|
|
42
42
|
return navLinks.map((lnk, idx) => {
|
|
43
43
|
if ("groupName" in lnk) {
|
|
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
|
+
return (React.createElement(NavMenu, { key: idx, name: lnk.groupName, routes: lnk.links, activeTab: withReactRouter ? locationRouter.pathname : activeTab || "", sx: sx, anchorOrigin: anchorOrigin, transformOrigin: transformOrigin, endIcon: endIcon }));
|
|
45
45
|
}
|
|
46
46
|
else {
|
|
47
|
-
return (React.createElement(Button, { component:
|
|
47
|
+
return (React.createElement(Button, { component: withReactRouter ? RouterLink : "button", disabled: lnk.url ===
|
|
48
|
+
(withReactRouter ? locationRouter.pathname : activeTab), to: withReactRouter ? lnk.url : undefined, href: withReactRouter ? undefined : lnk.url, key: idx, sx: sx, color: "inherit", variant: "text" }, lnk.name));
|
|
48
49
|
}
|
|
49
50
|
});
|
|
50
51
|
};
|
|
@@ -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,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,EAAE,OAAO,CAAC;IACzB,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"}
|
|
@@ -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-test6",
|
|
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
|
},
|