@ximatai/muyun-web-app 0.26.3 → 0.26.4

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 (137) hide show
  1. package/dist/{EmployeeDetailWorkspaceView-mtdcsqgF.js → EmployeeDetailWorkspaceView-BySbWjCV.js} +1 -1
  2. package/dist/{EmployeeManagementView-CKKvQZaC.js → EmployeeManagementView-DvmDPxzN.js} +205 -205
  3. package/dist/{MetadataOrchestrationView-CprWBocy.js → MetadataOrchestrationView-2JxJkFEC.js} +194 -194
  4. package/dist/{ModuleActionManagementView-DNuAQUPE.js → ModuleActionManagementView-DRtYMXOK.js} +122 -122
  5. package/dist/{RoleAuthorizationView-CQtSAJoJ.js → RoleAuthorizationView-CK6Vfdup.js} +52 -52
  6. package/dist/{RoleDetailWorkspaceView-Dh8DXpyS.js → RoleDetailWorkspaceView-BPZcZy-r.js} +1 -1
  7. package/dist/{RoleManagementView-BrqaFV7y.js → RoleManagementView-B7TzzVOm.js} +204 -204
  8. package/dist/{SystemUserDetailWorkspaceView-N-kvycAu.js → SystemUserDetailWorkspaceView-BtEDyU-k.js} +1 -1
  9. package/dist/SystemUserManagementView-TKqj92zG.js +761 -0
  10. package/dist/{UserDetailWorkspaceView-Iek6xwix.js → UserDetailWorkspaceView-B6fGrnQ7.js} +1 -1
  11. package/dist/UserManagementView-4IJeDSQS.js +965 -0
  12. package/dist/index.css +1 -1
  13. package/dist/index.js +1054 -1054
  14. package/dist/{pageRealtime-sRtDYlQP.js → pageRealtime-CJriNmzP.js} +12 -12
  15. package/dist/{platform-components-bC1gwhic.js → platform-components-CgMBopmF.js} +1107 -1377
  16. package/dist/types/app/LoginView.vue.d.ts +2 -2
  17. package/dist/types/app/appWorkbenchStartup.d.ts +1 -1
  18. package/dist/types/app/platformMessage.d.ts +1 -1
  19. package/dist/types/app/query.d.ts +1 -1
  20. package/dist/types/app/workbenchStartup.d.ts +3 -3
  21. package/dist/types/consumer/PlatformAdminOutlet.vue.d.ts +1 -1
  22. package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +1 -1
  23. package/dist/types/dynamic-page-runtime/DynamicModulePage.vue.d.ts +1 -1
  24. package/dist/types/dynamic-page-runtime/actionReactions.d.ts +1 -1
  25. package/dist/types/dynamic-page-runtime/mockDescriptor.d.ts +1 -1
  26. package/dist/types/main.d.ts +1 -1
  27. package/dist/types/platform-admin-runtime/PlatformAdminOutlet.vue.d.ts +1 -1
  28. package/dist/types/platform-admin-runtime/WorkspaceViewDrawer.vue.d.ts +1 -1
  29. package/dist/types/platform-admin-runtime/WorkspaceViewOutlet.vue.d.ts +1 -1
  30. package/dist/types/platform-admin-runtime/backendHttp.d.ts +1 -1
  31. package/dist/types/platform-admin-runtime/currentUserContext.d.ts +1 -1
  32. package/dist/types/platform-admin-runtime/moduleOpenApi.d.ts +2 -2
  33. package/dist/types/platform-admin-runtime/pageRealtime.d.ts +1 -1
  34. package/dist/types/platform-admin-runtime/platformAdminRoutes.d.ts +1 -1
  35. package/dist/types/platform-admin-runtime/realtime.d.ts +4 -4
  36. package/dist/types/platform-admin-runtime/sessionRecovery.d.ts +1 -1
  37. package/dist/types/platform-admin-runtime/useWorkspaceViewPromotion.d.ts +1 -1
  38. package/dist/types/platform-admin-runtime/workspaceViewContract.d.ts +1 -1
  39. package/dist/types/platform-admin-runtime/workspaceViews.d.ts +1 -1
  40. package/dist/types/platform-components/ApplicationScopeSwitcher.vue.d.ts +1 -1
  41. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +2 -2
  42. package/dist/types/platform-components/ModuleActionButton.vue.d.ts +2 -2
  43. package/dist/types/platform-components/RecordActionBar.vue.d.ts +1 -1
  44. package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +1 -1
  45. package/dist/types/platform-components/RecordFormFields.vue.d.ts +1 -1
  46. package/dist/types/platform-components/RecordListExplorer.vue.d.ts +1 -1
  47. package/dist/types/platform-components/RecordMetaSection.vue.d.ts +1 -1
  48. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +1 -1
  49. package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
  50. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +1 -1
  51. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +2 -2
  52. package/dist/types/platform-components/UserSessionExpandedSubtable.vue.d.ts +1 -1
  53. package/dist/types/platform-components/actionConfirmation.d.ts +1 -1
  54. package/dist/types/platform-components/index.d.ts +1 -0
  55. package/dist/types/platform-components/optionFieldOptions.d.ts +1 -1
  56. package/dist/types/platform-components/pageLayoutContext.d.ts +1 -1
  57. package/dist/types/platform-components/platformActionResultReactions.d.ts +1 -1
  58. package/dist/types/platform-components/platformErrorFeedback.d.ts +1 -1
  59. package/dist/types/platform-components/recordActionBarModel.d.ts +2 -2
  60. package/dist/types/platform-components/recordEditorSessionState.d.ts +1 -1
  61. package/dist/types/platform-components/recordExplorerItemModel.d.ts +1 -1
  62. package/dist/types/platform-components/recordFormFieldModel.d.ts +2 -2
  63. package/dist/types/platform-components/recycleBinState.d.ts +2 -2
  64. package/dist/types/platform-components/scopedResourceTreeModuleContext.d.ts +1 -1
  65. package/dist/types/platform-components/scopedTreeModuleContext.d.ts +1 -1
  66. package/dist/types/platform-components/softDeletedConflictHandler.d.ts +1 -1
  67. package/dist/types/platform-components/staticCrudManagementState.d.ts +2 -2
  68. package/dist/types/platform-components/staticFormActionFlow.d.ts +1 -1
  69. package/dist/types/platform-components/staticTreeResourceModuleContext.d.ts +1 -1
  70. package/dist/types/platform-components/treeRecordModel.d.ts +1 -1
  71. package/dist/types/platform-components/useRecycleBinExplorerMode.d.ts +1 -1
  72. package/dist/types/platform-components/userSessionPresentation.d.ts +1 -1
  73. package/dist/types/platform-workbench/Workbench.vue.d.ts +1 -1
  74. package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +1 -1
  75. package/dist/types/platform-workbench/WorkbenchMenuTree.vue.d.ts +1 -1
  76. package/dist/types/platform-workbench/WorkbenchOutlet.vue.d.ts +1 -1
  77. package/dist/types/platform-workbench/hosts/BusinessRouteHost.vue.d.ts +1 -1
  78. package/dist/types/platform-workbench/hosts/ExternalPageHost.vue.d.ts +1 -1
  79. package/dist/types/platform-workbench/hosts/PlatformRouteHost.vue.d.ts +1 -1
  80. package/dist/types/platform-workbench/menuNavigation.d.ts +1 -1
  81. package/dist/types/platform-workbench/menuTreeModel.d.ts +1 -1
  82. package/dist/types/platform-workbench/pageHostRegistry.d.ts +1 -1
  83. package/dist/types/platform-workbench/workbenchNavigation.d.ts +1 -1
  84. package/dist/types/views/EmployeeDetailContent.vue.d.ts +3 -3
  85. package/dist/types/views/EmployeeEmploymentDrawer.vue.d.ts +1 -1
  86. package/dist/types/views/EmployeeEmploymentTable.vue.d.ts +1 -1
  87. package/dist/types/views/RoleAccountGrantDrawer.vue.d.ts +2 -2
  88. package/dist/types/views/RoleDetailWorkspaceView.vue.d.ts +1 -1
  89. package/dist/types/views/RoleEmploymentGrantDrawer.vue.d.ts +2 -2
  90. package/dist/types/views/RoleGroupMemberSelector.vue.d.ts +1 -1
  91. package/dist/types/views/RoleManagementView.vue.d.ts +1 -1
  92. package/dist/types/views/UserDetailContent.vue.d.ts +2 -2
  93. package/dist/types/views/applicationManagementState.d.ts +3 -3
  94. package/dist/types/views/departmentManagementState.d.ts +3 -3
  95. package/dist/types/views/dictionaryManagementState.d.ts +4 -4
  96. package/dist/types/views/employeeDetailWorkspaceSession.d.ts +1 -1
  97. package/dist/types/views/fieldSpecManagementState.d.ts +3 -3
  98. package/dist/types/views/fieldUiControlManagementState.d.ts +3 -3
  99. package/dist/types/views/menuManagementState.d.ts +7 -7
  100. package/dist/types/views/metadataOrchestrationState.d.ts +1 -1
  101. package/dist/types/views/moduleManagementState.d.ts +5 -5
  102. package/dist/types/views/organizationManagementState.d.ts +4 -4
  103. package/dist/types/views/positionManagementState.d.ts +4 -4
  104. package/dist/types/views/roleAuthorizationWorkspaceSession.d.ts +1 -1
  105. package/dist/types/views/roleDetailWorkspaceSession.d.ts +1 -1
  106. package/dist/types/views/roleDetailWorkspaceView.d.ts +1 -1
  107. package/dist/types/views/roleGrantClient.d.ts +2 -2
  108. package/dist/types/views/systemUserDetailWorkspaceSession.d.ts +1 -1
  109. package/dist/types/views/tenantManagementState.d.ts +3 -3
  110. package/dist/types/views/useEmployeeEmploymentRows.d.ts +2 -2
  111. package/dist/types/views/useUserSessionRows.d.ts +3 -3
  112. package/dist/types/views/userDetailWorkspaceSession.d.ts +1 -1
  113. package/dist/types/vue-ui-antdv/components/ActionBar.vue.d.ts +1 -1
  114. package/dist/types/vue-ui-antdv/components/DictionarySelect.vue.d.ts +1 -1
  115. package/dist/types/vue-ui-antdv/components/ReferenceSelect.vue.d.ts +1 -1
  116. package/dist/types/vue-ui-antdv/components/UiForm.vue.d.ts +1 -1
  117. package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +1 -1
  118. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
  119. package/dist/types/vue-ui-antdv/components/UiTable.vue.d.ts +1 -1
  120. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
  121. package/dist/types/vue-ui-antdv/dictionaries.d.ts +1 -1
  122. package/dist/types/vue-ui-antdv/references.d.ts +1 -1
  123. package/dist/types/vue-ui-antdv/registry.d.ts +1 -1
  124. package/dist/types/web-core/actionResult.d.ts +1 -2
  125. package/dist/types/web-core/clients.d.ts +1 -1
  126. package/dist/types/web-core/dataChanges.d.ts +1 -1
  127. package/dist/types/web-core/errors.d.ts +1 -1
  128. package/dist/types/web-core/http.d.ts +1 -1
  129. package/dist/types/web-core/mock.d.ts +1 -1
  130. package/dist/types/web-core/module/runtimeContext.d.ts +1 -1
  131. package/dist/types/web-core/module/staticModuleClient.d.ts +1 -1
  132. package/dist/types/web-core/realtime.d.ts +1 -1
  133. package/dist/{useUserSessionRows-CLM0ZvAF.js → useUserSessionRows-DHsyr2Vy.js} +2 -2
  134. package/dist/{workspaceViewSessions-WsJU3OS7.js → workspaceViewSessions-BMbyO9O4.js} +403 -410
  135. package/package.json +1 -1
  136. package/dist/SystemUserManagementView-BVS5moV5.js +0 -761
  137. package/dist/UserManagementView-BR_Jz8O-.js +0 -965
@@ -1,41 +1,41 @@
1
- import { Bt as e, C as t, Ft as n, G as r, Ht as i, It as a, Jt as o, Lt as s, Pt as c, Qt as l, Rt as u, Wt as d, Yt as f, Z as p, cn as m, nn as h, tn as g, y as _ } from "./platform-components-bC1gwhic.js";
2
- import { Fragment as v, computed as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createTextVNode as w, createVNode as T, defineAsyncComponent as E, defineComponent as D, inject as O, nextTick as k, normalizeClass as A, normalizeStyle as j, onMounted as M, openBlock as N, provide as P, ref as F, renderList as I, renderSlot as L, resolveComponent as R, toDisplayString as z, toValue as B, unref as V, vShow as H, withCtx as U, withDirectives as ee, withModifiers as W } from "vue";
1
+ import { $t as e, Bt as t, C as n, G as r, Ht as i, It as a, Jt as o, Lt as s, Pt as c, Rt as l, Wt as u, Z as d, en as f, on as p, y as m } from "./platform-components-CgMBopmF.js";
2
+ import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as x, createVNode as S, defineAsyncComponent as C, defineComponent as w, inject as T, nextTick as ee, normalizeClass as E, normalizeStyle as D, onMounted as O, openBlock as k, provide as A, ref as j, renderList as M, renderSlot as N, resolveComponent as P, toDisplayString as F, toValue as I, unref as L, vShow as te, withCtx as R, withDirectives as z, withModifiers as B } from "vue";
3
3
  //#region src/dynamic-page-runtime/DynamicModuleHost.vue?vue&type=script&setup=true&lang.ts
