@yuku123/z-team-component 0.2.175 → 0.2.177

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 (48) hide show
  1. package/dist/{AdminModuleContent-D_8EYwdn.js → AdminModuleContent-VVZE5Zcx.js} +6 -6
  2. package/dist/{ChangeLogView-DUpaLhCQ.js → ChangeLogView-HFwW5jFS.js} +1 -1
  3. package/dist/{ComponentDoc-DX-G36XL.js → ComponentDoc-1MqSLWYZ.js} +3 -3
  4. package/dist/{InvitationManagementPage-I8MOZm3P.js → InvitationManagementPage-Cr-ZfRfP.js} +1 -1
  5. package/dist/{OnboardingPage-AaBeXdmN.js → OnboardingPage-aBDnv1br.js} +2 -2
  6. package/dist/{ScheduledTasks-BL_8NPGL.js → ScheduledTasks-6b75xdT4.js} +9 -9
  7. package/dist/{SettingsModal-CGAZqXe4.js → SettingsModal-DJluQ-7A.js} +4 -4
  8. package/dist/{SystemShell-CaVgXHac.js → SystemShell-CPIIDTN9.js} +7 -7
  9. package/dist/{admin-logs-B9buBCgA.js → admin-logs-BU63jDHc.js} +1 -1
  10. package/dist/{api-ZYYxC97k.js → api-DK1rlwPo.js} +1 -1
  11. package/dist/{api-BmkkjjsH.js → api-tut2T9fB.js} +1 -1
  12. package/dist/{browser-C0gbH8ge.js → browser-CoooKZZw.js} +1 -1
  13. package/dist/{createWorkspaceWsHandler-MqWCJ3KJ.js → createWorkspaceWsHandler-BuuDQMIL.js} +3 -3
  14. package/dist/{index-DKB_9Pt2.js → index-B3UjZgp6.js} +2 -2
  15. package/dist/{index-B2y5hSr-.js → index-BKLPQ_1t.js} +6 -6
  16. package/dist/{index-x-bISlja.js → index-BaoYqcFV.js} +2 -2
  17. package/dist/{index-DbWXIpT-.js → index-Bc_VkMR0.js} +1 -1
  18. package/dist/{index-kY06f1E0.js → index-BwCdeFmo.js} +1 -1
  19. package/dist/{index-BVNGvh47.js → index-CBmwBMSS.js} +2 -2
  20. package/dist/{index-Bd-Cv2QM.js → index-CCSjX5RW.js} +3 -3
  21. package/dist/{index-BnHTn8Xs.js → index-CIqUH6lF.js} +2 -2
  22. package/dist/{index-TaTPCmzs.js → index-CNJFGglP.js} +4 -4
  23. package/dist/{index-DUhw_cyy.js → index-CRJ7g49y.js} +1 -1
  24. package/dist/{index-DmFsawHq.js → index-CWnzB5nO.js} +2 -2
  25. package/dist/{index-Bflp4ZlY.js → index-CcWZPt-a.js} +3 -3
  26. package/dist/{index-CWaHhvIE.js → index-D4ccK7_i.js} +4 -4
  27. package/dist/{index-C5sKclSK.js → index-DYB_FsC1.js} +1 -1
  28. package/dist/{index-4DweUdei.js → index-Dcf6XCUX.js} +2 -2
  29. package/dist/{index-B7XLCmXb.js → index-Dkcr91uI.js} +1 -1
  30. package/dist/{index-5JrzKWwz.js → index-Dscoztqc.js} +4 -4
  31. package/dist/{index-aC6vnN6n.js → index-Du3Rcopi.js} +12209 -12179
  32. package/dist/{index-BvMBUz-F.js → index-DxmmcPSo.js} +2482 -2482
  33. package/dist/{index-D4e8DuEX.js → index-JcU-rY90.js} +1 -1
  34. package/dist/index-hSO7UHWv.js +144 -0
  35. package/dist/{index-9op0-8ql.js → index-oReOVtE4.js} +1 -1
  36. package/dist/{index-BUj4F26q.js → index-p9eV6i4y.js} +2 -2
  37. package/dist/{index-DC8RZCnW.js → index-rOPknlMc.js} +2 -2
  38. package/dist/{index-D9d8bgEi.js → index-zxi5p5_e.js} +3 -3
  39. package/dist/index.js +1 -1
  40. package/dist/{instance-DxbL4Bbl.js → instance-C4dkf01H.js} +1 -1
  41. package/dist/{menuPermission-DPK7_dTG.js → menuPermission-hi4P1xfZ.js} +3 -3
  42. package/dist/pages.js +1 -1
  43. package/dist/{send-default-agent-team-message-BTBYYybd.js → send-default-agent-team-message-Dsm8_KkW.js} +1 -1
  44. package/dist/{spark-md5-g8UkrRCx.js → spark-md5-DwriIByP.js} +1 -1
  45. package/dist/{training-B_3o23mq.js → training-DfgZ8skL.js} +1 -1
  46. package/dist/{webide-Bnacw27I.js → webide-DYqOE1KL.js} +3 -3
  47. package/package.json +3 -3
  48. package/dist/index-BQq61T-r.js +0 -136
