@yuku123/z-team-component 0.2.59 → 0.2.60

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 (52) hide show
  1. package/dist/{ChangeLogView-Cstbioyw.js → ChangeLogView-VRWVzP0r.js} +1 -1
  2. package/dist/{ComponentDoc-Bx6NAJlK.js → ComponentDoc-DjfucAFW.js} +1497 -1387
  3. package/dist/{InvitationManagementPage-Gkqisq4C.js → InvitationManagementPage-BQ_4HcPk.js} +1 -1
  4. package/dist/{OnboardingPage-C7C4PEjn.js → OnboardingPage-DM8emo6P.js} +2 -2
  5. package/dist/{ScheduledTasks-BQRcjBOd.js → ScheduledTasks-BYxdbsSa.js} +8 -8
  6. package/dist/SystemShell-BEdMWZ8d.js +670 -0
  7. package/dist/{admin-logs-B9KS6VJz.js → admin-logs-DCYof_u5.js} +2 -2
  8. package/dist/{api-Y-52Ejhz.js → api-Bz4pq8m7.js} +1 -1
  9. package/dist/{api-CALqShkO.js → api-DWt94BcM.js} +584 -572
  10. package/dist/{createWorkspaceWsHandler-DP30xvug.js → createWorkspaceWsHandler-3aHkBZE9.js} +4 -4
  11. package/dist/{index-4YxdJwFm.js → index-4LNRkvy6.js} +3 -3
  12. package/dist/{index-DfQCaS0z.js → index-BHUK6MwQ.js} +248 -244
  13. package/dist/{index-C2Wkg1b5.js → index-BIdcTXZW.js} +3 -3
  14. package/dist/index-BVEvns4M.js +2858 -0
  15. package/dist/{index-m8V5TniT.js → index-BVh0W8ck.js} +15861 -15586
  16. package/dist/{index-Bpn6x1So.js → index-C0rbeCoZ.js} +12 -12
  17. package/dist/{index-8gCovDDT.js → index-C6jp_1-U.js} +6 -6
  18. package/dist/index-CQSTQAPg.js +112 -0
  19. package/dist/{index-lftFkqfI.js → index-CTKf6h2u.js} +4 -4
  20. package/dist/{index-BvTYVEEv.js → index-Cf7WJqfM.js} +20 -16
  21. package/dist/{index-CO6WYRIS.js → index-Cip94Q-G.js} +3 -3
  22. package/dist/{index-DKeYG0Fu.js → index-CrIIInfs.js} +4 -4
  23. package/dist/{index-DJ0FV74Y.js → index-DbEvwIck.js} +3 -3
  24. package/dist/{index-CLWgeKwr.js → index-DtVBFjaJ.js} +2 -2
  25. package/dist/{index-CGWttFLb.js → index-Dvhocfyo.js} +4 -4
  26. package/dist/index-DyE5noq6.js +118 -0
  27. package/dist/{index-Gt21FARO.js → index-KqKj9E7y.js} +3 -3
  28. package/dist/{index-aw72ID7y.js → index-NPxrK-81.js} +1 -1
  29. package/dist/{index-CinRd7Nz.js → index-VY-pgcyl.js} +1 -1
  30. package/dist/{index-DJOyOVn_.js → index-VxO9i5r6.js} +1 -1
  31. package/dist/{index-63ovR-_x.js → index-_gGu4e-w.js} +1 -1
  32. package/dist/{index-C3B7CbHo.js → index-bsGAZKaU.js} +624 -613
  33. package/dist/{index-CN9NsUQ6.js → index-eGX5rkV8.js} +5 -5
  34. package/dist/{index-DET70T3j.js → index-i6Ejgpao.js} +1 -1
  35. package/dist/index-ncjLe3A0.js +93 -0
  36. package/dist/index.js +1 -1
  37. package/dist/{instance-f3C-1qYl.js → instance-CbkHlDr4.js} +1 -1
  38. package/dist/menuPermission-BWqugXIc.js +60 -0
  39. package/dist/pages.js +1 -1
  40. package/dist/schedule-BRvmKoDG.js +587 -0
  41. package/dist/{send-default-agent-team-message-d_ECdczr.js → send-default-agent-team-message-8wnVWO7H.js} +1 -1
  42. package/dist/{sso-user-HcsSzg8P.js → sso-user-QZNVhjpR.js} +1 -1
  43. package/dist/{training-DnNQN0An.js → training-DYo1pvX7.js} +1 -1
  44. package/dist/{useAppStore-kRZEA5WZ.js → useAppStore-BGOxWep2.js} +6 -2
  45. package/dist/{webide-BcRzJX-h.js → webide-CWTbQs4I.js} +4 -4
  46. package/dist/z-team-component.css +2 -2
  47. package/package.json +1 -1
  48. package/dist/SystemShell-Df9PZzLO.js +0 -907
  49. package/dist/index-Bw9yypc4.js +0 -2841
  50. package/dist/index-C0EIMJI2.js +0 -112
  51. package/dist/index-DRrBkbr_.js +0 -100
  52. package/dist/schedule-DfkgwPdE.js +0 -497
