@yuku123/z-team-component 0.2.140 → 0.2.142

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.
Files changed (57) hide show
  1. package/dist/{AdminModuleContent-DDB35gOh.js → AdminModuleContent-DIntalEE.js} +10526 -10697
  2. package/dist/{ChangeLogView-AKOZ6Ski.js → ChangeLogView-BG0idpcI.js} +1 -1
  3. package/dist/{ComponentDoc-SiXXhka1.js → ComponentDoc-DmA8kQED.js} +1318 -1313
  4. package/dist/{InvitationManagementPage-CRbABOKe.js → InvitationManagementPage-BmvQrlzu.js} +1 -1
  5. package/dist/{OnboardingPage-BNJopRYO.js → OnboardingPage-BNqu7ED-.js} +2 -2
  6. package/dist/ScheduledTasks-BpLYITou.js +12005 -0
  7. package/dist/SystemShell-CHJGJAor.js +859 -0
  8. package/dist/{admin-logs-B3IxooG2.js → admin-logs-CGbHioxz.js} +5 -5
  9. package/dist/{api-DmBlT5MH.js → api-CVAq8S_3.js} +1 -1
  10. package/dist/{api-DW8nsucC.js → api-DTQ6gite.js} +1 -1
  11. package/dist/createWorkspaceWsHandler-eEZssgTR.js +11757 -0
  12. package/dist/{ctc-sso-DtJHC-2M.js → ctc-sso-Hj8fdMY0.js} +8 -6
  13. package/dist/{index-VmRWH4U5.js → index-1hUJPdXC.js} +9 -9
  14. package/dist/{index-C24QsGsG.js → index-B02tvvRk.js} +1 -1
  15. package/dist/{index-BSqUODiN.js → index-BLDm7Ltq.js} +30 -31
  16. package/dist/index-BXas8GPY.js +1840 -0
  17. package/dist/{index-CvHMXrAD.js → index-BiKw2Cl_.js} +1 -1
  18. package/dist/index-BlDMnzJF.js +18 -0
  19. package/dist/{index-BBLRGBWu.js → index-BmlFIrWx.js} +1 -1
  20. package/dist/{index-Du95tdVf.js → index-BruNw5wQ.js} +29 -30
  21. package/dist/{index-BV64kKse.js → index-ByWmrjar.js} +2 -2
  22. package/dist/{index-DCAO83Wb.js → index-C6TJo_6f.js} +1325 -1187
  23. package/dist/{index-DDOfdrn4.js → index-CSuF7xTK.js} +3954 -3985
  24. package/dist/index-CkFZb89W.js +1298 -0
  25. package/dist/{index-C1nr0UeB.js → index-ClaU3cVV.js} +20 -21
  26. package/dist/{index-C7DSDopw.js → index-CnHG8LvQ.js} +26 -27
  27. package/dist/{index-CXjen4Gx.js → index-CwohTaZ3.js} +342 -389
  28. package/dist/{index-CJ7dJejJ.js → index-D2qy0vH-.js} +17 -17
  29. package/dist/{index-DHrMSEVJ.js → index-D6jssKSM.js} +1 -1
  30. package/dist/{index-l9KH8r7F.js → index-DCbdksxa.js} +780 -792
  31. package/dist/{index-D-G4mbxH.js → index-DNofgrle.js} +2 -2
  32. package/dist/{index-D7thpI99.js → index-DUEGauT8.js} +1 -1
  33. package/dist/index-DnA9mLM4.js +136 -0
  34. package/dist/{index-CEoS_jEa.js → index-DoQpFpjM.js} +6 -6
  35. package/dist/{index-DjbLq5lI.js → index-G4_ZNL1t.js} +2 -2
  36. package/dist/{index-DULYXalY.js → index-WYKbD2Kc.js} +9 -9
  37. package/dist/{index-D440bEgm.js → index-ZTJ7n_J_.js} +199 -193
  38. package/dist/{index-Hv2KDG7i.js → index-iFIFnLjk.js} +3 -3
  39. package/dist/index.js +1 -1
  40. package/dist/instance-Ce0ksjOY.js +116 -0
  41. package/dist/{menuPermission-DxknHmt8.js → menuPermission-CXN-JDku.js} +3 -3
  42. package/dist/pages.js +1 -1
  43. package/dist/{send-default-agent-team-message-DYytBtLc.js → send-default-agent-team-message-Caz3lGg6.js} +1 -1
  44. package/dist/{training-CKYPSkUP.js → training-ry7fCVV4.js} +1 -1
  45. package/dist/{webide-JAalC_Wr.js → webide-DyvaibPK.js} +1161 -1317
  46. package/dist/z-team-component.css +1 -1
  47. package/package.json +5 -5
  48. package/dist/ScheduledTasks-Cn_CEZ-B.js +0 -12006
  49. package/dist/SystemShell-B8Tyluzu.js +0 -893
  50. package/dist/SystemWorkbench.module-DpLM0zgA.js +0 -36
  51. package/dist/createWorkspaceWsHandler-5MHgQGfJ.js +0 -12902
  52. package/dist/index-BT4oQJby.js +0 -228
  53. package/dist/index-DrDFy5jN.js +0 -139
  54. package/dist/index-DvslXAjT.js +0 -1323
  55. package/dist/index-NIu3OKHi.js +0 -1868
  56. package/dist/instance-B4SrJ-BY.js +0 -186
  57. package/dist/sso-user-DN6kSAc0.js +0 -43
