@ximatai/muyun-web-app 0.26.19 → 0.26.21

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