@yuku123/z-team-component 0.2.5 → 0.2.6
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/{InvitationManagementPage-BWAjLzVE.js → InvitationManagementPage-BVBwdTi0.js} +2 -2
- package/dist/{LowCodePage-BOIkfK4U.js → LowCodePage-DH-DYM7K.js} +1 -1
- package/dist/{OnboardingPage-BgfMnqG_.js → OnboardingPage-Cy2YU_Og.js} +2 -2
- package/dist/{ProjectApp-DjHsGbam.js → ProjectApp-YRqDFopZ.js} +42 -33
- package/dist/{api-Gpz6URwP.js → api-B6evTauY.js} +1 -1
- package/dist/{index-DlJRXaaz.js → index-CHSnuHux.js} +234 -234
- package/dist/{index-BrB9bUfl.js → index-D_SjmsjB.js} +4 -4
- package/dist/index.js +1 -1
- package/dist/pages.js +1 -1
- package/package.json +1 -1
|
@@ -2,8 +2,8 @@ import { jsxs as i, jsx as e, Fragment as A } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as o, useEffect as oe } from "react";
|
|
3
3
|
import { Form as m, message as r, Button as d, Input as B, Row as ae, Col as z, Card as v, Statistic as S, Alert as T, Space as p, Typography as se, Tabs as de, Popconfirm as F, Table as _, Tag as h, Tooltip as ce, Modal as he, Radio as O, Select as w, InputNumber as ue } from "antd";
|
|
4
4
|
import { PlusOutlined as me, ClockCircleOutlined as $, CheckCircleOutlined as j, LinkOutlined as U, CopyOutlined as x, QrcodeOutlined as M, UserDeleteOutlined as K, TeamOutlined as pe, MailOutlined as q, DeleteOutlined as ye, UserAddOutlined as N, CloseCircleOutlined as W } from "@ant-design/icons";
|
|
5
|
-
import { l as ge, b as fe, g as ve, c as we, d as xe, e as Ce, f as be } from "./api-
|
|
6
|
-
import { b as Ie, T as ke } from "./ProjectApp-
|
|
5
|
+
import { l as ge, b as fe, g as ve, c as we, d as xe, e as Ce, f as be } from "./api-B6evTauY.js";
|
|
6
|
+
import { b as Ie, T as ke } from "./ProjectApp-YRqDFopZ.js";
|
|
7
7
|
const { Text: c } = se, De = () => {
|
|
8
8
|
const [C] = m.useForm(), [D, L] = o(!1), [y, G] = o([]), [R, H] = o([]), [J, Q] = o(null), [u, V] = o(""), [X, b] = o(!1), [Y, E] = o(!1), [a, P] = o(null), [l, Z] = o(localStorage.getItem("userInfo") && JSON.parse(localStorage.getItem("userInfo") || "{}").tenantCode || "");
|
|
9
9
|
oe(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { useParams as t } from "react-router-dom";
|
|
4
|
-
import { L as d, c as i } from "./ProjectApp-
|
|
4
|
+
import { L as d, c as i } from "./ProjectApp-YRqDFopZ.js";
|
|
5
5
|
const c = () => {
|
|
6
6
|
const { entity: o } = t();
|
|
7
7
|
return o ? o === "_model" ? /* @__PURE__ */ e(d, {}) : /* @__PURE__ */ e(i, {}) : /* @__PURE__ */ r("div", { style: { padding: 24 }, children: [
|
|
@@ -3,8 +3,8 @@ import { useState as a, useMemo as oe, useEffect as W } from "react";
|
|
|
3
3
|
import { useNavigate as le, useSearchParams as se } from "react-router-dom";
|
|
4
4
|
import { Form as c, message as o, Spin as ce, Typography as de, Card as d, Tag as x, Empty as me, Row as he, Col as fe, Space as S, Avatar as ge, Pagination as pe, Button as T, Result as ue, Modal as E, Input as k, Alert as U } from "antd";
|
|
5
5
|
import { RocketOutlined as q, ApartmentOutlined as ye, CheckCircleOutlined as Ce, PlusOutlined as z, KeyOutlined as m, GiftOutlined as ve, HomeOutlined as we, CrownOutlined as be } from "@ant-design/icons";
|
|
6
|
-
import { g as xe, a as Se, s as Te, r as ke } from "./api-
|
|
7
|
-
import { a as ze } from "./ProjectApp-
|
|
6
|
+
import { g as xe, a as Se, s as Te, r as ke } from "./api-B6evTauY.js";
|
|
7
|
+
import { a as ze } from "./ProjectApp-YRqDFopZ.js";
|
|
8
8
|
const { Title: u, Text: O, Paragraph: Oe } = de, y = 12, Me = () => {
|
|
9
9
|
const L = le(), [H] = se(), [_, I] = a(!0), [i, $] = a(null), [l, G] = a([]), [A, F] = a(0), [h, B] = a(""), [C, K] = a(1), X = oe(() => {
|
|
10
10
|
const e = (C - 1) * y;
|
|
@@ -12,10 +12,10 @@ import { CanvasRenderer as tl } from "echarts/renderers";
|
|
|
12
12
|
const me = (t) => {
|
|
13
13
|
const a = vn(t);
|
|
14
14
|
return (l) => /* @__PURE__ */ e(En, { fallback: null, children: /* @__PURE__ */ e(a, { ...l }) });
|
|
15
|
-
}, Me = me(() => import("./index-
|
|
15
|
+
}, Me = me(() => import("./index-CHSnuHux.js").then((t) => t.i)), nl = me(() => import("./index-DM_AMiPz.js")), ll = me(() => import("./index-Bh5PFiY9.js")), rl = me(() => import("./index-CuuZlPvb.js")), al = me(() => import("./index-DYXWNyaR.js")), il = me(() => import("./index-BK9rSfN3.js"));
|
|
16
16
|
me(() => import("./index-Bw02b5qJ.js").then((t) => t.i));
|
|
17
17
|
const ol = me(() => import("./index-CcFJEYgr.js")), sl = me(() => import("./index-BmK_rWsV.js")), cl = me(() => import("./index-BkX0I2aB.js")), dl = me(() => import("./index-l8P_AuvD.js")), ul = me(() => import("./index-C1C2qyDr.js")), hl = me(() => import("./index-D-oG0ReT.js"));
|
|
18
|
-
function
|
|
18
|
+
function Or({ forcedMode: t }) {
|
|
19
19
|
const { pathname: a } = An(), l = a.replace(/\/+$/, "") || "/";
|
|
20
20
|
return t === "system" ? /* @__PURE__ */ e(Me, { forcedChatMode: "system" }) : t === "rpa" ? /* @__PURE__ */ e(Me, { forcedChatMode: "rpa" }) : t === "dev" ? /* @__PURE__ */ e(Me, { forcedChatMode: "dev" }) : l === "/workspace" ? /* @__PURE__ */ e(Me, {}) : l === "/workspace/phone" ? /* @__PURE__ */ e(nl, {}) : l === "/workspace/from-ticket" ? /* @__PURE__ */ e(ll, {}) : l === "/workspace/from-scenario" ? /* @__PURE__ */ e(rl, {}) : l === "/workspace/build-by-form" ? /* @__PURE__ */ e(al, {}) : l === "/scenario" ? /* @__PURE__ */ e(il, {}) : l === "/admin" ? /* @__PURE__ */ e(Me, {}) : l === "/welcome" ? /* @__PURE__ */ e(sl, {}) : l === "/portal" ? /* @__PURE__ */ e(cl, {}) : l === "/chatdemo" ? /* @__PURE__ */ e(ol, {}) : l === "/embed/chat" || l.startsWith("/embed/chat/") ? /* @__PURE__ */ e(hl, {}) : l === "/change-log" ? /* @__PURE__ */ e(dl, {}) : l === "/docs" ? /* @__PURE__ */ e(ul, {}) : /* @__PURE__ */ e(Me, {});
|
|
21
21
|
}
|
|
@@ -116,7 +116,7 @@ function Nt(t = {}) {
|
|
|
116
116
|
userInfoKey: t.userInfoKey
|
|
117
117
|
}), a;
|
|
118
118
|
}
|
|
119
|
-
const W = Nt(),
|
|
119
|
+
const W = Nt(), zr = Nt(), Ee = {
|
|
120
120
|
pink: {
|
|
121
121
|
bg: "#ec4899",
|
|
122
122
|
fg: "#ffffff",
|
|
@@ -996,7 +996,7 @@ const ot = Nt({ baseURL: "/api", timeout: 1e4 }), st = (t) => t ? typeof t.total
|
|
|
996
996
|
}
|
|
997
997
|
]
|
|
998
998
|
}
|
|
999
|
-
],
|
|
999
|
+
], Rr = () => {
|
|
1000
1000
|
const [t, a] = u({
|
|
1001
1001
|
configCount: null,
|
|
1002
1002
|
projectCount: null,
|
|
@@ -1135,7 +1135,7 @@ const ot = Nt({ baseURL: "/api", timeout: 1e4 }), st = (t) => t ? typeof t.total
|
|
|
1135
1135
|
{ type: "JSON", label: "JSON", icon: "{}", color: "#2f54eb", desc: "JSON 字符串" },
|
|
1136
1136
|
{ type: "REF", label: "引用", icon: "🔗", color: "#8c8c8c", desc: "外键引用 BIGINT" }
|
|
1137
1137
|
], ht = Object.fromEntries(gt.map((t) => [t.type, t])), Ct = "application/x-lc-field-type", xt = "application/x-lc-field-idx";
|
|
1138
|
-
function
|
|
1138
|
+
function Pr() {
|
|
1139
1139
|
const [t] = Ot(), [a, l] = u(t.get("appCode") || "demo"), [w, d] = u(t.get("tenant") || localStorage.getItem("z_tenant") || "default"), [y, r] = u([]), [x, T] = u(null), [N, F] = u(!1), [m, p] = u(null), [E, f] = u(!1), [z] = o.useForm(), [R, M] = u(null), [b, C] = u(null), [A, v] = u(null), [B, j] = u([]), [I, h] = u(null), [i, s] = u(!1), [K, D] = u(!1), q = dt(async () => {
|
|
1140
1140
|
if (a) {
|
|
1141
1141
|
F(!0);
|
|
@@ -1885,7 +1885,7 @@ const { Option: zl } = Z, Ht = {
|
|
|
1885
1885
|
JSON: { component: O.TextArea, props: { rows: 3, placeholder: "JSON 字符串" } },
|
|
1886
1886
|
REF: { component: he, props: {} }
|
|
1887
1887
|
};
|
|
1888
|
-
function
|
|
1888
|
+
function Nr() {
|
|
1889
1889
|
const { entity: t } = zt(), [a] = Ot(), l = a.get("appCode") || "demo", w = a.get("tenant") || localStorage.getItem("z_tenant") || "default", [d, y] = u([]), [r, x] = u(null), [T, N] = u([]), [F, m] = u(0), [p, E] = u(1), [f, z] = u(10), [R, M] = u(!1), [b, C] = u(!1), [A, v] = u(null), [B] = o.useForm(), [j, I] = u({}), h = dt(async () => {
|
|
1890
1890
|
try {
|
|
1891
1891
|
const S = await W.get(`/lc/app/${l}/schema`, { params: { tenantCode: w } });
|
|
@@ -2115,7 +2115,7 @@ function Rr() {
|
|
|
2115
2115
|
}
|
|
2116
2116
|
);
|
|
2117
2117
|
}
|
|
2118
|
-
const { Text: Xe, Paragraph:
|
|
2118
|
+
const { Text: Xe, Paragraph: Dr } = Ce, { TextArea: Rl } = O, jt = {
|
|
2119
2119
|
PENDING: "default",
|
|
2120
2120
|
GENERATING: "processing",
|
|
2121
2121
|
READY: "success",
|
|
@@ -2129,7 +2129,7 @@ const { Text: Xe, Paragraph: Pr } = Ce, { TextArea: Rl } = O, jt = {
|
|
|
2129
2129
|
ReactPage: "purple",
|
|
2130
2130
|
File: "default"
|
|
2131
2131
|
};
|
|
2132
|
-
function
|
|
2132
|
+
function Mr() {
|
|
2133
2133
|
const a = new URLSearchParams(window.location.search).get("appCode") || "demo", [l] = u(a), [w, d] = u([]), [y, r] = u(!1), [x, T] = u(!1), [N, F] = u(!1), [m, p] = u([]), [E, f] = u(null), [z, R] = u([]), [M] = o.useForm();
|
|
2134
2134
|
ne(() => {
|
|
2135
2135
|
b(), C();
|
|
@@ -2724,7 +2724,7 @@ function Dl({ open: t, onClose: a, onSuccess: l, envOptions: w = [] }) {
|
|
|
2724
2724
|
function Ml(t) {
|
|
2725
2725
|
return { GET: "blue", POST: "green", PUT: "orange", DELETE: "red", PATCH: "purple" }[t] || "default";
|
|
2726
2726
|
}
|
|
2727
|
-
const { Text: Ze, Paragraph:
|
|
2727
|
+
const { Text: Ze, Paragraph: Lr } = Ce, Jt = [
|
|
2728
2728
|
{
|
|
2729
2729
|
group: "基础数据",
|
|
2730
2730
|
icon: /* @__PURE__ */ e(Ae, {}),
|
|
@@ -5259,7 +5259,7 @@ function tr() {
|
|
|
5259
5259
|
)
|
|
5260
5260
|
] });
|
|
5261
5261
|
}
|
|
5262
|
-
const
|
|
5262
|
+
const $r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5263
5263
|
__proto__: null,
|
|
5264
5264
|
default: tr
|
|
5265
5265
|
}, Symbol.toStringTag, { value: "Module" })), nr = {
|
|
@@ -6148,7 +6148,7 @@ function dr() {
|
|
|
6148
6148
|
] })
|
|
6149
6149
|
] });
|
|
6150
6150
|
}
|
|
6151
|
-
function
|
|
6151
|
+
function ur() {
|
|
6152
6152
|
return /* @__PURE__ */ n(tn, { children: [
|
|
6153
6153
|
/* @__PURE__ */ e(Te, { index: !0, element: /* @__PURE__ */ e(nn, { to: "list", replace: !0 }) }),
|
|
6154
6154
|
/* @__PURE__ */ e(Te, { path: "list", element: /* @__PURE__ */ e(rr, {}) }),
|
|
@@ -6157,13 +6157,16 @@ function Lr() {
|
|
|
6157
6157
|
/* @__PURE__ */ e(Te, { path: "runs", element: /* @__PURE__ */ e(dr, {}) })
|
|
6158
6158
|
] });
|
|
6159
6159
|
}
|
|
6160
|
-
const
|
|
6160
|
+
const Fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6161
|
+
__proto__: null,
|
|
6162
|
+
default: ur
|
|
6163
|
+
}, Symbol.toStringTag, { value: "Module" })), hr = {
|
|
6161
6164
|
OPEN: { color: "blue", text: "待开始" },
|
|
6162
6165
|
IN_PROGRESS: { color: "green", text: "进行中" },
|
|
6163
6166
|
COMPLETED: { color: "default", text: "已完成" },
|
|
6164
6167
|
ARCHIVED: { color: "default", text: "已归档" }
|
|
6165
6168
|
};
|
|
6166
|
-
function
|
|
6169
|
+
function pr() {
|
|
6167
6170
|
const t = Ge(), [a, l] = u("mine"), [w, d] = u([]), [y, r] = u(!1), [x, T] = u(null), N = async () => {
|
|
6168
6171
|
r(!0), T(null);
|
|
6169
6172
|
try {
|
|
@@ -6207,7 +6210,7 @@ function hr() {
|
|
|
6207
6210
|
dataIndex: "status",
|
|
6208
6211
|
width: 100,
|
|
6209
6212
|
render: (E) => {
|
|
6210
|
-
const f =
|
|
6213
|
+
const f = hr[E] || { color: "default", text: E };
|
|
6211
6214
|
return /* @__PURE__ */ e(P, { color: f.color, children: f.text });
|
|
6212
6215
|
}
|
|
6213
6216
|
},
|
|
@@ -6306,14 +6309,14 @@ function hr() {
|
|
|
6306
6309
|
] })
|
|
6307
6310
|
] });
|
|
6308
6311
|
}
|
|
6309
|
-
const
|
|
6312
|
+
const mr = [
|
|
6310
6313
|
{ value: "general", label: "通用助手" },
|
|
6311
6314
|
{ value: "analyst", label: "分析师" },
|
|
6312
6315
|
{ value: "writer", label: "写手" },
|
|
6313
6316
|
{ value: "pm", label: "产品经理" },
|
|
6314
6317
|
{ value: "ops", label: "运营" }
|
|
6315
6318
|
];
|
|
6316
|
-
function
|
|
6319
|
+
function yr() {
|
|
6317
6320
|
const t = Ge(), [a] = Ot(), [l] = o.useForm(), [w, d] = u(!1), [y, r] = u("from-subscribe"), [x, T] = u([]), [N, F] = u([]), [m, p] = u(!1), [E, f] = u([]), [z, R] = u(null);
|
|
6318
6321
|
ne(() => {
|
|
6319
6322
|
const A = a.get("subscriptionId"), v = a.get("itemIds");
|
|
@@ -6474,7 +6477,7 @@ function mr() {
|
|
|
6474
6477
|
] })
|
|
6475
6478
|
] }),
|
|
6476
6479
|
/* @__PURE__ */ n(H, { type: "inner", title: "Agent 配置", style: { marginBottom: 16 }, children: [
|
|
6477
|
-
/* @__PURE__ */ e(o.Item, { label: "Agent 角色", name: "agentRole", extra: "决定 system prompt 的语气 / 视角", children: /* @__PURE__ */ e(Z, { options:
|
|
6480
|
+
/* @__PURE__ */ e(o.Item, { label: "Agent 角色", name: "agentRole", extra: "决定 system prompt 的语气 / 视角", children: /* @__PURE__ */ e(Z, { options: mr }) }),
|
|
6478
6481
|
/* @__PURE__ */ e(
|
|
6479
6482
|
o.Item,
|
|
6480
6483
|
{
|
|
@@ -6501,13 +6504,13 @@ const en = {
|
|
|
6501
6504
|
USER: { color: "blue", icon: /* @__PURE__ */ e(an, {}), label: "CEO" },
|
|
6502
6505
|
ASSISTANT: { color: "purple", icon: /* @__PURE__ */ e(Tt, {}), label: "Agent" },
|
|
6503
6506
|
SYSTEM: { color: "default", icon: null, label: "系统" }
|
|
6504
|
-
},
|
|
6507
|
+
}, gr = {
|
|
6505
6508
|
OPEN: { color: "blue", text: "待开始" },
|
|
6506
6509
|
IN_PROGRESS: { color: "green", text: "进行中" },
|
|
6507
6510
|
COMPLETED: { color: "default", text: "已完成" },
|
|
6508
6511
|
ARCHIVED: { color: "default", text: "已归档" }
|
|
6509
6512
|
};
|
|
6510
|
-
function
|
|
6513
|
+
function fr() {
|
|
6511
6514
|
const { id: t } = zt(), a = Ge(), [l, w] = u(null), [d, y] = u([]), [r, x] = u(""), [T, N] = u(!1), F = At(null);
|
|
6512
6515
|
ne(() => {
|
|
6513
6516
|
t && m();
|
|
@@ -6551,7 +6554,7 @@ function gr() {
|
|
|
6551
6554
|
}
|
|
6552
6555
|
};
|
|
6553
6556
|
if (!l) return /* @__PURE__ */ e("div", { style: { padding: 24 }, children: /* @__PURE__ */ e(Ue, {}) });
|
|
6554
|
-
const f =
|
|
6557
|
+
const f = gr[l.status] || { color: "default", text: l.status };
|
|
6555
6558
|
return /* @__PURE__ */ n("div", { style: { padding: 24, height: "calc(100vh - 64px)", display: "flex", flexDirection: "column", gap: 16 }, children: [
|
|
6556
6559
|
/* @__PURE__ */ n(
|
|
6557
6560
|
H,
|
|
@@ -6678,38 +6681,44 @@ function gr() {
|
|
|
6678
6681
|
)
|
|
6679
6682
|
] });
|
|
6680
6683
|
}
|
|
6681
|
-
function
|
|
6684
|
+
function br() {
|
|
6682
6685
|
return /* @__PURE__ */ n(tn, { children: [
|
|
6683
6686
|
/* @__PURE__ */ e(Te, { index: !0, element: /* @__PURE__ */ e(nn, { to: "list", replace: !0 }) }),
|
|
6684
|
-
/* @__PURE__ */ e(Te, { path: "list", element: /* @__PURE__ */ e(
|
|
6685
|
-
/* @__PURE__ */ e(Te, { path: "new", element: /* @__PURE__ */ e(
|
|
6686
|
-
/* @__PURE__ */ e(Te, { path: ":id", element: /* @__PURE__ */ e(
|
|
6687
|
+
/* @__PURE__ */ e(Te, { path: "list", element: /* @__PURE__ */ e(pr, {}) }),
|
|
6688
|
+
/* @__PURE__ */ e(Te, { path: "new", element: /* @__PURE__ */ e(yr, {}) }),
|
|
6689
|
+
/* @__PURE__ */ e(Te, { path: ":id", element: /* @__PURE__ */ e(fr, {}) })
|
|
6687
6690
|
] });
|
|
6688
6691
|
}
|
|
6692
|
+
const Br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6693
|
+
__proto__: null,
|
|
6694
|
+
default: br
|
|
6695
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
6689
6696
|
export {
|
|
6690
6697
|
Kl as C,
|
|
6691
6698
|
vt as E,
|
|
6692
|
-
|
|
6693
|
-
|
|
6699
|
+
Pr as L,
|
|
6700
|
+
Mr as M,
|
|
6694
6701
|
Dl as O,
|
|
6695
|
-
|
|
6702
|
+
br as P,
|
|
6696
6703
|
Zl as R,
|
|
6697
|
-
|
|
6704
|
+
ur as S,
|
|
6698
6705
|
kl as T,
|
|
6699
|
-
|
|
6700
|
-
|
|
6706
|
+
Or as Z,
|
|
6707
|
+
zr as a,
|
|
6701
6708
|
Ve as b,
|
|
6702
|
-
|
|
6709
|
+
Nr as c,
|
|
6703
6710
|
Et as d,
|
|
6704
6711
|
tr as e,
|
|
6705
6712
|
Ll as f,
|
|
6706
|
-
|
|
6713
|
+
Rr as g,
|
|
6707
6714
|
er as h,
|
|
6708
6715
|
ml as i,
|
|
6709
6716
|
jl as j,
|
|
6710
6717
|
Xl as k,
|
|
6711
6718
|
Nt as l,
|
|
6712
|
-
|
|
6719
|
+
$r as m,
|
|
6720
|
+
Fr as n,
|
|
6721
|
+
Br as o,
|
|
6713
6722
|
W as r,
|
|
6714
6723
|
bl as s
|
|
6715
6724
|
};
|