@notmrabhi/flowforge 0.1.114 → 0.1.115
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/{GatewayBranchEdge-C_cHemUz.js → GatewayBranchEdge-CQBOd1Bp.js} +2 -2
- package/dist/{GatewayBranchEdge-C_cHemUz.js.map → GatewayBranchEdge-CQBOd1Bp.js.map} +1 -1
- package/dist/{GatewayBranchEdge-C9hllCUh.js → GatewayBranchEdge-Ceuxbttn.js} +128 -127
- package/dist/{GatewayBranchEdge-C9hllCUh.js.map → GatewayBranchEdge-Ceuxbttn.js.map} +1 -1
- package/dist/{WorkflowExecutionHistory-ClEVOVee.js → WorkflowExecutionHistory-BhB2RdfX.js} +2 -2
- package/dist/WorkflowExecutionHistory-BhB2RdfX.js.map +1 -0
- package/dist/{WorkflowExecutionHistory-B99rqinZ.js → WorkflowExecutionHistory-DUVtoDWf.js} +66 -66
- package/dist/WorkflowExecutionHistory-DUVtoDWf.js.map +1 -0
- package/dist/canvas.cjs +1 -1
- package/dist/canvas.d.ts +4 -0
- package/dist/canvas.js +2 -2
- package/dist/defaultUi.cjs +1 -1
- package/dist/defaultUi.d.ts +4 -0
- package/dist/defaultUi.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/WorkflowExecutionHistory-B99rqinZ.js.map +0 -1
- package/dist/WorkflowExecutionHistory-ClEVOVee.js.map +0 -1
|
@@ -4,7 +4,7 @@ import { Tooltip as D, Chip as J } from "@mui/material";
|
|
|
4
4
|
import { GrTrigger as ke } from "react-icons/gr";
|
|
5
5
|
import we, { createContext as Se, useContext as Te } from "react";
|
|
6
6
|
import { d as Ee } from "./messages-CRZgWFU-.js";
|
|
7
|
-
import { MdOutlineModeEdit as A, MdInfoOutline as B, MdInput as ue, MdDeleteOutline as R, MdCheckCircle as Ce, MdPeople as ze, MdArrowForward as Ae, MdSchedule as
|
|
7
|
+
import { MdOutlineModeEdit as A, MdInfoOutline as B, MdInput as ue, MdDeleteOutline as R, MdCheckCircle as Ce, MdPeople as ze, MdArrowForward as Ae, MdSchedule as Ie, MdWebhook as ge, MdNotifications as U, MdSms as Pe, MdEmail as Le, MdContentCopy as Re, MdHttp as De, MdCallSplit as We, MdAccountTree as $e, MdOpenInNew as Be } from "react-icons/md";
|
|
8
8
|
import { FaCheckCircle as me, FaTimesCircle as be } from "react-icons/fa";
|
|
9
9
|
import { FiFilter as Fe } from "react-icons/fi";
|
|
10
10
|
import { a as F, H as je, B as X } from "./canvasTokens-CAD6G24b.js";
|
|
@@ -145,12 +145,12 @@ function Je(t) {
|
|
|
145
145
|
return l(t), i;
|
|
146
146
|
}
|
|
147
147
|
function Qe(t, i) {
|
|
148
|
-
const l = Ve(i == null ? void 0 : i.formSchema), s = t.conditionConfig ?? t._conditionConfig, o = (i == null ? void 0 : i.label) || t.title || "Set", r = o.length <= 18 ? o : "", d = (
|
|
149
|
-
const h = l.find((u) => (u == null ? void 0 : u.id) ===
|
|
150
|
-
return h != null && h.label ? String(h.label) : qe(
|
|
148
|
+
const l = Ve(i == null ? void 0 : i.formSchema), s = t.conditionConfig ?? t._conditionConfig, o = (i == null ? void 0 : i.label) || t.title || "Set", r = o.length <= 18 ? o : "", d = (f) => {
|
|
149
|
+
const h = l.find((u) => (u == null ? void 0 : u.id) === f || (u == null ? void 0 : u.name) === f);
|
|
150
|
+
return h != null && h.label ? String(h.label) : qe(f);
|
|
151
151
|
}, c = [], p = new Set(s ? Object.keys(s) : []);
|
|
152
|
-
if (s && typeof s == "object" && Object.entries(s).forEach(([
|
|
153
|
-
const u = Je(h), g = te(t,
|
|
152
|
+
if (s && typeof s == "object" && Object.entries(s).forEach(([f, h]) => {
|
|
153
|
+
const u = Je(h), g = te(t, f);
|
|
154
154
|
u.length === 0 && g.length === 0 || c.push({
|
|
155
155
|
kind: "rule",
|
|
156
156
|
when: u.map((y) => ({
|
|
@@ -163,31 +163,31 @@ function Qe(t, i) {
|
|
|
163
163
|
outcome: g
|
|
164
164
|
});
|
|
165
165
|
}), l.length)
|
|
166
|
-
l.forEach((
|
|
167
|
-
const h = String(
|
|
168
|
-
if (!h || ee.has(h) || p.has(h) || Ge.has(
|
|
169
|
-
const u = Ze(t,
|
|
166
|
+
l.forEach((f) => {
|
|
167
|
+
const h = String(f.id || f.name || "");
|
|
168
|
+
if (!h || ee.has(h) || p.has(h) || Ge.has(f.type)) return;
|
|
169
|
+
const u = Ze(t, f);
|
|
170
170
|
u.length && c.push({ kind: "value", label: d(h), value: u });
|
|
171
171
|
});
|
|
172
172
|
else {
|
|
173
|
-
const
|
|
173
|
+
const f = (h, u) => {
|
|
174
174
|
Object.keys(h).forEach((g) => {
|
|
175
175
|
const y = u ? `${u}.${g}` : g;
|
|
176
176
|
if (ee.has(g) || p.has(y)) return;
|
|
177
|
-
const
|
|
178
|
-
if (
|
|
179
|
-
a
|
|
177
|
+
const a = h[g];
|
|
178
|
+
if (a && typeof a == "object" && !Array.isArray(a)) {
|
|
179
|
+
f(a, y);
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
182
|
-
if (typeof
|
|
183
|
-
|
|
182
|
+
if (typeof a == "boolean") {
|
|
183
|
+
a && c.push({ kind: "value", label: d(y), value: ["Yes"] });
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
186
|
const N = te(t, y);
|
|
187
187
|
N.length && c.push({ kind: "value", label: d(y), value: N });
|
|
188
188
|
});
|
|
189
189
|
};
|
|
190
|
-
|
|
190
|
+
f(t, "");
|
|
191
191
|
}
|
|
192
192
|
return c;
|
|
193
193
|
}
|
|
@@ -241,18 +241,18 @@ function xe({ data: t, descriptor: i, accent: l = "#2563eb", emptyText: s }) {
|
|
|
241
241
|
/* @__PURE__ */ e("span", { style: L, children: "Otherwise → " }),
|
|
242
242
|
/* @__PURE__ */ e(W, { text: d.outcome.join(", "), style: r })
|
|
243
243
|
] }, c);
|
|
244
|
-
const p = d.outcome.length > 0,
|
|
244
|
+
const p = d.outcome.length > 0, f = !!d.when && d.when.length > 0;
|
|
245
245
|
return d.outcomeLabel ? /* @__PURE__ */ n("div", { style: { lineHeight: 1.5 }, children: [
|
|
246
246
|
/* @__PURE__ */ n("span", { style: L, children: [
|
|
247
247
|
d.outcomeLabel,
|
|
248
248
|
" "
|
|
249
249
|
] }),
|
|
250
250
|
p && /* @__PURE__ */ e(W, { text: d.outcome.join(", "), style: r }),
|
|
251
|
-
|
|
251
|
+
f && /* @__PURE__ */ n(z, { children: [
|
|
252
252
|
/* @__PURE__ */ e("span", { style: L, children: " when " }),
|
|
253
253
|
/* @__PURE__ */ e(ne, { conditions: d.when })
|
|
254
254
|
] })
|
|
255
|
-
] }, c) :
|
|
255
|
+
] }, c) : f ? /* @__PURE__ */ n("div", { style: { lineHeight: 1.5 }, children: [
|
|
256
256
|
/* @__PURE__ */ e("span", { style: L, children: "When " }),
|
|
257
257
|
/* @__PURE__ */ e(ne, { conditions: d.when }),
|
|
258
258
|
p && /* @__PURE__ */ n(z, { children: [
|
|
@@ -276,14 +276,14 @@ const tt = ({ id: t, data: i }) => {
|
|
|
276
276
|
type: d,
|
|
277
277
|
eventType: c,
|
|
278
278
|
sources: p,
|
|
279
|
-
label:
|
|
279
|
+
label: f,
|
|
280
280
|
source: h,
|
|
281
281
|
previewWorkflow: u,
|
|
282
282
|
executionStatus: g,
|
|
283
283
|
infoText: y = "This node decides the flow trigger type and configuration."
|
|
284
|
-
} = i ?? {},
|
|
284
|
+
} = i ?? {}, a = (x) => {
|
|
285
285
|
x == null || x.stopPropagation(), d === "scheduler" ? s(t) : l();
|
|
286
|
-
}, N = Array.isArray(p) && p.length > 0, w = !!(
|
|
286
|
+
}, N = Array.isArray(p) && p.length > 0, w = !!(f || h), E = d === "scheduler" ? (o == null ? void 0 : o.schedulerTriggerTitle) ?? "Scheduler Trigger" : d === "event" || N || w ? (o == null ? void 0 : o.eventTriggerSourceTitle) ?? "Event Trigger Source" : (o == null ? void 0 : o.selectTriggerTitle) ?? "Select Trigger", k = (() => {
|
|
287
287
|
if (d === "scheduler")
|
|
288
288
|
return /* @__PURE__ */ e(
|
|
289
289
|
xe,
|
|
@@ -294,13 +294,13 @@ const tt = ({ id: t, data: i }) => {
|
|
|
294
294
|
}
|
|
295
295
|
);
|
|
296
296
|
if (d === "event" || N) {
|
|
297
|
-
const x =
|
|
297
|
+
const x = f || ve(c);
|
|
298
298
|
return /* @__PURE__ */ n("div", { children: [
|
|
299
299
|
/* @__PURE__ */ n("div", { className: "ff-d-flex ff-align-items-center", children: [
|
|
300
300
|
/* @__PURE__ */ e("span", { style: { fontWeight: 600 }, children: x }),
|
|
301
301
|
/* @__PURE__ */ e("span", { className: "ff-ms-2 ff-text-muted", style: { fontSize: 12 }, children: "via" })
|
|
302
302
|
] }),
|
|
303
|
-
/* @__PURE__ */ e("div", { className: "ff-d-flex ff-flex-wrap ff-mt-2", style: { gap: 4 }, children: N ? p.map((C,
|
|
303
|
+
/* @__PURE__ */ e("div", { className: "ff-d-flex ff-flex-wrap ff-mt-2", style: { gap: 4 }, children: N ? p.map((C, I) => /* @__PURE__ */ e(
|
|
304
304
|
J,
|
|
305
305
|
{
|
|
306
306
|
label: et(C),
|
|
@@ -308,21 +308,21 @@ const tt = ({ id: t, data: i }) => {
|
|
|
308
308
|
size: "small",
|
|
309
309
|
className: "ff-text-dark"
|
|
310
310
|
},
|
|
311
|
-
|
|
311
|
+
I
|
|
312
312
|
)) : /* @__PURE__ */ e("span", { className: "ff-text-muted", style: { fontSize: 12 }, children: (o == null ? void 0 : o.noSourceSelected) ?? "No source selected" }) })
|
|
313
313
|
] });
|
|
314
314
|
}
|
|
315
315
|
return w ? /* @__PURE__ */ n("div", { className: "ff-d-flex ff-flex-wrap ff-align-items-center", style: { gap: 6 }, children: [
|
|
316
|
-
|
|
316
|
+
f && /* @__PURE__ */ e("span", { style: { fontWeight: 600 }, children: f }),
|
|
317
317
|
h && /* @__PURE__ */ e(J, { label: h, variant: "outlined", size: "small" })
|
|
318
318
|
] }) : /* @__PURE__ */ e(
|
|
319
319
|
"span",
|
|
320
320
|
{
|
|
321
321
|
role: "button",
|
|
322
322
|
tabIndex: 0,
|
|
323
|
-
onClick:
|
|
323
|
+
onClick: a,
|
|
324
324
|
onKeyDown: (x) => {
|
|
325
|
-
(x.key === "Enter" || x.key === " ") &&
|
|
325
|
+
(x.key === "Enter" || x.key === " ") && a(x);
|
|
326
326
|
},
|
|
327
327
|
style: { cursor: "pointer", color: "#1e88e5" },
|
|
328
328
|
children: (o == null ? void 0 : o.selectTriggerCta) ?? "Click to select a trigger to start your workflow"
|
|
@@ -337,9 +337,9 @@ const tt = ({ id: t, data: i }) => {
|
|
|
337
337
|
{
|
|
338
338
|
role: "button",
|
|
339
339
|
tabIndex: 0,
|
|
340
|
-
onClick:
|
|
340
|
+
onClick: a,
|
|
341
341
|
onKeyDown: (x) => {
|
|
342
|
-
(x.key === "Enter" || x.key === " ") &&
|
|
342
|
+
(x.key === "Enter" || x.key === " ") && a(x);
|
|
343
343
|
},
|
|
344
344
|
className: "ff-me-2",
|
|
345
345
|
style: { cursor: "pointer", color: "#212121" },
|
|
@@ -353,7 +353,7 @@ const tt = ({ id: t, data: i }) => {
|
|
|
353
353
|
/* @__PURE__ */ e(m, { type: "target", position: b.Top, style: { opacity: 0 } }),
|
|
354
354
|
r.renderFullTriggerNode({
|
|
355
355
|
data: i,
|
|
356
|
-
onEdit:
|
|
356
|
+
onEdit: a
|
|
357
357
|
}),
|
|
358
358
|
/* @__PURE__ */ e(m, { type: "source", position: b.Bottom, style: { opacity: 0 }, id: "1" })
|
|
359
359
|
] }) : /* @__PURE__ */ n("div", { style: { width: 350 }, children: [
|
|
@@ -462,7 +462,7 @@ const it = ({ data: t }) => {
|
|
|
462
462
|
/* @__PURE__ */ e("div", { style: { fontWeight: 600 }, children: c }),
|
|
463
463
|
Array.isArray(o) && o.length > 0 && /* @__PURE__ */ n(z, { children: [
|
|
464
464
|
/* @__PURE__ */ e("div", { className: "ff-text-muted", style: { fontSize: 12, marginTop: 4 }, children: "via" }),
|
|
465
|
-
/* @__PURE__ */ e("div", { className: "ff-d-flex ff-flex-wrap ff-mt-1", style: { gap: 4 }, children: o.map((p,
|
|
465
|
+
/* @__PURE__ */ e("div", { className: "ff-d-flex ff-flex-wrap ff-mt-1", style: { gap: 4 }, children: o.map((p, f) => /* @__PURE__ */ e(
|
|
466
466
|
J,
|
|
467
467
|
{
|
|
468
468
|
label: nt(p),
|
|
@@ -470,7 +470,7 @@ const it = ({ data: t }) => {
|
|
|
470
470
|
size: "small",
|
|
471
471
|
className: "ff-text-dark"
|
|
472
472
|
},
|
|
473
|
-
|
|
473
|
+
f
|
|
474
474
|
)) })
|
|
475
475
|
] })
|
|
476
476
|
]
|
|
@@ -525,7 +525,7 @@ const it = ({ data: t }) => {
|
|
|
525
525
|
}
|
|
526
526
|
);
|
|
527
527
|
}, ot = ({ id: t, data: i }) => {
|
|
528
|
-
const { onEditNode: l, onDeleteNode: s, nodeRegistry: o } = T(), { conditions: r = [], infoText: d = "Filter conditions applied to workflow data", _branchRail: c, descriptorType: p, branchStyle:
|
|
528
|
+
const { onEditNode: l, onDeleteNode: s, nodeRegistry: o } = T(), { conditions: r = [], infoText: d = "Filter conditions applied to workflow data", _branchRail: c, descriptorType: p, branchStyle: f } = i, h = p ? o == null ? void 0 : o.forType(p) : void 0, u = f === "inline-gate", g = /* @__PURE__ */ n(z, { children: [
|
|
529
529
|
/* @__PURE__ */ e(m, { id: "pass", type: "source", position: b.Bottom, style: { opacity: 0 } }),
|
|
530
530
|
/* @__PURE__ */ e(m, { id: "fail", type: "source", position: b.Right, style: { opacity: 0, top: "50%" } })
|
|
531
531
|
] });
|
|
@@ -580,18 +580,18 @@ const it = ({ data: t }) => {
|
|
|
580
580
|
/* @__PURE__ */ e(D, { title: d, placement: "right", arrow: !0, children: /* @__PURE__ */ e("div", { className: "ff-ms-2", children: /* @__PURE__ */ e(B, { color: "gray", size: 16 }) }) })
|
|
581
581
|
] })
|
|
582
582
|
] }),
|
|
583
|
-
/* @__PURE__ */ e("div", { style: { margin: "0 6px 10px", padding: "10px 12px", borderRadius: 6, background: "#fafafa", fontSize: 12 }, children: r.length === 0 ? /* @__PURE__ */ e("span", { className: "ff-text-muted", children: "No conditions configured" }) : r.map((y,
|
|
583
|
+
/* @__PURE__ */ e("div", { style: { margin: "0 6px 10px", padding: "10px 12px", borderRadius: 6, background: "#fafafa", fontSize: 12 }, children: r.length === 0 ? /* @__PURE__ */ e("span", { className: "ff-text-muted", children: "No conditions configured" }) : r.map((y, a) => /* @__PURE__ */ n("div", { className: "ff-d-flex ff-align-items-center ff-mb-1", children: [
|
|
584
584
|
/* @__PURE__ */ e("p", { className: "ff-m-0 ff-fw-bold ff-me-1 ff-text-truncate", style: { maxWidth: 100 }, title: y.field, children: y.field }),
|
|
585
585
|
/* @__PURE__ */ e("span", { className: "ff-text-muted", children: y.operator }),
|
|
586
586
|
/* @__PURE__ */ e("p", { className: "ff-text-dark ff-text-truncate ff-mx-1 ff-m-0", title: y.value, children: y.value }),
|
|
587
|
-
|
|
588
|
-
] },
|
|
587
|
+
a < r.length - 1 && /* @__PURE__ */ e("p", { className: "ff-bg-primary ff-text-white ff-fw-bold ff-ms-1 ff-px-1 ff-rounded-1 ff-m-0", children: y.logicalOperator })
|
|
588
|
+
] }, a)) })
|
|
589
589
|
] }),
|
|
590
590
|
g,
|
|
591
591
|
!u && c && /* @__PURE__ */ e(Y, { rail: c, cardWidth: 350 })
|
|
592
592
|
] });
|
|
593
593
|
}, lt = ({ id: t, data: i }) => {
|
|
594
|
-
const { onEditNode: l, onDeleteNode: s, nodeRegistry: o, nodeBody: r = "full", messages: d } = T(), { title: c = "Task", descriptorType: p, infoText:
|
|
594
|
+
const { onEditNode: l, onDeleteNode: s, nodeRegistry: o, nodeBody: r = "full", messages: d } = T(), { title: c = "Task", descriptorType: p, infoText: f = "" } = i, h = p ? o == null ? void 0 : o.forType(p) : void 0, u = h == null ? void 0 : h.icon;
|
|
595
595
|
return h != null && h.renderFullNode ? /* @__PURE__ */ n("div", { style: { position: "relative", display: "inline-block" }, children: [
|
|
596
596
|
/* @__PURE__ */ e(m, { type: "target", position: b.Top, style: { opacity: 0 } }),
|
|
597
597
|
h.renderFullNode({
|
|
@@ -639,7 +639,7 @@ const it = ({ data: t }) => {
|
|
|
639
639
|
children: /* @__PURE__ */ e(R, { color: "red", size: 16 })
|
|
640
640
|
}
|
|
641
641
|
),
|
|
642
|
-
|
|
642
|
+
f && /* @__PURE__ */ e(D, { title: f, placement: "right", arrow: !0, children: /* @__PURE__ */ e("div", { className: "ff-ms-2", children: /* @__PURE__ */ e(B, { color: "gray", size: 16 }) }) })
|
|
643
643
|
] })
|
|
644
644
|
] }),
|
|
645
645
|
r !== "title-only" && /* @__PURE__ */ e(
|
|
@@ -683,7 +683,7 @@ function st(t) {
|
|
|
683
683
|
} : { label: "Not configured", configured: o };
|
|
684
684
|
}
|
|
685
685
|
const ct = ({ id: t, data: i }) => {
|
|
686
|
-
const { onEditNode: l, onDeleteNode: s } = T(), { approvalData: o, isPreview: r = !1, _branchRail: d, executionModeLabel: c } = i, p = (o == null ? void 0 : o.policy) ?? {},
|
|
686
|
+
const { onEditNode: l, onDeleteNode: s } = T(), { approvalData: o, isPreview: r = !1, _branchRail: d, executionModeLabel: c } = i, p = (o == null ? void 0 : o.policy) ?? {}, f = p.stages ?? [], h = f.length, u = f.slice(0, ie), g = h - ie, y = p.name ?? p.policyName ?? "Untitled Policy";
|
|
687
687
|
return /* @__PURE__ */ n("div", { style: { width: 350, position: "relative" }, children: [
|
|
688
688
|
/* @__PURE__ */ e(m, { type: "target", position: b.Top, style: { opacity: 0 } }),
|
|
689
689
|
/* @__PURE__ */ n("div", { style: { border: "1.5px solid #ffe082", borderRadius: 8, background: "#fff", overflow: "hidden" }, children: [
|
|
@@ -711,11 +711,11 @@ const ct = ({ id: t, data: i }) => {
|
|
|
711
711
|
role: "button",
|
|
712
712
|
tabIndex: 0,
|
|
713
713
|
style: { cursor: "pointer" },
|
|
714
|
-
onClick: (
|
|
715
|
-
|
|
714
|
+
onClick: (a) => {
|
|
715
|
+
a.stopPropagation(), l(t);
|
|
716
716
|
},
|
|
717
|
-
onKeyDown: (
|
|
718
|
-
|
|
717
|
+
onKeyDown: (a) => {
|
|
718
|
+
a.key === "Enter" && (a.stopPropagation(), l(t));
|
|
719
719
|
},
|
|
720
720
|
"data-testid": "approval-node-edit-btn",
|
|
721
721
|
children: /* @__PURE__ */ e(A, { size: 16, className: "ff-text-secondary" })
|
|
@@ -728,11 +728,11 @@ const ct = ({ id: t, data: i }) => {
|
|
|
728
728
|
role: "button",
|
|
729
729
|
tabIndex: 0,
|
|
730
730
|
style: { cursor: "pointer" },
|
|
731
|
-
onClick: (
|
|
732
|
-
|
|
731
|
+
onClick: (a) => {
|
|
732
|
+
a.stopPropagation(), s(t);
|
|
733
733
|
},
|
|
734
|
-
onKeyDown: (
|
|
735
|
-
|
|
734
|
+
onKeyDown: (a) => {
|
|
735
|
+
a.key === "Enter" && (a.stopPropagation(), s(t));
|
|
736
736
|
},
|
|
737
737
|
"data-testid": "approval-node-delete-btn",
|
|
738
738
|
children: /* @__PURE__ */ e(R, { color: "red", size: 16 })
|
|
@@ -760,7 +760,7 @@ const ct = ({ id: t, data: i }) => {
|
|
|
760
760
|
children: y
|
|
761
761
|
}
|
|
762
762
|
),
|
|
763
|
-
/* @__PURE__ */ e("div", { style: { margin: "0 10px 10px", display: "flex", flexDirection: "column", gap: 8 }, children:
|
|
763
|
+
/* @__PURE__ */ e("div", { style: { margin: "0 10px 10px", display: "flex", flexDirection: "column", gap: 8 }, children: f.length === 0 ? /* @__PURE__ */ e(
|
|
764
764
|
"div",
|
|
765
765
|
{
|
|
766
766
|
className: "ff-text-center",
|
|
@@ -775,11 +775,11 @@ const ct = ({ id: t, data: i }) => {
|
|
|
775
775
|
children: "No stages configured"
|
|
776
776
|
}
|
|
777
777
|
) : /* @__PURE__ */ n(z, { children: [
|
|
778
|
-
u.map((
|
|
778
|
+
u.map((a, N) => {
|
|
779
779
|
var x;
|
|
780
|
-
const w = ((x =
|
|
781
|
-
|
|
782
|
-
|
|
780
|
+
const w = ((x = a.stageName) == null ? void 0 : x.trim()) || `Stage ${N + 1}`, { label: E, configured: k } = st(a), S = rt(
|
|
781
|
+
a.executionMode,
|
|
782
|
+
a.isSequential,
|
|
783
783
|
c
|
|
784
784
|
);
|
|
785
785
|
return /* @__PURE__ */ n(
|
|
@@ -874,11 +874,11 @@ const ct = ({ id: t, data: i }) => {
|
|
|
874
874
|
},
|
|
875
875
|
role: r ? void 0 : "button",
|
|
876
876
|
tabIndex: r ? void 0 : 0,
|
|
877
|
-
onClick: (
|
|
878
|
-
r || (
|
|
877
|
+
onClick: (a) => {
|
|
878
|
+
r || (a.stopPropagation(), l(t));
|
|
879
879
|
},
|
|
880
|
-
onKeyDown: (
|
|
881
|
-
r || (
|
|
880
|
+
onKeyDown: (a) => {
|
|
881
|
+
r || (a.key === "Enter" || a.key === " ") && (a.stopPropagation(), l(t));
|
|
882
882
|
},
|
|
883
883
|
children: [
|
|
884
884
|
"+ ",
|
|
@@ -893,14 +893,14 @@ const ct = ({ id: t, data: i }) => {
|
|
|
893
893
|
/* @__PURE__ */ e(m, { type: "source", position: b.Bottom, style: { opacity: 0 } }),
|
|
894
894
|
d && /* @__PURE__ */ e(Y, { rail: d, cardWidth: 350 })
|
|
895
895
|
] });
|
|
896
|
-
},
|
|
896
|
+
}, ft = ({ id: t, data: i }) => {
|
|
897
897
|
const { onEditNode: l, onDeleteNode: s } = T(), { duration: o, unit: r } = i, d = o != null && r, c = d ? `Wait ${o} ${r}` : "Not configured";
|
|
898
898
|
return /* @__PURE__ */ n("div", { style: { width: 350 }, children: [
|
|
899
899
|
/* @__PURE__ */ e(m, { type: "target", position: b.Top, style: { opacity: 0 } }),
|
|
900
900
|
/* @__PURE__ */ n("div", { style: { border: "1.5px solid #b0bec5", borderRadius: 8, background: "#fff" }, children: [
|
|
901
901
|
/* @__PURE__ */ n("div", { className: "ff-d-flex ff-justify-content-between ff-align-items-center ff-mx-2 ff-mt-2 ff-mb-1", children: [
|
|
902
902
|
/* @__PURE__ */ n("div", { className: "ff-d-flex ff-align-items-center ff-gap-2", children: [
|
|
903
|
-
/* @__PURE__ */ e("div", { className: "ff-d-flex ff-align-items-center ff-justify-content-center ff-rounded", style: { width: 25, height: 25, background: "rgba(33,150,243,0.1)" }, children: /* @__PURE__ */ e(
|
|
903
|
+
/* @__PURE__ */ e("div", { className: "ff-d-flex ff-align-items-center ff-justify-content-center ff-rounded", style: { width: 25, height: 25, background: "rgba(33,150,243,0.1)" }, children: /* @__PURE__ */ e(Ie, { size: 16, color: "#1976d2" }) }),
|
|
904
904
|
/* @__PURE__ */ e("span", { className: "ff-fw-medium ff-text-dark", style: { fontSize: 14 }, children: "Delay" })
|
|
905
905
|
] }),
|
|
906
906
|
/* @__PURE__ */ n("div", { className: "node-actions ff-d-flex ff-align-items-center", children: [
|
|
@@ -943,7 +943,7 @@ const ct = ({ id: t, data: i }) => {
|
|
|
943
943
|
email: { label: "Email", bg: "#e3f2fd", color: "#1565c0", iconType: Le },
|
|
944
944
|
slack: { label: "Slack", bg: "#e8f5e9", color: "#2e7d32", iconType: U },
|
|
945
945
|
teams: { label: "MS Teams", bg: "#ede7f6", color: "#4527a0", iconType: U },
|
|
946
|
-
sms: { label: "SMS", bg: "#fce4ec", color: "#880e4f", iconType:
|
|
946
|
+
sms: { label: "SMS", bg: "#fce4ec", color: "#880e4f", iconType: Pe },
|
|
947
947
|
"in-app": { label: "In-App", bg: "#fff3e0", color: "#e65100", iconType: U },
|
|
948
948
|
webhook: { label: "Webhook", bg: "#f3e5f5", color: "#6a1b9a", iconType: ge }
|
|
949
949
|
}, dt = {
|
|
@@ -952,7 +952,7 @@ const ct = ({ id: t, data: i }) => {
|
|
|
952
952
|
color: "#7b1fa2",
|
|
953
953
|
iconType: U
|
|
954
954
|
};
|
|
955
|
-
function
|
|
955
|
+
function at(t) {
|
|
956
956
|
var i;
|
|
957
957
|
switch (t.channel) {
|
|
958
958
|
case "email":
|
|
@@ -986,13 +986,13 @@ function pt(t) {
|
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
988
|
const ht = ({ id: t, data: i }) => {
|
|
989
|
-
const { onEditNode: l, onDeleteNode: s } = T(), o = i, r = o.channel && oe[o.channel] ? oe[o.channel] : dt, d =
|
|
989
|
+
const { onEditNode: l, onDeleteNode: s } = T(), o = i, r = o.channel && oe[o.channel] ? oe[o.channel] : dt, d = at(o), c = pt(o), p = !!(o.channel && d), f = r.iconType;
|
|
990
990
|
return /* @__PURE__ */ n("div", { style: { width: F }, children: [
|
|
991
991
|
/* @__PURE__ */ e(m, { type: "target", position: b.Top, style: { opacity: 0 } }),
|
|
992
992
|
/* @__PURE__ */ n("div", { style: { border: "1.5px solid #b0bec5", borderRadius: 8, background: "#fff" }, children: [
|
|
993
993
|
/* @__PURE__ */ n("div", { className: "ff-d-flex ff-justify-content-between ff-align-items-center", style: { padding: "10px 6px" }, children: [
|
|
994
994
|
/* @__PURE__ */ n("div", { className: "ff-d-flex ff-align-items-center ff-gap-2", children: [
|
|
995
|
-
/* @__PURE__ */ e("div", { className: "ff-d-flex ff-align-items-center ff-justify-content-center ff-rounded", style: { width: 25, height: 25, background: r.bg }, children: /* @__PURE__ */ e(
|
|
995
|
+
/* @__PURE__ */ e("div", { className: "ff-d-flex ff-align-items-center ff-justify-content-center ff-rounded", style: { width: 25, height: 25, background: r.bg }, children: /* @__PURE__ */ e(f, { size: 16, color: r.color }) }),
|
|
996
996
|
/* @__PURE__ */ e("span", { className: "ff-fw-medium ff-text-dark", style: { fontSize: 14 }, children: o.channel ? `${r.label} Notification` : "Notification" })
|
|
997
997
|
] }),
|
|
998
998
|
/* @__PURE__ */ n("div", { className: "node-actions ff-d-flex ff-align-items-center", children: [
|
|
@@ -1098,7 +1098,7 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1098
1098
|
] });
|
|
1099
1099
|
}, ut = ({ id: t, data: i }) => {
|
|
1100
1100
|
var g;
|
|
1101
|
-
const { onEditNode: l, onDeleteNode: s, nodeRegistry: o } = T(), { method: r, url: d, descriptorType: c } = i, p = c ? (g = o == null ? void 0 : o.forType(c)) == null ? void 0 : g.icon : /* @__PURE__ */ e(De, { size: 16, color: "#546e7a" }),
|
|
1101
|
+
const { onEditNode: l, onDeleteNode: s, nodeRegistry: o } = T(), { method: r, url: d, descriptorType: c } = i, p = c ? (g = o == null ? void 0 : o.forType(c)) == null ? void 0 : g.icon : /* @__PURE__ */ e(De, { size: 16, color: "#546e7a" }), f = !!(r && d), h = (r == null ? void 0 : r.toUpperCase()) ?? "", u = je[h] ?? null;
|
|
1102
1102
|
return /* @__PURE__ */ n("div", { style: { width: F }, children: [
|
|
1103
1103
|
/* @__PURE__ */ e(m, { type: "target", position: b.Top, style: { opacity: 0 } }),
|
|
1104
1104
|
/* @__PURE__ */ n("div", { style: { border: "1.5px solid #b0bec5", borderRadius: 8, background: "#fff" }, children: [
|
|
@@ -1139,7 +1139,7 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1139
1139
|
)
|
|
1140
1140
|
] })
|
|
1141
1141
|
] }),
|
|
1142
|
-
/* @__PURE__ */ e("div", { style: { margin: "0 6px 10px", padding: "10px 12px", borderRadius: 6, background: "#fafafa", fontSize: 12 }, children:
|
|
1142
|
+
/* @__PURE__ */ e("div", { style: { margin: "0 6px 10px", padding: "10px 12px", borderRadius: 6, background: "#fafafa", fontSize: 12 }, children: f ? /* @__PURE__ */ n("div", { className: "ff-d-flex ff-align-items-center ff-gap-2", children: [
|
|
1143
1143
|
u && /* @__PURE__ */ e("span", { style: { fontSize: 10, fontWeight: 700, padding: "2px 6px", borderRadius: 4, background: u.bg, color: u.color, flexShrink: 0 }, children: h }),
|
|
1144
1144
|
/* @__PURE__ */ e("span", { className: "ff-text-dark ff-text-truncate", style: { fontFamily: "monospace", fontSize: 11 }, title: d, children: d })
|
|
1145
1145
|
] }) : /* @__PURE__ */ e("span", { className: "ff-text-muted", children: "Not configured" }) })
|
|
@@ -1201,9 +1201,9 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1201
1201
|
] })
|
|
1202
1202
|
] }),
|
|
1203
1203
|
/* @__PURE__ */ e("div", { style: { margin: "0 6px 10px", padding: "10px 12px", borderRadius: 6, background: "#fafafa", fontSize: 12 }, children: c ? /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
|
|
1204
|
-
r.map((p,
|
|
1205
|
-
var y,
|
|
1206
|
-
const h = X[
|
|
1204
|
+
r.map((p, f) => {
|
|
1205
|
+
var y, a;
|
|
1206
|
+
const h = X[f % X.length], u = (y = p.conditions) == null ? void 0 : y[0], g = (((a = p.conditions) == null ? void 0 : a.length) ?? 0) - 1;
|
|
1207
1207
|
return /* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", gap: 6 }, children: [
|
|
1208
1208
|
/* @__PURE__ */ e("span", { style: { fontSize: 10, fontWeight: 600, padding: "2px 7px", borderRadius: 10, background: h.bg, color: h.color, flexShrink: 0 }, children: p.label || p.key }),
|
|
1209
1209
|
u ? /* @__PURE__ */ n("span", { style: { fontSize: 11, color: "#616161", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: [
|
|
@@ -1225,8 +1225,8 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1225
1225
|
] });
|
|
1226
1226
|
}, bt = ({ id: t, data: i }) => {
|
|
1227
1227
|
var y;
|
|
1228
|
-
const { onEditNode: l, onDeleteNode: s, nodeRegistry: o } = T(), { title: r = "Sub-Workflow", workflowId: d, workflowLabel: c, descriptorType: p, onPreview:
|
|
1229
|
-
|
|
1228
|
+
const { onEditNode: l, onDeleteNode: s, nodeRegistry: o } = T(), { title: r = "Sub-Workflow", workflowId: d, workflowLabel: c, descriptorType: p, onPreview: f } = i, h = p ? (y = o == null ? void 0 : o.forType(p)) == null ? void 0 : y.icon : /* @__PURE__ */ e($e, { size: 16, color: "#00695c" }), u = !!d, g = (a) => {
|
|
1229
|
+
a.stopPropagation(), d && f && f(d);
|
|
1230
1230
|
};
|
|
1231
1231
|
return /* @__PURE__ */ n("div", { style: { width: F }, children: [
|
|
1232
1232
|
/* @__PURE__ */ e(m, { type: "target", position: b.Top, style: { opacity: 0 } }),
|
|
@@ -1242,11 +1242,11 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1242
1242
|
{
|
|
1243
1243
|
role: "button",
|
|
1244
1244
|
tabIndex: 0,
|
|
1245
|
-
onClick: (
|
|
1246
|
-
|
|
1245
|
+
onClick: (a) => {
|
|
1246
|
+
a.stopPropagation(), l(t);
|
|
1247
1247
|
},
|
|
1248
|
-
onKeyDown: (
|
|
1249
|
-
(
|
|
1248
|
+
onKeyDown: (a) => {
|
|
1249
|
+
(a.key === "Enter" || a.key === " ") && (a.stopPropagation(), l(t));
|
|
1250
1250
|
},
|
|
1251
1251
|
children: /* @__PURE__ */ e(A, { size: 16 })
|
|
1252
1252
|
}
|
|
@@ -1257,11 +1257,11 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1257
1257
|
className: "ff-ms-2",
|
|
1258
1258
|
role: "button",
|
|
1259
1259
|
tabIndex: 0,
|
|
1260
|
-
onClick: (
|
|
1261
|
-
|
|
1260
|
+
onClick: (a) => {
|
|
1261
|
+
a.stopPropagation(), s(t);
|
|
1262
1262
|
},
|
|
1263
|
-
onKeyDown: (
|
|
1264
|
-
(
|
|
1263
|
+
onKeyDown: (a) => {
|
|
1264
|
+
(a.key === "Enter" || a.key === " ") && (a.stopPropagation(), s(t));
|
|
1265
1265
|
},
|
|
1266
1266
|
children: /* @__PURE__ */ e(R, { color: "red", size: 16 })
|
|
1267
1267
|
}
|
|
@@ -1276,14 +1276,14 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1276
1276
|
d
|
|
1277
1277
|
] })
|
|
1278
1278
|
] }),
|
|
1279
|
-
|
|
1279
|
+
f && /* @__PURE__ */ n(
|
|
1280
1280
|
"div",
|
|
1281
1281
|
{
|
|
1282
1282
|
role: "button",
|
|
1283
1283
|
tabIndex: 0,
|
|
1284
1284
|
onClick: g,
|
|
1285
|
-
onKeyDown: (
|
|
1286
|
-
(
|
|
1285
|
+
onKeyDown: (a) => {
|
|
1286
|
+
(a.key === "Enter" || a.key === " ") && g(a);
|
|
1287
1287
|
},
|
|
1288
1288
|
style: { cursor: "pointer", display: "flex", alignItems: "center", gap: 3, fontSize: 11, color: "#00897b" },
|
|
1289
1289
|
children: [
|
|
@@ -1306,13 +1306,13 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1306
1306
|
filterNode: ot,
|
|
1307
1307
|
actionNode: lt,
|
|
1308
1308
|
approvalNode: ct,
|
|
1309
|
-
delayNode:
|
|
1309
|
+
delayNode: ft,
|
|
1310
1310
|
notificationNode: ht,
|
|
1311
1311
|
webhookTriggerNode: yt,
|
|
1312
1312
|
restApiNode: ut,
|
|
1313
1313
|
conditionBranchNode: mt,
|
|
1314
1314
|
subWorkflowNode: bt
|
|
1315
|
-
}, xt = 11.5, re = 2, M = 6, se = 40, ce = 20,
|
|
1315
|
+
}, xt = 11.5, re = 2, M = 6, se = 40, ce = 20, fe = 4, Dt = ({
|
|
1316
1316
|
id: t,
|
|
1317
1317
|
sourceX: i,
|
|
1318
1318
|
sourceY: l,
|
|
@@ -1322,15 +1322,15 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1322
1322
|
targetPosition: d,
|
|
1323
1323
|
source: c,
|
|
1324
1324
|
target: p,
|
|
1325
|
-
data:
|
|
1325
|
+
data: f
|
|
1326
1326
|
}) => {
|
|
1327
1327
|
const [h, u, g] = G({
|
|
1328
1328
|
sourceX: i,
|
|
1329
1329
|
sourceY: l,
|
|
1330
1330
|
targetX: s,
|
|
1331
1331
|
targetY: o
|
|
1332
|
-
}), y =
|
|
1333
|
-
if (
|
|
1332
|
+
}), y = f == null ? void 0 : f.label, a = y === "Pass", N = a || y === "Fail", w = i + (s - i) / 3, E = l + (o - l) / 3, k = i + 2 * (s - i) / 3, S = l + 2 * (o - l) / 3, x = f == null ? void 0 : f.onAddStepClick, C = (P) => {
|
|
1333
|
+
if (P.stopPropagation(), typeof x != "function") return;
|
|
1334
1334
|
const Z = {
|
|
1335
1335
|
edgeId: t,
|
|
1336
1336
|
nodeId: c,
|
|
@@ -1338,12 +1338,13 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1338
1338
|
targetNodeId: p,
|
|
1339
1339
|
position: "between",
|
|
1340
1340
|
referenceNodeId: c,
|
|
1341
|
-
referenceNodeType:
|
|
1342
|
-
stepVisibility:
|
|
1341
|
+
referenceNodeType: f == null ? void 0 : f.referenceNodeType,
|
|
1342
|
+
stepVisibility: f == null ? void 0 : f.stepVisibility,
|
|
1343
|
+
...f != null && f.filterId ? { filterId: f.filterId, branch: f.branch } : {}
|
|
1343
1344
|
};
|
|
1344
1345
|
x(c, Z);
|
|
1345
|
-
},
|
|
1346
|
-
(
|
|
1346
|
+
}, I = (P) => {
|
|
1347
|
+
(P.key === "Enter" || P.key === " ") && (P.preventDefault(), C(P));
|
|
1347
1348
|
}, j = () => /* @__PURE__ */ n(z, { children: [
|
|
1348
1349
|
/* @__PURE__ */ n("g", { className: "plus-icon-container", children: [
|
|
1349
1350
|
/* @__PURE__ */ e("circle", { r: xt, className: "edge-plus-circle" }),
|
|
@@ -1357,7 +1358,7 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1357
1358
|
] })
|
|
1358
1359
|
] }), _ = x ? {
|
|
1359
1360
|
onClick: C,
|
|
1360
|
-
onKeyDown:
|
|
1361
|
+
onKeyDown: I,
|
|
1361
1362
|
role: "button",
|
|
1362
1363
|
tabIndex: 0,
|
|
1363
1364
|
style: { cursor: "pointer", pointerEvents: "all" }
|
|
@@ -1368,8 +1369,8 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1368
1369
|
/* @__PURE__ */ e(V, { id: t, path: h }),
|
|
1369
1370
|
N ? /* @__PURE__ */ n(z, { children: [
|
|
1370
1371
|
/* @__PURE__ */ n("g", { transform: `translate(${w}, ${E})`, children: [
|
|
1371
|
-
/* @__PURE__ */ e("rect", { x: -se / 2, y: -ce / 2, width: se, height: ce, rx:
|
|
1372
|
-
/* @__PURE__ */ e("text", { textAnchor: "middle", dominantBaseline: "central", fill:
|
|
1372
|
+
/* @__PURE__ */ e("rect", { x: -se / 2, y: -ce / 2, width: se, height: ce, rx: fe, ry: fe, fill: a ? "#ADE6C5" : "#FDBFBF" }),
|
|
1373
|
+
/* @__PURE__ */ e("text", { textAnchor: "middle", dominantBaseline: "central", fill: a ? "#1DBF60" : "#C50000", style: { fontSize: 12, fontWeight: 500 }, children: y })
|
|
1373
1374
|
] }),
|
|
1374
1375
|
/* @__PURE__ */ e("g", { className: "nodrag nopan edge-plus-svg", transform: `translate(${k}, ${S})`, "data-testid": "plus-node-icon", ..._, children: /* @__PURE__ */ e(j, {}) })
|
|
1375
1376
|
] }) : /* @__PURE__ */ e("g", { className: "nodrag nopan edge-plus-svg", transform: `translate(${u}, ${g})`, "data-testid": "plus-node-icon", ..._, children: /* @__PURE__ */ e(j, {}) })
|
|
@@ -1384,13 +1385,13 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1384
1385
|
target: d,
|
|
1385
1386
|
data: c
|
|
1386
1387
|
}) => {
|
|
1387
|
-
const [p,
|
|
1388
|
+
const [p, f, h] = G({
|
|
1388
1389
|
sourceX: i,
|
|
1389
1390
|
sourceY: l,
|
|
1390
1391
|
targetX: s,
|
|
1391
1392
|
targetY: o
|
|
1392
|
-
}), u = c == null ? void 0 : c.onAddStepClick, g = (
|
|
1393
|
-
|
|
1393
|
+
}), u = c == null ? void 0 : c.onAddStepClick, g = (a) => {
|
|
1394
|
+
a.stopPropagation(), typeof u == "function" && u(r, {
|
|
1394
1395
|
edgeId: t,
|
|
1395
1396
|
nodeId: r,
|
|
1396
1397
|
sourceNodeId: r,
|
|
@@ -1402,8 +1403,8 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1402
1403
|
filterId: c == null ? void 0 : c.filterId,
|
|
1403
1404
|
branch: c == null ? void 0 : c.branch
|
|
1404
1405
|
});
|
|
1405
|
-
}, y = (
|
|
1406
|
-
(
|
|
1406
|
+
}, y = (a) => {
|
|
1407
|
+
(a.key === "Enter" || a.key === " ") && (a.preventDefault(), g(a));
|
|
1407
1408
|
};
|
|
1408
1409
|
return /* @__PURE__ */ n("g", { className: "edge-with-plus-wrapper", children: [
|
|
1409
1410
|
/* @__PURE__ */ e(V, { id: t, path: p, style: { stroke: "#b0bec5" } }),
|
|
@@ -1411,7 +1412,7 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1411
1412
|
"g",
|
|
1412
1413
|
{
|
|
1413
1414
|
className: "nodrag nopan edge-plus-svg",
|
|
1414
|
-
transform: `translate(${
|
|
1415
|
+
transform: `translate(${f}, ${h})`,
|
|
1415
1416
|
style: {
|
|
1416
1417
|
cursor: u ? "pointer" : "default",
|
|
1417
1418
|
pointerEvents: "all",
|
|
@@ -1481,7 +1482,7 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1481
1482
|
}, $t = ({ id: t, sourceX: i, sourceY: l, targetX: s, targetY: o }) => {
|
|
1482
1483
|
const [r] = G({ sourceX: i, sourceY: l, targetX: s, targetY: o });
|
|
1483
1484
|
return /* @__PURE__ */ e(V, { id: t, path: r, style: { stroke: "#b0bec5" } });
|
|
1484
|
-
}, Nt = 11.5,
|
|
1485
|
+
}, Nt = 11.5, ae = 2, O = 6, kt = -24, pe = 40, he = 20, ye = 4, Bt = ({
|
|
1485
1486
|
id: t,
|
|
1486
1487
|
sourceX: i,
|
|
1487
1488
|
sourceY: l,
|
|
@@ -1491,8 +1492,8 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1491
1492
|
target: d,
|
|
1492
1493
|
data: c
|
|
1493
1494
|
}) => {
|
|
1494
|
-
const [p,
|
|
1495
|
-
k.stopPropagation(), typeof
|
|
1495
|
+
const [p, f, h] = G({ sourceX: i, sourceY: l, targetX: s, targetY: o }), u = c == null ? void 0 : c.label, g = u === "Pass", y = g || u === "Fail", a = c == null ? void 0 : c.onAddStepClick, N = (c == null ? void 0 : c.showPlus) !== !1 && !!a, w = (k) => {
|
|
1496
|
+
k.stopPropagation(), typeof a == "function" && a(r, {
|
|
1496
1497
|
edgeId: t,
|
|
1497
1498
|
nodeId: r,
|
|
1498
1499
|
sourceNodeId: r,
|
|
@@ -1512,12 +1513,12 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1512
1513
|
"g",
|
|
1513
1514
|
{
|
|
1514
1515
|
className: "nodrag nopan edge-plus-svg",
|
|
1515
|
-
transform: `translate(${
|
|
1516
|
-
style: { cursor:
|
|
1517
|
-
onClick:
|
|
1518
|
-
onKeyDown:
|
|
1519
|
-
role:
|
|
1520
|
-
tabIndex:
|
|
1516
|
+
transform: `translate(${f}, ${h})`,
|
|
1517
|
+
style: { cursor: a ? "pointer" : "default", pointerEvents: "all", outline: "none" },
|
|
1518
|
+
onClick: a ? w : void 0,
|
|
1519
|
+
onKeyDown: a ? E : void 0,
|
|
1520
|
+
role: a ? "button" : void 0,
|
|
1521
|
+
tabIndex: a ? 0 : void 0,
|
|
1521
1522
|
children: [
|
|
1522
1523
|
y && /* @__PURE__ */ n("g", { transform: `translate(0, ${N ? kt : 0})`, children: [
|
|
1523
1524
|
/* @__PURE__ */ e(
|
|
@@ -1536,8 +1537,8 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1536
1537
|
] }),
|
|
1537
1538
|
N && /* @__PURE__ */ n("g", { className: "plus-icon-container", children: [
|
|
1538
1539
|
/* @__PURE__ */ e("circle", { r: Nt, className: "edge-plus-circle" }),
|
|
1539
|
-
/* @__PURE__ */ e("line", { x1: 0, y1: -O, x2: 0, y2: O, strokeWidth:
|
|
1540
|
-
/* @__PURE__ */ e("line", { x1: -O, y1: 0, x2: O, y2: 0, strokeWidth:
|
|
1540
|
+
/* @__PURE__ */ e("line", { x1: 0, y1: -O, x2: 0, y2: O, strokeWidth: ae, strokeLinecap: "round", className: "plus-line" }),
|
|
1541
|
+
/* @__PURE__ */ e("line", { x1: -O, y1: 0, x2: O, y2: 0, strokeWidth: ae, strokeLinecap: "round", className: "plus-line" })
|
|
1541
1542
|
] }),
|
|
1542
1543
|
N && /* @__PURE__ */ n("g", { className: "edge-plus-tooltip", transform: "translate(22, 0)", children: [
|
|
1543
1544
|
/* @__PURE__ */ e("rect", { x: 0, y: -10, width: 65, height: 20, rx: 4, className: "tooltip-bg" }),
|
|
@@ -1558,9 +1559,9 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1558
1559
|
targetY: d,
|
|
1559
1560
|
style: c = {},
|
|
1560
1561
|
markerEnd: p,
|
|
1561
|
-
data:
|
|
1562
|
+
data: f
|
|
1562
1563
|
}) => {
|
|
1563
|
-
const h = (
|
|
1564
|
+
const h = (f == null ? void 0 : f.verticalRouting) ?? !1, u = (f == null ? void 0 : f.sideRouting) ?? !1, g = (f == null ? void 0 : f.railless) ?? !1, y = 30, a = u ? (
|
|
1564
1565
|
// From the right handle: straight across to the target's left handle.
|
|
1565
1566
|
`M ${s},${o} L ${r},${o} L ${r},${d}`
|
|
1566
1567
|
) : g ? (
|
|
@@ -1572,21 +1573,21 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1572
1573
|
})() : (() => {
|
|
1573
1574
|
const v = o + 30;
|
|
1574
1575
|
return `M ${s},${o} L ${s},${v} L ${r},${v} L ${r},${d}`;
|
|
1575
|
-
})(), N = c.stroke || "#d1d5db", w =
|
|
1576
|
-
let S, x, C,
|
|
1576
|
+
})(), N = c.stroke || "#d1d5db", w = f == null ? void 0 : f.label, E = (f == null ? void 0 : f.isFirst) ?? !1, k = f == null ? void 0 : f.onAddStepClick;
|
|
1577
|
+
let S, x, C, I;
|
|
1577
1578
|
if (u)
|
|
1578
|
-
S = s + (r - s) * 0.5, x = o, C = S,
|
|
1579
|
+
S = s + (r - s) * 0.5, x = o, C = S, I = o;
|
|
1579
1580
|
else if (g) {
|
|
1580
1581
|
const v = d - o;
|
|
1581
|
-
S = s, x = o + v / 3, C = s,
|
|
1582
|
+
S = s, x = o + v / 3, C = s, I = o + v * 2 / 3;
|
|
1582
1583
|
} else if (h) {
|
|
1583
1584
|
const v = d - y;
|
|
1584
|
-
S = s + (r - s) * 0.25, x = v, C = s + (r - s) * 0.65,
|
|
1585
|
+
S = s + (r - s) * 0.25, x = v, C = s + (r - s) * 0.65, I = v;
|
|
1585
1586
|
} else {
|
|
1586
1587
|
const v = o + 30;
|
|
1587
|
-
S = s + (r - s) * 0.35, x = v, C = s + (r - s) * 0.7,
|
|
1588
|
+
S = s + (r - s) * 0.35, x = v, C = s + (r - s) * 0.7, I = v;
|
|
1588
1589
|
}
|
|
1589
|
-
const j = !!w && (!h || u || g), _ = !!k && !u,
|
|
1590
|
+
const j = !!w && (!h || u || g), _ = !!k && !u, P = (v) => {
|
|
1590
1591
|
v.stopPropagation(), k && k(i, {
|
|
1591
1592
|
edgeId: t,
|
|
1592
1593
|
nodeId: i,
|
|
@@ -1594,12 +1595,12 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1594
1595
|
targetNodeId: l,
|
|
1595
1596
|
position: "between",
|
|
1596
1597
|
referenceNodeId: i,
|
|
1597
|
-
filterId:
|
|
1598
|
-
branch:
|
|
1598
|
+
filterId: f == null ? void 0 : f.filterId,
|
|
1599
|
+
branch: f == null ? void 0 : f.branch
|
|
1599
1600
|
});
|
|
1600
1601
|
}, Z = 11.5, K = 6;
|
|
1601
1602
|
return /* @__PURE__ */ n("g", { children: [
|
|
1602
|
-
/* @__PURE__ */ e("path", { id: t, d:
|
|
1603
|
+
/* @__PURE__ */ e("path", { id: t, d: a, fill: "none", stroke: N, strokeWidth: 1.5, markerEnd: p }),
|
|
1603
1604
|
j && /* @__PURE__ */ e("g", { transform: `translate(${S}, ${x})`, children: (() => {
|
|
1604
1605
|
const v = Math.max(44, w.length * 7 + 20);
|
|
1605
1606
|
return /* @__PURE__ */ n(z, { children: [
|
|
@@ -1634,8 +1635,8 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1634
1635
|
_ && /* @__PURE__ */ n(
|
|
1635
1636
|
"g",
|
|
1636
1637
|
{
|
|
1637
|
-
transform: `translate(${C}, ${
|
|
1638
|
-
onClick:
|
|
1638
|
+
transform: `translate(${C}, ${I})`,
|
|
1639
|
+
onClick: P,
|
|
1639
1640
|
style: { cursor: "pointer", pointerEvents: "all" },
|
|
1640
1641
|
className: "nodrag nopan edge-plus-svg",
|
|
1641
1642
|
children: [
|
|
@@ -1649,7 +1650,7 @@ const ht = ({ id: t, data: i }) => {
|
|
|
1649
1650
|
};
|
|
1650
1651
|
export {
|
|
1651
1652
|
lt as A,
|
|
1652
|
-
|
|
1653
|
+
ft as D,
|
|
1653
1654
|
Dt as E,
|
|
1654
1655
|
ot as F,
|
|
1655
1656
|
Ft as G,
|
|
@@ -1670,4 +1671,4 @@ export {
|
|
|
1670
1671
|
_e as h,
|
|
1671
1672
|
Ye as r
|
|
1672
1673
|
};
|
|
1673
|
-
//# sourceMappingURL=GatewayBranchEdge-
|
|
1674
|
+
//# sourceMappingURL=GatewayBranchEdge-Ceuxbttn.js.map
|