@danikokonn/yarik-frontend-lib 2.0.49 → 2.0.51
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/ActionDialog/ActionDialog.d.ts +1 -2
- package/dist/components/ActionDialog/ActionDialog.d.ts.map +1 -1
- package/dist/components/ActionDialog/ActionDialog.js +7 -18
- package/dist/components/ActionDialog/ActionDialogProps.d.ts +1 -1
- 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 -41
- 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 -1
- package/dist/components/DatetimeRangeInput/DatetimeRangeInput.d.ts.map +1 -1
- package/dist/components/DatetimeRangeInput/DatetimeRangeInput.js +36 -42
- 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 +3 -11
- 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 +2 -1
- 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 +2 -2
- package/dist/components/Navigation/NavMenu.d.ts.map +1 -1
- package/dist/components/Navigation/NavMenu.js +20 -25
- 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 +107 -139
- 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 +1 -2
- package/dist/components/PageWrapper/PageWrapper.d.ts.map +1 -1
- package/dist/components/PageWrapper/PageWrapper.js +4 -7
- 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 +40 -47
- 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 +12 -4
- package/dist/components/SmartTable/RowContent.d.ts +2 -2
- package/dist/components/SmartTable/RowContent.d.ts.map +1 -1
- package/dist/components/SmartTable/RowContent.js +29 -31
- package/dist/components/SmartTable/SmartTable.d.ts +1 -2
- package/dist/components/SmartTable/SmartTable.d.ts.map +1 -1
- package/dist/components/SmartTable/SmartTable.js +52 -77
- 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 +2 -2
- 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 +47 -57
- 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 +1 -2
- package/dist/components/TaskLoader/TaskLoader.d.ts.map +1 -1
- package/dist/components/TaskLoader/TaskLoader.js +68 -92
- 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 +27 -44
- 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 +4 -24
- 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 +4 -22
- 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 +4 -10
- 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 +4 -10
- 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 +4 -10
- 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 +4 -13
- package/dist/components/icons/TextModeIcon.d.ts.map +1 -1
- package/dist/components/icons/TextModeIcon.js +2 -6
- package/dist/components/icons/index.d.ts +1 -2
- package/dist/components/icons/index.d.ts.map +1 -1
- package/dist/components/icons/index.js +1 -2
- 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 +1 -1
- package/dist/providers/AirflowProvider.d.ts.map +1 -1
- package/dist/providers/AirflowProvider.js +4 -3
- package/dist/providers/DagStateProvider.d.ts +1 -1
- package/dist/providers/DagStateProvider.d.ts.map +1 -1
- package/dist/providers/DagStateProvider.js +4 -3
- package/dist/providers/SessionProvider.d.ts +1 -1
- package/dist/providers/SessionProvider.d.ts.map +1 -1
- package/dist/providers/SessionProvider.js +4 -3
- package/dist/providers/SnackBarProvider.d.ts +1 -1
- package/dist/providers/SnackBarProvider.d.ts.map +1 -1
- package/dist/providers/SnackBarProvider.js +7 -8
- 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/package.json +18 -16
- package/dist/components/icons/TreeModeIcon.d.ts +0 -5
- package/dist/components/icons/TreeModeIcon.d.ts.map +0 -1
- package/dist/components/icons/TreeModeIcon.js +0 -8
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { SvgIconOwnProps } from "@mui/material";
|
|
2
|
-
import React from "react";
|
|
3
2
|
interface QueueIconProps extends SvgIconOwnProps {
|
|
4
3
|
disabled?: boolean;
|
|
5
4
|
}
|
|
6
|
-
declare const QueueIcon: ({ disabled, ...props }: QueueIconProps) =>
|
|
5
|
+
declare const QueueIcon: ({ disabled, ...props }: QueueIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export default QueueIcon;
|
|
8
7
|
//# sourceMappingURL=QueueIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueueIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/QueueIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,eAAe,EAAY,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"QueueIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/QueueIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,eAAe,EAAY,MAAM,eAAe,CAAC;AA+BzE,UAAU,cAAe,SAAQ,eAAe;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,SAAS,GAAI,wBAAwB,cAAc,4CAexD,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import { createSvgIcon, useTheme } from "@mui/material";
|
|
2
|
-
|
|
3
|
-
const QueueSvgIcon = createSvgIcon(React.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: "#000000" },
|
|
4
|
-
React.createElement("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
5
|
-
React.createElement("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
6
|
-
React.createElement("g", { id: "SVGRepo_iconCarrier" },
|
|
7
|
-
React.createElement("rect", { id: "view-box", width: "24", height: "24", fill: "none" }),
|
|
8
|
-
React.createElement("path", { id: "Shape", d: "M3.75,19.5A3.75,3.75,0,0,1,0,15.75V6.607A2.607,2.607,0,0,1,2.607,4H4V2.75A2.754,2.754,0,0,1,6.75,0h10A2.753,2.753,0,0,1,19.5,2.75v10a2.752,2.752,0,0,1-2.75,2.75H15.5v1.393A2.607,2.607,0,0,1,12.892,19.5ZM1.5,6.607V15.75A2.25,2.25,0,0,0,3.75,18h9.142A1.108,1.108,0,0,0,14,16.893V15.5H6.75A2.753,2.753,0,0,1,4,12.75V5.5H2.607A1.107,1.107,0,0,0,1.5,6.607Zm4-3.857v10A1.252,1.252,0,0,0,6.75,14h10A1.251,1.251,0,0,0,18,12.75v-10A1.251,1.251,0,0,0,16.75,1.5h-10A1.252,1.252,0,0,0,5.5,2.75ZM9.25,10.5a.75.75,0,1,1,0-1.5h5a.75.75,0,1,1,0,1.5Z", transform: "translate(2.25 2.25)", fill: "var(--disabled, currentColor)" }),
|
|
9
|
-
React.createElement("path", { id: "Shape-2", "data-name": "Shape", d: "M.75,1.5h5a.75.75,0,0,0,0-1.5h-5a.75.75,0,0,0,0,1.5Z", transform: "translate(17.25 8.75) rotate(-180)", fill: "var(--disabled, currentColor)", opacity: "0.5" }))), "QueueSvgIcon");
|
|
3
|
+
const QueueSvgIcon = createSvgIcon(_jsxs("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: "#000000", children: [_jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }), _jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }), _jsxs("g", { id: "SVGRepo_iconCarrier", children: [_jsx("rect", { id: "view-box", width: "24", height: "24", fill: "none" }), _jsx("path", { id: "Shape", d: "M3.75,19.5A3.75,3.75,0,0,1,0,15.75V6.607A2.607,2.607,0,0,1,2.607,4H4V2.75A2.754,2.754,0,0,1,6.75,0h10A2.753,2.753,0,0,1,19.5,2.75v10a2.752,2.752,0,0,1-2.75,2.75H15.5v1.393A2.607,2.607,0,0,1,12.892,19.5ZM1.5,6.607V15.75A2.25,2.25,0,0,0,3.75,18h9.142A1.108,1.108,0,0,0,14,16.893V15.5H6.75A2.753,2.753,0,0,1,4,12.75V5.5H2.607A1.107,1.107,0,0,0,1.5,6.607Zm4-3.857v10A1.252,1.252,0,0,0,6.75,14h10A1.251,1.251,0,0,0,18,12.75v-10A1.251,1.251,0,0,0,16.75,1.5h-10A1.252,1.252,0,0,0,5.5,2.75ZM9.25,10.5a.75.75,0,1,1,0-1.5h5a.75.75,0,1,1,0,1.5Z", transform: "translate(2.25 2.25)", fill: "var(--disabled, currentColor)" }), _jsx("path", { id: "Shape-2", "data-name": "Shape", d: "M.75,1.5h5a.75.75,0,0,0,0-1.5h-5a.75.75,0,0,0,0,1.5Z", transform: "translate(17.25 8.75) rotate(-180)", fill: "var(--disabled, currentColor)", opacity: "0.5" })] })] }), "QueueSvgIcon");
|
|
10
4
|
// todo: Обобщить, создать хук
|
|
11
5
|
const QueueIcon = ({ disabled, ...props }) => {
|
|
12
6
|
const theme = useTheme();
|
|
13
|
-
return disabled ? (
|
|
7
|
+
return disabled ? (_jsx(QueueSvgIcon, { sx: {
|
|
14
8
|
"--disabled": theme.vars?.palette.action.disabled || theme.palette.action.disabled,
|
|
15
9
|
...props.sx,
|
|
16
|
-
}, ...props })) : (
|
|
10
|
+
}, ...props })) : (_jsx(QueueSvgIcon, { ...props }));
|
|
17
11
|
};
|
|
18
12
|
export default QueueIcon;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { SvgIconOwnProps } from "@mui/material";
|
|
2
|
-
import React from "react";
|
|
3
2
|
interface IpIconProps extends SvgIconOwnProps {
|
|
4
3
|
disabled?: boolean;
|
|
5
4
|
}
|
|
6
|
-
declare const IpIcon: ({ disabled, ...props }: IpIconProps) =>
|
|
5
|
+
declare const IpIcon: ({ disabled, ...props }: IpIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export default IpIcon;
|
|
8
7
|
//# sourceMappingURL=RangeIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RangeIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/RangeIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,eAAe,EAAY,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"RangeIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/RangeIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,eAAe,EAAY,MAAM,eAAe,CAAC;AA8CzE,UAAU,WAAY,SAAQ,eAAe;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,MAAM,GAAI,wBAAwB,WAAW,4CAelD,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import { createSvgIcon, useTheme } from "@mui/material";
|
|
2
|
-
|
|
3
|
-
const IpSVGIcon = createSvgIcon(React.createElement("svg", { viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", fill: "#000000", stroke: "#000000", strokeWidth: "4.176" },
|
|
4
|
-
React.createElement("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
5
|
-
React.createElement("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
6
|
-
React.createElement("g", { id: "SVGRepo_iconCarrier" },
|
|
7
|
-
React.createElement("line", { fill: "none", stroke: "var(--disabled, currentColor)", strokeLinecap: "round", strokeLinejoin: "round", x1: "12.5656", y1: "12.5003", x2: "12.5656", y2: "35.5" }),
|
|
8
|
-
React.createElement("path", { fill: "none", stroke: "var(--disabled, currentColor)", strokeLinecap: "round", strokeLinejoin: "round", d: "M20.197,35.5v-23h7.475a7.7624,7.7624,0,0,1,0,15.5248H20.197" }),
|
|
9
|
-
React.createElement("path", { fill: "none", stroke: "var(--disabled, currentColor)", strokeLinecap: "round", strokeLinejoin: "round", d: "M40.5,5.5H7.5a2,2,0,0,0-2,2v33a2,2,0,0,0,2,2h33a2,2,0,0,0,2-2V7.5A2,2,0,0,0,40.5,5.5Z" }))), "IpSVGIcon");
|
|
3
|
+
const IpSVGIcon = createSvgIcon(_jsxs("svg", { viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", fill: "#000000", stroke: "#000000", strokeWidth: "4.176", children: [_jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }), _jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }), _jsxs("g", { id: "SVGRepo_iconCarrier", children: [_jsx("line", { fill: "none", stroke: "var(--disabled, currentColor)", strokeLinecap: "round", strokeLinejoin: "round", x1: "12.5656", y1: "12.5003", x2: "12.5656", y2: "35.5" }), _jsx("path", { fill: "none", stroke: "var(--disabled, currentColor)", strokeLinecap: "round", strokeLinejoin: "round", d: "M20.197,35.5v-23h7.475a7.7624,7.7624,0,0,1,0,15.5248H20.197" }), _jsx("path", { fill: "none", stroke: "var(--disabled, currentColor)", strokeLinecap: "round", strokeLinejoin: "round", d: "M40.5,5.5H7.5a2,2,0,0,0-2,2v33a2,2,0,0,0,2,2h33a2,2,0,0,0,2-2V7.5A2,2,0,0,0,40.5,5.5Z" })] })] }), "IpSVGIcon");
|
|
10
4
|
// todo: Обобщить, создать хук
|
|
11
5
|
const IpIcon = ({ disabled, ...props }) => {
|
|
12
6
|
const theme = useTheme();
|
|
13
|
-
return disabled ? (
|
|
7
|
+
return disabled ? (_jsx(IpSVGIcon, { sx: {
|
|
14
8
|
"--disabled": theme.vars?.palette.action.disabled || theme.palette.action.disabled,
|
|
15
9
|
...props.sx,
|
|
16
|
-
}, ...props })) : (
|
|
10
|
+
}, ...props })) : (_jsx(IpSVGIcon, { ...props }));
|
|
17
11
|
};
|
|
18
12
|
export default IpIcon;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { SvgIconOwnProps } from "@mui/material";
|
|
2
|
-
import React from "react";
|
|
3
2
|
interface RunIconProps extends SvgIconOwnProps {
|
|
4
3
|
disabled?: boolean;
|
|
5
4
|
}
|
|
6
|
-
declare const RunIcon: ({ disabled, ...props }: RunIconProps) =>
|
|
5
|
+
declare const RunIcon: ({ disabled, ...props }: RunIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export default RunIcon;
|
|
8
7
|
//# sourceMappingURL=RunIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RunIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/RunIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,eAAe,EAAY,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"RunIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/RunIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,eAAe,EAAY,MAAM,eAAe,CAAC;AAqDzE,UAAU,YAAa,SAAQ,eAAe;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,OAAO,GAAI,wBAAwB,YAAY,4CAepD,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,21 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import { createSvgIcon, useTheme } from "@mui/material";
|
|
2
|
-
|
|
3
|
-
const RunSvgIcon = createSvgIcon(React.createElement("svg", { width: "38", height: "38", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 38 38", preserveAspectRatio: "xMidYMid", version: "1.1" },
|
|
4
|
-
React.createElement("g", { className: "layer", display: "inline" },
|
|
5
|
-
React.createElement("g", { id: "s", transform: "translate(-0.02 -0.02) matrix(1.63693 0 0 1.63225 -3.38016 7.32488)" },
|
|
6
|
-
React.createElement("g", { id: "svg_1", transform: "translate(-4.12903 0.709677) matrix(0.6025 0 0 0.666969 4.40055 -6.10281)" },
|
|
7
|
-
React.createElement("g", { id: "svg_2" },
|
|
8
|
-
React.createElement("g", { id: "svg_55", transform: "translate(0.0430663 0) matrix(1 0 0 1 6.4897 3.12924e-7)" },
|
|
9
|
-
React.createElement("g", { id: "svg_56" },
|
|
10
|
-
React.createElement("g", { id: "svg_57" },
|
|
11
|
-
React.createElement("path", { d: "m4.41,2.5c-0.47,-0.28 -0.74,-0.05 -0.74,0.5l0,26c0,0.55 0.27,0.78 0.74,0.5l22.7,-13c0.48,-0.28 0.51,-0.72 0.04,-1l-22.74,-13z", fill: "var(--disabled, currentColor)", id: "svg_58", stroke: "#ce5858", strokeWidth: "0", transform: "matrix(1 0 0 1 0 0)" }),
|
|
12
|
-
React.createElement("path", { d: "m4.38,30.62l0,0c-0.66,0 -1.38,-0.51 -1.38,-1.62l0,-26c0,-1.11 0.72,-1.62 1.38,-1.62c0.29,0 0.57,0.08 0.86,0.25l22.73,13.01c0.54,0.3 0.85,0.79 0.85,1.34c0,0.56 -0.32,1.07 -0.88,1.38l-22.7,13.01c-0.29,0.17 -0.57,0.25 -0.86,0.25zm0.62,-26.82l0,24.4l21.31,-12.21l-21.31,-12.19z", fill: "var(--disabled, currentColor)", id: "svg_59", stroke: "#ce5858", strokeWidth: "0" }))))))))), "RunSvgIcon");
|
|
3
|
+
const RunSvgIcon = createSvgIcon(_jsx("svg", { width: "38", height: "38", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 38 38", preserveAspectRatio: "xMidYMid", version: "1.1", children: _jsx("g", { className: "layer", display: "inline", children: _jsx("g", { id: "s", transform: "translate(-0.02 -0.02) matrix(1.63693 0 0 1.63225 -3.38016 7.32488)", children: _jsx("g", { id: "svg_1", transform: "translate(-4.12903 0.709677) matrix(0.6025 0 0 0.666969 4.40055 -6.10281)", children: _jsx("g", { id: "svg_2", children: _jsx("g", { id: "svg_55", transform: "translate(0.0430663 0) matrix(1 0 0 1 6.4897 3.12924e-7)", children: _jsx("g", { id: "svg_56", children: _jsxs("g", { id: "svg_57", children: [_jsx("path", { d: "m4.41,2.5c-0.47,-0.28 -0.74,-0.05 -0.74,0.5l0,26c0,0.55 0.27,0.78 0.74,0.5l22.7,-13c0.48,-0.28 0.51,-0.72 0.04,-1l-22.74,-13z", fill: "var(--disabled, currentColor)", id: "svg_58", stroke: "#ce5858", strokeWidth: "0", transform: "matrix(1 0 0 1 0 0)" }), _jsx("path", { d: "m4.38,30.62l0,0c-0.66,0 -1.38,-0.51 -1.38,-1.62l0,-26c0,-1.11 0.72,-1.62 1.38,-1.62c0.29,0 0.57,0.08 0.86,0.25l22.73,13.01c0.54,0.3 0.85,0.79 0.85,1.34c0,0.56 -0.32,1.07 -0.88,1.38l-22.7,13.01c-0.29,0.17 -0.57,0.25 -0.86,0.25zm0.62,-26.82l0,24.4l21.31,-12.21l-21.31,-12.19z", fill: "var(--disabled, currentColor)", id: "svg_59", stroke: "#ce5858", strokeWidth: "0" })] }) }) }) }) }) }) }) }), "RunSvgIcon");
|
|
13
4
|
// todo: Обобщить, создать хук
|
|
14
5
|
const RunIcon = ({ disabled, ...props }) => {
|
|
15
6
|
const theme = useTheme();
|
|
16
|
-
return disabled ? (
|
|
7
|
+
return disabled ? (_jsx(RunSvgIcon, { sx: {
|
|
17
8
|
"--disabled": theme.vars?.palette.action.disabled || theme.palette.action.disabled,
|
|
18
9
|
...props.sx,
|
|
19
|
-
}, ...props })) : (
|
|
10
|
+
}, ...props })) : (_jsx(RunSvgIcon, { ...props }));
|
|
20
11
|
};
|
|
21
12
|
export default RunIcon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextModeIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/TextModeIcon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TextModeIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/TextModeIcon.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY;;CAmBjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { createSvgIcon } from "@mui/material";
|
|
3
|
-
const TextModeIcon = createSvgIcon(
|
|
4
|
-
React.createElement("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
5
|
-
React.createElement("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
6
|
-
React.createElement("g", { id: "SVGRepo_iconCarrier" },
|
|
7
|
-
React.createElement("path", { d: "M7 8L3 11.6923L7 16M17 8L21 11.6923L17 16M14 4L10 20", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }))), "TextModeIcon");
|
|
3
|
+
const TextModeIcon = createSvgIcon(_jsxs("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }), _jsx("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("g", { id: "SVGRepo_iconCarrier", children: _jsx("path", { d: "M7 8L3 11.6923L7 16M17 8L21 11.6923L17 16M14 4L10 20", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })] }), "TextModeIcon");
|
|
8
4
|
export default TextModeIcon;
|
|
@@ -5,6 +5,5 @@ export { default as ProcessingIcon } from "./ProcessingIcon";
|
|
|
5
5
|
export { default as QueueIcon } from "./QueueIcon";
|
|
6
6
|
export { default as RangeIcon } from "./RangeIcon";
|
|
7
7
|
export { default as RunIcon } from "./RunIcon";
|
|
8
|
-
export { default as TextModeIcon } from "./TextModeIcon";
|
|
9
|
-
export { default as TreeModeIcon } from "./TextModeIcon";
|
|
8
|
+
export { default as TextModeIcon, default as TreeModeIcon, } from "./TextModeIcon";
|
|
10
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,OAAO,IAAI,YAAY,EACvB,OAAO,IAAI,YAAY,GACxB,MAAM,gBAAgB,CAAC"}
|
|
@@ -5,5 +5,4 @@ export { default as ProcessingIcon } from "./ProcessingIcon";
|
|
|
5
5
|
export { default as QueueIcon } from "./QueueIcon";
|
|
6
6
|
export { default as RangeIcon } from "./RangeIcon";
|
|
7
7
|
export { default as RunIcon } from "./RunIcon";
|
|
8
|
-
export { default as TextModeIcon } from "./TextModeIcon";
|
|
9
|
-
export { default as TreeModeIcon } from "./TextModeIcon";
|
|
8
|
+
export { default as TextModeIcon, default as TreeModeIcon, } from "./TextModeIcon";
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ interface AirflowProviderProps {
|
|
|
4
4
|
dagId?: string | null;
|
|
5
5
|
onUnauthorized(): void;
|
|
6
6
|
}
|
|
7
|
-
export declare const AirflowProvider: ({ children, dagId: _dagId, onUnauthorized, }: AirflowProviderProps) =>
|
|
7
|
+
export declare const AirflowProvider: ({ children, dagId: _dagId, onUnauthorized, }: AirflowProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export declare const useAirflowContext: () => {
|
|
9
9
|
dagId?: string | null;
|
|
10
10
|
airflowAvailable: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AirflowProvider.d.ts","sourceRoot":"","sources":["../../src/providers/AirflowProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAgBhF,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,cAAc,IAAI,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,eAAe,GAAI,8CAI7B,oBAAoB,
|
|
1
|
+
{"version":3,"file":"AirflowProvider.d.ts","sourceRoot":"","sources":["../../src/providers/AirflowProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAgBhF,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,cAAc,IAAI,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,eAAe,GAAI,8CAI7B,oBAAoB,4CAyEtB,CAAC;AAEF,eAAO,MAAM,iBAAiB;YAhGpB,MAAM,GAAG,IAAI;sBACH,OAAO;yBACJ,MAAM,GAAG,IAAI,GAAG,IAAI;wBACrB,IAAI;CA+FzB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useCallback, useContext, useState } from "react";
|
|
2
3
|
import useSWR from "swr";
|
|
3
4
|
import { useSnackbarContext } from "./SnackBarProvider";
|
|
4
5
|
const AirflowContext = createContext({
|
|
@@ -52,12 +53,12 @@ export const AirflowProvider = ({ children, dagId: _dagId, onUnauthorized, }) =>
|
|
|
52
53
|
const onLostConnection = () => {
|
|
53
54
|
mutate();
|
|
54
55
|
};
|
|
55
|
-
return (
|
|
56
|
+
return (_jsx(AirflowContext.Provider, { value: {
|
|
56
57
|
airflowAvailable,
|
|
57
58
|
dagId,
|
|
58
59
|
onChangeDagId: setContext,
|
|
59
60
|
onLostConnection,
|
|
60
|
-
}
|
|
61
|
+
}, children: children }));
|
|
61
62
|
};
|
|
62
63
|
export const useAirflowContext = () => {
|
|
63
64
|
return useContext(AirflowContext);
|
|
@@ -9,7 +9,7 @@ interface DagRunStateProviderProps {
|
|
|
9
9
|
autorunHandler?(dagRun: DagRun | null, autorun: boolean): void;
|
|
10
10
|
onUnauthorized(): void;
|
|
11
11
|
}
|
|
12
|
-
declare const DagRunStateProvider: ({ children, dagRun: _dagRun, autorun: _autorun, poolingByUser, taskInstances: _taskInstances, autorunHandler, onUnauthorized, }: DagRunStateProviderProps) =>
|
|
12
|
+
declare const DagRunStateProvider: ({ children, dagRun: _dagRun, autorun: _autorun, poolingByUser, taskInstances: _taskInstances, autorunHandler, onUnauthorized, }: DagRunStateProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export declare const useDagRunStateContext: () => {
|
|
14
14
|
isActive: boolean;
|
|
15
15
|
autorun: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DagStateProvider.d.ts","sourceRoot":"","sources":["../../src/providers/DagStateProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAgCjD,UAAU,wBAAwB;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAC/D,cAAc,IAAI,IAAI,CAAC;CACxB;AAED,QAAA,MAAM,mBAAmB,GAAI,iIAQ1B,wBAAwB,
|
|
1
|
+
{"version":3,"file":"DagStateProvider.d.ts","sourceRoot":"","sources":["../../src/providers/DagStateProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAgCjD,UAAU,wBAAwB;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAC/D,cAAc,IAAI,IAAI,CAAC;CACxB;AAED,QAAA,MAAM,mBAAmB,GAAI,iIAQ1B,wBAAwB,4CAuJ1B,CAAC;AAEF,eAAO,MAAM,qBAAqB;cAtMtB,OAAO;aACR,OAAO;YACR,MAAM,GAAG,IAAI;mBACN,aAAa,GAAG,IAAI;oBACnB,OAAO;4BAEX,OAAO,UACT,MAAM,GAAG,IAAI,iBACN,aAAa,GAAG,IAAI,GAClC,IAAI;kBACO,MAAM,IAAI;gBACZ,IAAI;kBACF,IAAI;wBACE,OAAO,GAAG,IAAI;CA2LnC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useCallback, useContext, useEffect, useState, } from "react";
|
|
2
3
|
import { getRequest } from "../http";
|
|
3
4
|
import { useAirflowContext } from "./AirflowProvider";
|
|
4
5
|
import { useSnackbarContext } from "./SnackBarProvider";
|
|
@@ -121,7 +122,7 @@ const DagRunStateProvider = ({ children, dagRun: _dagRun, autorun: _autorun, poo
|
|
|
121
122
|
setTaskInstances(null);
|
|
122
123
|
setDagStartedOnce(true);
|
|
123
124
|
};
|
|
124
|
-
return (
|
|
125
|
+
return (_jsx(DagRunStateContext.Provider, { value: {
|
|
125
126
|
isActive,
|
|
126
127
|
autorun,
|
|
127
128
|
dagRun,
|
|
@@ -132,7 +133,7 @@ const DagRunStateProvider = ({ children, dagRun: _dagRun, autorun: _autorun, poo
|
|
|
132
133
|
activate,
|
|
133
134
|
fetchState: updateState,
|
|
134
135
|
setAutorun: (autorun) => setAutorun(autorun),
|
|
135
|
-
}
|
|
136
|
+
}, children: children }));
|
|
136
137
|
};
|
|
137
138
|
export const useDagRunStateContext = () => {
|
|
138
139
|
return useContext(DagRunStateContext);
|
|
@@ -5,7 +5,7 @@ interface SessionProviderProps {
|
|
|
5
5
|
autoRedirect?: boolean;
|
|
6
6
|
onUnauthorized?(): void;
|
|
7
7
|
}
|
|
8
|
-
declare const SessionProvider: ({ children, pollingInterval, autoRedirect, onUnauthorized, }: SessionProviderProps) =>
|
|
8
|
+
declare const SessionProvider: ({ children, pollingInterval, autoRedirect, onUnauthorized, }: SessionProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export declare const useSessionContext: () => {
|
|
10
10
|
expiresIn: number;
|
|
11
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionProvider.d.ts","sourceRoot":"","sources":["../../src/providers/SessionProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAU9E,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,IAAI,IAAI,CAAC;CACzB;AAED,QAAA,MAAM,eAAe,GAAI,8DAKtB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"SessionProvider.d.ts","sourceRoot":"","sources":["../../src/providers/SessionProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAU9E,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,IAAI,IAAI,CAAC;CACzB;AAED,QAAA,MAAM,eAAe,GAAI,8DAKtB,oBAAoB,4CA8CtB,CAAC;AAEF,eAAO,MAAM,iBAAiB;eAjEjB,MAAM;CAmElB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext, useEffect, useState } from "react";
|
|
2
3
|
import { getRequest } from "../http";
|
|
3
4
|
import { useSnackbarContext } from "./SnackBarProvider";
|
|
4
5
|
const SessionContext = createContext({
|
|
@@ -33,9 +34,9 @@ const SessionProvider = ({ children, pollingInterval, autoRedirect, onUnauthoriz
|
|
|
33
34
|
}, pollingInterval * 1000);
|
|
34
35
|
return () => clearInterval(interval);
|
|
35
36
|
}, [expires]);
|
|
36
|
-
return (
|
|
37
|
+
return (_jsx(SessionContext.Provider, { value: {
|
|
37
38
|
expiresIn: pollingInterval,
|
|
38
|
-
}
|
|
39
|
+
}, children: children }));
|
|
39
40
|
};
|
|
40
41
|
export const useSessionContext = () => {
|
|
41
42
|
return useContext(SessionContext);
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
interface SnackBarProps {
|
|
3
3
|
children?: React.ReactNode | React.ReactNode[];
|
|
4
4
|
}
|
|
5
|
-
declare const SnackBarProvider: ({ children }: SnackBarProps) =>
|
|
5
|
+
declare const SnackBarProvider: ({ children }: SnackBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare const useSnackbarContext: () => {
|
|
7
7
|
enqueueSnackbar(message: string, variant: "default" | "error" | "success" | "warning" | "info"): void;
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SnackBarProvider.d.ts","sourceRoot":"","sources":["../../src/providers/SnackBarProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAezD,UAAU,aAAa;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;CAChD;AA8CD,QAAA,MAAM,gBAAgB,GAAI,cAAc,aAAa,
|
|
1
|
+
{"version":3,"file":"SnackBarProvider.d.ts","sourceRoot":"","sources":["../../src/providers/SnackBarProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAezD,UAAU,aAAa;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;CAChD;AA8CD,QAAA,MAAM,gBAAgB,GAAI,cAAc,aAAa,4CAMpD,CAAC;AAEF,eAAO,MAAM,kBAAkB;6BA/DlB,MAAM,WACN,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAC5D,IAAI;CA+DR,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext } from "react";
|
|
2
3
|
import Button from "@mui/material/Button";
|
|
3
4
|
import { SnackbarProvider, useSnackbar } from "notistack";
|
|
4
5
|
const SnackBarContext = createContext({
|
|
@@ -6,10 +7,9 @@ const SnackBarContext = createContext({
|
|
|
6
7
|
});
|
|
7
8
|
const SnackBarProviderUtilities = ({ children }) => {
|
|
8
9
|
const { enqueueSnackbar, closeSnackbar } = useSnackbar();
|
|
9
|
-
const action = (snackbarId) => (
|
|
10
|
-
React.createElement(Button, { size: "small", variant: "text", color: "inherit", onClick: () => {
|
|
10
|
+
const action = (snackbarId) => (_jsx(_Fragment, { children: _jsx(Button, { size: "small", variant: "text", color: "inherit", onClick: () => {
|
|
11
11
|
closeSnackbar(snackbarId);
|
|
12
|
-
}
|
|
12
|
+
}, children: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C" }) }));
|
|
13
13
|
function handleEnqueueSnackbar(message, variant) {
|
|
14
14
|
enqueueSnackbar(message, {
|
|
15
15
|
variant: variant,
|
|
@@ -21,13 +21,12 @@ const SnackBarProviderUtilities = ({ children }) => {
|
|
|
21
21
|
},
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
return (
|
|
24
|
+
return (_jsx(SnackBarContext.Provider, { value: {
|
|
25
25
|
enqueueSnackbar: handleEnqueueSnackbar,
|
|
26
|
-
}
|
|
26
|
+
}, children: children }));
|
|
27
27
|
};
|
|
28
28
|
const SnackBarProvider = ({ children }) => {
|
|
29
|
-
return (
|
|
30
|
-
React.createElement(SnackBarProviderUtilities, null, children)));
|
|
29
|
+
return (_jsx(SnackbarProvider, { maxSnack: 5, autoHideDuration: 5000, preventDuplicate: true, children: _jsx(SnackBarProviderUtilities, { children: children }) }));
|
|
31
30
|
};
|
|
32
31
|
export const useSnackbarContext = () => {
|
|
33
32
|
return useContext(SnackBarContext);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { default as DagStateProvider } from "./DagStateProvider";
|
|
2
1
|
export * from "./DagStateProvider";
|
|
3
|
-
export { default as
|
|
2
|
+
export { default as DagStateProvider } from "./DagStateProvider";
|
|
4
3
|
export * from "./SessionProvider";
|
|
5
|
-
export { default as
|
|
4
|
+
export { default as SessionProvider } from "./SessionProvider";
|
|
6
5
|
export * from "./SnackBarProvider";
|
|
7
|
-
export { default as
|
|
6
|
+
export { default as SnackBarProvider } from "./SnackBarProvider";
|
|
8
7
|
export * from "./AirflowProvider";
|
|
8
|
+
export { default as AirflowProvider } from "./AirflowProvider";
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEjE,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE/D,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEjE,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/providers/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { default as DagStateProvider } from "./DagStateProvider";
|
|
2
1
|
export * from "./DagStateProvider";
|
|
3
|
-
export { default as
|
|
2
|
+
export { default as DagStateProvider } from "./DagStateProvider";
|
|
4
3
|
export * from "./SessionProvider";
|
|
5
|
-
export { default as
|
|
4
|
+
export { default as SessionProvider } from "./SessionProvider";
|
|
6
5
|
export * from "./SnackBarProvider";
|
|
7
|
-
export { default as
|
|
6
|
+
export { default as SnackBarProvider } from "./SnackBarProvider";
|
|
8
7
|
export * from "./AirflowProvider";
|
|
8
|
+
export { default as AirflowProvider } from "./AirflowProvider";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danikokonn/yarik-frontend-lib",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.51",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "",
|
|
@@ -15,26 +15,28 @@
|
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@eslint/js": "^9.34.0",
|
|
17
17
|
"@types/lodash.debounce": "^4.0.9",
|
|
18
|
-
"@types/moment-duration-format": "^2.2.
|
|
19
|
-
"@types/react": "^19.
|
|
20
|
-
"@types/react-dom": "^19.
|
|
21
|
-
"eslint": "^9.
|
|
18
|
+
"@types/moment-duration-format": "^2.2.7",
|
|
19
|
+
"@types/react": "^19.2.7",
|
|
20
|
+
"@types/react-dom": "^19.2.3",
|
|
21
|
+
"eslint": "^9.39.2",
|
|
22
22
|
"eslint-plugin-react": "^7.37.5",
|
|
23
|
-
"
|
|
23
|
+
"eslint-plugin-unicorn": "^62.0.0",
|
|
24
|
+
"globals": "^16.5.0",
|
|
24
25
|
"prettier": "3.6.2",
|
|
25
|
-
"react": "^19.
|
|
26
|
-
"react-dom": "^19.
|
|
26
|
+
"react": "^19.2.3",
|
|
27
|
+
"react-dom": "^19.2.3",
|
|
27
28
|
"ts-loader": "^9.5.4",
|
|
28
|
-
"tss-react": "^4.9.
|
|
29
|
-
"typescript": "^5.9.
|
|
30
|
-
"typescript-eslint": "^8.
|
|
29
|
+
"tss-react": "^4.9.20",
|
|
30
|
+
"typescript": "^5.9.3",
|
|
31
|
+
"typescript-eslint": "^8.49.0"
|
|
31
32
|
},
|
|
32
33
|
"dependencies": {
|
|
33
34
|
"@emotion/react": "^11.14.0",
|
|
34
35
|
"@emotion/styled": "^11.14.1",
|
|
35
|
-
"@mui/icons-material": "^7.3.
|
|
36
|
-
"@mui/material": "^7.3.
|
|
37
|
-
"@mui/x-date-pickers": "^8.
|
|
36
|
+
"@mui/icons-material": "^7.3.6",
|
|
37
|
+
"@mui/material": "^7.3.6",
|
|
38
|
+
"@mui/x-date-pickers": "^8.22.0",
|
|
39
|
+
"@tsconfig/strictest": "^2.0.8",
|
|
38
40
|
"css-loader": "^7.1.2",
|
|
39
41
|
"moment": "^2.30.1",
|
|
40
42
|
"moment-duration-format": "^2.3.2",
|
|
@@ -42,8 +44,8 @@
|
|
|
42
44
|
"notistack": "^3.0.2",
|
|
43
45
|
"react-imask": "^7.6.1",
|
|
44
46
|
"react-json-tree": "^0.20.0",
|
|
45
|
-
"react-router": "^7.
|
|
46
|
-
"react-virtuoso": "^4.
|
|
47
|
+
"react-router": "^7.10.1",
|
|
48
|
+
"react-virtuoso": "^4.17.0",
|
|
47
49
|
"style-loader": "^4.0.0",
|
|
48
50
|
"swr": "^2.3.7",
|
|
49
51
|
"transliteration": "^2.3.5"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TreeModeIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/TreeModeIcon.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,YAAY;;CAkBjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { createSvgIcon } from "@mui/material";
|
|
3
|
-
const TreeModeIcon = createSvgIcon(React.createElement("svg", { fill: "currentColor", viewBox: "0 0 256 256", id: "Flat", xmlns: "http://www.w3.org/2000/svg" },
|
|
4
|
-
React.createElement("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
|
|
5
|
-
React.createElement("g", { id: "SVGRepo_tracerCarrier", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
6
|
-
React.createElement("g", { id: "SVGRepo_iconCarrier" },
|
|
7
|
-
React.createElement("path", { d: "M156,92V80H144a16.01833,16.01833,0,0,0-16,16v64a16.01833,16.01833,0,0,0,16,16h12V164a16.01833,16.01833,0,0,1,16-16h40a16.01833,16.01833,0,0,1,16,16v40a16.01833,16.01833,0,0,1-16,16H172a16.01833,16.01833,0,0,1-16-16V192H144a32.03635,32.03635,0,0,1-32-32V136H84v8a16.01833,16.01833,0,0,1-16,16H36a16.01833,16.01833,0,0,1-16-16V112A16.01833,16.01833,0,0,1,36,96H68a16.01833,16.01833,0,0,1,16,16v8h28V96a32.03635,32.03635,0,0,1,32-32h12V52a16.01833,16.01833,0,0,1,16-16h40a16.01833,16.01833,0,0,1,16,16V92a16.01833,16.01833,0,0,1-16,16H172A16.01833,16.01833,0,0,1,156,92Z" }))), "TreeModeIcon");
|
|
8
|
-
export default TreeModeIcon;
|