@yuku123/z-team-component 0.2.52 → 0.2.53
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/{ChangeLogView-nPAmM1X0.js → ChangeLogView-Dm7C3S14.js} +1 -1
- package/dist/{ComponentDoc-Cky9jCGu.js → ComponentDoc-y1NfPcHG.js} +506 -461
- package/dist/{InvitationManagementPage-BsbaIGvB.js → InvitationManagementPage-Btw9iVOl.js} +1 -1
- package/dist/{OnboardingPage-CHVgeBiO.js → OnboardingPage-wF0OrgfD.js} +2 -2
- package/dist/ScheduledTasks-CzzgG3n8.js +9417 -0
- package/dist/{SystemShell-4OiqvM11.js → SystemShell-BSCmnOxf.js} +1 -1
- package/dist/{admin-logs-D6HtRcK6.js → admin-logs-vR556ORQ.js} +2 -2
- package/dist/{api-BT968Uwc.js → api-Bs0qYxjL.js} +1 -1
- package/dist/{api-C78tCfne.js → api-Jfnj1ybB.js} +287 -270
- package/dist/createWorkspaceWsHandler-obuYWncQ.js +12820 -0
- package/dist/{index-BAY37t4f.js → index-B3LhKHBx.js} +4 -4
- package/dist/{index-CR3sbzOU.js → index-BNShjps9.js} +7 -7
- package/dist/{index-DxFZKDq-.js → index-BXiuxhgz.js} +6 -6
- package/dist/{index-CdlfWFvS.js → index-BbkE7r8M.js} +1 -1
- package/dist/index-BtWtVMgY.js +474 -0
- package/dist/{index-DpcrvKsK.js → index-C5WSr14Z.js} +1 -1
- package/dist/{index-D9AqC2O-.js → index-CYViRXQo.js} +1 -1
- package/dist/{index-Bdu31aRV.js → index-Ck_D109M.js} +2 -2
- package/dist/index-CnEWSsKt.js +582 -0
- package/dist/{index-B11_fFjX.js → index-CxrBnzg2.js} +1 -1
- package/dist/index-DRrBkbr_.js +100 -0
- package/dist/index-DUmgSTQu.js +9179 -0
- package/dist/index-DWsfQMp8.js +208 -0
- package/dist/{index-LwKUkzKI.js → index-Di_vaPxC.js} +3 -3
- package/dist/{index-B_C7H9WL.js → index-Dj5_8ulz.js} +5 -5
- package/dist/{index-qK6pyAGy.js → index-DmZdGNnh.js} +4 -4
- package/dist/index-DqUOCs_a.js +242 -0
- package/dist/{index-DFY3lzq0.js → index-DroZE6Bv.js} +3 -3
- package/dist/{index-BAK7UDvY.js → index-JLtVgwZv.js} +1 -1
- package/dist/index-Onqu_VQO.js +2828 -0
- package/dist/index-Pk7OkJrk.js +1133 -0
- package/dist/index-WIsi8fln.js +339 -0
- package/dist/{index-ClA0896K.js → index-gxEdw4X4.js} +4 -4
- package/dist/index-tADa82Fa.js +130 -0
- package/dist/{index-BX1Wd9x9.js → index-yS7XIUis.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/{instance-D5dhjbgg.js → instance-B0DZJnee.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/schedule-D3jTrI1R.js +497 -0
- package/dist/{send-default-agent-team-message-C882sJLV.js → send-default-agent-team-message-CbqHaohM.js} +1 -1
- package/dist/{sso-user-Bi9_l9yi.js → sso-user-Dw_wwYa-.js} +1 -1
- package/dist/{training-Ba09KItE.js → training-CETtJBNQ.js} +1 -1
- package/dist/{useAppStore-ibJyVIAX.js → useAppStore-s-CLa-nF.js} +19 -19
- package/dist/webide-6j4OVoNA.js +7845 -0
- package/dist/z-team-component.css +2 -2
- package/package.json +1 -1
- package/dist/createWorkspaceWsHandler-mq-UTF2O.js +0 -13028
- package/dist/index-7nSly-MA.js +0 -405
- package/dist/index-B3-0eXYQ.js +0 -844
- package/dist/index-Cp3DAwNx.js +0 -13862
- package/dist/index-NaBR2aQE.js +0 -6685
- package/dist/index-UsGqMo11.js +0 -848
- package/dist/schedule-C-4ksDPw.js +0 -239
- package/dist/webide-RsFP9pHM.js +0 -8087
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
};
|