hn-workflow-components 1.1.3 → 1.1.5
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.
|
@@ -3,7 +3,7 @@ var Mw = (e, t, n) => t in e ? Tw(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var mr = (e, t, n) => Mw(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { jsx as I, jsxs as be, Fragment as nn } from "react/jsx-runtime";
|
|
5
5
|
import * as u from "react";
|
|
6
|
-
import K, { isValidElement as pm, version as Dw, useContext as qt, createContext as Mo, useRef as Ee, useLayoutEffect as Aw, useEffect as tt, useState as Xe, forwardRef as Pn, useMemo as
|
|
6
|
+
import K, { isValidElement as pm, version as Dw, useContext as qt, createContext as Mo, useRef as Ee, useLayoutEffect as Aw, useEffect as tt, useState as Xe, forwardRef as Pn, useMemo as Jt, Children as jw, useCallback as Oe, useImperativeHandle as $r, cloneElement as Lw, createElement as oc, memo as Ye, Fragment as tb } from "react";
|
|
7
7
|
import * as nb from "react-dom";
|
|
8
8
|
import eg, { createPortal as rb, unstable_batchedUpdates as zw, flushSync as _d } from "react-dom";
|
|
9
9
|
function In(e) {
|
|
@@ -6676,13 +6676,13 @@ const v4 = (e) => {
|
|
|
6676
6676
|
token: It,
|
|
6677
6677
|
components: At,
|
|
6678
6678
|
cssVar: yt
|
|
6679
|
-
} = De,
|
|
6680
|
-
Object.entries(At || {}).forEach(([
|
|
6679
|
+
} = De, Xt = f4(De, ["algorithm", "token", "components", "cssVar"]), Gt = vt && (!Array.isArray(vt) || vt.length > 0) ? Kd(vt) : hy, dn = {};
|
|
6680
|
+
Object.entries(At || {}).forEach(([Yt, fn]) => {
|
|
6681
6681
|
const $e = Object.assign({}, fn);
|
|
6682
|
-
"algorithm" in $e && ($e.algorithm === !0 ? $e.theme = Gt : (Array.isArray($e.algorithm) || typeof $e.algorithm == "function") && ($e.theme = Kd($e.algorithm)), delete $e.algorithm), dn[
|
|
6682
|
+
"algorithm" in $e && ($e.algorithm === !0 ? $e.theme = Gt : (Array.isArray($e.algorithm) || typeof $e.algorithm == "function") && ($e.theme = Kd($e.algorithm)), delete $e.algorithm), dn[Yt] = $e;
|
|
6683
6683
|
});
|
|
6684
6684
|
const _n = Object.assign(Object.assign({}, Ua), It);
|
|
6685
|
-
return Object.assign(Object.assign({},
|
|
6685
|
+
return Object.assign(Object.assign({}, Xt), {
|
|
6686
6686
|
theme: Gt,
|
|
6687
6687
|
token: _n,
|
|
6688
6688
|
components: dn,
|
|
@@ -9066,12 +9066,12 @@ var d1 = function(t) {
|
|
|
9066
9066
|
}, l3 = function(t, n) {
|
|
9067
9067
|
var r = xn(t, {
|
|
9068
9068
|
value: n
|
|
9069
|
-
}), o = Z(r, 2), i = o[0], a = o[1], s =
|
|
9069
|
+
}), o = Z(r, 2), i = o[0], a = o[1], s = Jt(function() {
|
|
9070
9070
|
return Fi(i);
|
|
9071
9071
|
}, [i]);
|
|
9072
9072
|
return [s, a];
|
|
9073
9073
|
}, c3 = function(t) {
|
|
9074
|
-
var n = t.colors, r = t.children, o = t.direction, i = o === void 0 ? "to right" : o, a = t.type, s = t.prefixCls, l =
|
|
9074
|
+
var n = t.colors, r = t.children, o = t.direction, i = o === void 0 ? "to right" : o, a = t.type, s = t.prefixCls, l = Jt(function() {
|
|
9075
9075
|
return n.map(function(c, d) {
|
|
9076
9076
|
var f = Fi(c);
|
|
9077
9077
|
return a === "alpha" && d === n.length - 1 && (f = new so(f.setA(1))), f.toRgbString();
|
|
@@ -9172,7 +9172,7 @@ var f3 = [{
|
|
|
9172
9172
|
color: "rgb(255, 0, 0)",
|
|
9173
9173
|
percent: 100
|
|
9174
9174
|
}], m3 = /* @__PURE__ */ Pn(function(e, t) {
|
|
9175
|
-
var n = e.value, r = e.defaultValue, o = e.prefixCls, i = o === void 0 ? r3 : o, a = e.onChange, s = e.onChangeComplete, l = e.className, c = e.style, d = e.panelRender, f = e.disabledAlpha, p = f === void 0 ? !1 : f, g = e.disabled, h = g === void 0 ? !1 : g, v = e.components, m = d3(v), b = Z(m, 1), y = b[0], S = l3(r || o3, n), C = Z(S, 2), x = C[0], E = C[1], $ =
|
|
9175
|
+
var n = e.value, r = e.defaultValue, o = e.prefixCls, i = o === void 0 ? r3 : o, a = e.onChange, s = e.onChangeComplete, l = e.className, c = e.style, d = e.panelRender, f = e.disabledAlpha, p = f === void 0 ? !1 : f, g = e.disabled, h = g === void 0 ? !1 : g, v = e.components, m = d3(v), b = Z(m, 1), y = b[0], S = l3(r || o3, n), C = Z(S, 2), x = C[0], E = C[1], $ = Jt(function() {
|
|
9176
9176
|
return x.setA(1).toRgbString();
|
|
9177
9177
|
}, [x]), w = function(V, q) {
|
|
9178
9178
|
n || E(V), a == null || a(V, q);
|
|
@@ -10523,7 +10523,7 @@ const SI = {
|
|
|
10523
10523
|
autoFocus: O
|
|
10524
10524
|
} = e, N = yI(e, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace", "autoFocus"]), P = l || "default", {
|
|
10525
10525
|
button: _
|
|
10526
|
-
} = K.useContext(ot), T = d || (_ == null ? void 0 : _.shape) || "default", [R, M] =
|
|
10526
|
+
} = K.useContext(ot), T = d || (_ == null ? void 0 : _.shape) || "default", [R, M] = Jt(() => {
|
|
10527
10527
|
if (a && s)
|
|
10528
10528
|
return [a, s];
|
|
10529
10529
|
if (l || c) {
|
|
@@ -10539,7 +10539,7 @@ const SI = {
|
|
|
10539
10539
|
style: U,
|
|
10540
10540
|
classNames: j,
|
|
10541
10541
|
styles: B
|
|
10542
|
-
} = cr("button"), k = (n = w ?? q) !== null && n !== void 0 ? n : !0, X = L("btn", i), [ie, W, Q] = dI(X), re = qt(sr), J = g ?? re, ee = qt(i1), se =
|
|
10542
|
+
} = cr("button"), k = (n = w ?? q) !== null && n !== void 0 ? n : !0, X = L("btn", i), [ie, W, Q] = dI(X), re = qt(sr), J = g ?? re, ee = qt(i1), se = Jt(() => CI(o), [o]), [Y, ae] = Xe(se.loading), [oe, ue] = Xe(!1), le = Ee(null), de = uo(t, le), he = jw.count(m) === 1 && !b && !Ks(M), fe = Ee(!0);
|
|
10543
10543
|
K.useEffect(() => (fe.current = !1, () => {
|
|
10544
10544
|
fe.current = !0;
|
|
10545
10545
|
}), []), Lt(() => {
|
|
@@ -10955,7 +10955,7 @@ var DI = {
|
|
|
10955
10955
|
}, /* @__PURE__ */ K.createElement("div", {
|
|
10956
10956
|
className: "".concat(n, "-title"),
|
|
10957
10957
|
id: a
|
|
10958
|
-
}, i)) : null, D =
|
|
10958
|
+
}, i)) : null, D = Jt(function() {
|
|
10959
10959
|
return Ve(l) === "object" && l !== null ? l : l ? {
|
|
10960
10960
|
closeIcon: c ?? /* @__PURE__ */ K.createElement("span", {
|
|
10961
10961
|
className: "".concat(n, "-close-x")
|
|
@@ -13191,7 +13191,7 @@ function _1() {
|
|
|
13191
13191
|
t[n] = arguments[n];
|
|
13192
13192
|
var r = t[0], o = t[1], i = o === void 0 ? {} : o, a = zI(i) ? {
|
|
13193
13193
|
form: i
|
|
13194
|
-
} : i, s = a.form, l = Xe(), c = Z(l, 2), d = c[0], f = c[1], p =
|
|
13194
|
+
} : i, s = a.form, l = Xe(), c = Z(l, 2), d = c[0], f = c[1], p = Jt(function() {
|
|
13195
13195
|
return Hv(d);
|
|
13196
13196
|
}, [d]), g = Ee(p);
|
|
13197
13197
|
g.current = p;
|
|
@@ -15151,10 +15151,10 @@ function j5(e) {
|
|
|
15151
15151
|
function L5(e, t) {
|
|
15152
15152
|
var n = e.prefixCls, r = n === void 0 ? "rc-overflow" : n, o = e.data, i = o === void 0 ? [] : o, a = e.renderItem, s = e.renderRawItem, l = e.itemKey, c = e.itemWidth, d = c === void 0 ? 10 : c, f = e.ssr, p = e.style, g = e.className, h = e.maxCount, v = e.renderRest, m = e.renderRawRest, b = e.prefix, y = e.suffix, S = e.component, C = S === void 0 ? "div" : S, x = e.itemComponent, E = e.onVisibleChange, $ = ut(e, A5), w = f === "full", O = P5(), N = Ci(O, null), P = Z(N, 2), _ = P[0], T = P[1], R = _ || 0, M = Ci(O, /* @__PURE__ */ new Map()), D = Z(M, 2), A = D[0], L = D[1], V = Ci(O, 0), q = Z(V, 2), H = q[0], U = q[1], j = Ci(O, 0), B = Z(j, 2), k = B[0], X = B[1], ie = Ci(O, 0), W = Z(ie, 2), Q = W[0], re = W[1], J = Ci(O, 0), ee = Z(J, 2), se = ee[0], Y = ee[1], ae = Xe(null), oe = Z(ae, 2), ue = oe[0], le = oe[1], de = Xe(null), he = Z(de, 2), fe = he[0], xe = he[1], Ce = u.useMemo(function() {
|
|
15153
15153
|
return fe === null && w ? Number.MAX_SAFE_INTEGER : fe || 0;
|
|
15154
|
-
}, [fe, _]), ce = Xe(!1), we = Z(ce, 2), Ue = we[0], Je = we[1], He = "".concat(r, "-item"), Le = Math.max(H, k), Ke = h === oC, Pe = i.length && Ke, Ze = h === iC, Ae = Pe || typeof h == "number" && i.length > h, Ne =
|
|
15154
|
+
}, [fe, _]), ce = Xe(!1), we = Z(ce, 2), Ue = we[0], Je = we[1], He = "".concat(r, "-item"), Le = Math.max(H, k), Ke = h === oC, Pe = i.length && Ke, Ze = h === iC, Ae = Pe || typeof h == "number" && i.length > h, Ne = Jt(function() {
|
|
15155
15155
|
var pe = i;
|
|
15156
15156
|
return Pe ? _ === null && w ? pe = i : pe = i.slice(0, Math.min(i.length, R / d)) : typeof h == "number" && (pe = i.slice(0, h)), pe;
|
|
15157
|
-
}, [i, d, _, h, Pe]), We =
|
|
15157
|
+
}, [i, d, _, h, Pe]), We = Jt(function() {
|
|
15158
15158
|
return Pe ? i.slice(Ce + 1) : i.slice(Ne.length);
|
|
15159
15159
|
}, [i, Ne, Pe, Ce]), nt = Oe(function(pe, me) {
|
|
15160
15160
|
var Se;
|
|
@@ -15802,7 +15802,7 @@ function tR(e, t, n, r, o, i, a) {
|
|
|
15802
15802
|
var yo = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : we, ga = U.x + pa, Ms = U.y + Jr, lu = ga + Y, cu = Ms + se, uu = Math.max(ga, yo.left), ze = Math.max(Ms, yo.top), lt = Math.min(lu, yo.right), en = Math.min(cu, yo.bottom);
|
|
15803
15803
|
return Math.max(0, (lt - uu) * (en - ze));
|
|
15804
15804
|
}, gi = function() {
|
|
15805
|
-
Gt = U.y + at, dn = Gt + se, _n = U.x + Ge,
|
|
15805
|
+
Gt = U.y + at, dn = Gt + se, _n = U.x + Ge, Yt = _n + Y;
|
|
15806
15806
|
};
|
|
15807
15807
|
var y, S, C, x, E = t, $ = E.ownerDocument, w = bs(E), O = w.getComputedStyle(E), N = O.position, P = E.style.left, _ = E.style.top, T = E.style.right, R = E.style.bottom, M = E.style.overflow, D = F(F({}, o[r]), i), A = $.createElement("div");
|
|
15808
15808
|
(y = E.parentElement) === null || y === void 0 || y.appendChild(A), A.style.left = "".concat(E.offsetLeft, "px"), A.style.top = "".concat(E.offsetTop, "px"), A.style.position = N, A.style.height = "".concat(E.offsetHeight, "px"), A.style.width = "".concat(E.offsetWidth, "px"), E.style.left = "0", E.style.top = "0", E.style.right = "auto", E.style.bottom = "auto", E.style.overflow = "hidden";
|
|
@@ -15846,11 +15846,11 @@ function tR(e, t, n, r, o, i, a) {
|
|
|
15846
15846
|
return;
|
|
15847
15847
|
var Ke = D.offset, Pe = D.targetOffset, Ze = rh(U, Ke), Ae = Z(Ze, 2), Ne = Ae[0], We = Ae[1], nt = rh(L, Pe), rt = Z(nt, 2), Nt = rt[0], it = rt[1];
|
|
15848
15848
|
L.x -= Nt, L.y -= it;
|
|
15849
|
-
var Dt = D.points || [], Ht = Z(Dt, 2), qe = Ht[0], _e = Ht[1], Qe = oh(_e), Re = oh(qe), et = Si(L, Qe), Ct = Si(U, Re), St = F({}, D), Ge = et.x - Ct.x + Ne, at = et.y - Ct.y + We, mt = fr(Ge, at), Ie = fr(Ge, at, ce), pe = Si(L, ["t", "l"]), me = Si(U, ["t", "l"]), Se = Si(L, ["b", "r"]), Fe = Si(U, ["b", "r"]), De = D.overflow || {}, vt = De.adjustX, It = De.adjustY, At = De.shiftX, yt = De.shiftY,
|
|
15849
|
+
var Dt = D.points || [], Ht = Z(Dt, 2), qe = Ht[0], _e = Ht[1], Qe = oh(_e), Re = oh(qe), et = Si(L, Qe), Ct = Si(U, Re), St = F({}, D), Ge = et.x - Ct.x + Ne, at = et.y - Ct.y + We, mt = fr(Ge, at), Ie = fr(Ge, at, ce), pe = Si(L, ["t", "l"]), me = Si(U, ["t", "l"]), Se = Si(L, ["b", "r"]), Fe = Si(U, ["b", "r"]), De = D.overflow || {}, vt = De.adjustX, It = De.adjustY, At = De.shiftX, yt = De.shiftY, Xt = function(Jr) {
|
|
15850
15850
|
return typeof Jr == "boolean" ? Jr : Jr >= 0;
|
|
15851
|
-
}, Gt, dn, _n,
|
|
15851
|
+
}, Gt, dn, _n, Yt;
|
|
15852
15852
|
gi();
|
|
15853
|
-
var fn =
|
|
15853
|
+
var fn = Xt(It), $e = Re[0] === Qe[0];
|
|
15854
15854
|
if (fn && Re[0] === "t" && (dn > Ue.bottom || g.current.bt)) {
|
|
15855
15855
|
var Te = at;
|
|
15856
15856
|
$e ? Te -= se - ae : Te = pe.y - Fe.y - We;
|
|
@@ -15867,8 +15867,8 @@ function tR(e, t, n, r, o, i, a) {
|
|
|
15867
15867
|
Kn > mt || Kn === mt && (!xe || // Choose recommend one
|
|
15868
15868
|
hn >= Ie) ? (g.current.tb = !0, at = Vt, We = -We, St.points = [Co(Re, 0), Co(Qe, 0)]) : g.current.tb = !1;
|
|
15869
15869
|
}
|
|
15870
|
-
var Xn =
|
|
15871
|
-
if (Xn && Re[1] === "l" && (
|
|
15870
|
+
var Xn = Xt(vt), Vr = Re[1] === Qe[1];
|
|
15871
|
+
if (Xn && Re[1] === "l" && (Yt > Ue.right || g.current.rl)) {
|
|
15872
15872
|
var Vn = Ge;
|
|
15873
15873
|
Vr ? Vn -= Y - oe : Vn = pe.x - Fe.x - Ne;
|
|
15874
15874
|
var Hn = fr(Vn, at), Rr = fr(Vn, at, ce);
|
|
@@ -15886,7 +15886,7 @@ function tR(e, t, n, r, o, i, a) {
|
|
|
15886
15886
|
}
|
|
15887
15887
|
gi();
|
|
15888
15888
|
var qn = At === !0 ? 0 : At;
|
|
15889
|
-
typeof qn == "number" && (_n < ce.left && (Ge -= _n - ce.left - Ne, L.x + oe < ce.left + qn && (Ge += L.x - ce.left + oe - qn)),
|
|
15889
|
+
typeof qn == "number" && (_n < ce.left && (Ge -= _n - ce.left - Ne, L.x + oe < ce.left + qn && (Ge += L.x - ce.left + oe - qn)), Yt > ce.right && (Ge -= Yt - ce.right - Ne, L.x > ce.right - qn && (Ge += L.x - ce.right + qn)));
|
|
15890
15890
|
var er = yt === !0 ? 0 : yt;
|
|
15891
15891
|
typeof er == "number" && (Gt < ce.top && (at -= Gt - ce.top - We, L.y + ae < ce.top + er && (at += L.y - ce.top + ae - er)), dn > ce.bottom && (at -= dn - ce.bottom - We, L.y > ce.bottom - er && (at += L.y - ce.bottom + er)));
|
|
15892
15892
|
var ur = U.x + Ge, dr = ur + Y, Hr = U.y + at, Yr = Hr + se, pt = L.x, Me = pt + oe, st = L.y, ft = st + ae, wt = Math.max(ur, pt), Rt = Math.min(dr, Me), $n = (wt + Rt) / 2, On = $n - ur, Yn = Math.max(Hr, st), tr = Math.min(Yr, ft), Jn = (Yn + tr) / 2, Zn = Jn - Hr;
|
|
@@ -16023,7 +16023,7 @@ function iR() {
|
|
|
16023
16023
|
Lt(function(ze) {
|
|
16024
16024
|
(!ze || et) && De(!0);
|
|
16025
16025
|
}, [et]);
|
|
16026
|
-
var vt = u.useState(null), It = Z(vt, 2), At = It[0], yt = It[1],
|
|
16026
|
+
var vt = u.useState(null), It = Z(vt, 2), At = It[0], yt = It[1], Xt = u.useState(null), Gt = Z(Xt, 2), dn = Gt[0], _n = Gt[1], Yt = function(lt) {
|
|
16027
16027
|
_n([lt.clientX, lt.clientY]);
|
|
16028
16028
|
}, fn = tR(et, Ue, U && dn !== null ? dn : Ze, R, D, A, B), $e = Z(fn, 11), Te = $e[0], dt = $e[1], xt = $e[2], Vt = $e[3], Kn = $e[4], hn = $e[5], Xn = $e[6], Vr = $e[7], Vn = $e[8], Hn = $e[9], Rr = $e[10], Wn = Z5(le, l, c, d), Xr = Z(Wn, 2), Pr = Xr[0], qn = Xr[1], er = Pr.has("click"), ur = qn.has("click") || qn.has("contextMenu"), dr = Qt(function() {
|
|
16029
16029
|
Fe || Rr();
|
|
@@ -16076,16 +16076,16 @@ function iR() {
|
|
|
16076
16076
|
}
|
|
16077
16077
|
(er || ur) && (Nt.onClick = function(ze) {
|
|
16078
16078
|
var lt;
|
|
16079
|
-
St.current && ur ? pe(!1) : !St.current && er && (
|
|
16079
|
+
St.current && ur ? pe(!1) : !St.current && er && (Yt(ze), pe(!0));
|
|
16080
16080
|
for (var en = arguments.length, yn = new Array(en > 1 ? en - 1 : 0), an = 1; an < en; an++)
|
|
16081
16081
|
yn[an - 1] = arguments[an];
|
|
16082
16082
|
(lt = rt.onClick) === null || lt === void 0 || lt.call.apply(lt, [rt, ze].concat(yn));
|
|
16083
16083
|
});
|
|
16084
16084
|
var zo = rR(et, ur, Ze, Ue, C, E, it, pe), su = Pr.has("hover"), fr = qn.has("hover"), gi, pa;
|
|
16085
16085
|
su && (bn("onMouseEnter", !0, v, function(ze) {
|
|
16086
|
-
|
|
16086
|
+
Yt(ze);
|
|
16087
16087
|
}), bn("onPointerEnter", !0, v, function(ze) {
|
|
16088
|
-
|
|
16088
|
+
Yt(ze);
|
|
16089
16089
|
}), gi = function(lt) {
|
|
16090
16090
|
(et || Fe) && Ue !== null && Ue !== void 0 && Ue.contains(lt.target) && pe(!0, v);
|
|
16091
16091
|
}, U && (Nt.onMouseMove = function(ze) {
|
|
@@ -16095,7 +16095,7 @@ function iR() {
|
|
|
16095
16095
|
pe(!1, b);
|
|
16096
16096
|
}), Pr.has("focus") && bn("onFocus", !0, y), qn.has("focus") && bn("onBlur", !1, S), Pr.has("contextMenu") && (Nt.onContextMenu = function(ze) {
|
|
16097
16097
|
var lt;
|
|
16098
|
-
St.current && qn.has("contextMenu") ? pe(!1) : (
|
|
16098
|
+
St.current && qn.has("contextMenu") ? pe(!1) : (Yt(ze), pe(!0)), ze.preventDefault();
|
|
16099
16099
|
for (var en = arguments.length, yn = new Array(en > 1 ? en - 1 : 0), an = 1; an < en; an++)
|
|
16100
16100
|
yn[an - 1] = arguments[an];
|
|
16101
16101
|
(lt = rt.onContextMenu) === null || lt === void 0 || lt.call.apply(lt, [rt, ze].concat(yn));
|
|
@@ -16399,9 +16399,9 @@ var fR = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
16399
16399
|
}, [Ge]), u.useEffect(function() {
|
|
16400
16400
|
Ct && b && St(!1), b && !Pe.current && We(!1);
|
|
16401
16401
|
}, [b]);
|
|
16402
|
-
var It = nC(), At = Z(It, 2), yt = At[0],
|
|
16402
|
+
var It = nC(), At = Z(It, 2), yt = At[0], Xt = At[1], Gt = u.useRef(!1), dn = function(Me) {
|
|
16403
16403
|
var st = yt(), ft = Me.key, wt = ft === "Enter";
|
|
16404
|
-
if (wt && (m !== "combobox" && Me.preventDefault(), Ge || Ie(!0)),
|
|
16404
|
+
if (wt && (m !== "combobox" && Me.preventDefault(), Ge || Ie(!0)), Xt(!!rt), ft === "Backspace" && !st && de && !rt && d.length) {
|
|
16405
16405
|
for (var Rt = ve(d), $n = null, On = Rt.length - 1; On >= 0; On -= 1) {
|
|
16406
16406
|
var Yn = Rt[On];
|
|
16407
16407
|
if (!Yn.disabled) {
|
|
@@ -16429,7 +16429,7 @@ var fR = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
16429
16429
|
(Rt = Ke.current) === null || Rt === void 0 || Rt.onKeyUp.apply(Rt, [Me].concat(ft));
|
|
16430
16430
|
}
|
|
16431
16431
|
Me.key === "Enter" && (Gt.current = !1), ae == null || ae.apply(void 0, [Me].concat(ft));
|
|
16432
|
-
},
|
|
16432
|
+
}, Yt = function(Me) {
|
|
16433
16433
|
var st = d.filter(function(ft) {
|
|
16434
16434
|
return ft !== Me;
|
|
16435
16435
|
});
|
|
@@ -16562,7 +16562,7 @@ var fR = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
|
|
|
16562
16562
|
searchValue: rt,
|
|
16563
16563
|
onSearch: De,
|
|
16564
16564
|
onSearchSubmit: vt,
|
|
16565
|
-
onRemove:
|
|
16565
|
+
onRemove: Yt,
|
|
16566
16566
|
tokenWithEnter: pe,
|
|
16567
16567
|
onInputBlur: fn
|
|
16568
16568
|
}))), Yr;
|
|
@@ -17259,7 +17259,7 @@ function RR(e, t) {
|
|
|
17259
17259
|
var yt = function() {
|
|
17260
17260
|
var Te, dt;
|
|
17261
17261
|
(Te = Nt.current) === null || Te === void 0 || Te.delayHidden(), (dt = it.current) === null || dt === void 0 || dt.delayHidden();
|
|
17262
|
-
},
|
|
17262
|
+
}, Xt = ER(B, j, D, a, P, function() {
|
|
17263
17263
|
return M(!0);
|
|
17264
17264
|
}, xe, yt);
|
|
17265
17265
|
u.useImperativeHandle(t, function() {
|
|
@@ -17270,7 +17270,7 @@ function RR(e, t) {
|
|
|
17270
17270
|
function dt(xt) {
|
|
17271
17271
|
return xt && Ve(xt) === "object" && ("left" in xt || "top" in xt);
|
|
17272
17272
|
}
|
|
17273
|
-
dt(Te) ? (Te.left !== void 0 && Y(Se(Te.left)),
|
|
17273
|
+
dt(Te) ? (Te.left !== void 0 && Y(Se(Te.left)), Xt(Te.top)) : Xt(Te);
|
|
17274
17274
|
}
|
|
17275
17275
|
};
|
|
17276
17276
|
}), Lt(function() {
|
|
@@ -17287,8 +17287,8 @@ function RR(e, t) {
|
|
|
17287
17287
|
offsetY: Ze,
|
|
17288
17288
|
rtl: H,
|
|
17289
17289
|
getSize: Gt
|
|
17290
|
-
}), _n = gR(j, Ke, Pe, v, se, R, f, fe),
|
|
17291
|
-
i && (
|
|
17290
|
+
}), _n = gR(j, Ke, Pe, v, se, R, f, fe), Yt = null;
|
|
17291
|
+
i && (Yt = F(z({}, l ? "height" : "maxHeight", i), IR), L && (Yt.overflowY = "hidden", v && (Yt.overflowX = "hidden"), ue && (Yt.pointerEvents = "none")));
|
|
17292
17292
|
var fn = {};
|
|
17293
17293
|
return H && (fn.dir = "rtl"), /* @__PURE__ */ u.createElement("div", ge({
|
|
17294
17294
|
ref: X,
|
|
@@ -17300,7 +17300,7 @@ function RR(e, t) {
|
|
|
17300
17300
|
onResize: rt
|
|
17301
17301
|
}, /* @__PURE__ */ u.createElement(b, {
|
|
17302
17302
|
className: "".concat(r, "-holder"),
|
|
17303
|
-
style:
|
|
17303
|
+
style: Yt,
|
|
17304
17304
|
ref: B,
|
|
17305
17305
|
onScroll: me,
|
|
17306
17306
|
onMouseEnter: yt
|
|
@@ -17749,8 +17749,8 @@ var bC = /* @__PURE__ */ u.forwardRef(function(e, t) {
|
|
|
17749
17749
|
}
|
|
17750
17750
|
var yt = se.get(Se);
|
|
17751
17751
|
if (yt) {
|
|
17752
|
-
var
|
|
17753
|
-
if (Fe === void 0 && (Fe = yt == null ? void 0 : yt[C || ie.label]), De === void 0 && (De = (
|
|
17752
|
+
var Xt;
|
|
17753
|
+
if (Fe === void 0 && (Fe = yt == null ? void 0 : yt[C || ie.label]), De === void 0 && (De = (Xt = yt == null ? void 0 : yt.key) !== null && Xt !== void 0 ? Xt : Se), vt = yt == null ? void 0 : yt.disabled, It = yt == null ? void 0 : yt.title, process.env.NODE_ENV !== "production" && !C) {
|
|
17754
17754
|
var Gt = yt == null ? void 0 : yt[ie.label];
|
|
17755
17755
|
Gt !== void 0 && !/* @__PURE__ */ u.isValidElement(Gt) && !/* @__PURE__ */ u.isValidElement(Fe) && Gt !== Fe && ct(!1, "`label` of `value` is not same as `label` in Select options.");
|
|
17756
17756
|
}
|
|
@@ -17854,18 +17854,18 @@ var bC = /* @__PURE__ */ u.forwardRef(function(e, t) {
|
|
|
17854
17854
|
_e(pe), a && r === "combobox" && Ie !== null && Fe === "keyboard" && it(String(Ie));
|
|
17855
17855
|
}, [a, r]), et = function(pe, me, Se) {
|
|
17856
17856
|
var Fe = function() {
|
|
17857
|
-
var
|
|
17857
|
+
var Yt, fn = we(pe);
|
|
17858
17858
|
return [V ? {
|
|
17859
17859
|
label: fn == null ? void 0 : fn[ie.label],
|
|
17860
17860
|
value: pe,
|
|
17861
|
-
key: (
|
|
17861
|
+
key: (Yt = fn == null ? void 0 : fn.key) !== null && Yt !== void 0 ? Yt : pe
|
|
17862
17862
|
} : pe, kf(fn)];
|
|
17863
17863
|
};
|
|
17864
17864
|
if (me && g) {
|
|
17865
17865
|
var De = Fe(), vt = Z(De, 2), It = vt[0], At = vt[1];
|
|
17866
17866
|
g(It, At);
|
|
17867
17867
|
} else if (!me && h && Se !== "clear") {
|
|
17868
|
-
var yt = Fe(),
|
|
17868
|
+
var yt = Fe(), Xt = Z(yt, 2), Gt = Xt[0], dn = Xt[1];
|
|
17869
17869
|
h(Gt, dn);
|
|
17870
17870
|
}
|
|
17871
17871
|
}, Ct = ph(function(Ie, pe) {
|
|
@@ -18017,7 +18017,7 @@ const CC = () => {
|
|
|
18017
18017
|
borderColor: a,
|
|
18018
18018
|
shadowColor: s,
|
|
18019
18019
|
contentColor: l
|
|
18020
|
-
} =
|
|
18020
|
+
} = Jt(() => ({
|
|
18021
18021
|
borderColor: new _t(n).onBackground(i).toHexString(),
|
|
18022
18022
|
shadowColor: new _t(r).onBackground(i).toHexString(),
|
|
18023
18023
|
contentColor: new _t(o).onBackground(i).toHexString()
|
|
@@ -20657,7 +20657,7 @@ function i8(e) {
|
|
|
20657
20657
|
}, [t]);
|
|
20658
20658
|
}
|
|
20659
20659
|
var a8 = /* @__PURE__ */ Pn(function(e, t) {
|
|
20660
|
-
var n = e.overlay, r = e.arrow, o = e.prefixCls, i =
|
|
20660
|
+
var n = e.overlay, r = e.arrow, o = e.prefixCls, i = Jt(function() {
|
|
20661
20661
|
var s;
|
|
20662
20662
|
return typeof n == "function" ? s = n() : s = n, s;
|
|
20663
20663
|
}, [n]), a = Bn(t, Do(i));
|
|
@@ -21546,16 +21546,16 @@ var q8 = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
21546
21546
|
_e.current = !1;
|
|
21547
21547
|
};
|
|
21548
21548
|
}, []);
|
|
21549
|
-
var
|
|
21549
|
+
var Xt = x8(), Gt = Xt.registerPath, dn = Xt.unregisterPath, _n = Xt.refreshOverflowKeys, Yt = Xt.isSubPathKey, fn = Xt.getKeyPath, $e = Xt.getKeys, Te = Xt.getSubPathKeys, dt = u.useMemo(function() {
|
|
21550
21550
|
return {
|
|
21551
21551
|
registerPath: Gt,
|
|
21552
21552
|
unregisterPath: dn
|
|
21553
21553
|
};
|
|
21554
21554
|
}, [Gt, dn]), xt = u.useMemo(function() {
|
|
21555
21555
|
return {
|
|
21556
|
-
isSubPathKey:
|
|
21556
|
+
isSubPathKey: Yt
|
|
21557
21557
|
};
|
|
21558
|
-
}, [
|
|
21558
|
+
}, [Yt]);
|
|
21559
21559
|
u.useEffect(function() {
|
|
21560
21560
|
_n(yt ? Fo : we.slice(It + 1).map(function(Me) {
|
|
21561
21561
|
return Me.key;
|
|
@@ -30005,7 +30005,7 @@ const WM = (e) => {
|
|
|
30005
30005
|
[`${i}-sm`]: e.size === "small",
|
|
30006
30006
|
[`${i}-compact`]: e.compact,
|
|
30007
30007
|
[`${i}-rtl`]: n === "rtl"
|
|
30008
|
-
}, l, o), f = qt(Rn), p =
|
|
30008
|
+
}, l, o), f = qt(Rn), p = Jt(() => Object.assign(Object.assign({}, f), {
|
|
30009
30009
|
isFormItemInput: !1
|
|
30010
30010
|
}), [f]);
|
|
30011
30011
|
return process.env.NODE_ENV !== "production" && zt("Input.Group").deprecated(!1, "Input.Group", "Space.Compact"), s(/* @__PURE__ */ u.createElement("span", {
|
|
@@ -32939,7 +32939,7 @@ var x9 = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "fa
|
|
|
32939
32939
|
}, jx = /* @__PURE__ */ u.forwardRef(w9);
|
|
32940
32940
|
process.env.NODE_ENV !== "production" && (jx.displayName = "SaveOutlined");
|
|
32941
32941
|
const Lx = Ye((e) => {
|
|
32942
|
-
const { onOpenChange: t, onAddExpression: n, onAddGroup: r, children: o } = e, i =
|
|
32942
|
+
const { onOpenChange: t, onAddExpression: n, onAddGroup: r, children: o } = e, i = Jt(() => [
|
|
32943
32943
|
{
|
|
32944
32944
|
label: "添加表达式",
|
|
32945
32945
|
key: Qr.Expression,
|
|
@@ -37073,10 +37073,10 @@ async function sz(e) {
|
|
|
37073
37073
|
});
|
|
37074
37074
|
}
|
|
37075
37075
|
const lz = Ye((e) => {
|
|
37076
|
-
const { mode: t, children: n, themeToken: r, materials: o, materialUis: i, processKey: a } = e, [, s] = kn(), l =
|
|
37076
|
+
const { mode: t, children: n, themeToken: r, materials: o, materialUis: i, processKey: a } = e, [, s] = kn(), l = Jt(() => ({
|
|
37077
37077
|
token: r || s,
|
|
37078
37078
|
mode: t
|
|
37079
|
-
}), [t, r, s]), c =
|
|
37079
|
+
}), [t, r, s]), c = Jt(() => new XE(), []);
|
|
37080
37080
|
return tt(() => {
|
|
37081
37081
|
const d = localStorage.getItem("startNode");
|
|
37082
37082
|
c && d && c.setStartNode(JSON.parse(d));
|
|
@@ -37580,10 +37580,10 @@ const zz = Ye((e) => {
|
|
|
37580
37580
|
mode: l,
|
|
37581
37581
|
className: c,
|
|
37582
37582
|
style: d
|
|
37583
|
-
} = e, [, f] = kn(), p =
|
|
37583
|
+
} = e, [, f] = kn(), p = Jt(() => ({
|
|
37584
37584
|
token: s || f,
|
|
37585
37585
|
mode: l
|
|
37586
|
-
}), [l, s, f]), g =
|
|
37586
|
+
}), [l, s, f]), g = Jt(() => uz(n, r, o, i), [n, r, o, i]);
|
|
37587
37587
|
return /* @__PURE__ */ I(Px, { theme: p, children: /* @__PURE__ */ I(Sw.Provider, { value: g, children: /* @__PURE__ */ I(
|
|
37588
37588
|
zz,
|
|
37589
37589
|
{
|
|
@@ -37999,12 +37999,12 @@ function mm({ id: e, value: t, onChange: n }) {
|
|
|
37999
37999
|
const m = t != null && t.ids ? t.ids.split(",") : [];
|
|
38000
38000
|
c(m);
|
|
38001
38001
|
}, [t]);
|
|
38002
|
-
const d =
|
|
38002
|
+
const d = Jt(() => {
|
|
38003
38003
|
const m = a.trim().toLowerCase();
|
|
38004
38004
|
return m ? o.filter(
|
|
38005
38005
|
(b) => b.label.toLowerCase().includes(m) || b.value.toLowerCase().includes(m)
|
|
38006
38006
|
) : o;
|
|
38007
|
-
}, [o, a]), f =
|
|
38007
|
+
}, [o, a]), f = Jt(() => sF(d, l, aF), [d, l]), p = (m) => {
|
|
38008
38008
|
const b = o.filter((y) => m == null ? void 0 : m.includes(y.value));
|
|
38009
38009
|
if (b && b.length) {
|
|
38010
38010
|
const y = b.map((C) => C.value), S = b.map((C) => C.label);
|
|
@@ -38013,7 +38013,7 @@ function mm({ id: e, value: t, onChange: n }) {
|
|
|
38013
38013
|
n == null || n(void 0), c([]);
|
|
38014
38014
|
}, g = Oe((m) => {
|
|
38015
38015
|
s(m);
|
|
38016
|
-
}, []), h =
|
|
38016
|
+
}, []), h = Jt(
|
|
38017
38017
|
() => iF((m) => g(m), 300),
|
|
38018
38018
|
[g]
|
|
38019
38019
|
);
|
|
@@ -38048,7 +38048,7 @@ function Zp({
|
|
|
38048
38048
|
form: e,
|
|
38049
38049
|
applyType: t = "approver"
|
|
38050
38050
|
}) {
|
|
38051
|
-
const [n, r] = Xe(e.getFieldValue("groupType") || "userId"), o =
|
|
38051
|
+
const [n, r] = Xe(e.getFieldValue("groupType") || "userId"), o = Jt(() => t === "message" ? "通知人员" : "成员选择", [t]), i = Jt(() => t === "message" ? "通知角色" : "角色选择", [t]), a = Oe(() => {
|
|
38052
38052
|
e.setFieldsValue({
|
|
38053
38053
|
assignee: void 0,
|
|
38054
38054
|
role: void 0
|
|
@@ -38486,7 +38486,7 @@ const bF = [
|
|
|
38486
38486
|
value: ""
|
|
38487
38487
|
};
|
|
38488
38488
|
function $F(e) {
|
|
38489
|
-
const { item: t, fields: n, operatorOptionsByType: r, valueControls: o, onChange: i, onRemove: a } = e, s =
|
|
38489
|
+
const { item: t, fields: n, operatorOptionsByType: r, valueControls: o, onChange: i, onRemove: a } = e, s = Jt(() => n.map((v) => ({ label: v.label, value: v.value })), [n]), l = Jt(() => r[t.fieldType] || [], [r, t.fieldType]), c = t.operator !== "empty" && t.operator !== "not_empty", d = o[t.fieldType], f = Oe((v) => i({ ...t, relation: v }), [t, i]), p = Oe((v) => {
|
|
38490
38490
|
const m = n.find((x) => x.value === v), b = m ? m.type : t.fieldType, y = r[b].map((x) => x.value), S = y.includes(t.operator) ? t.operator : y[0];
|
|
38491
38491
|
i({ ...t, field: v, fieldType: b, operator: S, value: S === "empty" || S === "not_empty" ? void 0 : b === "number" ? 0 : "" });
|
|
38492
38492
|
}, [n, t, i, r]), g = Oe((v) => {
|
|
@@ -38582,7 +38582,7 @@ function PF(e) {
|
|
|
38582
38582
|
}), i ? `\${${i}}` : "";
|
|
38583
38583
|
}
|
|
38584
38584
|
function _F(e) {
|
|
38585
|
-
const [t, n] = Xe([]), [r, o] = Xe([]), i = "value" in e, a =
|
|
38585
|
+
const [t, n] = Xe([]), [r, o] = Xe([]), i = "value" in e, a = Jt(() => i ? e.value || [] : t, [i, e.value, t]), s = Oe((d) => {
|
|
38586
38586
|
i || n(d), e.onChange && e.onChange(d);
|
|
38587
38587
|
}, [i, e]), l = Oe((d) => s(d), [s]), c = Oe(async (d) => {
|
|
38588
38588
|
var f, p;
|
|
@@ -38941,7 +38941,7 @@ const Pw = {
|
|
|
38941
38941
|
}};
|
|
38942
38942
|
height: 0;
|
|
38943
38943
|
`, GF = Ye((e) => {
|
|
38944
|
-
const { onSave: t } = au(), { className: n, processKey: r, processName: o, ...i } = e, a = qc(), s = iA(), l = sA(), [c, d] = Xe(!1), f =
|
|
38944
|
+
const { onSave: t } = au(), { className: n, processKey: r, processName: o, ...i } = e, a = qc(), s = iA(), l = sA(), [c, d] = Xe(!1), f = Jt(() => [
|
|
38945
38945
|
{
|
|
38946
38946
|
label: "导入",
|
|
38947
38947
|
key: "import",
|
|
@@ -38992,21 +38992,18 @@ const Pw = {
|
|
|
38992
38992
|
/* @__PURE__ */ I(uj, {})
|
|
38993
38993
|
] });
|
|
38994
38994
|
}), KF = Ye((e) => {
|
|
38995
|
-
const { materialUis: t, processKey: n, processName: r
|
|
38996
|
-
|
|
38997
|
-
|
|
38998
|
-
|
|
38999
|
-
|
|
39000
|
-
|
|
39001
|
-
|
|
39002
|
-
[o.onSave, o.onPublish, o.onSelectMembers, o.onSelectRoles]
|
|
39003
|
-
);
|
|
39004
|
-
return /* @__PURE__ */ I(Ew.Provider, { value: i, children: /* @__PURE__ */ I(
|
|
38995
|
+
const { materialUis: t, processKey: n, processName: r } = e, o = Ee({
|
|
38996
|
+
onSave: e.onSave,
|
|
38997
|
+
onPublish: e.onPublish,
|
|
38998
|
+
onSelectMembers: e.onSelectMembers,
|
|
38999
|
+
onSelectRoles: e.onSelectRoles
|
|
39000
|
+
});
|
|
39001
|
+
return /* @__PURE__ */ I(Ew.Provider, { value: o.current, children: /* @__PURE__ */ I(
|
|
39005
39002
|
cz,
|
|
39006
39003
|
{
|
|
39007
39004
|
materialUis: t,
|
|
39008
39005
|
processKey: n,
|
|
39009
|
-
children: /* @__PURE__ */ I(GF, {
|
|
39006
|
+
children: /* @__PURE__ */ I(GF, { processKey: n, processName: r })
|
|
39010
39007
|
}
|
|
39011
39008
|
) });
|
|
39012
39009
|
});
|
|
@@ -39040,19 +39037,23 @@ const YF = Ye((e) => {
|
|
|
39040
39037
|
style: { height: "100%" }
|
|
39041
39038
|
}
|
|
39042
39039
|
) });
|
|
39043
|
-
}), xB = Ye((e) =>
|
|
39044
|
-
|
|
39045
|
-
|
|
39046
|
-
|
|
39047
|
-
|
|
39048
|
-
|
|
39049
|
-
|
|
39050
|
-
|
|
39051
|
-
{
|
|
39052
|
-
|
|
39053
|
-
|
|
39054
|
-
|
|
39055
|
-
|
|
39040
|
+
}), xB = Ye((e) => {
|
|
39041
|
+
hw({
|
|
39042
|
+
baseURL: e.baseUrl,
|
|
39043
|
+
headers: e.customHeaders
|
|
39044
|
+
}), bw({
|
|
39045
|
+
key: e.processKey,
|
|
39046
|
+
name: e.processName
|
|
39047
|
+
});
|
|
39048
|
+
const { customHeaders: t, baseUrl: n, ...r } = e;
|
|
39049
|
+
return /* @__PURE__ */ I(_w, { children: /* @__PURE__ */ I(
|
|
39050
|
+
KF,
|
|
39051
|
+
{
|
|
39052
|
+
materialUis: Pw,
|
|
39053
|
+
...r
|
|
39054
|
+
}
|
|
39055
|
+
) });
|
|
39056
|
+
}), wB = Ye((e) => (hw({
|
|
39056
39057
|
baseURL: e.baseUrl,
|
|
39057
39058
|
headers: e.customHeaders
|
|
39058
39059
|
}), bw({
|
|
@@ -1358,4 +1358,4 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
1358
1358
|
background-color: ${e=>{var t;return(t=e.theme.token)==null?void 0:t.colorBgBase}};
|
|
1359
1359
|
color: ${e=>{var t;return(t=e.theme.token)==null?void 0:t.colorText}};
|
|
1360
1360
|
height: 0;
|
|
1361
|
-
`,YF=C.memo(e=>{const{onSave:t}=Uc(),{className:n,processKey:r,processName:o,...i}=e,a=Ec(),s=vA(),l=bA(),[c,d]=C.useState(!1),f=C.useMemo(()=>[{label:"导入",key:"import",icon:O.jsx(AS,{}),onClick:l},{label:"导出",key:"export",icon:O.jsx(DS,{}),onClick:s}],[s,l]),m=async()=>{if(c)return!1;d(!0);const g={jsonBpmn:JSON.stringify(a),name:o,pic:"",processKey:r};if(t){await t(g),d(!1);return}try{const v=(await dz(JSON.stringify(g))).data;v.errorCode===0?(localStorage.setItem("startNode",JSON.stringify(a)),Lr.success("保存成功")):Lr.error(v.msg)}catch{Lr.error("保存失败")}finally{d(!1)}};return O.jsxs(XF,{className:K("workflow-editor",n||""),...i,children:[O.jsx(J9,{title:O.jsx(Or,{children:o}),actions:O.jsxs(Or,{children:[O.jsx(Nt,{type:"text",loading:c,icon:O.jsx(LS,{}),onClick:m,children:"保存"}),O.jsx(KF,{processKey:r,processName:o}),O.jsx(hp,{menu:{items:f},trigger:["click"],children:O.jsx(Nt,{icon:O.jsx(Ul,{})})})]})}),O.jsx(Sj,{})]})}),JF=C.memo(e=>{const{materialUis:t,processKey:n,processName:r
|
|
1361
|
+
`,YF=C.memo(e=>{const{onSave:t}=Uc(),{className:n,processKey:r,processName:o,...i}=e,a=Ec(),s=vA(),l=bA(),[c,d]=C.useState(!1),f=C.useMemo(()=>[{label:"导入",key:"import",icon:O.jsx(AS,{}),onClick:l},{label:"导出",key:"export",icon:O.jsx(DS,{}),onClick:s}],[s,l]),m=async()=>{if(c)return!1;d(!0);const g={jsonBpmn:JSON.stringify(a),name:o,pic:"",processKey:r};if(t){await t(g),d(!1);return}try{const v=(await dz(JSON.stringify(g))).data;v.errorCode===0?(localStorage.setItem("startNode",JSON.stringify(a)),Lr.success("保存成功")):Lr.error(v.msg)}catch{Lr.error("保存失败")}finally{d(!1)}};return O.jsxs(XF,{className:K("workflow-editor",n||""),...i,children:[O.jsx(J9,{title:O.jsx(Or,{children:o}),actions:O.jsxs(Or,{children:[O.jsx(Nt,{type:"text",loading:c,icon:O.jsx(LS,{}),onClick:m,children:"保存"}),O.jsx(KF,{processKey:r,processName:o}),O.jsx(hp,{menu:{items:f},trigger:["click"],children:O.jsx(Nt,{icon:O.jsx(Ul,{})})})]})}),O.jsx(Sj,{})]})}),JF=C.memo(e=>{const{materialUis:t,processKey:n,processName:r}=e,o=C.useRef({onSave:e.onSave,onPublish:e.onPublish,onSelectMembers:e.onSelectMembers,onSelectRoles:e.onSelectRoles});return O.jsx(Bx.Provider,{value:o.current,children:O.jsx(mz,{materialUis:t,processKey:n,children:O.jsx(YF,{processKey:n,processName:r})})})});function ZF(e){var n,r,o;const t={};return(n=e.completedNode)==null||n.forEach(i=>t[i]="completed"),(r=e.activityNode)==null||r.forEach(i=>t[i]="processing"),(o=e.pendingNode)==null||o.forEach(i=>t[i]="pending"),t}const QF=C.memo(e=>{const{materialUis:t}=e,[n,r]=C.useState({}),[o,i]=C.useState({});return C.useEffect(()=>{cz({processInstanceId:e.processKey}).then(a=>{const{jsonBpmn:s,taskNodeStatusInfo:l}=a.data.data;i(ZF(l)),r(s)})},[]),O.jsx("div",{style:{width:"100vw",height:"100vh",boxSizing:"border-box"},children:O.jsx(Wz,{workflowData:n,nodeStatuses:o,statusColors:{completed:"#52c41a",processing:"#faad14",...e.statusColors},materials:[],materialUis:t,defaultZoom:1,style:{height:"100%"}})})}),ek=C.memo(e=>{Tx({baseURL:e.baseUrl,headers:e.customHeaders}),Mx({key:e.processKey,name:e.processName});const{customHeaders:t,baseUrl:n,...r}=e;return O.jsx(pw,{children:O.jsx(JF,{materialUis:fw,...r})})}),tk=C.memo(e=>(Tx({baseURL:e.baseUrl,headers:e.customHeaders}),Mx({key:e.processKey}),O.jsx(pw,{children:O.jsx(QF,{materialUis:fw,statusColors:e.statusColors,...e})})));$n.WorkflowComponents=ek,$n.WorkflowViewerComponents=tk,Object.defineProperty($n,Symbol.toStringTag,{value:"Module"})}));
|