@uipath/apollo-react 3.71.0 → 4.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 +2 -0
- 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 +2 -2
- package/dist/canvas/components/BaseNode/BaseNode.styles.d.ts +1 -1
- package/dist/canvas/components/BaseNode/BaseNode.styles.js +2 -2
- 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/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/dist/material/components/ap-chat/locales/ro.json +3 -3
- package/dist/material/components/ap-tool-call/locales/ro.json +1 -1
- package/package.json +4 -2
|
@@ -6,6 +6,18 @@ const StageNodeWrapper = /*#__PURE__*/ memo(({ id, selected, dragging, width, da
|
|
|
6
6
|
selected: selected,
|
|
7
7
|
dragging: dragging,
|
|
8
8
|
width: width,
|
|
9
|
-
...data
|
|
9
|
+
...data,
|
|
10
|
+
menuItems: [
|
|
11
|
+
{
|
|
12
|
+
id: 'menu-item-1',
|
|
13
|
+
label: 'Menu Item 1',
|
|
14
|
+
onClick: ()=>alert('Menu Item 1 clicked')
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
id: 'menu-item-2',
|
|
18
|
+
label: 'Menu Item 2',
|
|
19
|
+
onClick: ()=>alert('Menu Item 2 clicked')
|
|
20
|
+
}
|
|
21
|
+
]
|
|
10
22
|
}));
|
|
11
23
|
export { StageNodeWrapper };
|
|
@@ -38,14 +38,15 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
38
38
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
39
39
|
const apollo_core_namespaceObject = require("@uipath/apollo-core");
|
|
40
40
|
const index_cjs_namespaceObject = require("../../layouts/index.cjs");
|
|
41
|
-
const
|
|
41
|
+
const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
|
|
42
42
|
const external_debounce_namespaceObject = require("debounce");
|
|
43
43
|
var external_debounce_default = /*#__PURE__*/ __webpack_require__.n(external_debounce_namespaceObject);
|
|
44
44
|
const external_react_namespaceObject = require("react");
|
|
45
45
|
const external_icons_index_cjs_namespaceObject = require("../../icons/index.cjs");
|
|
46
|
+
const external_CanvasTooltip_cjs_namespaceObject = require("../CanvasTooltip.cjs");
|
|
46
47
|
const external_ExecutionStatusIcon_index_cjs_namespaceObject = require("../ExecutionStatusIcon/index.cjs");
|
|
47
48
|
const external_StageNode_styles_cjs_namespaceObject = require("./StageNode.styles.cjs");
|
|
48
|
-
const
|
|
49
|
+
const ProcessCanvasIcon = ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("svg", {
|
|
49
50
|
viewBox: "0 0 24 24",
|
|
50
51
|
fill: "none",
|
|
51
52
|
stroke: "currentColor",
|
|
@@ -110,27 +111,33 @@ const TaskPlayButton = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({
|
|
|
110
111
|
]);
|
|
111
112
|
const iconSize = small ? 18 : 22;
|
|
112
113
|
const buttonSize = small ? '20px' : apollo_core_namespaceObject.Spacing.SpacingL;
|
|
113
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
114
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasTooltip_cjs_namespaceObject.CanvasTooltip, {
|
|
114
115
|
content: "Trigger task",
|
|
115
116
|
placement: "top",
|
|
116
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
117
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.Button, {
|
|
118
|
+
variant: "ghost",
|
|
119
|
+
size: "icon",
|
|
117
120
|
"data-testid": `stage-task-play-${taskId}`,
|
|
118
121
|
onClick: handlePlayClick,
|
|
119
122
|
onMouseDown: (e)=>e.stopPropagation(),
|
|
120
123
|
onKeyDown: (e)=>e.stopPropagation(),
|
|
121
124
|
className: "task-menu-icon-button",
|
|
122
|
-
|
|
123
|
-
color: 'var(--uix-canvas-icon-default)
|
|
124
|
-
minWidth: 'unset
|
|
125
|
-
width:
|
|
126
|
-
height:
|
|
127
|
-
padding:
|
|
125
|
+
style: {
|
|
126
|
+
color: 'var(--uix-canvas-icon-default)',
|
|
127
|
+
minWidth: 'unset',
|
|
128
|
+
width: buttonSize,
|
|
129
|
+
height: buttonSize,
|
|
130
|
+
padding: 0,
|
|
128
131
|
...small && {
|
|
129
132
|
marginRight: '-2px'
|
|
130
133
|
}
|
|
131
134
|
},
|
|
132
|
-
children: playLoading ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
133
|
-
size:
|
|
135
|
+
children: playLoading ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.Spinner, {
|
|
136
|
+
size: "sm",
|
|
137
|
+
style: {
|
|
138
|
+
width: iconSize - 2,
|
|
139
|
+
height: iconSize - 2
|
|
140
|
+
}
|
|
134
141
|
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_icons_index_cjs_namespaceObject.TimelinePlayIcon, {
|
|
135
142
|
w: iconSize,
|
|
136
143
|
h: iconSize
|
|
@@ -166,23 +173,17 @@ const TaskContent = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ ta
|
|
|
166
173
|
},
|
|
167
174
|
children: [
|
|
168
175
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StageNode_styles_cjs_namespaceObject.StageTaskIcon, {
|
|
169
|
-
children: task.icon ?? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
176
|
+
children: task.icon ?? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ProcessCanvasIcon, {})
|
|
170
177
|
}),
|
|
171
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
178
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasTooltip_cjs_namespaceObject.CanvasTooltip, {
|
|
172
179
|
content: task.label,
|
|
173
180
|
placement: "top",
|
|
174
181
|
smartTooltip: true,
|
|
175
182
|
...isDragging && {
|
|
176
183
|
isOpen: false
|
|
177
184
|
},
|
|
178
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
179
|
-
|
|
180
|
-
color: "var(--uix-canvas-foreground)",
|
|
181
|
-
style: {
|
|
182
|
-
overflow: 'hidden',
|
|
183
|
-
textOverflow: 'ellipsis',
|
|
184
|
-
whiteSpace: 'nowrap'
|
|
185
|
-
},
|
|
185
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
186
|
+
className: "text-sm truncate",
|
|
186
187
|
children: task.label
|
|
187
188
|
})
|
|
188
189
|
})
|
|
@@ -195,11 +196,14 @@ const TaskContent = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ ta
|
|
|
195
196
|
flexShrink: 0
|
|
196
197
|
},
|
|
197
198
|
children: [
|
|
198
|
-
hasExecutionStatus && (taskExecution.message ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
199
|
+
hasExecutionStatus && (taskExecution.message ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasTooltip_cjs_namespaceObject.CanvasTooltip, {
|
|
199
200
|
content: taskExecution.message,
|
|
200
201
|
placement: "top",
|
|
201
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
202
|
-
|
|
202
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.Button, {
|
|
203
|
+
variant: "ghost",
|
|
204
|
+
size: "icon",
|
|
205
|
+
className: "h-6 w-6",
|
|
206
|
+
"aria-label": taskExecution.message,
|
|
203
207
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_ExecutionStatusIcon_index_cjs_namespaceObject.ExecutionStatusIcon, {
|
|
204
208
|
status: taskExecution.status
|
|
205
209
|
})
|
|
@@ -227,16 +231,14 @@ const TaskContent = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ ta
|
|
|
227
231
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Row, {
|
|
228
232
|
gap: '2px',
|
|
229
233
|
children: [
|
|
230
|
-
taskExecution?.duration && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
231
|
-
|
|
232
|
-
color: "var(--uix-canvas-foreground-de-emp)",
|
|
234
|
+
taskExecution?.duration && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
235
|
+
className: "text-xs text-foreground-muted",
|
|
233
236
|
children: taskExecution.duration
|
|
234
237
|
}),
|
|
235
238
|
taskExecution?.retryDuration && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StageNode_styles_cjs_namespaceObject.StageTaskRetryDuration, {
|
|
236
239
|
status: taskExecution.badgeStatus ?? 'warning',
|
|
237
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
238
|
-
|
|
239
|
-
color: "inherit",
|
|
240
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
241
|
+
className: "text-xs",
|
|
240
242
|
children: `(+${taskExecution.retryDuration})`
|
|
241
243
|
})
|
|
242
244
|
})
|
|
@@ -246,10 +248,9 @@ const TaskContent = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ ta
|
|
|
246
248
|
align: "center",
|
|
247
249
|
gap: apollo_core_namespaceObject.Spacing.SpacingXs,
|
|
248
250
|
children: [
|
|
249
|
-
taskExecution?.badge && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
label: generateBadgeText(taskExecution) ?? ''
|
|
251
|
+
taskExecution?.badge && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.Badge, {
|
|
252
|
+
variant: taskExecution.badgeStatus,
|
|
253
|
+
children: generateBadgeText(taskExecution) ?? ''
|
|
253
254
|
}),
|
|
254
255
|
showPlayButtonSmall && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(TaskPlayButton, {
|
|
255
256
|
taskId: task.id,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskContent.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/TaskContent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TaskContent.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/TaskContent.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AA8F3E,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,aAAa,CAAC;IACpB,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAChD;AAED,eAAO,MAAM,WAAW,wFAC4B,gBAAgB,6CAmFnE,CAAC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Padding, Spacing } from "@uipath/apollo-core";
|
|
3
3
|
import { Column, Row } from "../../layouts/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Badge, Button, Spinner } from "@uipath/apollo-wind";
|
|
5
5
|
import debounce from "debounce";
|
|
6
6
|
import { memo, useCallback, useMemo, useState } from "react";
|
|
7
7
|
import { TimelinePlayIcon } from "../../icons/index.js";
|
|
8
|
+
import { CanvasTooltip } from "../CanvasTooltip.js";
|
|
8
9
|
import { ExecutionStatusIcon } from "../ExecutionStatusIcon/index.js";
|
|
9
10
|
import { StageTaskIcon, StageTaskRetryDuration } from "./StageNode.styles.js";
|
|
10
|
-
const
|
|
11
|
+
const ProcessCanvasIcon = ()=>/*#__PURE__*/ jsxs("svg", {
|
|
11
12
|
viewBox: "0 0 24 24",
|
|
12
13
|
fill: "none",
|
|
13
14
|
stroke: "currentColor",
|
|
@@ -72,27 +73,33 @@ const TaskPlayButton = /*#__PURE__*/ memo(({ taskId, onTaskPlay, small })=>{
|
|
|
72
73
|
]);
|
|
73
74
|
const iconSize = small ? 18 : 22;
|
|
74
75
|
const buttonSize = small ? '20px' : Spacing.SpacingL;
|
|
75
|
-
return /*#__PURE__*/ jsx(
|
|
76
|
+
return /*#__PURE__*/ jsx(CanvasTooltip, {
|
|
76
77
|
content: "Trigger task",
|
|
77
78
|
placement: "top",
|
|
78
|
-
children: /*#__PURE__*/ jsx(
|
|
79
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
80
|
+
variant: "ghost",
|
|
81
|
+
size: "icon",
|
|
79
82
|
"data-testid": `stage-task-play-${taskId}`,
|
|
80
83
|
onClick: handlePlayClick,
|
|
81
84
|
onMouseDown: (e)=>e.stopPropagation(),
|
|
82
85
|
onKeyDown: (e)=>e.stopPropagation(),
|
|
83
86
|
className: "task-menu-icon-button",
|
|
84
|
-
|
|
85
|
-
color: 'var(--uix-canvas-icon-default)
|
|
86
|
-
minWidth: 'unset
|
|
87
|
-
width:
|
|
88
|
-
height:
|
|
89
|
-
padding:
|
|
87
|
+
style: {
|
|
88
|
+
color: 'var(--uix-canvas-icon-default)',
|
|
89
|
+
minWidth: 'unset',
|
|
90
|
+
width: buttonSize,
|
|
91
|
+
height: buttonSize,
|
|
92
|
+
padding: 0,
|
|
90
93
|
...small && {
|
|
91
94
|
marginRight: '-2px'
|
|
92
95
|
}
|
|
93
96
|
},
|
|
94
|
-
children: playLoading ? /*#__PURE__*/ jsx(
|
|
95
|
-
size:
|
|
97
|
+
children: playLoading ? /*#__PURE__*/ jsx(Spinner, {
|
|
98
|
+
size: "sm",
|
|
99
|
+
style: {
|
|
100
|
+
width: iconSize - 2,
|
|
101
|
+
height: iconSize - 2
|
|
102
|
+
}
|
|
96
103
|
}) : /*#__PURE__*/ jsx(TimelinePlayIcon, {
|
|
97
104
|
w: iconSize,
|
|
98
105
|
h: iconSize
|
|
@@ -128,23 +135,17 @@ const TaskContent = /*#__PURE__*/ memo(({ task, taskExecution, isDragging, onTas
|
|
|
128
135
|
},
|
|
129
136
|
children: [
|
|
130
137
|
/*#__PURE__*/ jsx(StageTaskIcon, {
|
|
131
|
-
children: task.icon ?? /*#__PURE__*/ jsx(
|
|
138
|
+
children: task.icon ?? /*#__PURE__*/ jsx(ProcessCanvasIcon, {})
|
|
132
139
|
}),
|
|
133
|
-
/*#__PURE__*/ jsx(
|
|
140
|
+
/*#__PURE__*/ jsx(CanvasTooltip, {
|
|
134
141
|
content: task.label,
|
|
135
142
|
placement: "top",
|
|
136
143
|
smartTooltip: true,
|
|
137
144
|
...isDragging && {
|
|
138
145
|
isOpen: false
|
|
139
146
|
},
|
|
140
|
-
children: /*#__PURE__*/ jsx(
|
|
141
|
-
|
|
142
|
-
color: "var(--uix-canvas-foreground)",
|
|
143
|
-
style: {
|
|
144
|
-
overflow: 'hidden',
|
|
145
|
-
textOverflow: 'ellipsis',
|
|
146
|
-
whiteSpace: 'nowrap'
|
|
147
|
-
},
|
|
147
|
+
children: /*#__PURE__*/ jsx("span", {
|
|
148
|
+
className: "text-sm truncate",
|
|
148
149
|
children: task.label
|
|
149
150
|
})
|
|
150
151
|
})
|
|
@@ -157,11 +158,14 @@ const TaskContent = /*#__PURE__*/ memo(({ task, taskExecution, isDragging, onTas
|
|
|
157
158
|
flexShrink: 0
|
|
158
159
|
},
|
|
159
160
|
children: [
|
|
160
|
-
hasExecutionStatus && (taskExecution.message ? /*#__PURE__*/ jsx(
|
|
161
|
+
hasExecutionStatus && (taskExecution.message ? /*#__PURE__*/ jsx(CanvasTooltip, {
|
|
161
162
|
content: taskExecution.message,
|
|
162
163
|
placement: "top",
|
|
163
|
-
children: /*#__PURE__*/ jsx(
|
|
164
|
-
|
|
164
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
165
|
+
variant: "ghost",
|
|
166
|
+
size: "icon",
|
|
167
|
+
className: "h-6 w-6",
|
|
168
|
+
"aria-label": taskExecution.message,
|
|
165
169
|
children: /*#__PURE__*/ jsx(ExecutionStatusIcon, {
|
|
166
170
|
status: taskExecution.status
|
|
167
171
|
})
|
|
@@ -189,16 +193,14 @@ const TaskContent = /*#__PURE__*/ memo(({ task, taskExecution, isDragging, onTas
|
|
|
189
193
|
/*#__PURE__*/ jsxs(Row, {
|
|
190
194
|
gap: '2px',
|
|
191
195
|
children: [
|
|
192
|
-
taskExecution?.duration && /*#__PURE__*/ jsx(
|
|
193
|
-
|
|
194
|
-
color: "var(--uix-canvas-foreground-de-emp)",
|
|
196
|
+
taskExecution?.duration && /*#__PURE__*/ jsx("span", {
|
|
197
|
+
className: "text-xs text-foreground-muted",
|
|
195
198
|
children: taskExecution.duration
|
|
196
199
|
}),
|
|
197
200
|
taskExecution?.retryDuration && /*#__PURE__*/ jsx(StageTaskRetryDuration, {
|
|
198
201
|
status: taskExecution.badgeStatus ?? 'warning',
|
|
199
|
-
children: /*#__PURE__*/ jsx(
|
|
200
|
-
|
|
201
|
-
color: "inherit",
|
|
202
|
+
children: /*#__PURE__*/ jsx("span", {
|
|
203
|
+
className: "text-xs",
|
|
202
204
|
children: `(+${taskExecution.retryDuration})`
|
|
203
205
|
})
|
|
204
206
|
})
|
|
@@ -208,10 +210,9 @@ const TaskContent = /*#__PURE__*/ memo(({ task, taskExecution, isDragging, onTas
|
|
|
208
210
|
align: "center",
|
|
209
211
|
gap: Spacing.SpacingXs,
|
|
210
212
|
children: [
|
|
211
|
-
taskExecution?.badge && /*#__PURE__*/ jsx(
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
label: generateBadgeText(taskExecution) ?? ''
|
|
213
|
+
taskExecution?.badge && /*#__PURE__*/ jsx(Badge, {
|
|
214
|
+
variant: taskExecution.badgeStatus,
|
|
215
|
+
children: generateBadgeText(taskExecution) ?? ''
|
|
215
216
|
}),
|
|
216
217
|
showPlayButtonSmall && /*#__PURE__*/ jsx(TaskPlayButton, {
|
|
217
218
|
taskId: task.id,
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.n = (module)=>{
|
|
5
|
-
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
6
|
-
__webpack_require__.d(getter, {
|
|
7
|
-
a: getter
|
|
8
|
-
});
|
|
9
|
-
return getter;
|
|
10
|
-
};
|
|
11
|
-
})();
|
|
12
3
|
(()=>{
|
|
13
4
|
__webpack_require__.d = (exports1, definition)=>{
|
|
14
5
|
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
@@ -36,110 +27,39 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
36
27
|
TaskMenu: ()=>TaskMenu
|
|
37
28
|
});
|
|
38
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
39
|
-
const apollo_core_namespaceObject = require("@uipath/apollo-core");
|
|
40
|
-
var apollo_core_default = /*#__PURE__*/ __webpack_require__.n(apollo_core_namespaceObject);
|
|
41
|
-
const index_cjs_namespaceObject = require("../../../material/index.cjs");
|
|
42
30
|
const external_react_namespaceObject = require("react");
|
|
43
|
-
const
|
|
44
|
-
const TaskMenuComponent = ({ taskId, getContextMenuItems
|
|
45
|
-
const [
|
|
46
|
-
const menuAnchorRef = (0, external_react_namespaceObject.useRef)(null);
|
|
47
|
-
const isMenuOpen = null !== anchorElement;
|
|
31
|
+
const CanvasDropdownMenu_cjs_namespaceObject = require("../shared/CanvasDropdownMenu.cjs");
|
|
32
|
+
const TaskMenuComponent = ({ taskId, getContextMenuItems }, ref)=>{
|
|
33
|
+
const [isOpen, setIsOpen] = (0, external_react_namespaceObject.useState)(false);
|
|
48
34
|
const [menuItems, setMenuItems] = (0, external_react_namespaceObject.useState)([]);
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
35
|
+
const handleOpenChange = (0, external_react_namespaceObject.useCallback)((open)=>{
|
|
36
|
+
if (open) setMenuItems(getContextMenuItems());
|
|
37
|
+
setIsOpen(open);
|
|
52
38
|
}, [
|
|
53
|
-
|
|
39
|
+
getContextMenuItems
|
|
54
40
|
]);
|
|
55
41
|
const handleMenuItemClick = (0, external_react_namespaceObject.useCallback)((item)=>{
|
|
56
42
|
item.onClick();
|
|
57
|
-
|
|
58
|
-
}, [
|
|
59
|
-
handleMenuClose
|
|
60
|
-
]);
|
|
61
|
-
const openMenu = (0, external_react_namespaceObject.useCallback)((anchor)=>{
|
|
62
|
-
if (!anchor) return;
|
|
63
|
-
setAnchorElement(anchor);
|
|
64
|
-
setMenuItems((0, external_StageNodeTaskUtilities_cjs_namespaceObject.transformMenuItems)(getContextMenuItems(), handleMenuItemClick));
|
|
65
|
-
onMenuOpenChange?.(true);
|
|
66
|
-
}, [
|
|
67
|
-
getContextMenuItems,
|
|
68
|
-
handleMenuItemClick,
|
|
69
|
-
onMenuOpenChange
|
|
70
|
-
]);
|
|
71
|
-
const handleMenuClick = (0, external_react_namespaceObject.useCallback)((e)=>{
|
|
72
|
-
e.stopPropagation();
|
|
73
|
-
e.preventDefault();
|
|
74
|
-
if (isMenuOpen) handleMenuClose();
|
|
75
|
-
else openMenu(menuAnchorRef.current);
|
|
76
|
-
}, [
|
|
77
|
-
isMenuOpen,
|
|
78
|
-
handleMenuClose,
|
|
79
|
-
openMenu
|
|
80
|
-
]);
|
|
43
|
+
setIsOpen(false);
|
|
44
|
+
}, []);
|
|
81
45
|
const handleContextMenu = (0, external_react_namespaceObject.useCallback)((e)=>{
|
|
82
46
|
e.stopPropagation();
|
|
83
47
|
e.preventDefault();
|
|
84
|
-
|
|
85
|
-
openMenu(anchor);
|
|
48
|
+
handleOpenChange(true);
|
|
86
49
|
}, [
|
|
87
|
-
|
|
88
|
-
openMenu
|
|
50
|
+
handleOpenChange
|
|
89
51
|
]);
|
|
90
52
|
(0, external_react_namespaceObject.useImperativeHandle)(ref, ()=>({
|
|
91
53
|
handleContextMenu
|
|
92
54
|
}));
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
onClick: handleMenuClick,
|
|
102
|
-
onMouseDown: handleMenuMouseDown,
|
|
103
|
-
className: "task-menu-icon-button",
|
|
104
|
-
sx: {
|
|
105
|
-
color: 'var(--colorIconDefault) !important',
|
|
106
|
-
minWidth: 'unset !important',
|
|
107
|
-
width: `${apollo_core_namespaceObject.Spacing.SpacingL} !important`,
|
|
108
|
-
height: `${apollo_core_namespaceObject.Spacing.SpacingL} !important`,
|
|
109
|
-
padding: '0 !important'
|
|
110
|
-
},
|
|
111
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.ApIcon, {
|
|
112
|
-
name: "more_vert",
|
|
113
|
-
size: "16px"
|
|
114
|
-
})
|
|
115
|
-
}),
|
|
116
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.ApMenu, {
|
|
117
|
-
isOpen: isMenuOpen,
|
|
118
|
-
menuItems: menuItems,
|
|
119
|
-
anchorEl: anchorElement,
|
|
120
|
-
onClose: handleMenuClose,
|
|
121
|
-
anchorOrigin: {
|
|
122
|
-
vertical: 'bottom',
|
|
123
|
-
horizontal: 'right'
|
|
124
|
-
},
|
|
125
|
-
transformOrigin: {
|
|
126
|
-
vertical: 'top',
|
|
127
|
-
horizontal: 'right'
|
|
128
|
-
},
|
|
129
|
-
width: 300,
|
|
130
|
-
slotProps: {
|
|
131
|
-
paper: {
|
|
132
|
-
className: 'task-menu-paper',
|
|
133
|
-
sx: {
|
|
134
|
-
'&.task-menu-paper .MuiList-padding': {
|
|
135
|
-
paddingTop: apollo_core_default().Padding.PadL,
|
|
136
|
-
paddingBottom: apollo_core_default().Padding.PadL
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
})
|
|
142
|
-
]
|
|
55
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(CanvasDropdownMenu_cjs_namespaceObject.CanvasDropdownMenu, {
|
|
56
|
+
open: isOpen,
|
|
57
|
+
onOpenChange: handleOpenChange,
|
|
58
|
+
menuItems: menuItems,
|
|
59
|
+
onItemClick: handleMenuItemClick,
|
|
60
|
+
triggerTestId: `stage-task-menu-${taskId}`,
|
|
61
|
+
triggerAriaLabel: "Task actions",
|
|
62
|
+
contentClassName: "w-[300px]"
|
|
143
63
|
});
|
|
144
64
|
};
|
|
145
65
|
const TaskMenu = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(/*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(TaskMenuComponent));
|
|
@@ -5,8 +5,6 @@ export interface TaskMenuHandle {
|
|
|
5
5
|
interface TaskMenuProps {
|
|
6
6
|
taskId: string;
|
|
7
7
|
getContextMenuItems: () => NodeMenuItem[];
|
|
8
|
-
onMenuOpenChange?: (isOpen: boolean) => void;
|
|
9
|
-
taskRef?: React.RefObject<HTMLElement | null>;
|
|
10
8
|
}
|
|
11
9
|
export declare const TaskMenu: import("react").NamedExoticComponent<TaskMenuProps & import("react").RefAttributes<TaskMenuHandle>>;
|
|
12
10
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskMenu.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/TaskMenu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TaskMenu.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/TaskMenu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAkB,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvE,MAAM,WAAW,cAAc;IAC7B,iBAAiB,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;CAC/D;AAED,UAAU,aAAa;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,EAAE,MAAM,YAAY,EAAE,CAAC;CAC3C;AAkDD,eAAO,MAAM,QAAQ,qGAAsC,CAAC"}
|
|
@@ -1,107 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const TaskMenuComponent = ({ taskId, getContextMenuItems, onMenuOpenChange, taskRef }, ref)=>{
|
|
7
|
-
const [anchorElement, setAnchorElement] = useState(null);
|
|
8
|
-
const menuAnchorRef = useRef(null);
|
|
9
|
-
const isMenuOpen = null !== anchorElement;
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, memo, useCallback, useImperativeHandle, useState } from "react";
|
|
3
|
+
import { CanvasDropdownMenu } from "../shared/CanvasDropdownMenu.js";
|
|
4
|
+
const TaskMenuComponent = ({ taskId, getContextMenuItems }, ref)=>{
|
|
5
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
10
6
|
const [menuItems, setMenuItems] = useState([]);
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
const handleOpenChange = useCallback((open)=>{
|
|
8
|
+
if (open) setMenuItems(getContextMenuItems());
|
|
9
|
+
setIsOpen(open);
|
|
14
10
|
}, [
|
|
15
|
-
|
|
11
|
+
getContextMenuItems
|
|
16
12
|
]);
|
|
17
13
|
const handleMenuItemClick = useCallback((item)=>{
|
|
18
14
|
item.onClick();
|
|
19
|
-
|
|
20
|
-
}, [
|
|
21
|
-
handleMenuClose
|
|
22
|
-
]);
|
|
23
|
-
const openMenu = useCallback((anchor)=>{
|
|
24
|
-
if (!anchor) return;
|
|
25
|
-
setAnchorElement(anchor);
|
|
26
|
-
setMenuItems(transformMenuItems(getContextMenuItems(), handleMenuItemClick));
|
|
27
|
-
onMenuOpenChange?.(true);
|
|
28
|
-
}, [
|
|
29
|
-
getContextMenuItems,
|
|
30
|
-
handleMenuItemClick,
|
|
31
|
-
onMenuOpenChange
|
|
32
|
-
]);
|
|
33
|
-
const handleMenuClick = useCallback((e)=>{
|
|
34
|
-
e.stopPropagation();
|
|
35
|
-
e.preventDefault();
|
|
36
|
-
if (isMenuOpen) handleMenuClose();
|
|
37
|
-
else openMenu(menuAnchorRef.current);
|
|
38
|
-
}, [
|
|
39
|
-
isMenuOpen,
|
|
40
|
-
handleMenuClose,
|
|
41
|
-
openMenu
|
|
42
|
-
]);
|
|
15
|
+
setIsOpen(false);
|
|
16
|
+
}, []);
|
|
43
17
|
const handleContextMenu = useCallback((e)=>{
|
|
44
18
|
e.stopPropagation();
|
|
45
19
|
e.preventDefault();
|
|
46
|
-
|
|
47
|
-
openMenu(anchor);
|
|
20
|
+
handleOpenChange(true);
|
|
48
21
|
}, [
|
|
49
|
-
|
|
50
|
-
openMenu
|
|
22
|
+
handleOpenChange
|
|
51
23
|
]);
|
|
52
24
|
useImperativeHandle(ref, ()=>({
|
|
53
25
|
handleContextMenu
|
|
54
26
|
}));
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
onClick: handleMenuClick,
|
|
64
|
-
onMouseDown: handleMenuMouseDown,
|
|
65
|
-
className: "task-menu-icon-button",
|
|
66
|
-
sx: {
|
|
67
|
-
color: 'var(--colorIconDefault) !important',
|
|
68
|
-
minWidth: 'unset !important',
|
|
69
|
-
width: `${Spacing.SpacingL} !important`,
|
|
70
|
-
height: `${Spacing.SpacingL} !important`,
|
|
71
|
-
padding: '0 !important'
|
|
72
|
-
},
|
|
73
|
-
children: /*#__PURE__*/ jsx(ApIcon, {
|
|
74
|
-
name: "more_vert",
|
|
75
|
-
size: "16px"
|
|
76
|
-
})
|
|
77
|
-
}),
|
|
78
|
-
/*#__PURE__*/ jsx(ApMenu, {
|
|
79
|
-
isOpen: isMenuOpen,
|
|
80
|
-
menuItems: menuItems,
|
|
81
|
-
anchorEl: anchorElement,
|
|
82
|
-
onClose: handleMenuClose,
|
|
83
|
-
anchorOrigin: {
|
|
84
|
-
vertical: 'bottom',
|
|
85
|
-
horizontal: 'right'
|
|
86
|
-
},
|
|
87
|
-
transformOrigin: {
|
|
88
|
-
vertical: 'top',
|
|
89
|
-
horizontal: 'right'
|
|
90
|
-
},
|
|
91
|
-
width: 300,
|
|
92
|
-
slotProps: {
|
|
93
|
-
paper: {
|
|
94
|
-
className: 'task-menu-paper',
|
|
95
|
-
sx: {
|
|
96
|
-
'&.task-menu-paper .MuiList-padding': {
|
|
97
|
-
paddingTop: apollo_core.Padding.PadL,
|
|
98
|
-
paddingBottom: apollo_core.Padding.PadL
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
})
|
|
104
|
-
]
|
|
27
|
+
return /*#__PURE__*/ jsx(CanvasDropdownMenu, {
|
|
28
|
+
open: isOpen,
|
|
29
|
+
onOpenChange: handleOpenChange,
|
|
30
|
+
menuItems: menuItems,
|
|
31
|
+
onItemClick: handleMenuItemClick,
|
|
32
|
+
triggerTestId: `stage-task-menu-${taskId}`,
|
|
33
|
+
triggerAriaLabel: "Task actions",
|
|
34
|
+
contentClassName: "w-[300px]"
|
|
105
35
|
});
|
|
106
36
|
};
|
|
107
37
|
const TaskMenu = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(TaskMenuComponent));
|