@digitalsee-ai/rcs 2.0.0-pre1 → 2.0.0-pre2
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as v } from "react/jsx-runtime";
|
|
2
|
-
import { D as T, V as L, e as V, i as P, t as l, f as R, d as O } from "./index-
|
|
2
|
+
import { D as T, V as L, e as V, i as P, t as l, f as R, d as O } from "./index-CxelobfJ.mjs";
|
|
3
3
|
import { useEventEmitter as B, useReactive as W, useSize as H } from "ahooks";
|
|
4
4
|
import { FormattedMessage as $ } from "react-intl";
|
|
5
5
|
import { CloseCircleFilled as A, CheckCircleFilled as K } from "@ant-design/icons";
|
|
@@ -279,4 +279,4 @@ function $e(e) {
|
|
|
279
279
|
export {
|
|
280
280
|
$e as default
|
|
281
281
|
};
|
|
282
|
-
//# sourceMappingURL=index-
|
|
282
|
+
//# sourceMappingURL=index-Apyd0VKQ.mjs.map
|
|
@@ -7147,9 +7147,15 @@ const ca = (t) => typeof t == "string" && t.includes("@"), Qb = (t, e) => {
|
|
|
7147
7147
|
return null;
|
|
7148
7148
|
};
|
|
7149
7149
|
function c_(t) {
|
|
7150
|
+
var e;
|
|
7150
7151
|
if (/@/.test(t.type ?? "")) {
|
|
7151
|
-
const
|
|
7152
|
-
return
|
|
7152
|
+
const n = a_(t.type);
|
|
7153
|
+
return n != null && n.auto_connections ? n.auto_connections : (e = t.data) != null && e.saveType && ["SelfLoopNode", "LoopNode"].includes(t.data.saveType) ? [
|
|
7154
|
+
{
|
|
7155
|
+
source: "loop",
|
|
7156
|
+
target: "input"
|
|
7157
|
+
}
|
|
7158
|
+
] : [];
|
|
7153
7159
|
}
|
|
7154
7160
|
return yv(t.type).autoConnect ?? [];
|
|
7155
7161
|
}
|
|
@@ -9063,7 +9069,7 @@ const Rc = {
|
|
|
9063
9069
|
] }, c))
|
|
9064
9070
|
}
|
|
9065
9071
|
) });
|
|
9066
|
-
}, j4 = ZR(() => import("./index-
|
|
9072
|
+
}, j4 = ZR(() => import("./index-Apyd0VKQ.mjs")), A_ = (t) => {
|
|
9067
9073
|
const e = Mr({
|
|
9068
9074
|
editorVisible: !1
|
|
9069
9075
|
}), n = () => {
|
|
@@ -36851,7 +36857,7 @@ function Aq(t) {
|
|
|
36851
36857
|
}
|
|
36852
36858
|
return t.minItems !== void 0 && e.push({
|
|
36853
36859
|
validator: async (r, o) => {
|
|
36854
|
-
if (!o || o.length < t.minItems)
|
|
36860
|
+
if (t.minItems && (!o || o.length < t.minItems))
|
|
36855
36861
|
throw new Error(`至少需要 ${t.minItems} 项`);
|
|
36856
36862
|
}
|
|
36857
36863
|
}), t.maxItems !== void 0 && e.push({
|
|
@@ -37214,7 +37220,7 @@ function jq(t) {
|
|
|
37214
37220
|
}
|
|
37215
37221
|
return t.minItems !== void 0 && e.push({
|
|
37216
37222
|
validator: async (r, o) => {
|
|
37217
|
-
if (!o || o.length < t.minItems)
|
|
37223
|
+
if (t.minItems && (!o || o.length < t.minItems))
|
|
37218
37224
|
throw new Error(`至少需要 ${t.minItems} 项`);
|
|
37219
37225
|
}
|
|
37220
37226
|
}), t.maxItems !== void 0 && e.push({
|
|
@@ -37541,7 +37547,7 @@ function dG(t) {
|
|
|
37541
37547
|
const r = t.minItems;
|
|
37542
37548
|
e.push({
|
|
37543
37549
|
validator: async (o, i) => {
|
|
37544
|
-
if (!i || i.length < r)
|
|
37550
|
+
if (r && (!i || i.length < r))
|
|
37545
37551
|
throw new Error(`至少需要 ${r} 项`);
|
|
37546
37552
|
}
|
|
37547
37553
|
});
|
|
@@ -44472,144 +44478,156 @@ const nJ = (t) => ({
|
|
|
44472
44478
|
/* @__PURE__ */ p(vS, { className: pt.sectionIcon, size: 32 }),
|
|
44473
44479
|
/* @__PURE__ */ p("span", { children: "全局变量" })
|
|
44474
44480
|
] }),
|
|
44475
|
-
/* @__PURE__ */ p(
|
|
44476
|
-
|
|
44477
|
-
|
|
44478
|
-
|
|
44481
|
+
/* @__PURE__ */ p(
|
|
44482
|
+
"div",
|
|
44483
|
+
{
|
|
44484
|
+
className: `variable-panel-group ${!l && !u && s.length < 1 ? "empty" : ""}`,
|
|
44485
|
+
children: /* @__PURE__ */ L("div", { className: pt.section, children: [
|
|
44486
|
+
s.map((w) => {
|
|
44487
|
+
if (w.var_type === xB.JSON) {
|
|
44488
|
+
const C = y(w.var_value ?? {}), S = [
|
|
44489
|
+
{
|
|
44490
|
+
name: w.name,
|
|
44491
|
+
type: rr.Object,
|
|
44492
|
+
label: w.display_name || w.name,
|
|
44493
|
+
multi_valued: !1,
|
|
44494
|
+
sub_params: C,
|
|
44495
|
+
value: null
|
|
44496
|
+
}
|
|
44497
|
+
], k = v(S, !0, void 0, !0, "api");
|
|
44498
|
+
return /* @__PURE__ */ p(
|
|
44499
|
+
ng,
|
|
44500
|
+
{
|
|
44501
|
+
defaultExpandAll: !0,
|
|
44502
|
+
showLine: !0,
|
|
44503
|
+
onSelect: (E, x) => {
|
|
44504
|
+
const _ = x.node.variablePath;
|
|
44505
|
+
i.emit({
|
|
44506
|
+
type: "insert",
|
|
44507
|
+
currentInputId: m.currentInputId,
|
|
44508
|
+
expression: `{{global.${_.join(".")}}}`
|
|
44509
|
+
});
|
|
44510
|
+
},
|
|
44511
|
+
switcherIcon: /* @__PURE__ */ p(cd, {}),
|
|
44512
|
+
treeData: k
|
|
44513
|
+
},
|
|
44514
|
+
w.id
|
|
44515
|
+
);
|
|
44516
|
+
}
|
|
44517
|
+
const g = OJ(w.var_value), b = g.length > 28 ? `${g.substring(0, 28)}...` : g;
|
|
44518
|
+
return /* @__PURE__ */ L(
|
|
44519
|
+
"button",
|
|
44520
|
+
{
|
|
44521
|
+
type: "button",
|
|
44522
|
+
className: `${pt.varItem} workflow-variable-panel__item`,
|
|
44523
|
+
onClick: () => {
|
|
44524
|
+
i.emit({
|
|
44525
|
+
type: "insert",
|
|
44526
|
+
currentInputId: m.currentInputId,
|
|
44527
|
+
expression: `{{global.${w.name}}}`
|
|
44528
|
+
});
|
|
44529
|
+
},
|
|
44530
|
+
children: [
|
|
44531
|
+
/* @__PURE__ */ p(
|
|
44532
|
+
Jt,
|
|
44533
|
+
{
|
|
44534
|
+
color: Mp[w.mappedType],
|
|
44535
|
+
className: `${pt.typeTag} workflow-variable-panel__type`,
|
|
44536
|
+
children: Pp(w.mappedType)
|
|
44537
|
+
}
|
|
44538
|
+
),
|
|
44539
|
+
/* @__PURE__ */ p("span", { className: `${pt.varName} workflow-variable-panel__label`, children: w.display_name || w.name }),
|
|
44540
|
+
b ? /* @__PURE__ */ p("span", { className: pt.varValue, children: b }) : null
|
|
44541
|
+
]
|
|
44542
|
+
},
|
|
44543
|
+
w.id
|
|
44544
|
+
);
|
|
44545
|
+
}),
|
|
44546
|
+
!l && !u && s.length < 1 && /* @__PURE__ */ p(
|
|
44547
|
+
zo,
|
|
44479
44548
|
{
|
|
44480
|
-
|
|
44481
|
-
|
|
44482
|
-
|
|
44483
|
-
multi_valued: !1,
|
|
44484
|
-
sub_params: C,
|
|
44485
|
-
value: null
|
|
44549
|
+
image: zo.PRESENTED_IMAGE_SIMPLE,
|
|
44550
|
+
description: Lp.NoTestDataDesc,
|
|
44551
|
+
className: pt.empty
|
|
44486
44552
|
}
|
|
44487
|
-
|
|
44488
|
-
|
|
44489
|
-
|
|
44553
|
+
),
|
|
44554
|
+
l ? /* @__PURE__ */ L("div", { className: pt.loadingState, children: [
|
|
44555
|
+
/* @__PURE__ */ p(Ko, { size: "small" }),
|
|
44556
|
+
/* @__PURE__ */ p("span", { children: "正在加载全局变量" })
|
|
44557
|
+
] }) : u ? /* @__PURE__ */ p(
|
|
44558
|
+
zs,
|
|
44490
44559
|
{
|
|
44491
|
-
|
|
44492
|
-
|
|
44493
|
-
|
|
44494
|
-
|
|
44495
|
-
|
|
44496
|
-
|
|
44497
|
-
|
|
44498
|
-
|
|
44499
|
-
|
|
44500
|
-
|
|
44501
|
-
|
|
44502
|
-
|
|
44503
|
-
|
|
44504
|
-
|
|
44505
|
-
|
|
44506
|
-
|
|
44507
|
-
|
|
44508
|
-
|
|
44509
|
-
|
|
44560
|
+
className: pt.errorState,
|
|
44561
|
+
type: "error",
|
|
44562
|
+
showIcon: !0,
|
|
44563
|
+
message: "全局变量加载失败",
|
|
44564
|
+
description: u.message,
|
|
44565
|
+
action: /* @__PURE__ */ p(ae, { size: "small", onClick: f, children: "重试" })
|
|
44566
|
+
}
|
|
44567
|
+
) : null
|
|
44568
|
+
] })
|
|
44569
|
+
}
|
|
44570
|
+
)
|
|
44571
|
+
] }) : null,
|
|
44572
|
+
/* @__PURE__ */ L("div", { className: `${pt.sectionLabel} workflow-variable-panel__section-label`, children: [
|
|
44573
|
+
/* @__PURE__ */ p(dl, { className: pt.sectionIcon }),
|
|
44574
|
+
/* @__PURE__ */ p("span", { children: "节点变量" })
|
|
44575
|
+
] }),
|
|
44576
|
+
/* @__PURE__ */ p(
|
|
44577
|
+
"div",
|
|
44578
|
+
{
|
|
44579
|
+
className: `variable-panel-group ${!c && !d && a.length < 1 ? "empty" : ""}`,
|
|
44580
|
+
children: /* @__PURE__ */ L("div", { className: pt.section, children: [
|
|
44581
|
+
a.map((w) => /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(
|
|
44582
|
+
ng,
|
|
44510
44583
|
{
|
|
44511
|
-
|
|
44512
|
-
|
|
44513
|
-
|
|
44584
|
+
defaultExpandAll: !0,
|
|
44585
|
+
showLine: !0,
|
|
44586
|
+
onSelect: (g, b) => {
|
|
44587
|
+
const C = b.node.variablePath;
|
|
44588
|
+
if (C.length <= 1)
|
|
44589
|
+
return !1;
|
|
44514
44590
|
i.emit({
|
|
44515
44591
|
type: "insert",
|
|
44516
44592
|
currentInputId: m.currentInputId,
|
|
44517
|
-
expression:
|
|
44593
|
+
expression: TJ(w.node_id, C)
|
|
44518
44594
|
});
|
|
44519
44595
|
},
|
|
44520
|
-
|
|
44521
|
-
|
|
44522
|
-
|
|
44523
|
-
|
|
44524
|
-
|
|
44525
|
-
|
|
44526
|
-
|
|
44527
|
-
|
|
44528
|
-
|
|
44529
|
-
|
|
44530
|
-
|
|
44531
|
-
|
|
44532
|
-
|
|
44533
|
-
|
|
44534
|
-
|
|
44535
|
-
|
|
44536
|
-
|
|
44537
|
-
|
|
44538
|
-
{
|
|
44539
|
-
|
|
44540
|
-
|
|
44541
|
-
|
|
44542
|
-
|
|
44543
|
-
|
|
44544
|
-
|
|
44545
|
-
|
|
44546
|
-
|
|
44547
|
-
|
|
44548
|
-
|
|
44549
|
-
|
|
44550
|
-
|
|
44551
|
-
|
|
44552
|
-
|
|
44553
|
-
|
|
44554
|
-
|
|
44555
|
-
action: /* @__PURE__ */ p(ae, { size: "small", onClick: f, children: "重试" })
|
|
44556
|
-
}
|
|
44557
|
-
) : null
|
|
44558
|
-
] }) })
|
|
44559
|
-
] }) : null,
|
|
44560
|
-
/* @__PURE__ */ L("div", { className: `${pt.sectionLabel} workflow-variable-panel__section-label`, children: [
|
|
44561
|
-
/* @__PURE__ */ p(dl, { className: pt.sectionIcon }),
|
|
44562
|
-
/* @__PURE__ */ p("span", { children: "节点变量" })
|
|
44563
|
-
] }),
|
|
44564
|
-
/* @__PURE__ */ p("div", { className: "variable-panel-group", children: /* @__PURE__ */ L("div", { className: pt.section, children: [
|
|
44565
|
-
a.map((w) => /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(
|
|
44566
|
-
ng,
|
|
44567
|
-
{
|
|
44568
|
-
defaultExpandAll: !0,
|
|
44569
|
-
showLine: !0,
|
|
44570
|
-
onSelect: (g, b) => {
|
|
44571
|
-
const C = b.node.variablePath;
|
|
44572
|
-
if (C.length <= 1)
|
|
44573
|
-
return !1;
|
|
44574
|
-
i.emit({
|
|
44575
|
-
type: "insert",
|
|
44576
|
-
currentInputId: m.currentInputId,
|
|
44577
|
-
expression: TJ(w.node_id, C)
|
|
44578
|
-
});
|
|
44579
|
-
},
|
|
44580
|
-
switcherIcon: /* @__PURE__ */ p(cd, {}),
|
|
44581
|
-
treeData: v(
|
|
44582
|
-
w.sub_params,
|
|
44583
|
-
!0,
|
|
44584
|
-
w.nodeIcon,
|
|
44585
|
-
w.isValid,
|
|
44586
|
-
"node"
|
|
44587
|
-
)
|
|
44588
|
-
}
|
|
44589
|
-
) }, `${w.node_id}-${w.seq}`)),
|
|
44590
|
-
!c && !d && a.length < 1 && /* @__PURE__ */ p(
|
|
44591
|
-
zo,
|
|
44592
|
-
{
|
|
44593
|
-
image: zo.PRESENTED_IMAGE_SIMPLE,
|
|
44594
|
-
description: Lp.NoTestDataDesc,
|
|
44595
|
-
className: pt.empty
|
|
44596
|
-
}
|
|
44597
|
-
),
|
|
44598
|
-
c ? /* @__PURE__ */ L("div", { className: pt.loadingState, children: [
|
|
44599
|
-
/* @__PURE__ */ p(Ko, { size: "small" }),
|
|
44600
|
-
/* @__PURE__ */ p("span", { children: "正在加载节点变量" })
|
|
44601
|
-
] }) : d ? /* @__PURE__ */ p(
|
|
44602
|
-
zs,
|
|
44603
|
-
{
|
|
44604
|
-
className: pt.errorState,
|
|
44605
|
-
type: "error",
|
|
44606
|
-
showIcon: !0,
|
|
44607
|
-
message: "节点变量加载失败",
|
|
44608
|
-
description: d.message,
|
|
44609
|
-
action: /* @__PURE__ */ p(ae, { size: "small", onClick: h, children: "重试" })
|
|
44610
|
-
}
|
|
44611
|
-
) : null
|
|
44612
|
-
] }) })
|
|
44596
|
+
switcherIcon: /* @__PURE__ */ p(cd, {}),
|
|
44597
|
+
treeData: v(
|
|
44598
|
+
w.sub_params,
|
|
44599
|
+
!0,
|
|
44600
|
+
w.nodeIcon,
|
|
44601
|
+
w.isValid,
|
|
44602
|
+
"node"
|
|
44603
|
+
)
|
|
44604
|
+
}
|
|
44605
|
+
) }, `${w.node_id}-${w.seq}`)),
|
|
44606
|
+
!c && !d && a.length < 1 && /* @__PURE__ */ p(
|
|
44607
|
+
zo,
|
|
44608
|
+
{
|
|
44609
|
+
image: zo.PRESENTED_IMAGE_SIMPLE,
|
|
44610
|
+
description: Lp.NoTestDataDesc,
|
|
44611
|
+
className: pt.empty
|
|
44612
|
+
}
|
|
44613
|
+
),
|
|
44614
|
+
c ? /* @__PURE__ */ L("div", { className: pt.loadingState, children: [
|
|
44615
|
+
/* @__PURE__ */ p(Ko, { size: "small" }),
|
|
44616
|
+
/* @__PURE__ */ p("span", { children: "正在加载节点变量" })
|
|
44617
|
+
] }) : d ? /* @__PURE__ */ p(
|
|
44618
|
+
zs,
|
|
44619
|
+
{
|
|
44620
|
+
className: pt.errorState,
|
|
44621
|
+
type: "error",
|
|
44622
|
+
showIcon: !0,
|
|
44623
|
+
message: "节点变量加载失败",
|
|
44624
|
+
description: d.message,
|
|
44625
|
+
action: /* @__PURE__ */ p(ae, { size: "small", onClick: h, children: "重试" })
|
|
44626
|
+
}
|
|
44627
|
+
) : null
|
|
44628
|
+
] })
|
|
44629
|
+
}
|
|
44630
|
+
)
|
|
44613
44631
|
] })
|
|
44614
44632
|
] });
|
|
44615
44633
|
}), { Option: Bo } = ct, BJ = sn(
|
|
@@ -61707,4 +61725,4 @@ export {
|
|
|
61707
61725
|
gv as y,
|
|
61708
61726
|
yae as z
|
|
61709
61727
|
};
|
|
61710
|
-
//# sourceMappingURL=index-
|
|
61728
|
+
//# sourceMappingURL=index-CxelobfJ.mjs.map
|