@ximatai/muyun-web-app 0.26.29 → 0.26.32

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 (42) hide show
  1. package/dist/{BusinessActivityLogView-fzxP3P68.js → BusinessActivityLogView-Dw_SjtBi.js} +2 -2
  2. package/dist/BusinessLogListDrawer-Bkws0k6G.js +868 -0
  3. package/dist/{CodeConfigurationView-DXrXp7kg.js → CodeConfigurationView-D-S2nX4C.js} +703 -703
  4. package/dist/{ConfigurationTranslationView-CNWJhB8C.js → ConfigurationTranslationView-CzLoZCo5.js} +21 -21
  5. package/dist/{LoginAuditLogView-D2q4WT8W.js → LoginAuditLogView-DxAlmQ9Q.js} +2 -2
  6. package/dist/ModuleActionManagementView-CfsGwDOn.js +780 -0
  7. package/dist/{ModuleGovernanceView-BFCfy5wB.js → ModuleGovernanceView-Bt2UhO-A.js} +2352 -2352
  8. package/dist/{RequestErrorLogView-C-dZhHvD.js → RequestErrorLogView--g3Uwvzx.js} +2 -2
  9. package/dist/RoleDetailWorkspaceView-Bv21G3CF.js +1435 -0
  10. package/dist/{RuntimeLogView-BuFuboQh.js → RuntimeLogView-CM47CKiD.js} +38 -38
  11. package/dist/WorkflowAdministrationView-CYq7bXS5.js +650 -0
  12. package/dist/{WorkflowConfigurationView-VLObweIg.js → WorkflowConfigurationView-D1ve8wHF.js} +189 -189
  13. package/dist/WorkflowWorkbenchView-CJXy2iRP.js +759 -0
  14. package/dist/{codeConfiguration-DbUEhnW7.js → codeConfiguration-Bls4mHm3.js} +28 -28
  15. package/dist/{configurationEditorNavigation-DZeBbg3z.js → configurationEditorNavigation-DteTknF3.js} +2 -2
  16. package/dist/index.css +1 -1
  17. package/dist/index.js +704 -646
  18. package/dist/{moduleMenuWorkspace-COanAuqc.js → moduleMenuWorkspace-CsYcDzfq.js} +197 -197
  19. package/dist/{platform-components-5joS6YaR.js → platform-components-CT5wnPa0.js} +2267 -2034
  20. package/dist/{platform-workbench-le7pFe4d.js → platform-workbench-CBLyxlvV.js} +5026 -5014
  21. package/dist/types/app/useLoginFailureFeedback.d.ts +8 -0
  22. package/dist/types/platform-components/ObjectPickerInput.vue.d.ts +13 -0
  23. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +7 -29
  24. package/dist/types/platform-components/RecordPicker.vue.d.ts +7 -31
  25. package/dist/types/platform-components/RecordReferencePicker.vue.d.ts +24 -0
  26. package/dist/types/platform-components/ReferencePicker.vue.d.ts +1 -1
  27. package/dist/types/platform-components/ReferenceSelectionPanel.vue.d.ts +20 -0
  28. package/dist/types/platform-components/UserPicker.vue.d.ts +1 -1
  29. package/dist/types/platform-components/recordFormFieldModel.d.ts +2 -0
  30. package/dist/types/platform-components/recordReferencePickerProvider.d.ts +26 -0
  31. package/dist/types/platform-components/workflowAccountOptions.d.ts +3 -3
  32. package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +2 -0
  33. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +13 -2
  34. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +8 -2
  35. package/dist/{useWorkflowConfigurationContext-B9GigSF8.js → useWorkflowConfigurationContext-DsuGHZ0U.js} +9 -9
  36. package/dist/{workspaceViews-8-LaaGxD.js → workspaceViews-BxEz6u5n.js} +523 -523
  37. package/package.json +5 -1
  38. package/dist/BusinessLogListDrawer-C7wb2R6q.js +0 -868
  39. package/dist/ModuleActionManagementView-Xd8uB3iR.js +0 -780
  40. package/dist/RoleDetailWorkspaceView-BmtEBE0r.js +0 -1435
  41. package/dist/WorkflowAdministrationView-Cb6RnlGU.js +0 -650
  42. package/dist/WorkflowWorkbenchView-CbZervUv.js +0 -759
