@ximatai/muyun-web-app 0.26.17 → 0.26.18

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 (56) hide show
  1. package/dist/{BusinessActivityLogView-9RrW-RKb.js → BusinessActivityLogView-CNW817Sf.js} +2 -2
  2. package/dist/BusinessLogListDrawer-YiJxOlnD.js +864 -0
  3. package/dist/CodeConfigurationView-DU8tjPMt.js +1667 -0
  4. package/dist/{ConfigurationTranslationView-Bh_ekuMP.js → ConfigurationTranslationView-CbBt5s1q.js} +22 -22
  5. package/dist/{LoginAuditLogView-DG6iBXEn.js → LoginAuditLogView-CZF1Jfq_.js} +2 -2
  6. package/dist/ModuleActionManagementView-CaiXH1l_.js +755 -0
  7. package/dist/{ModuleGovernanceView-C53RnUzc.js → ModuleGovernanceView-CcwGyO3x.js} +3856 -4000
  8. package/dist/{RequestErrorLogView-Ba5p0hLE.js → RequestErrorLogView-DpudZrC2.js} +2 -2
  9. package/dist/RoleDetailWorkspaceView-DNMGsAJC.js +1435 -0
  10. package/dist/{RuntimeLogView-BFEABm8G.js → RuntimeLogView-444BL_xs.js} +60 -60
  11. package/dist/WorkflowAdministrationView-C-VIjvwB.js +650 -0
  12. package/dist/{WorkflowConfigurationView-A0m5tBX9.js → WorkflowConfigurationView-DLFY2x7V.js} +302 -289
  13. package/dist/WorkflowWorkbenchView-Gr02dbBc.js +759 -0
  14. package/dist/codeConfiguration-ChJ6ktRR.js +208 -0
  15. package/dist/index.css +1 -1
  16. package/dist/index.js +473 -463
  17. package/dist/{moduleGovernanceWorkspaceView-DNKzYX0x.js → moduleMenuWorkspace-B8DKwC3L.js} +224 -265
  18. package/dist/{platform-components-BBfyINHa.js → platform-components-5AE0j2_3.js} +4597 -4630
  19. package/dist/{platform-workbench-C1hmkOUD.js → platform-workbench-BhZPARiH.js} +4887 -4929
  20. package/dist/types/app/DevelopmentTopbarActions.vue.d.ts +9 -0
  21. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +5 -1
  22. package/dist/types/consumer/index.d.ts +2 -1
  23. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +6 -0
  24. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +2 -2
  25. package/dist/types/platform-admin-runtime/ModuleCodeConfigurationStatus.vue.d.ts +7 -0
  26. package/dist/types/platform-admin-runtime/moduleCodeConfiguration.d.ts +15 -0
  27. package/dist/types/platform-components/RecordFormFields.vue.d.ts +4 -2
  28. package/dist/types/platform-components/RecordRelationActionButton.vue.d.ts +16 -0
  29. package/dist/types/{dynamic-page-runtime → platform-components}/TenantScopeExplorer.vue.d.ts +1 -1
  30. package/dist/types/platform-components/index.d.ts +2 -0
  31. package/dist/types/platform-components/managementWorkspaceLayout.d.ts +10 -0
  32. package/dist/types/platform-components/recordFormFieldModel.d.ts +4 -0
  33. package/dist/types/platform-components/useBusinessCodeForm.d.ts +36 -0
  34. package/dist/types/platform-workbench/Workbench.vue.d.ts +6 -2
  35. package/dist/types/platform-workbench/WorkbenchGlobalTools.vue.d.ts +13 -1
  36. package/dist/types/views/CodeConfigurationView.vue.d.ts +8 -0
  37. package/dist/types/views/CodeRuleFormatEditor.vue.d.ts +17 -0
  38. package/dist/types/views/codeConfiguration.d.ts +127 -0
  39. package/dist/types/views/codeConfigurationWorkspaceView.d.ts +5 -0
  40. package/dist/types/views/moduleGovernanceWorkspaceView.d.ts +1 -1
  41. package/dist/types/vue-ui-antdv/components/UiDatePicker.vue.d.ts +33 -0
  42. package/dist/types/vue-ui-antdv/components/UiHelp.vue.d.ts +16 -0
  43. package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
  44. package/dist/types/vue-ui-antdv/components/UiPopover.vue.d.ts +12 -4
  45. package/dist/types/vue-ui-antdv/datePickerCalendar.d.ts +472 -0
  46. package/dist/types/vue-ui-antdv/datePickerValue.d.ts +6 -0
  47. package/dist/types/vue-ui-antdv/index.d.ts +3 -0
  48. package/dist/types/vue-ui-antdv/languageLocales.d.ts +2 -0
  49. package/dist/types/web-contracts/index.d.ts +14 -0
  50. package/dist/{workspaceViews-BpH71LKQ.js → workspaceViews-DeBqozVb.js} +1046 -902
  51. package/package.json +4 -1
  52. package/dist/BusinessLogListDrawer-DYVx9tiQ.js +0 -864
  53. package/dist/ModuleActionManagementView-DgHqhoMN.js +0 -755
  54. package/dist/RoleDetailWorkspaceView-C3TBqksY.js +0 -1435
  55. package/dist/WorkflowAdministrationView-BOHG2e-I.js +0 -650
  56. package/dist/WorkflowWorkbenchView-DGpNDt5V.js +0 -759
