@ximatai/muyun-web-app 0.26.24 → 0.26.26

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 (52) hide show
  1. package/dist/{BusinessActivityLogView-DQ5_VmLp.js → BusinessActivityLogView-BPnAoGim.js} +2 -2
  2. package/dist/{BusinessLogListDrawer-BnucgqNA.js → BusinessLogListDrawer-CXabZOOM.js} +170 -166
  3. package/dist/{CodeConfigurationView-CtQjmpLz.js → CodeConfigurationView-B1Lgdnkj.js} +291 -291
  4. package/dist/{ConfigurationTranslationView-BiYn2MJx.js → ConfigurationTranslationView-BsWyLeRd.js} +39 -39
  5. package/dist/{LoginAuditLogView-BIz1LVC3.js → LoginAuditLogView-D3TJdzWM.js} +2 -2
  6. package/dist/{ModuleActionManagementView-0_ek9yag.js → ModuleActionManagementView-C9LiwMM3.js} +161 -161
  7. package/dist/{ModuleGovernanceView-DEDF61vj.js → ModuleGovernanceView-CYZzHLHa.js} +2501 -2501
  8. package/dist/{RequestErrorLogView-HatmiK8_.js → RequestErrorLogView-D85h_q4P.js} +2 -2
  9. package/dist/{RoleDetailWorkspaceView-BzzoarpR.js → RoleDetailWorkspaceView-VHvh-_Sj.js} +79 -79
  10. package/dist/{RuntimeLogView-Vdt6SWK6.js → RuntimeLogView-D-MrVfT7.js} +60 -60
  11. package/dist/{WorkflowAdministrationView-Dlw2ng0N.js → WorkflowAdministrationView-DHPlIJXF.js} +154 -154
  12. package/dist/{WorkflowConfigurationView-j2xnGmkM.js → WorkflowConfigurationView-BhQl7NjM.js} +293 -293
  13. package/dist/{WorkflowWorkbenchView-Nv4mvTTP.js → WorkflowWorkbenchView-BN3ckTHB.js} +235 -235
  14. package/dist/{codeConfiguration-B_z1qQvB.js → codeConfiguration-B5OjCYZ6.js} +26 -26
  15. package/dist/index.css +1 -1
  16. package/dist/index.js +2195 -1562
  17. package/dist/{moduleMenuWorkspace-1N0U7QW9.js → moduleMenuWorkspace-DhI4_LpA.js} +233 -233
  18. package/dist/{platform-components-Xb5qgsXU.js → platform-components-Ca8SikTY.js} +3590 -3002
  19. package/dist/{platform-workbench-VhgKhPLI.js → platform-workbench-DpXhb4F6.js} +5542 -5417
  20. package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +4 -1
  21. package/dist/types/app/PersonalAccessTokenDialog.vue.d.ts +15 -0
  22. package/dist/types/app/PersonalAccessTokens.vue.d.ts +8 -0
  23. package/dist/types/app/WorkbenchAccountCenter.vue.d.ts +40 -0
  24. package/dist/types/app/themeSkinPreference.d.ts +2 -2
  25. package/dist/types/app/useCurrentUserProfile.d.ts +1 -0
  26. package/dist/types/app/usePersonalAccessTokenAccess.d.ts +11 -0
  27. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +20 -4
  28. package/dist/types/consumer/index.d.ts +9 -0
  29. package/dist/types/dynamic-page-runtime/formCreateDefaults.d.ts +3 -0
  30. package/dist/types/platform-admin-runtime/authSession.d.ts +2 -0
  31. package/dist/types/platform-admin-runtime/index.d.ts +1 -1
  32. package/dist/types/platform-components/CronExpressionInput.vue.d.ts +12 -0
  33. package/dist/types/platform-components/DurationSecondsInput.vue.d.ts +10 -0
  34. package/dist/types/platform-components/RecordFormFields.vue.d.ts +2 -2
  35. package/dist/types/platform-components/cronExpression.d.ts +36 -0
  36. package/dist/types/platform-components/durationSeconds.d.ts +31 -0
  37. package/dist/types/platform-components/index.d.ts +6 -0
  38. package/dist/types/platform-workbench/Workbench.vue.d.ts +13 -4
  39. package/dist/types/platform-workbench/WorkbenchGlobalTools.vue.d.ts +5 -0
  40. package/dist/types/platform-workbench/WorkbenchOutlet.vue.d.ts +11 -1
  41. package/dist/types/platform-workbench/index.d.ts +3 -0
  42. package/dist/types/platform-workbench/workbenchAccountMenu.d.ts +33 -0
  43. package/dist/types/platform-workbench/workspaceViewDiscardGuard.d.ts +1 -1
  44. package/dist/types/views/businessLogClient.d.ts +2 -0
  45. package/dist/types/vue-ui-antdv/components/UiInputGroup.vue.d.ts +20 -0
  46. package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +2 -0
  47. package/dist/types/vue-ui-antdv/index.d.ts +1 -0
  48. package/dist/types/web-contracts/index.d.ts +16 -0
  49. package/dist/types/web-core/clients.d.ts +15 -1
  50. package/dist/{useWorkflowConfigurationContext-BLFXzHwn.js → useWorkflowConfigurationContext-DpzBpKa3.js} +8 -8
  51. package/dist/{workspaceViews-Cas3PR5B.js → workspaceViews-CLOyLZMZ.js} +620 -620
  52. package/package.json +1 -1
@@ -1,63 +1,63 @@
1
- import { _t as e, m as t, xt as n } from "./platform-workbench-VhgKhPLI.js";
2
- import { $r as r, Ia as i, Ir as a, Ja as o, Oa as s, Qn as c, Sa as l, Ta as u, dr as d, fa as f, hi as p, ir as m, la as h, ma as g, pa as _, pr as v, sr as y, to as b } from "./platform-components-Xb5qgsXU.js";
1
+ import { Tt as e, m as t, xt as n } from "./platform-workbench-DpXhb4F6.js";
2
+ import { $a as r, Aa as i, Da as a, Na as o, Va as s, Vr as c, _a as l, bi as u, fr as d, gr as f, ii as p, lr as m, ma as h, nr as g, oo as _, va as v, vr as y, ya as b } from "./platform-components-Ca8SikTY.js";
3
3
  import { Fragment as x, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createTextVNode as D, createVNode as O, defineComponent as k, inject as A, nextTick as j, openBlock as M, ref as N, shallowRef as P, toDisplayString as F, unref as I, watch as L, withCtx as R } from "vue";
4
4
  //#region src/platform-admin-runtime/module-menu/moduleMenuClient.ts