@@ -1,4 +1,4 @@
1
- import { a as h, f as _, B as N, G as A, t as g } from "./ComponentDoc-DX-G36XL.js";
1
+ import { a as h, f as _, B as N, G as A, t as g } from "./ComponentDoc-1MqSLWYZ.js";
2
2
  import { jsx as p, jsxs as I } from "react/jsx-runtime";
3
3
  import { useMemo as S, useState as C, useEffect as G, Component as L } from "react";
4
4
  function $(t) {
@@ -0,0 +1,144 @@
1
+ import { jsxs as f, jsx as n } from "react/jsx-runtime";
2
+ import { useMemo as m, useCallback as N, useEffect as S } from "react";
3
+ import { useNavigate as x, useLocation as g } from "react-router-dom";
4
+ import { AppstoreOutlined as b, DatabaseOutlined as B, TableOutlined as v, HomeOutlined as L, DashboardOutlined as A, RobotOutlined as w, FunctionOutlined as M, ApartmentOutlined as I, EyeOutlined as W, BranchesOutlined as E, DeploymentUnitOutlined as G, SafetyCertificateOutlined as R, RocketOutlined as U } from "@ant-design/icons";
5
+ import P from "@yuku123/z-lc-component";
6
+ import { GLOBAL_MENU_ITEMS as T } from "@yuku123/z-lc-component/menu";
7
+ import { f as q, M as C } from "./menuPermission-hi4P1xfZ.js";
8
+ import { u as $ } from "./ComponentDoc-1MqSLWYZ.js";
9
+ import { SidebarShell as D, MenuTree as K } from "@yuku123/z-frontend-common/ui";
10
+ const j = "_shellWrap_kxkvd_7", Y = "_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 = {
11
+ shellWrap: j,
12
+ shell: Y,
13
+ productBanner: F,
14
+ productBannerLabel: H,
15
+ productBannerName: z,
16
+ productBannerCode: J,
17
+ productBannerBack: Q,
18
+ main: V
19
+ }, h = "/lc", X = {
20
+ apps: /* @__PURE__ */ n(b, {}),
21
+ designer: /* @__PURE__ */ n(v, {}),
22
+ "db-import": /* @__PURE__ */ n(B, {})
23
+ }, Z = /* @__PURE__ */ new Set(["apps", "designer", "db-import", "admin", "docs"]);
24
+ function ee(e, t) {
25
+ if (!e.startsWith(h)) return null;
26
+ const o = e.slice(h.length).replace(/^\//, "").split("/").filter(Boolean);
27
+ return o[0] === "designer" && o[1] ? o[1] : o[0] && !Z.has(o[0]) ? o[0] : new URLSearchParams(t.startsWith("?") ? t.slice(1) : t).get("appCode") || null;
28
+ }
29
+ function te(e) {
30
+ const t = `?appCode=${encodeURIComponent(e)}`;
31
+ return [
32
+ { key: `${e}:overview`, label: "应用概览", icon: /* @__PURE__ */ n(L, {}), path: e },
33
+ { key: `${e}:dashboard`, label: "仪表盘", icon: /* @__PURE__ */ n(A, {}), path: `${e}/dashboard` },
34
+ { key: `${e}:designer`, label: "Schema 设计器", icon: /* @__PURE__ */ n(v, {}), path: `designer/${e}` },
35
+ { key: `${e}:db-import`, label: "从数据库导入", icon: /* @__PURE__ */ n(B, {}), path: `db-import${t}` },
36
+ { key: `${e}:ai`, label: "AI 建模", icon: /* @__PURE__ */ n(w, {}), path: `admin/ai${t}` },
37
+ { key: `${e}:dicts`, label: "数据字典", icon: /* @__PURE__ */ n(M, {}), path: `admin/dicts${t}` },
38
+ { key: `${e}:relations`, label: "实体关系", icon: /* @__PURE__ */ n(I, {}), path: `admin/relations${t}` },
39
+ { key: `${e}:views`, label: "视图配置", icon: /* @__PURE__ */ n(W, {}), path: `admin/views${t}` },
40
+ { key: `${e}:pipelines`, label: "Pipeline", icon: /* @__PURE__ */ n(E, {}), path: `admin/pipelines${t}` },
41
+ { key: `${e}:workflows`, label: "流程绑定", icon: /* @__PURE__ */ n(G, {}), path: `admin/workflows${t}` },
42
+ { key: `${e}:permissions`, label: "权限矩阵", icon: /* @__PURE__ */ n(R, {}), path: `admin/permissions${t}`, permission: "PERMISSION_MANAGE" },
43
+ { key: `${e}:deployments`, label: "部署记录", icon: /* @__PURE__ */ n(U, {}), path: `admin/deployments${t}` }
44
+ ];
45
+ }
46
+ function ne(e) {
47
+ const t = T.map((r) => ({
48
+ key: r.key,
49
+ label: r.label,
50
+ icon: X[r.key] ?? /* @__PURE__ */ n(b, {}),
51
+ path: r.path
52
+ }));
53
+ return e && t.push({
54
+ key: e,
55
+ label: e,
56
+ icon: /* @__PURE__ */ n(b, {}),
57
+ children: te(e)
58
+ }), [{ title: "应用", icon: /* @__PURE__ */ n(b, {}), items: t }];
59
+ }
60
+ function re(e, t, r, o) {
61
+ if (!e.path) return !1;
62
+ const l = e.path.indexOf("?"), a = l >= 0 ? e.path.slice(0, l) : e.path;
63
+ return (o ? t === a : t === a || t.startsWith(`${a}/`)) ? l >= 0 ? new URLSearchParams(e.path.slice(l + 1)).get("appCode") === r : !0 : !1;
64
+ }
65
+ function ae(e, t, r, o) {
66
+ if (!t.startsWith(h)) return null;
67
+ const l = t.slice(h.length).replace(/^\//, ""), a = e.flatMap(
68
+ (u) => u.items.flatMap((c) => c.children ? [c, ...c.children] : [c])
69
+ );
70
+ for (const u of [!0, !1])
71
+ for (const c of a)
72
+ if (re(c, l, o, u)) return c.key;
73
+ return null;
74
+ }
75
+ function he() {
76
+ const e = x(), { pathname: t, search: r } = g(), o = $((s) => s.currentUser), l = $((s) => s.permissionState), a = m(() => {
77
+ try {
78
+ const s = new URLSearchParams(r), i = s.get("product");
79
+ return i ? { code: i, name: s.get("productName") || i } : null;
80
+ } catch {
81
+ return null;
82
+ }
83
+ }, [r]), u = N(() => {
84
+ if (!a) return;
85
+ const s = new URLSearchParams();
86
+ s.set("product", a.code), a.name && s.set("productName", a.name), e(`/product?${s.toString()}`);
87
+ }, [a, e]);
88
+ S(() => {
89
+ t.startsWith("/lc") || e(`/lc/apps${r || ""}`, { replace: !0 });
90
+ }, [t, r, e]);
91
+ const c = m(() => ee(t, r), [t, r]), _ = m(() => ne(c), [c]), k = m(
92
+ () => l === "failed" ? _ : q(_, o),
93
+ [_, o, l]
94
+ ), y = m(
95
+ () => ae(k, t, r, c),
96
+ [k, t, r, c]
97
+ ), O = m(
98
+ () => k.map((s) => ({
99
+ key: s.title,
100
+ title: s.title,
101
+ items: s.items.map((i) => ({
102
+ key: i.key,
103
+ label: i.label,
104
+ icon: i.icon,
105
+ active: y === i.key,
106
+ onClick: i.path ? () => e(`${h}/${i.path}`) : void 0,
107
+ children: i.children ? i.children.map((d) => ({
108
+ key: d.key,
109
+ label: d.label,
110
+ icon: d.icon,
111
+ active: y === d.key,
112
+ onClick: d.path ? () => e(`${h}/${d.path}`) : void 0
113
+ })) : void 0
114
+ }))
115
+ })),
116
+ [k, y, e]
117
+ );
118
+ return /* @__PURE__ */ f("div", { className: p.shellWrap, children: [
119
+ a && /* @__PURE__ */ f("div", { className: p.productBanner, children: [
120
+ /* @__PURE__ */ n("span", { className: p.productBannerLabel, children: "📦 当前产品" }),
121
+ /* @__PURE__ */ n("span", { className: p.productBannerName, title: a.name, children: a.name }),
122
+ /* @__PURE__ */ n("span", { className: p.productBannerCode, children: a.code }),
123
+ /* @__PURE__ */ n("button", { type: "button", className: p.productBannerBack, onClick: u, children: "← 返回产品工作台" })
124
+ ] }),
125
+ /* @__PURE__ */ f("div", { className: p.shell, children: [
126
+ /* @__PURE__ */ f(
127
+ D,
128
+ {
129
+ title: "研发工作台",
130
+ width: 220,
131
+ storageKey: "ft_dev_sidebar_collapsed",
132
+ children: [
133
+ /* @__PURE__ */ n(C, {}),
134
+ /* @__PURE__ */ n(K, { groups: O, defaultCollapsed: !0 })
135
+ ]
136
+ }
137
+ ),
138
+ /* @__PURE__ */ n("main", { className: p.main, children: /* @__PURE__ */ n(P, {}) })
139
+ ] })
140
+ ] });
141
+ }
142
+ export {
143
+ he as default
144
+ };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as N, useRef as _, useEffect as r, useCallback as h } from "react";
3
3
  import { h as o } from "./history-BlrA1eaW.js";
