@notmrabhi/flowforge 0.1.114 → 0.1.116
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/buildBackendPayload-C9xBGiLv.js +381 -0
- package/dist/buildBackendPayload-C9xBGiLv.js.map +1 -0
- package/dist/buildBackendPayload-ty2Yn_kg.js +2 -0
- package/dist/buildBackendPayload-ty2Yn_kg.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/core.cjs +1 -1
- package/dist/core.d.ts +6 -0
- package/dist/core.js +1 -1
- 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 +10 -0
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/dist/WorkflowExecutionHistory-B99rqinZ.js.map +0 -1
- package/dist/WorkflowExecutionHistory-ClEVOVee.js.map +0 -1
- package/dist/buildBackendPayload-C16SLotf.js +0 -378
- package/dist/buildBackendPayload-C16SLotf.js.map +0 -1
- package/dist/buildBackendPayload-CTCfdT8R.js +0 -2
- package/dist/buildBackendPayload-CTCfdT8R.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as w, jsx as u, Fragment as Se } from "react/jsx-runtime";
|
|
2
|
-
import $, { useRef as Tt, useEffect as se, useState as
|
|
2
|
+
import $, { useRef as Tt, useEffect as se, useState as L, useCallback as U, useMemo as V } from "react";
|
|
3
3
|
import Wn, { useStore as $n, useReactFlow as Gn, Background as Yn, Controls as Kn, MiniMap as Hn } from "reactflow";
|
|
4
4
|
import "reactflow/dist/style.css";
|
|
5
|
-
import { e as Un, G as Vn, E as qn, P as Xn, L as Jn, d as Zn, h as Qn } from "./GatewayBranchEdge-
|
|
6
|
-
import { Dialog as er, Box as re, Drawer as tr, IconButton as Ot, Button as
|
|
5
|
+
import { e as Un, G as Vn, E as qn, P as Xn, L as Jn, d as Zn, h as Qn } from "./GatewayBranchEdge-Ceuxbttn.js";
|
|
6
|
+
import { Dialog as er, Box as re, Drawer as tr, IconButton as Ot, Button as Le, CircularProgress as nr } from "@mui/material";
|
|
7
7
|
import rr from "react-select";
|
|
8
8
|
import { MdClose as or, MdCalendarToday as ir, MdBolt as sr, MdArrowBack as Jt, MdChevronRight as Zt, MdAddCircleOutline as lr, MdApps as ar, MdErrorOutline as dr, MdAccountTree as cr, MdAdd as fr, MdSearch as ur, MdCategory as hr, MdCancel as Qt, MdError as en, MdCheckCircle as tn, MdPlayArrow as nn, MdHourglassEmpty as gr, MdSchedule as It, MdPerson as pr, MdExpandLess as yr, MdExpandMore as br } from "react-icons/md";
|
|
9
9
|
import { GrTrigger as mr } from "react-icons/gr";
|
|
@@ -222,12 +222,12 @@ function Ke(e, t) {
|
|
|
222
222
|
return _e(e, t.v, t.w, t.name);
|
|
223
223
|
}
|
|
224
224
|
var zr = "4.0.1", ln = {};
|
|
225
|
-
sn(ln, { read: () => Rr, write: () =>
|
|
226
|
-
function
|
|
227
|
-
let t = { options: { directed: e.isDirected(), multigraph: e.isMultigraph(), compound: e.isCompound() }, nodes:
|
|
225
|
+
sn(ln, { read: () => Rr, write: () => Lr });
|
|
226
|
+
function Lr(e) {
|
|
227
|
+
let t = { options: { directed: e.isDirected(), multigraph: e.isMultigraph(), compound: e.isCompound() }, nodes: Pr(e), edges: Fr(e) }, n = e.graph();
|
|
228
228
|
return n !== void 0 && (t.value = structuredClone(n)), t;
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Pr(e) {
|
|
231
231
|
return e.nodes().map((t) => {
|
|
232
232
|
let n = e.node(t), r = e.parent(t), o = { v: t };
|
|
233
233
|
return n !== void 0 && (o.value = n), r !== void 0 && (o.parent = r), o;
|
|
@@ -248,7 +248,7 @@ function Rr(e) {
|
|
|
248
248
|
}), t;
|
|
249
249
|
}
|
|
250
250
|
var it = {};
|
|
251
|
-
sn(it, { CycleException: () => Fe, bellmanFord: () => an, components: () => Dr, dijkstra: () =>
|
|
251
|
+
sn(it, { CycleException: () => Fe, bellmanFord: () => an, components: () => Dr, dijkstra: () => Pe, dijkstraAll: () => Gr, findCycles: () => Yr, floydWarshall: () => Hr, isAcyclic: () => Vr, postorder: () => Xr, preorder: () => Jr, prim: () => Zr, shortestPaths: () => Qr, tarjan: () => cn, topsort: () => fn });
|
|
252
252
|
var Ar = () => 1;
|
|
253
253
|
function an(e, t, n, r) {
|
|
254
254
|
return Br(e, String(t), n || Ar, r || function(o) {
|
|
@@ -339,7 +339,7 @@ var dn = class {
|
|
|
339
339
|
n[e] = i, n[t] = o, r[i.key] = e, r[o.key] = t;
|
|
340
340
|
}
|
|
341
341
|
}, Wr = () => 1;
|
|
342
|
-
function
|
|
342
|
+
function Pe(e, t, n, r) {
|
|
343
343
|
let o = function(i) {
|
|
344
344
|
return e.outEdges(i);
|
|
345
345
|
};
|
|
@@ -359,7 +359,7 @@ function $r(e, t, n, r) {
|
|
|
359
359
|
}
|
|
360
360
|
function Gr(e, t, n) {
|
|
361
361
|
return e.nodes().reduce(function(r, o) {
|
|
362
|
-
return r[o] =
|
|
362
|
+
return r[o] = Pe(e, o, t, n), r;
|
|
363
363
|
}, {});
|
|
364
364
|
}
|
|
365
365
|
function cn(e) {
|
|
@@ -492,7 +492,7 @@ function Qr(e, t, n, r) {
|
|
|
492
492
|
}));
|
|
493
493
|
}
|
|
494
494
|
function eo(e, t, n, r) {
|
|
495
|
-
if (n === void 0) return
|
|
495
|
+
if (n === void 0) return Pe(e, t, n, r);
|
|
496
496
|
let o = !1, i = e.nodes();
|
|
497
497
|
for (let s = 0; s < i.length; s++) {
|
|
498
498
|
let l = r(i[s]);
|
|
@@ -502,7 +502,7 @@ function eo(e, t, n, r) {
|
|
|
502
502
|
}
|
|
503
503
|
if (o) return an(e, t, n, r);
|
|
504
504
|
}
|
|
505
|
-
return
|
|
505
|
+
return Pe(e, t, n, r);
|
|
506
506
|
}
|
|
507
507
|
function ve(e, t, n, r) {
|
|
508
508
|
let o = r;
|
|
@@ -558,7 +558,7 @@ function ro(e) {
|
|
|
558
558
|
s === void 0 && l % i !== 0 ? --o : s !== void 0 && o && s.forEach((d) => e.node(d).rank += o);
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function Lt(e, t, n, r) {
|
|
562
562
|
let o = { width: 0, height: 0 };
|
|
563
563
|
return arguments.length >= 4 && (o.rank = n, o.order = r), ve(e, "border", o, t);
|
|
564
564
|
}
|
|
@@ -634,11 +634,11 @@ var Be = "\0", ao = "3.0.0", co = class {
|
|
|
634
634
|
}
|
|
635
635
|
dequeue() {
|
|
636
636
|
let e = this._sentinel, t = e._prev;
|
|
637
|
-
if (t !== e) return
|
|
637
|
+
if (t !== e) return Pt(t), t;
|
|
638
638
|
}
|
|
639
639
|
enqueue(e) {
|
|
640
640
|
let t = this._sentinel;
|
|
641
|
-
e._prev && e._next &&
|
|
641
|
+
e._prev && e._next && Pt(e), e._next = t._next, t._next._prev = e, t._next = e, e._prev = t;
|
|
642
642
|
}
|
|
643
643
|
toString() {
|
|
644
644
|
let e = [], t = this._sentinel, n = t._prev;
|
|
@@ -646,7 +646,7 @@ var Be = "\0", ao = "3.0.0", co = class {
|
|
|
646
646
|
return "[" + e.join(", ") + "]";
|
|
647
647
|
}
|
|
648
648
|
};
|
|
649
|
-
function
|
|
649
|
+
function Pt(e) {
|
|
650
650
|
e._prev._next = e._next, e._next._prev = e._prev, delete e._next, delete e._prev;
|
|
651
651
|
}
|
|
652
652
|
function fo(e, t) {
|
|
@@ -871,8 +871,8 @@ function zo(e, t, n) {
|
|
|
871
871
|
function Ft(e, t, n) {
|
|
872
872
|
return n.low <= t.lim && t.lim <= n.lim;
|
|
873
873
|
}
|
|
874
|
-
var
|
|
875
|
-
function
|
|
874
|
+
var Lo = Po;
|
|
875
|
+
function Po(e) {
|
|
876
876
|
let t = e.graph().ranker;
|
|
877
877
|
if (typeof t == "function") return t(e);
|
|
878
878
|
switch (t) {
|
|
@@ -947,7 +947,7 @@ function Sn(e, t, n, r, o, i, s) {
|
|
|
947
947
|
s !== t && e.setEdge(t, s, { weight: 0, minlen: n });
|
|
948
948
|
return;
|
|
949
949
|
}
|
|
950
|
-
let a =
|
|
950
|
+
let a = Lt(e, "_bt"), c = Lt(e, "_bb"), f = e.node(s);
|
|
951
951
|
e.setParent(a, s), f.borderTop = a, e.setParent(c, s), f.borderBottom = c, d.forEach((h) => {
|
|
952
952
|
var g;
|
|
953
953
|
Sn(e, t, n, r, o, i, h);
|
|
@@ -1482,7 +1482,7 @@ function Ti(e, t = {}) {
|
|
|
1482
1482
|
});
|
|
1483
1483
|
}
|
|
1484
1484
|
function Oi(e, t, n) {
|
|
1485
|
-
t(" makeSpaceForEdgeLabels", () => Bi(e)), t(" removeSelfEdges", () => Vi(e)), t(" acyclic", () => mo(e)), t(" nestingGraph.run", () => $o(e)), t(" rank", () =>
|
|
1485
|
+
t(" makeSpaceForEdgeLabels", () => Bi(e)), t(" removeSelfEdges", () => Vi(e)), t(" acyclic", () => mo(e)), t(" nestingGraph.run", () => $o(e)), t(" rank", () => Lo(gn(e))), t(" injectEdgeLabelProxies", () => Di(e)), t(" removeEmptyRanks", () => ro(e)), t(" nestingGraph.cleanup", () => Ko(e)), t(" normalizeRanks", () => no(e)), t(" assignRankMinMax", () => Wi(e)), t(" removeEdgeLabelProxies", () => $i(e)), t(" normalize.run", () => Eo(e)), t(" parentDummyChains", () => Ao(e)), t(" addBorderSegments", () => Ho(e)), t(" order", () => Tn(e, n)), t(" insertSelfEdges", () => qi(e)), t(" adjustCoordinateSystem", () => Vo(e)), t(" position", () => Ni(e)), t(" positionSelfEdges", () => Xi(e)), t(" removeBorderNodes", () => Ui(e)), t(" normalize.undo", () => ko(e)), t(" fixupEdgeLabelCoords", () => Ki(e)), t(" undoCoordinateSystem", () => qo(e)), t(" translateGraph", () => Gi(e)), t(" assignNodeIntersects", () => Yi(e)), t(" reversePoints", () => Hi(e)), t(" acyclic.undo", () => wo(e));
|
|
1486
1486
|
}
|
|
1487
1487
|
function Ii(e, t) {
|
|
1488
1488
|
e.nodes().forEach((n) => {
|
|
@@ -1493,11 +1493,11 @@ function Ii(e, t) {
|
|
|
1493
1493
|
r.points = o.points, Object.hasOwn(o, "x") && (r.x = o.x, r.y = o.y);
|
|
1494
1494
|
}), e.graph().width = t.graph().width, e.graph().height = t.graph().height;
|
|
1495
1495
|
}
|
|
1496
|
-
var Mi = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], ji = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "TB", rankalign: "center" }, zi = ["acyclicer", "ranker", "rankdir", "align", "rankalign"],
|
|
1496
|
+
var Mi = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], ji = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "TB", rankalign: "center" }, zi = ["acyclicer", "ranker", "rankdir", "align", "rankalign"], Li = ["width", "height", "rank"], Gt = { width: 0, height: 0 }, Pi = ["minlen", "weight", "width", "height", "labeloffset"], Fi = { minlen: 1, weight: 1, width: 0, height: 0, labeloffset: 10, labelpos: "r" }, Ri = ["labelpos"];
|
|
1497
1497
|
function Ai(e) {
|
|
1498
1498
|
let t = new q({ multigraph: !0, compound: !0 }), n = Xe(e.graph());
|
|
1499
1499
|
return t.setGraph(Object.assign({}, ji, qe(n, Mi), Re(n, zi))), e.nodes().forEach((r) => {
|
|
1500
|
-
let o = Xe(e.node(r)), i = qe(o,
|
|
1500
|
+
let o = Xe(e.node(r)), i = qe(o, Li);
|
|
1501
1501
|
Object.keys(Gt).forEach((l) => {
|
|
1502
1502
|
i[l] === void 0 && (i[l] = Gt[l]);
|
|
1503
1503
|
}), t.setNode(r, i);
|
|
@@ -1505,7 +1505,7 @@ function Ai(e) {
|
|
|
1505
1505
|
s !== void 0 && t.setParent(r, s);
|
|
1506
1506
|
}), e.edges().forEach((r) => {
|
|
1507
1507
|
let o = Xe(e.edge(r));
|
|
1508
|
-
t.setEdge(r, Object.assign({}, Fi, qe(o,
|
|
1508
|
+
t.setEdge(r, Object.assign({}, Fi, qe(o, Pi), Re(o, Ri)));
|
|
1509
1509
|
}), t;
|
|
1510
1510
|
}
|
|
1511
1511
|
function Bi(e) {
|
|
@@ -1814,7 +1814,7 @@ function ns({
|
|
|
1814
1814
|
);
|
|
1815
1815
|
}
|
|
1816
1816
|
const Ce = ({ isOpen: e, onClose: t, title: n, icon: r, children: o, footer: i, width: s = 720 }) => {
|
|
1817
|
-
const [l, d] =
|
|
1817
|
+
const [l, d] = L(!1), a = () => d((h) => !h), c = () => /* @__PURE__ */ w(re, { sx: { display: "flex", alignItems: "center", p: 2, pt: 3, borderBottom: "1px solid #e0e0e0", mb: 0, flexShrink: 0 }, children: [
|
|
1818
1818
|
r && /* @__PURE__ */ u(re, { sx: { mr: 1.5, display: "flex", alignItems: "center", fontSize: "1.25rem", color: "#1DBF60" }, children: r }),
|
|
1819
1819
|
/* @__PURE__ */ u("span", { style: { flexGrow: 1, fontSize: 14, fontWeight: 500, color: "#212121" }, children: n }),
|
|
1820
1820
|
/* @__PURE__ */ u(Ot, { onClick: a, size: "small", sx: { mr: 1 }, title: l ? "Collapse" : "Expand", "data-testid": "expand-collapse-base-drawer-btn", children: l ? /* @__PURE__ */ u(vr, {}) : /* @__PURE__ */ u(wr, {}) }),
|
|
@@ -1863,20 +1863,20 @@ const Ce = ({ isOpen: e, onClose: t, title: n, icon: r, children: o, footer: i,
|
|
|
1863
1863
|
onClose: o,
|
|
1864
1864
|
loadTriggerSources: i
|
|
1865
1865
|
}) => {
|
|
1866
|
-
const [s, l] =
|
|
1866
|
+
const [s, l] = L("trigger"), [d, a] = L(null), [c, f] = L([]), [h, g] = L([]), [E, b] = L(!1), [p, x] = L(null);
|
|
1867
1867
|
se(() => {
|
|
1868
1868
|
e || (l("trigger"), a(null), f([]), g([]), b(!1), x(null));
|
|
1869
1869
|
}, [e]);
|
|
1870
|
-
const k = U(async (
|
|
1870
|
+
const k = U(async (P) => {
|
|
1871
1871
|
if (!i) {
|
|
1872
|
-
r(
|
|
1872
|
+
r(P);
|
|
1873
1873
|
return;
|
|
1874
1874
|
}
|
|
1875
|
-
a(
|
|
1875
|
+
a(P), b(!0), x(null);
|
|
1876
1876
|
try {
|
|
1877
|
-
const I = await i(
|
|
1877
|
+
const I = await i(P.triggerKey);
|
|
1878
1878
|
if (!I || I.length === 0) {
|
|
1879
|
-
r(
|
|
1879
|
+
r(P);
|
|
1880
1880
|
return;
|
|
1881
1881
|
}
|
|
1882
1882
|
f(I), l("sources");
|
|
@@ -1890,9 +1890,9 @@ const Ce = ({ isOpen: e, onClose: t, title: n, icon: r, children: o, footer: i,
|
|
|
1890
1890
|
}, z = () => {
|
|
1891
1891
|
d && r(d, h);
|
|
1892
1892
|
}, W = s === "sources" && d, G = W ? /* @__PURE__ */ w(Se, { children: [
|
|
1893
|
-
/* @__PURE__ */ u(
|
|
1893
|
+
/* @__PURE__ */ u(Le, { type: "button", variant: "outlined", size: "small", onClick: M, children: n.cancel ?? "Back" }),
|
|
1894
1894
|
/* @__PURE__ */ u(
|
|
1895
|
-
|
|
1895
|
+
Le,
|
|
1896
1896
|
{
|
|
1897
1897
|
type: "button",
|
|
1898
1898
|
variant: "contained",
|
|
@@ -1916,16 +1916,16 @@ const Ce = ({ isOpen: e, onClose: t, title: n, icon: r, children: o, footer: i,
|
|
|
1916
1916
|
!W && /* @__PURE__ */ w(Se, { children: [
|
|
1917
1917
|
/* @__PURE__ */ u("p", { className: "ff-text-muted ff-mb-3", style: { fontSize: 13 }, children: n.chooseTrigger }),
|
|
1918
1918
|
/* @__PURE__ */ w("div", { className: "ff-d-flex ff-flex-column ff-gap-2", children: [
|
|
1919
|
-
t.map((
|
|
1919
|
+
t.map((P) => /* @__PURE__ */ w(
|
|
1920
1920
|
"div",
|
|
1921
1921
|
{
|
|
1922
1922
|
className: "ff-p-3 ff-rounded ff-border ff-d-flex ff-align-items-start ff-gap-3",
|
|
1923
1923
|
style: { cursor: E ? "wait" : "pointer", transition: "background 0.15s", opacity: E ? 0.6 : 1 },
|
|
1924
|
-
onClick: () => !E && k(
|
|
1924
|
+
onClick: () => !E && k(P),
|
|
1925
1925
|
role: "button",
|
|
1926
1926
|
tabIndex: 0,
|
|
1927
1927
|
onKeyDown: (I) => {
|
|
1928
|
-
I.key === "Enter" && !E && k(
|
|
1928
|
+
I.key === "Enter" && !E && k(P);
|
|
1929
1929
|
},
|
|
1930
1930
|
onMouseEnter: (I) => {
|
|
1931
1931
|
E || (I.currentTarget.style.background = "#f5f5f5");
|
|
@@ -1934,14 +1934,14 @@ const Ce = ({ isOpen: e, onClose: t, title: n, icon: r, children: o, footer: i,
|
|
|
1934
1934
|
I.currentTarget.style.background = "";
|
|
1935
1935
|
},
|
|
1936
1936
|
children: [
|
|
1937
|
-
/* @__PURE__ */ u("div", { style: { color:
|
|
1937
|
+
/* @__PURE__ */ u("div", { style: { color: P.triggerCategory === "scheduler" ? "#1976d2" : "#f57c00", marginTop: 2, flexShrink: 0 }, children: P.triggerCategory === "scheduler" ? /* @__PURE__ */ u(ir, { size: 18 }) : /* @__PURE__ */ u(sr, { size: 18 }) }),
|
|
1938
1938
|
/* @__PURE__ */ w("div", { children: [
|
|
1939
|
-
/* @__PURE__ */ u("div", { style: { fontSize: 14, fontWeight: 500, color: "#212121" }, children:
|
|
1940
|
-
|
|
1939
|
+
/* @__PURE__ */ u("div", { style: { fontSize: 14, fontWeight: 500, color: "#212121" }, children: P.label }),
|
|
1940
|
+
P.description && /* @__PURE__ */ u("div", { style: { fontSize: 12, color: "#757575", marginTop: 2 }, children: P.description })
|
|
1941
1941
|
] })
|
|
1942
1942
|
]
|
|
1943
1943
|
},
|
|
1944
|
-
|
|
1944
|
+
P.triggerKey
|
|
1945
1945
|
)),
|
|
1946
1946
|
t.length === 0 && /* @__PURE__ */ u("p", { className: "ff-text-muted ff-text-center", style: { fontSize: 13 }, children: n.noTriggers })
|
|
1947
1947
|
] }),
|
|
@@ -1958,8 +1958,8 @@ const Ce = ({ isOpen: e, onClose: t, title: n, icon: r, children: o, footer: i,
|
|
|
1958
1958
|
role: "button",
|
|
1959
1959
|
tabIndex: 0,
|
|
1960
1960
|
onClick: M,
|
|
1961
|
-
onKeyDown: (
|
|
1962
|
-
|
|
1961
|
+
onKeyDown: (P) => {
|
|
1962
|
+
P.key === "Enter" && M();
|
|
1963
1963
|
},
|
|
1964
1964
|
className: "ff-d-flex ff-align-items-center ff-gap-1 ff-mb-3",
|
|
1965
1965
|
style: { cursor: "pointer", color: "#0066cc", fontSize: 13, fontWeight: 500, width: "fit-content" },
|
|
@@ -1980,7 +1980,7 @@ const Ce = ({ isOpen: e, onClose: t, title: n, icon: r, children: o, footer: i,
|
|
|
1980
1980
|
isMulti: !0,
|
|
1981
1981
|
options: c,
|
|
1982
1982
|
value: h,
|
|
1983
|
-
onChange: (
|
|
1983
|
+
onChange: (P) => g(P ?? []),
|
|
1984
1984
|
placeholder: "Select sources…",
|
|
1985
1985
|
menuPosition: "fixed",
|
|
1986
1986
|
menuPortalTarget: typeof document < "u" ? document.body : void 0,
|
|
@@ -2010,7 +2010,7 @@ const Ce = ({ isOpen: e, onClose: t, title: n, icon: r, children: o, footer: i,
|
|
|
2010
2010
|
} else
|
|
2011
2011
|
h.push(g);
|
|
2012
2012
|
return { apps: [...f.values()], ungrouped: h };
|
|
2013
|
-
}, [t]), [l, d] =
|
|
2013
|
+
}, [t]), [l, d] = L(null), a = l ? i.find((f) => f.key === l) ?? null : null;
|
|
2014
2014
|
se(() => {
|
|
2015
2015
|
e || d(null);
|
|
2016
2016
|
}, [e]), se(() => {
|
|
@@ -2139,7 +2139,7 @@ function Ut(e) {
|
|
|
2139
2139
|
}) : Array.isArray(e.fields) && e.fields.length > 0;
|
|
2140
2140
|
}
|
|
2141
2141
|
const is = ({ open: e, nodeId: t, descriptor: n, initialValues: r, messages: o, onSave: i, onClose: s }) => {
|
|
2142
|
-
const [l, d] =
|
|
2142
|
+
const [l, d] = L({ layout: "flat", fields: [] }), [a, c] = L(!1), [f, h] = L(null), [g, E] = L({});
|
|
2143
2143
|
se(() => {
|
|
2144
2144
|
E((r == null ? void 0 : r[Kt]) ?? {});
|
|
2145
2145
|
}, [r, t]), se(() => {
|
|
@@ -2158,9 +2158,9 @@ const is = ({ open: e, nodeId: t, descriptor: n, initialValues: r, messages: o,
|
|
|
2158
2158
|
};
|
|
2159
2159
|
}, [n, t]);
|
|
2160
2160
|
const b = t ? `node-config-form-${t}` : "node-config-form", p = !a && !f && Ut(l), x = p ? /* @__PURE__ */ w(Se, { children: [
|
|
2161
|
-
/* @__PURE__ */ u(
|
|
2161
|
+
/* @__PURE__ */ u(Le, { type: "button", variant: "text", size: "small", sx: { textTransform: "none", color: "#475569" }, onClick: s, children: o.cancel }),
|
|
2162
2162
|
/* @__PURE__ */ u(
|
|
2163
|
-
|
|
2163
|
+
Le,
|
|
2164
2164
|
{
|
|
2165
2165
|
type: "submit",
|
|
2166
2166
|
form: b,
|
|
@@ -2223,7 +2223,7 @@ const is = ({ open: e, nodeId: t, descriptor: n, initialValues: r, messages: o,
|
|
|
2223
2223
|
workflowLabel: r,
|
|
2224
2224
|
onFetchWorkflow: o
|
|
2225
2225
|
}) => {
|
|
2226
|
-
const [i, s] =
|
|
2226
|
+
const [i, s] = L({ status: "idle" });
|
|
2227
2227
|
return se(() => {
|
|
2228
2228
|
if (!e || !n) {
|
|
2229
2229
|
s({ status: "idle" });
|
|
@@ -2254,7 +2254,7 @@ const is = ({ open: e, nodeId: t, descriptor: n, initialValues: r, messages: o,
|
|
|
2254
2254
|
}
|
|
2255
2255
|
);
|
|
2256
2256
|
}, ls = ({ state: e }) => {
|
|
2257
|
-
const [t, n] =
|
|
2257
|
+
const [t, n] = L(null), [r, o] = L(null);
|
|
2258
2258
|
return se(() => {
|
|
2259
2259
|
Promise.all([
|
|
2260
2260
|
Promise.resolve().then(() => hs).then((i) => i.default),
|
|
@@ -2323,13 +2323,13 @@ function cs(e, t, n, r) {
|
|
|
2323
2323
|
M = h(z.id, x, M) + s, fe(z.kind) && t[z.id] && (M = E(z.id, x, M));
|
|
2324
2324
|
return M;
|
|
2325
2325
|
}, E = (p, x, k) => {
|
|
2326
|
-
const M = x + 180, z = t[p], W = Object.keys(z), G = f.get(p),
|
|
2326
|
+
const M = x + 180, z = t[p], W = Object.keys(z), G = f.get(p), P = (G == null ? void 0 : G.branchLabels) ?? { pass: "Pass", fail: "Fail" }, I = a[p], Y = r[p] ?? { width: me, height: 80 }, J = I.y + Y.height;
|
|
2327
2327
|
if ((G == null ? void 0 : G.branchStyle) === "inline-gate") {
|
|
2328
2328
|
const ie = [], he = x + Y.width / 2 + 140;
|
|
2329
2329
|
let te = I.y + Y.height / 2;
|
|
2330
2330
|
W.slice(1).forEach((ge) => {
|
|
2331
2331
|
var we, Ee;
|
|
2332
|
-
ie.push({ y: te - J, label:
|
|
2332
|
+
ie.push({ y: te - J, label: P[ge] ?? ge, isPass: !1 });
|
|
2333
2333
|
const De = te - (((Ee = r[(we = z[ge][0]) == null ? void 0 : we.id]) == null ? void 0 : Ee.height) ?? 50) / 2;
|
|
2334
2334
|
te = g(z[ge], he, De) + l;
|
|
2335
2335
|
});
|
|
@@ -2342,7 +2342,7 @@ function cs(e, t, n, r) {
|
|
|
2342
2342
|
const Oe = z[ie], te = A;
|
|
2343
2343
|
le.push({
|
|
2344
2344
|
y: te - J,
|
|
2345
|
-
label:
|
|
2345
|
+
label: P[ie] ?? ie,
|
|
2346
2346
|
isPass: he === 0
|
|
2347
2347
|
}), A = g(Oe, M, A + d), he < W.length - 1 && (A += l);
|
|
2348
2348
|
}), c[p] = {
|
|
@@ -2387,14 +2387,14 @@ function us(e, t, n, r, o = {}, i = "TB", s = "horizontal") {
|
|
|
2387
2387
|
const l = o.edgeColor ?? "#b0bec5", d = [], a = [], c = (b, p, x) => {
|
|
2388
2388
|
const k = t[b];
|
|
2389
2389
|
if (!k) return;
|
|
2390
|
-
const z = p ?? { pass: "Pass", fail: "Fail" }, W = Object.keys(k), G = x === "inline-gate",
|
|
2390
|
+
const z = p ?? { pass: "Pass", fail: "Fail" }, W = Object.keys(k), G = x === "inline-gate", P = (I, Y, J, le) => {
|
|
2391
2391
|
if (I.length !== 0) {
|
|
2392
2392
|
I.forEach((A) => d.push(qt(A))), G && le === 0 ? a.push({
|
|
2393
2393
|
id: `e-${b}-${Y}-start`,
|
|
2394
2394
|
source: b,
|
|
2395
2395
|
sourceHandle: "pass",
|
|
2396
2396
|
target: I[0].id,
|
|
2397
|
-
type: "
|
|
2397
|
+
type: "edgeWithPlusLabel",
|
|
2398
2398
|
style: { stroke: l },
|
|
2399
2399
|
data: { label: J, onAddStepClick: n, referenceNodeType: "filterNode", filterId: b, branch: Y }
|
|
2400
2400
|
}) : G ? a.push({
|
|
@@ -2421,7 +2421,7 @@ function us(e, t, n, r, o = {}, i = "TB", s = "horizontal") {
|
|
|
2421
2421
|
}
|
|
2422
2422
|
};
|
|
2423
2423
|
W.forEach((I, Y) => {
|
|
2424
|
-
|
|
2424
|
+
P(k[I], I, z[I] ?? I, Y);
|
|
2425
2425
|
});
|
|
2426
2426
|
};
|
|
2427
2427
|
for (let b = 0; b < e.length; b++) {
|
|
@@ -2453,7 +2453,7 @@ function us(e, t, n, r, o = {}, i = "TB", s = "horizontal") {
|
|
|
2453
2453
|
if (i === "LR") {
|
|
2454
2454
|
let M = nt;
|
|
2455
2455
|
return { nodes: d.map((W) => {
|
|
2456
|
-
const G = f[W.id].width,
|
|
2456
|
+
const G = f[W.id].width, P = f[W.id].height, I = { ...W, position: { x: M, y: 300 - P / 2 } };
|
|
2457
2457
|
return M += G + tt, I;
|
|
2458
2458
|
}), edges: a };
|
|
2459
2459
|
}
|
|
@@ -2499,7 +2499,7 @@ const Xt = ({
|
|
|
2499
2499
|
workflowName: z,
|
|
2500
2500
|
onWorkflowNameChange: W,
|
|
2501
2501
|
onCancel: G,
|
|
2502
|
-
workflowStatus:
|
|
2502
|
+
workflowStatus: P,
|
|
2503
2503
|
workflowStatusColor: I,
|
|
2504
2504
|
saveLabel: Y,
|
|
2505
2505
|
optionsResolvers: J
|
|
@@ -2517,15 +2517,15 @@ const Xt = ({
|
|
|
2517
2517
|
snapGrid: ct = [15, 15],
|
|
2518
2518
|
branchLayout: we = "horizontal",
|
|
2519
2519
|
nodeBody: Ee = "full"
|
|
2520
|
-
} = a, xe = V(() => _r(d), [d]), [R, ae] =
|
|
2520
|
+
} = a, xe = V(() => _r(d), [d]), [R, ae] = L(() => (n == null ? void 0 : n.slots) ?? Vt()), [K, ne] = L(() => (n == null ? void 0 : n.branches) ?? {}), [pe, X] = L(null), [We, ft] = L(null), [Z, Me] = L(null), [de, ut] = L(null), [je, ht] = L(null), [j, gt] = L(() => {
|
|
2521
2521
|
const y = n == null ? void 0 : n.slots.find((S) => S.kind === "triggerFixed"), v = y != null && y.id.startsWith("trigger-") ? y.id.slice(8) : void 0;
|
|
2522
2522
|
return v ? t.lookup(v) ?? null : null;
|
|
2523
|
-
}), [pt, Mn] =
|
|
2523
|
+
}), [pt, Mn] = L({}), jn = U((y) => {
|
|
2524
2524
|
Mn(y);
|
|
2525
|
-
}, []), zn = V(() => ({ ...Un, ...r }), [r]),
|
|
2525
|
+
}, []), zn = V(() => ({ ...Un, ...r }), [r]), Ln = V(() => ({ ...as, ...o }), [o]), Pn = V(() => {
|
|
2526
2526
|
const y = R.filter((S) => S.kind === "userTask").length, v = Object.values(K).flatMap((S) => Object.values(S).flat()).filter((S) => S.kind === "userTask").length;
|
|
2527
2527
|
return y + v;
|
|
2528
|
-
}, [R, K]), yt = b ?? (j == null ? void 0 : j.maxTasks), bt = yt !== void 0 &&
|
|
2528
|
+
}, [R, K]), yt = b ?? (j == null ? void 0 : j.maxTasks), bt = yt !== void 0 && Pn >= yt, ce = U((y) => {
|
|
2529
2529
|
const v = R.find((S) => S.id === y);
|
|
2530
2530
|
if (v) return v;
|
|
2531
2531
|
for (const S of Object.values(K)) {
|
|
@@ -2824,7 +2824,7 @@ const Xt = ({
|
|
|
2824
2824
|
{
|
|
2825
2825
|
workflowName: z,
|
|
2826
2826
|
onWorkflowNameChange: W,
|
|
2827
|
-
status:
|
|
2827
|
+
status: P,
|
|
2828
2828
|
statusColor: I,
|
|
2829
2829
|
onSave: i ? An : void 0,
|
|
2830
2830
|
onCancel: G,
|
|
@@ -2838,7 +2838,7 @@ const Xt = ({
|
|
|
2838
2838
|
nodes: Ct,
|
|
2839
2839
|
edges: Fn,
|
|
2840
2840
|
nodeTypes: zn,
|
|
2841
|
-
edgeTypes:
|
|
2841
|
+
edgeTypes: Ln,
|
|
2842
2842
|
fitView: le,
|
|
2843
2843
|
fitViewOptions: { padding: A },
|
|
2844
2844
|
nodesDraggable: !1,
|
|
@@ -2955,7 +2955,7 @@ const js = ({
|
|
|
2955
2955
|
onSelectTemplate: t,
|
|
2956
2956
|
onStartFromScratch: n
|
|
2957
2957
|
}) => {
|
|
2958
|
-
const [r, o] =
|
|
2958
|
+
const [r, o] = L(""), [i, s] = L(Qe), l = V(() => {
|
|
2959
2959
|
const a = /* @__PURE__ */ new Set();
|
|
2960
2960
|
return e.forEach((c) => {
|
|
2961
2961
|
c.category && a.add(c.category);
|
|
@@ -3057,7 +3057,7 @@ function In(e, t) {
|
|
|
3057
3057
|
}
|
|
3058
3058
|
}
|
|
3059
3059
|
function ys({ step: e }) {
|
|
3060
|
-
const [t, n] =
|
|
3060
|
+
const [t, n] = L(!1), r = ps[e.status], o = !!(e.inputs || e.outputs || e.error);
|
|
3061
3061
|
return /* @__PURE__ */ w("div", { style: { borderBottom: "1px solid #f5f5f5" }, children: [
|
|
3062
3062
|
/* @__PURE__ */ w(
|
|
3063
3063
|
"div",
|
|
@@ -3134,7 +3134,7 @@ function bs({ record: e, selected: t, onSelect: n }) {
|
|
|
3134
3134
|
}
|
|
3135
3135
|
const zs = ({ records: e, onViewOnCanvas: t }) => {
|
|
3136
3136
|
var s;
|
|
3137
|
-
const [n, r] =
|
|
3137
|
+
const [n, r] = L(((s = e[0]) == null ? void 0 : s.id) ?? null), o = e.find((l) => l.id === n) ?? null, i = [...e].sort((l, d) => new Date(d.triggeredAt).getTime() - new Date(l.triggeredAt).getTime());
|
|
3138
3138
|
return e.length === 0 ? /* @__PURE__ */ w("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", height: 300, color: "#9e9e9e", gap: 8 }, children: [
|
|
3139
3139
|
/* @__PURE__ */ u(It, { size: 36 }),
|
|
3140
3140
|
/* @__PURE__ */ u("p", { style: { margin: 0, fontSize: 14 }, children: "No executions yet" }),
|
|
@@ -3201,4 +3201,4 @@ export {
|
|
|
3201
3201
|
ns as a,
|
|
3202
3202
|
js as b
|
|
3203
3203
|
};
|
|
3204
|
-
//# sourceMappingURL=WorkflowExecutionHistory-
|
|
3204
|
+
//# sourceMappingURL=WorkflowExecutionHistory-DUVtoDWf.js.map
|