@ximatai/muyun-web-app 0.26.21 → 0.26.23

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 (39) hide show
  1. package/dist/{BusinessActivityLogView-6L75GZVc.js → BusinessActivityLogView-IWGZiPLo.js} +2 -2
  2. package/dist/{BusinessLogListDrawer-C4iFnkE7.js → BusinessLogListDrawer-UCsg6psI.js} +85 -85
  3. package/dist/{CodeConfigurationView-D7sqbNCg.js → CodeConfigurationView-Calkazua.js} +532 -532
  4. package/dist/{ConfigurationTranslationView-ta82REbn.js → ConfigurationTranslationView-fZrlRAMy.js} +24 -24
  5. package/dist/{LoginAuditLogView-B_RQ9JIX.js → LoginAuditLogView-B6J7t__0.js} +2 -2
  6. package/dist/ModuleActionManagementView-BZ89Woex.js +755 -0
  7. package/dist/{ModuleGovernanceView-Cl6tkZ6M.js → ModuleGovernanceView-D8ONs78K.js} +1892 -1892
  8. package/dist/{RequestErrorLogView-BJDO3Scn.js → RequestErrorLogView-poMgx4_6.js} +2 -2
  9. package/dist/RoleDetailWorkspaceView-6Bs1eKbm.js +1435 -0
  10. package/dist/{RuntimeLogView-jP9ceuJD.js → RuntimeLogView-Co-Z86bt.js} +41 -41
  11. package/dist/WorkflowAdministrationView-D7QpRHDp.js +650 -0
  12. package/dist/{WorkflowConfigurationView-Dh6BKQm5.js → WorkflowConfigurationView-mSyL_-We.js} +32 -32
  13. package/dist/{WorkflowWorkbenchView-BvPNKbuV.js → WorkflowWorkbenchView-DBMh3ycN.js} +224 -224
  14. package/dist/{codeConfiguration-DhCBKbkc.js → codeConfiguration-D1zrxzoW.js} +44 -44
  15. package/dist/index.css +1 -1
  16. package/dist/index.js +524 -550
  17. package/dist/moduleMenuWorkspace-lIVrTaOB.js +626 -0
  18. package/dist/{platform-components-i2ONyZ8r.js → platform-components-D0T03KGl.js} +2815 -2913
  19. package/dist/{platform-workbench-DhaREttd.js → platform-workbench-CobObbuz.js} +2770 -2745
  20. package/dist/record-read.js +2 -0
  21. package/dist/recordReadEntry-CxDHM44F.js +152 -0
  22. package/dist/types/consumer/recordRead.d.ts +6 -0
  23. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +4 -0
  24. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +8 -0
  25. package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +2 -0
  26. package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +2 -0
  27. package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +2 -0
  28. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +2 -0
  29. package/dist/types/platform-components/RecordFormFields.vue.d.ts +10 -8
  30. package/dist/types/platform-components/useBusinessCodeForm.d.ts +1 -0
  31. package/dist/types/platform-workbench/useAssistantConversation.d.ts +3 -0
  32. package/dist/types/web-contracts/operation.d.ts +2 -0
  33. package/dist/{useWorkflowConfigurationContext-B_NxZFyz.js → useWorkflowConfigurationContext-BkcNPU2H.js} +8 -8
  34. package/dist/{workspaceViews-MTwNg_aQ.js → workspaceViews-BtqO8rU0.js} +355 -355
  35. package/package.json +5 -1
  36. package/dist/ModuleActionManagementView-DtGF3NC_.js +0 -755
  37. package/dist/RoleDetailWorkspaceView-C0Ab3PEp.js +0 -1435
  38. package/dist/WorkflowAdministrationView-BmNJQYtq.js +0 -650
  39. package/dist/moduleMenuWorkspace-BbVmNKZn.js +0 -626
@@ -1,21 +1,21 @@
1
- import { $a as e, Aa as t, Cn as n, Da as r, Ga as i, Ht as a, Mn as o, Xa as ee, Ya as te, _n as s, ba as c, da as l, fa as u, fn as ne, fr as d, lr as re, pa as ie, q as ae, qa as f, qr as p, ur as m, wa as h, zn as oe } from "./platform-components-i2ONyZ8r.js";
1
+ import { Ca as e, Cn as t, Ea as n, Ht as r, Ja as i, Ka as a, Kr as o, Mn as s, Qa as c, Wa as ee, Ya as l, _n as u, da as d, fa as te, fn as ne, fr as f, ka as re, lr as ie, q as ae, ua as p, ur as m, ya as h, zn as oe } from "./platform-components-D0T03KGl.js";
2
2
  import { computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as x, createVNode as S, defineComponent as C, nextTick as w, onBeforeUnmount as T, openBlock as E, ref as D, shallowRef as O, toDisplayString as k, unref as A, watch as se, withCtx as j } from "vue";