@@ -1,14 +1,9 @@
1
- import { ht as e, m as t, vt as n, xt as r } from "./platform-workbench-C1hmkOUD.js";
2
- import { Fa as i, Fr as a, Ji as o, Jn as s, Ki as c, Oa as l, Rn as u, Ui as d, Un as f, Wn as p, Xn as m, Zr as h, aa as g, ca as _, ga as v, na as ee, qi as y } from "./platform-components-BBfyINHa.js";
3
- import { Fragment as b, computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as T, createTextVNode as E, createVNode as D, defineAsyncComponent 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
- //#region src/platform-workbench/workspaceViewContract.ts
5
- function te(e) {
6
- return e;
7
- }
8
- //#endregion
1
+ import { ht as e, m as t, vt as n, xt as r } from "./platform-workbench-BhZPARiH.js";
2
+ import { $i as i, $n as a, Ba as o, Br as s, Ji as c, Kn as l, Na as u, Qi as d, Vn as f, Yn as p, Zi as m, ni as h, pa as g, sa as ee, tr as _, ua as v, xa as y } from "./platform-components-5AE0j2_3.js";
3
+ import { Fragment as b, computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as T, createTextVNode as E, createVNode as D, defineComponent as O, inject as k, nextTick as A, openBlock as j, ref as M, shallowRef as N, toDisplayString as P, unref as F, watch as I, withCtx as L } from "vue";
9
4
  //#region src/platform-admin-runtime/module-menu/moduleMenuClient.ts
10
- function z(e) {
11
- let t = a(e, { moduleAlias: "platform.menu_scheme" });
5
+ function R(e) {
6
+ let t = s(e, { moduleAlias: "platform.menu_scheme" });
12
7
  return {
13
8
  async schemes() {
14
9
  let e = [];
@@ -32,61 +27,61 @@ function z(e) {
32
27
  return e.request({ path: `/platform.module/${encodeURIComponent(t)}/context` });
33
28
  },
34
29
  insert(t, n, r) {
35
- return a(i(e, { "X-MuYun-Page-Context": JSON.stringify({ scheme: t }) }), { moduleAlias: "platform.menu" }).insert(n, { requestId: r });
30
+ return s(o(e, { "X-MuYun-Page-Context": JSON.stringify({ scheme: t }) }), { moduleAlias: "platform.menu" }).insert(n, { requestId: r });
36
31
  },
37
32
  view(t, n) {
38
- return a(i(e, { "X-MuYun-Page-Context": JSON.stringify({ scheme: t }) }), { moduleAlias: "platform.menu" }).view(n);
33
+ return s(o(e, { "X-MuYun-Page-Context": JSON.stringify({ scheme: t }) }), { moduleAlias: "platform.menu" }).view(n);
39
34
  },
40
35
  receipt(t, n) {
41
- return a(i(e, { "X-MuYun-Page-Context": JSON.stringify({ scheme: t }) }), { moduleAlias: "platform.menu" }).saveReceipt(n);
36
+ return s(o(e, { "X-MuYun-Page-Context": JSON.stringify({ scheme: t }) }), { moduleAlias: "platform.menu" }).saveReceipt(n);
42
37
  },
43
38
  visible: () => r(e).mine().then((e) => e.records)
44
39
  };
45
40
  }
46
- function B(e, t = l) {
41
+ function z(e, t = u) {
47
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", "尚未确定");
48
43
  }
49
- function V(e, t = "", n = l) {
44
+ function B(e, t = "", n = u) {
50
45
  return e.flatMap(({ record: e, children: r }) => {
51
- let i = v(e, "title", n) ?? e.title, a = t ? `${t} / ${i}` : i;
46
+ let i = y(e, "title", n) ?? e.title, a = t ? `${t} / ${i}` : i;
52
47
  return [{
53
48
  menu: e,
54
49
  path: a
55
- }, ...V(r, a, n)];
50
+ }, ...B(r, a, n)];
56
51
  });
57
52
  }
58
- function H(e, t = !1, n = l) {
53
+ function te(e, t = !1, n = u) {
59
54
  return e.map(({ record: e, children: r }) => {
60
55
  let i = t || e.enabled === !1;
61
56
  return {
62
57
  value: e.id,
63
- title: v(e, "title", n) ?? e.title,
58
+ title: y(e, "title", n) ?? e.title,
64
59
  disabled: i || !!e.moduleAlias,
65
- children: H(r, i, n)
60
+ children: te(r, i, n)
66
61
  };
67
62
  });
68
63
  }
69
64
  //#endregion
70
65
  //#region src/platform-admin-runtime/module-menu/ModuleMenuEditor.vue?vue&type=script&setup=true&lang.ts
71
- var U = { class: "module-menu-form" }, W = { key: 0 }, G = {
66
+ var V = { class: "module-menu-form" }, H = { key: 0 }, U = {
72
67
  key: 1,
73
68
  class: "hint"
74
- }, ne = { class: "hint" }, K = {
69
+ }, W = { class: "hint" }, G = {
75
70
  key: 2,
76
71
  role: "status"
77
- }, q = { class: "hint" }, J = {
72
+ }, ne = { class: "hint" }, K = {
78
73
  key: 1,
79
74
  class: "hint"
80
- }, re = {
75
+ }, q = {
81
76
  key: 2,
82
77
  role: "status"
83
- }, Y = {
78
+ }, J = {
84
79
  key: 3,
85
80
  role: "status"
86
- }, X = {
81
+ }, re = {
87
82
  key: 5,
88
83
  role: "alert"
89
- }, ie = /*#__PURE__*/ m(/* @__PURE__ */ k({
84
+ }, Y = /*#__PURE__*/ _(/* @__PURE__ */ O({
90
85
  __name: "ModuleMenuEditor",
91
86
  props: {
92
87
  session: {},
@@ -94,157 +89,157 @@ var U = { class: "module-menu-form" }, W = { key: 0 }, G = {
94
89
  },
95
90
  emits: ["saved", "opened"],
96
91
  setup(e, { expose: n, emit: r }) {
97
- let i = e, a = r, o = i.session, c = o.language, l = t();
98
- async function d() {
92
+ let i = e, o = r, s = i.session, c = s.language, u = t();
93
+ async function m() {
99
94
  try {
100
- await o.startAnother();
95
+ await s.startAnother();
101
96
  } catch (e) {
102
- o.reportFailure(e instanceof Error ? e : y(c, "platform.screen.ModuleMenuEditor.cannot-start-a-new-entry-right-now", "暂时无法开始新入口"));
97
+ s.reportFailure(e instanceof Error ? e : d(c, "platform.screen.ModuleMenuEditor.cannot-start-a-new-entry-right-now", "暂时无法开始新入口"));
103
98
  }
104
99
  }
105
- let m = x(() => o.loading.value || o.saving.value || o.resultUnknown.value || !o.authorized.value), h = x(() => m.value || o.updating.value), g = x(() => o.options.value.map((e) => ({
100
+ let h = x(() => s.loading.value || s.saving.value || s.resultUnknown.value || !s.authorized.value), g = x(() => h.value || s.updating.value), ee = x(() => s.options.value.map((e) => ({
106
101
  value: e.id,
107
- label: `${v(e, "title", c) ?? e.alias ?? e.id} · ${B(e, c)}`
102
+ label: `${y(e, "title", c) ?? e.alias ?? e.id} · ${z(e, c)}`
108
103
  }))), _ = x(() => [{
109
104
  value: "root",
110
105
  title: c.t("platform.screen.moduleMenuWorkspace.top-level", "顶层"),
111
- children: H(o.tree.value, !1, c)
106
+ children: te(s.tree.value, !1, c)
112
107
  }]);
113
- async function ee() {
108
+ async function v() {
114
109
  try {
115
- await (await o.prepare()).execute(), a("saved");
110
+ await (await s.prepare()).execute(), o("saved");
116
111
  } catch (e) {
117
- o.resultUnknown.value || o.reportFailure(e instanceof Error ? e : y(c, "platform.screen.ModuleMenuEditor.cannot-add-the-entry-right-now", "暂时无法添加入口"));
112
+ s.resultUnknown.value || s.reportFailure(e instanceof Error ? e : d(c, "platform.screen.ModuleMenuEditor.cannot-add-the-entry-right-now", "暂时无法添加入口"));
118
113
  }
119
114
  }
120
115
  async function O() {
121
116
  try {
122
- await o.lookupPending() && a("saved");
117
+ await s.lookupPending() && o("saved");
123
118
  } catch {
124
- o.reportFailure(y(c, "platform.screen.ModuleMenuEditor.the-result-cannot-be-verified-right-now-retry-the-lookup", "结果暂时无法核实,请重试查询,勿重复添加。"));
119
+ s.reportFailure(d(c, "platform.screen.ModuleMenuEditor.the-result-cannot-be-verified-right-now-retry-the-lookup", "结果暂时无法核实,请重试查询,勿重复添加。"));
125
120
  }
126
121
  }
127
122
  async function k() {
128
- await o.refreshVisibility(), o.visibleMenu.value && l?.openMenu && (l.openMenu(o.visibleMenu.value), a("opened"));
123
+ await s.refreshVisibility(), s.visibleMenu.value && u?.openMenu && (u.openMenu(s.visibleMenu.value), o("opened"));
129
124
  }
130
- return n({ save: ee }), (t, n) => (M(), w("div", U, [
131
- I(o).saved.value ? (M(), w(b, { key: 1 }, [
132
- T("strong", null, F(I(c).t("platform.screen.ModuleMenuEditor.added-to-menu", "已添加到菜单")), 1),
133
- T("p", null, F(I(o).savedPath.value), 1),
134
- T("p", q, F(I(c).t("platform.screen.ModuleMenuEditor.audience", "适用范围:")) + F(I(o).savedAudience.value), 1),
135
- I(o).visibleMenu.value && I(l)?.openMenu ? (M(), S(I(s), {
125
+ return n({ save: v }), (t, n) => (j(), w("div", V, [
126
+ F(s).saved.value ? (j(), w(b, { key: 1 }, [
127
+ T("strong", null, P(F(c).t("platform.screen.ModuleMenuEditor.added-to-menu", "已添加到菜单")), 1),
128
+ T("p", null, P(F(s).savedPath.value), 1),
129
+ T("p", ne, P(F(c).t("platform.screen.ModuleMenuEditor.audience", "适用范围:")) + P(F(s).savedAudience.value), 1),
130
+ F(s).visibleMenu.value && F(u)?.openMenu ? (j(), S(F(a), {
136
131
  key: 0,
137
132
  type: "primary",
138
133
  onClick: k
139
134
  }, {
140
- default: R(() => [E(F(I(c).t("platform.screen.ModuleMenuEntriesSection.open", "打开")), 1)]),
135
+ default: L(() => [E(P(F(c).t("platform.screen.ModuleMenuEntriesSection.open", "打开")), 1)]),
141
136
  _: 1
142
- })) : I(o).visibilityChecked.value ? (M(), w("p", J, F(I(c).t("platform.screen.ModuleMenuEditor.the-entry-was-saved-but-is-not-visible-in-navigation", "入口已保存,当前登录身份的导航暂不可见。请由适用范围内的使用者核实;若其也看不到,再检查上级菜单状态和业务访问权限。")), 1)) : C("v-if", !0),
143
- D(I(s), {
144
- disabled: I(o).saving.value,
145
- onClick: d
137
+ })) : F(s).visibilityChecked.value ? (j(), w("p", K, P(F(c).t("platform.screen.ModuleMenuEditor.the-entry-was-saved-but-is-not-visible-in-navigation", "入口已保存,当前登录身份的导航暂不可见。请由适用范围内的使用者核实;若其也看不到,再检查上级菜单状态和业务访问权限。")), 1)) : C("v-if", !0),
138
+ D(F(a), {
139
+ disabled: F(s).saving.value,
140
+ onClick: m
146
141
  }, {
147
- default: R(() => [E(F(I(c).t("platform.screen.ModuleMenuEditor.add-another-entry", "另加一个入口")), 1)]),
142
+ default: L(() => [E(P(F(c).t("platform.screen.ModuleMenuEditor.add-another-entry", "另加一个入口")), 1)]),
148
143
  _: 1
149
144
  }, 8, ["disabled"]),
150
- I(o).error.value ? (M(), S(I(s), {
145
+ F(s).error.value ? (j(), S(F(a), {
151
146
  key: 2,
152
- disabled: I(o).saving.value,
153
- onClick: I(o).refreshVisibility
147
+ disabled: F(s).saving.value,
148
+ onClick: F(s).refreshVisibility
154
149
  }, {
155
- default: R(() => [E(F(I(c).t("platform.screen.ModuleMenuEditor.refresh-navigation", "刷新导航")), 1)]),
150
+ default: L(() => [E(P(F(c).t("platform.screen.ModuleMenuEditor.refresh-navigation", "刷新导航")), 1)]),
156
151
  _: 1
157
152
  }, 8, ["disabled", "onClick"])) : C("v-if", !0)
158
- ], 64)) : (M(), w(b, { key: 0 }, [
159
- T("label", null, [E(F(I(c).t("platform.screen.ModuleMenuEditor.menu-name", "菜单名称")), 1), D(I(f), {
160
- value: I(o).title.value,
161
- disabled: h.value,
162
- "aria-label": I(c).t("platform.screen.ModuleMenuEditor.menu-name", "菜单名称"),
163
- "onUpdate:value": n[0] ||= (e) => I(o).update({ title: String(e ?? "") })
153
+ ], 64)) : (j(), w(b, { key: 0 }, [
154
+ T("label", null, [E(P(F(c).t("platform.screen.ModuleMenuEditor.menu-name", "菜单名称")), 1), D(F(l), {
155
+ value: F(s).title.value,
156
+ disabled: g.value,
157
+ "aria-label": F(c).t("platform.screen.ModuleMenuEditor.menu-name", "菜单名称"),
158
+ "onUpdate:value": n[0] ||= (e) => F(s).update({ title: String(e ?? "") })
164
159
  }, null, 8, [
165
160
  "value",
166
161
  "disabled",
167
162
  "aria-label"
168
163
  ])]),
169
- g.value.length > 1 ? (M(), w("label", W, [E(F(I(c).t("platform.screen.ModuleMenuEditor.menu-scheme", "菜单方案")), 1), D(I(p), {
170
- value: I(o).schemeId.value,
171
- options: g.value,
164
+ ee.value.length > 1 ? (j(), w("label", H, [E(P(F(c).t("platform.screen.ModuleMenuEditor.menu-scheme", "菜单方案")), 1), D(F(p), {
165
+ value: F(s).schemeId.value,
166
+ options: ee.value,
172
167
  "allow-clear": !1,
173
- disabled: m.value,
174
- "onUpdate:value": n[1] ||= (e) => I(o).update({ schemeId: String(e ?? "") })
168
+ disabled: h.value,
169
+ "onUpdate:value": n[1] ||= (e) => F(s).update({ schemeId: String(e ?? "") })
175
170
  }, null, 8, [
176
171
  "value",
177
172
  "options",
178
173
  "disabled"
179
174
  ])])) : C("v-if", !0),
180
- T("label", null, [E(F(I(c).t("platform.screen.ModuleMenuEditor.position", "放置位置")), 1), D(I(u), {
181
- value: I(o).parentId.value,
175
+ T("label", null, [E(P(F(c).t("platform.screen.ModuleMenuEditor.position", "放置位置")), 1), D(F(f), {
176
+ value: F(s).parentId.value,
182
177
  "tree-data": _.value,
183
178
  "allow-clear": !1,
184
- disabled: h.value,
185
- loading: I(o).loading.value || I(o).updating.value,
186
- "onUpdate:value": n[2] ||= (e) => I(o).update({ parentId: String(e ?? "root") })
179
+ disabled: g.value,
180
+ loading: F(s).loading.value || F(s).updating.value,
181
+ "onUpdate:value": n[2] ||= (e) => F(s).update({ parentId: String(e ?? "root") })
187
182
  }, null, 8, [
188
183
  "value",
189
184
  "tree-data",
190
185
  "disabled",
191
186
  "loading"
192
187
  ])]),
193
- T("details", null, [T("summary", null, F(I(c).t("platform.screen.ModuleMenuEditor.more-settings", "更多设置")), 1), T("label", null, [E(F(I(c).t("platform.screen.ModuleMenuEditor.open-mode", "打开方式")), 1), D(I(p), {
194
- value: I(o).openMode.value,
188
+ T("details", null, [T("summary", null, P(F(c).t("platform.screen.ModuleMenuEditor.more-settings", "更多设置")), 1), T("label", null, [E(P(F(c).t("platform.screen.ModuleMenuEditor.open-mode", "打开方式")), 1), D(F(p), {
189
+ value: F(s).openMode.value,
195
190
  "allow-clear": !1,
196
- disabled: h.value,
191
+ disabled: g.value,
197
192
  options: [{
198
193
  value: "tab",
199
- label: I(c).t("platform.screen.ModuleMenuEditor.open-in-a-workbench-tab", "页签内打开")
194
+ label: F(c).t("platform.screen.ModuleMenuEditor.open-in-a-workbench-tab", "页签内打开")
200
195
  }, {
201
196
  value: "window",
202
- label: I(c).t("platform.screen.ModuleMenuEditor.open-in-a-new-window", "新窗口打开")
197
+ label: F(c).t("platform.screen.ModuleMenuEditor.open-in-a-new-window", "新窗口打开")
203
198
  }],
204
- "onUpdate:value": n[3] ||= (e) => I(o).update({ openMode: e === "window" ? "window" : "tab" })
199
+ "onUpdate:value": n[3] ||= (e) => F(s).update({ openMode: e === "window" ? "window" : "tab" })
205
200
  }, null, 8, [
206
201
  "value",
207
202
  "disabled",
208
203
  "options"
209
204
  ])])]),
210
- I(o).duplicate.value ? (M(), w("p", G, F(I(c).t("platform.screen.ModuleMenuEditor.duplicate-position", "此位置已有「{title}」,仍可另加入口。", { title: I(v)(I(o).duplicate.value.menu, "title", I(c)) })), 1)) : C("v-if", !0),
211
- T("p", ne, F(I(c).t("platform.screen.ModuleMenuEditor.adds-an-access-entry-only-it-does-not-activate-applications", "只添加访问入口,不开通应用或授予业务权限。")), 1),
212
- I(o).updating.value ? (M(), w("p", K, F(I(c).t("platform.screen.ModuleMenuEditor.loading-the-menu-scheme-wait-for-the-candidate-to-be", "正在读取菜单方案,请等待候选就绪。")), 1)) : C("v-if", !0),
213
- e.showSave && !I(o).resultUnknown.value ? (M(), S(I(s), {
205
+ F(s).duplicate.value ? (j(), w("p", U, P(F(c).t("platform.screen.ModuleMenuEditor.duplicate-position", "此位置已有「{title}」,仍可另加入口。", { title: F(y)(F(s).duplicate.value.menu, "title", F(c)) })), 1)) : C("v-if", !0),
206
+ T("p", W, P(F(c).t("platform.screen.ModuleMenuEditor.adds-an-access-entry-only-it-does-not-activate-applications", "只添加访问入口,不开通应用或授予业务权限。")), 1),
207
+ F(s).updating.value ? (j(), w("p", G, P(F(c).t("platform.screen.ModuleMenuEditor.loading-the-menu-scheme-wait-for-the-candidate-to-be", "正在读取菜单方案,请等待候选就绪。")), 1)) : C("v-if", !0),
208
+ e.showSave && !F(s).resultUnknown.value ? (j(), S(F(a), {
214
209
  key: 3,
215
210
  type: "primary",
216
- disabled: !I(o).canSave.value,
217
- loading: I(o).saving.value,
218
- onClick: ee
211
+ disabled: !F(s).canSave.value,
212
+ loading: F(s).saving.value,
213
+ onClick: v
219
214
  }, {
220
- default: R(() => [E(F(I(c).t("platform.screen.ModuleMenuEditor.add-entry", "添加入口")), 1)]),
215
+ default: L(() => [E(P(F(c).t("platform.screen.ModuleMenuEditor.add-entry", "添加入口")), 1)]),
221
216
  _: 1
222
217
  }, 8, ["disabled", "loading"])) : C("v-if", !0),
223
- I(o).resultUnknown.value ? (M(), S(I(s), {
218
+ F(s).resultUnknown.value ? (j(), S(F(a), {
224
219
  key: 4,
225
220
  onClick: O
226
221
  }, {
227
- default: R(() => [E(F(I(c).t("platform.screen.ModuleMenuEditor.check-save-result", "查询保存结果")), 1)]),
222
+ default: L(() => [E(P(F(c).t("platform.screen.ModuleMenuEditor.check-save-result", "查询保存结果")), 1)]),
228
223
  _: 1
229
224
  })) : C("v-if", !0)
230
225
  ], 64)),
231
- I(o).entryIssue.value ? (M(), w("p", re, F(I(o).entryIssue.value), 1)) : C("v-if", !0),
232
- I(o).ready.value && !I(o).authorized.value ? (M(), w("p", Y, F(I(c).t("platform.screen.ModuleMenuEditor.you-do-not-have-permission-to-add-menu-entries", "当前没有添加菜单入口权限。")), 1)) : C("v-if", !0),
233
- I(o).error.value && I(o).ready.value && !I(o).saved.value && !I(o).resultUnknown.value ? (M(), S(I(s), {
226
+ F(s).entryIssue.value ? (j(), w("p", q, P(F(s).entryIssue.value), 1)) : C("v-if", !0),
227
+ F(s).ready.value && !F(s).authorized.value ? (j(), w("p", J, P(F(c).t("platform.screen.ModuleMenuEditor.you-do-not-have-permission-to-add-menu-entries", "当前没有添加菜单入口权限。")), 1)) : C("v-if", !0),
228
+ F(s).error.value && F(s).ready.value && !F(s).saved.value && !F(s).resultUnknown.value ? (j(), S(F(a), {
234
229
  key: 4,
235
- disabled: I(o).saving.value,
236
- onClick: I(o).load
230
+ disabled: F(s).saving.value,
231
+ onClick: F(s).load
237
232
  }, {
238
- default: R(() => [E(F(I(c).t("platform.screen.ModuleMenuEditor.reload-candidate", "重新读取候选")), 1)]),
233
+ default: L(() => [E(P(F(c).t("platform.screen.ModuleMenuEditor.reload-candidate", "重新读取候选")), 1)]),
239
234
  _: 1
240
235
  }, 8, ["disabled", "onClick"])) : C("v-if", !0),
241
- I(o).error.value ? (M(), w("p", X, F(I(o).error.value), 1)) : C("v-if", !0),
242
- I(o).error.value && !I(o).ready.value && !I(o).resultUnknown.value ? (M(), S(I(s), {
236
+ F(s).error.value ? (j(), w("p", re, P(F(s).error.value), 1)) : C("v-if", !0),
237
+ F(s).error.value && !F(s).ready.value && !F(s).resultUnknown.value ? (j(), S(F(a), {
243
238
  key: 6,
244
- disabled: I(o).saving.value,
245
- onClick: I(o).load
239
+ disabled: F(s).saving.value,
240
+ onClick: F(s).load
246
241
  }, {
247
- default: R(() => [E(F(I(c).t("platform.screen.WorkflowWorkbenchView.retry", "重试")), 1)]),
242
+ default: L(() => [E(P(F(c).t("platform.screen.WorkflowWorkbenchView.retry", "重试")), 1)]),
248
243
  _: 1
249
244
  }, 8, ["disabled", "onClick"])) : C("v-if", !0)
250
245
  ]));
@@ -252,63 +247,63 @@ var U = { class: "module-menu-form" }, W = { key: 0 }, G = {
252
247
  }), [["__scopeId", "data-v-7043fb84"]]);
253
248
  //#endregion
254
249
  //#region src/platform-admin-runtime/module-menu/moduleMenuReceiptStore.ts
255
- function ae(e, t, n, r = h, i, a = l) {
256
- let o = `muyun.menu-pending.${JSON.stringify([e, t])}`, s = { persistence: "backend" }, u;
257
- function d() {
258
- if (!n()) throw new c(y(a, "platform.screen.moduleMenuReceiptStore.the-menu-editing-identity-has-changed", "菜单编辑身份已变化"));
250
+ function X(e, t, n, r = h, i, a = u) {
251
+ let o = `muyun.menu-pending.${JSON.stringify([e, t])}`, s = { persistence: "backend" }, c;
252
+ function l() {
253
+ if (!n()) throw new m(d(a, "platform.screen.moduleMenuReceiptStore.the-menu-editing-identity-has-changed", "菜单编辑身份已变化"));
259
254
  return i ?? window.sessionStorage;
260
255
  }
261
256
  function f(e) {
262
- if (!/^[a-zA-Z0-9-]{16,80}$/.test(e)) throw new c(y(a, "platform.screen.moduleMenuReceiptStore.the-original-entry-lookup-reference-is-invalid", "原入口查询标识无效"));
257
+ if (!/^[a-zA-Z0-9-]{16,80}$/.test(e)) throw new m(d(a, "platform.screen.moduleMenuReceiptStore.the-original-entry-lookup-reference-is-invalid", "原入口查询标识无效"));
263
258
  return `menu.pending.r${e.toLowerCase().replaceAll("-", "")}`;
264
259
  }
265
260
  return {
266
261
  async restore() {
267
- if (u = d().getItem(o) ?? void 0, !u) return;
268
- let e = await r.restore(f(u), void 0, s);
269
- if (!e) throw new c(y(a, "platform.screen.moduleMenuReceiptStore.the-original-entry-lookup-reference-cannot-be-read-right-now", "原入口查询引用暂不可读取,请核实后重试"));
262
+ if (c = l().getItem(o) ?? void 0, !c) return;
263
+ let e = await r.restore(f(c), void 0, s);
264
+ if (!e) throw new m(d(a, "platform.screen.moduleMenuReceiptStore.the-original-entry-lookup-reference-cannot-be-read-right-now", "原入口查询引用暂不可读取,请核实后重试"));
270
265
  return e;
271
266
  },
272
267
  async save(e) {
273
- if (e.kind !== "record-save") throw new c(y(a, "platform.screen.moduleMenuReceiptStore.the-original-entry-lookup-reference-is-invalid", "原入口查询标识无效"));
274
- let t = d();
275
- u = e.requestId, await r.set(f(u), e, s), d(), t.setItem(o, u);
268
+ if (e.kind !== "record-save") throw new m(d(a, "platform.screen.moduleMenuReceiptStore.the-original-entry-lookup-reference-is-invalid", "原入口查询标识无效"));
269
+ let t = l();
270
+ c = e.requestId, await r.set(f(c), e, s), l(), t.setItem(o, c);
276
271
  },
277
272
  async clear() {
278
- let e = d(), t = u;
279
- t && (await r.remove(f(t), s), d(), e.getItem(o) === t && e.removeItem(o), u === t && (u = void 0));
273
+ let e = l(), t = c;
274
+ t && (await r.remove(f(t), s), l(), e.getItem(o) === t && e.removeItem(o), c === t && (c = void 0));
280
275
  }
281
276
  };
282
277
  }
283
278
  //#endregion
284
279
  //#region src/platform-admin-runtime/module-menu/moduleMenuSession.ts
285
- function Z(t, r, i, a, s = t.visible, u = l) {
286
- let f = N(0), p = N(!1), m = N(!1), h = N(!1), b = P(), S = x(() => b.value ? b.value instanceof c || b.value instanceof d ? o(b.value, u) : _(g(b.value), u) : "");
280
+ function ie(t, r, a, o, s = t.visible, l = u) {
281
+ let f = M(0), p = M(!1), h = M(!1), _ = M(!1), b = N(), S = x(() => b.value ? b.value instanceof m || b.value instanceof c ? i(b.value, l) : g(v(b.value), l) : "");
287
282
  function C(e) {
288
- b.value = e instanceof Error ? e : new c(e);
283
+ b.value = e instanceof Error ? e : new m(e);
289
284
  }
290
285
  function w(e) {
291
- C(e instanceof Error ? e : y(u, "platform.screen.moduleMenuSession.the-operation-is-temporarily-unavailable-retry", "操作暂不可用,请重试。"));
286
+ C(e instanceof Error ? e : d(l, "platform.screen.moduleMenuSession.the-operation-is-temporarily-unavailable-retry", "操作暂不可用,请重试。"));
292
287
  }
293
- let T = P(), E = x(() => T.value ? ce(T.value, u) : ""), D = N(""), O = N(""), k = N("root"), A = N("tab"), j = P([]), M = P([]), F = P(), I = N(""), L = P(), R = N(""), te = x(() => L.value ? B(L.value, u) : R.value), z = P(), H = N(!1), U = N(!1), W = N(!1), G = N(!1), ne = !1, K = 0, q = 0, J, re = !1, Y = () => !ne && i.valid(), X = x(() => j.value.filter((e) => e.enabled !== !1 && e.id)), ie = x(() => se(M.value, u)), ae = x(() => Y() && W.value && U.value && !p.value && !m.value && !h.value && !J && !F.value && !E.value && !!D.value.trim()), Z = x(() => V(M.value, "", u).find(({ menu: e }) => e.moduleAlias === r && e.parentId === k.value));
288
+ let T = N(), E = x(() => T.value ? se(T.value, l) : ""), D = M(""), O = M(""), k = M("root"), A = M("tab"), j = N([]), P = N([]), F = N(), I = M(""), L = N(), R = M(""), te = x(() => L.value ? z(L.value, l) : R.value), V = N(), H = M(!1), U = M(!1), W = M(!1), G = M(!1), ne = !1, K = 0, q = 0, J, re = !1, Y = () => !ne && a.valid(), X = x(() => j.value.filter((e) => e.enabled !== !1 && e.id)), ie = x(() => oe(P.value, l)), ue = x(() => Y() && W.value && U.value && !p.value && !h.value && !_.value && !J && !F.value && !E.value && !!D.value.trim()), Z = x(() => B(P.value, "", l).find(({ menu: e }) => e.moduleAlias === r && e.parentId === k.value));
294
289
  function Q() {
295
- if (!Y()) throw new c(y(u, "platform.screen.moduleMenuSession.the-menu-editing-scope-has-changed-reopen-the-editor", "菜单编辑范围已变化,请重新打开"));
290
+ if (!Y()) throw new m(d(l, "platform.screen.moduleMenuSession.the-menu-editing-scope-has-changed-reopen-the-editor", "菜单编辑范围已变化,请重新打开"));
296
291
  }
297
292
  function $(e = !1) {
298
- if (Q(), !W.value || !U.value || p.value || h.value || J || F.value || !e && m.value) throw new c(y(u, "platform.screen.moduleMenuSession.wait-for-the-menu-candidate-to-be-ready-or-check", "请先等待菜单候选就绪,或查询未确定的保存结果"));
293
+ if (Q(), !W.value || !U.value || p.value || _.value || J || F.value || !e && h.value) throw new m(d(l, "platform.screen.moduleMenuSession.wait-for-the-menu-candidate-to-be-ready-or-check", "请先等待菜单候选就绪,或查询未确定的保存结果"));
299
294
  }
300
295
  async function de() {
301
296
  if (Q(), F.value || J && W.value) return;
302
- q++, m.value = !1;
297
+ q++, h.value = !1;
303
298
  let e = ++K;
304
299
  p.value = !0, W.value = !1, b.value = void 0;
305
300
  try {
306
301
  if (!re) {
307
- let t = await a.restore();
302
+ let t = await o.restore();
308
303
  if (!Y() || e !== K) return;
309
304
  if (t) {
310
305
  let e = n(t);
311
- if (e.kind !== "record-save" || e.moduleAlias !== "platform.menu" || !e.pageContext?.scheme) throw new c(y(u, "platform.screen.moduleMenuSession.the-original-entry-lookup-scope-is-invalid-verify-the-save", "原入口查询范围无效,请核实保存结果后继续"));
306
+ if (e.kind !== "record-save" || e.moduleAlias !== "platform.menu" || !e.pageContext?.scheme) throw new m(d(l, "platform.screen.moduleMenuSession.the-original-entry-lookup-scope-is-invalid-verify-the-save", "原入口查询范围无效,请核实保存结果后继续"));
312
307
  J = {
313
308
  requestId: e.requestId,
314
309
  schemeId: e.pageContext.scheme
@@ -316,19 +311,19 @@ function Z(t, r, i, a, s = t.visible, u = l) {
316
311
  }
317
312
  re = !0;
318
313
  }
319
- let [i, o, s, l] = await Promise.all([
314
+ let [i, a, s, c] = await Promise.all([
320
315
  t.schemes(),
321
316
  t.context(r),
322
317
  t.context("platform.menu"),
323
318
  t.visible()
324
319
  ]);
325
320
  if (!Y() || e !== K) return;
326
- U.value = s.actions.some((e) => e.actionCode === "create" && e.authorized), T.value = o, j.value = i, D.value ||= o.title ?? r, A.value = o.entryType === "link" ? "window" : "tab";
327
- let d = l[0]?.record.schemeId, p = X.value.find((e) => e.id === (J?.schemeId ?? O.value)) ?? X.value.find((e) => e.id === d) ?? X.value[0];
328
- if (!p?.id) throw new c(y(u, "platform.screen.moduleMenuSession.no-menu-schemes-are-available-configure-an-applicable-scheme-first", "暂无可用菜单方案,请先配置适用的菜单方案"));
329
- let m = await t.tree(p.id);
321
+ U.value = s.actions.some((e) => e.actionCode === "create" && e.authorized), T.value = a, j.value = i, D.value ||= a.title ?? r, A.value = a.entryType === "link" ? "window" : "tab";
322
+ let u = c[0]?.record.schemeId, p = X.value.find((e) => e.id === (J?.schemeId ?? O.value)) ?? X.value.find((e) => e.id === u) ?? X.value[0];
323
+ if (!p?.id) throw new m(d(l, "platform.screen.moduleMenuSession.no-menu-schemes-are-available-configure-an-applicable-scheme-first", "暂无可用菜单方案,请先配置适用的菜单方案"));
324
+ let h = await t.tree(p.id);
330
325
  if (!Y() || e !== K) return;
331
- O.value = p.id, M.value = m, k.value = "root", W.value = !0, f.value++;
326
+ O.value = p.id, P.value = h, k.value = "root", W.value = !0, f.value++;
332
327
  } catch (t) {
333
328
  Y() && e === K && w(t);
334
329
  } finally {
@@ -337,11 +332,11 @@ function Z(t, r, i, a, s = t.visible, u = l) {
337
332
  }
338
333
  function fe(e) {
339
334
  let n = e.schemeId ?? O.value;
340
- if (!X.value.some((e) => e.id === n)) throw new c(y(u, "platform.screen.moduleMenuSession.select-an-available-menu-scheme", "请选择当前可用的菜单方案"));
335
+ if (!X.value.some((e) => e.id === n)) throw new m(d(l, "platform.screen.moduleMenuSession.select-an-available-menu-scheme", "请选择当前可用的菜单方案"));
341
336
  let r = e.title ?? D.value;
342
- if ([...r].length > 120) throw new c(y(u, "platform.screen.moduleMenuSession.the-menu-name-must-not-exceed-120-characters", "菜单名称不能超过120个字符"));
337
+ if ([...r].length > 120) throw new m(d(l, "platform.screen.moduleMenuSession.the-menu-name-must-not-exceed-120-characters", "菜单名称不能超过120个字符"));
343
338
  let i = e.parentId ?? (n === O.value ? k.value : "root"), a = e.openMode ?? A.value, o = (e) => {
344
- if (i !== "root" && !se(e).some((e) => e.menu.id === i)) throw new c(y(u, "platform.screen.moduleMenuSession.select-an-enabled-directory-in-the-current-scheme", "请选择当前方案中的启用目录"));
339
+ if (i !== "root" && !oe(e).some((e) => e.menu.id === i)) throw new m(d(l, "platform.screen.moduleMenuSession.select-an-enabled-directory-in-the-current-scheme", "请选择当前方案中的启用目录"));
345
340
  return {
346
341
  schemeId: n,
347
342
  nodes: e,
@@ -350,46 +345,46 @@ function Z(t, r, i, a, s = t.visible, u = l) {
350
345
  openMode: a
351
346
  };
352
347
  };
353
- return n === O.value ? o(M.value) : t.tree(n).then(o);
348
+ return n === O.value ? o(P.value) : t.tree(n).then(o);
354
349
  }
355
350
  function pe(e) {
356
- O.value = e.schemeId, M.value = e.nodes, k.value = e.parentId, D.value = e.title, A.value = e.openMode, f.value++;
351
+ O.value = e.schemeId, P.value = e.nodes, k.value = e.parentId, D.value = e.title, A.value = e.openMode, f.value++;
357
352
  }
358
353
  async function me(e) {
359
354
  $();
360
355
  let t = f.value, n = await fe(e);
361
356
  return () => {
362
- if ($(), t !== f.value) throw new c(y(u, "platform.screen.moduleMenuSession.the-menu-candidate-has-changed-reload-it", "菜单候选已变化,请重新读取"));
357
+ if ($(), t !== f.value) throw new m(d(l, "platform.screen.moduleMenuSession.the-menu-candidate-has-changed-reload-it", "菜单候选已变化,请重新读取"));
363
358
  pe(n);
364
359
  };
365
360
  }
366
361
  async function he(e) {
367
362
  let t;
368
363
  try {
369
- $(!0), t = ++q, m.value = !0;
364
+ $(!0), t = ++q, h.value = !0;
370
365
  let n = ++f.value;
371
366
  b.value = void 0;
372
367
  let r = fe(e), i = "then" in r ? await r : r;
373
368
  if (!Y() || t !== q) return;
374
- if ($(!0), n !== f.value) throw new c(y(u, "platform.screen.moduleMenuSession.the-menu-candidate-has-changed-reload-it", "菜单候选已变化,请重新读取"));
369
+ if ($(!0), n !== f.value) throw new m(d(l, "platform.screen.moduleMenuSession.the-menu-candidate-has-changed-reload-it", "菜单候选已变化,请重新读取"));
375
370
  pe(i), b.value = void 0;
376
371
  } catch (e) {
377
372
  Y() && (t === void 0 || t === q) && w(e);
378
373
  } finally {
379
- t === q && (m.value = !1);
374
+ t === q && (h.value = !1);
380
375
  }
381
376
  }
382
377
  async function ge() {
383
378
  Q();
384
379
  let e = F.value?.id;
385
380
  if (e) {
386
- H.value = !1, z.value = void 0;
381
+ H.value = !1, V.value = void 0;
387
382
  try {
388
383
  let t = await s();
389
384
  if (!Y() || F.value?.id !== e) return;
390
- z.value = V(t).find(({ menu: t }) => t.id === e)?.menu, H.value = !0, b.value = void 0;
385
+ V.value = B(t).find(({ menu: t }) => t.id === e)?.menu, H.value = !0, b.value = void 0;
391
386
  } catch {
392
- Y() && C(y(u, "platform.screen.moduleMenuSession.the-menu-was-added-but-navigation-could-not-be-refreshed", "菜单已添加,导航刷新失败。请查询或刷新导航,无需重复添加。"));
387
+ Y() && C(d(l, "platform.screen.moduleMenuSession.the-menu-was-added-but-navigation-could-not-be-refreshed", "菜单已添加,导航刷新失败。请查询或刷新导航,无需重复添加。"));
393
388
  }
394
389
  }
395
390
  }
@@ -400,19 +395,19 @@ function Z(t, r, i, a, s = t.visible, u = l) {
400
395
  id: e
401
396
  } : await t.view(r.schemeId, e));
402
397
  Q(), F.value = i;
403
- let o = r.audienceScheme ?? X.value.find((e) => e.id === i.schemeId);
404
- L.value = o ? { ...o } : void 0, R.value = r.audience ?? "", I.value = r.path ?? [
398
+ let a = r.audienceScheme ?? X.value.find((e) => e.id === i.schemeId);
399
+ L.value = a ? { ...a } : void 0, R.value = r.audience ?? "", I.value = r.path ?? [
405
400
  (() => {
406
401
  let e = X.value.find((e) => e.id === i.schemeId);
407
- return e && v(e, "title", u);
402
+ return e && y(e, "title", l);
408
403
  })(),
409
- V(M.value, "", u).find(({ menu: e }) => e.id === i.parentId)?.path,
404
+ B(P.value, "", l).find(({ menu: e }) => e.id === i.parentId)?.path,
410
405
  i.title
411
- ].filter(Boolean).join(" / "), J = void 0, G.value = !1, f.value++, await a.clear().catch(() => {}), Y() && await ge();
406
+ ].filter(Boolean).join(" / "), J = void 0, G.value = !1, f.value++, await o.clear().catch(() => {}), Y() && await ge();
412
407
  }
413
408
  return {
414
- title: u.t("platform.screen.moduleMenuSession.menu-entry-saved", "菜单入口已保存"),
415
- lines: Y() ? [I.value, H.value ? z.value ? u.t("platform.screen.moduleMenuSession.visible-to-the-current-user-the-business-page-can-be", "当前用户可见,可打开业务页面。") : u.t("platform.screen.moduleMenuSession.the-entry-was-saved-but-is-not-visible-to-the", "入口已保存;当前登录身份暂不可见,请由适用范围内的使用者核实导航。") : u.t("platform.screen.moduleMenuSession.navigation-visibility-has-not-been-verified-do-not-add-the", "导航可见性尚未核实;不要重复添加。")] : [u.t("platform.screen.moduleMenuSession.the-save-completed-verify-the-entry-in-its-original-scope", "保存已完成,请在原范围核实入口。")]
409
+ title: l.t("platform.screen.moduleMenuSession.menu-entry-saved", "菜单入口已保存"),
410
+ lines: Y() ? [I.value, H.value ? V.value ? l.t("platform.screen.moduleMenuSession.visible-to-the-current-user-the-business-page-can-be", "当前用户可见,可打开业务页面。") : l.t("platform.screen.moduleMenuSession.the-entry-was-saved-but-is-not-visible-to-the", "入口已保存;当前登录身份暂不可见,请由适用范围内的使用者核实导航。") : l.t("platform.screen.moduleMenuSession.navigation-visibility-has-not-been-verified-do-not-add-the", "导航可见性尚未核实;不要重复添加。")] : [l.t("platform.screen.moduleMenuSession.the-save-completed-verify-the-entry-in-its-original-scope", "保存已完成,请在原范围核实入口。")]
416
411
  };
417
412
  }
418
413
  async function ve(e, n) {
@@ -422,87 +417,87 @@ function Z(t, r, i, a, s = t.visible, u = l) {
422
417
  t.schemes(),
423
418
  t.tree(e.schemeId)
424
419
  ]);
425
- if (Q(), !a.actions.some((e) => e.actionCode === "create" && e.authorized)) throw new d(y(u, "platform.screen.moduleMenuSession.you-do-not-have-permission-to-add-menu-entries", "当前没有添加菜单入口权限"));
426
- let c = le(i, u);
427
- if (c) throw new d(c);
428
- let l = o.find((t) => t.id === e.schemeId && t.enabled !== !1);
429
- if (!l) throw new d(y(u, "platform.screen.moduleMenuSession.the-menu-scheme-is-no-longer-available", "菜单方案已不可用"));
430
- if (e.parentId !== "root" && !se(s).some((t) => t.menu.id === e.parentId)) throw new d(y(u, "platform.screen.moduleMenuSession.the-target-directory-is-no-longer-available-review-the-entry", "放置目录已不可用,请重新审阅"));
431
- let f = e.parentId === "root" ? [] : oe(s, e.parentId), p = JSON.stringify([
432
- l.id,
433
- l.alias ?? null,
434
- l.title ?? null,
435
- l.scopeType ?? null,
436
- l.tenantId ?? null,
437
- l.organizationId ?? null,
438
- f.map((e) => [e.id, e.title])
420
+ if (Q(), !a.actions.some((e) => e.actionCode === "create" && e.authorized)) throw new c(d(l, "platform.screen.moduleMenuSession.you-do-not-have-permission-to-add-menu-entries", "当前没有添加菜单入口权限"));
421
+ let u = ce(i, l);
422
+ if (u) throw new c(u);
423
+ let f = o.find((t) => t.id === e.schemeId && t.enabled !== !1);
424
+ if (!f) throw new c(d(l, "platform.screen.moduleMenuSession.the-menu-scheme-is-no-longer-available", "菜单方案已不可用"));
425
+ if (e.parentId !== "root" && !oe(s).some((t) => t.menu.id === e.parentId)) throw new c(d(l, "platform.screen.moduleMenuSession.the-target-directory-is-no-longer-available-review-the-entry", "放置目录已不可用,请重新审阅"));
426
+ let p = e.parentId === "root" ? [] : ae(s, e.parentId), m = JSON.stringify([
427
+ f.id,
428
+ f.alias ?? null,
429
+ f.title ?? null,
430
+ f.scopeType ?? null,
431
+ f.tenantId ?? null,
432
+ f.organizationId ?? null,
433
+ p.map((e) => [e.id, e.title])
439
434
  ]);
440
- if (n && p !== n) throw new d(y(u, "platform.screen.moduleMenuSession.the-menu-scheme-audience-or-directory-has-changed-reload-and", "菜单方案适用范围或目录已变化,请重新读取候选并审阅"));
435
+ if (n && m !== n) throw new c(d(l, "platform.screen.moduleMenuSession.the-menu-scheme-audience-or-directory-has-changed-reload-and", "菜单方案适用范围或目录已变化,请重新读取候选并审阅"));
441
436
  return {
442
- scheme: l,
443
- signature: p,
437
+ scheme: f,
438
+ signature: m,
444
439
  path: [
445
- v(l, "title", u) ?? l.alias,
446
- ...f.map((e) => v(e, "title", u)),
440
+ y(f, "title", l) ?? f.alias,
441
+ ...p.map((e) => y(e, "title", l)),
447
442
  e.title
448
443
  ].filter(Boolean).join(" / ")
449
444
  };
450
445
  }
451
446
  async function ye() {
452
- if ($(), !ae.value) throw new c(y(u, "platform.screen.moduleMenuSession.provide-a-menu-name-and-an-available-business-page", "请补齐菜单名称及可用业务页面"));
453
- let n = f.value, o = {
447
+ if ($(), !ue.value) throw new m(d(l, "platform.screen.moduleMenuSession.provide-a-menu-name-and-an-available-business-page", "请补齐菜单名称及可用业务页面"));
448
+ let n = f.value, i = {
454
449
  moduleAlias: r,
455
450
  schemeId: O.value,
456
451
  parentId: k.value,
457
452
  title: D.value.trim(),
458
453
  openMode: A.value,
459
454
  enabled: !0
460
- }, s = await ve(o);
461
- if ($(), f.value !== n) throw new c(y(u, "platform.screen.moduleMenuSession.the-menu-candidate-has-changed-review-it-again", "菜单候选已变化,请重新审阅"));
462
- let l = s.path, p = e(), g = () => Y() && i.active() && W.value && U.value && !m.value && !J && !F.value && f.value === n, _ = {
455
+ }, s = await ve(i);
456
+ if ($(), f.value !== n) throw new m(d(l, "platform.screen.moduleMenuSession.the-menu-candidate-has-changed-review-it-again", "菜单候选已变化,请重新审阅"));
457
+ let u = s.path, p = e(), g = () => Y() && a.active() && W.value && U.value && !h.value && !J && !F.value && f.value === n, v = {
463
458
  kind: "record-save",
464
459
  moduleAlias: "platform.menu",
465
460
  requestId: p,
466
- pageContext: { scheme: o.schemeId }
461
+ pageContext: { scheme: i.schemeId }
467
462
  };
468
463
  return {
469
- receiptReference: _,
464
+ receiptReference: v,
470
465
  presentation: {
471
- title: u.t("platform.screen.moduleMenuSession.add-a-business-entry", "添加业务入口"),
466
+ title: l.t("platform.screen.moduleMenuSession.add-a-business-entry", "添加业务入口"),
472
467
  lines: [
473
- l,
474
- u.t("platform.screen.moduleMenuSession.audience-value", "适用范围:{value1}", { value1: B(s.scheme, u) }),
475
- u.t("platform.screen.moduleMenuSession.open-mode-value", "打开方式:{value1}", { value1: o.openMode === "window" ? u.t("platform.screen.moduleMenuSession.new-window", "新窗口") : u.t("platform.screen.moduleMenuSession.workbench-tab", "页签内") }),
476
- u.t("platform.screen.moduleMenuSession.adds-an-entry-only-it-does-not-activate-applications-or", "只添加入口,不开通应用或授予业务权限。"),
477
- ...Z.value ? [u.t("platform.screen.moduleMenuSession.this-position-already-contains-value-another-entry-will-be-added", "此位置已有「{value1}」,本次将另加一个入口。", { value1: v(Z.value.menu, "title", u) })] : []
468
+ u,
469
+ l.t("platform.screen.moduleMenuSession.audience-value", "适用范围:{value1}", { value1: z(s.scheme, l) }),
470
+ l.t("platform.screen.moduleMenuSession.open-mode-value", "打开方式:{value1}", { value1: i.openMode === "window" ? l.t("platform.screen.moduleMenuSession.new-window", "新窗口") : l.t("platform.screen.moduleMenuSession.workbench-tab", "页签内") }),
471
+ l.t("platform.screen.moduleMenuSession.adds-an-entry-only-it-does-not-activate-applications-or", "只添加入口,不开通应用或授予业务权限。"),
472
+ ...Z.value ? [l.t("platform.screen.moduleMenuSession.this-position-already-contains-value-another-entry-will-be-added", "此位置已有「{value1}」,本次将另加一个入口。", { value1: y(Z.value.menu, "title", l) })] : []
478
473
  ],
479
474
  details: {
480
- title: u.t("platform.screen.moduleMenuSession.view-target-module", "查看目标模块"),
475
+ title: l.t("platform.screen.moduleMenuSession.view-target-module", "查看目标模块"),
481
476
  lines: [r]
482
477
  }
483
478
  },
484
- confirmLabel: u.t("platform.screen.moduleMenuSession.confirm-entry-creation", "确认添加入口"),
479
+ confirmLabel: l.t("platform.screen.moduleMenuSession.confirm-entry-creation", "确认添加入口"),
485
480
  expiresAt: Date.now() + 3e5,
486
481
  isCurrent: g,
487
482
  async execute() {
488
- if (!g() || h.value) throw new d(y(u, "platform.screen.moduleMenuSession.the-menu-candidate-or-editing-scope-has-changed-review-it", "菜单候选或编辑范围已变化,请重新审阅"));
489
- h.value = !0, b.value = void 0;
483
+ if (!g() || _.value) throw new c(d(l, "platform.screen.moduleMenuSession.the-menu-candidate-or-editing-scope-has-changed-review-it", "菜单候选或编辑范围已变化,请重新审阅"));
484
+ _.value = !0, b.value = void 0;
490
485
  let e = !1;
491
486
  try {
492
- if (await ve(o, s.signature), !g() || (J = {
487
+ if (await ve(i, s.signature), !g() || (J = {
493
488
  requestId: p,
494
- schemeId: o.schemeId,
495
- record: o,
496
- path: l,
497
- audience: B(s.scheme, u),
489
+ schemeId: i.schemeId,
490
+ record: i,
491
+ path: u,
492
+ audience: z(s.scheme, l),
498
493
  audienceScheme: { ...s.scheme }
499
- }, await a.save(_), !Y() || !i.active() || f.value !== n)) throw new d(y(u, "platform.screen.moduleMenuSession.the-menu-candidate-or-editing-scope-has-changed-review-it", "菜单候选或编辑范围已变化,请重新审阅"));
494
+ }, await o.save(v), !Y() || !a.active() || f.value !== n)) throw new c(d(l, "platform.screen.moduleMenuSession.the-menu-candidate-or-editing-scope-has-changed-review-it", "菜单候选或编辑范围已变化,请重新审阅"));
500
495
  e = !0;
501
- let r = await t.insert(o.schemeId, o, p);
496
+ let r = await t.insert(i.schemeId, i, p);
502
497
  return await _e(r.record.id, r.record);
503
498
  } catch (t) {
504
499
  if (Y()) {
505
- if (!e || t instanceof d || t instanceof ee && [
500
+ if (!e || t instanceof c || t instanceof ee && [
506
501
  400,
507
502
  401,
508
503
  403,
@@ -511,39 +506,39 @@ function Z(t, r, i, a, s = t.visible, u = l) {
511
506
  422
512
507
  ].includes(t.status ?? 0)) {
513
508
  try {
514
- J && await a.clear(), J = void 0;
509
+ J && await o.clear(), J = void 0;
515
510
  } catch {
516
- J && (J.rejected = !0), G.value = !0, C(y(u, "platform.screen.moduleMenuSession.the-operation-was-not-submitted-but-the-original-request-reference", "操作未提交,但原请求标识尚未清除,请先查询结果。"));
511
+ J && (J.rejected = !0), G.value = !0, C(d(l, "platform.screen.moduleMenuSession.the-operation-was-not-submitted-but-the-original-request-reference", "操作未提交,但原请求标识尚未清除,请先查询结果。"));
517
512
  }
518
- throw new d(ue(t, u));
513
+ throw new c(le(t, l));
519
514
  }
520
- J && (G.value = !0, f.value++), J ? C(y(u, "platform.screen.moduleMenuSession.the-save-result-is-unresolved-check-the-original-request-result", "保存结果尚未确定,请查询原请求结果,勿重复添加。")) : w(t);
515
+ J && (G.value = !0, f.value++), J ? C(d(l, "platform.screen.moduleMenuSession.the-save-result-is-unresolved-check-the-original-request-result", "保存结果尚未确定,请查询原请求结果,勿重复添加。")) : w(t);
521
516
  }
522
517
  throw t;
523
518
  } finally {
524
- Y() && (h.value = !1);
519
+ Y() && (_.value = !1);
525
520
  }
526
521
  },
527
522
  lookup: be
528
523
  };
529
524
  }
530
525
  async function be() {
531
- if (Q(), !J || h.value) return;
526
+ if (Q(), !J || _.value) return;
532
527
  let e = J;
533
- if (e.rejected) return await a.clear(), Q(), J === e ? (J = void 0, G.value = !1, b.value = void 0, f.value++, {
534
- title: u.t("platform.operation.not-submitted", "操作未提交"),
535
- lines: [u.t("platform.screen.moduleMenuSession.the-recovery-reference-was-cleared-you-can-review-and-add", "恢复标识已清除,可以重新审阅并添加入口。")]
528
+ if (e.rejected) return await o.clear(), Q(), J === e ? (J = void 0, G.value = !1, b.value = void 0, f.value++, {
529
+ title: l.t("platform.operation.not-submitted", "操作未提交"),
530
+ lines: [l.t("platform.screen.moduleMenuSession.the-recovery-reference-was-cleared-you-can-review-and-add", "恢复标识已清除,可以重新审阅并添加入口。")]
536
531
  }) : void 0;
537
532
  let n = await t.receipt(e.schemeId, e.requestId);
538
533
  if (Q(), J === e && n.committed && n.recordId) return _e(n.recordId);
539
534
  }
540
535
  return {
541
536
  moduleAlias: r,
542
- language: u,
537
+ language: l,
543
538
  revision: f,
544
539
  loading: p,
545
- updating: m,
546
- saving: h,
540
+ updating: h,
541
+ saving: _,
547
542
  error: S,
548
543
  reportFailure: C,
549
544
  failureCause: () => b.value,
@@ -553,18 +548,18 @@ function Z(t, r, i, a, s = t.visible, u = l) {
553
548
  parentId: k,
554
549
  openMode: A,
555
550
  schemes: j,
556
- tree: M,
551
+ tree: P,
557
552
  options: X,
558
553
  directories: ie,
559
554
  saved: F,
560
555
  savedPath: I,
561
556
  savedAudience: te,
562
- visibleMenu: z,
557
+ visibleMenu: V,
563
558
  visibilityChecked: H,
564
559
  authorized: U,
565
560
  ready: W,
566
561
  resultUnknown: G,
567
- canSave: ae,
562
+ canSave: ue,
568
563
  duplicate: Z,
569
564
  load: de,
570
565
  update: he,
@@ -573,95 +568,59 @@ function Z(t, r, i, a, s = t.visible, u = l) {
573
568
  lookupPending: be,
574
569
  refreshVisibility: ge,
575
570
  async startAnother() {
576
- if (Q(), !F.value || h.value || J) throw new c(y(u, "platform.screen.moduleMenuSession.verify-the-current-entry-save-result-first", "请先核实当前入口保存结果"));
577
- await a.clear(), Q(), F.value = void 0, I.value = "", L.value = void 0, R.value = "", z.value = void 0, H.value = !1, W.value = !1, f.value++, await de();
571
+ if (Q(), !F.value || _.value || J) throw new m(d(l, "platform.screen.moduleMenuSession.verify-the-current-entry-save-result-first", "请先核实当前入口保存结果"));
572
+ await o.clear(), Q(), F.value = void 0, I.value = "", L.value = void 0, R.value = "", V.value = void 0, H.value = !1, W.value = !1, f.value++, await de();
578
573
  },
579
574
  dispose() {
580
- ne = !0, K++, q++, m.value = !1, f.value++;
575
+ ne = !0, K++, q++, h.value = !1, f.value++;
581
576
  },
582
577
  invalidate() {
583
- q++, m.value = !1, f.value++;
578
+ q++, h.value = !1, f.value++;
584
579
  }
585
580
  };
586
581
  }
587
- function oe(e, t, n = []) {
582
+ function ae(e, t, n = []) {
588
583
  for (let r of e) {
589
584
  let e = [...n, r.record];
590
585
  if (r.record.id === t) return e;
591
- let i = oe(r.children, t, e);
586
+ let i = ae(r.children, t, e);
592
587
  if (i.length) return i;
593
588
  }
594
589
  return [];
595
590
  }
596
- function se(e, t = l) {
591
+ function oe(e, t = u) {
597
592
  let n = (e) => e.filter(({ record: e }) => e.enabled !== !1).map((e) => ({
598
593
  ...e,
599
594
  children: n(e.children)
600
595
  }));
601
- return V(n(e), "", t).filter(({ menu: e }) => !e.moduleAlias);
596
+ return B(n(e), "", t).filter(({ menu: e }) => !e.moduleAlias);
602
597
  }
603
- function ce(e, t = l) {
604
- return le(e, t)?.message ?? "";
598
+ function se(e, t = u) {
599
+ return ce(e, t)?.message ?? "";
605
600
  }
606
- function le(e, t) {
607
- return e.entryType === "route" ? e.entryRoute ? void 0 : y(t, "platform.screen.moduleMenuSession.this-module-has-no-page-address-return-to-its-configuration", "该模块尚未配置页面地址,请返回模块补充。") : e.entryType === "link" ? e.entryExternalUrl ? void 0 : y(t, "platform.screen.moduleMenuSession.this-module-has-no-link-address-return-to-its-configuration", "该模块尚未配置链接地址,请返回模块补充。") : e.uiDescriptor?.page ? void 0 : y(t, "platform.screen.moduleMenuSession.this-module-has-no-available-business-page-publish-its-page", "该模块尚无可用业务页面,请先发布页面配置。");
601
+ function ce(e, t) {
602
+ return e.entryType === "route" ? e.entryRoute ? void 0 : d(t, "platform.screen.moduleMenuSession.this-module-has-no-page-address-return-to-its-configuration", "该模块尚未配置页面地址,请返回模块补充。") : e.entryType === "link" ? e.entryExternalUrl ? void 0 : d(t, "platform.screen.moduleMenuSession.this-module-has-no-link-address-return-to-its-configuration", "该模块尚未配置链接地址,请返回模块补充。") : e.uiDescriptor?.page ? void 0 : d(t, "platform.screen.moduleMenuSession.this-module-has-no-available-business-page-publish-its-page", "该模块尚无可用业务页面,请先发布页面配置。");
608
603
  }
609
- function ue(e, t = l) {
610
- return e instanceof c || e instanceof d ? e.textMessage ?? e.message : e instanceof Error ? e.message : y(t, "platform.screen.moduleMenuSession.the-operation-is-temporarily-unavailable-retry", "操作暂不可用,请重试。");
604
+ function le(e, t = u) {
605
+ return e instanceof m || e instanceof c ? e.textMessage ?? e.message : e instanceof Error ? e.message : d(t, "platform.screen.moduleMenuSession.the-operation-is-temporarily-unavailable-retry", "操作暂不可用,请重试。");
611
606
  }
612
607
  //#endregion
613
608
  //#region src/views/configurationEditorNavigation.ts
614
- async function Q(e, t, n = l) {
609
+ async function ue(e, t, n = u) {
615
610
  if (t?.aborted || (e() || await new Promise((r, i) => {
616
611
  let a = (e) => {
617
- s(), clearTimeout(l), t?.removeEventListener("abort", o), e ? i(e) : r();
618
- }, o = () => a(new DOMException("Navigation cancelled", "AbortError")), s = L(e, (e) => {
612
+ s(), clearTimeout(c), t?.removeEventListener("abort", o), e ? i(e) : r();
613
+ }, o = () => a(new DOMException("Navigation cancelled", "AbortError")), s = I(e, (e) => {
619
614
  e && a();
620
- }, { flush: "post" }), l = setTimeout(() => a(new c(y(n, "platform.screen.configurationEditorNavigation.the-configuration-page-is-not-ready-reopen-it-before-continuing", "配置页面尚未就绪,请重新打开后继续。"))), 15e3);
615
+ }, { flush: "post" }), c = setTimeout(() => a(new m(d(n, "platform.screen.configurationEditorNavigation.the-configuration-page-is-not-ready-reopen-it-before-continuing", "配置页面尚未就绪,请重新打开后继续。"))), 15e3);
621
616
  t?.addEventListener("abort", o, { once: !0 });
622
- }), await j(), t?.aborted)) throw new DOMException("Navigation cancelled", "AbortError");
617
+ }), await A(), t?.aborted)) throw new DOMException("Navigation cancelled", "AbortError");
623
618
  }
624
619
  //#endregion
625
620
  //#region src/platform-admin-runtime/module-menu/moduleMenuWorkspace.ts
626
- var $ = Symbol("module-menu-workspace");
627
- function de() {
628
- return A($, void 0);
629
- }
630
- //#endregion
631
- //#region src/views/moduleGovernanceWorkspaceView.ts
632
- var fe = [
633
- "overview",
634
- "metadata",
635
- "actions",
636
- "rules",
637
- "ui",
638
- "menu",
639
- "preview"
640
- ], pe = te({
641
- type: "platform.module.governance",
642
- route: "/_platform/workspace/platform.module.governance",
643
- moduleAlias: "platform.module",
644
- component: O(() => import("./ModuleGovernanceView-C53RnUzc.js")),
645
- layout: "workspace",
646
- routeTitle: "模块管理",
647
- routeTitleKey: "platform.workspace-view.modules.route-title",
648
- presentations: ["tab"],
649
- titleArgsOf: (e) => ({ module: e.moduleTitle ?? e.moduleAlias }),
650
- titleKey: "platform.workspace-view.governance.title",
651
- titleOf: (e) => `低代码治理:${e.moduleTitle ?? e.moduleAlias}`,
652
- tabIdentityParamsOf: (e) => ({ moduleAlias: e.moduleAlias }),
653
- parentRouteQueryOf: () => ({}),
654
- parse(e) {
655
- let t = e.moduleAlias, n = e.moduleTitle, r = e.governanceTab === "diagnostics" ? "preview" : e.governanceTab;
656
- if (typeof t == "string" && t) return {
657
- moduleAlias: t,
658
- ...typeof n == "string" && n ? { moduleTitle: n } : {},
659
- ...me(r) ? { governanceTab: r } : {}
660
- };
661
- }
662
- });
663
- function me(e) {
664
- return typeof e == "string" && fe.includes(e);
621
+ var Z = Symbol("module-menu-workspace");
622
+ function Q() {
623
+ return k(Z, void 0);
665
624
  }
666
625
  //#endregion
667
- export { Z as a, z as c, Q as i, V as l, pe as n, ae as o, de as r, ie as s, fe as t, te as u };
626
+ export { Y as a, X as i, ue as n, R as o, ie as r, B as s, Q as t };