@yuku123/z-team-component 0.2.130 → 0.2.131

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 (49) hide show
  1. package/dist/{ChangeLogView-AY7dKChQ.js → ChangeLogView-SwacGpsw.js} +1 -1
  2. package/dist/{ComponentDoc-DTpTBK1V.js → ComponentDoc-Dh5YhLCI.js} +1018 -1048
  3. package/dist/{InvitationManagementPage-YzQVnNWz.js → InvitationManagementPage-CjEcLOGB.js} +1 -1
  4. package/dist/{OnboardingPage-ClH-s7zs.js → OnboardingPage-DvNt71kX.js} +2 -2
  5. package/dist/{ScheduledTasks-DhcmGmhu.js → ScheduledTasks-COgb4MZJ.js} +6 -6
  6. package/dist/SystemShell-CSXcsiNp.js +752 -0
  7. package/dist/{admin-logs-2gdJxEwA.js → admin-logs-CExsxQ5h.js} +5 -5
  8. package/dist/{api-BHYf7Uyx.js → api-C9kTgVc2.js} +1 -1
  9. package/dist/{api---aB1ADx.js → api-DXw93E7c.js} +1 -1
  10. package/dist/{createWorkspaceWsHandler-BC4HmdFu.js → createWorkspaceWsHandler-BwDUTYXH.js} +319 -319
  11. package/dist/{index-CqOsWy6H.js → index-9rfSVSTh.js} +9 -9
  12. package/dist/{index-lucAUJAv.js → index-B2Dfbi8J.js} +2 -2
  13. package/dist/{index-Chzml7fB.js → index-B3uLo8-F.js} +3 -3
  14. package/dist/{index-CnIbuXF9.js → index-BNPq7yBg.js} +2 -2
  15. package/dist/{index--HSE1tzT.js → index-BTJ83JLl.js} +11 -11
  16. package/dist/{index-9coNts0T.js → index-BkzBYfhO.js} +8489 -8453
  17. package/dist/{index-BkbSCWQ7.js → index-BoY7L8C4.js} +42 -37
  18. package/dist/index-Bs9odXxd.js +1214 -0
  19. package/dist/{index-mwKbvNPB.js → index-CF3xDZ7q.js} +4 -4
  20. package/dist/{index-CnRAUDUi.js → index-COobH4Vi.js} +1 -1
  21. package/dist/{index-Opx4qrhX.js → index-CU6jFFl5.js} +3 -3
  22. package/dist/{index-DA0MCrVH.js → index-CXEYA7rt.js} +2 -2
  23. package/dist/{index-Zr09eAzk.js → index-CZCKpsry.js} +2 -2
  24. package/dist/{index-CnyMTIyv.js → index-Ceu-yckM.js} +70 -70
  25. package/dist/{index-baUMWaRm.js → index-Ci6_CBwE.js} +3 -3
  26. package/dist/{index-CTqU8nrB.js → index-CntZHojY.js} +2 -2
  27. package/dist/{index-DqiBrPAv.js → index-D2DFKRUf.js} +1 -1
  28. package/dist/{index-DfpB0BR9.js → index-DLK7DuCr.js} +3 -3
  29. package/dist/{index-Ci31buz9.js → index-DM6XeWFk.js} +4059 -4043
  30. package/dist/{index-fJnhCAB9.js → index-DMfYPIkB.js} +2 -2
  31. package/dist/{index-Ca08VoFz.js → index-DZ0fYNO9.js} +20 -20
  32. package/dist/{index-Cui8SX9p.js → index-D_J1ZCy8.js} +3 -3
  33. package/dist/{index-Ccvhn50s.js → index-DmV6xR7C.js} +9 -9
  34. package/dist/{index-CROBbbCB.js → index-ftuPuj0s.js} +9 -9
  35. package/dist/{index-DHubhPeT.js → index-mEgmHNRO.js} +1 -1
  36. package/dist/{index--L2wU6OV.js → index-t2nMJUPu.js} +1 -1
  37. package/dist/index.js +1 -1
  38. package/dist/{instance-ITIB5e5v.js → instance-DD3kbAUh.js} +1 -1
  39. package/dist/{menuPermission-Dw1EJWIf.js → menuPermission-v0881tid.js} +3 -3
  40. package/dist/pages.js +1 -1
  41. package/dist/{send-default-agent-team-message-DzRmAa6S.js → send-default-agent-team-message-Cug0T_7J.js} +1 -1
  42. package/dist/{sso-user-497FBkoQ.js → sso-user-CnVXqYR7.js} +1 -1
  43. package/dist/{training-B4IByvWW.js → training-BS23m-yy.js} +1 -1
  44. package/dist/useSidebarResize--Avuabb1.js +46 -0
  45. package/dist/{webide-DwQqqS-I.js → webide-BPJ1IpZq.js} +3 -3
  46. package/dist/z-team-component.css +1 -1
  47. package/package.json +1 -1
  48. package/dist/SystemShell-Cz7S4YnT.js +0 -718
  49. package/dist/index-4apTfQuo.js +0 -2213
