@uipath/apollo-react 3.70.2 → 3.70.3-pr482.0700da2
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/canvas/components/AddNodePanel/AddNodePreview.cjs +9 -9
- package/dist/canvas/components/AddNodePanel/AddNodePreview.d.ts.map +1 -1
- package/dist/canvas/components/AddNodePanel/AddNodePreview.js +9 -9
- package/dist/canvas/components/AgentCanvas/components/SuggestionGroupPanel.cjs +40 -39
- package/dist/canvas/components/AgentCanvas/components/SuggestionGroupPanel.d.ts.map +1 -1
- package/dist/canvas/components/AgentCanvas/components/SuggestionGroupPanel.js +41 -40
- package/dist/canvas/components/AgentCanvas/components/TimelinePlayer.cjs +13 -9
- package/dist/canvas/components/AgentCanvas/components/TimelinePlayer.js +14 -10
- package/dist/canvas/components/AgentCanvas/nodes/AgentNode.cjs +5 -5
- package/dist/canvas/components/AgentCanvas/nodes/AgentNode.d.ts.map +1 -1
- package/dist/canvas/components/AgentCanvas/nodes/AgentNode.js +5 -5
- package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.cjs +22 -26
- package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.d.ts.map +1 -1
- package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.js +22 -26
- package/dist/canvas/components/BaseCanvas/CanvasProviders.cjs +15 -7
- package/dist/canvas/components/BaseCanvas/CanvasProviders.d.ts.map +1 -1
- package/dist/canvas/components/BaseCanvas/CanvasProviders.js +15 -7
- package/dist/canvas/components/BaseNode/BaseNode.cjs +5 -6
- package/dist/canvas/components/BaseNode/BaseNode.d.ts.map +1 -1
- package/dist/canvas/components/BaseNode/BaseNode.js +6 -7
- package/dist/canvas/components/BaseNode/BaseNode.styles.cjs +12 -7
- package/dist/canvas/components/BaseNode/BaseNode.styles.d.ts +1 -1
- package/dist/canvas/components/BaseNode/BaseNode.styles.d.ts.map +1 -1
- package/dist/canvas/components/BaseNode/BaseNode.styles.js +12 -7
- package/dist/canvas/components/BaseNode/NodeLabel.cjs +2 -2
- package/dist/canvas/components/BaseNode/NodeLabel.d.ts.map +1 -1
- package/dist/canvas/components/BaseNode/NodeLabel.js +2 -2
- package/dist/canvas/components/BlankCanvasNode/BlankCanvasNode.cjs +6 -6
- package/dist/canvas/components/BlankCanvasNode/BlankCanvasNode.js +4 -4
- package/dist/canvas/components/ButtonHandle/ButtonHandle.cjs +9 -11
- package/dist/canvas/components/ButtonHandle/ButtonHandle.d.ts.map +1 -1
- package/dist/canvas/components/ButtonHandle/ButtonHandle.js +9 -11
- package/dist/canvas/components/ButtonHandle/SmartHandle.cjs +6 -9
- package/dist/canvas/components/ButtonHandle/SmartHandle.d.ts.map +1 -1
- package/dist/canvas/components/ButtonHandle/SmartHandle.js +6 -9
- package/dist/canvas/components/CanvasPositionControls.cjs +33 -34
- package/dist/canvas/components/CanvasPositionControls.d.ts.map +1 -1
- package/dist/canvas/components/CanvasPositionControls.js +33 -24
- package/dist/canvas/components/CanvasTooltip.cjs +138 -0
- package/dist/canvas/components/CanvasTooltip.d.ts +14 -0
- package/dist/canvas/components/CanvasTooltip.d.ts.map +1 -0
- package/dist/canvas/components/CanvasTooltip.js +91 -0
- package/dist/canvas/components/CodedAgent/CodedAgentFlow.cjs +41 -48
- package/dist/canvas/components/CodedAgent/CodedAgentFlow.d.ts.map +1 -1
- package/dist/canvas/components/CodedAgent/CodedAgentFlow.js +42 -49
- package/dist/canvas/components/ExecutionStatusIcon/ExecutionStatusIcon.cjs +35 -32
- package/dist/canvas/components/ExecutionStatusIcon/ExecutionStatusIcon.d.ts.map +1 -1
- package/dist/canvas/components/ExecutionStatusIcon/ExecutionStatusIcon.js +35 -32
- package/dist/canvas/components/FloatingCanvasPanel/PanelChrome.cjs +12 -9
- package/dist/canvas/components/FloatingCanvasPanel/PanelChrome.d.ts.map +1 -1
- package/dist/canvas/components/FloatingCanvasPanel/PanelChrome.js +12 -9
- package/dist/canvas/components/GroupNode/GroupNode.cjs +10 -12
- package/dist/canvas/components/GroupNode/GroupNode.d.ts.map +1 -1
- package/dist/canvas/components/GroupNode/GroupNode.js +10 -12
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.cjs +11 -8
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.d.ts.map +1 -1
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.js +9 -6
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvasWithControls.cjs +79 -66
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvasWithControls.d.ts.map +1 -1
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvasWithControls.js +77 -64
- package/dist/canvas/components/NodeContextMenu/NodeContextMenu.cjs +14 -82
- package/dist/canvas/components/NodeContextMenu/NodeContextMenu.d.ts +1 -2
- package/dist/canvas/components/NodeContextMenu/NodeContextMenu.d.ts.map +1 -1
- package/dist/canvas/components/NodeContextMenu/NodeContextMenu.js +16 -84
- package/dist/canvas/components/NodeInspector.cjs +64 -68
- package/dist/canvas/components/NodeInspector.d.ts.map +1 -1
- package/dist/canvas/components/NodeInspector.js +64 -68
- package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.cjs +9 -5
- package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.d.ts.map +1 -1
- package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.js +9 -5
- package/dist/canvas/components/StageNode/AdhocTask.cjs +1 -9
- package/dist/canvas/components/StageNode/AdhocTask.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/AdhocTask.js +2 -10
- package/dist/canvas/components/StageNode/DraggableTask.cjs +5 -13
- package/dist/canvas/components/StageNode/DraggableTask.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/DraggableTask.js +4 -12
- package/dist/canvas/components/StageNode/StageNode.cjs +42 -41
- package/dist/canvas/components/StageNode/StageNode.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/StageNode.js +43 -42
- package/dist/canvas/components/StageNode/StageNode.stories.utils.cjs +13 -1
- package/dist/canvas/components/StageNode/StageNode.stories.utils.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/StageNode.stories.utils.js +13 -1
- package/dist/canvas/components/StageNode/TaskContent.cjs +36 -35
- package/dist/canvas/components/StageNode/TaskContent.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/TaskContent.js +37 -36
- package/dist/canvas/components/StageNode/TaskMenu.cjs +19 -99
- package/dist/canvas/components/StageNode/TaskMenu.d.ts +0 -2
- package/dist/canvas/components/StageNode/TaskMenu.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/TaskMenu.js +21 -91
- package/dist/canvas/components/StickyNoteNode/FormattingToolbar.cjs +17 -17
- package/dist/canvas/components/StickyNoteNode/FormattingToolbar.d.ts.map +1 -1
- package/dist/canvas/components/StickyNoteNode/FormattingToolbar.js +12 -12
- package/dist/canvas/components/StickyNoteNode/StickyNoteNode.cjs +2 -2
- package/dist/canvas/components/StickyNoteNode/StickyNoteNode.js +3 -3
- package/dist/canvas/components/Toolbar/NodeToolbar/NodeToolbar.cjs +16 -14
- package/dist/canvas/components/Toolbar/NodeToolbar/NodeToolbar.d.ts.map +1 -1
- package/dist/canvas/components/Toolbar/NodeToolbar/NodeToolbar.js +13 -11
- package/dist/canvas/components/Toolbar/shared/ToolbarButton.cjs +6 -6
- package/dist/canvas/components/Toolbar/shared/ToolbarButton.d.ts.map +1 -1
- package/dist/canvas/components/Toolbar/shared/ToolbarButton.js +6 -6
- package/dist/canvas/components/Toolbox/Header.cjs +11 -10
- package/dist/canvas/components/Toolbox/Header.d.ts.map +1 -1
- package/dist/canvas/components/Toolbox/Header.js +11 -10
- package/dist/canvas/components/Toolbox/ListView.cjs +22 -34
- package/dist/canvas/components/Toolbox/ListView.d.ts.map +1 -1
- package/dist/canvas/components/Toolbox/ListView.js +23 -35
- package/dist/canvas/components/Toolbox/SearchBox.cjs +7 -7
- package/dist/canvas/components/Toolbox/SearchBox.d.ts.map +1 -1
- package/dist/canvas/components/Toolbox/SearchBox.js +7 -7
- package/dist/canvas/components/TriggerNode/TriggerNode.cjs +5 -10
- package/dist/canvas/components/TriggerNode/TriggerNode.d.ts.map +1 -1
- package/dist/canvas/components/TriggerNode/TriggerNode.js +5 -10
- package/dist/canvas/components/shared/CanvasDropdownMenu.cjs +80 -0
- package/dist/canvas/components/shared/CanvasDropdownMenu.d.ts +13 -0
- package/dist/canvas/components/shared/CanvasDropdownMenu.d.ts.map +1 -0
- package/dist/canvas/components/shared/CanvasDropdownMenu.js +46 -0
- package/dist/canvas/constants.cjs +4 -0
- package/dist/canvas/constants.d.ts +1 -0
- package/dist/canvas/constants.d.ts.map +1 -1
- package/dist/canvas/constants.js +2 -1
- package/dist/canvas/controls/Breadcrumb/Breadcrumb.cjs +12 -23
- package/dist/canvas/controls/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/canvas/controls/Breadcrumb/Breadcrumb.js +9 -20
- package/dist/canvas/index.cjs +39 -35
- package/dist/canvas/index.d.ts +1 -0
- package/dist/canvas/index.d.ts.map +1 -1
- package/dist/canvas/index.js +1 -0
- package/dist/canvas/storybook-utils/components/StoryInfoPanel.cjs +13 -11
- package/dist/canvas/storybook-utils/components/StoryInfoPanel.d.ts.map +1 -1
- package/dist/canvas/storybook-utils/components/StoryInfoPanel.js +13 -11
- package/dist/canvas/storybook-utils/decorators.cjs +7 -1
- package/dist/canvas/storybook-utils/decorators.d.ts.map +1 -1
- package/dist/canvas/storybook-utils/decorators.js +7 -1
- package/dist/canvas/styles/tailwind.canvas.css +2 -0
- package/dist/canvas/utils/adornment-resolver.cjs +11 -12
- package/dist/canvas/utils/adornment-resolver.d.ts.map +1 -1
- package/dist/canvas/utils/adornment-resolver.js +12 -13
- package/dist/canvas/utils/icon-registry.cjs +6 -2
- package/dist/canvas/utils/icon-registry.d.ts +3 -2
- package/dist/canvas/utils/icon-registry.d.ts.map +1 -1
- package/dist/canvas/utils/icon-registry.js +3 -2
- package/package.json +4 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Spinner } from "@uipath/apollo-wind";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
|
+
import { CanvasIcon } from "../../utils/icon-registry.js";
|
|
4
5
|
function getExecutionStatusColor(status) {
|
|
5
6
|
switch(status){
|
|
6
7
|
case 'NotExecuted':
|
|
@@ -45,53 +46,55 @@ function ExecutionStatusIcon({ status, size = 16 }) {
|
|
|
45
46
|
const color = getExecutionStatusColor(status);
|
|
46
47
|
switch(status){
|
|
47
48
|
case 'InProgress':
|
|
48
|
-
return /*#__PURE__*/ jsx(
|
|
49
|
-
size:
|
|
49
|
+
return /*#__PURE__*/ jsx(Spinner, {
|
|
50
|
+
size: "sm",
|
|
50
51
|
style: {
|
|
51
|
-
backgroundColor: 'transparent'
|
|
52
|
+
backgroundColor: 'transparent',
|
|
53
|
+
width: size,
|
|
54
|
+
height: size
|
|
52
55
|
}
|
|
53
56
|
});
|
|
54
57
|
case 'Completed':
|
|
55
|
-
return /*#__PURE__*/ jsx(
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
return /*#__PURE__*/ jsx(CanvasIcon, {
|
|
59
|
+
icon: "circle-check",
|
|
60
|
+
size: size,
|
|
61
|
+
color: color
|
|
59
62
|
});
|
|
60
63
|
case 'Paused':
|
|
61
|
-
return /*#__PURE__*/ jsx(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
return /*#__PURE__*/ jsx(CanvasIcon, {
|
|
65
|
+
icon: "circle-pause",
|
|
66
|
+
size: size,
|
|
67
|
+
color: color
|
|
65
68
|
});
|
|
66
69
|
case 'Warning':
|
|
67
|
-
return /*#__PURE__*/ jsx(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
return /*#__PURE__*/ jsx(CanvasIcon, {
|
|
71
|
+
icon: "triangle-alert",
|
|
72
|
+
size: size,
|
|
73
|
+
color: color
|
|
71
74
|
});
|
|
72
75
|
case 'Failed':
|
|
73
|
-
return /*#__PURE__*/ jsx(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
return /*#__PURE__*/ jsx(CanvasIcon, {
|
|
77
|
+
icon: "circle-alert",
|
|
78
|
+
size: size,
|
|
79
|
+
color: color
|
|
77
80
|
});
|
|
78
81
|
case 'Terminated':
|
|
79
|
-
return /*#__PURE__*/ jsx(
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
82
|
+
return /*#__PURE__*/ jsx(CanvasIcon, {
|
|
83
|
+
icon: "circle-x",
|
|
84
|
+
size: size,
|
|
85
|
+
color: color
|
|
83
86
|
});
|
|
84
87
|
case 'Cancelled':
|
|
85
|
-
return /*#__PURE__*/ jsx(
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
88
|
+
return /*#__PURE__*/ jsx(CanvasIcon, {
|
|
89
|
+
icon: "circle-stop",
|
|
90
|
+
size: size,
|
|
91
|
+
color: color
|
|
89
92
|
});
|
|
90
93
|
case 'NotExecuted':
|
|
91
|
-
return /*#__PURE__*/ jsx(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
return /*#__PURE__*/ jsx(CanvasIcon, {
|
|
95
|
+
icon: "circle-dashed",
|
|
96
|
+
size: size,
|
|
97
|
+
color: color
|
|
95
98
|
});
|
|
96
99
|
default:
|
|
97
100
|
return null;
|
|
@@ -38,10 +38,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
38
38
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
39
39
|
const styled_namespaceObject = require("@emotion/styled");
|
|
40
40
|
var styled_default = /*#__PURE__*/ __webpack_require__.n(styled_namespaceObject);
|
|
41
|
-
const apollo_core_namespaceObject = require("@uipath/apollo-core");
|
|
42
41
|
const index_cjs_namespaceObject = require("../../layouts/index.cjs");
|
|
43
|
-
const
|
|
42
|
+
const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
|
|
44
43
|
const external_react_namespaceObject = require("react");
|
|
44
|
+
const icon_registry_cjs_namespaceObject = require("../../utils/icon-registry.cjs");
|
|
45
45
|
const PanelHeader = styled_default().div`
|
|
46
46
|
border-bottom: 1px solid var(--uix-canvas-border-de-emp);
|
|
47
47
|
padding: 8px 16px;
|
|
@@ -87,9 +87,8 @@ function PanelChrome({ title, header, headerActions, children, onClose, scrollKe
|
|
|
87
87
|
justify: "between",
|
|
88
88
|
align: "center",
|
|
89
89
|
children: [
|
|
90
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
91
|
-
|
|
92
|
-
variant: apollo_core_namespaceObject.FontVariantToken.fontSizeLBold,
|
|
90
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
91
|
+
className: "text-base font-bold",
|
|
93
92
|
children: title
|
|
94
93
|
}),
|
|
95
94
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Row, {
|
|
@@ -97,11 +96,15 @@ function PanelChrome({ title, header, headerActions, children, onClose, scrollKe
|
|
|
97
96
|
align: "center",
|
|
98
97
|
children: [
|
|
99
98
|
headerActions,
|
|
100
|
-
onClose && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
101
|
-
|
|
99
|
+
onClose && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.Button, {
|
|
100
|
+
variant: "ghost",
|
|
101
|
+
size: "icon",
|
|
102
|
+
className: "h-6 w-6",
|
|
103
|
+
"aria-label": "Close",
|
|
102
104
|
onClick: onClose,
|
|
103
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
104
|
-
|
|
105
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
|
|
106
|
+
icon: "x",
|
|
107
|
+
size: 16
|
|
105
108
|
})
|
|
106
109
|
})
|
|
107
110
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelChrome.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/FloatingCanvasPanel/PanelChrome.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PanelChrome.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/FloatingCanvasPanel/PanelChrome.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAqCvC,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,MAAM,EACN,aAAa,EACb,QAAQ,EACR,OAAO,EACP,SAAS,GACV,EAAE,gBAAgB,2CAqClB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
|
-
import { FontVariantToken } from "@uipath/apollo-core";
|
|
4
3
|
import { Row } from "../../layouts/index.js";
|
|
5
|
-
import {
|
|
4
|
+
import { Button } from "@uipath/apollo-wind";
|
|
6
5
|
import { useEffect, useRef } from "react";
|
|
6
|
+
import { CanvasIcon } from "../../utils/icon-registry.js";
|
|
7
7
|
const PanelHeader = styled.div`
|
|
8
8
|
border-bottom: 1px solid var(--uix-canvas-border-de-emp);
|
|
9
9
|
padding: 8px 16px;
|
|
@@ -49,9 +49,8 @@ function PanelChrome({ title, header, headerActions, children, onClose, scrollKe
|
|
|
49
49
|
justify: "between",
|
|
50
50
|
align: "center",
|
|
51
51
|
children: [
|
|
52
|
-
/*#__PURE__*/ jsx(
|
|
53
|
-
|
|
54
|
-
variant: FontVariantToken.fontSizeLBold,
|
|
52
|
+
/*#__PURE__*/ jsx("span", {
|
|
53
|
+
className: "text-base font-bold",
|
|
55
54
|
children: title
|
|
56
55
|
}),
|
|
57
56
|
/*#__PURE__*/ jsxs(Row, {
|
|
@@ -59,11 +58,15 @@ function PanelChrome({ title, header, headerActions, children, onClose, scrollKe
|
|
|
59
58
|
align: "center",
|
|
60
59
|
children: [
|
|
61
60
|
headerActions,
|
|
62
|
-
onClose && /*#__PURE__*/ jsx(
|
|
63
|
-
|
|
61
|
+
onClose && /*#__PURE__*/ jsx(Button, {
|
|
62
|
+
variant: "ghost",
|
|
63
|
+
size: "icon",
|
|
64
|
+
className: "h-6 w-6",
|
|
65
|
+
"aria-label": "Close",
|
|
64
66
|
onClick: onClose,
|
|
65
|
-
children: /*#__PURE__*/ jsx(
|
|
66
|
-
|
|
67
|
+
children: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
68
|
+
icon: "x",
|
|
69
|
+
size: 16
|
|
67
70
|
})
|
|
68
71
|
})
|
|
69
72
|
]
|
|
@@ -28,9 +28,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
30
|
const react_cjs_namespaceObject = require("../../xyflow/react.cjs");
|
|
31
|
-
const index_cjs_namespaceObject = require("../../../material/components/index.cjs");
|
|
32
31
|
const external_react_namespaceObject = require("react");
|
|
33
32
|
const external_constants_cjs_namespaceObject = require("../../constants.cjs");
|
|
33
|
+
const icon_registry_cjs_namespaceObject = require("../../utils/icon-registry.cjs");
|
|
34
34
|
const external_GroupNode_styles_cjs_namespaceObject = require("./GroupNode.styles.cjs");
|
|
35
35
|
const external_GroupNodeConfigContext_cjs_namespaceObject = require("./GroupNodeConfigContext.cjs");
|
|
36
36
|
const minWidth = 12 * external_constants_cjs_namespaceObject.GRID_SPACING;
|
|
@@ -184,9 +184,9 @@ const GroupNodeComponent = ({ id, data, selected })=>{
|
|
|
184
184
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_GroupNode_styles_cjs_namespaceObject.GroupHeader, {
|
|
185
185
|
children: [
|
|
186
186
|
iconName && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_GroupNode_styles_cjs_namespaceObject.GroupIconWrapper, {
|
|
187
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
188
|
-
|
|
189
|
-
size:
|
|
187
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
|
|
188
|
+
icon: iconName,
|
|
189
|
+
size: 16
|
|
190
190
|
})
|
|
191
191
|
}),
|
|
192
192
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_GroupNode_styles_cjs_namespaceObject.GroupTitle, {
|
|
@@ -209,10 +209,9 @@ const GroupNodeComponent = ({ id, data, selected })=>{
|
|
|
209
209
|
onClick: handleToggleCollapse,
|
|
210
210
|
"aria-label": collapsed ? 'Expand group' : 'Collapse group',
|
|
211
211
|
title: collapsed ? 'Expand group' : 'Collapse group',
|
|
212
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
size: "16px"
|
|
212
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
|
|
213
|
+
icon: collapsed ? 'chevron-down' : 'chevron-up',
|
|
214
|
+
size: 16
|
|
216
215
|
})
|
|
217
216
|
})
|
|
218
217
|
]
|
|
@@ -223,10 +222,9 @@ const GroupNodeComponent = ({ id, data, selected })=>{
|
|
|
223
222
|
onClick: onMoreOptions,
|
|
224
223
|
"aria-label": "More options",
|
|
225
224
|
title: "More options",
|
|
226
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
size: "16px"
|
|
225
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
|
|
226
|
+
icon: "ellipsis-vertical",
|
|
227
|
+
size: 16
|
|
230
228
|
})
|
|
231
229
|
})
|
|
232
230
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/GroupNode/GroupNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAkB1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGvD,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,IAAI,EAAE,aAAa,CAAC;CACrB;
|
|
1
|
+
{"version":3,"file":"GroupNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/GroupNode/GroupNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAkB1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGvD,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,IAAI,EAAE,aAAa,CAAC;CACrB;AA2LD,eAAO,MAAM,SAAS,+DArL8B,cAAc,6CAqLjB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { NodeResizeControl, useReactFlow } from "../../xyflow/react.js";
|
|
3
|
-
import { ApIcon } from "../../../material/components/index.js";
|
|
4
3
|
import { memo, useCallback } from "react";
|
|
5
4
|
import { GRID_SPACING } from "../../constants.js";
|
|
5
|
+
import { CanvasIcon } from "../../utils/icon-registry.js";
|
|
6
6
|
import { BottomCornerIndicators, GroupContainer, GroupContent, GroupControls, GroupHeader, GroupHeaderButton, GroupHeaderSeparator, GroupIconWrapper, GroupTitle, ResizeHandle, TopCornerIndicators } from "./GroupNode.styles.js";
|
|
7
7
|
import { useGroupNodeConfig } from "./GroupNodeConfigContext.js";
|
|
8
8
|
const minWidth = 12 * GRID_SPACING;
|
|
@@ -156,9 +156,9 @@ const GroupNodeComponent = ({ id, data, selected })=>{
|
|
|
156
156
|
/*#__PURE__*/ jsxs(GroupHeader, {
|
|
157
157
|
children: [
|
|
158
158
|
iconName && /*#__PURE__*/ jsx(GroupIconWrapper, {
|
|
159
|
-
children: /*#__PURE__*/ jsx(
|
|
160
|
-
|
|
161
|
-
size:
|
|
159
|
+
children: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
160
|
+
icon: iconName,
|
|
161
|
+
size: 16
|
|
162
162
|
})
|
|
163
163
|
}),
|
|
164
164
|
/*#__PURE__*/ jsx(GroupTitle, {
|
|
@@ -181,10 +181,9 @@ const GroupNodeComponent = ({ id, data, selected })=>{
|
|
|
181
181
|
onClick: handleToggleCollapse,
|
|
182
182
|
"aria-label": collapsed ? 'Expand group' : 'Collapse group',
|
|
183
183
|
title: collapsed ? 'Expand group' : 'Collapse group',
|
|
184
|
-
children: /*#__PURE__*/ jsx(
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
size: "16px"
|
|
184
|
+
children: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
185
|
+
icon: collapsed ? 'chevron-down' : 'chevron-up',
|
|
186
|
+
size: 16
|
|
188
187
|
})
|
|
189
188
|
})
|
|
190
189
|
]
|
|
@@ -195,10 +194,9 @@ const GroupNodeComponent = ({ id, data, selected })=>{
|
|
|
195
194
|
onClick: onMoreOptions,
|
|
196
195
|
"aria-label": "More options",
|
|
197
196
|
title: "More options",
|
|
198
|
-
children: /*#__PURE__*/ jsx(
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
size: "16px"
|
|
197
|
+
children: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
198
|
+
icon: "ellipsis-vertical",
|
|
199
|
+
size: 16
|
|
202
200
|
})
|
|
203
201
|
})
|
|
204
202
|
]
|
|
@@ -28,16 +28,17 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
30
|
const react_cjs_namespaceObject = require("../../xyflow/react.cjs");
|
|
31
|
-
const
|
|
31
|
+
const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
|
|
32
32
|
const external_react_namespaceObject = require("react");
|
|
33
33
|
const external_constants_cjs_namespaceObject = require("../../constants.cjs");
|
|
34
|
-
const
|
|
34
|
+
const index_cjs_namespaceObject = require("../../controls/index.cjs");
|
|
35
35
|
const external_core_index_cjs_namespaceObject = require("../../core/index.cjs");
|
|
36
36
|
const useAddNodeOnConnectEnd_cjs_namespaceObject = require("../../hooks/useAddNodeOnConnectEnd.cjs");
|
|
37
37
|
const animatedViewportManager_cjs_namespaceObject = require("../../stores/animatedViewportManager.cjs");
|
|
38
38
|
const canvasStore_cjs_namespaceObject = require("../../stores/canvasStore.cjs");
|
|
39
39
|
const viewportManager_cjs_namespaceObject = require("../../stores/viewportManager.cjs");
|
|
40
40
|
const external_types_cjs_namespaceObject = require("../../types.cjs");
|
|
41
|
+
const icon_registry_cjs_namespaceObject = require("../../utils/icon-registry.cjs");
|
|
41
42
|
const transitions_cjs_namespaceObject = require("../../utils/transitions.cjs");
|
|
42
43
|
const AddNodeManager_cjs_namespaceObject = require("../AddNodePanel/AddNodeManager.cjs");
|
|
43
44
|
const AddNodePreview_cjs_namespaceObject = require("../AddNodePanel/AddNodePreview.cjs");
|
|
@@ -266,7 +267,7 @@ const HierarchicalCanvas = ({ mode = 'design', initialCanvases, initialPath, onC
|
|
|
266
267
|
alignItems: 'center',
|
|
267
268
|
justifyContent: 'center'
|
|
268
269
|
},
|
|
269
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
270
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.Spinner, {})
|
|
270
271
|
});
|
|
271
272
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
272
273
|
ref: containerRef,
|
|
@@ -288,16 +289,18 @@ const HierarchicalCanvas = ({ mode = 'design', initialCanvases, initialPath, onC
|
|
|
288
289
|
padding: '8px 12px',
|
|
289
290
|
boxShadow: '0 2px 8px rgba(0, 0, 0, 0.1)'
|
|
290
291
|
},
|
|
291
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
292
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Breadcrumb, {
|
|
292
293
|
items: breadcrumbs.map((crumb, index)=>({
|
|
293
294
|
label: crumb.name,
|
|
294
295
|
onClick: index < breadcrumbs.length - 1 ? ()=>handleNavigateToDepth(index) : void 0,
|
|
295
|
-
startAdornment: 0 === index ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
296
|
-
|
|
296
|
+
startAdornment: 0 === index ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
|
|
297
|
+
icon: "house",
|
|
298
|
+
size: 16
|
|
297
299
|
}) : void 0
|
|
298
300
|
})),
|
|
299
|
-
delimiter: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
300
|
-
|
|
301
|
+
delimiter: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
|
|
302
|
+
icon: "chevron-right",
|
|
303
|
+
size: 16
|
|
301
304
|
})
|
|
302
305
|
})
|
|
303
306
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HierarchicalCanvas.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/HierarchicalCanvas/HierarchicalCanvas.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA4B/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"HierarchicalCanvas.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/HierarchicalCanvas/HierarchicalCanvas.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA4B/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAW5D,UAAU,uBAAuB;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC;IAKtC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAK9C,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAMvB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,KAAK,IAAI,CAAC;IAInE,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CACzC;AASD,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA2YhE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Panel, applyEdgeChanges, applyNodeChanges } from "../../xyflow/react.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Spinner } from "@uipath/apollo-wind";
|
|
4
4
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
5
5
|
import { PREVIEW_EDGE_ID, PREVIEW_NODE_ID } from "../../constants.js";
|
|
6
6
|
import { Breadcrumb } from "../../controls/index.js";
|
|
@@ -10,6 +10,7 @@ import { animatedViewportManager } from "../../stores/animatedViewportManager.js
|
|
|
10
10
|
import { selectBreadcrumbs, selectCanvasStack, selectCurrentCanvas, selectCurrentPath, selectDrillIntoNode, selectInitializeCanvas, selectInitializeWithData, selectNavigateToDepth, selectNavigateToSiblingCanvas, selectPreviousCanvas, selectTransitionState, selectUpdateEdges, selectUpdateNodes, selectUpdateSelection, selectUpdateViewport, useCanvasStore } from "../../stores/canvasStore.js";
|
|
11
11
|
import { viewportManager } from "../../stores/viewportManager.js";
|
|
12
12
|
import { DefaultCanvasTranslations } from "../../types.js";
|
|
13
|
+
import { CanvasIcon } from "../../utils/icon-registry.js";
|
|
13
14
|
import { prefersReducedMotion } from "../../utils/transitions.js";
|
|
14
15
|
import { AddNodeManager } from "../AddNodePanel/AddNodeManager.js";
|
|
15
16
|
import { AddNodePreview } from "../AddNodePanel/AddNodePreview.js";
|
|
@@ -238,7 +239,7 @@ const HierarchicalCanvas = ({ mode = 'design', initialCanvases, initialPath, onC
|
|
|
238
239
|
alignItems: 'center',
|
|
239
240
|
justifyContent: 'center'
|
|
240
241
|
},
|
|
241
|
-
children: /*#__PURE__*/ jsx(
|
|
242
|
+
children: /*#__PURE__*/ jsx(Spinner, {})
|
|
242
243
|
});
|
|
243
244
|
return /*#__PURE__*/ jsxs("div", {
|
|
244
245
|
ref: containerRef,
|
|
@@ -264,12 +265,14 @@ const HierarchicalCanvas = ({ mode = 'design', initialCanvases, initialPath, onC
|
|
|
264
265
|
items: breadcrumbs.map((crumb, index)=>({
|
|
265
266
|
label: crumb.name,
|
|
266
267
|
onClick: index < breadcrumbs.length - 1 ? ()=>handleNavigateToDepth(index) : void 0,
|
|
267
|
-
startAdornment: 0 === index ? /*#__PURE__*/ jsx(
|
|
268
|
-
|
|
268
|
+
startAdornment: 0 === index ? /*#__PURE__*/ jsx(CanvasIcon, {
|
|
269
|
+
icon: "house",
|
|
270
|
+
size: 16
|
|
269
271
|
}) : void 0
|
|
270
272
|
})),
|
|
271
|
-
delimiter: /*#__PURE__*/ jsx(
|
|
272
|
-
|
|
273
|
+
delimiter: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
274
|
+
icon: "chevron-right",
|
|
275
|
+
size: 16
|
|
273
276
|
})
|
|
274
277
|
})
|
|
275
278
|
}),
|
|
@@ -27,14 +27,13 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
HierarchicalCanvasWithControls: ()=>HierarchicalCanvasWithControls
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
-
const apollo_core_namespaceObject = require("@uipath/apollo-core");
|
|
31
30
|
const react_cjs_namespaceObject = require("../../xyflow/react.cjs");
|
|
32
|
-
const
|
|
33
|
-
const components_index_cjs_namespaceObject = require("../../../material/components/index.cjs");
|
|
31
|
+
const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
|
|
34
32
|
const external_react_namespaceObject = require("react");
|
|
35
|
-
const
|
|
33
|
+
const index_cjs_namespaceObject = require("../../core/index.cjs");
|
|
36
34
|
const canvasStore_cjs_namespaceObject = require("../../stores/canvasStore.cjs");
|
|
37
35
|
const CanvasEventBus_cjs_namespaceObject = require("../../utils/CanvasEventBus.cjs");
|
|
36
|
+
const icon_registry_cjs_namespaceObject = require("../../utils/icon-registry.cjs");
|
|
38
37
|
const createAddNodePreview_cjs_namespaceObject = require("../AddNodePanel/createAddNodePreview.cjs");
|
|
39
38
|
const external_HierarchicalCanvas_cjs_namespaceObject = require("./HierarchicalCanvas.cjs");
|
|
40
39
|
const createDemoCanvases = ()=>{
|
|
@@ -311,7 +310,7 @@ const workflowManifests = [
|
|
|
311
310
|
actions: [
|
|
312
311
|
{
|
|
313
312
|
id: 'drill-in',
|
|
314
|
-
icon: '
|
|
313
|
+
icon: 'external-link',
|
|
315
314
|
label: 'Open Sub-Process'
|
|
316
315
|
}
|
|
317
316
|
]
|
|
@@ -461,74 +460,88 @@ const CanvasWithControlsContent = ({ initialCanvases, initialPath, onCanvasesCha
|
|
|
461
460
|
minWidth: '180px'
|
|
462
461
|
},
|
|
463
462
|
children: [
|
|
464
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.
|
|
463
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(apollo_wind_namespaceObject.Button, {
|
|
465
464
|
variant: "secondary",
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
465
|
+
size: "sm",
|
|
466
|
+
onClick: ()=>handleAddNode('start'),
|
|
467
|
+
children: [
|
|
468
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
|
|
469
|
+
icon: "circle-play",
|
|
470
|
+
size: 16
|
|
471
|
+
}),
|
|
472
|
+
" Start"
|
|
473
|
+
]
|
|
473
474
|
}),
|
|
474
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.
|
|
475
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(apollo_wind_namespaceObject.Button, {
|
|
475
476
|
variant: "secondary",
|
|
476
|
-
size: "
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
477
|
+
size: "sm",
|
|
478
|
+
onClick: ()=>handleAddNode('process'),
|
|
479
|
+
children: [
|
|
480
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
|
|
481
|
+
icon: "settings",
|
|
482
|
+
size: 16
|
|
483
|
+
}),
|
|
484
|
+
" Process"
|
|
485
|
+
]
|
|
483
486
|
}),
|
|
484
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.
|
|
487
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(apollo_wind_namespaceObject.Button, {
|
|
485
488
|
variant: "secondary",
|
|
486
|
-
size: "
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
489
|
+
size: "sm",
|
|
490
|
+
onClick: ()=>handleAddNode('decision'),
|
|
491
|
+
children: [
|
|
492
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
|
|
493
|
+
icon: "circle-question-mark",
|
|
494
|
+
size: 16
|
|
495
|
+
}),
|
|
496
|
+
" Decision"
|
|
497
|
+
]
|
|
493
498
|
}),
|
|
494
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.
|
|
499
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(apollo_wind_namespaceObject.Button, {
|
|
495
500
|
variant: "secondary",
|
|
496
|
-
size: "
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
501
|
+
size: "sm",
|
|
502
|
+
onClick: ()=>handleAddNode('subprocess'),
|
|
503
|
+
children: [
|
|
504
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
|
|
505
|
+
icon: "folder",
|
|
506
|
+
size: 16
|
|
507
|
+
}),
|
|
508
|
+
" Sub-Process"
|
|
509
|
+
]
|
|
503
510
|
}),
|
|
504
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.
|
|
511
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(apollo_wind_namespaceObject.Button, {
|
|
505
512
|
variant: "secondary",
|
|
506
|
-
size: "
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
+
size: "sm",
|
|
514
|
+
onClick: ()=>handleAddNode('end'),
|
|
515
|
+
children: [
|
|
516
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
|
|
517
|
+
icon: "circle-stop",
|
|
518
|
+
size: 16
|
|
519
|
+
}),
|
|
520
|
+
" End"
|
|
521
|
+
]
|
|
513
522
|
}),
|
|
514
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(apollo_wind_namespaceObject.Button, {
|
|
524
|
+
size: "sm",
|
|
525
|
+
onClick: handleAddSampleWorkflow,
|
|
526
|
+
children: [
|
|
527
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
|
|
528
|
+
icon: "sparkles",
|
|
529
|
+
size: 16
|
|
530
|
+
}),
|
|
531
|
+
" Sample Workflow"
|
|
532
|
+
]
|
|
523
533
|
}),
|
|
524
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.
|
|
534
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(apollo_wind_namespaceObject.Button, {
|
|
525
535
|
variant: "secondary",
|
|
526
|
-
size: "
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
536
|
+
size: "sm",
|
|
537
|
+
onClick: handleClearCanvas,
|
|
538
|
+
children: [
|
|
539
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
|
|
540
|
+
icon: "x",
|
|
541
|
+
size: 16
|
|
542
|
+
}),
|
|
543
|
+
" Clear Canvas"
|
|
544
|
+
]
|
|
532
545
|
})
|
|
533
546
|
]
|
|
534
547
|
})
|
|
@@ -545,8 +558,8 @@ const CanvasWithControlsContent = ({ initialCanvases, initialPath, onCanvasesCha
|
|
|
545
558
|
fontSize: '12px'
|
|
546
559
|
},
|
|
547
560
|
children: [
|
|
548
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
549
|
-
|
|
561
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
562
|
+
className: "text-sm font-bold",
|
|
550
563
|
children: "Canvas Info"
|
|
551
564
|
}),
|
|
552
565
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
@@ -567,8 +580,8 @@ const CanvasWithControlsContent = ({ initialCanvases, initialPath, onCanvasesCha
|
|
|
567
580
|
currentPathLength
|
|
568
581
|
]
|
|
569
582
|
}),
|
|
570
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
571
|
-
|
|
583
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
584
|
+
className: "text-sm font-bold",
|
|
572
585
|
children: "Instructions"
|
|
573
586
|
}),
|
|
574
587
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
@@ -603,7 +616,7 @@ const HierarchicalCanvasWithControls = ()=>{
|
|
|
603
616
|
const handlePathChange = (0, external_react_namespaceObject.useCallback)((path)=>{
|
|
604
617
|
console.log('Navigation path changed:', path);
|
|
605
618
|
}, []);
|
|
606
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
619
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.NodeRegistryProvider, {
|
|
607
620
|
manifest: workflowManifest,
|
|
608
621
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_cjs_namespaceObject.ReactFlowProvider, {
|
|
609
622
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(CanvasWithControlsContent, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HierarchicalCanvasWithControls.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/HierarchicalCanvas/HierarchicalCanvasWithControls.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HierarchicalCanvasWithControls.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/HierarchicalCanvas/HierarchicalCanvasWithControls.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA6d/B,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EA8BlD,CAAC"}
|