@yuku123/z-team-component 0.2.104 → 0.2.105
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-DG-ogBff.js → ChangeLogView-B0ML82u0.js} +1 -1
- package/dist/{ComponentDoc-BW1SyDxk.js → ComponentDoc-C_289lsE.js} +12 -12
- package/dist/{InvitationManagementPage-hYvoPEcm.js → InvitationManagementPage-D2ezz4ZQ.js} +1 -1
- package/dist/{OnboardingPage-KDp-DrzY.js → OnboardingPage-BXsJ-kcJ.js} +2 -2
- package/dist/{ScheduledTasks-CErSDgyW.js → ScheduledTasks-Cn8BsDkN.js} +6 -6
- package/dist/{SystemShell-DvrY4Bl7.js → SystemShell-gcfNlt2L.js} +4 -4
- package/dist/{admin-logs-uPnnclwN.js → admin-logs-B6K1DwRL.js} +5 -5
- package/dist/api-BdP8mK8v.js +101 -0
- package/dist/{api-B__qdRIf.js → api-DxSgE7qw.js} +1 -1
- package/dist/{createWorkspaceWsHandler-BXbn5-Ft.js → createWorkspaceWsHandler-DcNA1pfi.js} +3 -3
- package/dist/{index-D-xPVrY3.js → index-54iTaRVW.js} +1 -1
- package/dist/{index-0smeCTnr.js → index-BCw3Oxp1.js} +1255 -1255
- package/dist/{index-ByhCWenF.js → index-BDq0ofl2.js} +102 -188
- package/dist/{index-DtHoMz1H.js → index-BN-o5nZM.js} +1 -1
- package/dist/{index-BwJPAN8f.js → index-Bf1K9zpk.js} +19 -19
- package/dist/{index-Cb88Xdh4.js → index-BfMFQ6RD.js} +3 -3
- package/dist/{index-DIFIvVWE.js → index-C-8n6xxK.js} +2 -2
- package/dist/{index-aI2EXKED.js → index-C8m8s-SU.js} +26 -26
- package/dist/{index-BK3YDeXH.js → index-CXJXSmhB.js} +6 -6
- package/dist/{index-BnJ8UEeZ.js → index-CdugR2_4.js} +3 -3
- package/dist/{index-YVtm1SRy.js → index-CeCsncoT.js} +28 -28
- package/dist/{index-CkWKJORv.js → index-CgCB0-yK.js} +1 -1
- package/dist/{index-DcurzowX.js → index-Cjddvrij.js} +4 -4
- package/dist/{index-q_TPea69.js → index-D487Inba.js} +15 -15
- package/dist/{index-BOJm25by.js → index-DK71mfJn.js} +1 -1
- package/dist/{index-C9fGup9t.js → index-DLHcoHS9.js} +3 -3
- package/dist/{index-Cih0yoxc.js → index-DUiFk01c.js} +5 -5
- package/dist/{index-2isWwv1X.js → index-DgN13A-E.js} +9 -9
- package/dist/{index-DOgCfVB2.js → index-DpLamT1r.js} +2 -2
- package/dist/{index-DBnH-lRh.js → index-DszzQwsc.js} +1 -1
- package/dist/index-HJ3Kt-NT.js +358 -0
- package/dist/{index-BC8f-JP9.js → index-Nj-dlFKY.js} +3 -3
- package/dist/{index-C2_tfpEj.js → index-ZuYJoo9E.js} +2 -2
- package/dist/{index-DAGa9v8r.js → index-etyS3HY2.js} +2 -2
- package/dist/{index-CsaGecGX.js → index-jIh52A4c.js} +6 -6
- package/dist/index.js +1 -1
- package/dist/{instance-pdQ_wAhB.js → instance-p-ezisoS.js} +5 -5
- package/dist/{menuPermission-CCQjJVXg.js → menuPermission-u3Gd_c8S.js} +11 -11
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-BzeR4ahf.js → send-default-agent-team-message-BhIV6T6O.js} +1 -1
- package/dist/{sso-user-DI7oiDdc.js → sso-user-Ib1jhF7t.js} +1 -1
- package/dist/{training-Bz7Sr5yC.js → training-D3Uy5K_M.js} +1 -1
- package/dist/{webide-NcHLDiSn.js → webide-BGQnArzY.js} +3 -3
- package/dist/z-team-component.css +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { Alert as h } from "antd";
|
|
3
|
-
import { d } from "./ComponentDoc-
|
|
4
|
-
import { h as g } from "./index-
|
|
5
|
-
import { N as A } from "./index-
|
|
3
|
+
import { u as d } from "./ComponentDoc-C_289lsE.js";
|
|
4
|
+
import { h as g } from "./index-54iTaRVW.js";
|
|
5
|
+
import { N as A } from "./index-DgN13A-E.js";
|
|
6
6
|
function P() {
|
|
7
7
|
return d((n) => n.permissionState) !== "failed" ? null : /* @__PURE__ */ a(
|
|
8
8
|
h,
|
|
@@ -16,7 +16,7 @@ function P() {
|
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function m(e) {
|
|
20
20
|
const n = e.permission;
|
|
21
21
|
return n ? Array.isArray(n) ? n : [n] : [];
|
|
22
22
|
}
|
|
@@ -26,30 +26,30 @@ function S(e) {
|
|
|
26
26
|
function f(e, n) {
|
|
27
27
|
return n.length === 0 ? !0 : S(e) ? n.some((i) => A.includes(i)) : n.some((i) => g(e, i));
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
const t =
|
|
29
|
+
function c(e, n, i) {
|
|
30
|
+
const t = m(n), s = t.length > 0 ? t : i ? [i] : [];
|
|
31
31
|
return f(e, s);
|
|
32
32
|
}
|
|
33
33
|
function _(e, n) {
|
|
34
34
|
const i = [];
|
|
35
35
|
for (const t of e) {
|
|
36
36
|
const s = t.permission;
|
|
37
|
-
if (!f(n,
|
|
37
|
+
if (!f(n, m(t))) continue;
|
|
38
38
|
const o = t.items;
|
|
39
39
|
if (!Array.isArray(o)) {
|
|
40
40
|
i.push(t);
|
|
41
41
|
continue;
|
|
42
42
|
}
|
|
43
|
-
const
|
|
43
|
+
const u = o.filter((r) => c(n, r, s)).map(
|
|
44
44
|
(r) => r.children ? {
|
|
45
45
|
...r,
|
|
46
46
|
children: r.children.filter(
|
|
47
|
-
(l) =>
|
|
47
|
+
(l) => c(n, l, r.permission ?? s)
|
|
48
48
|
)
|
|
49
49
|
} : r
|
|
50
50
|
).filter((r) => !r.children || r.children.length > 0);
|
|
51
|
-
if (
|
|
52
|
-
const p = { ...t, items:
|
|
51
|
+
if (u.length === 0) continue;
|
|
52
|
+
const p = { ...t, items: u };
|
|
53
53
|
i.push(p);
|
|
54
54
|
}
|
|
55
55
|
return i;
|
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-
|
|
1
|
+
import { S as t, P as o, C as r, Z as a } from "./ComponentDoc-C_289lsE.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";
|
|
@@ -6,9 +6,9 @@ import ur from "react-markdown";
|
|
|
6
6
|
import mr from "rehype-highlight";
|
|
7
7
|
import fr from "remark-gfm";
|
|
8
8
|
import { h as pr } from "./history-BlrA1eaW.js";
|
|
9
|
-
import { a as w, f as _, B as v,
|
|
10
|
-
import { f as br, a as vr, u as En, b as Sr, c as wr, r as Cr, d as Nr, e as Tr, g as kr, h as Ir, m as $r } from "./admin-logs-
|
|
11
|
-
import { a as xr, f as Lr, c as Ar } from "./index-
|
|
9
|
+
import { a as w, f as _, B as v, b as C, u as ea, n as yt, aa as hr, t as et, e as yr, ac as gr, ad as On, ae as _r, af as ta } from "./ComponentDoc-C_289lsE.js";
|
|
10
|
+
import { f as br, a as vr, u as En, b as Sr, c as wr, r as Cr, d as Nr, e as Tr, g as kr, h as Ir, m as $r } from "./admin-logs-B6K1DwRL.js";
|
|
11
|
+
import { a as xr, f as Lr, c as Ar } from "./index-54iTaRVW.js";
|
|
12
12
|
import { findTodosLinkedToNote as Dr, buildTodoProjectContext as Rr, linkedTodoChipLabel as Or } from "@yuku123/z-task-component";
|
|
13
13
|
import Ne from "dayjs";
|
|
14
14
|
import "./echarts-B1OU1xr4.js";
|