@@ -1,12 +1,12 @@
1
1
  import { jsx as c, jsxs as _ } from "react/jsx-runtime";
2
- import { e as $, u as j, t as x, p as O, g as v, h as F } from "./ComponentDoc-SiXXhka1.js";
2
+ import { e as $, u as j, t as x, p as O, g as v, h as F } from "./ComponentDoc-DmA8kQED.js";
3
3
  import { CheckCircleFilled as b } from "@ant-design/icons";
4
4
  import { Result as D, Button as R, Spin as U } from "antd";
5
5
  import B from "query-string";
6
6
  import { useMemo as y, useState as f, useRef as q, useCallback as A, useEffect as J } from "react";
7
7
  import { useLocation as W } from "react-router-dom";
8
8
  import { h as w } from "./history-BlrA1eaW.js";
9
- import { l as Z, j as z, f as H, b as L, p as M } from "./instance-B4SrJ-BY.js";
9
+ import { l as Z, j as z, f as H, b as L, p as M } from "./instance-Ce0ksjOY.js";
10
10
  import { b as N } from "./mobile-client-O3yr9h6t.js";
11
11
  function nt() {
12
12
  const m = W(), p = B.parse(m.search), o = String(
@@ -2,7 +2,7 @@ import { jsxs as r, jsx as n, Fragment as H } from "react/jsx-runtime";
2
2
  import { BookOutlined as V, ReloadOutlined as Ne, SearchOutlined as fe, CloseOutlined as ge, CaretDownOutlined as ve, CaretRightOutlined as Te } from "@ant-design/icons";
3
3
  import { message as Se, Spin as F } from "antd";
4
4
  import { useState as k, useRef as M, useEffect as G, useCallback as C } from "react";
5
- import { a as A, B as R, b as E } from "./ComponentDoc-SiXXhka1.js";
5
+ import { a as A, B as R, b as E } from "./ComponentDoc-DmA8kQED.js";
6
6
  function B(a) {
7
7
  const l = new URLSearchParams();
8
8
  Object.entries(a).forEach(([N, s]) => {
@@ -0,0 +1,136 @@
1
+ import { jsxs as f, jsx as n } from "react/jsx-runtime";
2
+ import { useMemo as m, useCallback as B, useEffect as N } from "react";
3
+ import { useNavigate as O, useLocation as S } from "react-router-dom";
4
+ import { AppstoreOutlined as $, HomeOutlined as x, DashboardOutlined as g, TableOutlined as w, DatabaseOutlined as A, RobotOutlined as L, FunctionOutlined as M, ApartmentOutlined as W, EyeOutlined as R, BranchesOutlined as I, DeploymentUnitOutlined as P, SafetyCertificateOutlined as U, RocketOutlined as q } from "@ant-design/icons";
5
+ import G from "@yuku123/z-lc-component";
6
+ import { f as T, M as E } from "./menuPermission-CXN-JDku.js";
7
+ import { u as _ } from "./ComponentDoc-DmA8kQED.js";
8
+ import { SidebarShell as D, MenuTree as C } from "@yuku123/z-frontend-common/ui";
9
+ const K = "_shellWrap_kxkvd_7", j = "_shell_kxkvd_7", F = "_productBanner_kxkvd_25", H = "_productBannerLabel_kxkvd_37", z = "_productBannerName_kxkvd_43", J = "_productBannerCode_kxkvd_51", Q = "_productBannerBack_kxkvd_56", V = "_main_kxkvd_351", p = {
10
+ shellWrap: K,
11
+ shell: j,
12
+ productBanner: F,
13
+ productBannerLabel: H,
14
+ productBannerName: z,
15
+ productBannerCode: J,
16
+ productBannerBack: Q,
17
+ main: V
18
+ }, h = "/lc", X = /* @__PURE__ */ new Set(["apps", "designer", "db-import", "admin", "docs"]);
19
+ function Y(e, t) {
20
+ if (!e.startsWith(h)) return null;
21
+ const s = e.slice(h.length).replace(/^\//, "").split("/").filter(Boolean);
22
+ return s[0] === "designer" && s[1] ? s[1] : s[0] && !X.has(s[0]) ? s[0] : new URLSearchParams(t.startsWith("?") ? t.slice(1) : t).get("appCode") || null;
23
+ }
24
+ function Z(e) {
25
+ const t = `?appCode=${encodeURIComponent(e)}`;
26
+ return [
27
+ { key: `${e}:overview`, label: "应用概览", icon: /* @__PURE__ */ n(x, {}), path: e },
28
+ { key: `${e}:dashboard`, label: "仪表盘", icon: /* @__PURE__ */ n(g, {}), path: `${e}/dashboard` },
29
+ { key: `${e}:designer`, label: "Schema 设计器", icon: /* @__PURE__ */ n(w, {}), path: `designer/${e}` },
30
+ { key: `${e}:db-import`, label: "从数据库导入", icon: /* @__PURE__ */ n(A, {}), path: `db-import${t}` },
31
+ { key: `${e}:ai`, label: "AI 建模", icon: /* @__PURE__ */ n(L, {}), path: `admin/ai${t}` },
32
+ { key: `${e}:dicts`, label: "数据字典", icon: /* @__PURE__ */ n(M, {}), path: `admin/dicts${t}` },
33
+ { key: `${e}:relations`, label: "实体关系", icon: /* @__PURE__ */ n(W, {}), path: `admin/relations${t}` },
34
+ { key: `${e}:views`, label: "视图配置", icon: /* @__PURE__ */ n(R, {}), path: `admin/views${t}` },
35
+ { key: `${e}:pipelines`, label: "Pipeline", icon: /* @__PURE__ */ n(I, {}), path: `admin/pipelines${t}` },
36
+ { key: `${e}:workflows`, label: "流程绑定", icon: /* @__PURE__ */ n(P, {}), path: `admin/workflows${t}` },
37
+ { key: `${e}:permissions`, label: "权限矩阵", icon: /* @__PURE__ */ n(U, {}), path: `admin/permissions${t}`, permission: "PERMISSION_MANAGE" },
38
+ { key: `${e}:deployments`, label: "部署记录", icon: /* @__PURE__ */ n(q, {}), path: `admin/deployments${t}` }
39
+ ];
40
+ }
41
+ function ee(e) {
42
+ const t = [
43
+ { key: "apps", label: "应用列表", icon: /* @__PURE__ */ n($, {}), path: "apps" }
44
+ ];
45
+ return e && t.push({
46
+ key: e,
47
+ label: e,
48
+ icon: /* @__PURE__ */ n($, {}),
49
+ children: Z(e)
50
+ }), [{ title: "应用", icon: /* @__PURE__ */ n($, {}), items: t }];
51
+ }
52
+ function te(e, t, c, s) {
53
+ if (!e.path) return !1;
54
+ const l = e.path.indexOf("?"), r = l >= 0 ? e.path.slice(0, l) : e.path;
55
+ return (s ? t === r : t === r || t.startsWith(`${r}/`)) ? l >= 0 ? new URLSearchParams(e.path.slice(l + 1)).get("appCode") === c : !0 : !1;
56
+ }
57
+ function ne(e, t, c, s) {
58
+ if (!t.startsWith(h)) return null;
59
+ const l = t.slice(h.length).replace(/^\//, ""), r = e.flatMap(
60
+ (u) => u.items.flatMap((o) => o.children ? [o, ...o.children] : [o])
61
+ );
62
+ for (const u of [!0, !1])
63
+ for (const o of r)
64
+ if (te(o, l, s, u)) return o.key;
65
+ return null;
66
+ }
67
+ function ue() {
68
+ const e = O(), { pathname: t, search: c } = S(), s = _((a) => a.currentUser), l = _((a) => a.permissionState), r = m(() => {
69
+ try {
70
+ const a = new URLSearchParams(c), i = a.get("product");
71
+ return i ? { code: i, name: a.get("productName") || i } : null;
72
+ } catch {
73
+ return null;
74
+ }
75
+ }, [c]), u = B(() => {
76
+ if (!r) return;
77
+ const a = new URLSearchParams();
78
+ a.set("product", r.code), r.name && a.set("productName", r.name), e(`/workspace?mode=product&${a.toString()}`);
79
+ }, [r, e]);
80
+ N(() => {
81
+ t.startsWith("/lc") || e(`/lc/apps${c || ""}`, { replace: !0 });
82
+ }, [t, c, e]);
83
+ const o = m(() => Y(t, c), [t, c]), b = m(() => ee(o), [o]), k = m(
84
+ () => l === "failed" ? b : T(b, s),
85
+ [b, s, l]
86
+ ), y = m(
87
+ () => ne(k, t, c, o),
88
+ [k, t, c, o]
89
+ ), v = m(
90
+ () => k.map((a) => ({
91
+ key: a.title,
92
+ title: a.title,
93
+ items: a.items.map((i) => ({
94
+ key: i.key,
95
+ label: i.label,
96
+ icon: i.icon,
97
+ active: y === i.key,
98
+ onClick: i.path ? () => e(`${h}/${i.path}`) : void 0,
99
+ children: i.children ? i.children.map((d) => ({
100
+ key: d.key,
101
+ label: d.label,
102
+ icon: d.icon,
103
+ active: y === d.key,
104
+ onClick: d.path ? () => e(`${h}/${d.path}`) : void 0
105
+ })) : void 0
106
+ }))
107
+ })),
108
+ [k, y, e]
109
+ );
110
+ return /* @__PURE__ */ f("div", { className: p.shellWrap, children: [
111
+ r && /* @__PURE__ */ f("div", { className: p.productBanner, children: [
112
+ /* @__PURE__ */ n("span", { className: p.productBannerLabel, children: "📦 当前产品" }),
113
+ /* @__PURE__ */ n("span", { className: p.productBannerName, title: r.name, children: r.name }),
114
+ /* @__PURE__ */ n("span", { className: p.productBannerCode, children: r.code }),
115
+ /* @__PURE__ */ n("button", { type: "button", className: p.productBannerBack, onClick: u, children: "← 返回产品工作台" })
116
+ ] }),
117
+ /* @__PURE__ */ f("div", { className: p.shell, children: [
118
+ /* @__PURE__ */ f(
119
+ D,
120
+ {
121
+ title: "研发工作台",
122
+ width: 220,
123
+ storageKey: "ft_dev_sidebar_collapsed",
124
+ children: [
125
+ /* @__PURE__ */ n(E, {}),
126
+ /* @__PURE__ */ n(C, { groups: v, defaultCollapsed: !0 })
127
+ ]
128
+ }
129
+ ),
130
+ /* @__PURE__ */ n("main", { className: p.main, children: /* @__PURE__ */ n(G, {}) })
131
+ ] })
132
+ ] });
133
+ }
134
+ export {
135
+ ue as default
136
+ };
@@ -1,13 +1,13 @@
1
1
  import { jsx as n, jsxs as p, Fragment as J } from "react/jsx-runtime";
2
- import { S as An, P as Dn } from "./webide-JAalC_Wr.js";
2
+ import { S as An, P as Dn } from "./webide-DyvaibPK.js";
3
3
  import { Dropdown as en } from "antd";
4
4
  import { PlayCircleOutlined as Pn, FileTextOutlined as cn, PlusOutlined as $n, ClockCircleOutlined as jn, AppstoreOutlined as xn, UnorderedListOutlined as En, SettingOutlined as Rn } from "@ant-design/icons";
5
5
  import { useState as d, useRef as Ne, useEffect as I, useCallback as B, useMemo as L } from "react";
6
- import { u as X, o as Mn, q as Kn, t as Fn, n as z, v as Bn, w as ke, x as Hn, y as Wn } from "./ComponentDoc-SiXXhka1.js";
7
- import { s, T as _n, R as De, D as we, f as Zn, a as Gn, F as Pe, P as Vn, L as Un, A as Qn, C as zn, b as Jn, c as Xn, p as Yn, d as qn, e as nn, g as tn, h as et, W as nt, i as tt, S as st, j as at, k as lt, l as sn, m as ot, r as it, n as ct, U as rt, o as dt, q as ut, t as pt } from "./index-DDOfdrn4.js";
8
- import { u as rn, i as ht, s as an, c as mt } from "./createWorkspaceWsHandler-5MHgQGfJ.js";
9
- import { h as ft, f as gt } from "./index-DULYXalY.js";
10
- import { S as bt, P as yt, L as kt, a as Nt, E as wt, C as Tt, W as ln, b as on, T as vt, c as Ct } from "./ScheduledTasks-Cn_CEZ-B.js";
6
+ import { u as X, w as Mn, x as Kn, t as Fn, v as z, y as Bn, z as ke, A as Hn, D as Wn } from "./ComponentDoc-DmA8kQED.js";
7
+ import { s, T as _n, R as De, D as we, f as Zn, a as Gn, F as Pe, P as Vn, L as Un, A as Qn, C as zn, b as Jn, c as Xn, p as Yn, d as qn, e as nn, g as tn, h as et, W as nt, i as tt, S as st, j as at, k as lt, l as sn, m as ot, r as it, n as ct, U as rt, o as dt, q as ut, t as pt } from "./index-CSuF7xTK.js";
8
+ import { u as rn, i as ht, s as an, c as mt } from "./createWorkspaceWsHandler-eEZssgTR.js";
9
+ import { h as ft, f as gt } from "./index-WYKbD2Kc.js";
10
+ import { S as bt, P as yt, L as kt, a as Nt, E as wt, C as Tt, W as ln, b as on, T as vt, c as Ct } from "./ScheduledTasks-BpLYITou.js";
11
11
  import { TodoTab as St } from "@yuku123/z-task-component";
12
12
  const It = [
13
13
  "帮我排查一个线上问题",
@@ -1,8 +1,8 @@
1
1
  import { jsxs as t, jsx as n, Fragment as _ } from "react/jsx-runtime";
2
2
  import { useState as i, useRef as D, useCallback as B, useEffect as N } from "react";
3
- import { u as j } from "./ComponentDoc-SiXXhka1.js";
3
+ import { u as j } from "./ComponentDoc-DmA8kQED.js";
4
4
  /* empty css */
5
- import { l as F, c as G, a as z, b as K, p as W } from "./api-DW8nsucC.js";
5
+ import { l as F, c as G, a as z, b as K, p as W } from "./api-DTQ6gite.js";
6
6
  const L = "dev_brain_scenario";
7
7
  function q() {
8
8
  var M;
@@ -1,7 +1,7 @@
1
- import { a as h, f as _, B as N, D as A, t as g } from "./ComponentDoc-SiXXhka1.js";
1
+ import { a as h, f as _, B as N, G as A, t as g } from "./ComponentDoc-DmA8kQED.js";
2
2
  import { jsx as p, jsxs as I } from "react/jsx-runtime";
3
- import { useMemo as S, useState as C, useEffect as G, Component as D } from "react";
4
- function L(t) {
3
+ import { useMemo as S, useState as C, useEffect as G, Component as L } from "react";
4
+ function $(t) {
5
5
  if (t == null) return !0;
6
6
  const e = String(t).trim();
7
7
  return e === "" || e === "0";
@@ -65,7 +65,7 @@ function b(t) {
65
65
  projectTitle: t.projectTitle == null || !String(t.projectTitle).trim() ? null : String(t.projectTitle),
66
66
  tags: e(t.tags),
67
67
  links: n(t.links),
68
- parentId: L(t.parentId) ? "" : g(t.parentId),
68
+ parentId: $(t.parentId) ? "" : g(t.parentId),
69
69
  sortOrder: t.sortOrder == null ? 0 : Number(t.sortOrder),
70
70
  completedAt: t.completedAt == null ? null : String(t.completedAt),
71
71
  completedBy: t.completedBy == null ? null : String(t.completedBy),
@@ -75,7 +75,7 @@ function b(t) {
75
75
  agentSessionId: t.agentSessionId == null ? null : g(t.agentSessionId)
76
76
  };
77
77
  }
78
- function $(t) {
78
+ function B(t) {
79
79
  const e = t ?? {};
80
80
  return {
81
81
  id: g(e.id),
@@ -92,7 +92,7 @@ function $(t) {
92
92
  function O(t) {
93
93
  const e = t ?? {}, n = Array.isArray(e.memberDetails) ? e.memberDetails : [];
94
94
  return {
95
- ...$(e),
95
+ ...B(e),
96
96
  openCount: e.openCount == null ? 0 : Number(e.openCount),
97
97
  memberDetails: n.map((r) => {
98
98
  const c = r ?? {}, l = String(c.userId ?? "").trim();
@@ -125,7 +125,7 @@ async function rt(t, e = "") {
125
125
  }), c = await A(r, "新建事项失败");
126
126
  return b(c);
127
127
  }
128
- const B = {
128
+ const D = {
129
129
  RUNTIME_MONITOR_VIEW: ["RUNTIME_MONITOR_MANAGE"],
130
130
  EVALUATION_VIEW: ["EVALUATION_MANAGE"],
131
131
  COLLABORATION_VIEW: [
@@ -150,7 +150,7 @@ function it(t, e) {
150
150
  var r;
151
151
  if (!t) return !1;
152
152
  if (t.is_global_admin || (r = t.permissions) != null && r.includes(e)) return !0;
153
- const n = B[e];
153
+ const n = D[e];
154
154
  return !!(n != null && n.some((c) => {
155
155
  var l;
156
156
  return (l = t.permissions) == null ? void 0 : l.includes(c);
@@ -285,7 +285,7 @@ const X = ({
285
285
  }
286
286
  );
287
287
  };
288
- class st extends D {
288
+ class st extends L {
289
289
  constructor(e) {
290
290
  super(e), this.state = { hasError: !1, error: null };
291
291
  }