flow-lib-creomnia 1.0.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 +12 -0
- package/lib/assets/icons/ChoiceNodeIcon.svg +16 -0
- package/lib/assets/icons/LeftArrowIcon.svg +3 -0
- package/lib/assets/icons/ParallelIcon.svg +5 -0
- package/lib/assets/icons/RightArrowIcon.svg +3 -0
- package/lib/assets/icons/flowIcon.svg +7 -0
- package/lib/config/colors.d.ts +13 -0
- package/lib/config/colors.js +16 -0
- package/lib/config/index.d.ts +20 -0
- package/lib/config/index.js +28 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +24 -0
- package/lib/modules/common/components/HorizontalDrawer/index.d.ts +9 -0
- package/lib/modules/common/components/HorizontalDrawer/index.js +86 -0
- package/lib/modules/common/components/ZoomToolbar/index.d.ts +8 -0
- package/lib/modules/common/components/ZoomToolbar/index.js +15 -0
- package/lib/modules/common/components/ZoomToolbar/styled.d.ts +9 -0
- package/lib/modules/common/components/ZoomToolbar/styled.js +13 -0
- package/lib/modules/common/components/index.d.ts +2 -0
- package/lib/modules/common/components/index.js +10 -0
- package/lib/modules/common/contexts/ThemeContext/index.d.ts +24 -0
- package/lib/modules/common/contexts/ThemeContext/index.js +9 -0
- package/lib/modules/common/hooks/useDragNode.d.ts +10 -0
- package/lib/modules/common/hooks/useDragNode.js +27 -0
- package/lib/modules/common/hooks/useDropNode.d.ts +11 -0
- package/lib/modules/common/hooks/useDropNode.js +16 -0
- package/lib/modules/common/types/index.d.ts +69 -0
- package/lib/modules/common/types/index.js +2 -0
- package/lib/modules/connection/components/AddButton/index.d.ts +16 -0
- package/lib/modules/connection/components/AddButton/index.js +45 -0
- package/lib/modules/connection/components/AddButton/styled.d.ts +29 -0
- package/lib/modules/connection/components/AddButton/styled.js +41 -0
- package/lib/modules/connection/components/BaseConnection/index.d.ts +4 -0
- package/lib/modules/connection/components/BaseConnection/index.js +40 -0
- package/lib/modules/connection/components/BaseConnection/styled.d.ts +18 -0
- package/lib/modules/connection/components/BaseConnection/styled.js +28 -0
- package/lib/modules/connection/components/ConnectionWithButton/index.d.ts +12 -0
- package/lib/modules/connection/components/ConnectionWithButton/index.js +83 -0
- package/lib/modules/connection/components/ConnectionWithButton/styled.d.ts +44 -0
- package/lib/modules/connection/components/ConnectionWithButton/styled.js +55 -0
- package/lib/modules/connection/enums/index.d.ts +4 -0
- package/lib/modules/connection/enums/index.js +8 -0
- package/lib/modules/connection/index.d.ts +9 -0
- package/lib/modules/connection/index.js +11 -0
- package/lib/modules/connection/services/connectionParametersServices.d.ts +28 -0
- package/lib/modules/connection/services/connectionParametersServices.js +84 -0
- package/lib/modules/connection/services/connectionServices.d.ts +7 -0
- package/lib/modules/connection/services/connectionServices.js +82 -0
- package/lib/modules/connection/types/index.d.ts +41 -0
- package/lib/modules/connection/types/index.js +2 -0
- package/lib/modules/flow/components/FlowSandbox/index.d.ts +18 -0
- package/lib/modules/flow/components/FlowSandbox/index.js +63 -0
- package/lib/modules/flow/components/FlowSandbox/styled.d.ts +9 -0
- package/lib/modules/flow/components/FlowSandbox/styled.js +32 -0
- package/lib/modules/flow/components/NodesFlow/index.d.ts +4 -0
- package/lib/modules/flow/components/NodesFlow/index.js +36 -0
- package/lib/modules/flow/components/Space/index.d.ts +3 -0
- package/lib/modules/flow/components/Space/index.js +35 -0
- package/lib/modules/flow/components/Space/styled.d.ts +2 -0
- package/lib/modules/flow/components/Space/styled.js +13 -0
- package/lib/modules/flow/context/FlowPosition/index.d.ts +13 -0
- package/lib/modules/flow/context/FlowPosition/index.js +23 -0
- package/lib/modules/flow/types/index.d.ts +29 -0
- package/lib/modules/flow/types/index.js +2 -0
- package/lib/modules/node/components/BaseNode/index.d.ts +4 -0
- package/lib/modules/node/components/BaseNode/index.js +51 -0
- package/lib/modules/node/components/BaseNode/styled.d.ts +18 -0
- package/lib/modules/node/components/BaseNode/styled.js +98 -0
- package/lib/modules/node/components/ChoiseNode/index.d.ts +4 -0
- package/lib/modules/node/components/ChoiseNode/index.js +45 -0
- package/lib/modules/node/components/ChoiseNode/styled.d.ts +20 -0
- package/lib/modules/node/components/ChoiseNode/styled.js +39 -0
- package/lib/modules/node/components/DragWrapper/index.d.ts +8 -0
- package/lib/modules/node/components/DragWrapper/index.js +15 -0
- package/lib/modules/node/components/EndNode/index.d.ts +3 -0
- package/lib/modules/node/components/EndNode/index.js +8 -0
- package/lib/modules/node/components/EndNode/styled.d.ts +16 -0
- package/lib/modules/node/components/EndNode/styled.js +22 -0
- package/lib/modules/node/components/HubNode/index.d.ts +3 -0
- package/lib/modules/node/components/HubNode/index.js +8 -0
- package/lib/modules/node/components/HubNode/styled.d.ts +2 -0
- package/lib/modules/node/components/HubNode/styled.js +12 -0
- package/lib/modules/node/components/NodesMenu/index.d.ts +14 -0
- package/lib/modules/node/components/NodesMenu/index.js +28 -0
- package/lib/modules/node/components/NodesMenu/styled.d.ts +127 -0
- package/lib/modules/node/components/NodesMenu/styled.js +69 -0
- package/lib/modules/node/components/ParallelNode/index.d.ts +4 -0
- package/lib/modules/node/components/ParallelNode/index.js +22 -0
- package/lib/modules/node/components/ParallelNode/styled.d.ts +2 -0
- package/lib/modules/node/components/ParallelNode/styled.js +16 -0
- package/lib/modules/node/components/StartNode/index.d.ts +3 -0
- package/lib/modules/node/components/StartNode/index.js +8 -0
- package/lib/modules/node/components/StartNode/styled.d.ts +16 -0
- package/lib/modules/node/components/StartNode/styled.js +22 -0
- package/lib/modules/node/contexts/SettingsContext/index.d.ts +10 -0
- package/lib/modules/node/contexts/SettingsContext/index.js +47 -0
- package/lib/modules/node/contexts/SettingsContext/styled.d.ts +20 -0
- package/lib/modules/node/contexts/SettingsContext/styled.js +40 -0
- package/lib/modules/node/enums/index.d.ts +8 -0
- package/lib/modules/node/enums/index.js +12 -0
- package/lib/modules/node/index.d.ts +10 -0
- package/lib/modules/node/index.js +22 -0
- package/lib/modules/node/services/expandCoefficientServices.d.ts +24 -0
- package/lib/modules/node/services/expandCoefficientServices.js +47 -0
- package/lib/modules/node/services/nodeServices.d.ts +11 -0
- package/lib/modules/node/services/nodeServices.js +145 -0
- package/lib/modules/node/services/pointCalculationServices.d.ts +11 -0
- package/lib/modules/node/services/pointCalculationServices.js +22 -0
- package/lib/modules/node/types/index.d.ts +49 -0
- package/lib/modules/node/types/index.js +2 -0
- package/package.json +65 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const IconContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
|
+
export declare const Icon: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
children?: import("react").ReactNode;
|
|
5
|
+
classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
|
|
6
|
+
color?: import("@mui/types").OverridableStringUnion<"error" | "inherit" | "action" | "disabled" | "success" | "info" | "warning" | "primary" | "secondary", import("@mui/material").SvgIconPropsColorOverrides> | undefined;
|
|
7
|
+
fontSize?: import("@mui/types").OverridableStringUnion<"small" | "medium" | "inherit" | "large", import("@mui/material").SvgIconPropsSizeOverrides> | undefined;
|
|
8
|
+
htmlColor?: string | undefined;
|
|
9
|
+
inheritViewBox?: boolean | undefined;
|
|
10
|
+
shapeRendering?: string | undefined;
|
|
11
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
12
|
+
titleAccess?: string | undefined;
|
|
13
|
+
viewBox?: string | undefined;
|
|
14
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
|
|
15
|
+
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
16
|
+
}, "color" | "fontSize" | "shapeRendering" | "children" | "viewBox" | "sx" | keyof import("@mui/material/OverridableComponent").CommonProps | "htmlColor" | "inheritViewBox" | "titleAccess"> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, {}, {}>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Icon = exports.IconContainer = void 0;
|
|
7
|
+
const system_1 = require("@mui/system");
|
|
8
|
+
const Stop_1 = __importDefault(require("@mui/icons-material/Stop"));
|
|
9
|
+
const config_1 = require("../../../../config");
|
|
10
|
+
const colors_1 = require("../../../../config/colors");
|
|
11
|
+
exports.IconContainer = (0, system_1.styled)('div') `
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
align-items: center;
|
|
15
|
+
background: ${colors_1.Colors.NAVY_BLUE};
|
|
16
|
+
height: ${config_1.Config.EDGE_NODE_HEIGHT}px;
|
|
17
|
+
min-width: ${config_1.Config.EDGE_NODE_HEIGHT}px;
|
|
18
|
+
border-radius: 100%;
|
|
19
|
+
`;
|
|
20
|
+
exports.Icon = (0, system_1.styled)(Stop_1.default) `
|
|
21
|
+
color: ${colors_1.Colors.WHITE};
|
|
22
|
+
`;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const styled_1 = require("./styled");
|
|
5
|
+
const HubNode = () => {
|
|
6
|
+
return (0, jsx_runtime_1.jsx)(styled_1.NodeHubStyledComponent, {});
|
|
7
|
+
};
|
|
8
|
+
exports.default = HubNode;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const NodeHubStyledComponent: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NodeHubStyledComponent = void 0;
|
|
4
|
+
const system_1 = require("@mui/system");
|
|
5
|
+
const config_1 = require("../../../../config");
|
|
6
|
+
const colors_1 = require("../../../../config/colors");
|
|
7
|
+
exports.NodeHubStyledComponent = (0, system_1.styled)('div') `
|
|
8
|
+
min-width: 50px;
|
|
9
|
+
min-height: ${config_1.Config.HUB_NODE_HEIGHT}px;
|
|
10
|
+
background: ${colors_1.Colors.NAVY_BLUE};
|
|
11
|
+
border-radius: 5px;
|
|
12
|
+
`;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { AddNewNodeCallbackType } from '../../../flow/types';
|
|
3
|
+
import { MenuTabType } from '../../../common/types';
|
|
4
|
+
type PropsType = {
|
|
5
|
+
menuTabs: MenuTabType[];
|
|
6
|
+
onCloseMenu: () => void;
|
|
7
|
+
data: {
|
|
8
|
+
parentId: string | undefined;
|
|
9
|
+
connectionIndex: number;
|
|
10
|
+
};
|
|
11
|
+
addNewNodeCallback?: AddNewNodeCallbackType;
|
|
12
|
+
};
|
|
13
|
+
declare const NodesMenu: FC<PropsType>;
|
|
14
|
+
export default NodesMenu;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const styled_1 = require("./styled");
|
|
9
|
+
const Grid_1 = __importDefault(require("@mui/material/Grid"));
|
|
10
|
+
const NodesMenu = ({ addNewNodeCallback, menuTabs, data, onCloseMenu, }) => {
|
|
11
|
+
const [value, setValue] = (0, react_1.useState)(menuTabs?.[0].name);
|
|
12
|
+
const handleChange = (_, newValue) => {
|
|
13
|
+
setValue(newValue);
|
|
14
|
+
};
|
|
15
|
+
const tab = (0, react_1.useMemo)(() => menuTabs.reduce((tabContentByTabName, tab) => ({
|
|
16
|
+
...tabContentByTabName,
|
|
17
|
+
[tab.name]: tab.menuItems,
|
|
18
|
+
}), {}), [menuTabs]);
|
|
19
|
+
const onMenuItemClick = (nodeId) => {
|
|
20
|
+
addNewNodeCallback?.({
|
|
21
|
+
...data,
|
|
22
|
+
menuItemId: nodeId,
|
|
23
|
+
});
|
|
24
|
+
onCloseMenu();
|
|
25
|
+
};
|
|
26
|
+
return ((0, jsx_runtime_1.jsxs)(styled_1.MenuContainer, { children: [(0, jsx_runtime_1.jsxs)(Grid_1.default, { alignItems: 'center', container: true, p: '8px 8px 0 0', children: [(0, jsx_runtime_1.jsx)(Grid_1.default, { flexGrow: 1, item: true, children: (0, jsx_runtime_1.jsx)(styled_1.StyledTabs, { value: value, onChange: handleChange, textColor: 'primary', indicatorColor: 'primary', children: menuTabs.map((tab) => ((0, jsx_runtime_1.jsx)(styled_1.StyledTab, { value: tab.name, label: tab.name }, tab.name))) }) }), (0, jsx_runtime_1.jsx)(Grid_1.default, { item: true, children: (0, jsx_runtime_1.jsx)(styled_1.Close, { onClick: onCloseMenu }) })] }), (0, jsx_runtime_1.jsx)(styled_1.ContentContainer, { children: tab[value].map((menuItem) => ((0, jsx_runtime_1.jsxs)(styled_1.MenuItem, { onClick: () => onMenuItemClick(menuItem.value), children: [(0, jsx_runtime_1.jsx)(styled_1.IconWrapper, { children: menuItem.icon }), menuItem.name] }, menuItem.value))) })] }));
|
|
27
|
+
};
|
|
28
|
+
exports.default = NodesMenu;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const MenuContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
component?: import("react").ElementType<any> | undefined;
|
|
5
|
+
ref?: import("react").Ref<unknown> | undefined;
|
|
6
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
7
|
+
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
8
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
9
|
+
}, "children" | "ref" | ("flex" | "height" | "width" | "left" | "top" | "alignContent" | "alignItems" | "alignSelf" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gap" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridRow" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lineHeight" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "overflow" | "padding" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "visibility" | "whiteSpace" | "zIndex" | "p" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, {}, {}>;
|
|
10
|
+
export declare const TabContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
|
+
export declare const StyledTabs: import("@emotion/styled").StyledComponent<{
|
|
12
|
+
action?: import("react").Ref<import("@mui/material").TabsActions> | undefined;
|
|
13
|
+
allowScrollButtonsMobile?: boolean | undefined;
|
|
14
|
+
'aria-label'?: string | undefined;
|
|
15
|
+
'aria-labelledby'?: string | undefined;
|
|
16
|
+
centered?: boolean | undefined;
|
|
17
|
+
children?: import("react").ReactNode;
|
|
18
|
+
classes?: Partial<import("@mui/material").TabsClasses> | undefined;
|
|
19
|
+
slots?: {
|
|
20
|
+
StartScrollButtonIcon?: import("react").ElementType<any> | undefined;
|
|
21
|
+
EndScrollButtonIcon?: import("react").ElementType<any> | undefined;
|
|
22
|
+
} | undefined;
|
|
23
|
+
slotProps?: {
|
|
24
|
+
startScrollButtonIcon?: import("@mui/base").SlotComponentProps<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
25
|
+
muiName: string;
|
|
26
|
+
}, import("@mui/material").TabsStartScrollButtonIconSlotPropsOverrides, import("@mui/material").TabsOwnerState> | undefined;
|
|
27
|
+
endScrollButtonIcon?: import("@mui/base").SlotComponentProps<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
28
|
+
muiName: string;
|
|
29
|
+
}, import("@mui/material").TabsEndScrollButtonIconSlotPropsOverrides, import("@mui/material").TabsOwnerState> | undefined;
|
|
30
|
+
} | undefined;
|
|
31
|
+
indicatorColor?: import("@mui/types").OverridableStringUnion<"primary" | "secondary", import("@mui/material").TabsPropsIndicatorColorOverrides> | undefined;
|
|
32
|
+
onChange?: ((event: import("react").SyntheticEvent<Element, Event>, value: any) => void) | undefined;
|
|
33
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
34
|
+
ScrollButtonComponent?: import("react").ElementType<any> | undefined;
|
|
35
|
+
scrollButtons?: boolean | "auto" | undefined;
|
|
36
|
+
selectionFollowsFocus?: boolean | undefined;
|
|
37
|
+
TabIndicatorProps?: (import("react").HTMLAttributes<HTMLDivElement> & {
|
|
38
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
39
|
+
}) | undefined;
|
|
40
|
+
TabScrollButtonProps?: Partial<import("@mui/material").TabScrollButtonProps> | undefined;
|
|
41
|
+
textColor?: "inherit" | "primary" | "secondary" | undefined;
|
|
42
|
+
value?: any;
|
|
43
|
+
variant?: "standard" | "fullWidth" | "scrollable" | undefined;
|
|
44
|
+
visibleScrollbar?: boolean | undefined;
|
|
45
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
46
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<{
|
|
47
|
+
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
48
|
+
centerRipple?: boolean | undefined;
|
|
49
|
+
children?: import("react").ReactNode;
|
|
50
|
+
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
51
|
+
disabled?: boolean | undefined;
|
|
52
|
+
disableRipple?: boolean | undefined;
|
|
53
|
+
disableTouchRipple?: boolean | undefined;
|
|
54
|
+
focusRipple?: boolean | undefined;
|
|
55
|
+
focusVisibleClassName?: string | undefined;
|
|
56
|
+
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
57
|
+
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
58
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
59
|
+
tabIndex?: number | undefined;
|
|
60
|
+
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
61
|
+
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
62
|
+
} & Omit<{
|
|
63
|
+
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
64
|
+
centerRipple?: boolean | undefined;
|
|
65
|
+
children?: import("react").ReactNode;
|
|
66
|
+
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
67
|
+
disabled?: boolean | undefined;
|
|
68
|
+
disableRipple?: boolean | undefined;
|
|
69
|
+
disableTouchRipple?: boolean | undefined;
|
|
70
|
+
focusRipple?: boolean | undefined;
|
|
71
|
+
focusVisibleClassName?: string | undefined;
|
|
72
|
+
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
73
|
+
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
74
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
75
|
+
tabIndex?: number | undefined;
|
|
76
|
+
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
77
|
+
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
78
|
+
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
79
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
80
|
+
}, "action" | "children" | "tabIndex" | "disabled" | "sx" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef">, "variant" | "value" | "action" | "children" | "orientation" | "aria-label" | "aria-labelledby" | "onChange" | "sx" | keyof import("@mui/material/OverridableComponent").CommonProps | "slotProps" | "slots" | "selectionFollowsFocus" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar"> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, {}, {}>;
|
|
81
|
+
export declare const StyledTab: import("@emotion/styled").StyledComponent<{
|
|
82
|
+
children?: null | undefined;
|
|
83
|
+
classes?: Partial<import("@mui/material").TabClasses> | undefined;
|
|
84
|
+
disabled?: boolean | undefined;
|
|
85
|
+
disableFocusRipple?: boolean | undefined;
|
|
86
|
+
icon?: string | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
87
|
+
iconPosition?: "end" | "start" | "top" | "bottom" | undefined;
|
|
88
|
+
label?: import("react").ReactNode;
|
|
89
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
90
|
+
value?: any;
|
|
91
|
+
wrapped?: boolean | undefined;
|
|
92
|
+
} & Omit<{
|
|
93
|
+
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
94
|
+
centerRipple?: boolean | undefined;
|
|
95
|
+
children?: import("react").ReactNode;
|
|
96
|
+
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
97
|
+
disabled?: boolean | undefined;
|
|
98
|
+
disableRipple?: boolean | undefined;
|
|
99
|
+
disableTouchRipple?: boolean | undefined;
|
|
100
|
+
focusRipple?: boolean | undefined;
|
|
101
|
+
focusVisibleClassName?: string | undefined;
|
|
102
|
+
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
103
|
+
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
104
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
105
|
+
tabIndex?: number | undefined;
|
|
106
|
+
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
107
|
+
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
108
|
+
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
109
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
110
|
+
}, "value" | "label" | "action" | "children" | "tabIndex" | "disabled" | "icon" | "sx" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "iconPosition" | "wrapped"> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, {}, {}>;
|
|
111
|
+
export declare const ContentContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
112
|
+
export declare const Close: import("@emotion/styled").StyledComponent<{
|
|
113
|
+
children?: import("react").ReactNode;
|
|
114
|
+
classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
|
|
115
|
+
color?: import("@mui/types").OverridableStringUnion<"error" | "inherit" | "action" | "disabled" | "success" | "info" | "warning" | "primary" | "secondary", import("@mui/material").SvgIconPropsColorOverrides> | undefined;
|
|
116
|
+
fontSize?: import("@mui/types").OverridableStringUnion<"small" | "medium" | "inherit" | "large", import("@mui/material").SvgIconPropsSizeOverrides> | undefined;
|
|
117
|
+
htmlColor?: string | undefined;
|
|
118
|
+
inheritViewBox?: boolean | undefined;
|
|
119
|
+
shapeRendering?: string | undefined;
|
|
120
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
121
|
+
titleAccess?: string | undefined;
|
|
122
|
+
viewBox?: string | undefined;
|
|
123
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
|
|
124
|
+
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
125
|
+
}, "color" | "fontSize" | "shapeRendering" | "children" | "viewBox" | "sx" | keyof import("@mui/material/OverridableComponent").CommonProps | "htmlColor" | "inheritViewBox" | "titleAccess"> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, {}, {}>;
|
|
126
|
+
export declare const MenuItem: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
127
|
+
export declare const IconWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.IconWrapper = exports.MenuItem = exports.Close = exports.ContentContainer = exports.StyledTab = exports.StyledTabs = exports.TabContainer = exports.MenuContainer = void 0;
|
|
7
|
+
const system_1 = require("@mui/system");
|
|
8
|
+
const material_1 = require("@mui/material");
|
|
9
|
+
const Close_1 = __importDefault(require("@mui/icons-material/Close"));
|
|
10
|
+
exports.MenuContainer = (0, system_1.styled)(material_1.Box)(({ theme }) => ({
|
|
11
|
+
width: '292px',
|
|
12
|
+
height: '256px',
|
|
13
|
+
borderRadius: '16px',
|
|
14
|
+
background: theme.palette.background.paper,
|
|
15
|
+
color: theme.palette.text.primary,
|
|
16
|
+
paddingBottom: '6px',
|
|
17
|
+
boxShadow: '0px 9px 46px rgba(0, 0, 0, 0.08)',
|
|
18
|
+
overflow: 'hidden',
|
|
19
|
+
colorScheme: theme.palette.mode
|
|
20
|
+
}));
|
|
21
|
+
exports.TabContainer = (0, system_1.styled)("div") `
|
|
22
|
+
margin-top: 4px;
|
|
23
|
+
overflow-x: scroll;
|
|
24
|
+
`;
|
|
25
|
+
exports.StyledTabs = (0, system_1.styled)(material_1.Tabs) `
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: flex-start;
|
|
28
|
+
width: max-content;
|
|
29
|
+
min-height: 40px;
|
|
30
|
+
`;
|
|
31
|
+
exports.StyledTab = (0, system_1.styled)(material_1.Tab) `
|
|
32
|
+
min-height: 40px;
|
|
33
|
+
`;
|
|
34
|
+
exports.ContentContainer = (0, system_1.styled)("div") `
|
|
35
|
+
height: 206px;
|
|
36
|
+
overflow-y: scroll;
|
|
37
|
+
`;
|
|
38
|
+
exports.Close = (0, system_1.styled)(Close_1.default) `
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
font-size: 24px;
|
|
41
|
+
display: flex;
|
|
42
|
+
margin: 8px;
|
|
43
|
+
`;
|
|
44
|
+
exports.MenuItem = (0, system_1.styled)("div") `
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
gap: 8px;
|
|
48
|
+
padding: 8px 12px;
|
|
49
|
+
margin: 4px;
|
|
50
|
+
border-radius: 12px;
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
font-family: Inter;
|
|
53
|
+
font-size: 0.875rem;
|
|
54
|
+
font-weight: 600;
|
|
55
|
+
line-height: 24px;
|
|
56
|
+
:hover {
|
|
57
|
+
background: ${props => `${props.theme.palette?.background?.default}`};;
|
|
58
|
+
}
|
|
59
|
+
`;
|
|
60
|
+
exports.IconWrapper = (0, system_1.styled)("div") `
|
|
61
|
+
width: 24px;
|
|
62
|
+
height: 24px;
|
|
63
|
+
display: flex;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
align-items: center;
|
|
66
|
+
border-radius: 6px;
|
|
67
|
+
object-fit: contain;
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
`;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const ParallelIcon_svg_1 = __importDefault(require("../../../../assets/icons/ParallelIcon.svg"));
|
|
9
|
+
const styled_1 = require("./styled");
|
|
10
|
+
const react_svg_1 = require("react-svg");
|
|
11
|
+
const SettingsContext_1 = require("../../contexts/SettingsContext");
|
|
12
|
+
const ParallelNode = ({ nodeData }) => {
|
|
13
|
+
const { setNode } = (0, react_1.useContext)(SettingsContext_1.SettingsContext);
|
|
14
|
+
const nodeDataWithoutSettings = nodeData
|
|
15
|
+
? { ...nodeData, settings: { ...nodeData.settings, settingsForm: undefined } }
|
|
16
|
+
: null;
|
|
17
|
+
const onNodeClick = () => {
|
|
18
|
+
setNode(nodeDataWithoutSettings);
|
|
19
|
+
};
|
|
20
|
+
return ((0, jsx_runtime_1.jsx)(styled_1.Container, { onClick: onNodeClick, children: (0, jsx_runtime_1.jsx)(react_svg_1.ReactSVG, { src: ParallelIcon_svg_1.default }) }));
|
|
21
|
+
};
|
|
22
|
+
exports.default = ParallelNode;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Container: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Container = void 0;
|
|
4
|
+
const system_1 = require("@mui/system");
|
|
5
|
+
const config_1 = require("../../../../config");
|
|
6
|
+
const colors_1 = require("../../../../config/colors");
|
|
7
|
+
exports.Container = (0, system_1.styled)('div') `
|
|
8
|
+
height: ${config_1.Config.PARALLEL_NODE_HEIGHT}px;
|
|
9
|
+
min-width: ${config_1.Config.PARALLEL_NODE_HEIGHT}px;
|
|
10
|
+
border-radius: 32px;
|
|
11
|
+
background-color: ${colors_1.Colors.NAVY_BLUE};
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
align-items: center;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
`;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const styled_1 = require("./styled");
|
|
5
|
+
const StartNode = () => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)(styled_1.IconContainer, { children: (0, jsx_runtime_1.jsx)(styled_1.Icon, {}) }));
|
|
7
|
+
};
|
|
8
|
+
exports.default = StartNode;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const IconContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
|
+
export declare const Icon: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
children?: import("react").ReactNode;
|
|
5
|
+
classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
|
|
6
|
+
color?: import("@mui/types").OverridableStringUnion<"error" | "inherit" | "action" | "disabled" | "success" | "info" | "warning" | "primary" | "secondary", import("@mui/material").SvgIconPropsColorOverrides> | undefined;
|
|
7
|
+
fontSize?: import("@mui/types").OverridableStringUnion<"small" | "medium" | "inherit" | "large", import("@mui/material").SvgIconPropsSizeOverrides> | undefined;
|
|
8
|
+
htmlColor?: string | undefined;
|
|
9
|
+
inheritViewBox?: boolean | undefined;
|
|
10
|
+
shapeRendering?: string | undefined;
|
|
11
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
12
|
+
titleAccess?: string | undefined;
|
|
13
|
+
viewBox?: string | undefined;
|
|
14
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
|
|
15
|
+
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
16
|
+
}, "color" | "fontSize" | "shapeRendering" | "children" | "viewBox" | "sx" | keyof import("@mui/material/OverridableComponent").CommonProps | "htmlColor" | "inheritViewBox" | "titleAccess"> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, {}, {}>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Icon = exports.IconContainer = void 0;
|
|
7
|
+
const system_1 = require("@mui/system");
|
|
8
|
+
const PlayArrow_1 = __importDefault(require("@mui/icons-material/PlayArrow"));
|
|
9
|
+
const config_1 = require("../../../../config");
|
|
10
|
+
const colors_1 = require("../../../../config/colors");
|
|
11
|
+
exports.IconContainer = (0, system_1.styled)('div') `
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
align-items: center;
|
|
15
|
+
background: ${colors_1.Colors.GREEN};
|
|
16
|
+
height: ${config_1.Config.EDGE_NODE_HEIGHT}px;
|
|
17
|
+
min-width: ${config_1.Config.EDGE_NODE_HEIGHT}px;
|
|
18
|
+
border-radius: 100%;
|
|
19
|
+
`;
|
|
20
|
+
exports.Icon = (0, system_1.styled)(PlayArrow_1.default) `
|
|
21
|
+
color: ${colors_1.Colors.WHITE};
|
|
22
|
+
`;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from "react";
|
|
2
|
+
import { SettingsContextValueType } from "../../types";
|
|
3
|
+
import { IDrawerProps, Permissions } from "../../../flow/types";
|
|
4
|
+
type IProps = PropsWithChildren & {
|
|
5
|
+
permissions: Permissions;
|
|
6
|
+
drawerProps: IDrawerProps;
|
|
7
|
+
};
|
|
8
|
+
declare const SettingsContext: import("react").Context<SettingsContextValueType>;
|
|
9
|
+
declare const NodeSettingsProvider: FC<IProps>;
|
|
10
|
+
export { NodeSettingsProvider, SettingsContext };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SettingsContext = exports.NodeSettingsProvider = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const material_1 = require("@mui/material");
|
|
7
|
+
const styled_1 = require("./styled");
|
|
8
|
+
const material_2 = require("@mui/material");
|
|
9
|
+
const config_1 = require("../../../../config");
|
|
10
|
+
const components_1 = require("../../../common/components");
|
|
11
|
+
const settingsContextValue = {
|
|
12
|
+
node: null,
|
|
13
|
+
setNode: () => ({}),
|
|
14
|
+
};
|
|
15
|
+
const SettingsContext = (0, react_1.createContext)(settingsContextValue);
|
|
16
|
+
exports.SettingsContext = SettingsContext;
|
|
17
|
+
const NodeSettingsProvider = ({ children, permissions: { canUpdate, canDelete }, drawerProps: { isOpen, onClose, onOpen }, }) => {
|
|
18
|
+
const [node, setNodeBase] = (0, react_1.useState)(null);
|
|
19
|
+
const setNode = (nodeData) => {
|
|
20
|
+
const delay = node ? config_1.Config.SET_NODE_DELAY : 0;
|
|
21
|
+
setTimeout(() => {
|
|
22
|
+
setNodeBase(nodeData || null);
|
|
23
|
+
onOpen();
|
|
24
|
+
}, delay);
|
|
25
|
+
};
|
|
26
|
+
const isNodeWithoutSave = node?.type && config_1.Config.NODES_WITHOUT_SAVE_BUTTON.includes(node?.type);
|
|
27
|
+
const handleClose = () => {
|
|
28
|
+
onClose();
|
|
29
|
+
setTimeout(() => {
|
|
30
|
+
setNodeBase(null);
|
|
31
|
+
}, config_1.Config.CLEAR_NODE_DELAY);
|
|
32
|
+
};
|
|
33
|
+
const onSaveNode = () => {
|
|
34
|
+
node?.settings?.footer?.onSave?.(node?.id);
|
|
35
|
+
handleClose();
|
|
36
|
+
};
|
|
37
|
+
const onCancel = () => {
|
|
38
|
+
node?.settings?.footer?.onCancel?.(node?.id);
|
|
39
|
+
handleClose();
|
|
40
|
+
};
|
|
41
|
+
const onDeleteNode = () => {
|
|
42
|
+
node?.settings?.footer?.onDelete?.(node?.id);
|
|
43
|
+
handleClose();
|
|
44
|
+
};
|
|
45
|
+
return ((0, jsx_runtime_1.jsxs)(SettingsContext.Provider, { value: { node, setNode }, children: [children, canUpdate && ((0, jsx_runtime_1.jsx)(components_1.HorizontalDrawer, { open: isOpen, onClose: handleClose, HeaderContent: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(styled_1.IconWrapper, { children: [(0, jsx_runtime_1.jsx)(styled_1.IconBorder, {}), node?.icon] }), (0, jsx_runtime_1.jsx)(styled_1.NameContainer, { children: node?.extensionName })] }), Content: (0, jsx_runtime_1.jsxs)(styled_1.SettingsContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, { display: 'flex', flexDirection: 'column', flexGrow: 1, children: node?.settings?.settingsForm }), node?.settings?.customFooter ?? ((0, jsx_runtime_1.jsxs)(styled_1.DefaultFooterContainer, { children: [!isNodeWithoutSave && ((0, jsx_runtime_1.jsx)(material_2.Button, { onClick: onSaveNode, variant: "contained", children: node?.settings?.footer?.saveText || "Save" })), (0, jsx_runtime_1.jsx)(material_1.Box, { flexGrow: 1, children: (0, jsx_runtime_1.jsx)(material_2.Button, { variant: "outlined", onClick: onCancel, children: node?.settings?.footer?.cancelText || "Cancel " }) }), canDelete && ((0, jsx_runtime_1.jsx)(material_2.Button, { onClick: onDeleteNode, color: "error", variant: "text", children: node?.settings?.footer?.deleteText || "Delete node" }))] }))] }) }))] }));
|
|
46
|
+
};
|
|
47
|
+
exports.NodeSettingsProvider = NodeSettingsProvider;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SettingsContent: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
component?: import("react").ElementType<any> | undefined;
|
|
5
|
+
ref?: import("react").Ref<unknown> | undefined;
|
|
6
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
7
|
+
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
8
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
9
|
+
}, "children" | "ref" | ("flex" | "height" | "width" | "left" | "top" | "alignContent" | "alignItems" | "alignSelf" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gap" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridRow" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lineHeight" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "overflow" | "padding" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "visibility" | "whiteSpace" | "zIndex" | "p" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, {}, {}>;
|
|
10
|
+
export declare const DefaultFooterContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
|
|
11
|
+
children?: import("react").ReactNode;
|
|
12
|
+
component?: import("react").ElementType<any> | undefined;
|
|
13
|
+
ref?: import("react").Ref<unknown> | undefined;
|
|
14
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
15
|
+
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
17
|
+
}, "children" | "ref" | ("flex" | "height" | "width" | "left" | "top" | "alignContent" | "alignItems" | "alignSelf" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gap" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridRow" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lineHeight" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "overflow" | "padding" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "visibility" | "whiteSpace" | "zIndex" | "p" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint") | "component" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, {}, {}>;
|
|
18
|
+
export declare const IconBorder: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
|
+
export declare const IconWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
20
|
+
export declare const NameContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NameContainer = exports.IconWrapper = exports.IconBorder = exports.DefaultFooterContainer = exports.SettingsContent = void 0;
|
|
4
|
+
const material_1 = require("@mui/material");
|
|
5
|
+
const system_1 = require("@mui/system");
|
|
6
|
+
exports.SettingsContent = (0, system_1.styled)(material_1.Box) `
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
height: 100%;
|
|
10
|
+
`;
|
|
11
|
+
exports.DefaultFooterContainer = (0, system_1.styled)(material_1.Box) `
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: 24px;
|
|
15
|
+
margin-top: 20px;
|
|
16
|
+
`;
|
|
17
|
+
exports.IconBorder = (0, system_1.styled)('div') `
|
|
18
|
+
position: absolute;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
border-radius: 6px;
|
|
22
|
+
border: 1px solid rgba(17, 25, 39, 0.12);
|
|
23
|
+
`;
|
|
24
|
+
exports.IconWrapper = (0, system_1.styled)("div") `
|
|
25
|
+
width: 56px;
|
|
26
|
+
height: 56px;
|
|
27
|
+
background: #f3f3f3;
|
|
28
|
+
display: flex;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
align-items: center;
|
|
31
|
+
border-radius: 6px;
|
|
32
|
+
object-fit: contain;
|
|
33
|
+
position: relative;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
`;
|
|
36
|
+
exports.NameContainer = (0, system_1.styled)("div") `
|
|
37
|
+
font-size: 18px;
|
|
38
|
+
font-weight: 700;
|
|
39
|
+
text-align: left;
|
|
40
|
+
`;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NodeTypeEnum = void 0;
|
|
4
|
+
var NodeTypeEnum;
|
|
5
|
+
(function (NodeTypeEnum) {
|
|
6
|
+
NodeTypeEnum["BaseNode"] = "baseNode";
|
|
7
|
+
NodeTypeEnum["StartNode"] = "startNode";
|
|
8
|
+
NodeTypeEnum["EndNode"] = "endNode";
|
|
9
|
+
NodeTypeEnum["HubNode"] = "hubNode";
|
|
10
|
+
NodeTypeEnum["ChoiceNode"] = "choiceNode";
|
|
11
|
+
NodeTypeEnum["ParallelNode"] = "parallelNode";
|
|
12
|
+
})(NodeTypeEnum || (exports.NodeTypeEnum = NodeTypeEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { NodeTypeEnum } from './enums';
|
|
3
|
+
import { BaseDrawableNodeType } from './types';
|
|
4
|
+
type ModuleType = {
|
|
5
|
+
nodes: {
|
|
6
|
+
[key in NodeTypeEnum]: React.FC<BaseDrawableNodeType>;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare const nodeModule: ModuleType;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.nodeModule = void 0;
|
|
7
|
+
const BaseNode_1 = __importDefault(require("./components/BaseNode"));
|
|
8
|
+
const ChoiseNode_1 = __importDefault(require("./components/ChoiseNode"));
|
|
9
|
+
const EndNode_1 = __importDefault(require("./components/EndNode"));
|
|
10
|
+
const HubNode_1 = __importDefault(require("./components/HubNode"));
|
|
11
|
+
const ParallelNode_1 = __importDefault(require("./components/ParallelNode"));
|
|
12
|
+
const StartNode_1 = __importDefault(require("./components/StartNode"));
|
|
13
|
+
exports.nodeModule = {
|
|
14
|
+
nodes: {
|
|
15
|
+
baseNode: BaseNode_1.default,
|
|
16
|
+
startNode: StartNode_1.default,
|
|
17
|
+
endNode: EndNode_1.default,
|
|
18
|
+
hubNode: HubNode_1.default,
|
|
19
|
+
choiceNode: ChoiseNode_1.default,
|
|
20
|
+
parallelNode: ParallelNode_1.default
|
|
21
|
+
},
|
|
22
|
+
};
|