@@ -1,8 +1,8 @@
1
1
  import { jsxs as t, jsx as n, Fragment as _ } from "react/jsx-runtime";
2
2
  import { useState as i, useRef as D, useCallback as B, useEffect as N } from "react";
3
- import { u as j } from "./ComponentDoc-DTpTBK1V.js";
3
+ import { u as j } from "./ComponentDoc-Dh5YhLCI.js";
4
4
  /* empty css */
5
- import { l as F, c as G, a as z, b as K, p as W } from "./api-BHYf7Uyx.js";
5
+ import { l as F, c as G, a as z, b as K, p as W } from "./api-C9kTgVc2.js";
6
6
  const L = "dev_brain_scenario";
7
7
  function q() {
8
8
  var M;
@@ -1,17 +1,17 @@
1
- import { AppLayout as v, ErrorBoundary as z, LoginPage as _, StatusTag as j, defaultStatusMap as F } from "@yuku123/z-frontend-common";
2
- import { d as y } from "./ComponentDoc-DTpTBK1V.js";
3
- import { z as V, E as Q, A as X, M as Y, D as Z, O as $, F as ee, R as te, G as re, H as ae, I as oe, J as ne, K as le, K as ie, L as se } from "./ComponentDoc-DTpTBK1V.js";
1
+ import { AppLayout as v, ErrorBoundary as _, LoginPage as j, StatusTag as z, defaultStatusMap as V } from "@yuku123/z-frontend-common";
2
+ import { d as y } from "./ComponentDoc-Dh5YhLCI.js";
3
+ import { H as J, I as Q, J as X, M as Y, K as Z, O as $, L as ee, R as te, N as re, Q as ae, U as oe, V as ne, W as le, W as ie, X as se } from "./ComponentDoc-Dh5YhLCI.js";
4
4
  import { jsxs as r, Fragment as h, jsx as e } from "react/jsx-runtime";
5
5
  import { useState as n, useEffect as R } from "react";
6
6
  import { Alert as I, Space as x, Button as l, Tag as c, Result as T } from "antd";
7
- import { ReloadOutlined as g, UserAddOutlined as E, TeamOutlined as b, PlusOutlined as w, CodeOutlined as A } from "@ant-design/icons";
7
+ import { ReloadOutlined as g, UserAddOutlined as b, TeamOutlined as w, PlusOutlined as E, CodeOutlined as A } from "@ant-design/icons";
8
8
  import { ListTable as f } from "@yuku123/z-frontend-common/ui";
9
- const q = y, O = {
9
+ const W = y, O = {
10
10
  LEADER: "red",
11
11
  WORKER: "blue",
12
12
  OBSERVER: "default"
13
13
  };
14
- function B() {
14
+ function q() {
15
15
  const [i] = n(!1), [s] = n([]);
16
16
  return /* @__PURE__ */ r(h, { children: [
17
17
  /* @__PURE__ */ e(
@@ -28,12 +28,12 @@ function B() {
28
28
  f,
29
29
  {
30
30
  cardTitle: /* @__PURE__ */ r("span", { children: [
31
- /* @__PURE__ */ e(b, { style: { marginRight: 8 } }),
31
+ /* @__PURE__ */ e(w, { style: { marginRight: 8 } }),
32
32
  "Agent 群组 IM"
33
33
  ] }),
34
34
  cardExtra: /* @__PURE__ */ r(x, { children: [
35
35
  /* @__PURE__ */ e(l, { icon: /* @__PURE__ */ e(g, {}), loading: i, children: "刷新" }),
36
- /* @__PURE__ */ e(l, { type: "primary", icon: /* @__PURE__ */ e(E, {}), disabled: !0, children: "创建群组" })
36
+ /* @__PURE__ */ e(l, { type: "primary", icon: /* @__PURE__ */ e(b, {}), disabled: !0, children: "创建群组" })
37
37
  ] }),
38
38
  rows: s,
39
39
  columns: [
@@ -68,7 +68,7 @@ const M = {
68
68
  GIT: { text: "GIT 模式", color: "blue" },
69
69
  SHARED: { text: "SHARED 模式", color: "purple" }
70
70
  };
71
- function U() {
71
+ function B() {
72
72
  const [i, s] = n([]), [d, a] = n(!1), [u, m] = n(null), p = async () => {
73
73
  a(!0), m(null);
74
74
  try {
@@ -101,7 +101,7 @@ function U() {
101
101
  ] }),
102
102
  cardExtra: /* @__PURE__ */ r(x, { children: [
103
103
  /* @__PURE__ */ e(l, { icon: /* @__PURE__ */ e(g, {}), onClick: p, loading: d, children: "刷新" }),
104
- /* @__PURE__ */ e(l, { type: "primary", icon: /* @__PURE__ */ e(w, {}), disabled: !0, children: "新建 WebIDE" })
104
+ /* @__PURE__ */ e(l, { type: "primary", icon: /* @__PURE__ */ e(E, {}), disabled: !0, children: "新建 WebIDE" })
105
105
  ] }),
106
106
  rows: i,
107
107
  columns: [
@@ -139,7 +139,7 @@ function U() {
139
139
  )
140
140
  ] });
141
141
  }
142
- function H() {
142
+ function G() {
143
143
  return /* @__PURE__ */ e(
144
144
  T,
145
145
  {
@@ -150,14 +150,14 @@ function H() {
150
150
  );
151
151
  }
152
152
  export {
153
- B as AgentTeamIM,
153
+ q as AgentTeamIM,
154
154
  v as AppLayout,
155
- V as CurlImportModal,
156
- H as DebugPlayground,
155
+ J as CurlImportModal,
156
+ G as DebugPlayground,
157
157
  Q as EndpointsTab,
158
158
  X as EnvironmentsTab,
159
- z as ErrorBoundary,
160
- _ as LoginPage,
159
+ _ as ErrorBoundary,
160
+ j as LoginPage,
161
161
  Y as MockPlatform,
162
162
  Z as MockTemplateHelper,
163
163
  $ as OpenApiImportModal,
@@ -165,14 +165,14 @@ export {
165
165
  te as RecordingsTab,
166
166
  re as RequestLogsTab,
167
167
  ae as ScenariosTab,
168
- j as StatusTag,
168
+ z as StatusTag,
169
169
  oe as TestCasesTab,
170
- U as Webide,
170
+ B as Webide,
171
171
  y as authRequest,
172
172
  ne as createRequest,
173
- q as ctcRequest,
173
+ W as ctcRequest,
174
174
  le as default,
175
- F as defaultStatusMap,
175
+ V as defaultStatusMap,
176
176
  ie as request,
177
177
  se as setupInterceptors
178
178
  };
@@ -2,11 +2,11 @@ import { jsxs as r, jsx as a, Fragment as lt } from "react/jsx-runtime";
2
2
  import { ReloadOutlined as dt, AppstoreOutlined as pt, DeploymentUnitOutlined as ut, SearchOutlined as mt, RightOutlined as ht, TeamOutlined as _t, MessageOutlined as gt } from "@ant-design/icons";
3
3
  import { Button as Q, Select as Ae, Spin as ue, Empty as f, Tag as I, Input as O } from "antd";
4
4
  import { useState as p, useCallback as g, useEffect as me, useMemo as he, useRef as vt } from "react";
5
- import { u as $ } from "./ComponentDoc-DTpTBK1V.js";
5
+ import { u as $ } from "./ComponentDoc-Dh5YhLCI.js";
6
6
  import { h as W } from "./history-BlrA1eaW.js";
7
7
  import { menuItems as Nt } from "@yuku123/z-product-component";
8
- import { C as yt } from "./createWorkspaceWsHandler-BC4HmdFu.js";
9
- import { l as ft, c as wt } from "./api-BHYf7Uyx.js";
8
+ import { C as yt } from "./createWorkspaceWsHandler-BwDUTYXH.js";
9
+ import { l as ft, c as wt } from "./api-C9kTgVc2.js";
10
10
  const bt = "product-workspace", qe = "productCode";
11
11
  function w(n) {
12
12
  if (!n.ok) throw new Error(`产品接口失败 (${n.status})`);
@@ -1,16 +1,16 @@
1
1
  import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
- import { f as ie, r as z } from "./ctc-sso-DtJHC-2M.js";
3
- import { r as ne, h as X, s as oe } from "./sso-user-497FBkoQ.js";
2
+ import { f as ie, r as q } from "./ctc-sso-DtJHC-2M.js";
3
+ import { r as ne, h as X, s as oe } from "./sso-user-CnVXqYR7.js";
4
4
  import { CheckCircleFilled as le, QuestionCircleOutlined as ce, CloseOutlined as me } from "@ant-design/icons";
5
5
  import { message as P, Result as de, Button as D, Spin as G, Input as ue, Image as fe } from "antd";
6
6
  import pe from "query-string";
7
7
  import { useState as f, useRef as Y, useMemo as K, useCallback as w, useEffect as V } from "react";
8
8
  import { useLocation as ge } from "react-router-dom";
9
9
  import { h as W } from "./history-BlrA1eaW.js";
10
- import { u as c, o as he, j as be, k as _e } from "./ComponentDoc-DTpTBK1V.js";
10
+ import { u as c, z as he, j as be, k as _e } from "./ComponentDoc-Dh5YhLCI.js";
11
11
  /* empty css */
12
12
  import { b as ye } from "./mobile-client-O3yr9h6t.js";
13
- import { a as ve, s as we } from "./send-default-agent-team-message-DzRmAa6S.js";
13
+ import { a as ve, s as we } from "./send-default-agent-team-message-Cug0T_7J.js";
14
14
  const Ne = 5e3, E = 9, Ce = 10 * 1024 * 1024, Se = /^image\//i, Ie = /\.(png|jpe?g|gif|bmp|webp)$/i;
15
15
  function ke(a) {
16
16
  return a.type && Se.test(a.type) ? !0 : Ie.test(a.name || "");
@@ -91,11 +91,11 @@ function Xe() {
91
91
  return;
92
92
  }
93
93
  if (s >= v) {
94
- z();
94
+ q();
95
95
  return;
96
96
  }
97
97
  if (r += 1, r >= n) {
98
- z();
98
+ q();
99
99
  return;
100
100
  }
101
101
  window.setTimeout(() => void u(), 150);
@@ -228,7 +228,7 @@ function Xe() {
228
228
  `${r}-${e}`
229
229
  )) }) : null
230
230
  ] }) }) }) });
231
- const q = !!_.trim();
231
+ const z = !!_.trim();
232
232
  return /* @__PURE__ */ t("div", { className: "build-by-form-page", children: /* @__PURE__ */ t("div", { className: "build-by-form-page__shell", children: /* @__PURE__ */ l("div", { className: "build-by-form-page__panel", children: [
233
233
  /* @__PURE__ */ l("div", { className: "build-by-form-page__header", children: [
234
234
  /* @__PURE__ */ t("div", { className: "build-by-form-page__icon", "aria-hidden": !0, children: /* @__PURE__ */ t(ce, {}) }),
@@ -254,7 +254,7 @@ function Xe() {
254
254
  value: _,
255
255
  onChange: (e) => Z(e.target.value),
256
256
  onKeyDown: (e) => {
257
- (e.metaKey || e.ctrlKey) && e.key === "Enter" && q && (e.preventDefault(), $());
257
+ (e.metaKey || e.ctrlKey) && e.key === "Enter" && z && (e.preventDefault(), $());
258
258
  },
259
259
  placeholder: "请尽量描述清楚现象、期望结果或相关背景…(可在输入框内 Ctrl+V 粘贴图片)",
260
260
  autoSize: { minRows: 6, maxRows: 14 },
@@ -303,7 +303,7 @@ function Xe() {
303
303
  block: !0,
304
304
  size: "large",
305
305
  className: "build-by-form-page__submit",
306
- disabled: !q,
306
+ disabled: !z,
307
307
  onClick: $,
308
308
  children: "确认并开始"
309
309
  }
@@ -1,7 +1,7 @@
1
- import { a as h, f as _, B as N, v as A, t as g } from "./ComponentDoc-DTpTBK1V.js";
1
+ import { a as h, f as _, B as N, D as A, t as g } from "./ComponentDoc-Dh5YhLCI.js";
2
2
  import { jsx as p, jsxs as I } from "react/jsx-runtime";
3
- import { useMemo as S, useState as C, useEffect as G, Component as L } from "react";
4
- function $(t) {
3
+ import { useMemo as S, useState as C, useEffect as G, Component as D } from "react";
4
+ function L(t) {
5
5
  if (t == null) return !0;
6
6
  const e = String(t).trim();
7
7
  return e === "" || e === "0";
@@ -65,7 +65,7 @@ function b(t) {
65
65
  projectTitle: t.projectTitle == null || !String(t.projectTitle).trim() ? null : String(t.projectTitle),
66
66
  tags: e(t.tags),
67
67
  links: n(t.links),
68
- parentId: $(t.parentId) ? "" : g(t.parentId),
68
+ parentId: L(t.parentId) ? "" : g(t.parentId),
69
69
  sortOrder: t.sortOrder == null ? 0 : Number(t.sortOrder),
70
70
  completedAt: t.completedAt == null ? null : String(t.completedAt),
71
71
  completedBy: t.completedBy == null ? null : String(t.completedBy),
@@ -75,7 +75,7 @@ function b(t) {
75
75
  agentSessionId: t.agentSessionId == null ? null : g(t.agentSessionId)
76
76
  };
77
77
  }
78
- function B(t) {
78
+ function $(t) {
79
79
  const e = t ?? {};
80
80
  return {
81
81
  id: g(e.id),
@@ -92,7 +92,7 @@ function B(t) {
92
92
  function O(t) {
93
93
  const e = t ?? {}, n = Array.isArray(e.memberDetails) ? e.memberDetails : [];
94
94
  return {
95
- ...B(e),
95
+ ...$(e),
96
96
  openCount: e.openCount == null ? 0 : Number(e.openCount),
97
97
  memberDetails: n.map((r) => {
98
98
  const c = r ?? {}, l = String(c.userId ?? "").trim();
@@ -125,7 +125,7 @@ async function rt(t, e = "") {
125
125
  }), c = await A(r, "新建事项失败");
126
126
  return b(c);
127
127
  }
128
- const D = {
128
+ const B = {
129
129
  RUNTIME_MONITOR_VIEW: ["RUNTIME_MONITOR_MANAGE"],
130
130
  EVALUATION_VIEW: ["EVALUATION_MANAGE"],
131
131
  COLLABORATION_VIEW: [
@@ -150,7 +150,7 @@ function it(t, e) {
150
150
  var r;
151
151
  if (!t) return !1;
152
152
  if (t.is_global_admin || (r = t.permissions) != null && r.includes(e)) return !0;
153
- const n = D[e];
153
+ const n = B[e];
154
154
  return !!(n != null && n.some((c) => {
155
155
  var l;
156
156
  return (l = t.permissions) == null ? void 0 : l.includes(c);
@@ -285,7 +285,7 @@ const X = ({
285
285
  }
286
286
  );
287
287
  };
288
- class st extends L {
288
+ class st extends D {
289
289
  constructor(e) {
290
290
  super(e), this.state = { hasError: !1, error: null };
291
291
  }
@@ -2,7 +2,7 @@ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import { CopyOutlined as re, ReloadOutlined as Ae, PlusOutlined as Be, DeleteOutlined as qe, ClearOutlined as Ge, CloseOutlined as Je, SendOutlined as We, RobotOutlined as xe, CloudServerOutlined as Qe, MessageOutlined as Ve, KeyOutlined as Ye, ApiOutlined as Xe, ToolOutlined as Ze, BarChartOutlined as et } from "@ant-design/icons";
3
3
  import { useState as f, useEffect as Z, useCallback as F, useRef as pe, useMemo as Ie, Suspense as tt, lazy as at } from "react";
4
4
  import { Table as _e, Tooltip as ae, Tabs as Me, Input as fe, Button as z, Modal as ke, Drawer as be, Spin as ne, Statistic as K, message as J, Tag as Y, Select as nt, Checkbox as ot } from "antd";
5
- import { u as Pe } from "./ComponentDoc-DTpTBK1V.js";
5
+ import { u as Pe } from "./ComponentDoc-Dh5YhLCI.js";
6
6
  import { AgentAppList as st, McpPage as lt, SkillMarket as rt } from "@yuku123/z-agent-component";
7
7
  const de = "ft_gateway_default_ak", Ee = "system-default", ee = "", ye = "";
8
8
  function te(a = {}) {
@@ -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-AY7dKChQ.js";
4
+ import { C as A } from "./ChangeLogView-SwacGpsw.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,
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-DTpTBK1V.js";
1
+ import { C as e, P as s, S as a, Z as r, i } from "./ComponentDoc-Dh5YhLCI.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 as o, f as l, B as r, b as c } from "./ComponentDoc-DTpTBK1V.js";
1
+ import { a as o, f as l, B as r, b as c } from "./ComponentDoc-Dh5YhLCI.js";
2
2
  async function I(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-DTpTBK1V.js";
4
- import { h as g } from "./index-CROBbbCB.js";
5
- import { N as A } from "./index-Ci31buz9.js";
3
+ import { u as d } from "./ComponentDoc-Dh5YhLCI.js";
4
+ import { h as g } from "./index-ftuPuj0s.js";
5
+ import { N as A } from "./index-DM6XeWFk.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-DTpTBK1V.js";
1
+ import { S as t, P as o, C as r, Z as a } from "./ComponentDoc-Dh5YhLCI.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-DTpTBK1V.js";
1
+ import { s as l } from "./ComponentDoc-Dh5YhLCI.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 { t as l } from "./ComponentDoc-DTpTBK1V.js";
1
+ import { t as l } from "./ComponentDoc-Dh5YhLCI.js";
2
2
  const d = "USER_INFO";
3
3
  function s() {
4
4
  try {
@@ -1,4 +1,4 @@
1
- import { a as g, f, B as y, b as m } from "./ComponentDoc-DTpTBK1V.js";
1
+ import { a as g, f, B as y, b as m } from "./ComponentDoc-Dh5YhLCI.js";
2
2
  function t(n, a = "") {
3
3
  const i = new URLSearchParams();
4
4
  Object.entries(n).forEach(([u, o]) => {
@@ -0,0 +1,46 @@
1
+ import { useCallback as m, useState as v, useRef as f, useEffect as b } from "react";
2
+ function E(n, r, o = 176, c = 480) {
3
+ const i = m(
4
+ (t) => {
5
+ const e = window.innerWidth > 0 ? Math.floor(window.innerWidth / 2) : c, l = Math.max(o, Math.min(c, e));
6
+ return Math.min(Math.max(o, Math.round(t)), l);
7
+ },
8
+ [o, c]
9
+ ), [s, h] = v(() => {
10
+ try {
11
+ const t = Number(localStorage.getItem(n));
12
+ if (Number.isFinite(t) && t > 0) return i(t);
13
+ } catch {
14
+ }
15
+ return r;
16
+ }), [u, p] = v(!1), a = f(s);
17
+ a.current = s;
18
+ const d = f(null), g = m((t) => {
19
+ t.preventDefault(), d.current = { startX: t.clientX, startW: a.current }, p(!0);
20
+ }, []), S = m(() => {
21
+ h(r);
22
+ try {
23
+ localStorage.setItem(n, String(r));
24
+ } catch {
25
+ }
26
+ }, [r, n]);
27
+ return b(() => {
28
+ if (!u) return;
29
+ const t = (l) => {
30
+ const w = d.current;
31
+ w && h(i(w.startW + l.clientX - w.startX));
32
+ }, e = () => {
33
+ d.current = null, p(!1);
34
+ try {
35
+ localStorage.setItem(n, String(a.current));
36
+ } catch {
37
+ }
38
+ };
39
+ return window.addEventListener("pointermove", t), window.addEventListener("pointerup", e), window.addEventListener("pointercancel", e), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", () => {
40
+ window.removeEventListener("pointermove", t), window.removeEventListener("pointerup", e), window.removeEventListener("pointercancel", e), document.body.style.cursor = "", document.body.style.userSelect = "";
41
+ };
42
+ }, [u, i, n]), { width: s, dragging: u, onHandlePointerDown: g, resetWidth: S };
43
+ }
44
+ export {
45
+ E as u
46
+ };
@@ -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, 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-DTpTBK1V.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-2gdJxEwA.js";
11
- import { a as xr, f as Lr, c as Ar } from "./index-CROBbbCB.js";
9
+ import { a as w, f as _, B as v, b as C, u as ea, n as yt, a5 as hr, t as et, e as yr, a7 as gr, a8 as On, a9 as _r, aa as ta } from "./ComponentDoc-Dh5YhLCI.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-CExsxQ5h.js";
11
+ import { a as xr, f as Lr, c as Ar } from "./index-ftuPuj0s.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";