5
- function z(e) {
6
- let t = r(e, { moduleAlias: "platform.menu_scheme" });
5
+ function z(t) {
6
+ let n = p(t, { moduleAlias: "platform.menu_scheme" });
7
7
  return {
8
8
  async schemes() {
9
9
  let e = [];
10
- for (let n = 1;; n++) {
11
- let r = await t.query({ page: {
12
- pageNum: n,
10
+ for (let t = 1;; t++) {
11
+ let r = await n.query({ page: {
12
+ pageNum: t,
13
13
  pageSize: 100
14
14
  } });
15
15
  if (e.push(...r.records), e.length >= r.total || r.records.length === 0) return e;
16
16
  }
17
17
  },
18
- async tree(t) {
19
- return (await e.request({
18
+ async tree(e) {
19
+ return (await t.request({
20
20
  method: "POST",
21
21
  path: "/platform.menu/tree/query",
22
- headers: { "X-MuYun-Page-Context": JSON.stringify({ scheme: t }) },
23
- body: { externalQueryValues: { schemeId: t } }
22
+ headers: { "X-MuYun-Page-Context": JSON.stringify({ scheme: e }) },
23
+ body: { externalQueryValues: { schemeId: e } }
24
24
  })).records;
25
25
  },
26
- context(t) {
27
- return e.request({ path: `/platform.module/${encodeURIComponent(t)}/context` });
26
+ context(e) {
27
+ return t.request({ path: `/platform.module/${encodeURIComponent(e)}/context` });
28
28
  },
29
- insert(t, n, i) {
30
- return r(b(e, { "X-MuYun-Page-Context": JSON.stringify({ scheme: t }) }), { moduleAlias: "platform.menu" }).insert(n, { requestId: i });
29
+ insert(e, n, r) {
30
+ return p(_(t, { "X-MuYun-Page-Context": JSON.stringify({ scheme: e }) }), { moduleAlias: "platform.menu" }).insert(n, { requestId: r });
31
31
  },
32
- view(t, n) {
33
- return r(b(e, { "X-MuYun-Page-Context": JSON.stringify({ scheme: t }) }), { moduleAlias: "platform.menu" }).view(n);
32
+ view(e, n) {
33
+ return p(_(t, { "X-MuYun-Page-Context": JSON.stringify({ scheme: e }) }), { moduleAlias: "platform.menu" }).view(n);
34
34
  },
35
- receipt(t, n) {
36
- return r(b(e, { "X-MuYun-Page-Context": JSON.stringify({ scheme: t }) }), { moduleAlias: "platform.menu" }).saveReceipt(n);
35
+ receipt(e, n) {
36
+ return p(_(t, { "X-MuYun-Page-Context": JSON.stringify({ scheme: e }) }), { moduleAlias: "platform.menu" }).saveReceipt(n);
37
37
  },
38
- visible: () => n(e).mine().then((e) => e.records)
38
+ visible: () => e(t).mine().then((e) => e.records)
39
39
  };
40
40
  }
41
- function B(e, t = o) {
41
+ function B(e, t = r) {
42
42
  return e ? e.scopeType === "system" ? t.t("platform.screen.moduleMenuClient.system-configuration-users", "系统配置用户") : e.organizationId ? t.t("platform.screen.moduleMenuClient.users-in-organization-value", "机构 {value1} 的用户", { value1: e.organizationId }) : e.tenantId ? t.t("platform.screen.moduleMenuClient.users-in-tenant-value", "租户 {value1} 的用户", { value1: e.tenantId }) : t.t("platform.screen.moduleMenuClient.audience-not-declared", "尚未声明适用范围") : t.t("platform.screen.moduleMenuClient.not-yet-determined", "尚未确定");
43
43
  }
44
- function V(e, t = "", n = o) {
44
+ function V(e, t = "", n = r) {
45
45
  return e.flatMap(({ record: e, children: r }) => {
46
- let a = i(e, "title", n) ?? e.title, o = t ? `${t} / ${a}` : a;
46
+ let i = s(e, "title", n) ?? e.title, a = t ? `${t} / ${i}` : i;
47
47
  return [{
48
48
  menu: e,
49
- path: o
50
- }, ...V(r, o, n)];
49
+ path: a
50
+ }, ...V(r, a, n)];
51
51
  });
52
52
  }
53
- function ee(e, t = !1, n = o) {
53
+ function ee(e, t = !1, n = r) {
54
54
  return e.map(({ record: e, children: r }) => {
55
- let a = t || e.enabled === !1;
55
+ let i = t || e.enabled === !1;
56
56
  return {
57
57
  value: e.id,
58
- title: i(e, "title", n) ?? e.title,
59
- disabled: a || !!e.moduleAlias,
60
- children: ee(r, a, n)
58
+ title: s(e, "title", n) ?? e.title,
59
+ disabled: i || !!e.moduleAlias,
60
+ children: ee(r, i, n)
61
61
  };
62
62
  });
63
63
  }
@@ -81,7 +81,7 @@ var H = { class: "module-menu-form" }, U = { key: 0 }, W = {
81
81
  }, ne = {
82
82
  key: 5,
83
83
  role: "alert"
84
- }, X = /*#__PURE__*/ v(/* @__PURE__ */ k({
84
+ }, X = /*#__PURE__*/ y(/* @__PURE__ */ k({
85
85
  __name: "ModuleMenuEditor",
86
86
  props: {
87
87
  session: {},
@@ -89,157 +89,157 @@ var H = { class: "module-menu-form" }, U = { key: 0 }, W = {
89
89
  },
90
90
  emits: ["saved", "opened"],
91
91
  setup(e, { expose: n, emit: r }) {
92
- let a = e, o = r, s = a.session, l = s.language, u = t();
93
- async function f() {
92
+ let i = e, a = r, o = i.session, c = o.language, l = t();
93
+ async function u() {
94
94
  try {
95
- await s.startAnother();
95
+ await o.startAnother();
96
96
  } catch (e) {
97
- s.reportFailure(e instanceof Error ? e : _(l, "platform.screen.ModuleMenuEditor.cannot-start-a-new-entry-right-now", "暂时无法开始新入口"));
97
+ o.reportFailure(e instanceof Error ? e : v(c, "platform.screen.ModuleMenuEditor.cannot-start-a-new-entry-right-now", "暂时无法开始新入口"));
98
98
  }
99
99
  }
100
- let p = S(() => s.loading.value || s.saving.value || s.resultUnknown.value || !s.authorized.value), h = S(() => p.value || s.updating.value), g = S(() => s.options.value.map((e) => ({
100
+ let p = S(() => o.loading.value || o.saving.value || o.resultUnknown.value || !o.authorized.value), h = S(() => p.value || o.updating.value), _ = S(() => o.options.value.map((e) => ({
101
101
  value: e.id,
102
- label: `${i(e, "title", l) ?? e.alias ?? e.id} · ${B(e, l)}`
103
- }))), v = S(() => [{
102
+ label: `${s(e, "title", c) ?? e.alias ?? e.id} · ${B(e, c)}`
103
+ }))), y = S(() => [{
104
104
  value: "root",
105
- title: l.t("platform.screen.moduleMenuWorkspace.top-level", "顶层"),
106
- children: ee(s.tree.value, !1, l)
105
+ title: c.t("platform.screen.moduleMenuWorkspace.top-level", "顶层"),
106
+ children: ee(o.tree.value, !1, c)
107
107
  }]);
108
108
  async function b() {
109
109
  try {
110
- await (await s.prepare()).execute(), o("saved");
110
+ await (await o.prepare()).execute(), a("saved");
111
111
  } catch (e) {
112
- s.resultUnknown.value || s.reportFailure(e instanceof Error ? e : _(l, "platform.screen.ModuleMenuEditor.cannot-add-the-entry-right-now", "暂时无法添加入口"));
112
+ o.resultUnknown.value || o.reportFailure(e instanceof Error ? e : v(c, "platform.screen.ModuleMenuEditor.cannot-add-the-entry-right-now", "暂时无法添加入口"));
113
113
  }
114
114
  }
115
115
  async function k() {
116
116
  try {
117
- await s.lookupPending() && o("saved");
117
+ await o.lookupPending() && a("saved");
118
118
  } catch {
119
- s.reportFailure(_(l, "platform.screen.ModuleMenuEditor.the-result-cannot-be-verified-right-now-retry-the-lookup", "结果暂时无法核实,请重试查询,勿重复添加。"));
119
+ o.reportFailure(v(c, "platform.screen.ModuleMenuEditor.the-result-cannot-be-verified-right-now-retry-the-lookup", "结果暂时无法核实,请重试查询,勿重复添加。"));
120
120
  }
121
121
  }
122
122
  async function A() {
123
- await s.refreshVisibility(), s.visibleMenu.value && u?.openMenu && (u.openMenu(s.visibleMenu.value), o("opened"));
123
+ await o.refreshVisibility(), o.visibleMenu.value && l?.openMenu && (l.openMenu(o.visibleMenu.value), a("opened"));
124
124
  }
125
125
  return n({ save: b }), (t, n) => (M(), T("div", H, [
126
- I(s).saved.value ? (M(), T(x, { key: 1 }, [
127
- E("strong", null, F(I(l).t("platform.screen.ModuleMenuEditor.added-to-menu", "已添加到菜单")), 1),
128
- E("p", null, F(I(s).savedPath.value), 1),
129
- E("p", te, F(I(l).t("platform.screen.ModuleMenuEditor.audience", "适用范围:")) + F(I(s).savedAudience.value), 1),
130
- I(s).visibleMenu.value && I(u)?.openMenu ? (M(), C(I(d), {
126
+ I(o).saved.value ? (M(), T(x, { key: 1 }, [
127
+ E("strong", null, F(I(c).t("platform.screen.ModuleMenuEditor.added-to-menu", "已添加到菜单")), 1),
128
+ E("p", null, F(I(o).savedPath.value), 1),
129
+ E("p", te, F(I(c).t("platform.screen.ModuleMenuEditor.audience", "适用范围:")) + F(I(o).savedAudience.value), 1),
130
+ I(o).visibleMenu.value && I(l)?.openMenu ? (M(), C(I(f), {
131
131
  key: 0,
132
132
  type: "primary",
133
133
  onClick: A
134
134
  }, {
135
- default: R(() => [D(F(I(l).t("platform.screen.ModuleMenuEntriesSection.open", "打开")), 1)]),
135
+ default: R(() => [D(F(I(c).t("platform.screen.ModuleMenuEntriesSection.open", "打开")), 1)]),
136
136
  _: 1
137
- })) : I(s).visibilityChecked.value ? (M(), T("p", q, F(I(l).t("platform.screen.ModuleMenuEditor.the-entry-was-saved-but-is-not-visible-in-navigation", "入口已保存,当前登录身份的导航暂不可见。请由适用范围内的使用者核实;若其也看不到,再检查上级菜单状态和业务访问权限。")), 1)) : w("v-if", !0),
138
- O(I(d), {
139
- disabled: I(s).saving.value,
140
- onClick: f
137
+ })) : I(o).visibilityChecked.value ? (M(), T("p", q, F(I(c).t("platform.screen.ModuleMenuEditor.the-entry-was-saved-but-is-not-visible-in-navigation", "入口已保存,当前登录身份的导航暂不可见。请由适用范围内的使用者核实;若其也看不到,再检查上级菜单状态和业务访问权限。")), 1)) : w("v-if", !0),
138
+ O(I(f), {
139
+ disabled: I(o).saving.value,
140
+ onClick: u
141
141
  }, {
142
- default: R(() => [D(F(I(l).t("platform.screen.ModuleMenuEditor.add-another-entry", "另加一个入口")), 1)]),
142
+ default: R(() => [D(F(I(c).t("platform.screen.ModuleMenuEditor.add-another-entry", "另加一个入口")), 1)]),
143
143
  _: 1
144
144
  }, 8, ["disabled"]),
145
- I(s).error.value ? (M(), C(I(d), {
145
+ I(o).error.value ? (M(), C(I(f), {
146
146
  key: 2,
147
- disabled: I(s).saving.value,
148
- onClick: I(s).refreshVisibility
147
+ disabled: I(o).saving.value,
148
+ onClick: I(o).refreshVisibility
149
149
  }, {
150
- default: R(() => [D(F(I(l).t("platform.screen.ModuleMenuEditor.refresh-navigation", "刷新导航")), 1)]),
150
+ default: R(() => [D(F(I(c).t("platform.screen.ModuleMenuEditor.refresh-navigation", "刷新导航")), 1)]),
151
151
  _: 1
152
152
  }, 8, ["disabled", "onClick"])) : w("v-if", !0)
153
153
  ], 64)) : (M(), T(x, { key: 0 }, [
154
- E("label", null, [D(F(I(l).t("platform.screen.ModuleMenuEditor.menu-name", "菜单名称")), 1), O(I(m), {
155
- value: I(s).title.value,
154
+ E("label", null, [D(F(I(c).t("platform.screen.ModuleMenuEditor.menu-name", "菜单名称")), 1), O(I(m), {
155
+ value: I(o).title.value,
156
156
  disabled: h.value,
157
- "aria-label": I(l).t("platform.screen.ModuleMenuEditor.menu-name", "菜单名称"),
158
- "onUpdate:value": n[0] ||= (e) => I(s).update({ title: String(e ?? "") })
157
+ "aria-label": I(c).t("platform.screen.ModuleMenuEditor.menu-name", "菜单名称"),
158
+ "onUpdate:value": n[0] ||= (e) => I(o).update({ title: String(e ?? "") })
159
159
  }, null, 8, [
160
160
  "value",
161
161
  "disabled",
162
162
  "aria-label"
163
163
  ])]),
164
- g.value.length > 1 ? (M(), T("label", U, [D(F(I(l).t("platform.screen.ModuleMenuEditor.menu-scheme", "菜单方案")), 1), O(I(y), {
165
- value: I(s).schemeId.value,
166
- options: g.value,
164
+ _.value.length > 1 ? (M(), T("label", U, [D(F(I(c).t("platform.screen.ModuleMenuEditor.menu-scheme", "菜单方案")), 1), O(I(d), {
165
+ value: I(o).schemeId.value,
166
+ options: _.value,
167
167
  "allow-clear": !1,
168
168
  disabled: p.value,
169
- "onUpdate:value": n[1] ||= (e) => I(s).update({ schemeId: String(e ?? "") })
169
+ "onUpdate:value": n[1] ||= (e) => I(o).update({ schemeId: String(e ?? "") })
170
170
  }, null, 8, [
171
171
  "value",
172
172
  "options",
173
173
  "disabled"
174
174
  ])])) : w("v-if", !0),
175
- E("label", null, [D(F(I(l).t("platform.screen.ModuleMenuEditor.position", "放置位置")), 1), O(I(c), {
176
- value: I(s).parentId.value,
177
- "tree-data": v.value,
175
+ E("label", null, [D(F(I(c).t("platform.screen.ModuleMenuEditor.position", "放置位置")), 1), O(I(g), {
176
+ value: I(o).parentId.value,
177
+ "tree-data": y.value,
178
178
  "allow-clear": !1,
179
179
  disabled: h.value,
180
- loading: I(s).loading.value || I(s).updating.value,
181
- "onUpdate:value": n[2] ||= (e) => I(s).update({ parentId: String(e ?? "root") })
180
+ loading: I(o).loading.value || I(o).updating.value,
181
+ "onUpdate:value": n[2] ||= (e) => I(o).update({ parentId: String(e ?? "root") })
182
182
  }, null, 8, [
183
183
  "value",
184
184
  "tree-data",
185
185
  "disabled",
186
186
  "loading"
187
187
  ])]),
188
- E("label", null, [D(F(I(l).t("platform.screen.ModuleMenuEditor.open-mode", "打开方式")), 1), O(I(y), {
189
- value: I(s).openMode.value,
188
+ E("label", null, [D(F(I(c).t("platform.screen.ModuleMenuEditor.open-mode", "打开方式")), 1), O(I(d), {
189
+ value: I(o).openMode.value,
190
190
  "allow-clear": !1,
191
191
  disabled: h.value,
192
192
  options: [{
193
193
  value: "tab",
194
- label: I(l).t("platform.screen.ModuleMenuEditor.open-in-a-workbench-tab", "页签内打开")
194
+ label: I(c).t("platform.screen.ModuleMenuEditor.open-in-a-workbench-tab", "页签内打开")
195
195
  }, {
196
196
  value: "window",
197
- label: I(l).t("platform.screen.ModuleMenuEditor.open-in-a-new-window", "新窗口打开")
197
+ label: I(c).t("platform.screen.ModuleMenuEditor.open-in-a-new-window", "新窗口打开")
198
198
  }],
199
- "onUpdate:value": n[3] ||= (e) => I(s).update({ openMode: e === "window" ? "window" : "tab" })
199
+ "onUpdate:value": n[3] ||= (e) => I(o).update({ openMode: e === "window" ? "window" : "tab" })
200
200
  }, null, 8, [
201
201
  "value",
202
202
  "disabled",
203
203
  "options"
204
204
  ])]),
205
- I(s).duplicate.value ? (M(), T("p", W, F(I(l).t("platform.screen.ModuleMenuEditor.duplicate-position", "此位置已有「{title}」,仍可另加入口。", { title: I(i)(I(s).duplicate.value.menu, "title", I(l)) })), 1)) : w("v-if", !0),
206
- E("p", G, F(I(l).t("platform.screen.ModuleMenuEditor.adds-an-access-entry-only-it-does-not-activate-applications", "只添加访问入口,不开通应用或授予业务权限。")), 1),
207
- I(s).updating.value ? (M(), T("p", K, F(I(l).t("platform.screen.ModuleMenuEditor.loading-the-menu-scheme-wait-for-the-candidate-to-be", "正在读取菜单方案,请等待候选就绪。")), 1)) : w("v-if", !0),
208
- e.showSave && !I(s).resultUnknown.value ? (M(), C(I(d), {
205
+ I(o).duplicate.value ? (M(), T("p", W, F(I(c).t("platform.screen.ModuleMenuEditor.duplicate-position", "此位置已有「{title}」,仍可另加入口。", { title: I(s)(I(o).duplicate.value.menu, "title", I(c)) })), 1)) : w("v-if", !0),
206
+ E("p", G, F(I(c).t("platform.screen.ModuleMenuEditor.adds-an-access-entry-only-it-does-not-activate-applications", "只添加访问入口,不开通应用或授予业务权限。")), 1),
207
+ I(o).updating.value ? (M(), T("p", K, F(I(c).t("platform.screen.ModuleMenuEditor.loading-the-menu-scheme-wait-for-the-candidate-to-be", "正在读取菜单方案,请等待候选就绪。")), 1)) : w("v-if", !0),
208
+ e.showSave && !I(o).resultUnknown.value ? (M(), C(I(f), {
209
209
  key: 3,
210
210
  type: "primary",
211
- disabled: !I(s).canSave.value,
212
- loading: I(s).saving.value,
211
+ disabled: !I(o).canSave.value,
212
+ loading: I(o).saving.value,
213
213
  onClick: b
214
214
  }, {
215
- default: R(() => [D(F(I(l).t("platform.screen.ModuleMenuEditor.add-entry", "添加入口")), 1)]),
215
+ default: R(() => [D(F(I(c).t("platform.screen.ModuleMenuEditor.add-entry", "添加入口")), 1)]),
216
216
  _: 1
217
217
  }, 8, ["disabled", "loading"])) : w("v-if", !0),
218
- I(s).resultUnknown.value ? (M(), C(I(d), {
218
+ I(o).resultUnknown.value ? (M(), C(I(f), {
219
219
  key: 4,
220
220
  onClick: k
221
221
  }, {
222
- default: R(() => [D(F(I(l).t("platform.screen.ModuleMenuEditor.check-save-result", "查询保存结果")), 1)]),
222
+ default: R(() => [D(F(I(c).t("platform.screen.ModuleMenuEditor.check-save-result", "查询保存结果")), 1)]),
223
223
  _: 1
224
224
  })) : w("v-if", !0)
225
225
  ], 64)),
226
- I(s).entryIssue.value ? (M(), T("p", J, F(I(s).entryIssue.value), 1)) : w("v-if", !0),
227
- I(s).ready.value && !I(s).authorized.value ? (M(), T("p", Y, F(I(l).t("platform.screen.ModuleMenuEditor.you-do-not-have-permission-to-add-menu-entries", "当前没有添加菜单入口权限。")), 1)) : w("v-if", !0),
228
- I(s).error.value && I(s).ready.value && !I(s).saved.value && !I(s).resultUnknown.value ? (M(), C(I(d), {
226
+ I(o).entryIssue.value ? (M(), T("p", J, F(I(o).entryIssue.value), 1)) : w("v-if", !0),
227
+ I(o).ready.value && !I(o).authorized.value ? (M(), T("p", Y, F(I(c).t("platform.screen.ModuleMenuEditor.you-do-not-have-permission-to-add-menu-entries", "当前没有添加菜单入口权限。")), 1)) : w("v-if", !0),
228
+ I(o).error.value && I(o).ready.value && !I(o).saved.value && !I(o).resultUnknown.value ? (M(), C(I(f), {
229
229
  key: 4,
230
- disabled: I(s).saving.value,
231
- onClick: I(s).load
230
+ disabled: I(o).saving.value,
231
+ onClick: I(o).load
232
232
  }, {
233
- default: R(() => [D(F(I(l).t("platform.screen.ModuleMenuEditor.reload-candidate", "重新读取候选")), 1)]),
233
+ default: R(() => [D(F(I(c).t("platform.screen.ModuleMenuEditor.reload-candidate", "重新读取候选")), 1)]),
234
234
  _: 1
235
235
  }, 8, ["disabled", "onClick"])) : w("v-if", !0),
236
- I(s).error.value ? (M(), T("p", ne, F(I(s).error.value), 1)) : w("v-if", !0),
237
- I(s).error.value && !I(s).ready.value && !I(s).resultUnknown.value ? (M(), C(I(d), {
236
+ I(o).error.value ? (M(), T("p", ne, F(I(o).error.value), 1)) : w("v-if", !0),
237
+ I(o).error.value && !I(o).ready.value && !I(o).resultUnknown.value ? (M(), C(I(f), {
238
238
  key: 6,
239
- disabled: I(s).saving.value,
240
- onClick: I(s).load
239
+ disabled: I(o).saving.value,
240
+ onClick: I(o).load
241
241
  }, {
242
- default: R(() => [D(F(I(l).t("platform.screen.WorkflowWorkbenchView.retry", "重试")), 1)]),
242
+ default: R(() => [D(F(I(c).t("platform.screen.WorkflowWorkbenchView.retry", "重试")), 1)]),
243
243
  _: 1
244
244
  }, 8, ["disabled", "onClick"])) : w("v-if", !0)
245
245
  ]));
@@ -247,96 +247,96 @@ var H = { class: "module-menu-form" }, U = { key: 0 }, W = {
247
247
  }), [["__scopeId", "data-v-1081a9ba"]]);
248
248
  //#endregion
249
249
  //#region src/platform-admin-runtime/module-menu/moduleMenuReceiptStore.ts
250
- function Z(e, t, n, r = p, i, a = o) {
251
- let s = `muyun.menu-pending.${JSON.stringify([e, t])}`, c = { persistence: "backend" }, l;
252
- function u() {
253
- if (!n()) throw new f(_(a, "platform.screen.moduleMenuReceiptStore.the-menu-editing-identity-has-changed", "菜单编辑身份已变化"));
254
- return i ?? window.sessionStorage;
250
+ function Z(e, t, n, i = u, a, o = r) {
251
+ let s = `muyun.menu-pending.${JSON.stringify([e, t])}`, c = { persistence: "backend" }, d;
252
+ function f() {
253
+ if (!n()) throw new l(v(o, "platform.screen.moduleMenuReceiptStore.the-menu-editing-identity-has-changed", "菜单编辑身份已变化"));
254
+ return a ?? window.sessionStorage;
255
255
  }
256
- function d(e) {
257
- if (!/^[a-zA-Z0-9-]{16,80}$/.test(e)) throw new f(_(a, "platform.screen.moduleMenuReceiptStore.the-original-entry-lookup-reference-is-invalid", "原入口查询标识无效"));
256
+ function p(e) {
257
+ if (!/^[a-zA-Z0-9-]{16,80}$/.test(e)) throw new l(v(o, "platform.screen.moduleMenuReceiptStore.the-original-entry-lookup-reference-is-invalid", "原入口查询标识无效"));
258
258
  return `menu.pending.r${e.toLowerCase().replaceAll("-", "")}`;
259
259
  }
260
260
  return {
261
261
  async restore() {
262
- if (l = u().getItem(s) ?? void 0, !l) return;
263
- let e = await r.restore(d(l), void 0, c);
264
- if (!e) throw new f(_(a, "platform.screen.moduleMenuReceiptStore.the-original-entry-lookup-reference-cannot-be-read-right-now", "原入口查询引用暂不可读取,请核实后重试"));
262
+ if (d = f().getItem(s) ?? void 0, !d) return;
263
+ let e = await i.restore(p(d), void 0, c);
264
+ if (!e) throw new l(v(o, "platform.screen.moduleMenuReceiptStore.the-original-entry-lookup-reference-cannot-be-read-right-now", "原入口查询引用暂不可读取,请核实后重试"));
265
265
  return e;
266
266
  },
267
267
  async save(e) {
268
- if (e.kind !== "record-save") throw new f(_(a, "platform.screen.moduleMenuReceiptStore.the-original-entry-lookup-reference-is-invalid", "原入口查询标识无效"));
269
- let t = u();
270
- l = e.requestId, await r.set(d(l), e, c), u(), t.setItem(s, l);
268
+ if (e.kind !== "record-save") throw new l(v(o, "platform.screen.moduleMenuReceiptStore.the-original-entry-lookup-reference-is-invalid", "原入口查询标识无效"));
269
+ let t = f();
270
+ d = e.requestId, await i.set(p(d), e, c), f(), t.setItem(s, d);
271
271
  },
272
272
  async clear() {
273
- let e = u(), t = l;
274
- t && (await r.remove(d(t), c), u(), e.getItem(s) === t && e.removeItem(s), l === t && (l = void 0));
273
+ let e = f(), t = d;
274
+ t && (await i.remove(p(t), c), f(), e.getItem(s) === t && e.removeItem(s), d === t && (d = void 0));
275
275
  }
276
276
  };
277
277
  }
278
278
  //#endregion
279
279
  //#region src/platform-admin-runtime/module-menu/moduleMenuSession.ts
280
- function re(t, n, r, c, d = t.visible, p = o) {
281
- let m = N(0), v = N(!1), y = N(!1), b = N(!1), x = P(), C = S(() => x.value ? x.value instanceof f || x.value instanceof h ? g(x.value, p) : s(u(x.value), p) : "");
280
+ function re(e, t, u, d, f = e.visible, p = r) {
281
+ let m = N(0), g = N(!1), _ = N(!1), y = N(!1), x = P(), C = S(() => x.value ? x.value instanceof l || x.value instanceof h ? b(x.value, p) : o(i(x.value), p) : "");
282
282
  function w(e) {
283
- x.value = e instanceof Error ? e : new f(e);
283
+ x.value = e instanceof Error ? e : new l(e);
284
284
  }
285
285
  function T(e) {
286
- w(e instanceof Error ? e : _(p, "platform.screen.moduleMenuSession.the-operation-is-temporarily-unavailable-retry", "操作暂不可用,请重试。"));
286
+ w(e instanceof Error ? e : v(p, "platform.screen.moduleMenuSession.the-operation-is-temporarily-unavailable-retry", "操作暂不可用,请重试。"));
287
287
  }
288
- let E = P(), D = S(() => E.value ? oe(E.value, p) : ""), O = N(""), k = N(""), A = N("root"), j = N("tab"), M = P([]), F = P([]), I = P(), L = N(""), R = P(), z = N(""), ee = S(() => R.value ? B(R.value, p) : z.value), H = P(), U = N(!1), W = N(!1), G = N(!1), K = N(!1), te = !1, q = 0, J = 0, Y, ne = !1, X = () => !te && r.valid(), Z = S(() => M.value.filter((e) => e.enabled !== !1 && e.id)), re = S(() => ae(F.value, p)), le = S(() => X() && G.value && W.value && !v.value && !y.value && !b.value && !Y && !I.value && !D.value && !!O.value.trim()), ue = S(() => V(F.value, "", p).find(({ menu: e }) => e.moduleAlias === n && e.parentId === A.value));
288
+ let E = P(), D = S(() => E.value ? oe(E.value, p) : ""), O = N(""), k = N(""), A = N("root"), j = N("tab"), M = P([]), F = P([]), I = P(), L = N(""), R = P(), z = N(""), ee = S(() => R.value ? B(R.value, p) : z.value), H = P(), U = N(!1), W = N(!1), G = N(!1), K = N(!1), te = !1, q = 0, J = 0, Y, ne = !1, X = () => !te && u.valid(), Z = S(() => M.value.filter((e) => e.enabled !== !1 && e.id)), re = S(() => ae(F.value, p)), le = S(() => X() && G.value && W.value && !g.value && !_.value && !y.value && !Y && !I.value && !D.value && !!O.value.trim()), ue = S(() => V(F.value, "", p).find(({ menu: e }) => e.moduleAlias === t && e.parentId === A.value));
289
289
  function Q() {
290
- if (!X()) throw new f(_(p, "platform.screen.moduleMenuSession.the-menu-editing-scope-has-changed-reopen-the-editor", "菜单编辑范围已变化,请重新打开"));
290
+ if (!X()) throw new l(v(p, "platform.screen.moduleMenuSession.the-menu-editing-scope-has-changed-reopen-the-editor", "菜单编辑范围已变化,请重新打开"));
291
291
  }
292
292
  function $(e = !1) {
293
- if (Q(), !G.value || !W.value || v.value || b.value || Y || I.value || !e && y.value) throw new f(_(p, "platform.screen.moduleMenuSession.wait-for-the-menu-candidate-to-be-ready-or-check", "请先等待菜单候选就绪,或查询未确定的保存结果"));
293
+ if (Q(), !G.value || !W.value || g.value || y.value || Y || I.value || !e && _.value) throw new l(v(p, "platform.screen.moduleMenuSession.wait-for-the-menu-candidate-to-be-ready-or-check", "请先等待菜单候选就绪,或查询未确定的保存结果"));
294
294
  }
295
295
  async function de() {
296
296
  if (Q(), I.value || Y && G.value) return;
297
- J++, y.value = !1;
297
+ J++, _.value = !1;
298
298
  let r = ++q;
299
- v.value = !0, G.value = !1, x.value = void 0;
299
+ g.value = !0, G.value = !1, x.value = void 0;
300
300
  try {
301
301
  if (!ne) {
302
- let t = await c.restore();
302
+ let e = await d.restore();
303
303
  if (!X() || r !== q) return;
304
- if (t) {
305
- let n = e(t);
306
- if (n.kind !== "record-save" || n.moduleAlias !== "platform.menu" || !n.pageContext?.scheme) throw new f(_(p, "platform.screen.moduleMenuSession.the-original-entry-lookup-scope-is-invalid-verify-the-save", "原入口查询范围无效,请核实保存结果后继续"));
304
+ if (e) {
305
+ let t = n(e);
306
+ if (t.kind !== "record-save" || t.moduleAlias !== "platform.menu" || !t.pageContext?.scheme) throw new l(v(p, "platform.screen.moduleMenuSession.the-original-entry-lookup-scope-is-invalid-verify-the-save", "原入口查询范围无效,请核实保存结果后继续"));
307
307
  Y = {
308
- requestId: n.requestId,
309
- schemeId: n.pageContext.scheme
308
+ requestId: t.requestId,
309
+ schemeId: t.pageContext.scheme
310
310
  }, K.value = !0;
311
311
  }
312
312
  ne = !0;
313
313
  }
314
314
  let [i, a, o, s] = await Promise.all([
315
- t.schemes(),
316
- t.context(n),
317
- t.context("platform.menu"),
318
- t.visible()
315
+ e.schemes(),
316
+ e.context(t),
317
+ e.context("platform.menu"),
318
+ e.visible()
319
319
  ]);
320
320
  if (!X() || r !== q) return;
321
- W.value = o.actions.some((e) => e.actionCode === "create" && e.authorized), E.value = a, M.value = i, O.value ||= a.title ?? n, j.value = a.entryType === "link" ? "window" : "tab";
322
- let l = s[0]?.record.schemeId, u = Z.value.find((e) => e.id === (Y?.schemeId ?? k.value)) ?? Z.value.find((e) => e.id === l) ?? Z.value[0];
323
- if (!u?.id) throw new f(_(p, "platform.screen.moduleMenuSession.no-menu-schemes-are-available-configure-an-applicable-scheme-first", "暂无可用菜单方案,请先配置适用的菜单方案"));
324
- let d = await t.tree(u.id);
321
+ W.value = o.actions.some((e) => e.actionCode === "create" && e.authorized), E.value = a, M.value = i, O.value ||= a.title ?? t, j.value = a.entryType === "link" ? "window" : "tab";
322
+ let c = s[0]?.record.schemeId, u = Z.value.find((e) => e.id === (Y?.schemeId ?? k.value)) ?? Z.value.find((e) => e.id === c) ?? Z.value[0];
323
+ if (!u?.id) throw new l(v(p, "platform.screen.moduleMenuSession.no-menu-schemes-are-available-configure-an-applicable-scheme-first", "暂无可用菜单方案,请先配置适用的菜单方案"));
324
+ let f = await e.tree(u.id);
325
325
  if (!X() || r !== q) return;
326
- k.value = u.id, F.value = d, A.value = "root", G.value = !0, m.value++;
326
+ k.value = u.id, F.value = f, A.value = "root", G.value = !0, m.value++;
327
327
  } catch (e) {
328
328
  X() && r === q && T(e);
329
329
  } finally {
330
- X() && r === q && (v.value = !1);
330
+ X() && r === q && (g.value = !1);
331
331
  }
332
332
  }
333
- function fe(e) {
334
- let n = e.schemeId ?? k.value;
335
- if (!Z.value.some((e) => e.id === n)) throw new f(_(p, "platform.screen.moduleMenuSession.select-an-available-menu-scheme", "请选择当前可用的菜单方案"));
336
- let r = e.title ?? O.value;
337
- if ([...r].length > 120) throw new f(_(p, "platform.screen.moduleMenuSession.the-menu-name-must-not-exceed-120-characters", "菜单名称不能超过120个字符"));
338
- let i = e.parentId ?? (n === k.value ? A.value : "root"), a = e.openMode ?? j.value, o = (e) => {
339
- if (i !== "root" && !ae(e).some((e) => e.menu.id === i)) throw new f(_(p, "platform.screen.moduleMenuSession.select-an-enabled-directory-in-the-current-scheme", "请选择当前方案中的启用目录"));
333
+ function fe(t) {
334
+ let n = t.schemeId ?? k.value;
335
+ if (!Z.value.some((e) => e.id === n)) throw new l(v(p, "platform.screen.moduleMenuSession.select-an-available-menu-scheme", "请选择当前可用的菜单方案"));
336
+ let r = t.title ?? O.value;
337
+ if ([...r].length > 120) throw new l(v(p, "platform.screen.moduleMenuSession.the-menu-name-must-not-exceed-120-characters", "菜单名称不能超过120个字符"));
338
+ let i = t.parentId ?? (n === k.value ? A.value : "root"), a = t.openMode ?? j.value, o = (e) => {
339
+ if (i !== "root" && !ae(e).some((e) => e.menu.id === i)) throw new l(v(p, "platform.screen.moduleMenuSession.select-an-enabled-directory-in-the-current-scheme", "请选择当前方案中的启用目录"));
340
340
  return {
341
341
  schemeId: n,
342
342
  nodes: e,
@@ -345,7 +345,7 @@ function re(t, n, r, c, d = t.visible, p = o) {
345
345
  openMode: a
346
346
  };
347
347
  };
348
- return n === k.value ? o(F.value) : t.tree(n).then(o);
348
+ return n === k.value ? o(F.value) : e.tree(n).then(o);
349
349
  }
350
350
  function pe(e) {
351
351
  k.value = e.schemeId, F.value = e.nodes, A.value = e.parentId, O.value = e.title, j.value = e.openMode, m.value++;
@@ -354,24 +354,24 @@ function re(t, n, r, c, d = t.visible, p = o) {
354
354
  $();
355
355
  let t = m.value, n = await fe(e);
356
356
  return () => {
357
- if ($(), t !== m.value) throw new f(_(p, "platform.screen.moduleMenuSession.the-menu-candidate-has-changed-reload-it", "菜单候选已变化,请重新读取"));
357
+ if ($(), t !== m.value) throw new l(v(p, "platform.screen.moduleMenuSession.the-menu-candidate-has-changed-reload-it", "菜单候选已变化,请重新读取"));
358
358
  pe(n);
359
359
  };
360
360
  }
361
361
  async function he(e) {
362
362
  let t;
363
363
  try {
364
- $(!0), t = ++J, y.value = !0;
364
+ $(!0), t = ++J, _.value = !0;
365
365
  let n = ++m.value;
366
366
  x.value = void 0;
367
367
  let r = fe(e), i = "then" in r ? await r : r;
368
368
  if (!X() || t !== J) return;
369
- if ($(!0), n !== m.value) throw new f(_(p, "platform.screen.moduleMenuSession.the-menu-candidate-has-changed-reload-it", "菜单候选已变化,请重新读取"));
369
+ if ($(!0), n !== m.value) throw new l(v(p, "platform.screen.moduleMenuSession.the-menu-candidate-has-changed-reload-it", "菜单候选已变化,请重新读取"));
370
370
  pe(i), x.value = void 0;
371
371
  } catch (e) {
372
372
  X() && (t === void 0 || t === J) && T(e);
373
373
  } finally {
374
- t === J && (y.value = !1);
374
+ t === J && (_.value = !1);
375
375
  }
376
376
  }
377
377
  async function ge() {
@@ -380,50 +380,50 @@ function re(t, n, r, c, d = t.visible, p = o) {
380
380
  if (e) {
381
381
  U.value = !1, H.value = void 0;
382
382
  try {
383
- let t = await d();
383
+ let t = await f();
384
384
  if (!X() || I.value?.id !== e) return;
385
385
  H.value = V(t).find(({ menu: t }) => t.id === e)?.menu, U.value = !0, x.value = void 0;
386
386
  } catch {
387
- X() && w(_(p, "platform.screen.moduleMenuSession.the-menu-was-added-but-navigation-could-not-be-refreshed", "菜单已添加,导航刷新失败。请查询或刷新导航,无需重复添加。"));
387
+ X() && w(v(p, "platform.screen.moduleMenuSession.the-menu-was-added-but-navigation-could-not-be-refreshed", "菜单已添加,导航刷新失败。请查询或刷新导航,无需重复添加。"));
388
388
  }
389
389
  }
390
390
  }
391
- async function _e(e, n) {
391
+ async function _e(t, n) {
392
392
  if (X()) {
393
- let r = Y, a = n ?? (r.record ? {
393
+ let r = Y, i = n ?? (r.record ? {
394
394
  ...r.record,
395
- id: e
396
- } : await t.view(r.schemeId, e));
397
- Q(), I.value = a;
398
- let o = r.audienceScheme ?? Z.value.find((e) => e.id === a.schemeId);
399
- R.value = o ? { ...o } : void 0, z.value = r.audience ?? "", L.value = r.path ?? [
395
+ id: t
396
+ } : await e.view(r.schemeId, t));
397
+ Q(), I.value = i;
398
+ let a = r.audienceScheme ?? Z.value.find((e) => e.id === i.schemeId);
399
+ R.value = a ? { ...a } : void 0, z.value = r.audience ?? "", L.value = r.path ?? [
400
400
  (() => {
401
- let e = Z.value.find((e) => e.id === a.schemeId);
402
- return e && i(e, "title", p);
401
+ let e = Z.value.find((e) => e.id === i.schemeId);
402
+ return e && s(e, "title", p);
403
403
  })(),
404
- V(F.value, "", p).find(({ menu: e }) => e.id === a.parentId)?.path,
405
- a.title
406
- ].filter(Boolean).join(" / "), Y = void 0, K.value = !1, m.value++, await c.clear().catch(() => {}), X() && await ge();
404
+ V(F.value, "", p).find(({ menu: e }) => e.id === i.parentId)?.path,
405
+ i.title
406
+ ].filter(Boolean).join(" / "), Y = void 0, K.value = !1, m.value++, await d.clear().catch(() => {}), X() && await ge();
407
407
  }
408
408
  return {
409
409
  title: p.t("platform.screen.moduleMenuSession.menu-entry-saved", "菜单入口已保存"),
410
410
  lines: X() ? [L.value, U.value ? H.value ? p.t("platform.screen.moduleMenuSession.visible-to-the-current-user-the-business-page-can-be", "当前用户可见,可打开业务页面。") : p.t("platform.screen.moduleMenuSession.the-entry-was-saved-but-is-not-visible-to-the", "入口已保存;当前登录身份暂不可见,请由适用范围内的使用者核实导航。") : p.t("platform.screen.moduleMenuSession.navigation-visibility-has-not-been-verified-do-not-add-the", "导航可见性尚未核实;不要重复添加。")] : [p.t("platform.screen.moduleMenuSession.the-save-completed-verify-the-entry-in-its-original-scope", "保存已完成,请在原范围核实入口。")]
411
411
  };
412
412
  }
413
- async function ve(e, r) {
414
- let [a, o, s, c] = await Promise.all([
415
- t.context(n),
416
- t.context("platform.menu"),
417
- t.schemes(),
418
- t.tree(e.schemeId)
413
+ async function ve(n, r) {
414
+ let [i, a, o, c] = await Promise.all([
415
+ e.context(t),
416
+ e.context("platform.menu"),
417
+ e.schemes(),
418
+ e.tree(n.schemeId)
419
419
  ]);
420
- if (Q(), !o.actions.some((e) => e.actionCode === "create" && e.authorized)) throw new h(_(p, "platform.screen.moduleMenuSession.you-do-not-have-permission-to-add-menu-entries", "当前没有添加菜单入口权限"));
421
- let l = se(a, p);
420
+ if (Q(), !a.actions.some((e) => e.actionCode === "create" && e.authorized)) throw new h(v(p, "platform.screen.moduleMenuSession.you-do-not-have-permission-to-add-menu-entries", "当前没有添加菜单入口权限"));
421
+ let l = se(i, p);
422
422
  if (l) throw new h(l);
423
- let u = s.find((t) => t.id === e.schemeId && t.enabled !== !1);
424
- if (!u) throw new h(_(p, "platform.screen.moduleMenuSession.the-menu-scheme-is-no-longer-available", "菜单方案已不可用"));
425
- if (e.parentId !== "root" && !ae(c).some((t) => t.menu.id === e.parentId)) throw new h(_(p, "platform.screen.moduleMenuSession.the-target-directory-is-no-longer-available-review-the-entry", "放置目录已不可用,请重新审阅"));
426
- let d = e.parentId === "root" ? [] : ie(c, e.parentId), f = JSON.stringify([
423
+ let u = o.find((e) => e.id === n.schemeId && e.enabled !== !1);
424
+ if (!u) throw new h(v(p, "platform.screen.moduleMenuSession.the-menu-scheme-is-no-longer-available", "菜单方案已不可用"));
425
+ if (n.parentId !== "root" && !ae(c).some((e) => e.menu.id === n.parentId)) throw new h(v(p, "platform.screen.moduleMenuSession.the-target-directory-is-no-longer-available-review-the-entry", "放置目录已不可用,请重新审阅"));
426
+ let d = n.parentId === "root" ? [] : ie(c, n.parentId), f = JSON.stringify([
427
427
  u.id,
428
428
  u.alias ?? null,
429
429
  u.title ?? null,
@@ -432,72 +432,72 @@ function re(t, n, r, c, d = t.visible, p = o) {
432
432
  u.organizationId ?? null,
433
433
  d.map((e) => [e.id, e.title])
434
434
  ]);
435
- if (r && f !== r) throw new h(_(p, "platform.screen.moduleMenuSession.the-menu-scheme-audience-or-directory-has-changed-reload-and", "菜单方案适用范围或目录已变化,请重新读取候选并审阅"));
435
+ if (r && f !== r) throw new h(v(p, "platform.screen.moduleMenuSession.the-menu-scheme-audience-or-directory-has-changed-reload-and", "菜单方案适用范围或目录已变化,请重新读取候选并审阅"));
436
436
  return {
437
437
  scheme: u,
438
438
  signature: f,
439
439
  path: [
440
- i(u, "title", p) ?? u.alias,
441
- ...d.map((e) => i(e, "title", p)),
442
- e.title
440
+ s(u, "title", p) ?? u.alias,
441
+ ...d.map((e) => s(e, "title", p)),
442
+ n.title
443
443
  ].filter(Boolean).join(" / ")
444
444
  };
445
445
  }
446
446
  async function ye() {
447
- if ($(), !le.value) throw new f(_(p, "platform.screen.moduleMenuSession.provide-a-menu-name-and-an-available-business-page", "请补齐菜单名称及可用业务页面"));
448
- let e = m.value, o = {
449
- moduleAlias: n,
447
+ if ($(), !le.value) throw new l(v(p, "platform.screen.moduleMenuSession.provide-a-menu-name-and-an-available-business-page", "请补齐菜单名称及可用业务页面"));
448
+ let n = m.value, r = {
449
+ moduleAlias: t,
450
450
  schemeId: k.value,
451
451
  parentId: A.value,
452
452
  title: O.value.trim(),
453
453
  openMode: j.value,
454
454
  enabled: !0
455
- }, s = await ve(o);
456
- if ($(), m.value !== e) throw new f(_(p, "platform.screen.moduleMenuSession.the-menu-candidate-has-changed-review-it-again", "菜单候选已变化,请重新审阅"));
457
- let u = s.path, d = a(), g = () => X() && r.active() && G.value && W.value && !y.value && !Y && !I.value && m.value === e, v = {
455
+ }, i = await ve(r);
456
+ if ($(), m.value !== n) throw new l(v(p, "platform.screen.moduleMenuSession.the-menu-candidate-has-changed-review-it-again", "菜单候选已变化,请重新审阅"));
457
+ let o = i.path, f = c(), g = () => X() && u.active() && G.value && W.value && !_.value && !Y && !I.value && m.value === n, b = {
458
458
  kind: "record-save",
459
459
  moduleAlias: "platform.menu",
460
- requestId: d,
461
- pageContext: { scheme: o.schemeId }
460
+ requestId: f,
461
+ pageContext: { scheme: r.schemeId }
462
462
  };
463
463
  return {
464
- receiptReference: v,
464
+ receiptReference: b,
465
465
  presentation: {
466
466
  title: p.t("platform.screen.moduleMenuSession.add-a-business-entry", "添加业务入口"),
467
467
  lines: [
468
- u,
469
- p.t("platform.screen.moduleMenuSession.audience-value", "适用范围:{value1}", { value1: B(s.scheme, p) }),
470
- p.t("platform.screen.moduleMenuSession.open-mode-value", "打开方式:{value1}", { value1: o.openMode === "window" ? p.t("platform.screen.moduleMenuSession.new-window", "新窗口") : p.t("platform.screen.moduleMenuSession.workbench-tab", "页签内") }),
468
+ o,
469
+ p.t("platform.screen.moduleMenuSession.audience-value", "适用范围:{value1}", { value1: B(i.scheme, p) }),
470
+ p.t("platform.screen.moduleMenuSession.open-mode-value", "打开方式:{value1}", { value1: r.openMode === "window" ? p.t("platform.screen.moduleMenuSession.new-window", "新窗口") : p.t("platform.screen.moduleMenuSession.workbench-tab", "页签内") }),
471
471
  p.t("platform.screen.moduleMenuSession.adds-an-entry-only-it-does-not-activate-applications-or", "只添加入口,不开通应用或授予业务权限。"),
472
- ...ue.value ? [p.t("platform.screen.moduleMenuSession.this-position-already-contains-value-another-entry-will-be-added", "此位置已有「{value1}」,本次将另加一个入口。", { value1: i(ue.value.menu, "title", p) })] : []
472
+ ...ue.value ? [p.t("platform.screen.moduleMenuSession.this-position-already-contains-value-another-entry-will-be-added", "此位置已有「{value1}」,本次将另加一个入口。", { value1: s(ue.value.menu, "title", p) })] : []
473
473
  ],
474
474
  details: {
475
475
  title: p.t("platform.screen.moduleMenuSession.view-target-module", "查看目标模块"),
476
- lines: [n]
476
+ lines: [t]
477
477
  }
478
478
  },
479
479
  confirmLabel: p.t("platform.screen.moduleMenuSession.confirm-entry-creation", "确认添加入口"),
480
480
  expiresAt: Date.now() + 3e5,
481
481
  isCurrent: g,
482
482
  async execute() {
483
- if (!g() || b.value) throw new h(_(p, "platform.screen.moduleMenuSession.the-menu-candidate-or-editing-scope-has-changed-review-it", "菜单候选或编辑范围已变化,请重新审阅"));
484
- b.value = !0, x.value = void 0;
485
- let n = !1;
483
+ if (!g() || y.value) throw new h(v(p, "platform.screen.moduleMenuSession.the-menu-candidate-or-editing-scope-has-changed-review-it", "菜单候选或编辑范围已变化,请重新审阅"));
484
+ y.value = !0, x.value = void 0;
485
+ let t = !1;
486
486
  try {
487
- if (await ve(o, s.signature), !g() || (Y = {
488
- requestId: d,
489
- schemeId: o.schemeId,
490
- record: o,
491
- path: u,
492
- audience: B(s.scheme, p),
493
- audienceScheme: { ...s.scheme }
494
- }, await c.save(v), !X() || !r.active() || m.value !== e)) throw new h(_(p, "platform.screen.moduleMenuSession.the-menu-candidate-or-editing-scope-has-changed-review-it", "菜单候选或编辑范围已变化,请重新审阅"));
495
- n = !0;
496
- let i = await t.insert(o.schemeId, o, d);
497
- return await _e(i.record.id, i.record);
487
+ if (await ve(r, i.signature), !g() || (Y = {
488
+ requestId: f,
489
+ schemeId: r.schemeId,
490
+ record: r,
491
+ path: o,
492
+ audience: B(i.scheme, p),
493
+ audienceScheme: { ...i.scheme }
494
+ }, await d.save(b), !X() || !u.active() || m.value !== n)) throw new h(v(p, "platform.screen.moduleMenuSession.the-menu-candidate-or-editing-scope-has-changed-review-it", "菜单候选或编辑范围已变化,请重新审阅"));
495
+ t = !0;
496
+ let a = await e.insert(r.schemeId, r, f);
497
+ return await _e(a.record.id, a.record);
498
498
  } catch (e) {
499
499
  if (X()) {
500
- if (!n || e instanceof h || e instanceof l && [
500
+ if (!t || e instanceof h || e instanceof a && [
501
501
  400,
502
502
  401,
503
503
  403,
@@ -506,39 +506,39 @@ function re(t, n, r, c, d = t.visible, p = o) {
506
506
  422
507
507
  ].includes(e.status ?? 0)) {
508
508
  try {
509
- Y && await c.clear(), Y = void 0;
509
+ Y && await d.clear(), Y = void 0;
510
510
  } catch {
511
- Y && (Y.rejected = !0), K.value = !0, w(_(p, "platform.screen.moduleMenuSession.the-operation-was-not-submitted-but-the-original-request-reference", "操作未提交,但原请求标识尚未清除,请先查询结果。"));
511
+ Y && (Y.rejected = !0), K.value = !0, w(v(p, "platform.screen.moduleMenuSession.the-operation-was-not-submitted-but-the-original-request-reference", "操作未提交,但原请求标识尚未清除,请先查询结果。"));
512
512
  }
513
513
  throw new h(ce(e, p));
514
514
  }
515
- Y && (K.value = !0, m.value++), Y ? w(_(p, "platform.screen.moduleMenuSession.the-save-result-is-unresolved-check-the-original-request-result", "保存结果尚未确定,请查询原请求结果,勿重复添加。")) : T(e);
515
+ Y && (K.value = !0, m.value++), Y ? w(v(p, "platform.screen.moduleMenuSession.the-save-result-is-unresolved-check-the-original-request-result", "保存结果尚未确定,请查询原请求结果,勿重复添加。")) : T(e);
516
516
  }
517
517
  throw e;
518
518
  } finally {
519
- X() && (b.value = !1);
519
+ X() && (y.value = !1);
520
520
  }
521
521
  },
522
522
  lookup: be
523
523
  };
524
524
  }
525
525
  async function be() {
526
- if (Q(), !Y || b.value) return;
527
- let e = Y;
528
- if (e.rejected) return await c.clear(), Q(), Y === e ? (Y = void 0, K.value = !1, x.value = void 0, m.value++, {
526
+ if (Q(), !Y || y.value) return;
527
+ let t = Y;
528
+ if (t.rejected) return await d.clear(), Q(), Y === t ? (Y = void 0, K.value = !1, x.value = void 0, m.value++, {
529
529
  title: p.t("platform.operation.not-submitted", "操作未提交"),
530
530
  lines: [p.t("platform.screen.moduleMenuSession.the-recovery-reference-was-cleared-you-can-review-and-add", "恢复标识已清除,可以重新审阅并添加入口。")]
531
531
  }) : void 0;
532
- let n = await t.receipt(e.schemeId, e.requestId);
533
- if (Q(), Y === e && n.committed && n.recordId) return _e(n.recordId);
532
+ let n = await e.receipt(t.schemeId, t.requestId);
533
+ if (Q(), Y === t && n.committed && n.recordId) return _e(n.recordId);
534
534
  }
535
535
  return {
536
- moduleAlias: n,
536
+ moduleAlias: t,
537
537
  language: p,
538
538
  revision: m,
539
- loading: v,
540
- updating: y,
541
- saving: b,
539
+ loading: g,
540
+ updating: _,
541
+ saving: y,
542
542
  error: C,
543
543
  reportFailure: w,
544
544
  failureCause: () => x.value,
@@ -568,14 +568,14 @@ function re(t, n, r, c, d = t.visible, p = o) {
568
568
  lookupPending: be,
569
569
  refreshVisibility: ge,
570
570
  async startAnother() {
571
- if (Q(), !I.value || b.value || Y) throw new f(_(p, "platform.screen.moduleMenuSession.verify-the-current-entry-save-result-first", "请先核实当前入口保存结果"));
572
- await c.clear(), Q(), I.value = void 0, L.value = "", R.value = void 0, z.value = "", H.value = void 0, U.value = !1, G.value = !1, m.value++, await de();
571
+ if (Q(), !I.value || y.value || Y) throw new l(v(p, "platform.screen.moduleMenuSession.verify-the-current-entry-save-result-first", "请先核实当前入口保存结果"));
572
+ await d.clear(), Q(), I.value = void 0, L.value = "", R.value = void 0, z.value = "", H.value = void 0, U.value = !1, G.value = !1, m.value++, await de();
573
573
  },
574
574
  dispose() {
575
- te = !0, q++, J++, y.value = !1, m.value++;
575
+ te = !0, q++, J++, _.value = !1, m.value++;
576
576
  },
577
577
  invalidate() {
578
- J++, y.value = !1, m.value++;
578
+ J++, _.value = !1, m.value++;
579
579
  }
580
580
  };
581
581
  }
@@ -588,31 +588,31 @@ function ie(e, t, n = []) {
588
588
  }
589
589
  return [];
590
590
  }
591
- function ae(e, t = o) {
591
+ function ae(e, t = r) {
592
592
  let n = (e) => e.filter(({ record: e }) => e.enabled !== !1).map((e) => ({
593
593
  ...e,
594
594
  children: n(e.children)
595
595
  }));
596
596
  return V(n(e), "", t).filter(({ menu: e }) => !e.moduleAlias);
597
597
  }
598
- function oe(e, t = o) {
598
+ function oe(e, t = r) {
599
599
  return se(e, t)?.message ?? "";
600
600
  }
601
601
  function se(e, t) {
602
- return e.entryType === "route" ? e.entryRoute ? void 0 : _(t, "platform.screen.moduleMenuSession.this-module-has-no-page-address-return-to-its-configuration", "该模块尚未配置页面地址,请返回模块补充。") : e.entryType === "link" ? e.entryExternalUrl ? void 0 : _(t, "platform.screen.moduleMenuSession.this-module-has-no-link-address-return-to-its-configuration", "该模块尚未配置链接地址,请返回模块补充。") : e.uiDescriptor?.page ? void 0 : _(t, "platform.screen.moduleMenuSession.this-module-has-no-available-business-page-publish-its-page", "该模块尚无可用业务页面,请先发布页面配置。");
602
+ return e.entryType === "route" ? e.entryRoute ? void 0 : v(t, "platform.screen.moduleMenuSession.this-module-has-no-page-address-return-to-its-configuration", "该模块尚未配置页面地址,请返回模块补充。") : e.entryType === "link" ? e.entryExternalUrl ? void 0 : v(t, "platform.screen.moduleMenuSession.this-module-has-no-link-address-return-to-its-configuration", "该模块尚未配置链接地址,请返回模块补充。") : e.uiDescriptor?.page ? void 0 : v(t, "platform.screen.moduleMenuSession.this-module-has-no-available-business-page-publish-its-page", "该模块尚无可用业务页面,请先发布页面配置。");
603
603
  }
604
- function ce(e, t = o) {
605
- return e instanceof f || e instanceof h ? e.textMessage ?? e.message : e instanceof Error ? e.message : _(t, "platform.screen.moduleMenuSession.the-operation-is-temporarily-unavailable-retry", "操作暂不可用,请重试。");
604
+ function ce(e, t = r) {
605
+ return e instanceof l || e instanceof h ? e.textMessage ?? e.message : e instanceof Error ? e.message : v(t, "platform.screen.moduleMenuSession.the-operation-is-temporarily-unavailable-retry", "操作暂不可用,请重试。");
606
606
  }
607
607
  //#endregion
608
608
  //#region src/views/configurationEditorNavigation.ts
609
- async function le(e, t, n = o) {
609
+ async function le(e, t, n = r) {
610
610
  if (t?.aborted || (e() || await new Promise((r, i) => {
611
611
  let a = (e) => {
612
612
  s(), clearTimeout(c), t?.removeEventListener("abort", o), e ? i(e) : r();
613
613
  }, o = () => a(new DOMException("Navigation cancelled", "AbortError")), s = L(e, (e) => {
614
614
  e && a();
615
- }, { flush: "post" }), c = setTimeout(() => a(new f(_(n, "platform.screen.configurationEditorNavigation.the-configuration-page-is-not-ready-reopen-it-before-continuing", "配置页面尚未就绪,请重新打开后继续。"))), 15e3);
615
+ }, { flush: "post" }), c = setTimeout(() => a(new l(v(n, "platform.screen.configurationEditorNavigation.the-configuration-page-is-not-ready-reopen-it-before-continuing", "配置页面尚未就绪,请重新打开后继续。"))), 15e3);
616
616
  t?.addEventListener("abort", o, { once: !0 });
617
617
  }), await j(), t?.aborted)) throw new DOMException("Navigation cancelled", "AbortError");
618
618
  }