@hkyhy/marsun-components-core 0.1.115 → 0.1.117

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 (63) hide show
  1. package/dist/agent-hub.js +131 -126
  2. package/dist/agent-hub.js.map +1 -1
  3. package/dist/components/AgentHub/Chat/Detail/ChatAgentFab/index.d.ts +1 -1
  4. package/dist/components/AgentHub/Chat/Detail/ChatAgentFab/index.js.map +1 -1
  5. package/dist/components/AgentHub/Chat/Detail/ChatAgentFab/style.module.scss.js +9 -9
  6. package/dist/components/AgentHub/Chat/Detail/ChatAgentFabLayout/index.d.ts +2 -2
  7. package/dist/components/AgentHub/Chat/Detail/ChatAgentFabLayout/index.js.map +1 -1
  8. package/dist/components/AgentHub/Chat/Detail/ChatAgentFabLayout/style.module.scss.js +3 -3
  9. package/dist/components/AgentHub/Chat/Detail/ChatCapabilityStrip/index.d.ts +20 -0
  10. package/dist/components/AgentHub/Chat/Detail/ChatCapabilityStrip/index.js +155 -0
  11. package/dist/components/AgentHub/Chat/Detail/ChatCapabilityStrip/index.js.map +1 -0
  12. package/dist/components/AgentHub/Chat/Detail/ChatCapabilityStrip/style.module.scss.js +19 -0
  13. package/dist/components/AgentHub/Chat/Detail/ChatCapabilityStrip/style.module.scss.js.map +1 -0
  14. package/dist/components/AgentHub/Chat/Detail/ChatPanel/index.d.ts +2 -0
  15. package/dist/components/AgentHub/Chat/Detail/ChatPanel/index.js +59 -55
  16. package/dist/components/AgentHub/Chat/Detail/ChatPanel/index.js.map +1 -1
  17. package/dist/components/AgentHub/Chat/Detail/ChatPanelHeaderTools/index.d.ts +19 -0
  18. package/dist/components/AgentHub/Chat/Detail/ChatPanelHeaderTools/index.js +122 -0
  19. package/dist/components/AgentHub/Chat/Detail/ChatPanelHeaderTools/index.js.map +1 -0
  20. package/dist/components/AgentHub/Chat/Detail/ChatPanelHeaderTools/style.module.scss.js +8 -0
  21. package/dist/components/AgentHub/Chat/Detail/ChatPanelHeaderTools/style.module.scss.js.map +1 -0
  22. package/dist/components/AgentHub/Chat/Detail/index.d.ts +4 -0
  23. package/dist/components/Audit/AuditLogList.d.ts +2 -0
  24. package/dist/components/Audit/AuditLogList.js +179 -170
  25. package/dist/components/Audit/AuditLogList.js.map +1 -1
  26. package/dist/components/Audit/labels.d.ts +6 -2
  27. package/dist/components/Audit/labels.js +19 -16
  28. package/dist/components/Audit/labels.js.map +1 -1
  29. package/dist/components/Audit/labels.json.d.ts +47 -1
  30. package/dist/components/Audit/labels.json.js +124 -32
  31. package/dist/components/Audit/labels.json.js.map +1 -1
  32. package/dist/components/Audit/style.module.scss.js +26 -22
  33. package/dist/components/Audit/style.module.scss.js.map +1 -1
  34. package/dist/components/Icons/ZoomIn.d.ts +1 -0
  35. package/dist/components/Icons/ZoomIn.js +7 -0
  36. package/dist/components/Icons/ZoomIn.js.map +1 -0
  37. package/dist/components/Icons/ZoomOut.d.ts +1 -0
  38. package/dist/components/Icons/ZoomOut.js +7 -0
  39. package/dist/components/Icons/ZoomOut.js.map +1 -0
  40. package/dist/components/Icons/index.d.ts +2 -0
  41. package/dist/components/Icons/registry.d.ts +1 -1
  42. package/dist/components/Icons/registry.js +58 -52
  43. package/dist/components/Icons/registry.js.map +1 -1
  44. package/dist/components/Stat/StatCardList.js +16 -16
  45. package/dist/components/Stat/StatCardList.js.map +1 -1
  46. package/dist/components/Tools/ActionTracking/ActionTrackingShell.d.ts +27 -0
  47. package/dist/components/Tools/ActionTracking/ActionTrackingShell.js +43 -0
  48. package/dist/components/Tools/ActionTracking/ActionTrackingShell.js.map +1 -0
  49. package/dist/components/Tools/ActionTracking/index.d.ts +2 -0
  50. package/dist/components/Tools/ActionTracking/style.module.scss.js +7 -0
  51. package/dist/components/Tools/ActionTracking/style.module.scss.js.map +1 -0
  52. package/dist/components/Tools/index.d.ts +2 -0
  53. package/dist/components/Tour/AppTour/index.js +1 -1
  54. package/dist/components/Tour/AppTour/index.js.map +1 -1
  55. package/dist/components/Tour/index.d.ts +1 -0
  56. package/dist/components/Tour/resolveTourTarget.d.ts +7 -0
  57. package/dist/components/Tour/resolveTourTarget.js +16 -0
  58. package/dist/components/Tour/resolveTourTarget.js.map +1 -0
  59. package/dist/index.js +785 -771
  60. package/dist/index.js.map +1 -1
  61. package/dist/marsun-components-core.css +1 -1
  62. package/dist/styles/global.css +1 -1
  63. package/package.json +1 -1
