@yuku123/z-team-component 0.2.102 → 0.2.103
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/package.json +1 -1
- package/dist/ChangeLogView-BIlT58NX.js +0 -542
- package/dist/ComponentDoc-bhNM4jiY.js +0 -8035
- package/dist/InvitationManagementPage-9AmXUw6E.js +0 -495
- package/dist/OnboardingPage-B9oWippy.js +0 -393
- package/dist/ScheduledTasks-CkNxtgeb.js +0 -12127
- package/dist/SystemShell-Cz3bn2dt.js +0 -688
- package/dist/_commonjsHelpers-B52_cu2H.js +0 -26
- package/dist/admin-logs-BuwxECUY.js +0 -198
- package/dist/api-DL_MM5cW.js +0 -20
- package/dist/browser-jb_PFvU3.js +0 -1538
- package/dist/createWorkspaceWsHandler-B6LYCL3Q.js +0 -13142
- package/dist/ctc-sso-DtJHC-2M.js +0 -117
- package/dist/echarts-B1OU1xr4.js +0 -16
- package/dist/history-BlrA1eaW.js +0 -41
- package/dist/index-2dGExnjZ.js +0 -2217
- package/dist/index-B1AYMWHS.js +0 -10169
- package/dist/index-B5F1N9_V.js +0 -42049
- package/dist/index-B8O2io7L.js +0 -315
- package/dist/index-BIXeUFLa.js +0 -479
- package/dist/index-BPqoN-aE.js +0 -242
- package/dist/index-BTs7b4SV.js +0 -118
- package/dist/index-BYMhgsLe.js +0 -178
- package/dist/index-BZBxvwcT.js +0 -169
- package/dist/index-BZCQSW-G.js +0 -1222
- package/dist/index-B_LJRFsK.js +0 -339
- package/dist/index-BdmM-NHL.js +0 -5892
- package/dist/index-BmHFHD_e.js +0 -112
- package/dist/index-BohoJQPr.js +0 -7631
- package/dist/index-C1wsTstT.js +0 -434
- package/dist/index-C1wtrBjM.js +0 -8
- package/dist/index-C815hPWS.js +0 -430
- package/dist/index-CbH8YeqA.js +0 -913
- package/dist/index-CsweV-yM.js +0 -142
- package/dist/index-D3vyICxK.js +0 -2699
- package/dist/index-DKgyKXWm.js +0 -1640
- package/dist/index-DQHEr9-I.js +0 -93
- package/dist/index-DU-PHfEr.js +0 -189
- package/dist/index-DWsfQMp8.js +0 -208
- package/dist/index-DhDdFRHC.js +0 -279
- package/dist/index-DvTMESfc.js +0 -132
- package/dist/index-fl0m6QYf.js +0 -316
- package/dist/index-lux3nNJP.js +0 -574
- package/dist/index-mwtsohOK.js +0 -951
- package/dist/index-qd4awhFI.js +0 -956
- package/dist/index.js +0 -10
- package/dist/index.module-CAa-2T7m.js +0 -72
- package/dist/index.module-UI0iz8K0.js +0 -42
- package/dist/instance-4ACm8YFK.js +0 -216
- package/dist/menuPermission-C7yt7uNG.js +0 -60
- package/dist/mobile-client-O3yr9h6t.js +0 -24
- package/dist/pages.js +0 -21
- package/dist/send-default-agent-team-message-YRd0CkeT.js +0 -35
- package/dist/spark-md5-Dld54a-T.js +0 -178
- package/dist/sso-user-GnlYnP83.js +0 -43
- package/dist/training-CyK00fwu.js +0 -450
- package/dist/webide-SjnHsCZF.js +0 -5233
- package/dist/z-team-component.css +0 -1
package/dist/index-BmHFHD_e.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useState as L, useMemo as p } from "react";
|
|
3
|
-
import { useNavigate as v, useLocation as A } from "react-router-dom";
|
|
4
|
-
import { DownOutlined as k, RightOutlined as w } from "@ant-design/icons";
|
|
5
|
-
import { P as W, R as $ } from "./index-DQHEr9-I.js";
|
|
6
|
-
import { f as E, M as g } from "./menuPermission-C7yt7uNG.js";
|
|
7
|
-
import { d as j } from "./ComponentDoc-bhNM4jiY.js";
|
|
8
|
-
const H = "_shell_1jjcx_7", M = "_sidebar_1jjcx_15", R = "_menuList_1jjcx_37", T = "_menuGroup_1jjcx_43", C = "_menuGroupHeader_1jjcx_47", P = "_menuGroupIcon_1jjcx_65", z = "_menuGroupLabel_1jjcx_70", K = "_menuGroupArrow_1jjcx_74", U = "_menuSubList_1jjcx_80", Z = "_menuSubItem_1jjcx_86", B = "_menuSubItemActive_1jjcx_103", D = "_menuSubItemIcon_1jjcx_110", O = "_menuSubItemLabel_1jjcx_115", q = "_menuSubItemWrap_1jjcx_119", F = "_main_1jjcx_123", J = "_empty_1jjcx_134", Q = "_emptyIcon_1jjcx_144", V = "_emptyText_1jjcx_149", n = {
|
|
9
|
-
shell: H,
|
|
10
|
-
sidebar: M,
|
|
11
|
-
menuList: R,
|
|
12
|
-
menuGroup: T,
|
|
13
|
-
menuGroupHeader: C,
|
|
14
|
-
menuGroupIcon: P,
|
|
15
|
-
menuGroupLabel: z,
|
|
16
|
-
menuGroupArrow: K,
|
|
17
|
-
menuSubList: U,
|
|
18
|
-
menuSubItem: Z,
|
|
19
|
-
menuSubItemActive: B,
|
|
20
|
-
menuSubItemIcon: D,
|
|
21
|
-
menuSubItemLabel: O,
|
|
22
|
-
menuSubItemWrap: q,
|
|
23
|
-
main: F,
|
|
24
|
-
empty: J,
|
|
25
|
-
emptyIcon: Q,
|
|
26
|
-
emptyText: V
|
|
27
|
-
};
|
|
28
|
-
function X(m, r) {
|
|
29
|
-
for (const s of m)
|
|
30
|
-
if (s.path === r) return s.element;
|
|
31
|
-
for (const s of m)
|
|
32
|
-
if (s.path.includes("*") || s.path.includes(":")) {
|
|
33
|
-
const i = "^" + s.path.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*").replace(/:([a-zA-Z_][a-zA-Z0-9_]*)/g, "[^/]+") + "$";
|
|
34
|
-
if (new RegExp(i).test(r)) return s.element;
|
|
35
|
-
}
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
function Y({ text: m }) {
|
|
39
|
-
return /* @__PURE__ */ o("div", { className: n.empty, children: [
|
|
40
|
-
/* @__PURE__ */ t("div", { className: n.emptyIcon, children: "⚙️" }),
|
|
41
|
-
/* @__PURE__ */ t("div", { className: n.emptyText, children: m })
|
|
42
|
-
] });
|
|
43
|
-
}
|
|
44
|
-
function ue({
|
|
45
|
-
groups: m,
|
|
46
|
-
routes: r,
|
|
47
|
-
mode: s,
|
|
48
|
-
emptyText: i,
|
|
49
|
-
activePathOverride: _,
|
|
50
|
-
menuOnly: h = !1
|
|
51
|
-
}) {
|
|
52
|
-
const I = v(), { pathname: a } = A(), d = j((e) => e.currentUser), b = j((e) => e.permissionState), [x, S] = L(
|
|
53
|
-
new Set(m.map((e) => e.title))
|
|
54
|
-
), l = p(
|
|
55
|
-
() => b === "failed" ? m : E(m, d),
|
|
56
|
-
[m, d, b]
|
|
57
|
-
), f = p(() => {
|
|
58
|
-
const e = _ ?? a;
|
|
59
|
-
for (const u of l)
|
|
60
|
-
for (const c of u.items)
|
|
61
|
-
if (c.path === e) return c.key;
|
|
62
|
-
return null;
|
|
63
|
-
}, [l, _, a]), G = (e) => {
|
|
64
|
-
S((u) => {
|
|
65
|
-
const c = new Set(u);
|
|
66
|
-
return c.has(e) ? c.delete(e) : c.add(e), c;
|
|
67
|
-
});
|
|
68
|
-
}, y = (e) => {
|
|
69
|
-
I(`${e.path}?mode=${s}`);
|
|
70
|
-
}, N = p(() => X(r, a), [r, a]);
|
|
71
|
-
return /* @__PURE__ */ o("div", { className: n.shell, children: [
|
|
72
|
-
/* @__PURE__ */ o("aside", { className: n.sidebar, children: [
|
|
73
|
-
/* @__PURE__ */ t(g, {}),
|
|
74
|
-
/* @__PURE__ */ t("nav", { className: n.menuList, children: l.map((e) => {
|
|
75
|
-
const u = x.has(e.title);
|
|
76
|
-
return /* @__PURE__ */ o("div", { className: n.menuGroup, children: [
|
|
77
|
-
/* @__PURE__ */ o(
|
|
78
|
-
"div",
|
|
79
|
-
{
|
|
80
|
-
className: n.menuGroupHeader,
|
|
81
|
-
onClick: () => G(e.title),
|
|
82
|
-
children: [
|
|
83
|
-
/* @__PURE__ */ t("span", { className: n.menuGroupIcon, children: e.icon }),
|
|
84
|
-
/* @__PURE__ */ t("span", { className: n.menuGroupLabel, children: e.title }),
|
|
85
|
-
/* @__PURE__ */ t("span", { className: n.menuGroupArrow, children: u ? /* @__PURE__ */ t(k, {}) : /* @__PURE__ */ t(w, {}) })
|
|
86
|
-
]
|
|
87
|
-
}
|
|
88
|
-
),
|
|
89
|
-
u && /* @__PURE__ */ t("ul", { className: n.menuSubList, children: e.items.map((c) => /* @__PURE__ */ o(
|
|
90
|
-
"li",
|
|
91
|
-
{
|
|
92
|
-
className: `${n.menuSubItemWrap} ${n.menuSubItem} ${f === c.key ? n.menuSubItemActive : ""}`,
|
|
93
|
-
onClick: () => y(c),
|
|
94
|
-
children: [
|
|
95
|
-
/* @__PURE__ */ t("span", { className: n.menuSubItemIcon, children: c.icon }),
|
|
96
|
-
/* @__PURE__ */ t("span", { className: n.menuSubItemLabel, children: c.label })
|
|
97
|
-
]
|
|
98
|
-
},
|
|
99
|
-
c.key
|
|
100
|
-
)) })
|
|
101
|
-
] }, e.title);
|
|
102
|
-
}) })
|
|
103
|
-
] }),
|
|
104
|
-
h ? null : /* @__PURE__ */ o("main", { className: n.main, children: [
|
|
105
|
-
/* @__PURE__ */ t(W, {}),
|
|
106
|
-
/* @__PURE__ */ t($, { resetKey: a, children: N ?? /* @__PURE__ */ t(Y, { text: i }) })
|
|
107
|
-
] })
|
|
108
|
-
] });
|
|
109
|
-
}
|
|
110
|
-
export {
|
|
111
|
-
ue as W
|
|
112
|
-
};
|