4
- var G = {
4
+ var V = {
5
5
  key: 0,
6
6
  class: "dynamic-module-workspace"
7
- }, te = {
7
+ }, ne = {
8
8
  key: 0,
9
9
  class: "view-code"
10
- }, ne = ["disabled"], re = {
10
+ }, re = ["disabled"], H = {
11
11
  key: 1,
12
12
  class: "empty-detail"
13
13
  }, ie = {
14
14
  key: 1,
15
15
  class: "dynamic-module-unsupported"
16
- }, ae = /*#__PURE__*/ g(/* @__PURE__ */ D({
16
+ }, U = /*#__PURE__*/ e(/* @__PURE__ */ w({
17
17
  name: "DynamicModuleHost",
18
18
  __name: "DynamicModuleHost",
19
19
  props: { descriptor: {} },
20
20
  setup(e) {
21
- let n = e, i = m({ moduleAlias: n.descriptor.target.moduleAlias }), a = F(), o = F(), s = F("view"), l = F(), u = F(p(void 0)), d = F(0), f = F(!1), h = y(() => n.descriptor.title ?? i.runtime.snapshot()?.title ?? i.moduleAlias), g = y(() => s.value === "create" ? `新建${h.value}` : W(o.value ?? a.value) ?? "记录详情"), v = y(() => n.descriptor.target.pageMode ?? "LIST"), w = y(() => v.value === "LIST"), E = y(() => w.value ? n.descriptor.target.defaultUiConfigId : void 0), D = y(() => `动态${v.value}入口暂未接入运行器`);
22
- M(O);
23
- async function O() {
24
- if (!w.value) return;
25
- let e = await i.runtime.ready, t = k(e.uiDescriptor?.views ?? []);
26
- l.value = t?.viewCode, u.value = p(e.uiDescriptor, t?.viewCode);
21
+ let t = e, i = p({ moduleAlias: t.descriptor.target.moduleAlias }), a = j(), o = j(), s = j("view"), l = j(), u = j(d(void 0)), f = j(0), h = j(!1), x = g(() => t.descriptor.title ?? i.runtime.snapshot()?.title ?? i.moduleAlias), C = g(() => s.value === "create" ? `新建${x.value}` : G(o.value ?? a.value) ?? "记录详情"), w = g(() => t.descriptor.target.pageMode ?? "LIST"), T = g(() => w.value === "LIST"), ee = g(() => T.value ? t.descriptor.target.defaultUiConfigId : void 0), E = g(() => `动态${w.value}入口暂未接入运行器`);
22
+ O(D);
23
+ async function D() {
24
+ if (!T.value) return;
25
+ let e = await i.runtime.ready, t = A(e.uiDescriptor?.views ?? []);
26
+ l.value = t?.viewCode, u.value = d(e.uiDescriptor, t?.viewCode);
27
27
  }
28
- function k(e) {
28
+ function A(e) {
29
29
  return e.find((e) => e.viewKind === "FORM");
30
30
  }
31
- function A(e) {
31
+ function M(e) {
32
32
  if (a.value) {
33
33
  a.value = e.find((e) => e.id === a.value?.id) ?? a.value, s.value === "view" && (o.value = a.value);
34
34
  return;
35
35
  }
36
36
  a.value = e[0], o.value = e[0];
37
37
  }
38
- function j(e) {
38
+ function N(e) {
39
39
  a.value = e, o.value = e, s.value = "view";
40
40
  }
41
41
  function P(e, t) {
@@ -47,19 +47,19 @@ var G = {
47
47
  function I() {
48
48
  o.value = { enabled: !0 }, s.value = "create";
49
49
  }
50
- async function L(e) {
50
+ async function te(e) {
51
51
  let t = e.id == null ? void 0 : String(e.id);
52
52
  t && (o.value = await i.crud.view(t), a.value = o.value, s.value = "edit");
53
53
  }
54
- async function R() {
54
+ async function z() {
55
55
  let e = o.value;
56
- if (!(!e || f.value)) {
57
- f.value = !0;
56
+ if (!(!e || h.value)) {
57
+ h.value = !0;
58
58
  try {
59
59
  let t = e.id == null ? void 0 : String(e.id), n = s.value === "edit" && t ? await i.crud.update(t, e) : await i.crud.insert(e);
60
- a.value = n.record, o.value = n.record, s.value = "view", d.value += 1;
60
+ a.value = n.record, o.value = n.record, s.value = "view", f.value += 1;
61
61
  } finally {
62
- f.value = !1;
62
+ h.value = !1;
63
63
  }
64
64
  }
65
65
  }
@@ -67,38 +67,38 @@ var G = {
67
67
  let t = e.id == null ? void 0 : String(e.id), n = typeof e.version == "number" ? e.version : void 0;
68
68
  !t || n === void 0 || await c({
69
69
  title: "删除记录",
70
- content: `确认删除「${W(e) ?? t}」?`,
70
+ content: `确认删除「${G(e) ?? t}」?`,
71
71
  okText: "删除",
72
72
  danger: !0
73
- }) && (await i.crud.delete(t, { version: n }), a.value?.id === t && (a.value = void 0, o.value = void 0), d.value += 1);
73
+ }) && (await i.crud.delete(t, { version: n }), a.value?.id === t && (a.value = void 0, o.value = void 0), f.value += 1);
74
74
  }
75
- function H(e) {
75
+ function U(e) {
76
76
  e.key === "create" && I();
77
77
  }
78
- function ee(e, t) {
79
- e.key === "edit" && L(t), e.key === "delete" && B(t);
78
+ function W(e, t) {
79
+ e.key === "edit" && te(t), e.key === "delete" && B(t);
80
80
  }
81
- function W(e) {
81
+ function G(e) {
82
82
  let t = e?.title ?? e?.name ?? e?.code ?? e?.id;
83
83
  return t == null ? void 0 : String(t);
84
84
  }
85
- return (n, c) => w.value ? (N(), S("section", G, [T(V(_), {
85
+ return (t, c) => T.value ? (k(), y("section", V, [S(L(m), {
86
86
  class: "dynamic-list",
87
- context: V(i),
88
- title: h.value,
87
+ context: L(i),
88
+ title: x.value,
89
89
  "selected-key": a.value?.id,
90
- "reload-key": d.value,
90
+ "reload-key": f.value,
91
91
  "standard-crud-actions": !0,
92
92
  "standard-crud-row-actions": !0,
93
- "ui-config-id": E.value,
93
+ "ui-config-id": ee.value,
94
94
  "query-template-id": e.descriptor.target.defaultQueryTemplateId,
95
95
  "quick-search-placeholder": "搜索动态记录",
96
96
  "empty-description": "暂无动态记录",
97
- onLoaded: A,
98
- onSelect: j,
99
- onRowDblclick: j,
100
- onAction: H,
101
- onRowAction: ee
97
+ onLoaded: M,
98
+ onSelect: N,
99
+ onRowDblclick: N,
100
+ onAction: U,
101
+ onRowAction: W
102
102
  }, null, 8, [
103
103
  "context",
104
104
  "title",
@@ -106,30 +106,30 @@ var G = {
106
106
  "reload-key",
107
107
  "ui-config-id",
108
108
  "query-template-id"
109
- ]), T(V(r), {
109
+ ]), S(L(r), {
110
110
  class: "dynamic-detail",
111
- title: g.value
111
+ title: C.value
112
112
  }, {
113
- actions: U(() => [
114
- l.value ? (N(), S("span", te, z(l.value), 1)) : x("v-if", !0),
115
- a.value && s.value === "view" ? (N(), S("button", {
113
+ actions: R(() => [
114
+ l.value ? (k(), y("span", ne, F(l.value), 1)) : v("v-if", !0),
115
+ a.value && s.value === "view" ? (k(), y("button", {
116
116
  key: 1,
117
117
  type: "button",
118
- onClick: c[0] ||= (e) => L(a.value)
119
- }, " 编辑 ")) : x("v-if", !0),
120
- s.value === "view" ? x("v-if", !0) : (N(), S("button", {
118
+ onClick: c[0] ||= (e) => te(a.value)
119
+ }, " 编辑 ")) : v("v-if", !0),
120
+ s.value === "view" ? v("v-if", !0) : (k(), y("button", {
121
121
  key: 2,
122
122
  type: "button",
123
- disabled: f.value,
124
- onClick: R
125
- }, z(f.value ? "保存中" : "保存"), 9, ne))
123
+ disabled: h.value,
124
+ onClick: z
125
+ }, F(h.value ? "保存中" : "保存"), 9, re))
126
126
  ]),
127
- default: U(() => [o.value ? (N(), b(V(t), {
127
+ default: R(() => [o.value ? (k(), _(L(n), {
128
128
  key: 0,
129
129
  class: "dynamic-form",
130
130
  record: o.value,
131
131
  fields: u.value,
132
- "option-context": V(i),
132
+ "option-context": L(i),
133
133
  disabled: s.value === "view",
134
134
  "onUpdate:field": P
135
135
  }, null, 8, [
@@ -137,22 +137,22 @@ var G = {
137
137
  "fields",
138
138
  "option-context",
139
139
  "disabled"
140
- ])) : (N(), S("p", re, "请选择一条动态记录"))]),
140
+ ])) : (k(), y("p", H, "请选择一条动态记录"))]),
141
141
  _: 1
142
- }, 8, ["title"])])) : (N(), S("section", ie, [C("h2", null, z(h.value), 1), C("p", null, z(D.value), 1)]));
142
+ }, 8, ["title"])])) : (k(), y("section", ie, [b("h2", null, F(x.value), 1), b("p", null, F(E.value), 1)]));
143
143
  }
144
- }), [["__scopeId", "data-v-e3b1a58c"]]);
144
+ }), [["__scopeId", "data-v-9eef6d2d"]]);
145
145
  //#endregion
146
146
  //#region src/dynamic-page-runtime/actionReactions.ts
147
- function oe(e, t) {
148
- let n = se(e);
149
- return n === "none" ? [] : n === "record" ? [K(t)] : n === "list" ? [ce(t)] : [ce(t), K(t)];
147
+ function W(e, t) {
148
+ let n = G(e);
149
+ return n === "none" ? [] : n === "record" ? [K(t)] : n === "list" ? [ae(t)] : [ae(t), K(t)];
150
150
  }
151
- function se(e) {
151
+ function G(e) {
152
152
  let t = e.refresh;
153
153
  return t === "record" || t === "list" || t === "all" ? t : "none";
154
154
  }
155
- function ce(e) {
155
+ function ae(e) {
156
156
  return {
157
157
  type: "refresh-list",
158
158
  payload: { moduleAlias: e.moduleAlias }
@@ -169,46 +169,39 @@ function K(e) {
169
169
  }
170
170
  //#endregion
171
171
  //#region src/dynamic-page-runtime/DynamicModulePage.vue?vue&type=script&setup=true&lang.ts
172
- var le = { class: "runtime-page" }, ue = { class: "section-header" }, de = { class: "runtime-grid" }, fe = { class: "panel" }, pe = { class: "panel" }, me = { class: "panel" }, he = /* @__PURE__ */ D({
172
+ var oe = { class: "runtime-page" }, se = { class: "section-header" }, ce = { class: "runtime-actions" }, le = ["onClick"], ue = { class: "runtime-grid" }, de = { class: "panel" }, fe = { class: "panel" }, pe = { class: "panel" }, me = /* @__PURE__ */ w({
173
173
  name: "DynamicModulePage",
174
174
  __name: "DynamicModulePage",
175
175
  props: { descriptor: {} },
176
176
  setup(e) {
177
- let t = e, r = F({ ...t.descriptor.initialRecord }), i = F("none"), a = y(() => ({
177
+ let t = e, n = j({ ...t.descriptor.initialRecord }), r = j("none"), i = g(() => ({
178
178
  moduleAlias: t.descriptor.moduleAlias,
179
- values: r.value,
179
+ values: n.value,
180
180
  children: {},
181
181
  originContext: { source: "dynamic-runtime-skeleton" }
182
182
  }));
183
- function s(e) {
184
- let n = oe(e, {
183
+ function a(e) {
184
+ let i = W(e, {
185
185
  moduleAlias: t.descriptor.moduleAlias,
186
- recordId: typeof r.value.id == "string" ? r.value.id : void 0
186
+ recordId: typeof n.value.id == "string" ? n.value.id : void 0
187
187
  });
188
- i.value = `${e.actionCode}:${n.map((e) => e.type).join(",") || "none"}`;
188
+ r.value = `${e.actionCode}:${i.map((e) => e.type).join(",") || "none"}`;
189
189
  }
190
- return (t, c) => (N(), S("section", le, [
191
- C("header", ue, [C("div", null, [C("h2", null, z(e.descriptor.title), 1), C("p", null, z(e.descriptor.moduleAlias), 1)]), T(V(l), {
192
- actions: e.descriptor.actions,
193
- onExecute: s
194
- }, null, 8, ["actions"])]),
195
- C("div", de, [C("article", fe, [c[1] ||= C("h3", null, "动态表单", -1), T(V(o), {
196
- modelValue: r.value,
197
- "onUpdate:modelValue": c[0] ||= (e) => r.value = e,
198
- contract: e.descriptor.form,
199
- "submit-text": "动态保存"
200
- }, null, 8, ["modelValue", "contract"])]), C("article", pe, [c[2] ||= C("h3", null, "动态列表", -1), T(V(n), {
201
- contract: e.descriptor.list,
202
- rows: e.descriptor.records
203
- }, null, 8, ["contract", "rows"])])]),
204
- C("article", me, [
205
- c[4] ||= C("h3", null, "运行态输出", -1),
206
- C("p", null, [c[3] ||= w(" last action: ", -1), C("code", null, z(i.value), 1)]),
207
- C("pre", null, z(JSON.stringify(a.value, null, 2)), 1)
190
+ return (t, o) => (k(), y("section", oe, [
191
+ b("header", se, [b("div", null, [b("h2", null, F(e.descriptor.title), 1), b("p", null, F(e.descriptor.moduleAlias), 1)]), b("div", ce, [(k(!0), y(h, null, M(e.descriptor.actions, (e) => (k(), y("button", {
192
+ key: e.actionCode,
193
+ type: "button",
194
+ onClick: (t) => a(e)
195
+ }, F(e.title), 9, le))), 128))])]),
196
+ b("div", ue, [b("article", de, [o[0] ||= b("h3", null, "动态表单", -1), b("dl", null, [(k(!0), y(h, null, M(e.descriptor.form.fields, (e) => (k(), y(h, { key: e.name }, [b("dt", null, F(e.label), 1), b("dd", null, F(n.value[e.name] ?? "—"), 1)], 64))), 128))])]), b("article", fe, [o[1] ||= b("h3", null, "动态列表", -1), b("table", null, [b("thead", null, [b("tr", null, [(k(!0), y(h, null, M(e.descriptor.list.columns, (e) => (k(), y("th", { key: e.key }, F(e.title), 1))), 128))])]), b("tbody", null, [(k(!0), y(h, null, M(e.descriptor.records, (t) => (k(), y("tr", { key: String(t.id) }, [(k(!0), y(h, null, M(e.descriptor.list.columns, (e) => (k(), y("td", { key: e.key }, F(t[e.key] ?? "—"), 1))), 128))]))), 128))])])])]),
197
+ b("article", pe, [
198
+ o[3] ||= b("h3", null, "运行态输出", -1),
199
+ b("p", null, [o[2] ||= x(" last action: ", -1), b("code", null, F(r.value), 1)]),
200
+ b("pre", null, F(JSON.stringify(i.value, null, 2)), 1)
208
201
  ])
209
202
  ]));
210
203
  }
211
- }), ge = {
204
+ }), he = {
212
205
  moduleAlias: "crm.customer",
213
206
  title: "客户档案",
214
207
  form: { fields: [
@@ -318,10 +311,10 @@ var le = { class: "runtime-page" }, ue = { class: "section-header" }, de = { cla
318
311
  industry: "manufacturing",
319
312
  level: "key"
320
313
  }]
321
- }, _e = ["disabled"], ve = { key: 0 }, ye = {
314
+ }, ge = ["disabled"], _e = { key: 0 }, ve = {
322
315
  key: 0,
323
316
  class: "deep-children"
324
- }, be = /*#__PURE__*/ g(/* @__PURE__ */ D({
317
+ }, ye = /*#__PURE__*/ e(/* @__PURE__ */ w({
325
318
  name: "WorkbenchMenuTree",
326
319
  __name: "WorkbenchMenuTree",
327
320
  props: {
@@ -330,7 +323,7 @@ var le = { class: "runtime-page" }, ue = { class: "section-header" }, de = { cla
330
323
  },
331
324
  emits: ["selectMenu"],
332
325
  setup(e, { emit: t }) {
333
- let n = e, r = t, i = y(() => n.level ?? 0);
326
+ let n = e, r = t, i = g(() => n.level ?? 0);
334
327
  function a() {
335
328
  n.node.target && r("selectMenu", n.node.record, n.node.target);
336
329
  }
@@ -338,32 +331,32 @@ var le = { class: "runtime-page" }, ue = { class: "section-header" }, de = { cla
338
331
  r("selectMenu", e, t);
339
332
  }
340
333
  return (t, n) => {
341
- let r = R("WorkbenchMenuTree", !0);
342
- return N(), S("li", {
334
+ let r = P("WorkbenchMenuTree", !0);
335
+ return k(), y("li", {
343
336
  class: "deep-node",
344
- style: j({ "--depth": i.value })
345
- }, [C("button", {
346
- class: A(["deep-node-button", {
337
+ style: D({ "--depth": i.value })
338
+ }, [b("button", {
339
+ class: E(["deep-node-button", {
347
340
  navigable: e.node.navigable,
348
341
  branch: e.node.hasChildren
349
342
  }]),
350
343
  type: "button",
351
344
  disabled: !e.node.navigable && !e.node.hasChildren,
352
345
  onClick: a
353
- }, [C("span", null, z(e.node.record.title), 1), e.node.navigable ? (N(), S("small", ve, "打开")) : x("v-if", !0)], 10, _e), e.node.hasChildren ? (N(), S("ul", ye, [(N(!0), S(v, null, I(e.node.children, (e) => (N(), b(r, {
346
+ }, [b("span", null, F(e.node.record.title), 1), e.node.navigable ? (k(), y("small", _e, "打开")) : v("v-if", !0)], 10, ge), e.node.hasChildren ? (k(), y("ul", ve, [(k(!0), y(h, null, M(e.node.children, (e) => (k(), _(r, {
354
347
  key: e.record.id,
355
348
  node: e,
356
349
  level: i.value + 1,
357
350
  onSelectMenu: o
358
- }, null, 8, ["node", "level"]))), 128))])) : x("v-if", !0)], 4);
351
+ }, null, 8, ["node", "level"]))), 128))])) : v("v-if", !0)], 4);
359
352
  };
360
353
  }
361
- }), [["__scopeId", "data-v-e4338872"]]), xe = [], q = "_muyunMenuId", J = "_muyunTitle", Y = "_muyunEntryParams", Se = [
354
+ }), [["__scopeId", "data-v-e4338872"]]), be = [], q = "_muyunMenuId", J = "_muyunTitle", Y = "_muyunEntryParams", xe = [
362
355
  "entryParamsJson",
363
356
  "menuId",
364
357
  "title"
365
358
  ];
366
- function Ce(e) {
359
+ function Se(e) {
367
360
  if (e.enabled !== !1 && !(!e.openMode || !e.moduleAlias)) return e.externalUrl ? {
368
361
  menuId: e.id,
369
362
  menuType: "link",
@@ -389,13 +382,13 @@ function Ce(e) {
389
382
  entryParamsJson: e.entryParamsJson
390
383
  };
391
384
  }
392
- function we(e) {
385
+ function Ce(e) {
393
386
  return e.openMode === "tab";
394
387
  }
395
- function Te(e) {
388
+ function we(e) {
396
389
  return e.openMode === "window";
397
390
  }
398
- function Ee(e, t = {}) {
391
+ function Te(e, t = {}) {
399
392
  if (e.menuType === "module") {
400
393
  let n = t.businessModuleRoutes?.[e.moduleAlias];
401
394
  return n ? {
@@ -403,7 +396,7 @@ function Ee(e, t = {}) {
403
396
  openMode: "workbench-route",
404
397
  hostType: "business-route-host",
405
398
  title: t.title,
406
- layout: Fe({ route: n }, t),
399
+ layout: X({ route: n }, t),
407
400
  menuId: e.menuId,
408
401
  target: {
409
402
  route: n,
@@ -437,7 +430,7 @@ function Ee(e, t = {}) {
437
430
  };
438
431
  }
439
432
  if (e.menuType === "route") {
440
- let n = Ne(e.route, e.query, e.moduleAlias), r = Pe(n, t) ? "business-route" : "platform-route", i = {
433
+ let n = Me(e.route, e.query, e.moduleAlias), r = Ne(n, t) ? "business-route" : "platform-route", i = {
441
434
  openMode: "workbench-route",
442
435
  title: t.title,
443
436
  menuId: e.menuId,
@@ -454,7 +447,7 @@ function Ee(e, t = {}) {
454
447
  ...i,
455
448
  pageType: r,
456
449
  hostType: "business-route-host",
457
- layout: Fe(n, t)
450
+ layout: X(n, t)
458
451
  } : {
459
452
  ...i,
460
453
  pageType: r,
@@ -493,14 +486,14 @@ function Ee(e, t = {}) {
493
486
  }
494
487
  };
495
488
  }
496
- function De(e, t, n = {}) {
497
- if (!we(t)) throw Error(`WINDOW menu target cannot be opened as a workbench tab: ${t.menuId}`);
498
- let r = Ee(t, {
489
+ function Ee(e, t, n = {}) {
490
+ if (!Ce(t)) throw Error(`WINDOW menu target cannot be opened as a workbench tab: ${t.menuId}`);
491
+ let r = Te(t, {
499
492
  ...n,
500
493
  title: n.title ?? e.title
501
494
  });
502
495
  return {
503
- key: ke(r),
496
+ key: Oe(r),
504
497
  title: e.title,
505
498
  target: t,
506
499
  pageDescriptor: r,
@@ -508,24 +501,24 @@ function De(e, t, n = {}) {
508
501
  closable: !0
509
502
  };
510
503
  }
511
- function Oe(e) {
504
+ function De(e) {
512
505
  for (let t of e) {
513
- let e = Ce(t.record);
514
- if (e && we(e)) return t.record;
515
- let n = Oe(t.children);
506
+ let e = Se(t.record);
507
+ if (e && Ce(e)) return t.record;
508
+ let n = De(t.children);
516
509
  if (n) return n;
517
510
  }
518
511
  }
519
- function ke(e) {
520
- return e.tabPolicy.identity === "by-menu" && e.menuId ? `menu:${e.menuId}` : e.tabPolicy.identity === "by-params" && e.params ? `${e.menuId ? `menu:${e.menuId}` : `${e.pageType}:${Le(e)}`}:${ze(e.params)}` : `${e.pageType}:${Le(e)}`;
512
+ function Oe(e) {
513
+ return e.tabPolicy.identity === "by-menu" && e.menuId ? `menu:${e.menuId}` : e.tabPolicy.identity === "by-params" && e.params ? `${e.menuId ? `menu:${e.menuId}` : `${e.pageType}:${Fe(e)}`}:${Le(e.params)}` : `${e.pageType}:${Fe(e)}`;
521
514
  }
522
- function Ae(e) {
523
- if (e.pageType === "platform-route" || e.pageType === "business-route") return e.target.route ? Re(e.target.route, {
515
+ function ke(e) {
516
+ if (e.pageType === "platform-route" || e.pageType === "business-route") return e.target.route ? Ie(e.target.route, {
524
517
  ...e.target.query ?? e.params,
525
518
  [Y]: e.entryParamsJson,
526
519
  [q]: e.menuId,
527
520
  [J]: e.title
528
- }) : Re("/platform/workspace", {
521
+ }) : Ie("/platform/workspace", {
529
522
  ...e.target.query ?? e.params ?? {},
530
523
  pageType: e.pageType,
531
524
  routeName: e.target.routeName,
@@ -535,7 +528,7 @@ function Ae(e) {
535
528
  });
536
529
  if (e.pageType === "dynamic-module") {
537
530
  let t = e.target.pageMode?.toLowerCase() ?? "list";
538
- return Re(`/platform/dynamic/${e.target.moduleAlias}/${t}`, {
531
+ return Ie(`/platform/dynamic/${e.target.moduleAlias}/${t}`, {
539
532
  ...e.params,
540
533
  [Y]: e.entryParamsJson,
541
534
  uiConfigId: e.target.defaultUiConfigId,
@@ -544,41 +537,41 @@ function Ae(e) {
544
537
  [J]: e.title
545
538
  });
546
539
  }
547
- return e.pageType === "remote-url" || e.pageType === "external-link" ? Re("/platform/external", {
540
+ return e.pageType === "remote-url" || e.pageType === "external-link" ? Ie("/platform/external", {
548
541
  url: e.target.url,
549
542
  mode: e.openMode,
550
543
  [q]: e.menuId,
551
544
  [J]: e.title
552
- }) : Je(e);
545
+ }) : Ke(e);
553
546
  }
554
- function je(e, t = {}) {
555
- let n = Ue(e), r = n.pathname, i = Ge(n.searchParams);
547
+ function Ae(e, t = {}) {
548
+ let n = Ve(e), r = n.pathname, i = Ue(n.searchParams);
556
549
  if (r === "/platform/dynamic") throw Error(`Invalid dynamic module URL: ${e}`);
557
550
  if (r.startsWith("/platform/dynamic/")) {
558
551
  let [, , , n, a] = r.split("/");
559
552
  if (!n) throw Error(`Invalid dynamic module URL: ${e}`);
560
- let o = We(i, [
561
- ...Se,
553
+ let o = He(i, [
554
+ ...xe,
562
555
  Y,
563
556
  q,
564
557
  J,
565
558
  "queryTemplateId",
566
559
  "uiConfigId"
567
- ]), s = Z(i, q, "menuId");
560
+ ]), s = Q(i, q, "menuId");
568
561
  return {
569
562
  pageType: "dynamic-module",
570
563
  openMode: "dynamic-runner",
571
564
  hostType: "dynamic-module-host",
572
- title: Z(i, J, "title") ?? t.title,
565
+ title: Q(i, J, "title") ?? t.title,
573
566
  menuId: s,
574
567
  target: {
575
568
  moduleAlias: decodeURIComponent(n ?? ""),
576
- pageMode: qe(a),
577
- defaultUiConfigId: X(i.uiConfigId),
578
- defaultQueryTemplateId: X(i.queryTemplateId)
569
+ pageMode: Ge(a),
570
+ defaultUiConfigId: Z(i.uiConfigId),
571
+ defaultQueryTemplateId: Z(i.queryTemplateId)
579
572
  },
580
573
  params: o,
581
- entryParamsJson: Z(i, Y, "entryParamsJson"),
574
+ entryParamsJson: Q(i, Y, "entryParamsJson"),
582
575
  tabPolicy: s ? {
583
576
  identity: "by-menu",
584
577
  closable: !0,
@@ -591,9 +584,9 @@ function je(e, t = {}) {
591
584
  };
592
585
  }
593
586
  if (r === "/platform/external") {
594
- let n = X(i.url) ?? "";
587
+ let n = Z(i.url) ?? "";
595
588
  if (!n) throw Error(`Invalid external page URL: ${e}`);
596
- let r = X(i.mode) === "new-window" ? "new-window" : "iframe", a = Z(i, q, "menuId"), o = a ? {
589
+ let r = Z(i.mode) === "new-window" ? "new-window" : "iframe", a = Q(i, q, "menuId"), o = a ? {
597
590
  identity: "by-menu",
598
591
  closable: !0
599
592
  } : {
@@ -604,7 +597,7 @@ function je(e, t = {}) {
604
597
  pageType: "remote-url",
605
598
  openMode: r,
606
599
  hostType: "external-page-host",
607
- title: Z(i, J, "title") ?? t.title,
600
+ title: Q(i, J, "title") ?? t.title,
608
601
  menuId: a,
609
602
  target: { url: n },
610
603
  tabPolicy: o
@@ -612,7 +605,7 @@ function je(e, t = {}) {
612
605
  pageType: "external-link",
613
606
  openMode: r,
614
607
  hostType: "external-page-host",
615
- title: Z(i, J, "title") ?? t.title,
608
+ title: Q(i, J, "title") ?? t.title,
616
609
  menuId: a,
617
610
  target: { url: n },
618
611
  tabPolicy: o
@@ -621,19 +614,19 @@ function je(e, t = {}) {
621
614
  if (r === "/platform/workspace" && !i.routeName && !i.pageKey) throw Error(`Invalid workspace URL: ${e}`);
622
615
  if (r === "/platform/workspace" && (i.routeName || i.pageKey)) {
623
616
  let e = {
624
- routeName: X(i.routeName),
625
- pageKey: X(i.pageKey),
626
- query: We(i, [
627
- ...Se,
617
+ routeName: Z(i.routeName),
618
+ pageKey: Z(i.pageKey),
619
+ query: He(i, [
620
+ ...xe,
628
621
  q,
629
622
  J,
630
623
  "pageType",
631
624
  "routeName",
632
625
  "pageKey"
633
626
  ])
634
- }, n = X(i.pageType) === "business-route" ? "business-route" : "platform-route", r = Z(i, q, "menuId"), a = {
627
+ }, n = Z(i.pageType) === "business-route" ? "business-route" : "platform-route", r = Q(i, q, "menuId"), a = {
635
628
  openMode: "workbench-route",
636
- title: Z(i, J, "title") ?? t.title,
629
+ title: Q(i, J, "title") ?? t.title,
637
630
  menuId: r,
638
631
  target: e,
639
632
  params: e.query,
@@ -651,27 +644,27 @@ function je(e, t = {}) {
651
644
  ...a,
652
645
  pageType: "business-route",
653
646
  hostType: "business-route-host",
654
- layout: Fe(e, t)
647
+ layout: X(e, t)
655
648
  } : {
656
649
  ...a,
657
650
  pageType: "platform-route",
658
651
  hostType: "platform-route-host"
659
652
  };
660
653
  }
661
- let a = Ie(r, t) ? "business-route" : "platform-route", o = Z(i, q), s = We(i, [
654
+ let a = Pe(r, t) ? "business-route" : "platform-route", o = Q(i, q), s = He(i, [
662
655
  Y,
663
656
  q,
664
657
  J
665
658
  ]), c = {
666
659
  openMode: "workbench-route",
667
- title: Z(i, J) ?? t.title,
660
+ title: Q(i, J) ?? t.title,
668
661
  menuId: o,
669
662
  target: {
670
663
  route: r,
671
664
  query: s
672
665
  },
673
666
  params: s,
674
- entryParamsJson: Z(i, Y),
667
+ entryParamsJson: Q(i, Y),
675
668
  tabPolicy: o ? {
676
669
  identity: "by-menu",
677
670
  closable: !0,
@@ -686,21 +679,21 @@ function je(e, t = {}) {
686
679
  ...c,
687
680
  pageType: "business-route",
688
681
  hostType: "business-route-host",
689
- layout: Fe(c.target, t)
682
+ layout: X(c.target, t)
690
683
  } : {
691
684
  ...c,
692
685
  pageType: "platform-route",
693
686
  hostType: "platform-route-host"
694
687
  };
695
688
  }
696
- function Me(e, t = {}) {
689
+ function je(e, t = {}) {
697
690
  try {
698
- return je(e, t);
691
+ return Ae(e, t);
699
692
  } catch {
700
693
  return;
701
694
  }
702
695
  }
703
- function Ne(e, t, n) {
696
+ function Me(e, t, n) {
704
697
  return e.startsWith("/") ? {
705
698
  route: e,
706
699
  moduleAlias: n,
@@ -715,61 +708,61 @@ function Ne(e, t, n) {
715
708
  query: t
716
709
  };
717
710
  }
718
- function Pe(e, t) {
719
- return (e.route ? Ie(e.route, t) : !1) || (e.routeName ? t.businessRouteNames?.includes(e.routeName) === !0 : !1) || (e.pageKey ? t.businessPageKeys?.includes(e.pageKey) === !0 : !1);
711
+ function Ne(e, t) {
712
+ return (e.route ? Pe(e.route, t) : !1) || (e.routeName ? t.businessRouteNames?.includes(e.routeName) === !0 : !1) || (e.pageKey ? t.businessPageKeys?.includes(e.pageKey) === !0 : !1);
720
713
  }
721
- function Fe(e, t) {
714
+ function X(e, t) {
722
715
  return e.route ? t.businessRouteLayouts?.[e.route] : void 0;
723
716
  }
724
- function Ie(e, t) {
725
- let n = He(e, t.businessRoutePrefixes ?? xe);
717
+ function Pe(e, t) {
718
+ let n = Be(e, t.businessRoutePrefixes ?? be);
726
719
  if (n < 0) return !1;
727
- let r = He(e, t.platformRoutePrefixes ?? Ke);
720
+ let r = Be(e, t.platformRoutePrefixes ?? We);
728
721
  return r < 0 || n > r;
729
722
  }
730
- function Le(e) {
723
+ function Fe(e) {
731
724
  return e.pageType === "platform-route" || e.pageType === "business-route" ? e.target.route ?? e.target.routeName ?? e.target.pageKey ?? "route" : e.pageType === "dynamic-module" ? [e.target.moduleAlias, e.target.pageMode ?? "LIST"].join(":") : e.target.url;
732
725
  }
733
- function Re(e, t) {
734
- let n = t ? ze(t) : "";
726
+ function Ie(e, t) {
727
+ let n = t ? Le(t) : "";
735
728
  return n ? `${e}${e.includes("?") ? "&" : "?"}${n}` : e;
736
729
  }
737
- function ze(e) {
730
+ function Le(e) {
738
731
  let t = new URLSearchParams();
739
732
  for (let n of Object.keys(e).sort()) {
740
733
  let r = e[n];
741
734
  if (Array.isArray(r)) {
742
- for (let e of r) Be(t, n, e);
735
+ for (let e of r) Re(t, n, e);
743
736
  continue;
744
737
  }
745
- Be(t, n, r);
738
+ Re(t, n, r);
746
739
  }
747
740
  return t.toString();
748
741
  }
749
- function Be(e, t, n) {
742
+ function Re(e, t, n) {
750
743
  n != null && e.append(t, String(n));
751
744
  }
752
- function Ve(e, t) {
745
+ function ze(e, t) {
753
746
  let n = t.endsWith("/") ? t.slice(0, -1) : t;
754
747
  return e === n || e.startsWith(`${n}/`);
755
748
  }
756
- function He(e, t) {
749
+ function Be(e, t) {
757
750
  let n = -1;
758
751
  for (let r of t) {
759
752
  let t = r.endsWith("/") ? r.slice(0, -1) : r;
760
- Ve(e, t) && (n = Math.max(n, t.length));
753
+ ze(e, t) && (n = Math.max(n, t.length));
761
754
  }
762
755
  return n;
763
756
  }
764
- function Ue(e) {
757
+ function Ve(e) {
765
758
  return new URL(e, "http://muyun.local");
766
759
  }
767
- function We(e, t) {
760
+ function He(e, t) {
768
761
  let n = {};
769
762
  for (let r of Object.keys(e)) t.includes(r) || (n[r] = e[r]);
770
763
  return Object.keys(n).length > 0 ? n : void 0;
771
764
  }
772
- function Ge(e) {
765
+ function Ue(e) {
773
766
  let t = {};
774
767
  for (let n of e.keys()) {
775
768
  let r = e.getAll(n);
@@ -777,84 +770,84 @@ function Ge(e) {
777
770
  }
778
771
  return t;
779
772
  }
780
- function X(e) {
773
+ function Z(e) {
781
774
  return Array.isArray(e) ? e[0] === null || e[0] === void 0 ? void 0 : String(e[0]) : e == null ? void 0 : String(e);
782
775
  }
783
- function Z(e, t, n) {
784
- return X(e[t]) ?? (n ? X(e[n]) : void 0);
776
+ function Q(e, t, n) {
777
+ return Z(e[t]) ?? (n ? Z(e[n]) : void 0);
785
778
  }
786
- var Ke = ["/platform"];
787
- function qe(e) {
779
+ var We = ["/platform"];
780
+ function Ge(e) {
788
781
  let t = e?.toUpperCase();
789
782
  return t === "LIST" || t === "FORM" || t === "DETAIL" ? t : void 0;
790
783
  }
791
- function Je(e) {
784
+ function Ke(e) {
792
785
  throw Error(`Unsupported page descriptor: ${JSON.stringify(e)}`);
793
786
  }
794
787
  //#endregion
795
788
  //#region src/platform-workbench/menuTreeModel.ts
796
- function Ye(e) {
797
- return e.map(rt);
789
+ function qe(e) {
790
+ return e.map(nt);
798
791
  }
799
- function Xe(e, t) {
792
+ function Je(e, t) {
800
793
  let n = t.trim().toLowerCase();
801
794
  return n ? e.map((e) => {
802
- let t = Xe(e.children, n);
803
- return it(e, n) || t.length > 0 ? {
795
+ let t = Je(e.children, n);
796
+ return rt(e, n) || t.length > 0 ? {
804
797
  ...e,
805
798
  children: t
806
799
  } : void 0;
807
800
  }).filter((e) => !!e) : e;
808
801
  }
809
- function Ze(e, t, n = []) {
802
+ function Ye(e, t, n = []) {
810
803
  for (let r of e) {
811
804
  let e = [...n, r];
812
805
  if (r.record.id === t) return e;
813
- let i = Ze(r.children, t, e);
806
+ let i = Ye(r.children, t, e);
814
807
  if (i.length > 0) return i;
815
808
  }
816
809
  return [];
817
810
  }
818
- function Q(e, t) {
811
+ function Xe(e, t) {
819
812
  for (let n of e) {
820
813
  if (n.record.id === t) return n;
821
- let e = Q(n.children, t);
814
+ let e = Xe(n.children, t);
822
815
  if (e) return e;
823
816
  }
824
817
  }
825
- function Qe(e) {
818
+ function Ze(e) {
826
819
  for (let t of e.children) for (let e of t.children) if (e.hasChildren) return e.record.id;
827
820
  }
828
- function $e(e, t, n = 3) {
829
- let r = t ? Q(e.children, t) : void 0, i = e.children;
821
+ function Qe(e, t, n = 3) {
822
+ let r = t ? Xe(e.children, t) : void 0, i = e.children;
830
823
  return {
831
824
  root: e,
832
825
  groups: i,
833
- columns: et(i, n),
826
+ columns: $e(i, n),
834
827
  activeDeepRoot: r?.hasChildren ? r : void 0
835
828
  };
836
829
  }
837
- function et(e, t) {
830
+ function $e(e, t) {
838
831
  if (e.length === 0) return [];
839
- let n = Math.max(1, Math.min(Math.floor(t), e.length)), r = Array.from({ length: n }, () => []), i = e.reduce((e, t) => e + tt(t), 0) / n, a = 0, o = 0;
832
+ let n = Math.max(1, Math.min(Math.floor(t), e.length)), r = Array.from({ length: n }, () => []), i = e.reduce((e, t) => e + et(t), 0) / n, a = 0, o = 0;
840
833
  for (let t = 0; t < e.length; t += 1) {
841
- let s = e[t], c = tt(s), l = e.length - t, u = n - a;
834
+ let s = e[t], c = et(s), l = e.length - t, u = n - a;
842
835
  r[a].length > 0 && a < n - 1 && (l <= u || o + c > i) && (a += 1, o = 0), r[a].push(s), o += c;
843
836
  }
844
837
  return r;
845
838
  }
846
- function tt(e) {
847
- let t = nt(e.record.title), n = e.children.reduce((e, t) => {
839
+ function et(e) {
840
+ let t = tt(e.record.title), n = e.children.reduce((e, t) => {
848
841
  let n = t.hasChildren ? .7 + t.children.length * .25 : 0;
849
- return e + 1 + n + nt(t.record.title) * .4;
842
+ return e + 1 + n + tt(t.record.title) * .4;
850
843
  }, 0);
851
844
  return 1.25 + t + n;
852
845
  }
853
- function nt(e) {
846
+ function tt(e) {
854
847
  return Math.max(0, Math.ceil(e.length / 10) - 1) * .35;
855
848
  }
856
- function rt(e) {
857
- let t = Ye(e.children), n = Ce(e.record);
849
+ function nt(e) {
850
+ let t = qe(e.children), n = Se(e.record);
858
851
  return {
859
852
  record: e.record,
860
853
  children: t,
@@ -863,12 +856,12 @@ function rt(e) {
863
856
  hasChildren: t.length > 0
864
857
  };
865
858
  }
866
- function it(e, t) {
859
+ function rt(e, t) {
867
860
  return e.record.title.toLowerCase().includes(t) || e.record.moduleAlias?.toLowerCase().includes(t) === !0 || e.record.route?.toLowerCase().includes(t) === !0;
868
861
  }
869
862
  //#endregion
870
863
  //#region src/platform-workbench/realtimeStatus.ts
871
- function at(e) {
864
+ function it(e) {
872
865
  if (e === "connected") return {
873
866
  label: "实时连接正常",
874
867
  title: "与平台实时服务连接正常",
@@ -887,31 +880,31 @@ function at(e) {
887
880
  }
888
881
  //#endregion
889
882
  //#region src/platform-workbench/WorkbenchMenu.vue?vue&type=script&setup=true&lang.ts
890
- var ot = { class: "menu-sidebar" }, st = { class: "brand-area" }, ct = { class: "brand-mark" }, lt = { class: "brand-copy" }, ut = { class: "menu-search" }, dt = {
883
+ var at = { class: "menu-sidebar" }, ot = { class: "brand-area" }, st = { class: "brand-mark" }, ct = { class: "brand-copy" }, lt = { class: "menu-search" }, ut = {
891
884
  class: "root-menu",
892
885
  "aria-label": "主导航"
893
- }, ft = {
886
+ }, dt = {
894
887
  key: 0,
895
888
  class: "root-menu-list"
896
- }, pt = [
889
+ }, ft = [
897
890
  "aria-expanded",
898
891
  "aria-controls",
899
892
  "onMouseenter",
900
893
  "onFocus",
901
894
  "onClick"
902
- ], mt = ["title"], ht = {
895
+ ], pt = ["title"], mt = {
903
896
  key: 0,
904
897
  class: "mega-outline",
905
898
  "aria-hidden": "true"
906
- }, gt = ["d"], _t = { class: "mega-groups" }, vt = ["disabled", "onClick"], yt = { class: "mega-entry-list" }, bt = [
899
+ }, ht = ["d"], gt = { class: "mega-groups" }, _t = ["disabled", "onClick"], vt = { class: "mega-entry-list" }, yt = [
907
900
  "disabled",
908
901
  "onMouseenter",
909
902
  "onFocus",
910
903
  "onClick"
911
- ], xt = {
904
+ ], bt = {
912
905
  key: 0,
913
906
  class: "mega-deep-panel"
914
- }, St = { class: "mega-deep-tree" }, Ct = 168, wt = 18, Tt = 28, Et = 280, Dt = 1040, Ot = 24, kt = 620, At = /*#__PURE__*/ g(/* @__PURE__ */ D({
907
+ }, xt = { class: "mega-deep-tree" }, St = 168, Ct = 18, wt = 28, Tt = 280, Et = 1040, Dt = 24, Ot = 620, kt = /*#__PURE__*/ e(/* @__PURE__ */ w({
915
908
  name: "WorkbenchMenu",
916
909
  __name: "WorkbenchMenu",
917
910
  props: {
@@ -923,8 +916,8 @@ var ot = { class: "menu-sidebar" }, st = { class: "brand-area" }, ct = { class:
923
916
  },
924
917
  emits: ["selectMenu", "invalidMenu"],
925
918
  setup(e, { emit: t }) {
926
- let n = e, r = t, a = F(), o = F(), s = F(""), c = F(), l = F(), u = F(8), d = F(0), p = F(0), m = F(0), g = F(34), _ = F(0), w = F(0), E = F(820), D = F(3), O = y(() => Ye(n.menus)), M = y(() => Xe(O.value, s.value)), P = y(() => n.selectedMenuId ? Ze(O.value, n.selectedMenuId) : []), L = y(() => P.value[0]?.record.id), R = y(() => at(n.realtimeStatus)), B = y(() => c.value ? Q(M.value, c.value) : void 0), H = y(() => B.value ? $e(B.value, l.value, D.value) : void 0), U = y(() => H.value?.activeDeepRoot), ee = y(() => H.value?.columns.length ?? 1), W = y(() => {
927
- let e = p.value, t = m.value, n = t + g.value, r = d.value, i = u.value, a = r + _.value, o = i + w.value;
919
+ let n = e, r = t, a = j(), s = j(), c = j(""), l = j(), u = j(), d = j(8), p = j(0), m = j(0), x = j(0), C = j(34), w = j(0), T = j(0), O = j(820), A = j(3), N = g(() => qe(n.menus)), P = g(() => Je(N.value, c.value)), I = g(() => n.selectedMenuId ? Ye(N.value, n.selectedMenuId) : []), te = g(() => I.value[0]?.record.id), R = g(() => it(n.realtimeStatus)), z = g(() => l.value ? Xe(P.value, l.value) : void 0), B = g(() => z.value ? Qe(z.value, u.value, A.value) : void 0), V = g(() => B.value?.activeDeepRoot), ne = g(() => B.value?.columns.length ?? 1), re = g(() => {
920
+ let e = m.value, t = x.value, n = t + C.value, r = p.value, i = d.value, a = r + w.value, o = i + T.value;
928
921
  return [
929
922
  `M ${r} ${i}`,
930
923
  `H ${a - 8}`,
@@ -941,152 +934,152 @@ var ot = { class: "menu-sidebar" }, st = { class: "brand-area" }, ct = { class:
941
934
  `V ${i}`
942
935
  ].join(" ");
943
936
  });
944
- function G(e) {
937
+ function H(e) {
945
938
  e.target ? r("selectMenu", e.record, e.target) : r("invalidMenu", e.record);
946
939
  }
947
- function te(e, t) {
940
+ function ie(e, t) {
948
941
  r("selectMenu", e, t);
949
942
  }
950
- function ne(e, t) {
951
- c.value = e.record.id, l.value = Qe(e), ae(t?.currentTarget), k(oe);
943
+ function U(e, t) {
944
+ l.value = e.record.id, u.value = Ze(e), ae(t?.currentTarget), ee(K);
952
945
  }
953
- function re() {
954
- c.value = void 0, l.value = void 0;
946
+ function W() {
947
+ l.value = void 0, u.value = void 0;
955
948
  }
956
- function ie(e) {
957
- e.key === "Escape" && re();
949
+ function G(e) {
950
+ e.key === "Escape" && W();
958
951
  }
959
952
  function ae(e) {
960
953
  if (!(e instanceof HTMLElement)) return;
961
- let t = e.getBoundingClientRect(), n = a.value?.getBoundingClientRect(), r = n?.top ?? 0, i = Math.min(window.innerHeight - 16, kt), o = t.top, s = Math.max(8, window.innerHeight - i - 8), c = Math.min(Math.max(o, 8), s), l = n?.left ?? 0;
962
- u.value = Math.round(c - r), d.value = Math.round(t.right - l), p.value = Math.round(t.left - l), m.value = Math.round(t.top - r), g.value = Math.round(t.height), w.value = i, se();
954
+ let t = e.getBoundingClientRect(), n = a.value?.getBoundingClientRect(), r = n?.top ?? 0, i = Math.min(window.innerHeight - 16, Ot), o = t.top, s = Math.max(8, window.innerHeight - i - 8), c = Math.min(Math.max(o, 8), s), l = n?.left ?? 0;
955
+ d.value = Math.round(c - r), p.value = Math.round(t.right - l), m.value = Math.round(t.left - l), x.value = Math.round(t.top - r), C.value = Math.round(t.height), T.value = i, oe();
956
+ }
957
+ function K() {
958
+ let e = s.value?.getBoundingClientRect();
959
+ e && (w.value = Math.round(e.width), T.value = Math.round(e.height));
963
960
  }
964
961
  function oe() {
965
- let e = o.value?.getBoundingClientRect();
966
- e && (_.value = Math.round(e.width), w.value = Math.round(e.height));
962
+ let e = se(), t = u.value ? Tt : 0, n = Math.max(0, Math.min(e, Et) - t), r = z.value?.children.length ?? 0, i = Math.max(1, Math.min(4, r || 1, Math.floor((n - wt + Ct) / 186) || 1)), a = i * St + Math.max(0, i - 1) * Ct + wt, o = Math.min(e, Et, a + t);
963
+ A.value = i, O.value = Math.max(280, o), w.value = O.value;
967
964
  }
968
965
  function se() {
969
- let e = ce(), t = l.value ? Et : 0, n = Math.max(0, Math.min(e, Dt) - t), r = B.value?.children.length ?? 0, i = Math.max(1, Math.min(4, r || 1, Math.floor((n - Tt + wt) / 186) || 1)), a = i * Ct + Math.max(0, i - 1) * wt + Tt, o = Math.min(e, Dt, a + t);
970
- D.value = i, E.value = Math.max(280, o), _.value = E.value;
971
- }
972
- function ce() {
973
- let e = (a.value?.getBoundingClientRect().left ?? 0) + d.value;
974
- return Math.max(280, window.innerWidth - e - Ot);
966
+ let e = (a.value?.getBoundingClientRect().left ?? 0) + p.value;
967
+ return Math.max(280, window.innerWidth - e - Dt);
975
968
  }
976
- function K(e) {
977
- l.value = e.hasChildren ? e.record.id : void 0, k(() => {
978
- se(), oe();
969
+ function ce(e) {
970
+ u.value = e.hasChildren ? e.record.id : void 0, ee(() => {
971
+ oe(), K();
979
972
  });
980
973
  }
981
974
  function le(e) {
982
- return L.value === e.record.id;
975
+ return te.value === e.record.id;
983
976
  }
984
- return (t, n) => (N(), S("div", {
977
+ return (t, n) => (k(), y("div", {
985
978
  ref_key: "menuShell",
986
979
  ref: a,
987
- class: A(["workbench-menu", { "mega-open": B.value }]),
988
- onMouseleave: re,
989
- onKeydown: ie
980
+ class: E(["workbench-menu", { "mega-open": z.value }]),
981
+ onMouseleave: W,
982
+ onKeydown: G
990
983
  }, [
991
- C("aside", ot, [
992
- C("div", st, [C("div", ct, [T(V(h), { name: "app" })]), C("div", lt, [n[1] ||= C("strong", null, "MuYun", -1), C("span", null, z(e.tenantLabel), 1)])]),
993
- C("div", ut, [T(V(h), { name: "search" }), T(V(f), {
994
- value: s.value,
995
- "onUpdate:value": n[0] ||= (e) => s.value = e,
984
+ b("aside", at, [
985
+ b("div", ot, [b("div", st, [S(L(f), { name: "app" })]), b("div", ct, [n[1] ||= b("strong", null, "MuYun", -1), b("span", null, F(e.tenantLabel), 1)])]),
986
+ b("div", lt, [S(L(f), { name: "search" }), S(L(o), {
987
+ value: c.value,
988
+ "onUpdate:value": n[0] ||= (e) => c.value = e,
996
989
  type: "search",
997
990
  "allow-clear": "",
998
991
  placeholder: e.searchPlaceholder,
999
992
  "aria-label": "搜索菜单"
1000
993
  }, null, 8, ["value", "placeholder"])]),
1001
- C("nav", dt, [M.value.length > 0 ? (N(), S("div", ft, [(N(!0), S(v, null, I(M.value, (e) => (N(), S("button", {
994
+ b("nav", ut, [P.value.length > 0 ? (k(), y("div", dt, [(k(!0), y(h, null, M(P.value, (e) => (k(), y("button", {
1002
995
  key: e.record.id,
1003
- class: A(["root-menu-item", {
1004
- active: B.value?.record.id === e.record.id,
996
+ class: E(["root-menu-item", {
997
+ active: z.value?.record.id === e.record.id,
1005
998
  selected: le(e),
1006
999
  navigable: e.navigable
1007
1000
  }]),
1008
1001
  type: "button",
1009
- "aria-expanded": B.value?.record.id === e.record.id,
1010
- "aria-controls": B.value?.record.id === e.record.id ? "workbench-mega-panel" : void 0,
1011
- onMouseenter: (t) => ne(e, t),
1012
- onFocus: (t) => ne(e, t),
1013
- onClick: (t) => e.navigable && G(e)
1014
- }, [C("span", null, z(e.record.title), 1)], 42, pt))), 128))])) : (N(), b(V(i), {
1002
+ "aria-expanded": z.value?.record.id === e.record.id,
1003
+ "aria-controls": z.value?.record.id === e.record.id ? "workbench-mega-panel" : void 0,
1004
+ onMouseenter: (t) => U(e, t),
1005
+ onFocus: (t) => U(e, t),
1006
+ onClick: (t) => e.navigable && H(e)
1007
+ }, [b("span", null, F(e.record.title), 1)], 42, ft))), 128))])) : (k(), _(L(i), {
1015
1008
  key: 1,
1016
1009
  description: "暂无菜单"
1017
1010
  }))]),
1018
- R.value ? (N(), S("div", {
1011
+ R.value ? (k(), y("div", {
1019
1012
  key: 0,
1020
- class: A(["sidebar-footer", `realtime-${R.value.tone}`]),
1013
+ class: E(["sidebar-footer", `realtime-${R.value.tone}`]),
1021
1014
  title: R.value.title,
1022
1015
  role: "status"
1023
- }, [n[2] ||= C("div", { class: "status-dot" }, null, -1), C("span", null, z(R.value.label), 1)], 10, mt)) : x("v-if", !0)
1016
+ }, [n[2] ||= b("div", { class: "status-dot" }, null, -1), b("span", null, F(R.value.label), 1)], 10, pt)) : v("v-if", !0)
1024
1017
  ]),
1025
- B.value ? (N(), S("svg", ht, [C("path", { d: W.value }, null, 8, gt)])) : x("v-if", !0),
1026
- B.value ? (N(), S("section", {
1018
+ z.value ? (k(), y("svg", mt, [b("path", { d: re.value }, null, 8, ht)])) : v("v-if", !0),
1019
+ z.value ? (k(), y("section", {
1027
1020
  key: 1,
1028
1021
  id: "workbench-mega-panel",
1029
1022
  ref_key: "megaPanel",
1030
- ref: o,
1023
+ ref: s,
1031
1024
  class: "mega-panel",
1032
- style: j({
1033
- "--mega-panel-top": `${u.value}px`,
1034
- "--mega-panel-left": `${d.value}px`,
1035
- "--mega-panel-width": `${E.value}px`,
1036
- "--mega-column-count": ee.value
1025
+ style: D({
1026
+ "--mega-panel-top": `${d.value}px`,
1027
+ "--mega-panel-left": `${p.value}px`,
1028
+ "--mega-panel-width": `${O.value}px`,
1029
+ "--mega-column-count": ne.value
1037
1030
  })
1038
- }, [C("div", { class: A(["mega-body", { "has-deep": U.value }]) }, [C("div", _t, [(N(!0), S(v, null, I(H.value?.columns ?? [], (e, t) => (N(), S("div", {
1031
+ }, [b("div", { class: E(["mega-body", { "has-deep": V.value }]) }, [b("div", gt, [(k(!0), y(h, null, M(B.value?.columns ?? [], (e, t) => (k(), y("div", {
1039
1032
  key: `mega-column-${t}`,
1040
1033
  class: "mega-column"
1041
- }, [(N(!0), S(v, null, I(e, (e) => (N(), S("section", {
1034
+ }, [(k(!0), y(h, null, M(e, (e) => (k(), y("section", {
1042
1035
  key: e.record.id,
1043
1036
  class: "mega-group"
1044
- }, [C("button", {
1045
- class: A(["mega-group-title", { navigable: e.navigable }]),
1037
+ }, [b("button", {
1038
+ class: E(["mega-group-title", { navigable: e.navigable }]),
1046
1039
  type: "button",
1047
1040
  disabled: !e.navigable,
1048
- onClick: (t) => G(e)
1049
- }, [C("span", null, z(e.record.title), 1)], 10, vt), C("div", yt, [(N(!0), S(v, null, I(e.children, (e) => (N(), S("button", {
1041
+ onClick: (t) => H(e)
1042
+ }, [b("span", null, F(e.record.title), 1)], 10, _t), b("div", vt, [(k(!0), y(h, null, M(e.children, (e) => (k(), y("button", {
1050
1043
  key: e.record.id,
1051
- class: A(["mega-entry", {
1044
+ class: E(["mega-entry", {
1052
1045
  navigable: e.navigable,
1053
- active: U.value?.record.id === e.record.id,
1046
+ active: V.value?.record.id === e.record.id,
1054
1047
  branch: e.hasChildren
1055
1048
  }]),
1056
1049
  type: "button",
1057
1050
  disabled: !e.navigable && !e.hasChildren,
1058
- onMouseenter: (t) => K(e),
1059
- onFocus: (t) => K(e),
1060
- onClick: (t) => e.navigable && G(e)
1061
- }, [C("span", null, z(e.record.title), 1)], 42, bt))), 128))])]))), 128))]))), 128))]), U.value ? (N(), S("aside", xt, [C("header", null, [n[3] ||= C("span", null, "深层导航", -1), C("strong", null, z(U.value.record.title), 1)]), C("ul", St, [T(be, {
1062
- node: U.value,
1063
- onSelectMenu: te
1064
- }, null, 8, ["node"])])])) : x("v-if", !0)], 2)], 4)) : x("v-if", !0)
1051
+ onMouseenter: (t) => ce(e),
1052
+ onFocus: (t) => ce(e),
1053
+ onClick: (t) => e.navigable && H(e)
1054
+ }, [b("span", null, F(e.record.title), 1)], 42, yt))), 128))])]))), 128))]))), 128))]), V.value ? (k(), y("aside", bt, [b("header", null, [n[3] ||= b("span", null, "深层导航", -1), b("strong", null, F(V.value.record.title), 1)]), b("ul", xt, [S(ye, {
1055
+ node: V.value,
1056
+ onSelectMenu: ie
1057
+ }, null, 8, ["node"])])])) : v("v-if", !0)], 2)], 4)) : v("v-if", !0)
1065
1058
  ], 34));
1066
1059
  }
1067
- }), [["__scopeId", "data-v-5a8e4d51"]]), jt = { class: "workbench" }, Mt = { class: "app-main" }, Nt = { class: "app-topbar" }, Pt = { class: "topbar-title" }, Ft = {
1060
+ }), [["__scopeId", "data-v-5a8e4d51"]]), At = { class: "workbench" }, jt = { class: "app-main" }, Mt = { class: "app-topbar" }, Nt = { class: "topbar-title" }, Pt = {
1068
1061
  class: "topbar-actions",
1069
1062
  "aria-label": "全局工具"
1070
- }, It = {
1063
+ }, Ft = {
1071
1064
  class: "icon-button wide",
1072
1065
  type: "button",
1073
1066
  "aria-label": "搜索"
1074
- }, Lt = {
1067
+ }, It = {
1075
1068
  class: "icon-button",
1076
1069
  type: "button",
1077
1070
  "aria-label": "刷新"
1078
- }, Rt = {
1071
+ }, Lt = {
1079
1072
  class: "icon-button",
1080
1073
  type: "button",
1081
1074
  "aria-label": "通知"
1082
- }, zt = {
1075
+ }, Rt = {
1083
1076
  class: "icon-button",
1084
1077
  type: "button",
1085
1078
  "aria-label": "设置"
1086
- }, Bt = ["onClick"], Vt = { class: "avatar" }, Ht = { class: "user-meta" }, Ut = { class: "tab-strip" }, Wt = {
1079
+ }, zt = ["onClick"], Bt = { class: "avatar" }, Vt = { class: "user-meta" }, Ht = { class: "tab-strip" }, Ut = {
1087
1080
  key: 1,
1088
1081
  class: "empty-tabs"
1089
- }, Gt = { class: "app-content" }, Kt = /*#__PURE__*/ g(/* @__PURE__ */ D({
1082
+ }, Wt = { class: "app-content" }, Gt = /*#__PURE__*/ e(/* @__PURE__ */ w({
1090
1083
  name: "Workbench",
1091
1084
  __name: "Workbench",
1092
1085
  props: {
@@ -1107,8 +1100,8 @@ var ot = { class: "menu-sidebar" }, st = { class: "brand-area" }, ct = { class:
1107
1100
  "update:activeTabKey",
1108
1101
  "userCommand"
1109
1102
  ],
1110
- setup(t, { emit: n }) {
1111
- let r = t, i = n, o = y(() => r.startup?.tabs ?? []), c = y(() => o.value.map(M)), l = y(() => r.activeTabKey ?? r.startup?.activeTabKey ?? c.value[0]?.key ?? ""), f = y(() => o.value.find((e) => e.key === l.value)), p = y(() => k(f.value)), m = y(() => r.startup?.session.currentUser), g = y(() => m.value?.username ?? m.value?.userId ?? "未登录"), _ = y(() => g.value.trim().slice(0, 1).toUpperCase() || "M"), w = y(() => m.value?.tenantId ?? "系统工作区"), E = y(() => B(p.value?.pageType)), D = y(() => G(p.value)), O = [
1103
+ setup(e, { emit: n }) {
1104
+ let r = e, i = n, o = g(() => r.startup?.tabs ?? []), c = g(() => o.value.map(P)), d = g(() => r.activeTabKey ?? r.startup?.activeTabKey ?? c.value[0]?.key ?? ""), p = g(() => o.value.find((e) => e.key === d.value)), m = g(() => A(p.value)), x = g(() => r.startup?.session.currentUser), C = g(() => x.value?.username ?? x.value?.userId ?? "未登录"), w = g(() => C.value.trim().slice(0, 1).toUpperCase() || "M"), T = g(() => x.value?.tenantId ?? "系统工作区"), ee = g(() => re(m.value?.pageType)), D = g(() => H(m.value)), O = [
1112
1105
  {
1113
1106
  key: "changePassword",
1114
1107
  title: "修改密码"
@@ -1127,199 +1120,199 @@ var ot = { class: "menu-sidebar" }, st = { class: "brand-area" }, ct = { class:
1127
1120
  danger: !0
1128
1121
  }
1129
1122
  ];
1130
- function k(e) {
1131
- if (e) return e?.pageDescriptor ?? (e?.target ? Ee(e.target, { title: e.title }) : void 0);
1123
+ function A(e) {
1124
+ if (e) return e?.pageDescriptor ?? (e?.target ? Te(e.target, { title: e.title }) : void 0);
1132
1125
  }
1133
1126
  function j(e) {
1134
- return e.key === l.value || k(e)?.tabPolicy.cacheable !== !1;
1127
+ return e.key === d.value || A(e)?.tabPolicy.cacheable !== !1;
1135
1128
  }
1136
- function M(e) {
1129
+ function P(e) {
1137
1130
  return {
1138
1131
  key: e.key,
1139
1132
  title: e.title,
1140
1133
  closable: e.closable
1141
1134
  };
1142
1135
  }
1143
- function P(e) {
1136
+ function I(e) {
1144
1137
  i("update:activeTabKey", e), i("changeTab", e);
1145
1138
  }
1146
- function F(e) {
1139
+ function V(e) {
1147
1140
  i("userCommand", e);
1148
1141
  }
1149
- function R(e, t) {
1142
+ function ne(e, t) {
1150
1143
  i("selectMenu", e, t);
1151
1144
  }
1152
- function B(e) {
1145
+ function re(e) {
1153
1146
  return e === "dynamic-module" ? "动态模块" : e === "business-route" ? "业务页面" : e === "platform-route" ? "平台页面" : e === "remote-url" ? "在线页面" : e === "external-link" ? "外部链接" : "工作区";
1154
1147
  }
1155
- function G(e) {
1148
+ function H(e) {
1156
1149
  return e ? e.pageType === "dynamic-module" ? e.target.moduleAlias : e.pageType === "platform-route" || e.pageType === "business-route" ? e.target.route ?? e.target.routeName ?? e.target.pageKey ?? "workspace" : e.target.url : "未选择入口";
1157
1150
  }
1158
- return (n, r) => (N(), S("main", jt, [T(At, {
1159
- menus: t.startup?.menus ?? [],
1160
- "selected-menu-id": f.value?.target?.menuId,
1161
- "tenant-label": w.value,
1162
- "realtime-status": t.realtimeStatus,
1163
- onSelectMenu: R,
1151
+ return (n, r) => (k(), y("main", At, [S(kt, {
1152
+ menus: e.startup?.menus ?? [],
1153
+ "selected-menu-id": p.value?.target?.menuId,
1154
+ "tenant-label": T.value,
1155
+ "realtime-status": e.realtimeStatus,
1156
+ onSelectMenu: ne,
1164
1157
  onInvalidMenu: r[0] ||= (e) => i("invalidMenu", e)
1165
1158
  }, null, 8, [
1166
1159
  "menus",
1167
1160
  "selected-menu-id",
1168
1161
  "tenant-label",
1169
1162
  "realtime-status"
1170
- ]), C("section", Mt, [
1171
- C("header", Nt, [
1172
- C("div", Pt, [C("h1", null, z(f.value?.title ?? "控制台"), 1), C("span", null, z(E.value) + " / " + z(D.value), 1)]),
1173
- C("div", Ft, [
1174
- C("button", It, [T(V(h), { name: "search" }), r[2] ||= C("span", null, "搜索", -1)]),
1175
- C("button", Lt, [T(V(h), { name: "reload" })]),
1176
- C("button", Rt, [T(V(h), { name: "notification" })]),
1177
- C("button", zt, [T(V(h), { name: "settings" })])
1163
+ ]), b("section", jt, [
1164
+ b("header", Mt, [
1165
+ b("div", Nt, [b("h1", null, F(p.value?.title ?? "控制台"), 1), b("span", null, F(ee.value) + " / " + F(D.value), 1)]),
1166
+ b("div", Pt, [
1167
+ b("button", Ft, [S(L(f), { name: "search" }), r[2] ||= b("span", null, "搜索", -1)]),
1168
+ b("button", It, [S(L(f), { name: "reload" })]),
1169
+ b("button", Lt, [S(L(f), { name: "notification" })]),
1170
+ b("button", Rt, [S(L(f), { name: "settings" })])
1178
1171
  ]),
1179
- T(V(e), {
1172
+ S(L(t), {
1180
1173
  items: O,
1181
- onSelect: F
1174
+ onSelect: V
1182
1175
  }, {
1183
- default: U(({ toggle: e }) => [C("button", {
1176
+ default: R(({ toggle: e }) => [b("button", {
1184
1177
  class: "user-button",
1185
1178
  type: "button",
1186
- onClick: W(e, ["stop"])
1179
+ onClick: B(e, ["stop"])
1187
1180
  }, [
1188
- C("span", Vt, z(_.value), 1),
1189
- C("span", Ht, [C("strong", null, z(g.value), 1), C("small", null, z(m.value?.system ? "系统管理员" : "业务用户"), 1)]),
1190
- T(V(h), {
1181
+ b("span", Bt, F(w.value), 1),
1182
+ b("span", Vt, [b("strong", null, F(C.value), 1), b("small", null, F(x.value?.system ? "系统管理员" : "业务用户"), 1)]),
1183
+ S(L(f), {
1191
1184
  class: "user-caret",
1192
1185
  name: "down"
1193
1186
  })
1194
- ], 8, Bt)]),
1187
+ ], 8, zt)]),
1195
1188
  _: 1
1196
1189
  })
1197
1190
  ]),
1198
- C("div", Ut, [c.value.length > 0 ? (N(), b(V(d), {
1191
+ b("div", Ht, [c.value.length > 0 ? (k(), _(L(u), {
1199
1192
  key: 0,
1200
1193
  tabs: c.value,
1201
- "active-key": l.value,
1202
- "onUpdate:activeKey": P,
1194
+ "active-key": d.value,
1195
+ "onUpdate:activeKey": I,
1203
1196
  onClose: r[1] ||= (e) => i("closeTab", e)
1204
- }, null, 8, ["tabs", "active-key"])) : (N(), S("div", Wt, "暂无打开页面"))]),
1205
- C("section", Gt, [t.loading ? (N(), b(V(s), { key: 0 })) : t.error ? (N(), b(V(a), {
1197
+ }, null, 8, ["tabs", "active-key"])) : (k(), y("div", Ut, "暂无打开页面"))]),
1198
+ b("section", Wt, [e.loading ? (k(), _(L(s), { key: 0 })) : e.error ? (k(), _(L(a), {
1206
1199
  key: 1,
1207
- message: t.error
1208
- }, null, 8, ["message"])) : (N(!0), S(v, { key: 2 }, I(o.value, (e) => (N(), S(v, { key: e.key }, [j(e) ? ee((N(), b(V(u), {
1200
+ message: e.error
1201
+ }, null, 8, ["message"])) : (k(!0), y(h, { key: 2 }, M(o.value, (e) => (k(), y(h, { key: e.key }, [j(e) ? z((k(), _(L(l), {
1209
1202
  key: 0,
1210
1203
  class: "tab-panel-host"
1211
1204
  }, {
1212
- default: U(() => [C("div", { class: A(["tab-page", { "tab-page--workspace": k(e)?.layout === "workspace" }]) }, [L(n.$slots, "default", {
1205
+ default: R(() => [b("div", { class: E(["tab-page", { "tab-page--workspace": A(e)?.layout === "workspace" }]) }, [N(n.$slots, "default", {
1213
1206
  activeTab: e,
1214
1207
  target: e.target,
1215
- pageDescriptor: k(e)
1208
+ pageDescriptor: A(e)
1216
1209
  }, void 0, !0)], 2)]),
1217
1210
  _: 2
1218
- }, 1536)), [[H, e.key === l.value]]) : x("v-if", !0)], 64))), 128))])
1211
+ }, 1536)), [[te, e.key === d.value]]) : v("v-if", !0)], 64))), 128))])
1219
1212
  ])]));
1220
1213
  }
1221
- }), [["__scopeId", "data-v-6418272d"]]), qt = { class: "page-host" }, Jt = /*#__PURE__*/ g(/* @__PURE__ */ D({
1214
+ }), [["__scopeId", "data-v-6418272d"]]), Kt = { class: "page-host" }, qt = /*#__PURE__*/ e(/* @__PURE__ */ w({
1222
1215
  name: "BusinessRouteHost",
1223
1216
  __name: "BusinessRouteHost",
1224
1217
  props: { descriptor: {} },
1225
1218
  setup(e) {
1226
- let t = e, n = y(() => t.descriptor.title ?? t.descriptor.target.route ?? t.descriptor.target.routeName ?? t.descriptor.target.pageKey);
1227
- return (t, r) => (N(), S("section", qt, [C("header", null, [r[0] ||= C("span", { class: "host-badge" }, "业务页面", -1), C("h2", null, z(n.value), 1)]), C("p", null, z(e.descriptor.target.route ?? e.descriptor.target.routeName ?? e.descriptor.target.pageKey), 1)]));
1219
+ let t = e, n = g(() => t.descriptor.title ?? t.descriptor.target.route ?? t.descriptor.target.routeName ?? t.descriptor.target.pageKey);
1220
+ return (t, r) => (k(), y("section", Kt, [b("header", null, [r[0] ||= b("span", { class: "host-badge" }, "业务页面", -1), b("h2", null, F(n.value), 1)]), b("p", null, F(e.descriptor.target.route ?? e.descriptor.target.routeName ?? e.descriptor.target.pageKey), 1)]));
1228
1221
  }
1229
- }), [["__scopeId", "data-v-7c4a6776"]]), Yt = ["src", "title"], Xt = {
1222
+ }), [["__scopeId", "data-v-7c4a6776"]]), Jt = ["src", "title"], Yt = {
1230
1223
  key: 1,
1231
1224
  class: "page-host"
1232
- }, Zt = { class: "host-badge" }, Qt = ["href"], $t = /*#__PURE__*/ g(/* @__PURE__ */ D({
1225
+ }, Xt = { class: "host-badge" }, Zt = ["href"], Qt = /*#__PURE__*/ e(/* @__PURE__ */ w({
1233
1226
  name: "ExternalPageHost",
1234
1227
  __name: "ExternalPageHost",
1235
1228
  props: { descriptor: {} },
1236
1229
  setup(e) {
1237
- let t = e, n = y(() => t.descriptor.title ?? t.descriptor.target.url);
1238
- return (t, r) => e.descriptor.openMode === "iframe" ? (N(), S("iframe", {
1230
+ let t = e, n = g(() => t.descriptor.title ?? t.descriptor.target.url);
1231
+ return (t, r) => e.descriptor.openMode === "iframe" ? (k(), y("iframe", {
1239
1232
  key: 0,
1240
1233
  class: "external-frame",
1241
1234
  src: e.descriptor.target.url,
1242
1235
  title: n.value
1243
- }, null, 8, Yt)) : (N(), S("section", Xt, [
1244
- C("span", Zt, z(e.descriptor.openMode), 1),
1245
- C("h2", null, z(n.value), 1),
1246
- C("a", {
1236
+ }, null, 8, Jt)) : (k(), y("section", Yt, [
1237
+ b("span", Xt, F(e.descriptor.openMode), 1),
1238
+ b("h2", null, F(n.value), 1),
1239
+ b("a", {
1247
1240
  class: "external-link",
1248
1241
  href: e.descriptor.target.url,
1249
1242
  target: "_blank",
1250
1243
  rel: "noopener noreferrer"
1251
- }, " 打开页面 ", 8, Qt)
1244
+ }, " 打开页面 ", 8, Zt)
1252
1245
  ]));
1253
1246
  }
1254
- }), [["__scopeId", "data-v-212f730c"]]), en = {
1247
+ }), [["__scopeId", "data-v-212f730c"]]), $t = {
1255
1248
  key: 1,
1256
1249
  class: "page-host"
1257
- }, tn = /*#__PURE__*/ g(/* @__PURE__ */ D({
1250
+ }, en = /*#__PURE__*/ e(/* @__PURE__ */ w({
1258
1251
  name: "PlatformRouteHost",
1259
1252
  __name: "PlatformRouteHost",
1260
1253
  props: { descriptor: {} },
1261
1254
  setup(e) {
1262
- let t = e, n = y(() => t.descriptor.title ?? t.descriptor.target.route ?? t.descriptor.target.routeName ?? t.descriptor.target.pageKey);
1255
+ let t = e, n = g(() => t.descriptor.title ?? t.descriptor.target.route ?? t.descriptor.target.routeName ?? t.descriptor.target.pageKey);
1263
1256
  return (e, r) => {
1264
- let i = R("RouterView");
1265
- return t.descriptor.target.route === "/" ? (N(), b(i, { key: 0 })) : (N(), S("section", en, [C("header", null, [r[0] ||= C("span", { class: "host-badge" }, "平台页面", -1), C("h2", null, z(n.value), 1)]), C("p", null, z(t.descriptor.target.route ?? t.descriptor.target.routeName ?? t.descriptor.target.pageKey), 1)]));
1257
+ let i = P("RouterView");
1258
+ return t.descriptor.target.route === "/" ? (k(), _(i, { key: 0 })) : (k(), y("section", $t, [b("header", null, [r[0] ||= b("span", { class: "host-badge" }, "平台页面", -1), b("h2", null, F(n.value), 1)]), b("p", null, F(t.descriptor.target.route ?? t.descriptor.target.routeName ?? t.descriptor.target.pageKey), 1)]));
1266
1259
  };
1267
1260
  }
1268
1261
  }), [["__scopeId", "data-v-38e3167a"]]);
1269
1262
  //#endregion
1270
1263
  //#region src/platform-workbench/pageHostRegistry.ts
1271
- function nn(e) {
1264
+ function tn(e) {
1272
1265
  switch (e) {
1273
1266
  case "platform-route-host": return "PlatformRouteHost";
1274
1267
  case "business-route-host": return "BusinessRouteHost";
1275
1268
  case "dynamic-module-host": return "DynamicModuleHost";
1276
1269
  case "external-page-host": return "ExternalPageHost";
1277
- default: return rn(e);
1270
+ default: return nn(e);
1278
1271
  }
1279
1272
  }
1280
- function rn(e) {
1273
+ function nn(e) {
1281
1274
  throw Error(`Unsupported page host type: ${e}`);
1282
1275
  }
1283
1276
  //#endregion
1284
1277
  //#region src/platform-workbench/WorkbenchOutlet.vue
1285
- var an = /* @__PURE__ */ D({
1278
+ var rn = /* @__PURE__ */ w({
1286
1279
  name: "WorkbenchOutlet",
1287
1280
  __name: "WorkbenchOutlet",
1288
1281
  props: { descriptor: {} },
1289
1282
  setup(e) {
1290
- let t = e, n = y(() => t.descriptor ? nn(t.descriptor.hostType) : void 0), r = y(() => n.value === "PlatformRouteHost" ? t.descriptor : void 0), a = y(() => n.value === "BusinessRouteHost" ? t.descriptor : void 0), o = y(() => n.value === "DynamicModuleHost" ? t.descriptor : void 0), s = y(() => n.value === "ExternalPageHost" ? t.descriptor : void 0);
1291
- return (e, t) => r.value ? (N(), b(tn, {
1283
+ let t = e, n = g(() => t.descriptor ? tn(t.descriptor.hostType) : void 0), r = g(() => n.value === "PlatformRouteHost" ? t.descriptor : void 0), a = g(() => n.value === "BusinessRouteHost" ? t.descriptor : void 0), o = g(() => n.value === "DynamicModuleHost" ? t.descriptor : void 0), s = g(() => n.value === "ExternalPageHost" ? t.descriptor : void 0);
1284
+ return (e, t) => r.value ? (k(), _(en, {
1292
1285
  key: 0,
1293
1286
  descriptor: r.value
1294
- }, null, 8, ["descriptor"])) : a.value ? (N(), b(Jt, {
1287
+ }, null, 8, ["descriptor"])) : a.value ? (k(), _(qt, {
1295
1288
  key: 1,
1296
1289
  descriptor: a.value
1297
- }, null, 8, ["descriptor"])) : o.value ? (N(), b(V(ae), {
1290
+ }, null, 8, ["descriptor"])) : o.value ? (k(), _(L(U), {
1298
1291
  key: 2,
1299
1292
  descriptor: o.value
1300
- }, null, 8, ["descriptor"])) : s.value ? (N(), b($t, {
1293
+ }, null, 8, ["descriptor"])) : s.value ? (k(), _(Qt, {
1301
1294
  key: 3,
1302
1295
  descriptor: s.value
1303
- }, null, 8, ["descriptor"])) : (N(), b(V(i), {
1296
+ }, null, 8, ["descriptor"])) : (k(), _(L(i), {
1304
1297
  key: 4,
1305
1298
  description: "暂无页面"
1306
1299
  }));
1307
1300
  }
1308
- }), on = Symbol("workbench-navigation");
1309
- function sn(e) {
1310
- P(on, e);
1301
+ }), an = Symbol("workbench-navigation");
1302
+ function on(e) {
1303
+ A(an, e);
1311
1304
  }
1312
- function cn() {
1313
- return O(on);
1305
+ function sn() {
1306
+ return T(an);
1314
1307
  }
1315
1308
  //#endregion
1316
1309
  //#region src/platform-admin-runtime/workspaceViewHost.ts
1317
- var ln = Symbol("workspace-view-host");
1318
- function un(e) {
1319
- P(ln, e);
1310
+ var cn = Symbol("workspace-view-host");
1311
+ function ln(e) {
1312
+ A(cn, e);
1320
1313
  }
1321
- function dn() {
1322
- return O(ln, void 0);
1314
+ function un() {
1315
+ return T(cn, void 0);
1323
1316
  }
1324
1317
  //#endregion
1325
1318
  //#region src/platform-admin-runtime/workspaceViewContract.ts
@@ -1328,11 +1321,11 @@ function $(e) {
1328
1321
  }
1329
1322
  //#endregion
1330
1323
  //#region src/views/userDetailWorkspaceView.ts
1331
- var fn = $({
1324
+ var dn = $({
1332
1325
  type: "iam.user.detail",
1333
1326
  route: "/iam/users",
1334
1327
  moduleAlias: "iam.user",
1335
- component: E(() => import("./UserDetailWorkspaceView-Iek6xwix.js")),
1328
+ component: C(() => import("./UserDetailWorkspaceView-B6fGrnQ7.js")),
1336
1329
  layout: "workspace",
1337
1330
  routeTitle: "用户管理",
1338
1331
  presentations: ["drawer", "tab"],
@@ -1341,11 +1334,11 @@ var fn = $({
1341
1334
  let t = e.recordId;
1342
1335
  if (!(typeof t != "string" || !t)) return { recordId: t };
1343
1336
  }
1344
- }), pn = $({
1337
+ }), fn = $({
1345
1338
  type: "iam.employee.detail",
1346
1339
  route: "/iam/employees",
1347
1340
  moduleAlias: "iam.employee",
1348
- component: E(() => import("./EmployeeDetailWorkspaceView-mtdcsqgF.js")),
1341
+ component: C(() => import("./EmployeeDetailWorkspaceView-BySbWjCV.js")),
1349
1342
  layout: "workspace",
1350
1343
  routeTitle: "职员管理",
1351
1344
  presentations: ["drawer", "tab"],
@@ -1354,15 +1347,15 @@ var fn = $({
1354
1347
  let t = e.recordId;
1355
1348
  if (!(typeof t != "string" || !t)) return { recordId: t };
1356
1349
  }
1357
- }), mn = new Set([
1350
+ }), pn = new Set([
1358
1351
  "platform",
1359
1352
  "tenant",
1360
1353
  "organization"
1361
- ]), hn = $({
1354
+ ]), mn = $({
1362
1355
  type: "iam.role.detail",
1363
1356
  route: "/iam/roles",
1364
1357
  moduleAlias: "iam.role",
1365
- component: E(() => import("./RoleDetailWorkspaceView-Dh8DXpyS.js")),
1358
+ component: C(() => import("./RoleDetailWorkspaceView-BPZcZy-r.js")),
1366
1359
  layout: "workspace",
1367
1360
  routeTitle: "角色管理",
1368
1361
  presentations: ["drawer", "tab"],
@@ -1375,17 +1368,17 @@ var fn = $({
1375
1368
  },
1376
1369
  parse(e) {
1377
1370
  let t = e.recordId, n = e.scopeKind, r = e.scopeId;
1378
- if (!(typeof t != "string" || !t || typeof n != "string" || !mn.has(n) || (n === "platform" ? r !== void 0 : typeof r != "string" || !r))) return {
1371
+ if (!(typeof t != "string" || !t || typeof n != "string" || !pn.has(n) || (n === "platform" ? r !== void 0 : typeof r != "string" || !r))) return {
1379
1372
  recordId: t,
1380
1373
  scopeKind: n,
1381
1374
  ...typeof r == "string" ? { scopeId: r } : {}
1382
1375
  };
1383
1376
  }
1384
- }), gn = $({
1377
+ }), hn = $({
1385
1378
  type: "iam.system-user.detail",
1386
1379
  route: "/iam/system-users",
1387
1380
  moduleAlias: "iam.system_user",
1388
- component: E(() => import("./SystemUserDetailWorkspaceView-N-kvycAu.js")),
1381
+ component: C(() => import("./SystemUserDetailWorkspaceView-BtEDyU-k.js")),
1389
1382
  layout: "workspace",
1390
1383
  routeTitle: "系统账号管理",
1391
1384
  presentations: ["drawer", "tab"],
@@ -1394,11 +1387,11 @@ var fn = $({
1394
1387
  let t = e.recordId;
1395
1388
  return typeof t == "string" && t ? { recordId: t } : void 0;
1396
1389
  }
1397
- }), _n = $({
1390
+ }), gn = $({
1398
1391
  type: "iam.role.authorization",
1399
1392
  route: "/iam/role-authorization",
1400
1393
  moduleAlias: "iam.role",
1401
- component: E(() => import("./RoleAuthorizationView-CQtSAJoJ.js").then((e) => e.n)),
1394
+ component: C(() => import("./RoleAuthorizationView-CK6Vfdup.js").then((e) => e.n)),
1402
1395
  layout: "workspace",
1403
1396
  routeTitle: "角色授权",
1404
1397
  drawerProfile: "wide-work",
@@ -1408,11 +1401,11 @@ var fn = $({
1408
1401
  let t = e.roleId;
1409
1402
  return typeof t == "string" && t ? { roleId: t } : void 0;
1410
1403
  }
1411
- }), vn = $({
1404
+ }), _n = $({
1412
1405
  type: "platform.module.actions",
1413
1406
  route: "/config/modules",
1414
1407
  moduleAlias: "platform.module",
1415
- component: E(() => import("./ModuleActionManagementView-DNuAQUPE.js")),
1408
+ component: C(() => import("./ModuleActionManagementView-DRtYMXOK.js")),
1416
1409
  layout: "workspace",
1417
1410
  routeTitle: "模块管理",
1418
1411
  presentations: ["tab"],
@@ -1426,11 +1419,11 @@ var fn = $({
1426
1419
  ...e.moduleKind === "static" || e.moduleKind === "dynamic" ? { moduleKind: e.moduleKind } : {}
1427
1420
  };
1428
1421
  }
1429
- }), yn = $({
1422
+ }), vn = $({
1430
1423
  type: "platform.module.metadata-orchestration",
1431
1424
  route: "/config/modules",
1432
1425
  moduleAlias: "platform.module",
1433
- component: E(() => import("./MetadataOrchestrationView-CprWBocy.js")),
1426
+ component: C(() => import("./MetadataOrchestrationView-2JxJkFEC.js")),
1434
1427
  layout: "workspace",
1435
1428
  routeTitle: "模块管理",
1436
1429
  presentations: ["tab"],
@@ -1443,18 +1436,18 @@ var fn = $({
1443
1436
  ...typeof n == "string" && n ? { moduleTitle: n } : {}
1444
1437
  };
1445
1438
  }
1446
- }), bn = [
1439
+ }), yn = [
1440
+ dn,
1447
1441
  fn,
1448
- pn,
1442
+ mn,
1449
1443
  hn,
1450
1444
  gn,
1451
1445
  _n,
1452
- vn,
1453
- yn
1446
+ vn
1454
1447
  ];
1455
1448
  //#endregion
1456
1449
  //#region src/platform-admin-runtime/workspaceViews.ts
1457
- function xn(e) {
1450
+ function bn(e) {
1458
1451
  let t = /* @__PURE__ */ new Map();
1459
1452
  for (let n of e) {
1460
1453
  if (t.has(n.type)) throw Error(`重复的工作视图类型:${n.type}`);
@@ -1474,8 +1467,8 @@ function xn(e) {
1474
1467
  }
1475
1468
  };
1476
1469
  }
1477
- var Sn = xn(bn);
1478
- function Cn(e, t, n = "tab", r = e.titleOf(t)) {
1470
+ var xn = bn(yn);
1471
+ function Sn(e, t, n = "tab", r = e.titleOf(t)) {
1479
1472
  if (!e.presentations.includes(n)) throw Error(`工作视图 ${e.type} 不支持 ${n} 承载`);
1480
1473
  let i = {
1481
1474
  workspaceView: e.type,
@@ -1497,16 +1490,16 @@ function Cn(e, t, n = "tab", r = e.titleOf(t)) {
1497
1490
  tabPolicy: { identity: "by-params" }
1498
1491
  };
1499
1492
  }
1500
- function wn(e, t) {
1493
+ function Cn(e, t) {
1501
1494
  let n = t.parse(e.target.query ?? {}), r = new Set([
1502
1495
  "workspaceView",
1503
1496
  "workspacePresentation",
1504
1497
  ...Object.keys(n ?? {})
1505
1498
  ]), i = n ? t.parentRouteQueryOf?.(n) ?? {} : {}, a = {
1506
- ...En(e.target.query ?? {}, r),
1499
+ ...Tn(e.target.query ?? {}, r),
1507
1500
  ...i
1508
1501
  }, o = {
1509
- ...En(e.params ?? {}, r),
1502
+ ...Tn(e.params ?? {}, r),
1510
1503
  ...i
1511
1504
  };
1512
1505
  return {
@@ -1520,29 +1513,29 @@ function wn(e, t) {
1520
1513
  tabPolicy: { identity: "by-params" }
1521
1514
  };
1522
1515
  }
1523
- function Tn(e) {
1524
- return Sn.resolve(e);
1516
+ function wn(e) {
1517
+ return xn.resolve(e);
1525
1518
  }
1526
- function En(e, t) {
1519
+ function Tn(e, t) {
1527
1520
  return Object.fromEntries(Object.entries(e).filter(([e]) => !t.has(e)));
1528
1521
  }
1529
1522
  //#endregion
1530
1523
  //#region src/platform-admin-runtime/useWorkspaceViewPromotion.ts
1531
- function Dn(e) {
1524
+ function En(e) {
1532
1525
  return e.hasStableIdentity && e.busy !== !0 && e.canChangeHost !== !1;
1533
1526
  }
1534
- function On(e) {
1535
- let t = cn();
1536
- return y(() => {
1537
- let n = B(e.input);
1538
- if (!(!n || !Dn(B(e.eligibility)) || !t)) return {
1527
+ function Dn(e) {
1528
+ let t = sn();
1529
+ return g(() => {
1530
+ let n = I(e.input);
1531
+ if (!(!n || !En(I(e.eligibility)) || !t)) return {
1539
1532
  title: "固定为页签",
1540
1533
  promote: async () => {
1541
1534
  if (await e.beforePromote?.(n) === !1) {
1542
1535
  e.onPromotionRejected?.();
1543
1536
  return;
1544
1537
  }
1545
- let r = t.openPage(Cn(e.view, n, "tab", B(e.title)));
1538
+ let r = t.openPage(Sn(e.view, n, "tab", I(e.title)));
1546
1539
  e.onPromoted?.(r);
1547
1540
  }
1548
1541
  };
@@ -1550,29 +1543,29 @@ function On(e) {
1550
1543
  }
1551
1544
  //#endregion
1552
1545
  //#region src/platform-admin-runtime/workspaceViewSessions.ts
1553
- var kn = /* @__PURE__ */ new Map(), An = /* @__PURE__ */ new Map();
1554
- function jn(e, t) {
1555
- return `${e.type}:${Fn(t)}`;
1546
+ var On = /* @__PURE__ */ new Map(), kn = /* @__PURE__ */ new Map();
1547
+ function An(e, t) {
1548
+ return `${e.type}:${Pn(t)}`;
1556
1549
  }
1557
- async function Mn(e, t, n) {
1558
- let r = jn(e, t), i = An.get(r), a = i && [...i].at(-1);
1559
- return a ? await a(In(n)) ? "accepted" : "rejected" : (kn.set(r, In(n)), "accepted");
1550
+ async function jn(e, t, n) {
1551
+ let r = An(e, t), i = kn.get(r), a = i && [...i].at(-1);
1552
+ return a ? await a(Fn(n)) ? "accepted" : "rejected" : (On.set(r, Fn(n)), "accepted");
1560
1553
  }
1561
- function Nn(e, t, n) {
1562
- let r = jn(e, t), i = An.get(r) ?? /* @__PURE__ */ new Set();
1563
- return i.add(n), An.set(r, i), () => {
1564
- i.delete(n), i.size === 0 && An.delete(r);
1554
+ function Mn(e, t, n) {
1555
+ let r = An(e, t), i = kn.get(r) ?? /* @__PURE__ */ new Set();
1556
+ return i.add(n), kn.set(r, i), () => {
1557
+ i.delete(n), i.size === 0 && kn.delete(r);
1565
1558
  };
1566
1559
  }
1567
- function Pn(e, t) {
1568
- let n = jn(e, t), r = kn.get(n);
1569
- return kn.delete(n), r;
1560
+ function Nn(e, t) {
1561
+ let n = An(e, t), r = On.get(n);
1562
+ return On.delete(n), r;
1570
1563
  }
1571
- function Fn(e) {
1572
- return Array.isArray(e) ? `[${e.map(Fn).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => `${JSON.stringify(e)}:${Fn(t)}`).join(",")}}` : JSON.stringify(e);
1564
+ function Pn(e) {
1565
+ return Array.isArray(e) ? `[${e.map(Pn).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => `${JSON.stringify(e)}:${Pn(t)}`).join(",")}}` : JSON.stringify(e);
1573
1566
  }
1574
- function In(e) {
1567
+ function Fn(e) {
1575
1568
  return JSON.parse(JSON.stringify(e));
1576
1569
  }
1577
1570
  //#endregion
1578
- export { Oe as A, he as B, $e as C, Ze as D, Q as E, Ae as F, Ee as I, ke as L, we as M, Te as N, Qe as O, je as P, Me as R, at as S, Xe as T, ae as V, sn as _, Cn as a, Kt as b, yn as c, gn as d, hn as f, dn as g, un as h, On as i, Ce as j, De as k, vn as l, fn as m, Nn as n, wn as o, pn as p, Pn as r, Tn as s, Mn as t, _n as u, cn as v, Ye as w, At as x, an as y, ge as z };
1571
+ export { De as A, me as B, Qe as C, Ye as D, Xe as E, ke as F, Te as I, Oe as L, Ce as M, we as N, Ze as O, Ae as P, je as R, it as S, Je as T, U as V, on as _, Sn as a, Gt as b, vn as c, hn as d, mn as f, un as g, ln as h, Dn as i, Se as j, Ee as k, _n as l, dn as m, Mn as n, Cn as o, fn as p, Nn as r, wn as s, jn as t, gn as u, sn as v, qe as w, kt as x, rn as y, he as z };