4
- import { C as A } from "./ChangeLogView-DUpaLhCQ.js";
4
+ import { C as A } from "./ChangeLogView-HFwW5jFS.js";
5
5
  const T = "_docs_3auja_12", p = "_bgLayer_3auja_59", v = "_bgGrid_3auja_70", y = "_navbar_3auja_87", f = "_navLeft_3auja_103", z = "_navBack_3auja_110", j = "_navBrand_3auja_132", C = "_navLogo_3auja_139", k = "_navTitle_3auja_154", L = "_navLink_3auja_164", I = "_layout_3auja_191", B = "_sidebar_3auja_202", S = "_sidebarInner_3auja_213", O = "_sidebarTitle_3auja_217", q = "_tocItem_3auja_227", P = "_tocActive_3auja_249", E = "_tocNum_3auja_260", D = "_content_3auja_275", G = "_section_3auja_285", K = "_secTitle_3auja_290", w = "_subTitle_3auja_301", M = "_lead_3auja_309", x = "_list_3auja_329", R = "_olist_3auja_360", Z = "_archLayer_3auja_397", F = "_archHead_3auja_412", W = "_archNum_3auja_420", H = "_archHeadText_3auja_432", Q = "_archLabel_3auja_439", U = "_archEn_3auja_446", V = "_archTagline_3auja_453", $ = "_callout_3auja_487", J = "_calloutBlue_3auja_488", Y = "_calloutGreen_3auja_489", X = "_calloutRed_3auja_490", ee = "_inlineCode_3auja_531", le = "_codeBlock_3auja_544", ne = "_tableWrap_3auja_560", ce = "_table_3auja_560", ae = "_tableKey_3auja_602", ie = "_tableIcon_3auja_607", te = "_statusDot_3auja_613", se = "_tone_pending_3auja_622", de = "_tone_running_3auja_626", re = "_tone_suspended_3auja_631", he = "_tone_done_3auja_636", oe = "_tone_failed_3auja_641", me = "_tone_cancelled_3auja_646", ge = "_markGood_3auja_652", ue = "_markBad_3auja_653", be = "_faqList_3auja_667", Ne = "_faqItem_3auja_673", _e = "_faqQ_3auja_687", Ae = "_faqA_3auja_694", Te = "_changelogEmbed_3auja_701", pe = "_changelogTip_3auja_709", ve = "_changelogLink_3auja_715", ye = "_docFooter_3auja_727", fe = "_backBtn_3auja_738", ze = "_docFooterText_3auja_761", l = {
6
6
  docs: T,
7
7
  bgLayer: p,
@@ -1,8 +1,8 @@
1
1
  import { jsxs as c, jsx as a } from "react/jsx-runtime";
2
2
  import v, { useState as d, useEffect as _, useMemo as h } from "react";
3
3
  import { useLocation as N } from "react-router-dom";
4
- import { H as b, I as g } from "./ComponentDoc-DX-G36XL.js";
5
- import { i as K, P as x } from "./index-D4e8DuEX.js";
4
+ import { H as b, I as g } from "./ComponentDoc-1MqSLWYZ.js";
5
+ import { i as K, P as x } from "./index-JcU-rY90.js";
6
6
  const E = "_banner_2v7mc_1", S = "_dot_2v7mc_18", f = "_text_2v7mc_26", A = "_retry_2v7mc_31", F = "_dismiss_2v7mc_44", P = "_details_2v7mc_57", k = "_method_2v7mc_85", C = "_status_2v7mc_86", D = "_statusNet_2v7mc_87", $ = "_url_2v7mc_88", e = {
7
7
  banner: E,
8
8
  dot: S,
@@ -1,6 +1,6 @@
1
1
  import { jsx as r, jsxs as x } from "react/jsx-runtime";
2
2
  import { f as z, r as T } from "./ctc-sso-Hj8fdMY0.js";
3
- import { u as s, j as D, r as F, k as U, l as W, m as B } from "./ComponentDoc-DX-G36XL.js";
3
+ import { u as s, j as D, r as F, k as U, l as W, m as B } from "./ComponentDoc-1MqSLWYZ.js";
4
4
  import { CheckCircleFilled as H } from "@ant-design/icons";
5
5
  import { Result as G, Button as J, Spin as K } from "antd";
6
6
  import O from "query-string";
@@ -8,7 +8,7 @@ import { useState as d, useRef as Q, useCallback as V, useMemo as R, useEffect a
8
8
  import { useLocation as X } from "react-router-dom";
9
9
  import { h as b } from "./history-BlrA1eaW.js";
10
10
  import { b as Y } from "./mobile-client-O3yr9h6t.js";
11
- import { s as Z } from "./send-default-agent-team-message-BTBYYybd.js";
11
+ import { s as Z } from "./send-default-agent-team-message-Dsm8_KkW.js";
12
12
  function pe() {
13
13
  const h = X(), f = O.parse(h.search), c = String(
14
14
  f.scenarioCode ?? f.scenario_code ?? ""
@@ -6,8 +6,8 @@ import { useState as T, useRef as ip, useEffect as $, useMemo as Bp, useCallback
6
6
  import Qp, { defaultUrlTransform as vA } from "react-markdown";
7
7
  import Yp from "rehype-highlight";
8
8
  import yp from "remark-gfm";
9
- import { a as pp, f as ap, B as Ap, G as tp, a9 as da, aa as FA, u as Gp } from "./ComponentDoc-DX-G36XL.js";
10
- import { M as Oa, O as dA, V as OA, X as RA, h as XA, Y as NA, _ as kA, $ as WA, a0 as DA, a1 as Vp, a2 as Ep, a3 as gp, a4 as _p, a5 as $p, a6 as uA, a7 as qA, a8 as mA, a9 as wA } from "./index-BvMBUz-F.js";
9
+ import { a as pp, f as ap, B as Ap, G as tp, a9 as da, aa as FA, u as Gp } from "./ComponentDoc-1MqSLWYZ.js";
10
+ import { M as Oa, O as dA, V as OA, X as RA, h as XA, Y as NA, _ as kA, $ as WA, a0 as DA, a1 as Vp, a2 as Ep, a3 as gp, a4 as _p, a5 as $p, a6 as uA, a7 as qA, a8 as mA, a9 as wA } from "./index-DxmmcPSo.js";
11
11
  import { h as K } from "./index.module-FP1W21Vy.js";
12
12
  async function BA(a = "") {
13
13
  const e = a ? `?token=${encodeURIComponent(a)}` : "", r = await pp(`${Ap}/learning/columns${e}`, ap);
@@ -1813,7 +1813,7 @@ const Bt = [
1813
1813
  draftDeleteBtn: W0,
1814
1814
  markdown: D0
1815
1815
  }, u0 = TA(
1816
- () => import("./index-4DweUdei.js").then((a) => ({ default: a.MarketContent }))
1816
+ () => import("./index-Dcf6XCUX.js").then((a) => ({ default: a.MarketContent }))
1817
1817
  );
1818
1818
  function q0(a) {
1819
1819
  const e = [], r = a.split(`
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-DX-G36XL.js";
1
+ import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-1MqSLWYZ.js";
2
2
  import { h as m } from "./history-BlrA1eaW.js";
3
3
  export {
4
4
  e as ComponentDocPage,
@@ -1,4 +1,4 @@
1
- import { a, f as c, B as o, b as r } from "./ComponentDoc-DX-G36XL.js";
1
+ import { a, f as c, B as o, b as r } from "./ComponentDoc-1MqSLWYZ.js";
2
2
  async function S(e, n = "") {
3
3
  const t = new URLSearchParams();
4
4
  n && t.set("token", n), e.scenario_code && t.set("scenario_code", e.scenario_code), e.status && t.set("status", e.status), e.name && t.set("name", e.name), e.role && t.set("role", e.role), e.create_time_start && t.set("create_time_start", e.create_time_start), e.create_time_end && t.set("create_time_end", e.create_time_end), t.set("page", String(e.page ?? 1)), t.set("size", String(e.size ?? 20));
@@ -1,8 +1,8 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { Alert as h } from "antd";
3
- import { u as d } from "./ComponentDoc-DX-G36XL.js";
4
- import { h as g } from "./index-D4e8DuEX.js";
5
- import { N as A } from "./index-BvMBUz-F.js";
3
+ import { u as d } from "./ComponentDoc-1MqSLWYZ.js";
4
+ import { h as g } from "./index-JcU-rY90.js";
5
+ import { N as A } from "./index-DxmmcPSo.js";
6
6
  function P() {
7
7
  return d((n) => n.permissionState) !== "failed" ? null : /* @__PURE__ */ a(
8
8
  h,
package/dist/pages.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as t, P as o, C as r, Z as a } from "./ComponentDoc-DX-G36XL.js";
1
+ import { S as t, P as o, C as r, Z as a } from "./ComponentDoc-1MqSLWYZ.js";
2
2
  import { createElement as e } from "react";
3
3
  import { BellOutlined as m, ProjectOutlined as p, DesktopOutlined as i, ReadOutlined as n } from "@ant-design/icons";
4
4
  import "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { s as l } from "./ComponentDoc-DX-G36XL.js";
1
+ import { s as l } from "./ComponentDoc-1MqSLWYZ.js";
2
2
  function m(o) {
3
3
  const n = o.filter((t) => t.member_type === "AGENT");
4
4
  return n.find((t) => t.is_default === !0) ?? n[0] ?? null;
@@ -1,4 +1,4 @@
1
- import { J as F } from "./ComponentDoc-DX-G36XL.js";
1
+ import { J as F } from "./ComponentDoc-1MqSLWYZ.js";
2
2
  function L(l, d) {
3
3
  for (var y = 0; y < d.length; y++) {
4
4
  const s = d[y];
@@ -1,4 +1,4 @@
1
- import { a as g, f, B as y, b as m } from "./ComponentDoc-DX-G36XL.js";
1
+ import { a as g, f, B as y, b as m } from "./ComponentDoc-1MqSLWYZ.js";
2
2
  function t(n, a = "") {
3
3
  const i = new URLSearchParams();
4
4
  Object.entries(n).forEach(([u, o]) => {
@@ -6,9 +6,9 @@ import pa from "react-markdown";
6
6
  import fa from "rehype-highlight";
7
7
  import ha from "remark-gfm";
8
8
  import { h as ya } from "./history-BlrA1eaW.js";
9
- import { a as v, f as g, B as C, b as S, u as er, v as yt, a9 as ga, t as et, e as _a, ab as ba, ac as On, ad as va, ae as tr } from "./ComponentDoc-DX-G36XL.js";
10
- import { f as wa, a as Sa, u as En, b as Na, c as Ca, r as ka, d as Ta, e as Ia, g as $a, h as xa, m as La } from "./admin-logs-B9buBCgA.js";
11
- import { a as Da, f as Aa, c as Ra } from "./index-D4e8DuEX.js";
9
+ import { a as v, f as g, B as C, b as S, u as er, v as yt, a9 as ga, t as et, e as _a, ab as ba, ac as On, ad as va, ae as tr } from "./ComponentDoc-1MqSLWYZ.js";
10
+ import { f as wa, a as Sa, u as En, b as Na, c as Ca, r as ka, d as Ta, e as Ia, g as $a, h as xa, m as La } from "./admin-logs-BU63jDHc.js";
11
+ import { a as Da, f as Aa, c as Ra } from "./index-JcU-rY90.js";
12
12
  import { findTodosLinkedToNote as Oa, buildTodoProjectContext as Ea, linkedTodoChipLabel as Pa } from "@yuku123/z-task-component";
13
13
  import Ce from "dayjs";
14
14
  import "./echarts-B1OU1xr4.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuku123/z-team-component",
3
- "version": "0.2.175",
3
+ "version": "0.2.177",
4
4
  "description": "z-team 团队工作台组件层(lead 005 §8.7:403 文件整体接管,含 pages/workspace/ 系统模式集成 shell)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -73,7 +73,7 @@
73
73
  "@yuku123/z-frontend-markdown": "^0.1.0",
74
74
  "@yuku123/z-graph-component": "^0.1.0",
75
75
  "@yuku123/z-gw-component": "^0.1.0",
76
- "@yuku123/z-lc-component": "^0.1.1",
76
+ "@yuku123/z-lc-component": "^0.1.8",
77
77
  "@yuku123/z-meta-component": "^0.1.0",
78
78
  "@yuku123/z-mist-component": "^0.1.0",
79
79
  "@yuku123/z-mq-component": "^0.1.0",
@@ -82,7 +82,7 @@
82
82
  "@yuku123/z-ops-frontend-component": "^0.2.11",
83
83
  "@yuku123/z-oss-component": "^0.1.0",
84
84
  "@yuku123/z-product-component": "^0.3.8",
85
- "@yuku123/z-qa-component": "^0.1.9",
85
+ "@yuku123/z-qa-component": "^0.1.11",
86
86
  "@yuku123/z-rpc-component": "^0.1.0",
87
87
  "@yuku123/z-schedule-component": "^0.1.0",
88
88
  "@yuku123/z-skill-component": "^0.1.4",
@@ -1,136 +0,0 @@
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-DPK7_dTG.js";
7
- import { u as _ } from "./ComponentDoc-DX-G36XL.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(`/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
- };