@@ -1,154 +1,154 @@
1
- import { jsx as e, jsxs as l, Fragment as y } from "react/jsx-runtime";
2
- import { copyText as O } from "../../utils/copyText.js";
3
- import { Typography as u, Empty as w, Button as P, message as C, Space as k, Collapse as z } from "antd";
4
- import D from "classnames";
5
- import U from "dayjs";
6
- import { useMemo as L } from "react";
7
- import { AuditDayStatsBar as Y } from "./AuditDayStatsBar.js";
8
- import { AuditWaterfall as q } from "./AuditWaterfall.js";
9
- import { computeDetailKpi as G, isErrorStep as E } from "./detailKpi.js";
10
- import { formatAuditJson as K, isTruncatedAuditText as Q } from "./formatAuditJson.js";
11
- import { buildAuditReplayCurl as V, readBrowserReplaySession as W } from "./formatAuditCurl.js";
12
- import { displayActionLabel as M, labelOfAction as _, displaySummary as $ } from "./labels.js";
13
- import o from "./style.module.scss.js";
14
- import b, { SEMANTIC_COLORS as d } from "../Tag/SemanticTag.js";
15
- import T from "../InfoPage/InfoPage/index.js";
16
- import J from "../Stat/StatCardList.js";
17
- import X from "../Descriptions/CommonDescriptions.js";
18
- import Z from "../Table/Table.js";
19
- import B from "../VirtualScrollbar/VirtualScrollbar/index.js";
20
- function I(t) {
21
- const n = U(t);
22
- return n.isValid() ? n.format("YYYY-MM-DD HH:mm:ss") : t;
1
+ import { jsx as e, jsxs as o, Fragment as b } from "react/jsx-runtime";
2
+ import { copyText as z } from "../../utils/copyText.js";
3
+ import { Typography as d, Empty as E, Button as U, message as M, Space as j, Collapse as Y } from "antd";
4
+ import R from "classnames";
5
+ import q from "dayjs";
6
+ import { useMemo as v } from "react";
7
+ import { AuditDayStatsBar as G } from "./AuditDayStatsBar.js";
8
+ import { AuditWaterfall as K } from "./AuditWaterfall.js";
9
+ import { computeDetailKpi as Q, isErrorStep as D } from "./detailKpi.js";
10
+ import { formatAuditJson as V, isTruncatedAuditText as W } from "./formatAuditJson.js";
11
+ import { buildAuditReplayCurl as _, readBrowserReplaySession as $ } from "./formatAuditCurl.js";
12
+ import { displayActionLabel as I, labelOfAction as J, displaySummary as X } from "./labels.js";
13
+ import i from "./style.module.scss.js";
14
+ import S, { SEMANTIC_COLORS as m } from "../Tag/SemanticTag.js";
15
+ import N from "../InfoPage/InfoPage/index.js";
16
+ import Z from "../Stat/StatCardList.js";
17
+ import tt from "../Descriptions/CommonDescriptions.js";
18
+ import et from "../Table/Table.js";
19
+ import H from "../VirtualScrollbar/VirtualScrollbar/index.js";
20
+ function k(t) {
21
+ const r = q(t);
22
+ return r.isValid() ? r.format("YYYY-MM-DD HH:mm:ss") : t;
23
23
  }
24
- function R(t) {
24
+ function F(t) {
25
25
  return t === "success" ? "成功" : t === "fail" || t === "error" ? "失败" : t;
26
26
  }
27
- function H(t) {
28
- return t === "success" ? d.SUCCESS : t === "fail" || t === "error" ? d.DANGER : d.DEFAULT;
27
+ function O(t) {
28
+ return t === "success" ? m.SUCCESS : t === "fail" || t === "error" ? m.DANGER : m.DEFAULT;
29
29
  }
30
- function F(t) {
30
+ function P(t) {
31
31
  return t === "TRACE" ? "请求线路" : t === "SYSTEM" ? "系统" : t === "OPERATION" || !t ? "业务操作" : t;
32
32
  }
33
- function tt(t) {
34
- return t >= 500 ? d.DANGER : t >= 400 ? d.WARNING : t >= 200 && t < 300 ? d.SUCCESS : d.DEFAULT;
33
+ function rt(t) {
34
+ return t >= 500 ? m.DANGER : t >= 400 ? m.WARNING : t >= 200 && t < 300 ? m.SUCCESS : m.DEFAULT;
35
35
  }
36
- function et(t) {
36
+ function nt(t) {
37
37
  if (!t || typeof t != "object" || Array.isArray(t)) return null;
38
- const n = t.httpStatus;
39
- if (typeof n == "number" && Number.isFinite(n)) return n;
40
- if (n != null && String(n).trim() !== "") {
41
- const i = Number(n);
42
- return Number.isFinite(i) ? i : null;
38
+ const r = t.httpStatus;
39
+ if (typeof r == "number" && Number.isFinite(r)) return r;
40
+ if (r != null && String(r).trim() !== "") {
41
+ const a = Number(r);
42
+ return Number.isFinite(a) ? a : null;
43
43
  }
44
44
  return null;
45
45
  }
46
- function rt(t) {
47
- var n;
48
- return !!((n = t.actionLabel) != null && n.trim()) || !!_(t.action);
46
+ function lt(t) {
47
+ var r;
48
+ return !!((r = t.actionLabel) != null && r.trim()) || !!J(t.action);
49
49
  }
50
- const v = ({
50
+ const L = ({
51
51
  value: t,
52
- maxHeight: n = 360
52
+ maxHeight: r = 360
53
53
  }) => {
54
- const i = K(t), a = Q(t) || i.includes("…[truncated]");
55
- return /* @__PURE__ */ l("div", { className: o.jsonWrap, children: [
56
- a ? /* @__PURE__ */ e("div", { className: o.truncateHint, children: "内容已截断(采集侧 body 上限),以下为可读展开" }) : null,
57
- /* @__PURE__ */ e(B, { className: o.jsonScroll, style: { maxHeight: n }, children: /* @__PURE__ */ e("pre", { className: o.jsonBlock, children: i }) })
54
+ const a = V(t), s = W(t) || a.includes("…[truncated]");
55
+ return /* @__PURE__ */ o("div", { className: i.jsonWrap, children: [
56
+ s ? /* @__PURE__ */ e("div", { className: i.truncateHint, children: "内容已截断(采集侧 body 上限),以下为可读展开" }) : null,
57
+ /* @__PURE__ */ e(H, { className: i.jsonScroll, style: { maxHeight: r }, children: /* @__PURE__ */ e("pre", { className: i.jsonBlock, children: a }) })
58
58
  ] });
59
59
  };
60
- function j(t, n) {
61
- if (n == null) return null;
62
- if (t === "output" && typeof n == "object" && !Array.isArray(n) && n !== null && ("httpStatus" in n || "body" in n)) {
63
- const i = n, a = { ...i };
64
- delete a.httpStatus, delete a.body;
65
- const h = Object.keys(a).length > 0;
66
- return /* @__PURE__ */ l(y, { children: [
67
- i.body !== void 0 ? /* @__PURE__ */ l(y, { children: [
68
- /* @__PURE__ */ e("div", { className: o.blockLabel, children: "响应体" }),
69
- /* @__PURE__ */ e(v, { value: i.body, maxHeight: 420 })
60
+ function B(t, r) {
61
+ if (r == null) return null;
62
+ if (t === "output" && typeof r == "object" && !Array.isArray(r) && r !== null && ("httpStatus" in r || "body" in r)) {
63
+ const a = r, s = { ...a };
64
+ delete s.httpStatus, delete s.body;
65
+ const f = Object.keys(s).length > 0;
66
+ return /* @__PURE__ */ o(b, { children: [
67
+ a.body !== void 0 ? /* @__PURE__ */ o(b, { children: [
68
+ /* @__PURE__ */ e("div", { className: i.blockLabel, children: "响应体" }),
69
+ /* @__PURE__ */ e(L, { value: a.body, maxHeight: 420 })
70
70
  ] }) : null,
71
- h ? /* @__PURE__ */ l(y, { children: [
72
- /* @__PURE__ */ e("div", { className: o.blockLabel, children: "其它" }),
73
- /* @__PURE__ */ e(v, { value: a })
71
+ f ? /* @__PURE__ */ o(b, { children: [
72
+ /* @__PURE__ */ e("div", { className: i.blockLabel, children: "其它" }),
73
+ /* @__PURE__ */ e(L, { value: s })
74
74
  ] }) : null
75
75
  ] });
76
76
  }
77
- return /* @__PURE__ */ l(y, { children: [
78
- /* @__PURE__ */ e("div", { className: o.blockLabel, children: t }),
79
- /* @__PURE__ */ e(v, { value: n })
77
+ return /* @__PURE__ */ o(b, { children: [
78
+ /* @__PURE__ */ e("div", { className: i.blockLabel, children: t }),
79
+ /* @__PURE__ */ e(L, { value: r })
80
80
  ] });
81
81
  }
82
- const nt = ({ step: t }) => {
83
- var i;
84
- const n = et(t.output);
85
- return /* @__PURE__ */ l("div", { className: o.stepBody, children: [
86
- /* @__PURE__ */ l("div", { className: o.stepMeta, children: [
87
- t.stepType ? /* @__PURE__ */ e(b, { color: d.DEFAULT, children: t.stepType }) : null,
88
- n != null ? /* @__PURE__ */ l(b, { color: tt(n), children: [
82
+ const ot = ({ step: t }) => {
83
+ var a;
84
+ const r = nt(t.output);
85
+ return /* @__PURE__ */ o("div", { className: i.stepBody, children: [
86
+ /* @__PURE__ */ o("div", { className: i.stepMeta, children: [
87
+ t.stepType ? /* @__PURE__ */ e(S, { color: m.DEFAULT, children: t.stepType }) : null,
88
+ r != null ? /* @__PURE__ */ o(S, { color: rt(r), children: [
89
89
  "HTTP ",
90
- n
90
+ r
91
91
  ] }) : null,
92
- t.occurredAt ? /* @__PURE__ */ e(u.Text, { type: "secondary", children: I(t.occurredAt) }) : null,
93
- typeof t.durationMs == "number" ? /* @__PURE__ */ l(u.Text, { type: "secondary", children: [
92
+ t.occurredAt ? /* @__PURE__ */ e(d.Text, { type: "secondary", children: k(t.occurredAt) }) : null,
93
+ typeof t.durationMs == "number" ? /* @__PURE__ */ o(d.Text, { type: "secondary", children: [
94
94
  t.durationMs,
95
95
  " ms"
96
96
  ] }) : null
97
97
  ] }),
98
- t.sqlText ? /* @__PURE__ */ l(y, { children: [
99
- /* @__PURE__ */ e("div", { className: o.blockLabel, children: "SQL" }),
100
- /* @__PURE__ */ e(B, { className: o.jsonScroll, style: { maxHeight: 200 }, children: /* @__PURE__ */ e("pre", { className: o.jsonBlock, children: t.sqlText }) })
98
+ t.sqlText ? /* @__PURE__ */ o(b, { children: [
99
+ /* @__PURE__ */ e("div", { className: i.blockLabel, children: "SQL" }),
100
+ /* @__PURE__ */ e(H, { className: i.jsonScroll, style: { maxHeight: 200 }, children: /* @__PURE__ */ e("pre", { className: i.jsonBlock, children: t.sqlText }) })
101
101
  ] }) : null,
102
- (i = t.tables) != null && i.length ? /* @__PURE__ */ l(u.Text, { type: "secondary", children: [
102
+ (a = t.tables) != null && a.length ? /* @__PURE__ */ o(d.Text, { type: "secondary", children: [
103
103
  "表:",
104
104
  t.tables.join(", ")
105
105
  ] }) : null,
106
- t.errorMessage ? /* @__PURE__ */ e(u.Text, { type: "danger", children: t.errorMessage }) : null,
107
- t.errorCode ? /* @__PURE__ */ l(u.Text, { type: "secondary", children: [
106
+ t.errorMessage ? /* @__PURE__ */ e(d.Text, { type: "danger", children: t.errorMessage }) : null,
107
+ t.errorCode ? /* @__PURE__ */ o(d.Text, { type: "secondary", children: [
108
108
  "错误码:",
109
109
  t.errorCode
110
110
  ] }) : null,
111
- t.input != null ? j("请求体", t.input) : null,
112
- t.output != null ? j("output", t.output) : null
111
+ t.input != null ? B("请求体", t.input) : null,
112
+ t.output != null ? B("output", t.output) : null
113
113
  ] });
114
- }, gt = ({ detail: t, loading: n, emptyDescription: i = "暂无明细", className: a, getAuthToken: h }) => {
115
- var x, N, p;
116
- const s = L(() => G(t), [t]), A = L(() => {
117
- const r = s.slowestStep != null ? `${s.slowestStep.title} (${s.slowestStep.durationMs}ms)` : "—";
114
+ }, Lt = ({ detail: t, loading: r, emptyDescription: a = "暂无明细", className: s, getAuthToken: f }) => {
115
+ var T, h, g;
116
+ const u = v(() => Q(t), [t]), A = v(() => {
117
+ const l = u.slowestStep != null ? `${u.slowestStep.title} (${u.slowestStep.durationMs}ms)` : "—";
118
118
  return [
119
119
  {
120
120
  title: "总耗时",
121
- value: s.durationMs ?? "—",
122
- suffix: s.durationMs != null ? "ms" : void 0,
121
+ value: u.durationMs ?? "—",
122
+ suffix: u.durationMs != null ? "ms" : void 0,
123
123
  tone: "blue",
124
124
  color: "#1677ff"
125
125
  },
126
- { title: "步数", value: s.stepCount, tone: "lilac", color: "#722ed1" },
127
- { title: "SQL 步", value: s.sqlCount, tone: "mint", color: "#0d9f8a" },
128
- { title: "最慢步", value: r, tone: "peach", color: "#d46b08" }
126
+ { title: "步数", value: u.stepCount, tone: "lilac", color: "#722ed1" },
127
+ { title: "SQL 步", value: u.sqlCount, tone: "mint", color: "#0d9f8a" },
128
+ { title: "最慢步", value: l, tone: "peach", color: "#d46b08" }
129
129
  ];
130
- }, [s]);
131
- if (n)
132
- return /* @__PURE__ */ e(u.Text, { type: "secondary", children: "加载中…" });
130
+ }, [u]);
131
+ if (r)
132
+ return /* @__PURE__ */ e(d.Text, { type: "secondary", children: "加载中…" });
133
133
  if (!t)
134
- return /* @__PURE__ */ e(w, { description: i });
135
- const m = t.steps || [], f = M(t.action, t.actionLabel), g = m.map((r, c) => E(r) ? String(c) : null).filter((r) => r != null), S = [
134
+ return /* @__PURE__ */ e(E, { description: a });
135
+ const p = t.steps || [], y = I(t.action, t.actionLabel), C = p.map((l, n) => D(l) ? String(n) : null).filter((l) => l != null), x = [
136
136
  {
137
137
  label: "操作人",
138
- value: (x = t.actorName) != null && x.trim() ? t.actorName : "—"
138
+ value: (T = t.actorName) != null && T.trim() ? t.actorName : "—"
139
139
  },
140
- { label: "时间", value: I(t.createdAt) },
140
+ { label: "时间", value: k(t.createdAt) },
141
141
  {
142
142
  label: "方法",
143
- value: (N = t.httpMethod) != null && N.trim() ? t.httpMethod : "—"
143
+ value: (h = t.httpMethod) != null && h.trim() ? t.httpMethod : "—"
144
144
  },
145
145
  {
146
146
  label: "状态",
147
- value: /* @__PURE__ */ e(b, { color: H(t.status), children: R(t.status) })
147
+ value: /* @__PURE__ */ e(S, { color: O(t.status), children: F(t.status) })
148
148
  },
149
149
  {
150
150
  label: "类别",
151
- value: t.category ? F(t.category) : "—"
151
+ value: t.category ? P(t.category) : "—"
152
152
  },
153
153
  {
154
154
  label: "耗时",
@@ -156,167 +156,176 @@ const nt = ({ step: t }) => {
156
156
  },
157
157
  {
158
158
  label: "路径",
159
- value: (p = t.path) != null && p.trim() ? /* @__PURE__ */ e(u.Text, { code: !0, copyable: { text: t.path }, children: t.path }) : "—",
159
+ value: (g = t.path) != null && g.trim() ? /* @__PURE__ */ e(d.Text, { code: !0, copyable: { text: t.path }, children: t.path }) : "—",
160
160
  span: 2
161
161
  },
162
162
  {
163
163
  label: "traceId",
164
- value: t.traceId ? /* @__PURE__ */ e(u.Text, { copyable: { text: t.traceId }, children: t.traceId }) : "—",
164
+ value: t.traceId ? /* @__PURE__ */ e(d.Text, { copyable: { text: t.traceId }, children: t.traceId }) : "—",
165
165
  span: 1
166
166
  },
167
- ...rt(t) ? [{ label: "动作码", value: /* @__PURE__ */ e(u.Text, { code: !0, children: t.action }) }] : []
167
+ ...lt(t) ? [{ label: "动作码", value: /* @__PURE__ */ e(d.Text, { code: !0, children: t.action }) }] : []
168
168
  ];
169
- return /* @__PURE__ */ l(T, { className: D(o.detail, a), children: [
170
- /* @__PURE__ */ l(
171
- T.Part,
169
+ return /* @__PURE__ */ o(N, { className: R(i.detail, s), children: [
170
+ /* @__PURE__ */ o(
171
+ N.Part,
172
172
  {
173
- title: /* @__PURE__ */ l(k, { size: 8, wrap: !0, children: [
174
- /* @__PURE__ */ e("span", { children: f }),
175
- f !== t.action ? /* @__PURE__ */ e(u.Text, { type: "secondary", className: o.actionCode, children: t.action }) : null
173
+ title: /* @__PURE__ */ o(j, { size: 8, wrap: !0, children: [
174
+ /* @__PURE__ */ e("span", { children: y }),
175
+ y !== t.action ? /* @__PURE__ */ e(d.Text, { type: "secondary", className: i.actionCode, children: t.action }) : null
176
176
  ] }),
177
177
  subtitle: "事件摘要",
178
178
  extra: t.path || t.requestCurl ? /* @__PURE__ */ e(
179
- P,
179
+ U,
180
180
  {
181
181
  size: "small",
182
182
  type: "primary",
183
183
  onClick: async () => {
184
184
  try {
185
- const r = V(t, W(h));
186
- await O(r) ? C.success("已复制 curl") : C.error("复制失败");
187
- } catch (r) {
188
- C.error(r instanceof Error ? r.message : "无法生成 curl");
185
+ const l = _(t, $(f));
186
+ await z(l) ? M.success("已复制 curl") : M.error("复制失败");
187
+ } catch (l) {
188
+ M.error(l instanceof Error ? l.message : "无法生成 curl");
189
189
  }
190
190
  },
191
191
  children: "复制 curl"
192
192
  }
193
193
  ) : void 0,
194
194
  children: [
195
- /* @__PURE__ */ e("div", { className: o.kpiBlock, children: /* @__PURE__ */ e(J, { items: A, inline: !0, fontSize: 20, gutter: [12, 8] }) }),
196
- /* @__PURE__ */ e(X, { content: S, column: 3, bordered: !0, size: "small" })
195
+ /* @__PURE__ */ e("div", { className: i.kpiBlock, children: /* @__PURE__ */ e(Z, { items: A, inline: !0, fontSize: 20, gutter: [12, 8] }) }),
196
+ /* @__PURE__ */ e(tt, { content: x, column: 3, bordered: !0, size: "small" })
197
197
  ]
198
198
  }
199
199
  ),
200
- /* @__PURE__ */ e(T.Part, { title: "耗时瀑布", subtitle: "逐步 durationMs(无 SQL 原文)", children: /* @__PURE__ */ e(q, { steps: m }) }),
201
- /* @__PURE__ */ l(T.Part, { title: "执行流程", subtitle: "默认折叠;失败步展开;展开后见 SQL/正文", children: [
202
- t.stepsTruncated ? /* @__PURE__ */ l("div", { className: o.truncateNote, children: [
200
+ /* @__PURE__ */ e(N.Part, { title: "耗时瀑布", subtitle: "逐步 durationMs(无 SQL 原文)", children: /* @__PURE__ */ e(K, { steps: p }) }),
201
+ /* @__PURE__ */ o(N.Part, { title: "执行流程", subtitle: "默认折叠;失败步展开;展开后见 SQL/正文", children: [
202
+ t.stepsTruncated ? /* @__PURE__ */ o("div", { className: i.truncateNote, children: [
203
203
  "步骤已截断:展示 ",
204
- m.length,
204
+ p.length,
205
205
  " / ",
206
- t.stepsTotal ?? m.length
206
+ t.stepsTotal ?? p.length
207
207
  ] }) : null,
208
- m.length === 0 ? /* @__PURE__ */ e(w, { description: "无流程步骤" }) : /* @__PURE__ */ e(
209
- z,
208
+ p.length === 0 ? /* @__PURE__ */ e(E, { description: "无流程步骤" }) : /* @__PURE__ */ e(
209
+ Y,
210
210
  {
211
- defaultActiveKey: g,
212
- items: m.map((r, c) => ({
213
- key: String(c),
214
- label: /* @__PURE__ */ l(k, { size: 8, wrap: !0, children: [
215
- /* @__PURE__ */ e("span", { children: r.title || r.stepType }),
216
- typeof r.durationMs == "number" ? /* @__PURE__ */ l(u.Text, { type: "secondary", children: [
217
- r.durationMs,
211
+ defaultActiveKey: C,
212
+ items: p.map((l, n) => ({
213
+ key: String(n),
214
+ label: /* @__PURE__ */ o(j, { size: 8, wrap: !0, children: [
215
+ /* @__PURE__ */ e("span", { children: l.title || l.stepType }),
216
+ typeof l.durationMs == "number" ? /* @__PURE__ */ o(d.Text, { type: "secondary", children: [
217
+ l.durationMs,
218
218
  " ms"
219
219
  ] }) : null,
220
- E(r) ? /* @__PURE__ */ e(b, { color: d.DANGER, children: "失败" }) : null
220
+ D(l) ? /* @__PURE__ */ e(S, { color: m.DANGER, children: "失败" }) : null
221
221
  ] }),
222
- children: /* @__PURE__ */ e(nt, { step: r })
222
+ children: /* @__PURE__ */ e(ot, { step: l })
223
223
  }))
224
224
  }
225
225
  )
226
226
  ] })
227
227
  ] });
228
- }, Ct = ({
228
+ }, vt = ({
229
229
  mode: t = "app",
230
- dataSource: n,
231
- loading: i,
232
- onRowClick: a,
233
- filterSlot: h,
234
- dayStats: s,
230
+ dataSource: r,
231
+ loading: a,
232
+ onRowClick: s,
233
+ filterSlot: f,
234
+ dayStats: u,
235
235
  dayStatsLoading: A,
236
- dayStatsError: m,
237
- onExport: f,
238
- exportLoading: g,
239
- pagination: S,
240
- className: x
236
+ dayStatsError: p,
237
+ onExport: y,
238
+ exportLoading: C,
239
+ pagination: x,
240
+ className: T,
241
+ systemAppNames: h
241
242
  }) => {
242
- const N = L(() => {
243
- const p = [
243
+ const g = v(() => {
244
+ const l = [
244
245
  {
245
246
  title: "时间",
246
247
  dataIndex: "createdAt",
247
248
  width: 180,
248
- render: (r) => I(r)
249
+ render: (n) => k(n)
249
250
  },
250
251
  {
251
252
  title: "类别",
252
253
  dataIndex: "category",
253
254
  width: 96,
254
- render: (r) => F(r)
255
+ render: (n) => P(n)
255
256
  },
256
257
  {
257
258
  title: "方法",
258
259
  dataIndex: "httpMethod",
259
260
  width: 72,
260
- render: (r) => r && String(r).trim() ? r : "—"
261
+ render: (n) => n && String(n).trim() ? n : "—"
261
262
  },
262
263
  {
263
264
  title: "操作人",
264
265
  dataIndex: "actorName",
265
266
  width: 100,
266
267
  ellipsis: !0,
267
- render: (r) => r && String(r).trim() ? r : "—"
268
+ render: (n) => n && String(n).trim() ? n : "—"
268
269
  },
269
270
  {
270
271
  title: "动作",
271
272
  dataIndex: "action",
272
273
  width: 160,
273
274
  ellipsis: !0,
274
- render: (r, c) => M(c.action, c.actionLabel)
275
+ render: (n, c) => I(c.action, c.actionLabel)
275
276
  },
276
277
  {
277
278
  title: "摘要",
278
279
  dataIndex: "summary",
279
280
  ellipsis: !0,
280
- render: (r, c) => $(c.summary, M(c.action, c.actionLabel))
281
+ render: (n, c) => X(c.summary, I(c.action, c.actionLabel), {
282
+ httpMethod: c.httpMethod,
283
+ path: c.path
284
+ })
281
285
  },
282
286
  {
283
287
  title: "状态",
284
288
  dataIndex: "status",
285
289
  width: 90,
286
- render: (r) => /* @__PURE__ */ e(b, { color: H(r), children: R(r) })
290
+ render: (n) => /* @__PURE__ */ e(S, { color: O(n), children: F(n) })
287
291
  },
288
292
  { title: "耗时ms", dataIndex: "durationMs", width: 80 },
289
293
  { title: "路径", dataIndex: "path", ellipsis: !0 }
290
294
  ];
291
- return t === "platform" && p.splice(2, 0, {
295
+ return t === "platform" && l.splice(2, 0, {
292
296
  title: "系统",
293
297
  dataIndex: "systemAppId",
294
298
  width: 140,
295
- ellipsis: !0
296
- }), p;
297
- }, [t]);
298
- return /* @__PURE__ */ l("div", { className: D(o.wrap, x), children: [
299
- h ? /* @__PURE__ */ e("div", { className: o.filter, children: h }) : null,
300
- s !== void 0 || f ? /* @__PURE__ */ e(
301
- Y,
299
+ ellipsis: !0,
300
+ render: (n) => {
301
+ var w;
302
+ const c = n && String(n).trim() ? String(n) : "";
303
+ return c ? ((w = h == null ? void 0 : h[c]) == null ? void 0 : w.trim()) || c : "—";
304
+ }
305
+ }), l;
306
+ }, [t, h]);
307
+ return /* @__PURE__ */ o("div", { className: R(i.wrap, T), children: [
308
+ f ? /* @__PURE__ */ e("div", { className: i.filter, children: f }) : null,
309
+ u !== void 0 || y ? /* @__PURE__ */ e(
310
+ G,
302
311
  {
303
- stats: s ?? null,
312
+ stats: u ?? null,
304
313
  loading: A,
305
- error: m,
306
- onExport: f,
307
- exportLoading: g
314
+ error: p,
315
+ onExport: y,
316
+ exportLoading: C
308
317
  }
309
318
  ) : null,
310
319
  /* @__PURE__ */ e(
311
- Z,
320
+ et,
312
321
  {
313
322
  rowKey: "id",
314
- loading: i,
315
- columns: N,
316
- dataSource: n,
317
- pagination: S === void 0 ? !1 : S,
318
- onRow: a ? (p) => ({
319
- onClick: () => a(p),
323
+ loading: a,
324
+ columns: g,
325
+ dataSource: r,
326
+ pagination: x === void 0 ? !1 : x,
327
+ onRow: s ? (l) => ({
328
+ onClick: () => s(l),
320
329
  style: { cursor: "pointer" }
321
330
  }) : void 0
322
331
  }
@@ -324,8 +333,8 @@ const nt = ({ step: t }) => {
324
333
  ] });
325
334
  };
326
335
  export {
327
- gt as AuditEventDetailView,
328
- Ct as AuditLogList,
329
- nt as AuditStepContent
336
+ Lt as AuditEventDetailView,
337
+ vt as AuditLogList,
338
+ ot as AuditStepContent
330
339
  };
331
340
  //# sourceMappingURL=AuditLogList.js.map