@uipath/apollo-react 3.58.1 → 3.59.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/BaseNode/BaseNode.stories.cjs +166 -66
- package/dist/canvas/components/BaseNode/BaseNode.stories.d.ts +1 -1
- package/dist/canvas/components/BaseNode/BaseNode.stories.d.ts.map +1 -1
- package/dist/canvas/components/BaseNode/BaseNode.stories.js +164 -64
- package/dist/canvas/components/StageNode/DraggableTask.cjs +5 -3
- package/dist/canvas/components/StageNode/DraggableTask.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/DraggableTask.js +6 -4
- package/dist/canvas/components/StageNode/StageNode.stories.cjs +44 -0
- package/dist/canvas/components/StageNode/StageNode.stories.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/StageNode.stories.js +44 -0
- package/dist/canvas/components/StageNode/StageNode.styles.cjs +0 -4
- package/dist/canvas/components/StageNode/StageNode.styles.d.ts +0 -1
- package/dist/canvas/components/StageNode/StageNode.styles.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/StageNode.styles.js +0 -4
- package/dist/canvas/utils/adornment-resolver.cjs +3 -3
- package/dist/canvas/utils/adornment-resolver.js +3 -3
- package/dist/canvas/utils/icon-registry.cjs +0 -5
- package/dist/canvas/utils/icon-registry.d.ts.map +1 -1
- package/dist/canvas/utils/icon-registry.js +1 -6
- package/package.json +1 -1
|
@@ -25,9 +25,9 @@ var __webpack_exports__ = {};
|
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
27
|
CustomizedSizes: ()=>CustomizedSizes,
|
|
28
|
-
Loading: ()=>Loading,
|
|
29
28
|
ValidationStates: ()=>ValidationStates,
|
|
30
29
|
Default: ()=>Default,
|
|
30
|
+
Adornments: ()=>Adornments,
|
|
31
31
|
default: ()=>BaseNode_stories,
|
|
32
32
|
DynamicHandles: ()=>DynamicHandles
|
|
33
33
|
});
|
|
@@ -850,65 +850,6 @@ function DynamicHandlesStory() {
|
|
|
850
850
|
]
|
|
851
851
|
});
|
|
852
852
|
}
|
|
853
|
-
function createLoadingGrid() {
|
|
854
|
-
const shapes = [
|
|
855
|
-
{
|
|
856
|
-
type: 'uipath.blank-node',
|
|
857
|
-
shape: 'square',
|
|
858
|
-
label: 'Square'
|
|
859
|
-
},
|
|
860
|
-
{
|
|
861
|
-
type: 'uipath.control-flow.terminate',
|
|
862
|
-
shape: 'circle',
|
|
863
|
-
label: 'Circle'
|
|
864
|
-
},
|
|
865
|
-
{
|
|
866
|
-
type: 'uipath.agent',
|
|
867
|
-
shape: 'rectangle',
|
|
868
|
-
label: 'Rectangle'
|
|
869
|
-
}
|
|
870
|
-
];
|
|
871
|
-
return shapes.map((config, index)=>(0, external_storybook_utils_index_cjs_namespaceObject.createNode)({
|
|
872
|
-
id: `loading-${config.shape}`,
|
|
873
|
-
type: config.type,
|
|
874
|
-
position: {
|
|
875
|
-
x: 96 + 192 * index,
|
|
876
|
-
y: 96
|
|
877
|
-
},
|
|
878
|
-
data: {
|
|
879
|
-
nodeType: config.type,
|
|
880
|
-
version: '1.0.0',
|
|
881
|
-
loading: true,
|
|
882
|
-
display: {
|
|
883
|
-
label: config.label,
|
|
884
|
-
subLabel: 'Loading...',
|
|
885
|
-
shape: config.shape
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
}));
|
|
889
|
-
}
|
|
890
|
-
function LoadingStory() {
|
|
891
|
-
const initialNodes = (0, external_react_namespaceObject.useMemo)(()=>createLoadingGrid(), []);
|
|
892
|
-
const { canvasProps } = (0, external_storybook_utils_index_cjs_namespaceObject.useCanvasStory)({
|
|
893
|
-
initialNodes
|
|
894
|
-
});
|
|
895
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_BaseCanvas_index_cjs_namespaceObject.BaseCanvas, {
|
|
896
|
-
...canvasProps,
|
|
897
|
-
mode: "design",
|
|
898
|
-
children: [
|
|
899
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_cjs_namespaceObject.Panel, {
|
|
900
|
-
position: "bottom-right",
|
|
901
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasPositionControls_cjs_namespaceObject.CanvasPositionControls, {
|
|
902
|
-
translations: external_types_cjs_namespaceObject.DefaultCanvasTranslations
|
|
903
|
-
})
|
|
904
|
-
}),
|
|
905
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_storybook_utils_index_cjs_namespaceObject.StoryInfoPanel, {
|
|
906
|
-
title: "Loading State",
|
|
907
|
-
description: "Nodes in skeleton loading state for circle, square, and rectangle shapes."
|
|
908
|
-
})
|
|
909
|
-
]
|
|
910
|
-
});
|
|
911
|
-
}
|
|
912
853
|
const Default = {
|
|
913
854
|
name: 'Default',
|
|
914
855
|
render: ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(DefaultStory, {})
|
|
@@ -980,6 +921,169 @@ function ValidationStatesStory() {
|
|
|
980
921
|
]
|
|
981
922
|
});
|
|
982
923
|
}
|
|
924
|
+
const ADORNMENT_ROWS = [
|
|
925
|
+
{
|
|
926
|
+
key: 'breakpoint',
|
|
927
|
+
label: 'Breakpoint (top-left)'
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
key: 'status-completed',
|
|
931
|
+
label: 'Status: Completed (top-right)'
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
key: 'status-inprogress',
|
|
935
|
+
label: 'Status: InProgress (top-right)'
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
key: 'status-failed',
|
|
939
|
+
label: 'Status: Failed (top-right)'
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
key: 'start-point',
|
|
943
|
+
label: 'Start Point (bottom-left)'
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
key: 'square-dashed',
|
|
947
|
+
label: 'Square Dashed (bottom-right)'
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
key: 'all',
|
|
951
|
+
label: 'All Adornments'
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
key: 'multi-exec',
|
|
955
|
+
label: 'Multi-execution (count: 5)'
|
|
956
|
+
}
|
|
957
|
+
];
|
|
958
|
+
function createAdornmentGrid() {
|
|
959
|
+
const nodes = [];
|
|
960
|
+
ADORNMENT_ROWS.forEach((row, rowIndex)=>{
|
|
961
|
+
SHAPES.forEach((shape, colIndex)=>{
|
|
962
|
+
const label = 'rectangle' === shape ? 'Invoice approval agent' : 'Header';
|
|
963
|
+
const nodeType = 'rectangle' === shape ? 'uipath.agent' : 'uipath.blank-node';
|
|
964
|
+
nodes.push((0, external_storybook_utils_index_cjs_namespaceObject.createNode)({
|
|
965
|
+
id: `adorn-${row.key}-${shape}`,
|
|
966
|
+
type: nodeType,
|
|
967
|
+
position: {
|
|
968
|
+
x: GRID_CONFIG.startX + colIndex * GRID_CONFIG.gapX,
|
|
969
|
+
y: GRID_CONFIG.startY + rowIndex * GRID_CONFIG.gapY
|
|
970
|
+
},
|
|
971
|
+
data: {
|
|
972
|
+
nodeType,
|
|
973
|
+
version: '1.0.0',
|
|
974
|
+
display: {
|
|
975
|
+
label,
|
|
976
|
+
subLabel: row.label,
|
|
977
|
+
shape
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
}));
|
|
981
|
+
});
|
|
982
|
+
});
|
|
983
|
+
return nodes;
|
|
984
|
+
}
|
|
985
|
+
function getAdornmentExecutionState(key) {
|
|
986
|
+
switch(key){
|
|
987
|
+
case 'breakpoint':
|
|
988
|
+
return {
|
|
989
|
+
status: 'None',
|
|
990
|
+
debug: true
|
|
991
|
+
};
|
|
992
|
+
case 'status-completed':
|
|
993
|
+
return {
|
|
994
|
+
status: 'Completed'
|
|
995
|
+
};
|
|
996
|
+
case 'status-inprogress':
|
|
997
|
+
return {
|
|
998
|
+
status: 'InProgress'
|
|
999
|
+
};
|
|
1000
|
+
case 'status-failed':
|
|
1001
|
+
return {
|
|
1002
|
+
status: 'Failed'
|
|
1003
|
+
};
|
|
1004
|
+
case 'start-point':
|
|
1005
|
+
return {
|
|
1006
|
+
status: 'None',
|
|
1007
|
+
isExecutionStartPoint: true
|
|
1008
|
+
};
|
|
1009
|
+
case 'square-dashed':
|
|
1010
|
+
return {
|
|
1011
|
+
status: 'None',
|
|
1012
|
+
isOutputPinned: true
|
|
1013
|
+
};
|
|
1014
|
+
case 'all':
|
|
1015
|
+
return {
|
|
1016
|
+
status: 'Completed',
|
|
1017
|
+
debug: true,
|
|
1018
|
+
isExecutionStartPoint: true,
|
|
1019
|
+
isOutputPinned: true
|
|
1020
|
+
};
|
|
1021
|
+
case 'multi-exec':
|
|
1022
|
+
return {
|
|
1023
|
+
status: 'Completed',
|
|
1024
|
+
count: 5
|
|
1025
|
+
};
|
|
1026
|
+
default:
|
|
1027
|
+
return;
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
function AdornmentsStory() {
|
|
1031
|
+
const initialNodes = (0, external_react_namespaceObject.useMemo)(()=>createAdornmentGrid(), []);
|
|
1032
|
+
const { canvasProps } = (0, external_storybook_utils_index_cjs_namespaceObject.useCanvasStory)({
|
|
1033
|
+
initialNodes
|
|
1034
|
+
});
|
|
1035
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_BaseCanvas_index_cjs_namespaceObject.BaseCanvas, {
|
|
1036
|
+
...canvasProps,
|
|
1037
|
+
mode: "design",
|
|
1038
|
+
children: [
|
|
1039
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_cjs_namespaceObject.Panel, {
|
|
1040
|
+
position: "bottom-right",
|
|
1041
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasPositionControls_cjs_namespaceObject.CanvasPositionControls, {
|
|
1042
|
+
translations: external_types_cjs_namespaceObject.DefaultCanvasTranslations
|
|
1043
|
+
})
|
|
1044
|
+
}),
|
|
1045
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_storybook_utils_index_cjs_namespaceObject.StoryInfoPanel, {
|
|
1046
|
+
title: "Adornments",
|
|
1047
|
+
description: "Grid showing all adornment types across shapes. Each row demonstrates a different adornment: breakpoint (top-left), execution status (top-right), execution start point (bottom-left), square dashed (bottom-right), and all combined."
|
|
1048
|
+
})
|
|
1049
|
+
]
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
const Adornments = {
|
|
1053
|
+
name: 'Adornments',
|
|
1054
|
+
decorators: [
|
|
1055
|
+
(Story)=>{
|
|
1056
|
+
const registry = (0, external_react_namespaceObject.useMemo)(()=>{
|
|
1057
|
+
const reg = new external_core_index_cjs_namespaceObject.NodeTypeRegistry();
|
|
1058
|
+
reg.registerManifest(sampleManifest.nodes, sampleManifest.categories);
|
|
1059
|
+
return reg;
|
|
1060
|
+
}, []);
|
|
1061
|
+
const contextValue = (0, external_react_namespaceObject.useMemo)(()=>({
|
|
1062
|
+
registry
|
|
1063
|
+
}), [
|
|
1064
|
+
registry
|
|
1065
|
+
]);
|
|
1066
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_core_index_cjs_namespaceObject.NodeRegistryContext.Provider, {
|
|
1067
|
+
value: contextValue,
|
|
1068
|
+
children: Story()
|
|
1069
|
+
});
|
|
1070
|
+
},
|
|
1071
|
+
(0, external_storybook_utils_index_cjs_namespaceObject.withCanvasProviders)({
|
|
1072
|
+
executionState: {
|
|
1073
|
+
getNodeExecutionState: (nodeId)=>{
|
|
1074
|
+
const parts = nodeId.split('-');
|
|
1075
|
+
const key = parts.slice(1, -1).join('-');
|
|
1076
|
+
return getAdornmentExecutionState(key);
|
|
1077
|
+
},
|
|
1078
|
+
getEdgeExecutionState: ()=>void 0
|
|
1079
|
+
},
|
|
1080
|
+
validationState: {
|
|
1081
|
+
getElementValidationState: ()=>void 0
|
|
1082
|
+
}
|
|
1083
|
+
})
|
|
1084
|
+
],
|
|
1085
|
+
render: ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(AdornmentsStory, {})
|
|
1086
|
+
};
|
|
983
1087
|
const ValidationStates = {
|
|
984
1088
|
name: 'Validation States',
|
|
985
1089
|
decorators: [
|
|
@@ -1027,21 +1131,17 @@ const ValidationStates = {
|
|
|
1027
1131
|
],
|
|
1028
1132
|
render: ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ValidationStatesStory, {})
|
|
1029
1133
|
};
|
|
1030
|
-
|
|
1031
|
-
name: 'Loading',
|
|
1032
|
-
render: ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(LoadingStory, {})
|
|
1033
|
-
};
|
|
1134
|
+
exports.Adornments = __webpack_exports__.Adornments;
|
|
1034
1135
|
exports.CustomizedSizes = __webpack_exports__.CustomizedSizes;
|
|
1035
1136
|
exports.Default = __webpack_exports__.Default;
|
|
1036
1137
|
exports.DynamicHandles = __webpack_exports__.DynamicHandles;
|
|
1037
|
-
exports.Loading = __webpack_exports__.Loading;
|
|
1038
1138
|
exports.ValidationStates = __webpack_exports__.ValidationStates;
|
|
1039
1139
|
exports["default"] = __webpack_exports__["default"];
|
|
1040
1140
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
1141
|
+
"Adornments",
|
|
1041
1142
|
"CustomizedSizes",
|
|
1042
1143
|
"Default",
|
|
1043
1144
|
"DynamicHandles",
|
|
1044
|
-
"Loading",
|
|
1045
1145
|
"ValidationStates",
|
|
1046
1146
|
"default"
|
|
1047
1147
|
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
@@ -6,6 +6,6 @@ type Story = StoryObj<typeof meta>;
|
|
|
6
6
|
export declare const Default: Story;
|
|
7
7
|
export declare const CustomizedSizes: Story;
|
|
8
8
|
export declare const DynamicHandles: Story;
|
|
9
|
+
export declare const Adornments: Story;
|
|
9
10
|
export declare const ValidationStates: Story;
|
|
10
|
-
export declare const Loading: Story;
|
|
11
11
|
//# sourceMappingURL=BaseNode.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseNode.stories.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/BaseNode.stories.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAmBvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAyMrD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,YAAY,CAqB5B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseNode.stories.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/BaseNode.stories.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAmBvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAyMrD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,YAAY,CAqB5B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAmZnC,eAAO,MAAM,OAAO,EAAE,KAGrB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAG7B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAG5B,CAAC;AA0KF,eAAO,MAAM,UAAU,EAAE,KAiCxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAuC9B,CAAC"}
|
|
@@ -817,65 +817,6 @@ function DynamicHandlesStory() {
|
|
|
817
817
|
]
|
|
818
818
|
});
|
|
819
819
|
}
|
|
820
|
-
function createLoadingGrid() {
|
|
821
|
-
const shapes = [
|
|
822
|
-
{
|
|
823
|
-
type: 'uipath.blank-node',
|
|
824
|
-
shape: 'square',
|
|
825
|
-
label: 'Square'
|
|
826
|
-
},
|
|
827
|
-
{
|
|
828
|
-
type: 'uipath.control-flow.terminate',
|
|
829
|
-
shape: 'circle',
|
|
830
|
-
label: 'Circle'
|
|
831
|
-
},
|
|
832
|
-
{
|
|
833
|
-
type: 'uipath.agent',
|
|
834
|
-
shape: 'rectangle',
|
|
835
|
-
label: 'Rectangle'
|
|
836
|
-
}
|
|
837
|
-
];
|
|
838
|
-
return shapes.map((config, index)=>createNode({
|
|
839
|
-
id: `loading-${config.shape}`,
|
|
840
|
-
type: config.type,
|
|
841
|
-
position: {
|
|
842
|
-
x: 96 + 192 * index,
|
|
843
|
-
y: 96
|
|
844
|
-
},
|
|
845
|
-
data: {
|
|
846
|
-
nodeType: config.type,
|
|
847
|
-
version: '1.0.0',
|
|
848
|
-
loading: true,
|
|
849
|
-
display: {
|
|
850
|
-
label: config.label,
|
|
851
|
-
subLabel: 'Loading...',
|
|
852
|
-
shape: config.shape
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
}));
|
|
856
|
-
}
|
|
857
|
-
function LoadingStory() {
|
|
858
|
-
const initialNodes = useMemo(()=>createLoadingGrid(), []);
|
|
859
|
-
const { canvasProps } = useCanvasStory({
|
|
860
|
-
initialNodes
|
|
861
|
-
});
|
|
862
|
-
return /*#__PURE__*/ jsxs(BaseCanvas, {
|
|
863
|
-
...canvasProps,
|
|
864
|
-
mode: "design",
|
|
865
|
-
children: [
|
|
866
|
-
/*#__PURE__*/ jsx(Panel, {
|
|
867
|
-
position: "bottom-right",
|
|
868
|
-
children: /*#__PURE__*/ jsx(CanvasPositionControls, {
|
|
869
|
-
translations: DefaultCanvasTranslations
|
|
870
|
-
})
|
|
871
|
-
}),
|
|
872
|
-
/*#__PURE__*/ jsx(StoryInfoPanel, {
|
|
873
|
-
title: "Loading State",
|
|
874
|
-
description: "Nodes in skeleton loading state for circle, square, and rectangle shapes."
|
|
875
|
-
})
|
|
876
|
-
]
|
|
877
|
-
});
|
|
878
|
-
}
|
|
879
820
|
const Default = {
|
|
880
821
|
name: 'Default',
|
|
881
822
|
render: ()=>/*#__PURE__*/ jsx(DefaultStory, {})
|
|
@@ -947,6 +888,169 @@ function ValidationStatesStory() {
|
|
|
947
888
|
]
|
|
948
889
|
});
|
|
949
890
|
}
|
|
891
|
+
const ADORNMENT_ROWS = [
|
|
892
|
+
{
|
|
893
|
+
key: 'breakpoint',
|
|
894
|
+
label: 'Breakpoint (top-left)'
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
key: 'status-completed',
|
|
898
|
+
label: 'Status: Completed (top-right)'
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
key: 'status-inprogress',
|
|
902
|
+
label: 'Status: InProgress (top-right)'
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
key: 'status-failed',
|
|
906
|
+
label: 'Status: Failed (top-right)'
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
key: 'start-point',
|
|
910
|
+
label: 'Start Point (bottom-left)'
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
key: 'square-dashed',
|
|
914
|
+
label: 'Square Dashed (bottom-right)'
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
key: 'all',
|
|
918
|
+
label: 'All Adornments'
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
key: 'multi-exec',
|
|
922
|
+
label: 'Multi-execution (count: 5)'
|
|
923
|
+
}
|
|
924
|
+
];
|
|
925
|
+
function createAdornmentGrid() {
|
|
926
|
+
const nodes = [];
|
|
927
|
+
ADORNMENT_ROWS.forEach((row, rowIndex)=>{
|
|
928
|
+
SHAPES.forEach((shape, colIndex)=>{
|
|
929
|
+
const label = 'rectangle' === shape ? 'Invoice approval agent' : 'Header';
|
|
930
|
+
const nodeType = 'rectangle' === shape ? 'uipath.agent' : 'uipath.blank-node';
|
|
931
|
+
nodes.push(createNode({
|
|
932
|
+
id: `adorn-${row.key}-${shape}`,
|
|
933
|
+
type: nodeType,
|
|
934
|
+
position: {
|
|
935
|
+
x: GRID_CONFIG.startX + colIndex * GRID_CONFIG.gapX,
|
|
936
|
+
y: GRID_CONFIG.startY + rowIndex * GRID_CONFIG.gapY
|
|
937
|
+
},
|
|
938
|
+
data: {
|
|
939
|
+
nodeType,
|
|
940
|
+
version: '1.0.0',
|
|
941
|
+
display: {
|
|
942
|
+
label,
|
|
943
|
+
subLabel: row.label,
|
|
944
|
+
shape
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
}));
|
|
948
|
+
});
|
|
949
|
+
});
|
|
950
|
+
return nodes;
|
|
951
|
+
}
|
|
952
|
+
function getAdornmentExecutionState(key) {
|
|
953
|
+
switch(key){
|
|
954
|
+
case 'breakpoint':
|
|
955
|
+
return {
|
|
956
|
+
status: 'None',
|
|
957
|
+
debug: true
|
|
958
|
+
};
|
|
959
|
+
case 'status-completed':
|
|
960
|
+
return {
|
|
961
|
+
status: 'Completed'
|
|
962
|
+
};
|
|
963
|
+
case 'status-inprogress':
|
|
964
|
+
return {
|
|
965
|
+
status: 'InProgress'
|
|
966
|
+
};
|
|
967
|
+
case 'status-failed':
|
|
968
|
+
return {
|
|
969
|
+
status: 'Failed'
|
|
970
|
+
};
|
|
971
|
+
case 'start-point':
|
|
972
|
+
return {
|
|
973
|
+
status: 'None',
|
|
974
|
+
isExecutionStartPoint: true
|
|
975
|
+
};
|
|
976
|
+
case 'square-dashed':
|
|
977
|
+
return {
|
|
978
|
+
status: 'None',
|
|
979
|
+
isOutputPinned: true
|
|
980
|
+
};
|
|
981
|
+
case 'all':
|
|
982
|
+
return {
|
|
983
|
+
status: 'Completed',
|
|
984
|
+
debug: true,
|
|
985
|
+
isExecutionStartPoint: true,
|
|
986
|
+
isOutputPinned: true
|
|
987
|
+
};
|
|
988
|
+
case 'multi-exec':
|
|
989
|
+
return {
|
|
990
|
+
status: 'Completed',
|
|
991
|
+
count: 5
|
|
992
|
+
};
|
|
993
|
+
default:
|
|
994
|
+
return;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
function AdornmentsStory() {
|
|
998
|
+
const initialNodes = useMemo(()=>createAdornmentGrid(), []);
|
|
999
|
+
const { canvasProps } = useCanvasStory({
|
|
1000
|
+
initialNodes
|
|
1001
|
+
});
|
|
1002
|
+
return /*#__PURE__*/ jsxs(BaseCanvas, {
|
|
1003
|
+
...canvasProps,
|
|
1004
|
+
mode: "design",
|
|
1005
|
+
children: [
|
|
1006
|
+
/*#__PURE__*/ jsx(Panel, {
|
|
1007
|
+
position: "bottom-right",
|
|
1008
|
+
children: /*#__PURE__*/ jsx(CanvasPositionControls, {
|
|
1009
|
+
translations: DefaultCanvasTranslations
|
|
1010
|
+
})
|
|
1011
|
+
}),
|
|
1012
|
+
/*#__PURE__*/ jsx(StoryInfoPanel, {
|
|
1013
|
+
title: "Adornments",
|
|
1014
|
+
description: "Grid showing all adornment types across shapes. Each row demonstrates a different adornment: breakpoint (top-left), execution status (top-right), execution start point (bottom-left), square dashed (bottom-right), and all combined."
|
|
1015
|
+
})
|
|
1016
|
+
]
|
|
1017
|
+
});
|
|
1018
|
+
}
|
|
1019
|
+
const Adornments = {
|
|
1020
|
+
name: 'Adornments',
|
|
1021
|
+
decorators: [
|
|
1022
|
+
(Story)=>{
|
|
1023
|
+
const registry = useMemo(()=>{
|
|
1024
|
+
const reg = new NodeTypeRegistry();
|
|
1025
|
+
reg.registerManifest(sampleManifest.nodes, sampleManifest.categories);
|
|
1026
|
+
return reg;
|
|
1027
|
+
}, []);
|
|
1028
|
+
const contextValue = useMemo(()=>({
|
|
1029
|
+
registry
|
|
1030
|
+
}), [
|
|
1031
|
+
registry
|
|
1032
|
+
]);
|
|
1033
|
+
return /*#__PURE__*/ jsx(NodeRegistryContext.Provider, {
|
|
1034
|
+
value: contextValue,
|
|
1035
|
+
children: Story()
|
|
1036
|
+
});
|
|
1037
|
+
},
|
|
1038
|
+
withCanvasProviders({
|
|
1039
|
+
executionState: {
|
|
1040
|
+
getNodeExecutionState: (nodeId)=>{
|
|
1041
|
+
const parts = nodeId.split('-');
|
|
1042
|
+
const key = parts.slice(1, -1).join('-');
|
|
1043
|
+
return getAdornmentExecutionState(key);
|
|
1044
|
+
},
|
|
1045
|
+
getEdgeExecutionState: ()=>void 0
|
|
1046
|
+
},
|
|
1047
|
+
validationState: {
|
|
1048
|
+
getElementValidationState: ()=>void 0
|
|
1049
|
+
}
|
|
1050
|
+
})
|
|
1051
|
+
],
|
|
1052
|
+
render: ()=>/*#__PURE__*/ jsx(AdornmentsStory, {})
|
|
1053
|
+
};
|
|
950
1054
|
const ValidationStates = {
|
|
951
1055
|
name: 'Validation States',
|
|
952
1056
|
decorators: [
|
|
@@ -994,8 +1098,4 @@ const ValidationStates = {
|
|
|
994
1098
|
],
|
|
995
1099
|
render: ()=>/*#__PURE__*/ jsx(ValidationStatesStory, {})
|
|
996
1100
|
};
|
|
997
|
-
|
|
998
|
-
name: 'Loading',
|
|
999
|
-
render: ()=>/*#__PURE__*/ jsx(LoadingStory, {})
|
|
1000
|
-
};
|
|
1001
|
-
export { CustomizedSizes, Default, DynamicHandles, Loading, ValidationStates, BaseNode_stories as default };
|
|
1101
|
+
export { Adornments, CustomizedSizes, Default, DynamicHandles, ValidationStates, BaseNode_stories as default };
|
|
@@ -127,8 +127,11 @@ const TaskContent = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ ta
|
|
|
127
127
|
taskExecution?.status && (taskExecution.message ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_material_index_cjs_namespaceObject.ApTooltip, {
|
|
128
128
|
content: taskExecution.message,
|
|
129
129
|
placement: "top",
|
|
130
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
131
|
-
|
|
130
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_material_index_cjs_namespaceObject.ApIconButton, {
|
|
131
|
+
size: "small",
|
|
132
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_ExecutionStatusIcon_index_cjs_namespaceObject.ExecutionStatusIcon, {
|
|
133
|
+
status: taskExecution.status
|
|
134
|
+
})
|
|
132
135
|
})
|
|
133
136
|
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_ExecutionStatusIcon_index_cjs_namespaceObject.ExecutionStatusIcon, {
|
|
134
137
|
status: taskExecution.status
|
|
@@ -229,7 +232,6 @@ const DraggableTaskComponent = ({ task, taskExecution, isSelected, isParallel, c
|
|
|
229
232
|
status: taskExecution?.status,
|
|
230
233
|
isParallel: isParallel,
|
|
231
234
|
isDragEnabled: !isDragDisabled,
|
|
232
|
-
isMenuOpen: isMenuOpen,
|
|
233
235
|
onClick: handleClick,
|
|
234
236
|
...contextMenuItems.length > 0 && {
|
|
235
237
|
onContextMenu: handleContextMenu
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DraggableTask.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/DraggableTask.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DraggableTask.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/DraggableTask.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAgClF,eAAO,MAAM,WAAW,4EAA8C,gBAAgB,6CAwEpF,CAAC;AAoHH,eAAO,MAAM,aAAa,0KAvGvB,kBAAkB,6CAuGoC,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { useSortable } from "@dnd-kit/sortable";
|
|
|
3
3
|
import { CSS } from "@dnd-kit/utilities";
|
|
4
4
|
import { FontVariantToken, Padding, Spacing } from "@uipath/apollo-core";
|
|
5
5
|
import { Column, Row } from "../../layouts/index.js";
|
|
6
|
-
import { ApBadge, ApTooltip, ApTypography, BadgeSize } from "../../../material/index.js";
|
|
6
|
+
import { ApBadge, ApIconButton, ApTooltip, ApTypography, BadgeSize } from "../../../material/index.js";
|
|
7
7
|
import { memo, useCallback, useMemo, useRef, useState } from "react";
|
|
8
8
|
import { ExecutionStatusIcon } from "../ExecutionStatusIcon/index.js";
|
|
9
9
|
import { INDENTATION_WIDTH, StageTask, StageTaskDragPlaceholder, StageTaskDragPlaceholderWrapper, StageTaskIcon, StageTaskRetryDuration, StageTaskWrapper } from "./StageNode.styles.js";
|
|
@@ -98,8 +98,11 @@ const TaskContent = /*#__PURE__*/ memo(({ task, taskExecution, isDragging })=>/*
|
|
|
98
98
|
taskExecution?.status && (taskExecution.message ? /*#__PURE__*/ jsx(ApTooltip, {
|
|
99
99
|
content: taskExecution.message,
|
|
100
100
|
placement: "top",
|
|
101
|
-
children: /*#__PURE__*/ jsx(
|
|
102
|
-
|
|
101
|
+
children: /*#__PURE__*/ jsx(ApIconButton, {
|
|
102
|
+
size: "small",
|
|
103
|
+
children: /*#__PURE__*/ jsx(ExecutionStatusIcon, {
|
|
104
|
+
status: taskExecution.status
|
|
105
|
+
})
|
|
103
106
|
})
|
|
104
107
|
}) : /*#__PURE__*/ jsx(ExecutionStatusIcon, {
|
|
105
108
|
status: taskExecution.status
|
|
@@ -200,7 +203,6 @@ const DraggableTaskComponent = ({ task, taskExecution, isSelected, isParallel, c
|
|
|
200
203
|
status: taskExecution?.status,
|
|
201
204
|
isParallel: isParallel,
|
|
202
205
|
isDragEnabled: !isDragDisabled,
|
|
203
|
-
isMenuOpen: isMenuOpen,
|
|
204
206
|
onClick: handleClick,
|
|
205
207
|
...contextMenuItems.length > 0 && {
|
|
206
208
|
onContextMenu: handleContextMenu
|
|
@@ -309,6 +309,50 @@ const Default = {
|
|
|
309
309
|
}
|
|
310
310
|
}))
|
|
311
311
|
}
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
id: '2',
|
|
315
|
+
type: 'stage',
|
|
316
|
+
position: {
|
|
317
|
+
x: 752,
|
|
318
|
+
y: 96
|
|
319
|
+
},
|
|
320
|
+
width: 304,
|
|
321
|
+
data: {
|
|
322
|
+
onReplaceTaskFromToolbox: ()=>{},
|
|
323
|
+
stageDetails: {
|
|
324
|
+
label: 'Validation - Failed',
|
|
325
|
+
isReadOnly: true,
|
|
326
|
+
tasks: [
|
|
327
|
+
[
|
|
328
|
+
{
|
|
329
|
+
id: '1',
|
|
330
|
+
label: 'Data Validation',
|
|
331
|
+
icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(VerificationIcon, {})
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
[
|
|
335
|
+
{
|
|
336
|
+
id: '2',
|
|
337
|
+
label: 'Compliance Check',
|
|
338
|
+
icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(DocumentIcon, {})
|
|
339
|
+
}
|
|
340
|
+
]
|
|
341
|
+
]
|
|
342
|
+
},
|
|
343
|
+
execution: {
|
|
344
|
+
stageStatus: {
|
|
345
|
+
label: 'error message',
|
|
346
|
+
status: 'Failed'
|
|
347
|
+
},
|
|
348
|
+
taskStatus: {
|
|
349
|
+
2: {
|
|
350
|
+
status: 'Failed',
|
|
351
|
+
message: 'Compliance requirements not met'
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
312
356
|
}
|
|
313
357
|
]
|
|
314
358
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageNode.stories.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageNode.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAyBvD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CA0FD,CAAC;AAEjC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA4CnC,eAAO,MAAM,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"StageNode.stories.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageNode.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAyBvD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CA0FD,CAAC;AAEjC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA4CnC,eAAO,MAAM,OAAO,EAAE,KAwFrB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAsE3B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KA8M7B,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,KA+HvC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,KAoKpC,CAAC;AA8GF,eAAO,MAAM,uBAAuB,EAAE,KAOrC,CAAC;AAkVF,eAAO,MAAM,kBAAkB,EAAE,KAOhC,CAAC;AAiJF,eAAO,MAAM,cAAc,EAAE,KAO5B,CAAC"}
|
|
@@ -273,6 +273,50 @@ const Default = {
|
|
|
273
273
|
}
|
|
274
274
|
}))
|
|
275
275
|
}
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
id: '2',
|
|
279
|
+
type: 'stage',
|
|
280
|
+
position: {
|
|
281
|
+
x: 752,
|
|
282
|
+
y: 96
|
|
283
|
+
},
|
|
284
|
+
width: 304,
|
|
285
|
+
data: {
|
|
286
|
+
onReplaceTaskFromToolbox: ()=>{},
|
|
287
|
+
stageDetails: {
|
|
288
|
+
label: 'Validation - Failed',
|
|
289
|
+
isReadOnly: true,
|
|
290
|
+
tasks: [
|
|
291
|
+
[
|
|
292
|
+
{
|
|
293
|
+
id: '1',
|
|
294
|
+
label: 'Data Validation',
|
|
295
|
+
icon: /*#__PURE__*/ jsx(VerificationIcon, {})
|
|
296
|
+
}
|
|
297
|
+
],
|
|
298
|
+
[
|
|
299
|
+
{
|
|
300
|
+
id: '2',
|
|
301
|
+
label: 'Compliance Check',
|
|
302
|
+
icon: /*#__PURE__*/ jsx(DocumentIcon, {})
|
|
303
|
+
}
|
|
304
|
+
]
|
|
305
|
+
]
|
|
306
|
+
},
|
|
307
|
+
execution: {
|
|
308
|
+
stageStatus: {
|
|
309
|
+
label: 'error message',
|
|
310
|
+
status: 'Failed'
|
|
311
|
+
},
|
|
312
|
+
taskStatus: {
|
|
313
|
+
2: {
|
|
314
|
+
status: 'Failed',
|
|
315
|
+
message: 'Compliance requirements not met'
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
276
320
|
}
|
|
277
321
|
]
|
|
278
322
|
},
|
|
@@ -203,10 +203,6 @@ const StageTask = styled_default().div`
|
|
|
203
203
|
height: ${({ isDragEnabled })=>isDragEnabled ? '100%' : 'auto'};
|
|
204
204
|
|
|
205
205
|
.task-menu-icon-button {
|
|
206
|
-
display: ${({ isMenuOpen })=>isMenuOpen ? 'flex' : 'none'};
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
&:hover .task-menu-icon-button {
|
|
210
206
|
display: flex;
|
|
211
207
|
}
|
|
212
208
|
|
|
@@ -67,7 +67,6 @@ export declare const StageTask: import("@emotion/styled").StyledComponent<{
|
|
|
67
67
|
selected?: boolean;
|
|
68
68
|
isParallel?: boolean;
|
|
69
69
|
isDragEnabled?: boolean;
|
|
70
|
-
isMenuOpen?: boolean;
|
|
71
70
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
72
71
|
export declare const StageTaskIcon: import("@emotion/styled").StyledComponent<{
|
|
73
72
|
theme?: import("@emotion/react").Theme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageNode.styles.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageNode.styles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,kBAAkB,IAAI,CAAC;AACpC,eAAO,MAAM,mBAAmB,QAAuD,CAAC;AAExF,eAAO,MAAM,cAAc;;;;eACd,OAAO;aACT,WAAW;YACZ,MAAM;yGAqDf,CAAC;AAEF,eAAO,MAAM,WAAW;;;;kBAA8B,OAAO;yGAS5D,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;gBAA4B,OAAO;yGAKlE,CAAC;AAEF,eAAO,MAAM,eAAe;;;;gBACd,OAAO;2BACI,OAAO;YACtB,MAAM;kHAsBf,CAAC;AAEF,eAAO,MAAM,YAAY;;;yGAQxB,CAAC;AAEF,eAAO,MAAM,aAAa;;;yGAKzB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;iBAA6B,OAAO;yGAM9D,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;yGAa9B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;yGAMhC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;iBAA6B,OAAO;yGAKhE,CAAC;AAEF,eAAO,MAAM,SAAS;;;;aACX,WAAW;eACT,OAAO;iBACL,OAAO;oBACJ,OAAO;
|
|
1
|
+
{"version":3,"file":"StageNode.styles.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageNode.styles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,kBAAkB,IAAI,CAAC;AACpC,eAAO,MAAM,mBAAmB,QAAuD,CAAC;AAExF,eAAO,MAAM,cAAc;;;;eACd,OAAO;aACT,WAAW;YACZ,MAAM;yGAqDf,CAAC;AAEF,eAAO,MAAM,WAAW;;;;kBAA8B,OAAO;yGAS5D,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;gBAA4B,OAAO;yGAKlE,CAAC;AAEF,eAAO,MAAM,eAAe;;;;gBACd,OAAO;2BACI,OAAO;YACtB,MAAM;kHAsBf,CAAC;AAEF,eAAO,MAAM,YAAY;;;yGAQxB,CAAC;AAEF,eAAO,MAAM,aAAa;;;yGAKzB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;iBAA6B,OAAO;yGAM9D,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;yGAa9B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;yGAMhC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;iBAA6B,OAAO;yGAKhE,CAAC;AAEF,eAAO,MAAM,SAAS;;;;aACX,WAAW;eACT,OAAO;iBACL,OAAO;oBACJ,OAAO;yGA6DxB,CAAC;AAEF,eAAO,MAAM,aAAa;;;yGAYzB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;aAAyB,SAAS,GAAG,MAAM,GAAG,OAAO;yGAoBvF,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;yGAG3C,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;uBAAmC,OAAO;yGAW9E,CAAC"}
|
|
@@ -147,10 +147,6 @@ const StageTask = styled.div`
|
|
|
147
147
|
height: ${({ isDragEnabled })=>isDragEnabled ? '100%' : 'auto'};
|
|
148
148
|
|
|
149
149
|
.task-menu-icon-button {
|
|
150
|
-
display: ${({ isMenuOpen })=>isMenuOpen ? 'flex' : 'none'};
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
&:hover .task-menu-icon-button {
|
|
154
150
|
display: flex;
|
|
155
151
|
}
|
|
156
152
|
|
|
@@ -70,7 +70,7 @@ function ExecutionStatusIndicatorInternal({ status, count }) {
|
|
|
70
70
|
]
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function SquareDashedIndicator() {
|
|
74
74
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.ApTooltip, {
|
|
75
75
|
content: "Node output is mocked",
|
|
76
76
|
placement: "bottom",
|
|
@@ -79,7 +79,7 @@ function PinnedOutputIndicator() {
|
|
|
79
79
|
display: 'inline-flex'
|
|
80
80
|
},
|
|
81
81
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_cjs_namespaceObject.NodeIcon, {
|
|
82
|
-
icon: "
|
|
82
|
+
icon: "square-dashed",
|
|
83
83
|
size: 16,
|
|
84
84
|
color: "var(--color-foreground-emp)"
|
|
85
85
|
})
|
|
@@ -148,7 +148,7 @@ const getDefaultAdornments = (context)=>{
|
|
|
148
148
|
topLeft: hasBreakpoint ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(BreakpointIndicator, {}) : void 0,
|
|
149
149
|
topRight: getTopRight(),
|
|
150
150
|
bottomLeft: isExecutionStartPoint ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ExecutionStartPointIndicator, {}) : void 0,
|
|
151
|
-
bottomRight: isOutputPinned ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
151
|
+
bottomRight: isOutputPinned ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SquareDashedIndicator, {}) : void 0
|
|
152
152
|
};
|
|
153
153
|
};
|
|
154
154
|
function resolveAdornments(context) {
|
|
@@ -37,7 +37,7 @@ function ExecutionStatusIndicatorInternal({ status, count }) {
|
|
|
37
37
|
]
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function SquareDashedIndicator() {
|
|
41
41
|
return /*#__PURE__*/ jsx(ApTooltip, {
|
|
42
42
|
content: "Node output is mocked",
|
|
43
43
|
placement: "bottom",
|
|
@@ -46,7 +46,7 @@ function PinnedOutputIndicator() {
|
|
|
46
46
|
display: 'inline-flex'
|
|
47
47
|
},
|
|
48
48
|
children: /*#__PURE__*/ jsx(NodeIcon, {
|
|
49
|
-
icon: "
|
|
49
|
+
icon: "square-dashed",
|
|
50
50
|
size: 16,
|
|
51
51
|
color: "var(--color-foreground-emp)"
|
|
52
52
|
})
|
|
@@ -115,7 +115,7 @@ const getDefaultAdornments = (context)=>{
|
|
|
115
115
|
topLeft: hasBreakpoint ? /*#__PURE__*/ jsx(BreakpointIndicator, {}) : void 0,
|
|
116
116
|
topRight: getTopRight(),
|
|
117
117
|
bottomLeft: isExecutionStartPoint ? /*#__PURE__*/ jsx(ExecutionStartPointIndicator, {}) : void 0,
|
|
118
|
-
bottomRight: isOutputPinned ? /*#__PURE__*/ jsx(
|
|
118
|
+
bottomRight: isOutputPinned ? /*#__PURE__*/ jsx(SquareDashedIndicator, {}) : void 0
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
121
|
function resolveAdornments(context) {
|
|
@@ -80,11 +80,6 @@ const iconRegistry = {
|
|
|
80
80
|
w: w ?? 24,
|
|
81
81
|
h: h ?? 24
|
|
82
82
|
}),
|
|
83
|
-
'pinned-output': ({ w, h, color })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.FlaskRunIcon, {
|
|
84
|
-
w: w ?? 24,
|
|
85
|
-
h: h ?? 24,
|
|
86
|
-
color: color
|
|
87
|
-
}),
|
|
88
83
|
uipath: ({ w, h })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.UiPathIcon, {
|
|
89
84
|
w: w ?? 24,
|
|
90
85
|
h: h ?? 24
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-registry.d.ts","sourceRoot":"","sources":["../../../src/canvas/utils/icon-registry.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,GAAG,EAAiB,MAAM,OAAO,CAAC;AAGhD,MAAM,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,GAAG,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"icon-registry.d.ts","sourceRoot":"","sources":["../../../src/canvas/utils/icon-registry.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,GAAG,EAAiB,MAAM,OAAO,CAAC;AAGhD,MAAM,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,GAAG,CAAC,OAAO,CAAC;AAqD/F,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,CAkCrD;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAMD,eAAO,MAAM,QAAQ,qDAInB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { icons } from "lucide-react";
|
|
3
3
|
import { memo, useMemo } from "react";
|
|
4
|
-
import { AgentDiagramIcon, AgentProject, ApiProject, AutonomousAgentIcon, CodedAgentIcon, ConnectorBuilderProject, ControlFlowIcon, ConversationalAgentIcon, DataAndTools, DecisionIcon,
|
|
4
|
+
import { AgentDiagramIcon, AgentProject, ApiProject, AutonomousAgentIcon, CodedAgentIcon, ConnectorBuilderProject, ControlFlowIcon, ConversationalAgentIcon, DataAndTools, DecisionIcon, RpaProject, SwitchIcon, UiPathIcon, WebAppProject } from "../icons/index.js";
|
|
5
5
|
const iconRegistry = {
|
|
6
6
|
agent: ({ w, h })=>/*#__PURE__*/ jsx(AgentProject, {
|
|
7
7
|
w: w ?? 29,
|
|
@@ -51,11 +51,6 @@ const iconRegistry = {
|
|
|
51
51
|
w: w ?? 24,
|
|
52
52
|
h: h ?? 24
|
|
53
53
|
}),
|
|
54
|
-
'pinned-output': ({ w, h, color })=>/*#__PURE__*/ jsx(FlaskRunIcon, {
|
|
55
|
-
w: w ?? 24,
|
|
56
|
-
h: h ?? 24,
|
|
57
|
-
color: color
|
|
58
|
-
}),
|
|
59
54
|
uipath: ({ w, h })=>/*#__PURE__*/ jsx(UiPathIcon, {
|
|
60
55
|
w: w ?? 24,
|
|
61
56
|
h: h ?? 24
|