@@ -1,112 +0,0 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { useState as _, useMemo as h } from "react";
3
- import { useNavigate as S, useLocation as I } from "react-router-dom";
4
- import { CodeOutlined as y, DownOutlined as f, RightOutlined as k, AppstoreOutlined as L, TableOutlined as G, DatabaseOutlined as O, RobotOutlined as v, FunctionOutlined as N, ApartmentOutlined as w, EyeOutlined as A, BranchesOutlined as H, DeploymentUnitOutlined as d, SafetyCertificateOutlined as W } from "@ant-design/icons";
5
- import C from "@yuku123/z-lc-component";
6
- const $ = "_shell_1n5c7_7", g = "_sidebar_1n5c7_15", x = "_sidebarHeader_1n5c7_26", D = "_menuList_1n5c7_37", R = "_menuGroup_1n5c7_43", M = "_menuGroupHeader_1n5c7_47", U = "_menuGroupLabel_1n5c7_65", j = "_menuGroupArrow_1n5c7_69", E = "_menuSubList_1n5c7_74", K = "_menuSubItemWrap_1n5c7_80", P = "_menuSubItem_1n5c7_80", T = "_menuSubItemActive_1n5c7_101", B = "_menuSubItemIcon_1n5c7_108", F = "_menuSubItemLabel_1n5c7_113", q = "_main_1n5c7_118", n = {
7
- shell: $,
8
- sidebar: g,
9
- sidebarHeader: x,
10
- menuList: D,
11
- menuGroup: R,
12
- menuGroupHeader: M,
13
- menuGroupLabel: U,
14
- menuGroupArrow: j,
15
- menuSubList: E,
16
- menuSubItemWrap: K,
17
- menuSubItem: P,
18
- menuSubItemActive: T,
19
- menuSubItemIcon: B,
20
- menuSubItemLabel: F,
21
- main: q
22
- }, o = [
23
- {
24
- title: "应用",
25
- items: [
26
- { key: "apps", label: "应用列表", icon: /* @__PURE__ */ e(L, {}), path: "apps" }
27
- ]
28
- },
29
- {
30
- title: "建模",
31
- items: [
32
- { key: "designer", label: "Schema 设计器", icon: /* @__PURE__ */ e(G, {}), path: "designer" },
33
- { key: "db-import", label: "从数据库导入", icon: /* @__PURE__ */ e(O, {}), path: "db-import" },
34
- { key: "admin-ai", label: "AI 建模", icon: /* @__PURE__ */ e(v, {}), path: "admin/ai" }
35
- ]
36
- },
37
- {
38
- title: "配置",
39
- items: [
40
- { key: "admin-dicts", label: "数据字典", icon: /* @__PURE__ */ e(N, {}), path: "admin/dicts" },
41
- { key: "admin-relations", label: "实体关系", icon: /* @__PURE__ */ e(w, {}), path: "admin/relations" },
42
- { key: "admin-views", label: "视图配置", icon: /* @__PURE__ */ e(A, {}), path: "admin/views" },
43
- { key: "admin-pipelines", label: "Pipeline", icon: /* @__PURE__ */ e(H, {}), path: "admin/pipelines" },
44
- { key: "admin-workflows", label: "流程绑定", icon: /* @__PURE__ */ e(d, {}), path: "admin/workflows" }
45
- ]
46
- },
47
- {
48
- title: "运行",
49
- items: [
50
- { key: "admin-permissions", label: "权限矩阵", icon: /* @__PURE__ */ e(W, {}), path: "admin/permissions" },
51
- { key: "admin-deployments", label: "部署记录", icon: /* @__PURE__ */ e(d, {}), path: "admin/deployments" }
52
- ]
53
- }
54
- ], r = "/lc";
55
- function z(l) {
56
- if (!l.startsWith(r)) return null;
57
- const s = l.slice(r.length).replace(/^\//, "");
58
- for (const c of o)
59
- for (const m of c.items)
60
- if (s === m.path || s.startsWith(`${m.path}/`)) return m.key;
61
- return null;
62
- }
63
- function Z() {
64
- const l = S(), { pathname: s } = I(), [c, m] = _(
65
- new Set(o.map((t) => t.title))
66
- ), p = h(() => z(s), [s]), b = (t) => {
67
- m((u) => {
68
- const a = new Set(u);
69
- return a.has(t) ? a.delete(t) : a.add(t), a;
70
- });
71
- };
72
- return /* @__PURE__ */ i("div", { className: n.shell, children: [
73
- /* @__PURE__ */ i("aside", { className: n.sidebar, children: [
74
- /* @__PURE__ */ i("div", { className: n.sidebarHeader, children: [
75
- /* @__PURE__ */ e(y, {}),
76
- /* @__PURE__ */ e("span", { children: "研发工作台" })
77
- ] }),
78
- /* @__PURE__ */ e("nav", { className: n.menuList, children: o.map((t) => {
79
- const u = !c.has(t.title);
80
- return /* @__PURE__ */ i("div", { className: n.menuGroup, children: [
81
- /* @__PURE__ */ i(
82
- "div",
83
- {
84
- className: n.menuGroupHeader,
85
- onClick: () => b(t.title),
86
- children: [
87
- /* @__PURE__ */ e("span", { className: n.menuGroupLabel, children: t.title }),
88
- /* @__PURE__ */ e("span", { className: n.menuGroupArrow, children: u ? /* @__PURE__ */ e(f, {}) : /* @__PURE__ */ e(k, {}) })
89
- ]
90
- }
91
- ),
92
- u && /* @__PURE__ */ e("ul", { className: n.menuSubList, children: t.items.map((a) => /* @__PURE__ */ i(
93
- "li",
94
- {
95
- className: `${n.menuSubItemWrap} ${n.menuSubItem} ${p === a.key ? n.menuSubItemActive : ""}`,
96
- onClick: () => l(`${r}/${a.path}`),
97
- children: [
98
- /* @__PURE__ */ e("span", { className: n.menuSubItemIcon, children: a.icon }),
99
- /* @__PURE__ */ e("span", { className: n.menuSubItemLabel, children: a.label })
100
- ]
101
- },
102
- a.key
103
- )) })
104
- ] }, t.title);
105
- }) })
106
- ] }),
107
- /* @__PURE__ */ e("main", { className: n.main, children: /* @__PURE__ */ e(C, {}) })
108
- ] });
109
- }
110
- export {
111
- Z as default
112
- };
@@ -1,100 +0,0 @@
1
- import { jsxs as a, jsx as t } from "react/jsx-runtime";
2
- import { useState as f, useMemo as p } from "react";
3
- import { useNavigate as y, useLocation as L } from "react-router-dom";
4
- import { DownOutlined as N, RightOutlined as x } from "@ant-design/icons";
5
- const v = "_shell_92w2c_7", A = "_sidebar_92w2c_15", k = "_menuList_92w2c_37", W = "_menuGroup_92w2c_43", $ = "_menuGroupHeader_92w2c_47", E = "_menuGroupIcon_92w2c_65", H = "_menuGroupLabel_92w2c_70", T = "_menuGroupArrow_92w2c_74", g = "_menuSubList_92w2c_80", C = "_menuSubItem_92w2c_86", j = "_menuSubItemActive_92w2c_103", z = "_menuSubItemIcon_92w2c_110", R = "_menuSubItemLabel_92w2c_115", Z = "_menuSubItemWrap_92w2c_119", D = "_main_92w2c_123", K = "_empty_92w2c_130", M = "_emptyIcon_92w2c_140", O = "_emptyText_92w2c_145", e = {
6
- shell: v,
7
- sidebar: A,
8
- menuList: k,
9
- menuGroup: W,
10
- menuGroupHeader: $,
11
- menuGroupIcon: E,
12
- menuGroupLabel: H,
13
- menuGroupArrow: T,
14
- menuSubList: g,
15
- menuSubItem: C,
16
- menuSubItemActive: j,
17
- menuSubItemIcon: z,
18
- menuSubItemLabel: R,
19
- menuSubItemWrap: Z,
20
- main: D,
21
- empty: K,
22
- emptyIcon: M,
23
- emptyText: O
24
- };
25
- function q(m, o) {
26
- for (const u of m)
27
- if (u.path === o) return u.element;
28
- for (const u of m)
29
- if (u.path.includes("*") || u.path.includes(":")) {
30
- const l = "^" + u.path.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*").replace(/:([a-zA-Z_][a-zA-Z0-9_]*)/g, "[^/]+") + "$";
31
- if (new RegExp(l).test(o)) return u.element;
32
- }
33
- return null;
34
- }
35
- function B({ text: m }) {
36
- return /* @__PURE__ */ a("div", { className: e.empty, children: [
37
- /* @__PURE__ */ t("div", { className: e.emptyIcon, children: "⚙️" }),
38
- /* @__PURE__ */ t("div", { className: e.emptyText, children: m })
39
- ] });
40
- }
41
- function U({
42
- groups: m,
43
- routes: o,
44
- mode: u,
45
- emptyText: l,
46
- activePathOverride: i,
47
- menuOnly: _ = !1
48
- }) {
49
- const d = y(), { pathname: r } = L(), [b, h] = f(
50
- new Set(m.map((n) => n.title))
51
- ), I = p(() => {
52
- const n = i ?? r;
53
- for (const s of m)
54
- for (const c of s.items)
55
- if (c.path === n) return c.key;
56
- return null;
57
- }, [m, i, r]), S = (n) => {
58
- h((s) => {
59
- const c = new Set(s);
60
- return c.has(n) ? c.delete(n) : c.add(n), c;
61
- });
62
- }, w = (n) => {
63
- d(`${n.path}?mode=${u}`);
64
- }, G = p(() => q(o, r), [o, r]);
65
- return /* @__PURE__ */ a("div", { className: e.shell, children: [
66
- /* @__PURE__ */ t("aside", { className: e.sidebar, children: /* @__PURE__ */ t("nav", { className: e.menuList, children: m.map((n) => {
67
- const s = b.has(n.title);
68
- return /* @__PURE__ */ a("div", { className: e.menuGroup, children: [
69
- /* @__PURE__ */ a(
70
- "div",
71
- {
72
- className: e.menuGroupHeader,
73
- onClick: () => S(n.title),
74
- children: [
75
- /* @__PURE__ */ t("span", { className: e.menuGroupIcon, children: n.icon }),
76
- /* @__PURE__ */ t("span", { className: e.menuGroupLabel, children: n.title }),
77
- /* @__PURE__ */ t("span", { className: e.menuGroupArrow, children: s ? /* @__PURE__ */ t(N, {}) : /* @__PURE__ */ t(x, {}) })
78
- ]
79
- }
80
- ),
81
- s && /* @__PURE__ */ t("ul", { className: e.menuSubList, children: n.items.map((c) => /* @__PURE__ */ a(
82
- "li",
83
- {
84
- className: `${e.menuSubItemWrap} ${e.menuSubItem} ${I === c.key ? e.menuSubItemActive : ""}`,
85
- onClick: () => w(c),
86
- children: [
87
- /* @__PURE__ */ t("span", { className: e.menuSubItemIcon, children: c.icon }),
88
- /* @__PURE__ */ t("span", { className: e.menuSubItemLabel, children: c.label })
89
- ]
90
- },
91
- c.key
92
- )) })
93
- ] }, n.title);
94
- }) }) }),
95
- _ ? null : /* @__PURE__ */ t("main", { className: e.main, children: G ?? /* @__PURE__ */ t(B, { text: l }) })
96
- ] });
97
- }
98
- export {
99
- U as W
100
- };