@@ -0,0 +1,780 @@
1
+ import { n as e } from "./rolldown-runtime-BAC7EHh5.js";
2
+ import "./platform-workbench-CBLyxlvV.js";
3
+ import { E as t, F as n, Fn as ee, K as te, Lr as r, R as ne, Ua as re, Wn as ie, Xt as ae, Yn as i, _r as a, ar as o, ba as s, ei as oe, fi as se, io as ce, mr as c, nr as l, pr as u, sn as le, ur as d, vr as f, xn as ue, xt as p, y as de, yn as fe, yr as m } from "./platform-components-CT5wnPa0.js";
4
+ import { computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineComponent as S, onMounted as pe, openBlock as C, ref as w, toDisplayString as T, unref as E, withCtx as D, withModifiers as O } from "vue";
5
+ //#region src/platform-components/staticTreeResourceModuleContext.ts
6
+ function me(e, t = {}) {
7
+ let n = t.client ?? k(t.emptyQueryScopeName);
8
+ return {
9
+ ...e,
10
+ crud: n,
11
+ abilities: {
12
+ ...e.abilities,
13
+ crud: () => n,
14
+ tree: () => n,
15
+ enable: () => n,
16
+ tryCrud: () => n,
17
+ tryTree: () => e.abilities.hasTree() === !1 ? void 0 : n,
18
+ tryEnable: () => n
19
+ }
20
+ };
21
+ }
22
+ function k(e = "static.empty") {
23
+ return {
24
+ querySchema: async () => A(e),
25
+ query: async () => j(),
26
+ view: async () => ({}),
27
+ insert: async (e) => ({ record: e }),
28
+ update: async (e, t) => ({ record: t }),
29
+ delete: async () => 0,
30
+ enable: async () => 0,
31
+ disable: async () => 0,
32
+ tree: async () => M(),
33
+ treeFlat: async () => N(),
34
+ subtree: async () => M(),
35
+ sort: async () => 0
36
+ };
37
+ }
38
+ function A(e) {
39
+ return {
40
+ scopeName: e,
41
+ quickSearch: {
42
+ enabled: !1,
43
+ fields: [],
44
+ fieldSchemas: []
45
+ },
46
+ fields: [],
47
+ externalCriteria: [],
48
+ defaultSorts: []
49
+ };
50
+ }
51
+ function j() {
52
+ return {
53
+ records: [],
54
+ total: 0,
55
+ pageNum: 1,
56
+ pageSize: 20,
57
+ pages: 0,
58
+ totalKnown: !0
59
+ };
60
+ }
61
+ function M() {
62
+ return { records: [] };
63
+ }
64
+ function N() {
65
+ return { records: [] };
66
+ }
67
+ //#endregion
68
+ //#region src/views/ModuleActionManagementView.vue?vue&type=script&setup=true&lang.ts
69
+ var he = { class: "action-declaration-section" }, ge = { class: "permission-governance-section" }, _e = {
70
+ key: 0,
71
+ class: "checkbox-field"
72
+ }, ve = { class: "governance-grid" }, ye = { class: "governance-item" }, be = ["aria-label"], xe = { class: "governance-reset-slot" }, Se = { class: "governance-item" }, Ce = ["aria-label"], we = { class: "governance-reset-slot" }, Te = { class: "governance-item" }, P = ["aria-label"], Ee = { class: "governance-reset-slot" }, De = { class: "governance-switch-control" }, Oe = { class: "governance-item" }, ke = ["aria-label"], Ae = { class: "governance-reset-slot" }, je = { class: "governance-switch-control" }, Me = { class: "form-hint wide-field" }, Ne = { key: 0 }, Pe = {
73
+ key: 1,
74
+ class: "form-hint wide-field"
75
+ }, Fe = {
76
+ key: 2,
77
+ class: "checkbox-field"
78
+ }, Ie = { class: "checkbox-field" }, Le = { class: "checkbox-field" }, Re = { class: "wide-field" }, ze = { class: "wide-field" }, F = /*@__PURE__*/ S({
79
+ name: "ModuleActionManagementView",
80
+ __name: "ModuleActionManagementView",
81
+ props: {
82
+ moduleAlias: {},
83
+ moduleTitle: {},
84
+ moduleKind: {},
85
+ title: {}
86
+ },
87
+ setup(e) {
88
+ let m = ce(), S = e, k = oe({ moduleAlias: "platform.module_action" }), A = me(k, { client: se(k.http, `/platform.module/${encodeURIComponent(S.moduleAlias)}/actions`) }), j = w(""), M = w(!1), N = w([]), F = de({
89
+ language: m,
90
+ context: A,
91
+ confirmAction: (e) => ee(e, m),
92
+ emptyDraft: () => q(S.moduleAlias),
93
+ normalizeDraft: (e) => J(e, S.moduleAlias),
94
+ copyRecord: (e) => ({ ...e }),
95
+ titleOf: Q,
96
+ get fallbackTitle() {
97
+ return m.t("platform.unsaved-source.ModuleActionManagementView", "模块动作");
98
+ },
99
+ get createTitle() {
100
+ return m.t("platform.screen.ModuleActionManagementView.new-action", "新建动作");
101
+ },
102
+ get requiredMessage() {
103
+ return s(m, "platform.screen.ModuleActionManagementView.the-action-code-is-required", "动作编码不能为空");
104
+ },
105
+ isValid: (e) => !!e.actionCode?.trim(),
106
+ get recordName() {
107
+ return m.t("platform.governance.tab.actions", "动作");
108
+ },
109
+ get deleteTitle() {
110
+ return m.t("platform.screen.ModuleActionManagementView.delete-action", "删除动作");
111
+ },
112
+ get saveDeniedMessage() {
113
+ return s(m, "platform.screen.ModuleActionManagementView.you-do-not-have-permission-to-save-module-actions", "当前用户无权保存模块动作");
114
+ },
115
+ get createDeniedMessage() {
116
+ return s(m, "platform.screen.ModuleActionManagementView.you-do-not-have-permission-to-create-module-actions", "当前用户无权新建模块动作");
117
+ },
118
+ get enableDeniedMessage() {
119
+ return s(m, "platform.screen.ModuleActionManagementView.you-do-not-have-permission-to-enable-or-disable-module", "当前用户无权变更模块动作启停状态");
120
+ },
121
+ deleteDeniedMessage: () => s(m, "platform.screen.ModuleActionManagementView.you-do-not-have-permission-to-delete-module-actions", "当前用户无权删除模块动作"),
122
+ canDeleteRecord: (e) => e.systemManaged !== !0,
123
+ canEnableRecord: (e) => e.systemManaged !== !0
124
+ }), { selected: I, draft: L, mode: R, reloadKey: z, saving: B, cardTitle: Be, canCreate: Ve, canEnable: He } = F, Ue = h(() => {
125
+ if (R.value === "view") return !1;
126
+ let e = I.value ? J(I.value, S.moduleAlias) : q(S.moduleAlias);
127
+ return JSON.stringify(L.value) !== JSON.stringify(e);
128
+ });
129
+ r(() => m.t("platform.unsaved-source.ModuleActionManagementView", "模块动作"), () => Ue.value);
130
+ let V = h(() => A.can("sort") === !0), H = h(() => R.value !== "view" || B.value || !!j.value.trim()), We = h(() => Ve.value), Ge = h(() => N.value.map((e) => ({
131
+ value: e.executorKey,
132
+ label: e.description ? `${e.title} · ${e.description}` : e.title
133
+ }))), Ke = h(() => (N.value.find((e) => e.executorKey === L.value.executorKey)?.supportedLevels ?? [
134
+ "LIST",
135
+ "RECORD",
136
+ "BATCH",
137
+ "ANY"
138
+ ]).map((e) => ({
139
+ value: e,
140
+ label: {
141
+ LIST: m.t("platform.page.composition.list", "列表"),
142
+ RECORD: m.t("platform.screen.ModuleActionManagementView.single-record", "单条记录"),
143
+ BATCH: m.t("platform.screen.ModuleActionManagementView.batch", "批量"),
144
+ ANY: m.t("platform.screen.ModuleActionManagementView.any", "任意")
145
+ }[e]
146
+ }))), qe = h(() => [
147
+ "actionCode",
148
+ "title",
149
+ "category",
150
+ "actionLevel",
151
+ "accessMode",
152
+ "executorType",
153
+ ...Z(L.value.executorKey) ? ["executorKey"] : [],
154
+ "actionAuth",
155
+ "dataAuth",
156
+ "defaultGrantPolicy",
157
+ ...Z(L.value.availableExpression) ? ["availableExpression"] : [],
158
+ ...Z(L.value.unavailableMessage) ? ["unavailableMessage"] : [],
159
+ ...L.value.sourceType ? ["sourceType"] : [],
160
+ ...Z(L.value.bindingAlias) ? ["bindingAlias"] : []
161
+ ]), Je = h(() => [
162
+ "actionCode",
163
+ "title",
164
+ "category",
165
+ "actionLevel",
166
+ "executorType",
167
+ ...Z(L.value.executorKey) ? ["executorKey"] : [],
168
+ ...L.value.sourceType ? ["sourceType"] : []
169
+ ]);
170
+ pe(() => void tt());
171
+ let Ye = h(() => F.readonly.value), U = h(() => Ye.value || F.saving.value), Xe = h(() => {
172
+ if (F.mode.value !== "view") return [
173
+ ...F.mode.value === "edit" && F.selected.value?.systemManaged === !0 && $e(L.value) ? [{
174
+ key: "reset-permission-governance",
175
+ actionCode: "update",
176
+ title: m.t("platform.screen.ModuleActionManagementView.reset-all", "全部重置"),
177
+ disabled: F.saving.value
178
+ }] : [],
179
+ {
180
+ key: "cancel",
181
+ title: m.t("platform.action.cancel", "取消"),
182
+ disabled: F.saving.value
183
+ },
184
+ {
185
+ key: "save",
186
+ actionCode: F.mode.value === "create" ? "create" : "update",
187
+ title: F.saving.value ? m.t("platform.action.saving", "保存中") : m.t("platform.action.save", "保存"),
188
+ primary: !0,
189
+ loading: F.saving.value
190
+ }
191
+ ];
192
+ let e = F.selected.value;
193
+ return [{
194
+ key: "edit",
195
+ actionCode: "update",
196
+ title: m.t("platform.action.edit", "编辑"),
197
+ disabled: !e || !F.canUpdate.value
198
+ }, {
199
+ key: "delete",
200
+ actionCode: "delete",
201
+ title: m.t("platform.action.delete", "删除"),
202
+ danger: !0,
203
+ loading: F.saving.value,
204
+ disabled: !e || e.systemManaged === !0 || !F.canDelete.value
205
+ }];
206
+ });
207
+ function Ze(e) {
208
+ let t = e;
209
+ return {
210
+ title: Q(t),
211
+ secondary: t.actionCode,
212
+ tag: t.systemManaged === !0 ? m.t("platform.screen.pageCompositionSession.platform-managed", "平台托管") : t.executorKey ? m.t("platform.screen.RoleAccountGrantDrawer.assigned", "已绑定") : m.t("platform.screen.PageCompositionTree.binding-pending", "待绑定"),
213
+ muted: t.enabled === !1
214
+ };
215
+ }
216
+ function Qe(e) {
217
+ e.key === "edit" && F.startEdit(), e.key === "delete" && F.removeSelected(), e.key === "reset-permission-governance" && et(), e.key === "cancel" && F.cancelEdit(), e.key === "save" && F.save();
218
+ }
219
+ function $e(e) {
220
+ return [
221
+ e.accessModeOverride,
222
+ e.actionAuthOverride,
223
+ e.dataAuthOverride,
224
+ e.defaultGrantPolicyOverride
225
+ ].some((e) => e != null);
226
+ }
227
+ function W(e) {
228
+ return L.value[e] != null;
229
+ }
230
+ function G(e) {
231
+ K(e, void 0);
232
+ }
233
+ function et() {
234
+ F.draft.value = {
235
+ ...F.draft.value,
236
+ accessModeOverride: void 0,
237
+ actionAuthOverride: void 0,
238
+ dataAuthOverride: void 0,
239
+ defaultGrantPolicyOverride: void 0
240
+ };
241
+ }
242
+ function K(e, t) {
243
+ F.draft.value = {
244
+ ...F.draft.value,
245
+ [e]: t ?? void 0
246
+ };
247
+ }
248
+ async function tt() {
249
+ try {
250
+ N.value = await k.http.request({ path: "/platform.module/action-executors" });
251
+ } catch (e) {
252
+ N.value = [], ue(e, {
253
+ language: m,
254
+ source: "module-action-management",
255
+ phase: "load"
256
+ });
257
+ }
258
+ }
259
+ function nt() {
260
+ F.startCreate();
261
+ }
262
+ function rt(e) {
263
+ let t = typeof e == "string" ? e : void 0, n = N.value.find((e) => e.executorKey === t);
264
+ K("executorKey", t), n?.supportedLevels.length && K("actionLevel", n.supportedLevels[0]);
265
+ }
266
+ function q(e) {
267
+ return {
268
+ moduleAlias: e,
269
+ actionCode: "",
270
+ title: "",
271
+ category: "CUSTOM",
272
+ actionLevel: "ANY",
273
+ accessMode: "AUTH_REQUIRED",
274
+ actionAuth: !0,
275
+ dataAuth: !1,
276
+ defaultGrantPolicy: "NONE",
277
+ executorType: "SERVICE",
278
+ enabled: !0,
279
+ systemManaged: !1
280
+ };
281
+ }
282
+ function J(e, t) {
283
+ return {
284
+ ...e,
285
+ moduleAlias: t,
286
+ actionCode: Y(e.actionCode),
287
+ title: X(e.title) ?? Y(e.actionCode),
288
+ entityAlias: X(e.entityAlias),
289
+ permissionActionCode: X(e.permissionActionCode),
290
+ availableExpression: X(e.availableExpression),
291
+ unavailableMessage: X(e.unavailableMessage),
292
+ executorKey: X(e.executorKey)
293
+ };
294
+ }
295
+ function Y(e) {
296
+ return e?.trim() ?? "";
297
+ }
298
+ function X(e) {
299
+ return e?.trim() || void 0;
300
+ }
301
+ function Z(e) {
302
+ return !!e?.trim();
303
+ }
304
+ function Q(e) {
305
+ return re(e, "title", m)?.trim() || e.actionCode?.trim() || e.id || m.t("platform.screen.ModuleActionManagementView.untitled-action", "未命名动作");
306
+ }
307
+ function $(e, t) {
308
+ let n = {
309
+ category: {
310
+ STANDARD: m.t("platform.screen.RoleAuthorizationView.standard-action", "标准动作"),
311
+ CUSTOM: m.t("platform.screen.ModuleActionManagementView.custom-action", "自定义动作"),
312
+ DIALOG: m.t("platform.screen.ModuleActionManagementView.dialog-action", "弹窗动作"),
313
+ WORKFLOW: m.t("platform.screen.ModuleActionManagementView.workflow-action", "工作流动作"),
314
+ GENERATE: m.t("platform.screen.ModuleActionManagementView.generation-action", "生成动作")
315
+ },
316
+ actionLevel: {
317
+ LIST: m.t("platform.page.composition.list", "列表"),
318
+ RECORD: m.t("platform.screen.ModuleActionManagementView.single-record", "单条记录"),
319
+ BATCH: m.t("platform.screen.ModuleActionManagementView.batch", "批量"),
320
+ ANY: m.t("platform.screen.ModuleActionManagementView.any", "任意")
321
+ },
322
+ accessMode: {
323
+ AUTH_REQUIRED: m.t("platform.screen.ModuleActionManagementView.authorization-required", "需要授权"),
324
+ LOGIN_REQUIRED: m.t("platform.screen.ModuleActionManagementView.signed-in-access", "登录可用"),
325
+ ANONYMOUS_ALLOWED: m.t("platform.screen.ModuleActionManagementView.anonymous-access", "匿名可用")
326
+ },
327
+ executorType: {
328
+ STANDARD: m.t("platform.screen.ModuleActionManagementView.platform-standard", "平台标准"),
329
+ SERVICE: m.t("platform.screen.ModuleActionManagementView.custom-service", "服务(二开)"),
330
+ DIALOG: m.t("platform.screen.ModuleActionManagementView.dialog-protocol", "弹窗协议"),
331
+ WORKFLOW: m.t("platform.screen.ModuleActionManagementView.workflow", "工作流"),
332
+ GENERATE: m.t("platform.screen.ModuleActionManagementView.generator", "生成器")
333
+ },
334
+ defaultGrantPolicy: {
335
+ NONE: m.t("platform.screen.ModuleActionManagementView.no-default-grant", "不默认授予"),
336
+ ANY_LOGIN_USER: m.t("platform.screen.ModuleActionManagementView.all-signed-in-users", "所有登录用户"),
337
+ OWNER: m.t("platform.screen.ModuleActionManagementView.record-owner", "记录所有者"),
338
+ ASSIGNEE: m.t("platform.screen.WorkflowWorkbenchView.processors", "办理人"),
339
+ MEMBER: m.t("platform.screen.ModuleActionManagementView.member", "成员")
340
+ },
341
+ sourceType: {
342
+ STATIC_MODULE: m.t("platform.screen.ModuleActionManagementView.static-module-declaration", "静态模块声明"),
343
+ CODE_EXTENSION: m.t("platform.screen.ModuleActionManagementView.code-extension", "代码扩展"),
344
+ DYNAMIC_MODULE: m.t("platform.screen.ModuleActionManagementView.dynamic-module-configuration", "动态模块配置"),
345
+ WORKFLOW_DEFINITION: m.t("platform.screen.ModuleActionManagementView.workflow-definition", "工作流定义"),
346
+ WORKFLOW_RUNTIME: m.t("platform.screen.ModuleActionManagementView.workflow-runtime", "工作流运行时"),
347
+ RECORD_GENERATION_RULE: m.t("platform.screen.ModuleActionManagementView.document-generation-rule", "生单规则"),
348
+ DOCUMENT_RELATION: m.t("platform.screen.ModuleActionManagementView.document-relation", "单据关系"),
349
+ PRINT_TEMPLATE: m.t("platform.screen.ModuleActionManagementView.print-template", "打印模板")
350
+ }
351
+ };
352
+ return e === "actionAuth" || e === "dataAuth" ? t === !0 ? m.t("platform.screen.WorkflowWorkbenchView.enabled", "启用") : m.t("platform.screen.ModuleActionManagementView.not-enabled", "未启用") : typeof t == "string" ? n[e]?.[t] : void 0;
353
+ }
354
+ return (ee, r) => (C(), g(E(t), {
355
+ "explorer-title": E(m).t("platform.unsaved-source.ModuleActionManagementView", "模块动作"),
356
+ "refresh-title": E(m).t("platform.screen.ModuleActionManagementView.refresh-actions", "刷新动作"),
357
+ mode: E(R),
358
+ "detail-title": E(Be),
359
+ "explorer-search-keyword": j.value,
360
+ "explorer-search-placeholder": E(m).t("platform.screen.ModuleActionManagementView.search-action-name-or-code", "搜索动作名称或编码"),
361
+ "onUpdate:explorerSearchKeyword": r[25] ||= (e) => j.value = e,
362
+ onRefresh: r[26] ||= (e) => z.value += 1
363
+ }, {
364
+ "explorer-actions": D(() => [V.value ? (C(), g(E(te), {
365
+ key: 0,
366
+ "icon-name": "swap-vertical",
367
+ "icon-only": "",
368
+ size: "small",
369
+ type: "text",
370
+ selected: M.value,
371
+ disabled: H.value,
372
+ title: j.value.trim() ? E(m).t("platform.screen.ModulePageHostRuntime.clear-the-search-to-reorder-records", "清空搜索后可调整排序") : E(R) === "view" ? M.value ? E(m).t("platform.screen.ModulePageHostRuntime.finish-reordering", "结束排序") : E(m).t("platform.screen.ModulePageHostRuntime.reorder", "调整排序") : E(m).t("platform.screen.ModuleActionManagementView.finish-editing-before-reordering", "结束编辑后可调整排序"),
373
+ "aria-label": M.value ? E(m).t("platform.screen.ModulePageHostRuntime.finish-reordering", "结束排序") : E(m).t("platform.screen.ModulePageHostRuntime.reorder", "调整排序"),
374
+ onClick: r[0] ||= (e) => M.value = !M.value
375
+ }, null, 8, [
376
+ "selected",
377
+ "disabled",
378
+ "title",
379
+ "aria-label"
380
+ ])) : _("v-if", !0), x(E(le), {
381
+ class: "record-panel-create-button",
382
+ context: E(A),
383
+ "action-code": "create",
384
+ title: E(m).t("platform.screen.ModuleActionManagementView.new-action", "新建动作"),
385
+ "icon-only": "",
386
+ disabled: !We.value || E(B),
387
+ onClick: nt
388
+ }, null, 8, [
389
+ "context",
390
+ "title",
391
+ "disabled"
392
+ ])]),
393
+ explorer: D(() => [x(E(fe), {
394
+ context: E(A),
395
+ "selected-id": E(I)?.id,
396
+ "reload-key": E(z),
397
+ keyword: j.value,
398
+ sorting: M.value && V.value && !H.value,
399
+ "empty-description": E(m).t("platform.screen.ModuleActionManagementView.no-actions-are-available-for-this-module", "当前模块暂无动作"),
400
+ "loading-tip": E(m).t("platform.screen.RoleAuthorizationView.loading-module-actions", "加载模块动作"),
401
+ "fallback-title": E(m).t("platform.screen.ModuleActionManagementView.untitled-action", "未命名动作"),
402
+ "item-of": Ze,
403
+ onLoaded: r[1] ||= (e) => E(F).handleListLoaded(e),
404
+ onSelect: r[2] ||= (e) => E(F).handleSelect(e)
405
+ }, null, 8, [
406
+ "context",
407
+ "selected-id",
408
+ "reload-key",
409
+ "keyword",
410
+ "sorting",
411
+ "empty-description",
412
+ "loading-tip",
413
+ "fallback-title"
414
+ ])]),
415
+ "detail-status": D(() => [E(R) === "view" && E(I) ? (C(), g(E(ne), {
416
+ key: 0,
417
+ enabled: E(I).enabled,
418
+ disabled: E(B) || E(I).systemManaged === !0 || !E(He),
419
+ loading: E(B),
420
+ "show-label": !1,
421
+ onChange: E(F).toggleEnabled
422
+ }, null, 8, [
423
+ "enabled",
424
+ "disabled",
425
+ "loading",
426
+ "onChange"
427
+ ])) : _("v-if", !0)]),
428
+ "detail-actions": D(() => [x(E(ae), {
429
+ context: E(A),
430
+ actions: Xe.value,
431
+ onAction: Qe
432
+ }, null, 8, ["context", "actions"])]),
433
+ default: D(() => [!E(I) && E(R) === "view" ? (C(), g(E(ie), {
434
+ key: 0,
435
+ description: e.moduleKind === "static" ? E(m).t("platform.screen.ModuleActionManagementView.static-module-actions-are-registered-automatically-from-java-declarations", "静态模块动作由 Java 声明自动注册") : E(m).t("platform.screen.ModuleActionManagementView.no-actions-are-available-for-this-module", "当前模块暂无动作")
436
+ }, null, 8, ["description"])) : E(R) === "view" && E(I) ? (C(), g(E(p), {
437
+ key: 1,
438
+ record: E(L),
439
+ "display-of": $,
440
+ "field-names": qe.value,
441
+ fallback: {
442
+ actionCode: { label: E(m).t("platform.screen.ModuleActionManagementView.action-code", "动作编码") },
443
+ title: { label: E(m).t("platform.screen.ModuleActionManagementView.action-name", "动作名称") },
444
+ category: { label: E(m).t("platform.screen.ModuleActionManagementView.action-category", "动作类别") },
445
+ actionLevel: { label: E(m).t("platform.screen.ModuleActionManagementView.execution-level", "执行层级") },
446
+ accessMode: { label: E(m).t("platform.screen.ModuleActionManagementView.access-mode", "访问方式") },
447
+ executorType: { label: E(m).t("platform.screen.ModuleActionManagementView.execution-method", "执行方式") },
448
+ executorKey: { label: E(m).t("platform.screen.ModuleActionManagementView.executor-implementation", "执行实现") },
449
+ actionAuth: { label: E(m).t("platform.screen.ModuleActionManagementView.action-authorization", "动作授权") },
450
+ dataAuth: { label: E(m).t("platform.screen.ModuleActionManagementView.data-authorization", "数据授权") },
451
+ defaultGrantPolicy: { label: E(m).t("platform.screen.ModuleActionManagementView.default-grant-policy", "默认授予策略") },
452
+ availableExpression: { label: E(m).t("platform.screen.ModuleActionManagementView.availability-condition", "可用条件") },
453
+ unavailableMessage: { label: E(m).t("platform.screen.ModuleActionManagementView.unavailable-message", "不可用提示") },
454
+ sourceType: { label: E(m).t("platform.screen.ModuleActionManagementView.registration-source", "注册来源") },
455
+ bindingAlias: { label: E(m).t("platform.screen.ModuleActionManagementView.binding-id", "绑定标识") }
456
+ }
457
+ }, null, 8, [
458
+ "record",
459
+ "field-names",
460
+ "fallback"
461
+ ])) : E(R) !== "create" && E(I)?.systemManaged ? (C(), v("form", {
462
+ key: 2,
463
+ class: "managed-action-editor",
464
+ onSubmit: r[12] ||= O((...e) => E(F).save && E(F).save(...e), ["prevent"])
465
+ }, [y("section", he, [y("h3", null, T(E(m).t("platform.screen.ModuleActionManagementView.action-declaration", "动作声明")), 1), x(E(p), {
466
+ record: E(L),
467
+ "display-of": $,
468
+ "field-names": Je.value,
469
+ fallback: {
470
+ actionCode: { label: E(m).t("platform.screen.ModuleActionManagementView.action-code", "动作编码") },
471
+ title: { label: E(m).t("platform.screen.ModuleActionManagementView.action-name", "动作名称") },
472
+ category: { label: E(m).t("platform.screen.ModuleActionManagementView.action-category", "动作类别") },
473
+ actionLevel: { label: E(m).t("platform.screen.ModuleActionManagementView.execution-level", "执行层级") },
474
+ executorType: { label: E(m).t("platform.screen.ModuleActionManagementView.execution-method", "执行方式") },
475
+ executorKey: { label: E(m).t("platform.screen.ModuleActionManagementView.executor-implementation", "执行实现") },
476
+ sourceType: { label: E(m).t("platform.screen.ModuleActionManagementView.registration-source", "注册来源") }
477
+ }
478
+ }, null, 8, [
479
+ "record",
480
+ "field-names",
481
+ "fallback"
482
+ ])]), y("section", ge, [
483
+ y("h3", null, T(E(m).t("platform.screen.ModuleActionManagementView.permission-governance", "权限治理")), 1),
484
+ e.moduleKind === "dynamic" ? (C(), v("label", _e, [x(E(c), {
485
+ checked: E(L).schedulable === !0,
486
+ disabled: U.value || E(L).actionLevel !== "LIST" || E(L).formSupported === !0,
487
+ "onUpdate:checked": r[3] ||= (e) => K("schedulable", e)
488
+ }, {
489
+ default: D(() => [b(T(E(m).t("platform.screen.ModuleActionManagementView.schedulable", "允许定时调用(无需表单的模块动作)")), 1)]),
490
+ _: 1
491
+ }, 8, ["checked", "disabled"])])) : _("v-if", !0),
492
+ y("div", ve, [
493
+ y("section", ye, [y("header", null, [y("div", null, [y("h4", null, [b(T(E(m).t("platform.screen.ModuleActionManagementView.access-mode", "访问方式")) + " ", 1), x(E(l), { title: E(m).t("platform.screen.ModuleActionManagementView.define-the-identity-requirements-for-invoking-this-action", "决定调用动作前需要满足的身份条件。") }, {
494
+ default: D(() => [y("button", {
495
+ type: "button",
496
+ class: "governance-help",
497
+ "aria-label": E(m).t("platform.screen.ModuleActionManagementView.access-method-description", "访问方式说明")
498
+ }, [x(E(f), { name: "help" })], 8, be)]),
499
+ _: 1
500
+ }, 8, ["title"])])]), y("span", xe, [W("accessModeOverride") ? (C(), g(E(a), {
501
+ key: 0,
502
+ type: "text",
503
+ size: "small",
504
+ disabled: U.value,
505
+ onClick: r[4] ||= (e) => G("accessModeOverride")
506
+ }, {
507
+ default: D(() => [b(T(E(m).t("platform.screen.WorkflowWorkbenchView.reset", "重置")), 1)]),
508
+ _: 1
509
+ }, 8, ["disabled"])) : _("v-if", !0)])]), x(E(u), {
510
+ value: E(L).accessModeOverride ?? E(L).accessMode,
511
+ disabled: U.value,
512
+ options: [
513
+ {
514
+ label: E(m).t("platform.screen.ModuleActionManagementView.authorization-required", "需要授权"),
515
+ value: "AUTH_REQUIRED"
516
+ },
517
+ {
518
+ label: E(m).t("platform.screen.ModuleActionManagementView.signed-in-access", "登录可用"),
519
+ value: "LOGIN_REQUIRED"
520
+ },
521
+ {
522
+ label: E(m).t("platform.screen.ModuleActionManagementView.anonymous-access", "匿名可用"),
523
+ value: "ANONYMOUS_ALLOWED"
524
+ }
525
+ ],
526
+ "onUpdate:value": r[5] ||= (e) => K("accessModeOverride", e)
527
+ }, null, 8, [
528
+ "value",
529
+ "disabled",
530
+ "options"
531
+ ])]),
532
+ y("section", Se, [y("header", null, [y("div", null, [y("h4", null, [b(T(E(m).t("platform.screen.ModuleActionManagementView.default-grant-policy", "默认授予策略")) + " ", 1), x(E(l), { title: E(m).t("platform.screen.ModuleActionManagementView.define-the-default-grant-rules-when-eligible-users-first-receive", "定义满足条件的用户首次获得动作时的默认规则。") }, {
533
+ default: D(() => [y("button", {
534
+ type: "button",
535
+ class: "governance-help",
536
+ "aria-label": E(m).t("platform.screen.ModuleActionManagementView.default-grant-policy-description", "默认授予策略说明")
537
+ }, [x(E(f), { name: "help" })], 8, Ce)]),
538
+ _: 1
539
+ }, 8, ["title"])])]), y("span", we, [W("defaultGrantPolicyOverride") ? (C(), g(E(a), {
540
+ key: 0,
541
+ type: "text",
542
+ size: "small",
543
+ disabled: U.value,
544
+ onClick: r[6] ||= (e) => G("defaultGrantPolicyOverride")
545
+ }, {
546
+ default: D(() => [b(T(E(m).t("platform.screen.WorkflowWorkbenchView.reset", "重置")), 1)]),
547
+ _: 1
548
+ }, 8, ["disabled"])) : _("v-if", !0)])]), x(E(u), {
549
+ value: E(L).defaultGrantPolicyOverride ?? E(L).defaultGrantPolicy,
550
+ disabled: U.value,
551
+ options: [
552
+ {
553
+ label: E(m).t("platform.screen.ModuleActionManagementView.no-default-grant", "不默认授予"),
554
+ value: "NONE"
555
+ },
556
+ {
557
+ label: E(m).t("platform.screen.ModuleActionManagementView.all-signed-in-users", "所有登录用户"),
558
+ value: "ANY_LOGIN_USER"
559
+ },
560
+ {
561
+ label: E(m).t("platform.screen.ModuleActionManagementView.record-owner", "记录所有者"),
562
+ value: "OWNER"
563
+ },
564
+ {
565
+ label: E(m).t("platform.screen.WorkflowWorkbenchView.processors", "办理人"),
566
+ value: "ASSIGNEE"
567
+ },
568
+ {
569
+ label: E(m).t("platform.screen.ModuleActionManagementView.member", "成员"),
570
+ value: "MEMBER"
571
+ }
572
+ ],
573
+ "onUpdate:value": r[7] ||= (e) => K("defaultGrantPolicyOverride", e)
574
+ }, null, 8, [
575
+ "value",
576
+ "disabled",
577
+ "options"
578
+ ])]),
579
+ y("section", Te, [y("header", null, [y("div", null, [y("h4", null, [b(T(E(m).t("platform.screen.ModuleActionManagementView.action-authorization", "动作授权")) + " ", 1), x(E(l), { title: E(m).t("platform.screen.ModuleActionManagementView.control-whether-roles-require-an-explicit-grant-for-this-action", "控制角色是否需要被显式授予该动作。") }, {
580
+ default: D(() => [y("button", {
581
+ type: "button",
582
+ class: "governance-help",
583
+ "aria-label": E(m).t("platform.screen.ModuleActionManagementView.action-permission-description", "动作授权说明")
584
+ }, [x(E(f), { name: "help" })], 8, P)]),
585
+ _: 1
586
+ }, 8, ["title"])])]), y("span", Ee, [W("actionAuthOverride") ? (C(), g(E(a), {
587
+ key: 0,
588
+ type: "text",
589
+ size: "small",
590
+ disabled: U.value,
591
+ onClick: r[8] ||= (e) => G("actionAuthOverride")
592
+ }, {
593
+ default: D(() => [b(T(E(m).t("platform.screen.WorkflowWorkbenchView.reset", "重置")), 1)]),
594
+ _: 1
595
+ }, 8, ["disabled"])) : _("v-if", !0)])]), y("div", De, [x(E(i), {
596
+ checked: (E(L).actionAuthOverride ?? E(L).actionAuth) !== !1,
597
+ disabled: U.value,
598
+ "checked-text": E(m).t("platform.screen.ModuleActionManagementView.on", "开"),
599
+ "unchecked-text": E(m).t("platform.screen.ModuleActionManagementView.off", "关"),
600
+ "onUpdate:checked": r[9] ||= (e) => K("actionAuthOverride", e)
601
+ }, null, 8, [
602
+ "checked",
603
+ "disabled",
604
+ "checked-text",
605
+ "unchecked-text"
606
+ ]), y("strong", null, T((E(L).actionAuthOverride ?? E(L).actionAuth) === !1 ? E(m).t("platform.screen.ModuleActionManagementView.not-enabled", "未启用") : E(m).t("platform.screen.DynamicModuleWorkspaceDetailView.enabled", "已启用")), 1)])]),
607
+ y("section", Oe, [y("header", null, [y("div", null, [y("h4", null, [b(T(E(m).t("platform.screen.ModuleActionManagementView.data-authorization", "数据授权")) + " ", 1), x(E(l), { title: E(m).t("platform.screen.ModuleActionManagementView.when-enabled-reads-and-execution-are-checked-against-the-data", "启用后,读取和执行会继续按数据范围校验。") }, {
608
+ default: D(() => [y("button", {
609
+ type: "button",
610
+ class: "governance-help",
611
+ "aria-label": E(m).t("platform.screen.ModuleActionManagementView.data-permission-description", "数据授权说明")
612
+ }, [x(E(f), { name: "help" })], 8, ke)]),
613
+ _: 1
614
+ }, 8, ["title"])])]), y("span", Ae, [W("dataAuthOverride") ? (C(), g(E(a), {
615
+ key: 0,
616
+ type: "text",
617
+ size: "small",
618
+ disabled: U.value,
619
+ onClick: r[10] ||= (e) => G("dataAuthOverride")
620
+ }, {
621
+ default: D(() => [b(T(E(m).t("platform.screen.WorkflowWorkbenchView.reset", "重置")), 1)]),
622
+ _: 1
623
+ }, 8, ["disabled"])) : _("v-if", !0)])]), y("div", je, [x(E(i), {
624
+ checked: (E(L).dataAuthOverride ?? E(L).dataAuth) === !0,
625
+ disabled: U.value,
626
+ "checked-text": E(m).t("platform.screen.ModuleActionManagementView.on", "开"),
627
+ "unchecked-text": E(m).t("platform.screen.ModuleActionManagementView.off", "关"),
628
+ "onUpdate:checked": r[11] ||= (e) => K("dataAuthOverride", e)
629
+ }, null, 8, [
630
+ "checked",
631
+ "disabled",
632
+ "checked-text",
633
+ "unchecked-text"
634
+ ]), y("strong", null, T((E(L).dataAuthOverride ?? E(L).dataAuth) === !0 ? E(m).t("platform.screen.DynamicModuleWorkspaceDetailView.enabled", "已启用") : E(m).t("platform.screen.ModuleActionManagementView.not-enabled", "未启用")), 1)])])
635
+ ])
636
+ ])], 32)) : (C(), v("form", {
637
+ key: 3,
638
+ class: "static-record-form",
639
+ onSubmit: r[24] ||= O((...e) => E(F).save && E(F).save(...e), ["prevent"])
640
+ }, [
641
+ y("p", Me, T(E(m).t("platform.screen.ModuleActionManagementView.you-can-save-an-action-before-binding-its-executor-unbound", "可以先保存动作,再绑定执行能力。待绑定动作不可执行,页面引用后需完成绑定才能发布。")), 1),
642
+ y("label", null, [y("span", null, T(E(m).t("platform.screen.ModuleActionManagementView.action-code", "动作编码")), 1), x(E(d), {
643
+ value: E(L).actionCode,
644
+ disabled: U.value,
645
+ "onUpdate:value": r[13] ||= (e) => K("actionCode", e)
646
+ }, null, 8, ["value", "disabled"])]),
647
+ y("label", null, [y("span", null, T(E(m).t("platform.screen.ModuleActionManagementView.action-name", "动作名称")), 1), x(E(d), {
648
+ value: E(L).title,
649
+ disabled: U.value,
650
+ "onUpdate:value": r[14] ||= (e) => K("title", e)
651
+ }, null, 8, ["value", "disabled"])]),
652
+ y("label", null, [y("span", null, T(E(m).t("platform.screen.ModuleActionManagementView.execution-level", "执行层级")), 1), x(E(u), {
653
+ value: E(L).actionLevel,
654
+ disabled: U.value,
655
+ options: Ke.value,
656
+ "onUpdate:value": r[15] ||= (e) => K("actionLevel", e)
657
+ }, null, 8, [
658
+ "value",
659
+ "disabled",
660
+ "options"
661
+ ])]),
662
+ y("label", null, [y("span", null, T(E(m).t("platform.screen.ModuleActionManagementView.access-mode", "访问方式")), 1), x(E(u), {
663
+ value: E(L).accessMode,
664
+ disabled: U.value,
665
+ options: [
666
+ {
667
+ label: E(m).t("platform.screen.ModuleActionManagementView.authorization-required", "需要授权"),
668
+ value: "AUTH_REQUIRED"
669
+ },
670
+ {
671
+ label: E(m).t("platform.screen.ModuleActionManagementView.signed-in-access", "登录可用"),
672
+ value: "LOGIN_REQUIRED"
673
+ },
674
+ {
675
+ label: E(m).t("platform.screen.ModuleActionManagementView.anonymous-access", "匿名可用"),
676
+ value: "ANONYMOUS_ALLOWED"
677
+ }
678
+ ],
679
+ "onUpdate:value": r[16] ||= (e) => K("accessMode", e)
680
+ }, null, 8, [
681
+ "value",
682
+ "disabled",
683
+ "options"
684
+ ])]),
685
+ e.moduleKind === "dynamic" ? (C(), v("label", Ne, [y("span", null, T(E(m).t("platform.screen.ModuleActionManagementView.executor-can-be-bound-later", "执行能力(可稍后绑定)")), 1), x(E(u), {
686
+ value: E(L).executorKey,
687
+ "allow-clear": "",
688
+ placeholder: E(m).t("platform.screen.PageCompositionTree.binding-pending", "待绑定"),
689
+ disabled: U.value,
690
+ options: Ge.value,
691
+ "onUpdate:value": r[17] ||= (e) => rt(e)
692
+ }, null, 8, [
693
+ "value",
694
+ "placeholder",
695
+ "disabled",
696
+ "options"
697
+ ])])) : _("v-if", !0),
698
+ e.moduleKind === "dynamic" ? _("v-if", !0) : (C(), v("p", Pe, T(E(m).t("platform.screen.ModuleActionManagementView.static-modules-bind-an-executor-through-a-code-action-declaration", "静态模块通过同编码的代码动作声明绑定执行能力。")), 1)),
699
+ e.moduleKind === "dynamic" ? (C(), v("label", Fe, [x(E(c), {
700
+ checked: E(L).schedulable === !0,
701
+ disabled: U.value || E(L).actionLevel !== "LIST" || E(L).formSupported === !0,
702
+ "onUpdate:checked": r[18] ||= (e) => K("schedulable", e)
703
+ }, {
704
+ default: D(() => [b(T(E(m).t("platform.screen.ModuleActionManagementView.schedulable", "允许定时调用(无需表单的模块动作)")), 1)]),
705
+ _: 1
706
+ }, 8, ["checked", "disabled"])])) : _("v-if", !0),
707
+ y("label", Ie, [x(E(c), {
708
+ checked: E(L).actionAuth !== !1,
709
+ disabled: U.value,
710
+ "onUpdate:checked": r[19] ||= (e) => K("actionAuth", e)
711
+ }, {
712
+ default: D(() => [b(T(E(m).t("platform.screen.ModuleActionManagementView.enable-action-permissions", "启用动作授权")), 1)]),
713
+ _: 1
714
+ }, 8, ["checked", "disabled"])]),
715
+ y("label", Le, [x(E(c), {
716
+ checked: E(L).dataAuth === !0,
717
+ disabled: U.value,
718
+ "onUpdate:checked": r[20] ||= (e) => K("dataAuth", e)
719
+ }, {
720
+ default: D(() => [b(T(E(m).t("platform.screen.ModuleActionManagementView.enable-data-permissions", "启用数据授权")), 1)]),
721
+ _: 1
722
+ }, 8, ["checked", "disabled"])]),
723
+ y("label", null, [y("span", null, T(E(m).t("platform.screen.ModuleActionManagementView.default-grant-policy", "默认授予策略")), 1), x(E(u), {
724
+ value: E(L).defaultGrantPolicy,
725
+ disabled: U.value,
726
+ options: [
727
+ {
728
+ label: E(m).t("platform.screen.ModuleActionManagementView.no-default-grant", "不默认授予"),
729
+ value: "NONE"
730
+ },
731
+ {
732
+ label: E(m).t("platform.screen.ModuleActionManagementView.all-signed-in-users", "所有登录用户"),
733
+ value: "ANY_LOGIN_USER"
734
+ },
735
+ {
736
+ label: E(m).t("platform.screen.ModuleActionManagementView.record-owner", "记录所有者"),
737
+ value: "OWNER"
738
+ },
739
+ {
740
+ label: E(m).t("platform.screen.WorkflowWorkbenchView.processors", "办理人"),
741
+ value: "ASSIGNEE"
742
+ },
743
+ {
744
+ label: E(m).t("platform.screen.ModuleActionManagementView.member", "成员"),
745
+ value: "MEMBER"
746
+ }
747
+ ],
748
+ "onUpdate:value": r[21] ||= (e) => K("defaultGrantPolicy", e)
749
+ }, null, 8, [
750
+ "value",
751
+ "disabled",
752
+ "options"
753
+ ])]),
754
+ y("label", Re, [y("span", null, T(E(m).t("platform.screen.ModuleActionManagementView.availability-expression", "可用条件表达式")), 1), x(E(o), {
755
+ value: E(L).availableExpression,
756
+ disabled: U.value,
757
+ "onUpdate:value": r[22] ||= (e) => K("availableExpression", e)
758
+ }, null, 8, ["value", "disabled"])]),
759
+ y("label", ze, [y("span", null, T(E(m).t("platform.screen.ModuleActionManagementView.unavailable-message", "不可用提示")), 1), x(E(o), {
760
+ value: E(L).unavailableMessage,
761
+ disabled: U.value,
762
+ "onUpdate:value": r[23] ||= (e) => K("unavailableMessage", e)
763
+ }, null, 8, ["value", "disabled"])])
764
+ ], 32)), E(I) || E(R) !== "view" ? (C(), g(E(n), {
765
+ key: 4,
766
+ record: E(L)
767
+ }, null, 8, ["record"])) : _("v-if", !0)]),
768
+ _: 1
769
+ }, 8, [
770
+ "explorer-title",
771
+ "refresh-title",
772
+ "mode",
773
+ "detail-title",
774
+ "explorer-search-keyword",
775
+ "explorer-search-placeholder"
776
+ ]));
777
+ }
778
+ }), I = /* @__PURE__ */ e({ default: () => L }), L = /*#__PURE__*/ m(F, [["__scopeId", "data-v-da01fd07"]]);
779
+ //#endregion
780
+ export { I as n, L as t };