@uipath/apollo-react 4.31.1 → 4.32.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/dist/canvas/components/StageNode/StageNodeHeader.cjs +6 -2
- package/dist/canvas/components/StageNode/StageNodeHeader.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/StageNodeHeader.js +6 -2
- package/dist/canvas/components/StageNode/TaskContent.cjs +8 -6
- package/dist/canvas/components/StageNode/TaskContent.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/TaskContent.js +8 -6
- package/dist/canvas/components/StageNode/useExecutionStatusLabel.cjs +89 -0
- package/dist/canvas/components/StageNode/useExecutionStatusLabel.d.ts +3 -0
- package/dist/canvas/components/StageNode/useExecutionStatusLabel.d.ts.map +1 -0
- package/dist/canvas/components/StageNode/useExecutionStatusLabel.js +55 -0
- package/dist/canvas/components/StickyNoteNode/StickyNoteNode.cjs +17 -5
- package/dist/canvas/components/StickyNoteNode/StickyNoteNode.d.ts.map +1 -1
- package/dist/canvas/components/StickyNoteNode/StickyNoteNode.js +15 -3
- package/dist/canvas/locales/en.cjs +1 -1
- package/dist/canvas/locales/en.d.ts.map +1 -1
- package/dist/canvas/locales/en.js +1 -1
- package/package.json +3 -3
|
@@ -40,6 +40,7 @@ const ExecutionStatusIcon_cjs_namespaceObject = require("../ExecutionStatusIcon/
|
|
|
40
40
|
const external_StageNode_styles_cjs_namespaceObject = require("./StageNode.styles.cjs");
|
|
41
41
|
const external_StageNode_types_cjs_namespaceObject = require("./StageNode.types.cjs");
|
|
42
42
|
const external_StageTitleInput_cjs_namespaceObject = require("./StageTitleInput.cjs");
|
|
43
|
+
const external_useExecutionStatusLabel_cjs_namespaceObject = require("./useExecutionStatusLabel.cjs");
|
|
43
44
|
const external_useStageNodeLabels_cjs_namespaceObject = require("./useStageNodeLabels.cjs");
|
|
44
45
|
const SLA_ICON_CONFIG = {
|
|
45
46
|
warning: {
|
|
@@ -70,6 +71,7 @@ const CHIP_ICONS = {
|
|
|
70
71
|
};
|
|
71
72
|
const StageNodeHeaderInner = ({ props, isReadOnly, isException, status, handleTaskAddClick })=>{
|
|
72
73
|
const labels = (0, external_useStageNodeLabels_cjs_namespaceObject.useStageNodeLabels)();
|
|
74
|
+
const getStatusName = (0, external_useExecutionStatusLabel_cjs_namespaceObject.useExecutionStatusLabel)();
|
|
73
75
|
const { id, stageDetails, execution, onTaskAdd, onAddTaskFromToolbox, onStageTitleChange, loadingTaskIds } = props;
|
|
74
76
|
const isAddTaskDisabled = (loadingTaskIds?.size ?? 0) > 0;
|
|
75
77
|
const icon = stageDetails?.icon;
|
|
@@ -78,6 +80,8 @@ const StageNodeHeaderInner = ({ props, isReadOnly, isException, status, handleTa
|
|
|
78
80
|
const slaText = execution?.stageStatus?.slaText;
|
|
79
81
|
const slaIcon = execution?.stageStatus?.slaIcon;
|
|
80
82
|
const slaIndicator = slaIcon ? SLA_ICON_CONFIG[slaIcon] : void 0;
|
|
83
|
+
const statusFallbackName = status ? getStatusName(status) : '';
|
|
84
|
+
const statusTooltip = statusLabel || statusFallbackName;
|
|
81
85
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_StageNode_styles_cjs_namespaceObject.StageHeader, {
|
|
82
86
|
isException: isException,
|
|
83
87
|
"data-testid": `stage-header-${id}`,
|
|
@@ -106,13 +110,13 @@ const StageNodeHeaderInner = ({ props, isReadOnly, isException, status, handleTa
|
|
|
106
110
|
py: apollo_core_namespaceObject.Padding.PadS,
|
|
107
111
|
children: [
|
|
108
112
|
status && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasTooltip_cjs_namespaceObject.CanvasTooltip, {
|
|
109
|
-
content:
|
|
113
|
+
content: statusTooltip,
|
|
110
114
|
placement: "top",
|
|
111
115
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.Button, {
|
|
112
116
|
variant: "ghost",
|
|
113
117
|
size: "icon",
|
|
114
118
|
className: "h-6 w-6",
|
|
115
|
-
"aria-label":
|
|
119
|
+
"aria-label": statusTooltip,
|
|
116
120
|
children: 'NotExecuted' === status ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
|
|
117
121
|
icon: "hourglass",
|
|
118
122
|
size: 20,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageNodeHeader.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageNodeHeader.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,cAAc,EAAgB,WAAW,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"StageNodeHeader.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageNodeHeader.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,cAAc,EAAgB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAyJnF,eAAO,MAAM,eAAe,wGA3HzB;IACD,KAAK,EAAE,cAAc,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,kBAAkB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;CACvD,6CAqHwD,CAAC"}
|
|
@@ -12,6 +12,7 @@ import { getExecutionStatusColor } from "../ExecutionStatusIcon/ExecutionStatusI
|
|
|
12
12
|
import { StageChip, StageHeader } from "./StageNode.styles.js";
|
|
13
13
|
import { StageHeaderChipType } from "./StageNode.types.js";
|
|
14
14
|
import { StageTitleInput } from "./StageTitleInput.js";
|
|
15
|
+
import { useExecutionStatusLabel } from "./useExecutionStatusLabel.js";
|
|
15
16
|
import { useStageNodeLabels } from "./useStageNodeLabels.js";
|
|
16
17
|
const SLA_ICON_CONFIG = {
|
|
17
18
|
warning: {
|
|
@@ -42,6 +43,7 @@ const CHIP_ICONS = {
|
|
|
42
43
|
};
|
|
43
44
|
const StageNodeHeaderInner = ({ props, isReadOnly, isException, status, handleTaskAddClick })=>{
|
|
44
45
|
const labels = useStageNodeLabels();
|
|
46
|
+
const getStatusName = useExecutionStatusLabel();
|
|
45
47
|
const { id, stageDetails, execution, onTaskAdd, onAddTaskFromToolbox, onStageTitleChange, loadingTaskIds } = props;
|
|
46
48
|
const isAddTaskDisabled = (loadingTaskIds?.size ?? 0) > 0;
|
|
47
49
|
const icon = stageDetails?.icon;
|
|
@@ -50,6 +52,8 @@ const StageNodeHeaderInner = ({ props, isReadOnly, isException, status, handleTa
|
|
|
50
52
|
const slaText = execution?.stageStatus?.slaText;
|
|
51
53
|
const slaIcon = execution?.stageStatus?.slaIcon;
|
|
52
54
|
const slaIndicator = slaIcon ? SLA_ICON_CONFIG[slaIcon] : void 0;
|
|
55
|
+
const statusFallbackName = status ? getStatusName(status) : '';
|
|
56
|
+
const statusTooltip = statusLabel || statusFallbackName;
|
|
53
57
|
return /*#__PURE__*/ jsxs(StageHeader, {
|
|
54
58
|
isException: isException,
|
|
55
59
|
"data-testid": `stage-header-${id}`,
|
|
@@ -78,13 +82,13 @@ const StageNodeHeaderInner = ({ props, isReadOnly, isException, status, handleTa
|
|
|
78
82
|
py: Padding.PadS,
|
|
79
83
|
children: [
|
|
80
84
|
status && /*#__PURE__*/ jsx(CanvasTooltip, {
|
|
81
|
-
content:
|
|
85
|
+
content: statusTooltip,
|
|
82
86
|
placement: "top",
|
|
83
87
|
children: /*#__PURE__*/ jsx(Button, {
|
|
84
88
|
variant: "ghost",
|
|
85
89
|
size: "icon",
|
|
86
90
|
className: "h-6 w-6",
|
|
87
|
-
"aria-label":
|
|
91
|
+
"aria-label": statusTooltip,
|
|
88
92
|
children: 'NotExecuted' === status ? /*#__PURE__*/ jsx(CanvasIcon, {
|
|
89
93
|
icon: "hourglass",
|
|
90
94
|
size: 20,
|
|
@@ -47,6 +47,7 @@ const external_CanvasTooltip_cjs_namespaceObject = require("../CanvasTooltip.cjs
|
|
|
47
47
|
const external_ExecutionStatusIcon_index_cjs_namespaceObject = require("../ExecutionStatusIcon/index.cjs");
|
|
48
48
|
const external_StageNode_styles_cjs_namespaceObject = require("./StageNode.styles.cjs");
|
|
49
49
|
const external_StageTaskEntryConditionIcon_cjs_namespaceObject = require("./StageTaskEntryConditionIcon.cjs");
|
|
50
|
+
const external_useExecutionStatusLabel_cjs_namespaceObject = require("./useExecutionStatusLabel.cjs");
|
|
50
51
|
const ProcessCanvasIcon = ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("svg", {
|
|
51
52
|
viewBox: "0 0 24 24",
|
|
52
53
|
fill: "none",
|
|
@@ -147,9 +148,12 @@ const TaskPlayButton = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({
|
|
|
147
148
|
});
|
|
148
149
|
});
|
|
149
150
|
const TaskContent = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ task, taskExecution, isDragging, onTaskPlay })=>{
|
|
151
|
+
const getStatusName = (0, external_useExecutionStatusLabel_cjs_namespaceObject.useExecutionStatusLabel)();
|
|
150
152
|
const hasExecutionStatus = !!taskExecution?.status;
|
|
151
153
|
const hasSecondRowContent = taskExecution && (taskExecution.duration || taskExecution.retryDuration || taskExecution.badge);
|
|
152
154
|
const showPlayButtonSmall = onTaskPlay && hasExecutionStatus;
|
|
155
|
+
const taskStatusFallbackName = hasExecutionStatus ? getStatusName(taskExecution?.status) : '';
|
|
156
|
+
const taskStatusTooltip = taskExecution?.message || taskStatusFallbackName;
|
|
153
157
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Column, {
|
|
154
158
|
flex: 1,
|
|
155
159
|
style: {
|
|
@@ -196,21 +200,19 @@ const TaskContent = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ ta
|
|
|
196
200
|
flexShrink: 0
|
|
197
201
|
},
|
|
198
202
|
children: [
|
|
199
|
-
hasExecutionStatus &&
|
|
200
|
-
content:
|
|
203
|
+
hasExecutionStatus && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasTooltip_cjs_namespaceObject.CanvasTooltip, {
|
|
204
|
+
content: taskStatusTooltip,
|
|
201
205
|
placement: "top",
|
|
202
206
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.Button, {
|
|
203
207
|
variant: "ghost",
|
|
204
208
|
size: "icon",
|
|
205
209
|
className: "h-4 w-4",
|
|
206
|
-
"aria-label":
|
|
210
|
+
"aria-label": taskStatusTooltip,
|
|
207
211
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_ExecutionStatusIcon_index_cjs_namespaceObject.ExecutionStatusIcon, {
|
|
208
212
|
status: taskExecution.status
|
|
209
213
|
})
|
|
210
214
|
})
|
|
211
|
-
})
|
|
212
|
-
status: taskExecution.status
|
|
213
|
-
})),
|
|
215
|
+
}),
|
|
214
216
|
!hasSecondRowContent && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StageTaskEntryConditionIcon_cjs_namespaceObject.StageTaskEntryConditionIcon, {
|
|
215
217
|
task: task,
|
|
216
218
|
small: !!hasExecutionStatus
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAgG3E,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,6CAqFnE,CAAC"}
|
|
@@ -9,6 +9,7 @@ import { CanvasTooltip } from "../CanvasTooltip.js";
|
|
|
9
9
|
import { ExecutionStatusIcon } from "../ExecutionStatusIcon/index.js";
|
|
10
10
|
import { StageTaskIcon, StageTaskRetryDuration } from "./StageNode.styles.js";
|
|
11
11
|
import { StageTaskEntryConditionIcon } from "./StageTaskEntryConditionIcon.js";
|
|
12
|
+
import { useExecutionStatusLabel } from "./useExecutionStatusLabel.js";
|
|
12
13
|
const ProcessCanvasIcon = ()=>/*#__PURE__*/ jsxs("svg", {
|
|
13
14
|
viewBox: "0 0 24 24",
|
|
14
15
|
fill: "none",
|
|
@@ -109,9 +110,12 @@ const TaskPlayButton = /*#__PURE__*/ memo(({ taskId, onTaskPlay, small })=>{
|
|
|
109
110
|
});
|
|
110
111
|
});
|
|
111
112
|
const TaskContent = /*#__PURE__*/ memo(({ task, taskExecution, isDragging, onTaskPlay })=>{
|
|
113
|
+
const getStatusName = useExecutionStatusLabel();
|
|
112
114
|
const hasExecutionStatus = !!taskExecution?.status;
|
|
113
115
|
const hasSecondRowContent = taskExecution && (taskExecution.duration || taskExecution.retryDuration || taskExecution.badge);
|
|
114
116
|
const showPlayButtonSmall = onTaskPlay && hasExecutionStatus;
|
|
117
|
+
const taskStatusFallbackName = hasExecutionStatus ? getStatusName(taskExecution?.status) : '';
|
|
118
|
+
const taskStatusTooltip = taskExecution?.message || taskStatusFallbackName;
|
|
115
119
|
return /*#__PURE__*/ jsxs(Column, {
|
|
116
120
|
flex: 1,
|
|
117
121
|
style: {
|
|
@@ -158,21 +162,19 @@ const TaskContent = /*#__PURE__*/ memo(({ task, taskExecution, isDragging, onTas
|
|
|
158
162
|
flexShrink: 0
|
|
159
163
|
},
|
|
160
164
|
children: [
|
|
161
|
-
hasExecutionStatus &&
|
|
162
|
-
content:
|
|
165
|
+
hasExecutionStatus && /*#__PURE__*/ jsx(CanvasTooltip, {
|
|
166
|
+
content: taskStatusTooltip,
|
|
163
167
|
placement: "top",
|
|
164
168
|
children: /*#__PURE__*/ jsx(Button, {
|
|
165
169
|
variant: "ghost",
|
|
166
170
|
size: "icon",
|
|
167
171
|
className: "h-4 w-4",
|
|
168
|
-
"aria-label":
|
|
172
|
+
"aria-label": taskStatusTooltip,
|
|
169
173
|
children: /*#__PURE__*/ jsx(ExecutionStatusIcon, {
|
|
170
174
|
status: taskExecution.status
|
|
171
175
|
})
|
|
172
176
|
})
|
|
173
|
-
})
|
|
174
|
-
status: taskExecution.status
|
|
175
|
-
})),
|
|
177
|
+
}),
|
|
176
178
|
!hasSecondRowContent && /*#__PURE__*/ jsx(StageTaskEntryConditionIcon, {
|
|
177
179
|
task: task,
|
|
178
180
|
small: !!hasExecutionStatus
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
useExecutionStatusLabel: ()=>useExecutionStatusLabel
|
|
28
|
+
});
|
|
29
|
+
const external_react_namespaceObject = require("react");
|
|
30
|
+
const index_cjs_namespaceObject = require("../../../i18n/index.cjs");
|
|
31
|
+
function useExecutionStatusLabel() {
|
|
32
|
+
const { _ } = (0, index_cjs_namespaceObject.useSafeLingui)();
|
|
33
|
+
return (0, external_react_namespaceObject.useCallback)((status)=>{
|
|
34
|
+
switch(status){
|
|
35
|
+
case 'InProgress':
|
|
36
|
+
return _({
|
|
37
|
+
id: 'stage-node.status.in-progress',
|
|
38
|
+
message: 'In progress'
|
|
39
|
+
});
|
|
40
|
+
case 'Completed':
|
|
41
|
+
return _({
|
|
42
|
+
id: 'stage-node.status.completed',
|
|
43
|
+
message: 'Completed'
|
|
44
|
+
});
|
|
45
|
+
case 'Paused':
|
|
46
|
+
return _({
|
|
47
|
+
id: 'stage-node.status.paused',
|
|
48
|
+
message: 'Paused'
|
|
49
|
+
});
|
|
50
|
+
case 'Failed':
|
|
51
|
+
return _({
|
|
52
|
+
id: 'stage-node.status.failed',
|
|
53
|
+
message: 'Failed'
|
|
54
|
+
});
|
|
55
|
+
case 'Cancelled':
|
|
56
|
+
case 'UserCancelled':
|
|
57
|
+
return _({
|
|
58
|
+
id: 'stage-node.status.cancelled',
|
|
59
|
+
message: 'Cancelled'
|
|
60
|
+
});
|
|
61
|
+
case 'Terminated':
|
|
62
|
+
return _({
|
|
63
|
+
id: 'stage-node.status.terminated',
|
|
64
|
+
message: 'Terminated'
|
|
65
|
+
});
|
|
66
|
+
case 'NotExecuted':
|
|
67
|
+
return _({
|
|
68
|
+
id: 'stage-node.status.not-executed',
|
|
69
|
+
message: 'Not started'
|
|
70
|
+
});
|
|
71
|
+
case 'Warning':
|
|
72
|
+
return _({
|
|
73
|
+
id: 'stage-node.status.warning',
|
|
74
|
+
message: 'Warning'
|
|
75
|
+
});
|
|
76
|
+
default:
|
|
77
|
+
return '';
|
|
78
|
+
}
|
|
79
|
+
}, [
|
|
80
|
+
_
|
|
81
|
+
]);
|
|
82
|
+
}
|
|
83
|
+
exports.useExecutionStatusLabel = __webpack_exports__.useExecutionStatusLabel;
|
|
84
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
85
|
+
"useExecutionStatusLabel"
|
|
86
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
87
|
+
Object.defineProperty(exports, '__esModule', {
|
|
88
|
+
value: true
|
|
89
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useExecutionStatusLabel.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/useExecutionStatusLabel.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAStE,wBAAgB,uBAAuB,aAI1B,WAAW,GAAG,eAAe,GAAG,SAAS,KAAG,MAAM,CAyB9D"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { useCallback } from "react";
|
|
2
|
+
import { useSafeLingui } from "../../../i18n/index.js";
|
|
3
|
+
function useExecutionStatusLabel() {
|
|
4
|
+
const { _ } = useSafeLingui();
|
|
5
|
+
return useCallback((status)=>{
|
|
6
|
+
switch(status){
|
|
7
|
+
case 'InProgress':
|
|
8
|
+
return _({
|
|
9
|
+
id: 'stage-node.status.in-progress',
|
|
10
|
+
message: 'In progress'
|
|
11
|
+
});
|
|
12
|
+
case 'Completed':
|
|
13
|
+
return _({
|
|
14
|
+
id: 'stage-node.status.completed',
|
|
15
|
+
message: 'Completed'
|
|
16
|
+
});
|
|
17
|
+
case 'Paused':
|
|
18
|
+
return _({
|
|
19
|
+
id: 'stage-node.status.paused',
|
|
20
|
+
message: 'Paused'
|
|
21
|
+
});
|
|
22
|
+
case 'Failed':
|
|
23
|
+
return _({
|
|
24
|
+
id: 'stage-node.status.failed',
|
|
25
|
+
message: 'Failed'
|
|
26
|
+
});
|
|
27
|
+
case 'Cancelled':
|
|
28
|
+
case 'UserCancelled':
|
|
29
|
+
return _({
|
|
30
|
+
id: 'stage-node.status.cancelled',
|
|
31
|
+
message: 'Cancelled'
|
|
32
|
+
});
|
|
33
|
+
case 'Terminated':
|
|
34
|
+
return _({
|
|
35
|
+
id: 'stage-node.status.terminated',
|
|
36
|
+
message: 'Terminated'
|
|
37
|
+
});
|
|
38
|
+
case 'NotExecuted':
|
|
39
|
+
return _({
|
|
40
|
+
id: 'stage-node.status.not-executed',
|
|
41
|
+
message: 'Not started'
|
|
42
|
+
});
|
|
43
|
+
case 'Warning':
|
|
44
|
+
return _({
|
|
45
|
+
id: 'stage-node.status.warning',
|
|
46
|
+
message: 'Warning'
|
|
47
|
+
});
|
|
48
|
+
default:
|
|
49
|
+
return '';
|
|
50
|
+
}
|
|
51
|
+
}, [
|
|
52
|
+
_
|
|
53
|
+
]);
|
|
54
|
+
}
|
|
55
|
+
export { useExecutionStatusLabel };
|
|
@@ -47,9 +47,10 @@ const external_remark_breaks_namespaceObject = require("remark-breaks");
|
|
|
47
47
|
var external_remark_breaks_default = /*#__PURE__*/ __webpack_require__.n(external_remark_breaks_namespaceObject);
|
|
48
48
|
const external_remark_gfm_namespaceObject = require("remark-gfm");
|
|
49
49
|
var external_remark_gfm_default = /*#__PURE__*/ __webpack_require__.n(external_remark_gfm_namespaceObject);
|
|
50
|
+
const index_cjs_namespaceObject = require("../../../i18n/index.cjs");
|
|
50
51
|
const external_constants_cjs_namespaceObject = require("../../constants.cjs");
|
|
51
52
|
const external_NodeViewportOverlay_cjs_namespaceObject = require("../NodeViewportOverlay.cjs");
|
|
52
|
-
const
|
|
53
|
+
const external_Toolbar_index_cjs_namespaceObject = require("../Toolbar/index.cjs");
|
|
53
54
|
const external_FormattingToolbar_cjs_namespaceObject = require("./FormattingToolbar.cjs");
|
|
54
55
|
const external_markdown_formatting_index_cjs_namespaceObject = require("./markdown-formatting/index.cjs");
|
|
55
56
|
const external_StickyNoteNode_styles_cjs_namespaceObject = require("./StickyNoteNode.styles.cjs");
|
|
@@ -60,6 +61,7 @@ const external_useScrollCapture_cjs_namespaceObject = require("./useScrollCaptur
|
|
|
60
61
|
const minWidth = 8 * external_constants_cjs_namespaceObject.GRID_SPACING;
|
|
61
62
|
const minHeight = 8 * external_constants_cjs_namespaceObject.GRID_SPACING;
|
|
62
63
|
const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = 'Add text', renderPlaceholderOnSelect = false, readOnly = false, onContentChange, onColorChange, onResize })=>{
|
|
64
|
+
const { _ } = (0, index_cjs_namespaceObject.useSafeLingui)();
|
|
63
65
|
const { updateNodeData, deleteElements } = (0, react_cjs_namespaceObject.useReactFlow)();
|
|
64
66
|
const [isEditing, setIsEditing] = (0, external_react_namespaceObject.useState)(!readOnly && (data.autoFocus ?? false));
|
|
65
67
|
const [isResizing, setIsResizing] = (0, external_react_namespaceObject.useState)(false);
|
|
@@ -264,7 +266,10 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
|
|
|
264
266
|
icon: "trash",
|
|
265
267
|
size: 14
|
|
266
268
|
}),
|
|
267
|
-
label:
|
|
269
|
+
label: _({
|
|
270
|
+
id: 'sticky-note.toolbar.delete',
|
|
271
|
+
message: 'Delete'
|
|
272
|
+
}),
|
|
268
273
|
onAction: handleDelete
|
|
269
274
|
},
|
|
270
275
|
{
|
|
@@ -273,7 +278,10 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
|
|
|
273
278
|
icon: "pencil",
|
|
274
279
|
size: 14
|
|
275
280
|
}),
|
|
276
|
-
label:
|
|
281
|
+
label: _({
|
|
282
|
+
id: 'sticky-note.toolbar.edit',
|
|
283
|
+
message: 'Edit'
|
|
284
|
+
}),
|
|
277
285
|
onAction: handleEditClick
|
|
278
286
|
},
|
|
279
287
|
{
|
|
@@ -291,7 +299,10 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
|
|
|
291
299
|
border: '1px solid transparent'
|
|
292
300
|
}
|
|
293
301
|
}),
|
|
294
|
-
label:
|
|
302
|
+
label: _({
|
|
303
|
+
id: 'sticky-note.toolbar.color',
|
|
304
|
+
message: 'Color'
|
|
305
|
+
}),
|
|
295
306
|
onAction: handleToggleColorPicker
|
|
296
307
|
}
|
|
297
308
|
];
|
|
@@ -303,6 +314,7 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
|
|
|
303
314
|
align: 'center'
|
|
304
315
|
};
|
|
305
316
|
}, [
|
|
317
|
+
_,
|
|
306
318
|
handleEditClick,
|
|
307
319
|
handleToggleColorPicker,
|
|
308
320
|
color,
|
|
@@ -440,7 +452,7 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
|
|
|
440
452
|
})
|
|
441
453
|
]
|
|
442
454
|
}),
|
|
443
|
-
!readOnly && selected && !dragging && !isResizing && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
455
|
+
!readOnly && selected && !dragging && !isResizing && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_Toolbar_index_cjs_namespaceObject.NodeToolbar, {
|
|
444
456
|
nodeId: id,
|
|
445
457
|
config: toolbarConfig,
|
|
446
458
|
expanded: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StickyNoteNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StickyNoteNode/StickyNoteNode.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"StickyNoteNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StickyNoteNode/StickyNoteNode.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAiC1E,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAiB,MAAM,wBAAwB,CAAC;AAM7F,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,IAAI,EAAE,cAAc,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;IACjD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACpD;AAkaD,eAAO,MAAM,cAAc,sKAlZxB,mBAAmB,6CAkZqC,CAAC"}
|
|
@@ -7,6 +7,7 @@ import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
|
7
7
|
import react_markdown from "react-markdown";
|
|
8
8
|
import remark_breaks from "remark-breaks";
|
|
9
9
|
import remark_gfm from "remark-gfm";
|
|
10
|
+
import { useSafeLingui } from "../../../i18n/index.js";
|
|
10
11
|
import { GRID_SPACING } from "../../constants.js";
|
|
11
12
|
import { NodeViewportOverlay } from "../NodeViewportOverlay.js";
|
|
12
13
|
import { NodeToolbar } from "../Toolbar/index.js";
|
|
@@ -20,6 +21,7 @@ import { useScrollCapture } from "./useScrollCapture.js";
|
|
|
20
21
|
const minWidth = 8 * GRID_SPACING;
|
|
21
22
|
const minHeight = 8 * GRID_SPACING;
|
|
22
23
|
const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = 'Add text', renderPlaceholderOnSelect = false, readOnly = false, onContentChange, onColorChange, onResize })=>{
|
|
24
|
+
const { _ } = useSafeLingui();
|
|
23
25
|
const { updateNodeData, deleteElements } = useReactFlow();
|
|
24
26
|
const [isEditing, setIsEditing] = useState(!readOnly && (data.autoFocus ?? false));
|
|
25
27
|
const [isResizing, setIsResizing] = useState(false);
|
|
@@ -224,7 +226,10 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
|
|
|
224
226
|
icon: "trash",
|
|
225
227
|
size: 14
|
|
226
228
|
}),
|
|
227
|
-
label:
|
|
229
|
+
label: _({
|
|
230
|
+
id: 'sticky-note.toolbar.delete',
|
|
231
|
+
message: 'Delete'
|
|
232
|
+
}),
|
|
228
233
|
onAction: handleDelete
|
|
229
234
|
},
|
|
230
235
|
{
|
|
@@ -233,7 +238,10 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
|
|
|
233
238
|
icon: "pencil",
|
|
234
239
|
size: 14
|
|
235
240
|
}),
|
|
236
|
-
label:
|
|
241
|
+
label: _({
|
|
242
|
+
id: 'sticky-note.toolbar.edit',
|
|
243
|
+
message: 'Edit'
|
|
244
|
+
}),
|
|
237
245
|
onAction: handleEditClick
|
|
238
246
|
},
|
|
239
247
|
{
|
|
@@ -251,7 +259,10 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
|
|
|
251
259
|
border: '1px solid transparent'
|
|
252
260
|
}
|
|
253
261
|
}),
|
|
254
|
-
label:
|
|
262
|
+
label: _({
|
|
263
|
+
id: 'sticky-note.toolbar.color',
|
|
264
|
+
message: 'Color'
|
|
265
|
+
}),
|
|
255
266
|
onAction: handleToggleColorPicker
|
|
256
267
|
}
|
|
257
268
|
];
|
|
@@ -263,6 +274,7 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
|
|
|
263
274
|
align: 'center'
|
|
264
275
|
};
|
|
265
276
|
}, [
|
|
277
|
+
_,
|
|
266
278
|
handleEditClick,
|
|
267
279
|
handleToggleColorPicker,
|
|
268
280
|
color,
|
|
@@ -26,7 +26,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
27
|
messages: ()=>messages
|
|
28
28
|
});
|
|
29
|
-
const messages = JSON.parse("{\"stage-node.add-first-task\":[\"Add first task\"],\"stage-node.add-task\":[\"Add task\"],\"stage-node.add-task-to-parallel-group-above\":[\"Add task to parallel group above\"],\"stage-node.add-task-to-parallel-group-below\":[\"Add task to parallel group below\"],\"stage-node.adhoc-tasks\":[\"Ad hoc tasks\"],\"stage-node.create-parallel-group-with-task-above\":[\"Create parallel group with task above\"],\"stage-node.create-parallel-group-with-task-below\":[\"Create parallel group with task below\"],\"stage-node.delete-task\":[\"Delete task\"],\"stage-node.event-driven-tasks\":[\"Event-driven tasks\"],\"stage-node.move-down\":[\"Move down\"],\"stage-node.move-up\":[\"Move up\"],\"stage-node.no-tasks\":[\"No tasks\"],\"stage-node.parallel\":[\"Parallel\"],\"stage-node.remove-from-parallel-group\":[\"Remove from parallel group\"],\"stage-node.remove-group-from-stage\":[\"Remove group from stage\"],\"stage-node.replace-task\":[\"Replace task\"],\"stage-node.ungroup-parallel-tasks\":[\"Ungroup parallel tasks\"],\"stage-node.untitled-stage\":[\"Untitled stage\"],\"sticky-note.formatting.bold\":[\"Bold (\",[\"boldShortcut\"],\")\"],\"sticky-note.formatting.bullet-list\":[\"Bullet list\"],\"sticky-note.formatting.italic\":[\"Italic (\",[\"italicShortcut\"],\")\"],\"sticky-note.formatting.numbered-list\":[\"Numbered list\"],\"sticky-note.formatting.strikethrough\":[\"Strikethrough (\",[\"strikethroughShortcut\"],\")\"],\"sticky-note.formatting.toolbar\":[\"Text formatting\"],\"toolbox.search\":[\"Search\"]}");
|
|
29
|
+
const messages = JSON.parse("{\"stage-node.add-first-task\":[\"Add first task\"],\"stage-node.add-task\":[\"Add task\"],\"stage-node.add-task-to-parallel-group-above\":[\"Add task to parallel group above\"],\"stage-node.add-task-to-parallel-group-below\":[\"Add task to parallel group below\"],\"stage-node.adhoc-tasks\":[\"Ad hoc tasks\"],\"stage-node.create-parallel-group-with-task-above\":[\"Create parallel group with task above\"],\"stage-node.create-parallel-group-with-task-below\":[\"Create parallel group with task below\"],\"stage-node.delete-task\":[\"Delete task\"],\"stage-node.event-driven-tasks\":[\"Event-driven tasks\"],\"stage-node.move-down\":[\"Move down\"],\"stage-node.move-up\":[\"Move up\"],\"stage-node.no-tasks\":[\"No tasks\"],\"stage-node.parallel\":[\"Parallel\"],\"stage-node.remove-from-parallel-group\":[\"Remove from parallel group\"],\"stage-node.remove-group-from-stage\":[\"Remove group from stage\"],\"stage-node.replace-task\":[\"Replace task\"],\"stage-node.status.cancelled\":[\"Cancelled\"],\"stage-node.status.completed\":[\"Completed\"],\"stage-node.status.failed\":[\"Failed\"],\"stage-node.status.in-progress\":[\"In progress\"],\"stage-node.status.not-executed\":[\"Not started\"],\"stage-node.status.paused\":[\"Paused\"],\"stage-node.status.terminated\":[\"Terminated\"],\"stage-node.status.warning\":[\"Warning\"],\"stage-node.ungroup-parallel-tasks\":[\"Ungroup parallel tasks\"],\"stage-node.untitled-stage\":[\"Untitled stage\"],\"sticky-note.formatting.bold\":[\"Bold (\",[\"boldShortcut\"],\")\"],\"sticky-note.formatting.bullet-list\":[\"Bullet list\"],\"sticky-note.formatting.italic\":[\"Italic (\",[\"italicShortcut\"],\")\"],\"sticky-note.formatting.numbered-list\":[\"Numbered list\"],\"sticky-note.formatting.strikethrough\":[\"Strikethrough (\",[\"strikethroughShortcut\"],\")\"],\"sticky-note.formatting.toolbar\":[\"Text formatting\"],\"sticky-note.toolbar.color\":[\"Color\"],\"sticky-note.toolbar.delete\":[\"Delete\"],\"sticky-note.toolbar.edit\":[\"Edit\"],\"toolbox.search\":[\"Search\"]}");
|
|
30
30
|
exports.messages = __webpack_exports__.messages;
|
|
31
31
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
32
32
|
"messages"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/canvas/locales/en.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/canvas/locales/en.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,EAA+/D,QAAQ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const messages = JSON.parse("{\"stage-node.add-first-task\":[\"Add first task\"],\"stage-node.add-task\":[\"Add task\"],\"stage-node.add-task-to-parallel-group-above\":[\"Add task to parallel group above\"],\"stage-node.add-task-to-parallel-group-below\":[\"Add task to parallel group below\"],\"stage-node.adhoc-tasks\":[\"Ad hoc tasks\"],\"stage-node.create-parallel-group-with-task-above\":[\"Create parallel group with task above\"],\"stage-node.create-parallel-group-with-task-below\":[\"Create parallel group with task below\"],\"stage-node.delete-task\":[\"Delete task\"],\"stage-node.event-driven-tasks\":[\"Event-driven tasks\"],\"stage-node.move-down\":[\"Move down\"],\"stage-node.move-up\":[\"Move up\"],\"stage-node.no-tasks\":[\"No tasks\"],\"stage-node.parallel\":[\"Parallel\"],\"stage-node.remove-from-parallel-group\":[\"Remove from parallel group\"],\"stage-node.remove-group-from-stage\":[\"Remove group from stage\"],\"stage-node.replace-task\":[\"Replace task\"],\"stage-node.ungroup-parallel-tasks\":[\"Ungroup parallel tasks\"],\"stage-node.untitled-stage\":[\"Untitled stage\"],\"sticky-note.formatting.bold\":[\"Bold (\",[\"boldShortcut\"],\")\"],\"sticky-note.formatting.bullet-list\":[\"Bullet list\"],\"sticky-note.formatting.italic\":[\"Italic (\",[\"italicShortcut\"],\")\"],\"sticky-note.formatting.numbered-list\":[\"Numbered list\"],\"sticky-note.formatting.strikethrough\":[\"Strikethrough (\",[\"strikethroughShortcut\"],\")\"],\"sticky-note.formatting.toolbar\":[\"Text formatting\"],\"toolbox.search\":[\"Search\"]}");
|
|
1
|
+
const messages = JSON.parse("{\"stage-node.add-first-task\":[\"Add first task\"],\"stage-node.add-task\":[\"Add task\"],\"stage-node.add-task-to-parallel-group-above\":[\"Add task to parallel group above\"],\"stage-node.add-task-to-parallel-group-below\":[\"Add task to parallel group below\"],\"stage-node.adhoc-tasks\":[\"Ad hoc tasks\"],\"stage-node.create-parallel-group-with-task-above\":[\"Create parallel group with task above\"],\"stage-node.create-parallel-group-with-task-below\":[\"Create parallel group with task below\"],\"stage-node.delete-task\":[\"Delete task\"],\"stage-node.event-driven-tasks\":[\"Event-driven tasks\"],\"stage-node.move-down\":[\"Move down\"],\"stage-node.move-up\":[\"Move up\"],\"stage-node.no-tasks\":[\"No tasks\"],\"stage-node.parallel\":[\"Parallel\"],\"stage-node.remove-from-parallel-group\":[\"Remove from parallel group\"],\"stage-node.remove-group-from-stage\":[\"Remove group from stage\"],\"stage-node.replace-task\":[\"Replace task\"],\"stage-node.status.cancelled\":[\"Cancelled\"],\"stage-node.status.completed\":[\"Completed\"],\"stage-node.status.failed\":[\"Failed\"],\"stage-node.status.in-progress\":[\"In progress\"],\"stage-node.status.not-executed\":[\"Not started\"],\"stage-node.status.paused\":[\"Paused\"],\"stage-node.status.terminated\":[\"Terminated\"],\"stage-node.status.warning\":[\"Warning\"],\"stage-node.ungroup-parallel-tasks\":[\"Ungroup parallel tasks\"],\"stage-node.untitled-stage\":[\"Untitled stage\"],\"sticky-note.formatting.bold\":[\"Bold (\",[\"boldShortcut\"],\")\"],\"sticky-note.formatting.bullet-list\":[\"Bullet list\"],\"sticky-note.formatting.italic\":[\"Italic (\",[\"italicShortcut\"],\")\"],\"sticky-note.formatting.numbered-list\":[\"Numbered list\"],\"sticky-note.formatting.strikethrough\":[\"Strikethrough (\",[\"strikethroughShortcut\"],\")\"],\"sticky-note.formatting.toolbar\":[\"Text formatting\"],\"sticky-note.toolbar.color\":[\"Color\"],\"sticky-note.toolbar.delete\":[\"Delete\"],\"sticky-note.toolbar.edit\":[\"Edit\"],\"toolbox.search\":[\"Search\"]}");
|
|
2
2
|
export { messages };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/apollo-react",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.32.0",
|
|
4
4
|
"description": "Apollo Design System - React component library with Material UI theming",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -205,8 +205,8 @@
|
|
|
205
205
|
"use-sync-external-store": "^1.2.0",
|
|
206
206
|
"zod": "^4.3.5",
|
|
207
207
|
"zustand": "^5.0.9",
|
|
208
|
-
"@uipath/apollo-
|
|
209
|
-
"@uipath/apollo-
|
|
208
|
+
"@uipath/apollo-core": "5.9.1",
|
|
209
|
+
"@uipath/apollo-wind": "2.17.0"
|
|
210
210
|
},
|
|
211
211
|
"devDependencies": {
|
|
212
212
|
"@lingui/cli": "^5.6.1",
|