3
3
  //#region src/views/runtimeLogClient.ts
4
4
  var M = "/platform.runtime_log";
5
- function ce(t, n = f) {
6
- if (!e(t)) throw new l(u(n, "platform.screen.runtimeLogClient.the-current-http-client-does-not-support-runtime-log-streams", "当前 HTTP 客户端不支持运行日志流。"));
5
+ function ce(e, t = a) {
6
+ if (!c(e)) throw new p(d(t, "platform.screen.runtimeLogClient.the-current-http-client-does-not-support-runtime-log-streams", "当前 HTTP 客户端不支持运行日志流。"));
7
7
  return {
8
- download(e) {
9
- return t.stream({
10
- path: `${M}/files/${encodeURIComponent(e)}/download`,
8
+ download(t) {
9
+ return e.stream({
10
+ path: `${M}/files/${encodeURIComponent(t)}/download`,
11
11
  headers: { Accept: "application/octet-stream" }
12
12
  });
13
13
  },
14
- activeStream(e, n) {
15
- return t.stream({
14
+ activeStream(t, n) {
15
+ return e.stream({
16
16
  method: "POST",
17
17
  path: `${M}/active/stream`,
18
- body: { tailLines: e },
18
+ body: { tailLines: t },
19
19
  headers: { Accept: "text/event-stream, application/json" },
20
20
  ...n ? { signal: n } : {}
21
21
  });
@@ -24,14 +24,14 @@ function ce(t, n = f) {
24
24
  }
25
25
  //#endregion
26
26
  //#region src/views/runtimeLogSse.ts
27
- var le = c, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view__header-actions" }, fe = { key: 2 }, pe = { key: 3 }, me = { class: "runtime-log-view__row-actions" }, he = {
27
+ var le = h, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view__header-actions" }, fe = { key: 2 }, pe = { key: 3 }, me = { class: "runtime-log-view__row-actions" }, he = {
28
28
  key: 0,
29
29
  class: "runtime-log-view__content"
30
- }, ge = 500, N = /*#__PURE__*/ d(/* @__PURE__ */ C({
30
+ }, ge = 500, N = /*#__PURE__*/ f(/* @__PURE__ */ C({
31
31
  name: "RuntimeLogView",
32
32
  __name: "RuntimeLogView",
33
- setup(e) {
34
- let c = ee(), d = p({ moduleAlias: "platform.runtime_log" }), f = ce(d.http, c), C = O(), M = g(() => C.value ? $(C.value) : void 0), N = D(), P = D(!1), F = D(), I = D(""), L = D("closed"), R = O(), z = D(), B = D(!0), V = 0, H, U, W = 0, _e = g(() => {
33
+ setup(a) {
34
+ let c = l(), f = o({ moduleAlias: "platform.runtime_log" }), h = ce(f.http, c), C = O(), M = g(() => C.value ? $(C.value) : void 0), N = D(), P = D(!1), F = D(), I = D(""), L = D("closed"), R = O(), z = D(), B = D(!0), V = 0, H, U, W = 0, _e = g(() => {
35
35
  let e = R.value;
36
36
  return e ? typeof e == "string" ? e : e instanceof Error ? $(e) : c.t(e.source.sourceId, e.source.originalText, e.args) : {
37
37
  connecting: c.t("platform.screen.RuntimeLogView.connecting-to-live-logs", "正在连接实时日志…"),
@@ -86,7 +86,7 @@ var le = c, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
86
86
  }
87
87
  async function Se(e, t) {
88
88
  try {
89
- let n = await f.activeStream(ge, t.signal);
89
+ let n = await h.activeStream(ge, t.signal);
90
90
  if (t.signal.aborted || e !== V) {
91
91
  await n.cancel();
92
92
  return;
@@ -99,9 +99,9 @@ var le = c, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
99
99
  if (e) break;
100
100
  t && a.push(i.decode(t, { stream: !0 }));
101
101
  }
102
- a.push(i.decode()), a.finish(), !t.signal.aborted && e === V && L.value !== "rotated" && (L.value = "closed", R.value = u(c, "platform.screen.RuntimeLogView.the-live-log-connection-has-ended", "实时日志连接已结束。"));
102
+ a.push(i.decode()), a.finish(), !t.signal.aborted && e === V && L.value !== "rotated" && (L.value = "closed", R.value = d(c, "platform.screen.RuntimeLogView.the-live-log-connection-has-ended", "实时日志连接已结束。"));
103
103
  } catch (n) {
104
- !t.signal.aborted && e === V && (L.value = "error", R.value = Q(n, u(c, "platform.screen.RuntimeLogView.failed-to-connect-to-live-logs-reconnect", "实时日志连接失败,请重新连接。")), s(n, {
104
+ !t.signal.aborted && e === V && (L.value = "error", R.value = Q(n, d(c, "platform.screen.RuntimeLogView.failed-to-connect-to-live-logs-reconnect", "实时日志连接失败,请重新连接。")), u(n, {
105
105
  language: c,
106
106
  source: "runtime-log-stream",
107
107
  phase: "load"
@@ -110,12 +110,12 @@ var le = c, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
110
110
  e === V && (H = void 0);
111
111
  }
112
112
  }
113
- function Ce(e, n, r) {
114
- if (!(r.signal.aborted || n !== V)) switch (e.event) {
113
+ function Ce(e, t, n) {
114
+ if (!(n.signal.aborted || t !== V)) switch (e.event) {
115
115
  case "snapshot":
116
116
  case "reset": {
117
117
  let t = Y(e.data);
118
- I.value = X(t.text), F.value = Z(t.fileName) ?? F.value, L.value = "live", R.value = e.event === "reset" ? u(c, "platform.screen.RuntimeLogView.log-content-was-reset-live-updates-are-continuing", "日志内容已重置,正在继续实时更新。") : void 0;
118
+ I.value = X(t.text), F.value = Z(t.fileName) ?? F.value, L.value = "live", R.value = e.event === "reset" ? d(c, "platform.screen.RuntimeLogView.log-content-was-reset-live-updates-are-continuing", "日志内容已重置,正在继续实时更新。") : void 0;
119
119
  return;
120
120
  }
121
121
  case "append": {
@@ -125,18 +125,18 @@ var le = c, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
125
125
  }
126
126
  case "rotated": {
127
127
  let t = Y(e.data);
128
- F.value = Z(t.fileName) ?? F.value, W < 1 ? (W += 1, L.value = "connecting", R.value = u(c, "platform.screen.RuntimeLogView.the-log-file-has-rotated-reconnecting-to-the-latest-file", "日志文件已轮转,正在重新连接最新文件…"), w(() => K())) : (L.value = "rotated", R.value = u(c, "platform.screen.RuntimeLogView.the-log-file-has-rotated-again-reconnect-manually", "日志文件再次轮转,请手动重新连接。"), q());
128
+ F.value = Z(t.fileName) ?? F.value, W < 1 ? (W += 1, L.value = "connecting", R.value = d(c, "platform.screen.RuntimeLogView.the-log-file-has-rotated-reconnecting-to-the-latest-file", "日志文件已轮转,正在重新连接最新文件…"), w(() => K())) : (L.value = "rotated", R.value = d(c, "platform.screen.RuntimeLogView.the-log-file-has-rotated-again-reconnect-manually", "日志文件再次轮转,请手动重新连接。"), q());
129
129
  return;
130
130
  }
131
131
  case "error": {
132
- let n = Y(e.data);
132
+ let t = Y(e.data);
133
133
  L.value = "error";
134
- let r = Z(n.message), a = n.messageSource;
135
- R.value = n.code === "RUNTIME_LOG_STREAM_INTERRUPTED" && t(a) && a.sourceKind === "CODE" && a.sourceId === "platform.runtime-log.stream-interrupted" && a.originalText === i(a.sourceId) && te(a, r ?? "") ? {
136
- message: r,
137
- source: a,
134
+ let n = Z(t.message), r = t.messageSource;
135
+ R.value = t.code === "RUNTIME_LOG_STREAM_INTERRUPTED" && re(r) && r.sourceKind === "CODE" && r.sourceId === "platform.runtime-log.stream-interrupted" && r.originalText === ee(r.sourceId) && i(r, n ?? "") ? {
136
+ message: n,
137
+ source: r,
138
138
  args: {}
139
- } : r ?? u(c, "platform.screen.RuntimeLogView.the-live-log-connection-encountered-an-error-reconnect", "实时日志连接出现错误,请重新连接。"), q();
139
+ } : n ?? d(c, "platform.screen.RuntimeLogView.the-live-log-connection-encountered-an-error-reconnect", "实时日志连接出现错误,请重新连接。"), q();
140
140
  }
141
141
  }
142
142
  }
@@ -149,10 +149,10 @@ var le = c, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
149
149
  if (!N.value) {
150
150
  N.value = e.name;
151
151
  try {
152
- let t = await Te(await f.download(e.name)), n = t.buffer.slice(t.byteOffset, t.byteOffset + t.byteLength), r = URL.createObjectURL(new Blob([n], { type: "text/plain;charset=utf-8" })), i = document.createElement("a");
152
+ let t = await Te(await h.download(e.name)), n = t.buffer.slice(t.byteOffset, t.byteOffset + t.byteLength), r = URL.createObjectURL(new Blob([n], { type: "text/plain;charset=utf-8" })), i = document.createElement("a");
153
153
  i.href = r, i.download = e.name, i.click(), window.setTimeout(() => URL.revokeObjectURL(r), 6e4);
154
154
  } catch (t) {
155
- C.value = Q(t, u(c, "platform.screen.RuntimeLogView.failed-to-download-value-try-again-later", "下载 {value1} 失败,请稍后重试。", { value1: e.name })), s(t, {
155
+ C.value = Q(t, d(c, "platform.screen.RuntimeLogView.failed-to-download-value-try-again-later", "下载 {value1} 失败,请稍后重试。", { value1: e.name })), u(t, {
156
156
  language: c,
157
157
  source: "runtime-log-download",
158
158
  phase: "load"
@@ -201,20 +201,20 @@ var le = c, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
201
201
  return typeof e == "string" && e ? e : void 0;
202
202
  }
203
203
  function Q(e, t) {
204
- return e instanceof Error && e.message ? e : new l(t);
204
+ return e instanceof Error && e.message ? e : new p(t);
205
205
  }
206
- function $(e) {
207
- return e instanceof l ? ie(e, c) : r(h(e), c);
206
+ function $(t) {
207
+ return t instanceof p ? te(t, c) : n(e(t), c);
208
208
  }
209
- return (e, t) => (E(), y("section", ue, [
210
- M.value ? (E(), _(A(o), {
209
+ return (e, n) => (E(), y("section", ue, [
210
+ M.value ? (E(), _(A(s), {
211
211
  key: 0,
212
212
  class: "runtime-log-view__error",
213
213
  message: M.value
214
214
  }, null, 8, ["message"])) : v("v-if", !0),
215
215
  S(A(ae), {
216
216
  class: "runtime-log-view__list",
217
- context: A(d),
217
+ context: A(f),
218
218
  title: A(c).t("platform.screen.RuntimeLogView.runtime-logs", "程序日志"),
219
219
  columns: ye.value,
220
220
  "row-key": "name",
@@ -239,13 +239,13 @@ var le = c, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
239
239
  default: j(() => [x(k(A(c).t("platform.screen.RuntimeLogView.view-live-logs", "实时查看")), 1)]),
240
240
  _: 1
241
241
  })])]),
242
- cell: j(({ column: e, record: t }) => [e.key === "sizeBytes" ? (E(), _(A(ne), {
242
+ cell: j(({ column: e, record: n }) => [e.key === "sizeBytes" ? (E(), _(A(ne), {
243
243
  key: 0,
244
- value: t.sizeBytes
245
- }, null, 8, ["value"])) : e.key === "lastModifiedAt" ? (E(), _(A(n), {
244
+ value: n.sizeBytes
245
+ }, null, 8, ["value"])) : e.key === "lastModifiedAt" ? (E(), _(A(t), {
246
246
  key: 1,
247
- value: t.lastModifiedAt
248
- }, null, 8, ["value"])) : e.key === "active" ? (E(), y("span", fe, k(t.active ? A(c).t("platform.screen.RuntimeLogView.active", "正在写入") : A(c).t("platform.workflow.archived", "已归档")), 1)) : (E(), y("span", pe, k(t[e.key]), 1))]),
247
+ value: n.lastModifiedAt
248
+ }, null, 8, ["value"])) : e.key === "active" ? (E(), y("span", fe, k(n.active ? A(c).t("platform.screen.RuntimeLogView.active", "正在写入") : A(c).t("platform.workflow.archived", "已归档")), 1)) : (E(), y("span", pe, k(n[e.key]), 1))]),
249
249
  rowActions: j(({ record: e }) => [b("div", me, [e.active === !0 ? (E(), _(A(m), {
250
250
  key: 0,
251
251
  type: "link",
@@ -278,7 +278,7 @@ var le = c, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
278
278
  "empty-description",
279
279
  "row-actions-title"
280
280
  ]),
281
- S(A(a), {
281
+ S(A(r), {
282
282
  open: P.value,
283
283
  title: F.value ? A(c).t("platform.screen.RuntimeLogView.live-logs-value", "实时日志 · {value1}", { value1: F.value }) : A(c).t("platform.screen.RuntimeLogView.live-logs", "实时日志"),
284
284
  subtitle: _e.value,
@@ -287,7 +287,7 @@ var le = c, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
287
287
  dismissal: "dismissible",
288
288
  onClose: xe
289
289
  }, {
290
- "header-actions": j(() => [ve.value ? (E(), _(A(re), {
290
+ "header-actions": j(() => [ve.value ? (E(), _(A(ie), {
291
291
  key: 0,
292
292
  emphasis: "quiet",
293
293
  "icon-name": "reload",