@ximatai/muyun-web-app 0.26.29 → 0.26.31

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 +1 -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
@@ -1,780 +0,0 @@
1
- import { n as e } from "./rolldown-runtime-BAC7EHh5.js";
2
- import "./platform-workbench-le7pFe4d.js";
3
- import { E as t, F as n, Gn as ee, In as te, K as ne, R as r, Rr as i, Sn as re, St as a, Wa as ie, Xn as o, Zt as ae, ao as oe, bn as se, br as s, cn as ce, dr as c, hr as l, mr as u, or as d, pi as le, rr as f, ti as ue, vr as p, xa as m, y as de, yr as h } from "./platform-components-5joS6YaR.js";
4
- import { computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as x, createVNode as S, defineComponent as C, onMounted as fe, openBlock as w, ref as T, toDisplayString as E, unref as D, withCtx as O, withModifiers as k } from "vue";
5
- //#region src/platform-components/staticTreeResourceModuleContext.ts
6
- function pe(e, t = {}) {
7
- let n = t.client ?? A(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 A(e = "static.empty") {
23
- return {
24
- querySchema: async () => j(e),
25
- query: async () => M(),
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 () => N(),
33
- treeFlat: async () => P(),
34
- subtree: async () => N(),
35
- sort: async () => 0
36
- };
37
- }
38
- function j(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 M() {
52
- return {
53
- records: [],
54
- total: 0,
55
- pageNum: 1,
56
- pageSize: 20,
57
- pages: 0,
58
- totalKnown: !0
59
- };
60
- }
61
- function N() {
62
- return { records: [] };
63
- }
64
- function P() {
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 = {
70
- key: 0,
71
- class: "checkbox-field"
72
- }, _e = { class: "governance-grid" }, ve = { class: "governance-item" }, ye = ["aria-label"], be = { class: "governance-reset-slot" }, xe = { class: "governance-item" }, Se = ["aria-label"], Ce = { class: "governance-reset-slot" }, we = { class: "governance-item" }, Te = ["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__*/ C({
79
- name: "ModuleActionManagementView",
80
- __name: "ModuleActionManagementView",
81
- props: {
82
- moduleAlias: {},
83
- moduleTitle: {},
84
- moduleKind: {},
85
- title: {}
86
- },
87
- setup(e) {
88
- let s = oe(), C = e, A = ue({ moduleAlias: "platform.module_action" }), j = pe(A, { client: le(A.http, `/platform.module/${encodeURIComponent(C.moduleAlias)}/actions`) }), M = T(""), N = T(!1), P = T([]), F = de({
89
- language: s,
90
- context: j,
91
- confirmAction: (e) => te(e, s),
92
- emptyDraft: () => q(C.moduleAlias),
93
- normalizeDraft: (e) => J(e, C.moduleAlias),
94
- copyRecord: (e) => ({ ...e }),
95
- titleOf: Q,
96
- get fallbackTitle() {
97
- return s.t("platform.unsaved-source.ModuleActionManagementView", "模块动作");
98
- },
99
- get createTitle() {
100
- return s.t("platform.screen.ModuleActionManagementView.new-action", "新建动作");
101
- },
102
- get requiredMessage() {
103
- return m(s, "platform.screen.ModuleActionManagementView.the-action-code-is-required", "动作编码不能为空");
104
- },
105
- isValid: (e) => !!e.actionCode?.trim(),
106
- get recordName() {
107
- return s.t("platform.governance.tab.actions", "动作");
108
- },
109
- get deleteTitle() {
110
- return s.t("platform.screen.ModuleActionManagementView.delete-action", "删除动作");
111
- },
112
- get saveDeniedMessage() {
113
- return m(s, "platform.screen.ModuleActionManagementView.you-do-not-have-permission-to-save-module-actions", "当前用户无权保存模块动作");
114
- },
115
- get createDeniedMessage() {
116
- return m(s, "platform.screen.ModuleActionManagementView.you-do-not-have-permission-to-create-module-actions", "当前用户无权新建模块动作");
117
- },
118
- get enableDeniedMessage() {
119
- return m(s, "platform.screen.ModuleActionManagementView.you-do-not-have-permission-to-enable-or-disable-module", "当前用户无权变更模块动作启停状态");
120
- },
121
- deleteDeniedMessage: () => m(s, "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 = g(() => {
125
- if (R.value === "view") return !1;
126
- let e = I.value ? J(I.value, C.moduleAlias) : q(C.moduleAlias);
127
- return JSON.stringify(L.value) !== JSON.stringify(e);
128
- });
129
- i(() => s.t("platform.unsaved-source.ModuleActionManagementView", "模块动作"), () => Ue.value);
130
- let V = g(() => j.can("sort") === !0), H = g(() => R.value !== "view" || B.value || !!M.value.trim()), We = g(() => Ve.value), Ge = g(() => P.value.map((e) => ({
131
- value: e.executorKey,
132
- label: e.description ? `${e.title} · ${e.description}` : e.title
133
- }))), Ke = g(() => (P.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: s.t("platform.page.composition.list", "列表"),
142
- RECORD: s.t("platform.screen.ModuleActionManagementView.single-record", "单条记录"),
143
- BATCH: s.t("platform.screen.ModuleActionManagementView.batch", "批量"),
144
- ANY: s.t("platform.screen.ModuleActionManagementView.any", "任意")
145
- }[e]
146
- }))), qe = g(() => [
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 = g(() => [
162
- "actionCode",
163
- "title",
164
- "category",
165
- "actionLevel",
166
- "executorType",
167
- ...Z(L.value.executorKey) ? ["executorKey"] : [],
168
- ...L.value.sourceType ? ["sourceType"] : []
169
- ]);
170
- fe(() => void tt());
171
- let Ye = g(() => F.readonly.value), U = g(() => Ye.value || F.saving.value), Xe = g(() => {
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: s.t("platform.screen.ModuleActionManagementView.reset-all", "全部重置"),
177
- disabled: F.saving.value
178
- }] : [],
179
- {
180
- key: "cancel",
181
- title: s.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 ? s.t("platform.action.saving", "保存中") : s.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: s.t("platform.action.edit", "编辑"),
197
- disabled: !e || !F.canUpdate.value
198
- }, {
199
- key: "delete",
200
- actionCode: "delete",
201
- title: s.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 ? s.t("platform.screen.pageCompositionSession.platform-managed", "平台托管") : t.executorKey ? s.t("platform.screen.RoleAccountGrantDrawer.assigned", "已绑定") : s.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
- P.value = await A.http.request({ path: "/platform.module/action-executors" });
251
- } catch (e) {
252
- P.value = [], re(e, {
253
- language: s,
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 = P.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 ie(e, "title", s)?.trim() || e.actionCode?.trim() || e.id || s.t("platform.screen.ModuleActionManagementView.untitled-action", "未命名动作");
306
- }
307
- function $(e, t) {
308
- let n = {
309
- category: {
310
- STANDARD: s.t("platform.screen.RoleAuthorizationView.standard-action", "标准动作"),
311
- CUSTOM: s.t("platform.screen.ModuleActionManagementView.custom-action", "自定义动作"),
312
- DIALOG: s.t("platform.screen.ModuleActionManagementView.dialog-action", "弹窗动作"),
313
- WORKFLOW: s.t("platform.screen.ModuleActionManagementView.workflow-action", "工作流动作"),
314
- GENERATE: s.t("platform.screen.ModuleActionManagementView.generation-action", "生成动作")
315
- },
316
- actionLevel: {
317
- LIST: s.t("platform.page.composition.list", "列表"),
318
- RECORD: s.t("platform.screen.ModuleActionManagementView.single-record", "单条记录"),
319
- BATCH: s.t("platform.screen.ModuleActionManagementView.batch", "批量"),
320
- ANY: s.t("platform.screen.ModuleActionManagementView.any", "任意")
321
- },
322
- accessMode: {
323
- AUTH_REQUIRED: s.t("platform.screen.ModuleActionManagementView.authorization-required", "需要授权"),
324
- LOGIN_REQUIRED: s.t("platform.screen.ModuleActionManagementView.signed-in-access", "登录可用"),
325
- ANONYMOUS_ALLOWED: s.t("platform.screen.ModuleActionManagementView.anonymous-access", "匿名可用")
326
- },
327
- executorType: {
328
- STANDARD: s.t("platform.screen.ModuleActionManagementView.platform-standard", "平台标准"),
329
- SERVICE: s.t("platform.screen.ModuleActionManagementView.custom-service", "服务(二开)"),
330
- DIALOG: s.t("platform.screen.ModuleActionManagementView.dialog-protocol", "弹窗协议"),
331
- WORKFLOW: s.t("platform.screen.ModuleActionManagementView.workflow", "工作流"),
332
- GENERATE: s.t("platform.screen.ModuleActionManagementView.generator", "生成器")
333
- },
334
- defaultGrantPolicy: {
335
- NONE: s.t("platform.screen.ModuleActionManagementView.no-default-grant", "不默认授予"),
336
- ANY_LOGIN_USER: s.t("platform.screen.ModuleActionManagementView.all-signed-in-users", "所有登录用户"),
337
- OWNER: s.t("platform.screen.ModuleActionManagementView.record-owner", "记录所有者"),
338
- ASSIGNEE: s.t("platform.screen.WorkflowWorkbenchView.processors", "办理人"),
339
- MEMBER: s.t("platform.screen.ModuleActionManagementView.member", "成员")
340
- },
341
- sourceType: {
342
- STATIC_MODULE: s.t("platform.screen.ModuleActionManagementView.static-module-declaration", "静态模块声明"),
343
- CODE_EXTENSION: s.t("platform.screen.ModuleActionManagementView.code-extension", "代码扩展"),
344
- DYNAMIC_MODULE: s.t("platform.screen.ModuleActionManagementView.dynamic-module-configuration", "动态模块配置"),
345
- WORKFLOW_DEFINITION: s.t("platform.screen.ModuleActionManagementView.workflow-definition", "工作流定义"),
346
- WORKFLOW_RUNTIME: s.t("platform.screen.ModuleActionManagementView.workflow-runtime", "工作流运行时"),
347
- RECORD_GENERATION_RULE: s.t("platform.screen.ModuleActionManagementView.document-generation-rule", "生单规则"),
348
- DOCUMENT_RELATION: s.t("platform.screen.ModuleActionManagementView.document-relation", "单据关系"),
349
- PRINT_TEMPLATE: s.t("platform.screen.ModuleActionManagementView.print-template", "打印模板")
350
- }
351
- };
352
- return e === "actionAuth" || e === "dataAuth" ? t === !0 ? s.t("platform.screen.WorkflowWorkbenchView.enabled", "启用") : s.t("platform.screen.ModuleActionManagementView.not-enabled", "未启用") : typeof t == "string" ? n[e]?.[t] : void 0;
353
- }
354
- return (te, i) => (w(), _(D(t), {
355
- "explorer-title": D(s).t("platform.unsaved-source.ModuleActionManagementView", "模块动作"),
356
- "refresh-title": D(s).t("platform.screen.ModuleActionManagementView.refresh-actions", "刷新动作"),
357
- mode: D(R),
358
- "detail-title": D(Be),
359
- "explorer-search-keyword": M.value,
360
- "explorer-search-placeholder": D(s).t("platform.screen.ModuleActionManagementView.search-action-name-or-code", "搜索动作名称或编码"),
361
- "onUpdate:explorerSearchKeyword": i[25] ||= (e) => M.value = e,
362
- onRefresh: i[26] ||= (e) => z.value += 1
363
- }, {
364
- "explorer-actions": O(() => [V.value ? (w(), _(D(ne), {
365
- key: 0,
366
- "icon-name": "swap-vertical",
367
- "icon-only": "",
368
- size: "small",
369
- type: "text",
370
- selected: N.value,
371
- disabled: H.value,
372
- title: M.value.trim() ? D(s).t("platform.screen.ModulePageHostRuntime.clear-the-search-to-reorder-records", "清空搜索后可调整排序") : D(R) === "view" ? N.value ? D(s).t("platform.screen.ModulePageHostRuntime.finish-reordering", "结束排序") : D(s).t("platform.screen.ModulePageHostRuntime.reorder", "调整排序") : D(s).t("platform.screen.ModuleActionManagementView.finish-editing-before-reordering", "结束编辑后可调整排序"),
373
- "aria-label": N.value ? D(s).t("platform.screen.ModulePageHostRuntime.finish-reordering", "结束排序") : D(s).t("platform.screen.ModulePageHostRuntime.reorder", "调整排序"),
374
- onClick: i[0] ||= (e) => N.value = !N.value
375
- }, null, 8, [
376
- "selected",
377
- "disabled",
378
- "title",
379
- "aria-label"
380
- ])) : v("v-if", !0), S(D(ce), {
381
- class: "record-panel-create-button",
382
- context: D(j),
383
- "action-code": "create",
384
- title: D(s).t("platform.screen.ModuleActionManagementView.new-action", "新建动作"),
385
- "icon-only": "",
386
- disabled: !We.value || D(B),
387
- onClick: nt
388
- }, null, 8, [
389
- "context",
390
- "title",
391
- "disabled"
392
- ])]),
393
- explorer: O(() => [S(D(se), {
394
- context: D(j),
395
- "selected-id": D(I)?.id,
396
- "reload-key": D(z),
397
- keyword: M.value,
398
- sorting: N.value && V.value && !H.value,
399
- "empty-description": D(s).t("platform.screen.ModuleActionManagementView.no-actions-are-available-for-this-module", "当前模块暂无动作"),
400
- "loading-tip": D(s).t("platform.screen.RoleAuthorizationView.loading-module-actions", "加载模块动作"),
401
- "fallback-title": D(s).t("platform.screen.ModuleActionManagementView.untitled-action", "未命名动作"),
402
- "item-of": Ze,
403
- onLoaded: i[1] ||= (e) => D(F).handleListLoaded(e),
404
- onSelect: i[2] ||= (e) => D(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": O(() => [D(R) === "view" && D(I) ? (w(), _(D(r), {
416
- key: 0,
417
- enabled: D(I).enabled,
418
- disabled: D(B) || D(I).systemManaged === !0 || !D(He),
419
- loading: D(B),
420
- "show-label": !1,
421
- onChange: D(F).toggleEnabled
422
- }, null, 8, [
423
- "enabled",
424
- "disabled",
425
- "loading",
426
- "onChange"
427
- ])) : v("v-if", !0)]),
428
- "detail-actions": O(() => [S(D(ae), {
429
- context: D(j),
430
- actions: Xe.value,
431
- onAction: Qe
432
- }, null, 8, ["context", "actions"])]),
433
- default: O(() => [!D(I) && D(R) === "view" ? (w(), _(D(ee), {
434
- key: 0,
435
- description: e.moduleKind === "static" ? D(s).t("platform.screen.ModuleActionManagementView.static-module-actions-are-registered-automatically-from-java-declarations", "静态模块动作由 Java 声明自动注册") : D(s).t("platform.screen.ModuleActionManagementView.no-actions-are-available-for-this-module", "当前模块暂无动作")
436
- }, null, 8, ["description"])) : D(R) === "view" && D(I) ? (w(), _(D(a), {
437
- key: 1,
438
- record: D(L),
439
- "display-of": $,
440
- "field-names": qe.value,
441
- fallback: {
442
- actionCode: { label: D(s).t("platform.screen.ModuleActionManagementView.action-code", "动作编码") },
443
- title: { label: D(s).t("platform.screen.ModuleActionManagementView.action-name", "动作名称") },
444
- category: { label: D(s).t("platform.screen.ModuleActionManagementView.action-category", "动作类别") },
445
- actionLevel: { label: D(s).t("platform.screen.ModuleActionManagementView.execution-level", "执行层级") },
446
- accessMode: { label: D(s).t("platform.screen.ModuleActionManagementView.access-mode", "访问方式") },
447
- executorType: { label: D(s).t("platform.screen.ModuleActionManagementView.execution-method", "执行方式") },
448
- executorKey: { label: D(s).t("platform.screen.ModuleActionManagementView.executor-implementation", "执行实现") },
449
- actionAuth: { label: D(s).t("platform.screen.ModuleActionManagementView.action-authorization", "动作授权") },
450
- dataAuth: { label: D(s).t("platform.screen.ModuleActionManagementView.data-authorization", "数据授权") },
451
- defaultGrantPolicy: { label: D(s).t("platform.screen.ModuleActionManagementView.default-grant-policy", "默认授予策略") },
452
- availableExpression: { label: D(s).t("platform.screen.ModuleActionManagementView.availability-condition", "可用条件") },
453
- unavailableMessage: { label: D(s).t("platform.screen.ModuleActionManagementView.unavailable-message", "不可用提示") },
454
- sourceType: { label: D(s).t("platform.screen.ModuleActionManagementView.registration-source", "注册来源") },
455
- bindingAlias: { label: D(s).t("platform.screen.ModuleActionManagementView.binding-id", "绑定标识") }
456
- }
457
- }, null, 8, [
458
- "record",
459
- "field-names",
460
- "fallback"
461
- ])) : D(R) !== "create" && D(I)?.systemManaged ? (w(), y("form", {
462
- key: 2,
463
- class: "managed-action-editor",
464
- onSubmit: i[12] ||= k((...e) => D(F).save && D(F).save(...e), ["prevent"])
465
- }, [b("section", me, [b("h3", null, E(D(s).t("platform.screen.ModuleActionManagementView.action-declaration", "动作声明")), 1), S(D(a), {
466
- record: D(L),
467
- "display-of": $,
468
- "field-names": Je.value,
469
- fallback: {
470
- actionCode: { label: D(s).t("platform.screen.ModuleActionManagementView.action-code", "动作编码") },
471
- title: { label: D(s).t("platform.screen.ModuleActionManagementView.action-name", "动作名称") },
472
- category: { label: D(s).t("platform.screen.ModuleActionManagementView.action-category", "动作类别") },
473
- actionLevel: { label: D(s).t("platform.screen.ModuleActionManagementView.execution-level", "执行层级") },
474
- executorType: { label: D(s).t("platform.screen.ModuleActionManagementView.execution-method", "执行方式") },
475
- executorKey: { label: D(s).t("platform.screen.ModuleActionManagementView.executor-implementation", "执行实现") },
476
- sourceType: { label: D(s).t("platform.screen.ModuleActionManagementView.registration-source", "注册来源") }
477
- }
478
- }, null, 8, [
479
- "record",
480
- "field-names",
481
- "fallback"
482
- ])]), b("section", he, [
483
- b("h3", null, E(D(s).t("platform.screen.ModuleActionManagementView.permission-governance", "权限治理")), 1),
484
- e.moduleKind === "dynamic" ? (w(), y("label", ge, [S(D(l), {
485
- checked: D(L).schedulable === !0,
486
- disabled: U.value || D(L).actionLevel !== "LIST" || D(L).formSupported === !0,
487
- "onUpdate:checked": i[3] ||= (e) => K("schedulable", e)
488
- }, {
489
- default: O(() => [x(E(D(s).t("platform.screen.ModuleActionManagementView.schedulable", "允许定时调用(无需表单的模块动作)")), 1)]),
490
- _: 1
491
- }, 8, ["checked", "disabled"])])) : v("v-if", !0),
492
- b("div", _e, [
493
- b("section", ve, [b("header", null, [b("div", null, [b("h4", null, [x(E(D(s).t("platform.screen.ModuleActionManagementView.access-mode", "访问方式")) + " ", 1), S(D(f), { title: D(s).t("platform.screen.ModuleActionManagementView.define-the-identity-requirements-for-invoking-this-action", "决定调用动作前需要满足的身份条件。") }, {
494
- default: O(() => [b("button", {
495
- type: "button",
496
- class: "governance-help",
497
- "aria-label": D(s).t("platform.screen.ModuleActionManagementView.access-method-description", "访问方式说明")
498
- }, [S(D(h), { name: "help" })], 8, ye)]),
499
- _: 1
500
- }, 8, ["title"])])]), b("span", be, [W("accessModeOverride") ? (w(), _(D(p), {
501
- key: 0,
502
- type: "text",
503
- size: "small",
504
- disabled: U.value,
505
- onClick: i[4] ||= (e) => G("accessModeOverride")
506
- }, {
507
- default: O(() => [x(E(D(s).t("platform.screen.WorkflowWorkbenchView.reset", "重置")), 1)]),
508
- _: 1
509
- }, 8, ["disabled"])) : v("v-if", !0)])]), S(D(u), {
510
- value: D(L).accessModeOverride ?? D(L).accessMode,
511
- disabled: U.value,
512
- options: [
513
- {
514
- label: D(s).t("platform.screen.ModuleActionManagementView.authorization-required", "需要授权"),
515
- value: "AUTH_REQUIRED"
516
- },
517
- {
518
- label: D(s).t("platform.screen.ModuleActionManagementView.signed-in-access", "登录可用"),
519
- value: "LOGIN_REQUIRED"
520
- },
521
- {
522
- label: D(s).t("platform.screen.ModuleActionManagementView.anonymous-access", "匿名可用"),
523
- value: "ANONYMOUS_ALLOWED"
524
- }
525
- ],
526
- "onUpdate:value": i[5] ||= (e) => K("accessModeOverride", e)
527
- }, null, 8, [
528
- "value",
529
- "disabled",
530
- "options"
531
- ])]),
532
- b("section", xe, [b("header", null, [b("div", null, [b("h4", null, [x(E(D(s).t("platform.screen.ModuleActionManagementView.default-grant-policy", "默认授予策略")) + " ", 1), S(D(f), { title: D(s).t("platform.screen.ModuleActionManagementView.define-the-default-grant-rules-when-eligible-users-first-receive", "定义满足条件的用户首次获得动作时的默认规则。") }, {
533
- default: O(() => [b("button", {
534
- type: "button",
535
- class: "governance-help",
536
- "aria-label": D(s).t("platform.screen.ModuleActionManagementView.default-grant-policy-description", "默认授予策略说明")
537
- }, [S(D(h), { name: "help" })], 8, Se)]),
538
- _: 1
539
- }, 8, ["title"])])]), b("span", Ce, [W("defaultGrantPolicyOverride") ? (w(), _(D(p), {
540
- key: 0,
541
- type: "text",
542
- size: "small",
543
- disabled: U.value,
544
- onClick: i[6] ||= (e) => G("defaultGrantPolicyOverride")
545
- }, {
546
- default: O(() => [x(E(D(s).t("platform.screen.WorkflowWorkbenchView.reset", "重置")), 1)]),
547
- _: 1
548
- }, 8, ["disabled"])) : v("v-if", !0)])]), S(D(u), {
549
- value: D(L).defaultGrantPolicyOverride ?? D(L).defaultGrantPolicy,
550
- disabled: U.value,
551
- options: [
552
- {
553
- label: D(s).t("platform.screen.ModuleActionManagementView.no-default-grant", "不默认授予"),
554
- value: "NONE"
555
- },
556
- {
557
- label: D(s).t("platform.screen.ModuleActionManagementView.all-signed-in-users", "所有登录用户"),
558
- value: "ANY_LOGIN_USER"
559
- },
560
- {
561
- label: D(s).t("platform.screen.ModuleActionManagementView.record-owner", "记录所有者"),
562
- value: "OWNER"
563
- },
564
- {
565
- label: D(s).t("platform.screen.WorkflowWorkbenchView.processors", "办理人"),
566
- value: "ASSIGNEE"
567
- },
568
- {
569
- label: D(s).t("platform.screen.ModuleActionManagementView.member", "成员"),
570
- value: "MEMBER"
571
- }
572
- ],
573
- "onUpdate:value": i[7] ||= (e) => K("defaultGrantPolicyOverride", e)
574
- }, null, 8, [
575
- "value",
576
- "disabled",
577
- "options"
578
- ])]),
579
- b("section", we, [b("header", null, [b("div", null, [b("h4", null, [x(E(D(s).t("platform.screen.ModuleActionManagementView.action-authorization", "动作授权")) + " ", 1), S(D(f), { title: D(s).t("platform.screen.ModuleActionManagementView.control-whether-roles-require-an-explicit-grant-for-this-action", "控制角色是否需要被显式授予该动作。") }, {
580
- default: O(() => [b("button", {
581
- type: "button",
582
- class: "governance-help",
583
- "aria-label": D(s).t("platform.screen.ModuleActionManagementView.action-permission-description", "动作授权说明")
584
- }, [S(D(h), { name: "help" })], 8, Te)]),
585
- _: 1
586
- }, 8, ["title"])])]), b("span", Ee, [W("actionAuthOverride") ? (w(), _(D(p), {
587
- key: 0,
588
- type: "text",
589
- size: "small",
590
- disabled: U.value,
591
- onClick: i[8] ||= (e) => G("actionAuthOverride")
592
- }, {
593
- default: O(() => [x(E(D(s).t("platform.screen.WorkflowWorkbenchView.reset", "重置")), 1)]),
594
- _: 1
595
- }, 8, ["disabled"])) : v("v-if", !0)])]), b("div", De, [S(D(o), {
596
- checked: (D(L).actionAuthOverride ?? D(L).actionAuth) !== !1,
597
- disabled: U.value,
598
- "checked-text": D(s).t("platform.screen.ModuleActionManagementView.on", "开"),
599
- "unchecked-text": D(s).t("platform.screen.ModuleActionManagementView.off", "关"),
600
- "onUpdate:checked": i[9] ||= (e) => K("actionAuthOverride", e)
601
- }, null, 8, [
602
- "checked",
603
- "disabled",
604
- "checked-text",
605
- "unchecked-text"
606
- ]), b("strong", null, E((D(L).actionAuthOverride ?? D(L).actionAuth) === !1 ? D(s).t("platform.screen.ModuleActionManagementView.not-enabled", "未启用") : D(s).t("platform.screen.DynamicModuleWorkspaceDetailView.enabled", "已启用")), 1)])]),
607
- b("section", Oe, [b("header", null, [b("div", null, [b("h4", null, [x(E(D(s).t("platform.screen.ModuleActionManagementView.data-authorization", "数据授权")) + " ", 1), S(D(f), { title: D(s).t("platform.screen.ModuleActionManagementView.when-enabled-reads-and-execution-are-checked-against-the-data", "启用后,读取和执行会继续按数据范围校验。") }, {
608
- default: O(() => [b("button", {
609
- type: "button",
610
- class: "governance-help",
611
- "aria-label": D(s).t("platform.screen.ModuleActionManagementView.data-permission-description", "数据授权说明")
612
- }, [S(D(h), { name: "help" })], 8, ke)]),
613
- _: 1
614
- }, 8, ["title"])])]), b("span", Ae, [W("dataAuthOverride") ? (w(), _(D(p), {
615
- key: 0,
616
- type: "text",
617
- size: "small",
618
- disabled: U.value,
619
- onClick: i[10] ||= (e) => G("dataAuthOverride")
620
- }, {
621
- default: O(() => [x(E(D(s).t("platform.screen.WorkflowWorkbenchView.reset", "重置")), 1)]),
622
- _: 1
623
- }, 8, ["disabled"])) : v("v-if", !0)])]), b("div", je, [S(D(o), {
624
- checked: (D(L).dataAuthOverride ?? D(L).dataAuth) === !0,
625
- disabled: U.value,
626
- "checked-text": D(s).t("platform.screen.ModuleActionManagementView.on", "开"),
627
- "unchecked-text": D(s).t("platform.screen.ModuleActionManagementView.off", "关"),
628
- "onUpdate:checked": i[11] ||= (e) => K("dataAuthOverride", e)
629
- }, null, 8, [
630
- "checked",
631
- "disabled",
632
- "checked-text",
633
- "unchecked-text"
634
- ]), b("strong", null, E((D(L).dataAuthOverride ?? D(L).dataAuth) === !0 ? D(s).t("platform.screen.DynamicModuleWorkspaceDetailView.enabled", "已启用") : D(s).t("platform.screen.ModuleActionManagementView.not-enabled", "未启用")), 1)])])
635
- ])
636
- ])], 32)) : (w(), y("form", {
637
- key: 3,
638
- class: "static-record-form",
639
- onSubmit: i[24] ||= k((...e) => D(F).save && D(F).save(...e), ["prevent"])
640
- }, [
641
- b("p", Me, E(D(s).t("platform.screen.ModuleActionManagementView.you-can-save-an-action-before-binding-its-executor-unbound", "可以先保存动作,再绑定执行能力。待绑定动作不可执行,页面引用后需完成绑定才能发布。")), 1),
642
- b("label", null, [b("span", null, E(D(s).t("platform.screen.ModuleActionManagementView.action-code", "动作编码")), 1), S(D(c), {
643
- value: D(L).actionCode,
644
- disabled: U.value,
645
- "onUpdate:value": i[13] ||= (e) => K("actionCode", e)
646
- }, null, 8, ["value", "disabled"])]),
647
- b("label", null, [b("span", null, E(D(s).t("platform.screen.ModuleActionManagementView.action-name", "动作名称")), 1), S(D(c), {
648
- value: D(L).title,
649
- disabled: U.value,
650
- "onUpdate:value": i[14] ||= (e) => K("title", e)
651
- }, null, 8, ["value", "disabled"])]),
652
- b("label", null, [b("span", null, E(D(s).t("platform.screen.ModuleActionManagementView.execution-level", "执行层级")), 1), S(D(u), {
653
- value: D(L).actionLevel,
654
- disabled: U.value,
655
- options: Ke.value,
656
- "onUpdate:value": i[15] ||= (e) => K("actionLevel", e)
657
- }, null, 8, [
658
- "value",
659
- "disabled",
660
- "options"
661
- ])]),
662
- b("label", null, [b("span", null, E(D(s).t("platform.screen.ModuleActionManagementView.access-mode", "访问方式")), 1), S(D(u), {
663
- value: D(L).accessMode,
664
- disabled: U.value,
665
- options: [
666
- {
667
- label: D(s).t("platform.screen.ModuleActionManagementView.authorization-required", "需要授权"),
668
- value: "AUTH_REQUIRED"
669
- },
670
- {
671
- label: D(s).t("platform.screen.ModuleActionManagementView.signed-in-access", "登录可用"),
672
- value: "LOGIN_REQUIRED"
673
- },
674
- {
675
- label: D(s).t("platform.screen.ModuleActionManagementView.anonymous-access", "匿名可用"),
676
- value: "ANONYMOUS_ALLOWED"
677
- }
678
- ],
679
- "onUpdate:value": i[16] ||= (e) => K("accessMode", e)
680
- }, null, 8, [
681
- "value",
682
- "disabled",
683
- "options"
684
- ])]),
685
- e.moduleKind === "dynamic" ? (w(), y("label", Ne, [b("span", null, E(D(s).t("platform.screen.ModuleActionManagementView.executor-can-be-bound-later", "执行能力(可稍后绑定)")), 1), S(D(u), {
686
- value: D(L).executorKey,
687
- "allow-clear": "",
688
- placeholder: D(s).t("platform.screen.PageCompositionTree.binding-pending", "待绑定"),
689
- disabled: U.value,
690
- options: Ge.value,
691
- "onUpdate:value": i[17] ||= (e) => rt(e)
692
- }, null, 8, [
693
- "value",
694
- "placeholder",
695
- "disabled",
696
- "options"
697
- ])])) : v("v-if", !0),
698
- e.moduleKind === "dynamic" ? v("v-if", !0) : (w(), y("p", Pe, E(D(s).t("platform.screen.ModuleActionManagementView.static-modules-bind-an-executor-through-a-code-action-declaration", "静态模块通过同编码的代码动作声明绑定执行能力。")), 1)),
699
- e.moduleKind === "dynamic" ? (w(), y("label", Fe, [S(D(l), {
700
- checked: D(L).schedulable === !0,
701
- disabled: U.value || D(L).actionLevel !== "LIST" || D(L).formSupported === !0,
702
- "onUpdate:checked": i[18] ||= (e) => K("schedulable", e)
703
- }, {
704
- default: O(() => [x(E(D(s).t("platform.screen.ModuleActionManagementView.schedulable", "允许定时调用(无需表单的模块动作)")), 1)]),
705
- _: 1
706
- }, 8, ["checked", "disabled"])])) : v("v-if", !0),
707
- b("label", Ie, [S(D(l), {
708
- checked: D(L).actionAuth !== !1,
709
- disabled: U.value,
710
- "onUpdate:checked": i[19] ||= (e) => K("actionAuth", e)
711
- }, {
712
- default: O(() => [x(E(D(s).t("platform.screen.ModuleActionManagementView.enable-action-permissions", "启用动作授权")), 1)]),
713
- _: 1
714
- }, 8, ["checked", "disabled"])]),
715
- b("label", Le, [S(D(l), {
716
- checked: D(L).dataAuth === !0,
717
- disabled: U.value,
718
- "onUpdate:checked": i[20] ||= (e) => K("dataAuth", e)
719
- }, {
720
- default: O(() => [x(E(D(s).t("platform.screen.ModuleActionManagementView.enable-data-permissions", "启用数据授权")), 1)]),
721
- _: 1
722
- }, 8, ["checked", "disabled"])]),
723
- b("label", null, [b("span", null, E(D(s).t("platform.screen.ModuleActionManagementView.default-grant-policy", "默认授予策略")), 1), S(D(u), {
724
- value: D(L).defaultGrantPolicy,
725
- disabled: U.value,
726
- options: [
727
- {
728
- label: D(s).t("platform.screen.ModuleActionManagementView.no-default-grant", "不默认授予"),
729
- value: "NONE"
730
- },
731
- {
732
- label: D(s).t("platform.screen.ModuleActionManagementView.all-signed-in-users", "所有登录用户"),
733
- value: "ANY_LOGIN_USER"
734
- },
735
- {
736
- label: D(s).t("platform.screen.ModuleActionManagementView.record-owner", "记录所有者"),
737
- value: "OWNER"
738
- },
739
- {
740
- label: D(s).t("platform.screen.WorkflowWorkbenchView.processors", "办理人"),
741
- value: "ASSIGNEE"
742
- },
743
- {
744
- label: D(s).t("platform.screen.ModuleActionManagementView.member", "成员"),
745
- value: "MEMBER"
746
- }
747
- ],
748
- "onUpdate:value": i[21] ||= (e) => K("defaultGrantPolicy", e)
749
- }, null, 8, [
750
- "value",
751
- "disabled",
752
- "options"
753
- ])]),
754
- b("label", Re, [b("span", null, E(D(s).t("platform.screen.ModuleActionManagementView.availability-expression", "可用条件表达式")), 1), S(D(d), {
755
- value: D(L).availableExpression,
756
- disabled: U.value,
757
- "onUpdate:value": i[22] ||= (e) => K("availableExpression", e)
758
- }, null, 8, ["value", "disabled"])]),
759
- b("label", ze, [b("span", null, E(D(s).t("platform.screen.ModuleActionManagementView.unavailable-message", "不可用提示")), 1), S(D(d), {
760
- value: D(L).unavailableMessage,
761
- disabled: U.value,
762
- "onUpdate:value": i[23] ||= (e) => K("unavailableMessage", e)
763
- }, null, 8, ["value", "disabled"])])
764
- ], 32)), D(I) || D(R) !== "view" ? (w(), _(D(n), {
765
- key: 4,
766
- record: D(L)
767
- }, null, 8, ["record"])) : v("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__*/ s(F, [["__scopeId", "data-v-da01fd07"]]);
779
- //#endregion
780
- export { I as n, L as t };