@ximatai/muyun-web-app 0.26.23 → 0.26.24

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