@ximatai/muyun-web-app 0.26.11 → 0.26.13

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 (221) hide show
  1. package/dist/BusinessActivityLogView-UC4rH4Fn.js +16 -0
  2. package/dist/BusinessLogListDrawer-BtaXVJKz.js +564 -0
  3. package/dist/LoginAuditLogView-Cjrp8MKX.js +16 -0
  4. package/dist/ModuleActionManagementView-Dkb35QXc.js +673 -0
  5. package/dist/ModuleGovernanceView-Dx43QvGf.js +28651 -0
  6. package/dist/RequestErrorLogView-WnGvMWiF.js +16 -0
  7. package/dist/RoleDetailWorkspaceView-DPDb_QOn.js +1397 -0
  8. package/dist/RuntimeLogView-BRl4ZDkU.js +330 -0
  9. package/dist/http-B0TC0pJB.js +157 -0
  10. package/dist/index.css +1 -1
  11. package/dist/index.js +1938 -325
  12. package/dist/moduleGovernanceWorkspaceView-4V_UW-Bt.js +40 -0
  13. package/dist/platform-components-1cvOeHmo.js +17854 -0
  14. package/dist/platform-workbench-Cu14Xd9d.js +10299 -0
  15. package/dist/rolldown-runtime-DPVXH0ON.js +17 -0
  16. package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +0 -2
  17. package/dist/types/app/LoginView.vue.d.ts +1 -1
  18. package/dist/types/app/workbenchRouteSync.d.ts +10 -1
  19. package/dist/types/app/workbenchSessionTabs.d.ts +22 -0
  20. package/dist/types/app/workbenchStartup.d.ts +7 -0
  21. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +4 -1
  22. package/dist/types/consumer/index.d.ts +8 -0
  23. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +2208 -0
  24. package/dist/types/dynamic-page-runtime/ModulePageBusinessState.vue.d.ts +11 -0
  25. package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +1 -1
  26. package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +32 -5
  27. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +4431 -0
  28. package/dist/types/dynamic-page-runtime/ModulePageHostSession.vue.d.ts +43 -0
  29. package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +2 -2
  30. package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +20 -0
  31. package/dist/types/dynamic-page-runtime/ModuleReferenceRecordDetailBrowser.vue.d.ts +42 -0
  32. package/dist/types/dynamic-page-runtime/NavigatorPanelActions.vue.d.ts +22 -0
  33. package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +11 -11
  34. package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +2 -2
  35. package/dist/types/dynamic-page-runtime/TenantScopeExplorer.vue.d.ts +21 -0
  36. package/dist/types/dynamic-page-runtime/childAggregateContext.d.ts +11 -0
  37. package/dist/types/dynamic-page-runtime/composables/useModulePageActions.d.ts +1 -1
  38. package/dist/types/dynamic-page-runtime/composables/useModulePageDetailActionRuntime.d.ts +5 -0
  39. package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +81 -26
  40. package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +1 -1
  41. package/dist/types/dynamic-page-runtime/formActionResult.d.ts +7 -0
  42. package/dist/types/dynamic-page-runtime/formComputeCoordinator.d.ts +7 -4
  43. package/dist/types/dynamic-page-runtime/formValidationCoordinator.d.ts +17 -0
  44. package/dist/types/dynamic-page-runtime/index.d.ts +3 -1
  45. package/dist/types/dynamic-page-runtime/inputValidationActionStatus.d.ts +20 -0
  46. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +13 -3
  47. package/dist/types/dynamic-page-runtime/modulePageUnsavedState.d.ts +10 -0
  48. package/dist/types/dynamic-page-runtime/pageActionInvocation.d.ts +7 -0
  49. package/dist/types/dynamic-page-runtime/pageActionPlacement.d.ts +14 -0
  50. package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +1 -0
  51. package/dist/types/dynamic-page-runtime/recordMutationPayload.d.ts +4 -0
  52. package/dist/types/dynamic-page-runtime/referenceRecordProjection.d.ts +6 -0
  53. package/dist/types/dynamic-page-runtime/sessionViewBindings.d.ts +3 -0
  54. package/dist/types/dynamic-page-runtime/sourceReferencePickerConfig.d.ts +26 -0
  55. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +1728 -0
  56. package/dist/types/dynamic-page-runtime/useTenantScopeController.d.ts +18 -0
  57. package/dist/types/formula/FormulaRuntime.d.ts +6 -0
  58. package/dist/types/platform-admin-runtime/WorkspaceViewDrawer.vue.d.ts +5 -0
  59. package/dist/types/platform-admin-runtime/module-menu/ModuleMenuDrawer.vue.d.ts +7 -0
  60. package/dist/types/platform-admin-runtime/module-menu/ModuleMenuEntriesSection.vue.d.ts +7 -0
  61. package/dist/types/platform-admin-runtime/module-menu/moduleMenuClient.d.ts +16 -0
  62. package/dist/types/platform-admin-runtime/platformModulePageEnhancement.d.ts +2 -0
  63. package/dist/types/platform-admin-runtime/role/roleScopeSelectionClient.d.ts +52 -0
  64. package/dist/types/platform-components/AdaptiveHeaderActionBar.vue.d.ts +24 -0
  65. package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +15 -1
  66. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +11 -3
  67. package/dist/types/platform-components/DetailRelationListPanel.vue.d.ts +1 -1
  68. package/dist/types/platform-components/DictionaryOptionDialog.vue.d.ts +37 -0
  69. package/dist/types/platform-components/DictionaryOptionDialogChoiceList.vue.d.ts +21 -0
  70. package/dist/types/platform-components/DictionaryPicker.vue.d.ts +47 -0
  71. package/dist/types/platform-components/DictionaryRadioGroup.vue.d.ts +20 -0
  72. package/dist/types/platform-components/EmployeePicker.vue.d.ts +40 -0
  73. package/dist/types/platform-components/FileTransferUploader.vue.d.ts +1 -1
  74. package/dist/types/platform-components/FormulaExpressionEditor.vue.d.ts +54 -0
  75. package/dist/types/platform-components/ManagementExplorerColumn.vue.d.ts +15 -3
  76. package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +5 -3
  77. package/dist/types/platform-components/ManagementWorkspace.vue.d.ts +11 -0
  78. package/dist/types/platform-components/ModuleActionButton.vue.d.ts +3 -3
  79. package/dist/types/platform-components/ObjectPickerInput.vue.d.ts +34 -0
  80. package/dist/types/platform-components/QueryCriteriaComposer.vue.d.ts +29 -0
  81. package/dist/types/platform-components/QueryCriteriaGroupEditor.vue.d.ts +36 -0
  82. package/dist/types/platform-components/QueryGroupedSummary.vue.d.ts +21 -0
  83. package/dist/types/platform-components/QueryValueEditor.vue.d.ts +33 -0
  84. package/dist/types/platform-components/ReadonlyReferenceValue.vue.d.ts +11 -0
  85. package/dist/types/platform-components/RecordContentSectionHeading.vue.d.ts +4 -2
  86. package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +8 -3
  87. package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +9 -3
  88. package/dist/types/platform-components/RecordDetailFields.vue.d.ts +41 -4
  89. package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +4 -1
  90. package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +2 -0
  91. package/dist/types/platform-components/RecordExplorerCreateButton.vue.d.ts +16 -0
  92. package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +16 -5
  93. package/dist/types/platform-components/RecordFieldLabel.vue.d.ts +16 -0
  94. package/dist/types/platform-components/RecordFormFields.vue.d.ts +24 -5
  95. package/dist/types/platform-components/RecordFormGrid.vue.d.ts +24 -0
  96. package/dist/types/platform-components/RecordListExplorer.vue.d.ts +23 -1
  97. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +11 -3
  98. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +3 -3
  99. package/dist/types/platform-components/RecordPanelButton.vue.d.ts +9 -3
  100. package/dist/types/platform-components/RecordPermissionDialog.vue.d.ts +15 -0
  101. package/dist/types/platform-components/RecordPicker.vue.d.ts +3 -3
  102. package/dist/types/platform-components/RecordQueryEnumFilter.vue.d.ts +17 -0
  103. package/dist/types/platform-components/RecordQueryListCell.vue.d.ts +12 -0
  104. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +120 -63
  105. package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +144 -0
  106. package/dist/types/platform-components/RecordRelationTable.vue.d.ts +62 -0
  107. package/dist/types/platform-components/RecordRelationValue.vue.d.ts +9 -0
  108. package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +3 -3
  109. package/dist/types/platform-components/ReferencePicker.vue.d.ts +47 -0
  110. package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +55 -0
  111. package/dist/types/platform-components/ScopedTreePicker.vue.d.ts +31 -0
  112. package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +2 -0
  113. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +14 -3
  114. package/dist/types/platform-components/UserPicker.vue.d.ts +47 -0
  115. package/dist/types/platform-components/adaptiveHeaderActionLayout.d.ts +22 -0
  116. package/dist/types/platform-components/dictionaryOptionDialogModel.d.ts +23 -0
  117. package/dist/types/platform-components/employeePickerModel.d.ts +19 -0
  118. package/dist/types/platform-components/formulaExpressionTokens.d.ts +18 -0
  119. package/dist/types/platform-components/identityPickerModel.d.ts +18 -0
  120. package/dist/types/platform-components/index.d.ts +48 -2
  121. package/dist/types/platform-components/managementExplorerContext.d.ts +11 -0
  122. package/dist/types/platform-components/managementWorkspaceContext.d.ts +20 -0
  123. package/dist/types/platform-components/managementWorkspaceLayout.d.ts +14 -0
  124. package/dist/types/platform-components/optionFieldOptionCache.d.ts +1 -1
  125. package/dist/types/platform-components/queryCriteriaDraft.d.ts +24 -0
  126. package/dist/types/platform-components/queryReferencePickerProvider.d.ts +19 -0
  127. package/dist/types/platform-components/readonlyReferenceDisplay.d.ts +19 -0
  128. package/dist/types/platform-components/recordActionBarModel.d.ts +3 -0
  129. package/dist/types/platform-components/recordEditorSessionState.d.ts +11 -4
  130. package/dist/types/platform-components/recordFormFieldModel.d.ts +28 -2
  131. package/dist/types/platform-components/recordQueryListColumnModel.d.ts +44 -0
  132. package/dist/types/platform-components/referencePickerModel.d.ts +103 -0
  133. package/dist/types/platform-components/referencePickerReadError.d.ts +24 -0
  134. package/dist/types/platform-components/referenceRecordDetailBrowser.d.ts +48 -0
  135. package/dist/types/platform-components/scopedTreePickerModel.d.ts +46 -0
  136. package/dist/types/platform-components/selectionRefresh.d.ts +9 -0
  137. package/dist/types/platform-components/sortPartitionKey.d.ts +5 -0
  138. package/dist/types/platform-components/sourceReferencePickerProvider.d.ts +26 -0
  139. package/dist/types/platform-components/staticCrudManagementState.d.ts +7 -6
  140. package/dist/types/platform-components/userPickerModel.d.ts +45 -0
  141. package/dist/types/platform-components/userReferencePicker.d.ts +17 -0
  142. package/dist/types/platform-workbench/index.d.ts +2 -0
  143. package/dist/types/platform-workbench/useWorkspaceViewUnsavedState.d.ts +5 -0
  144. package/dist/types/platform-workbench/workbenchNavigation.d.ts +5 -1
  145. package/dist/types/platform-workbench/workspaceViewContract.d.ts +5 -0
  146. package/dist/types/platform-workbench/workspaceViewHost.d.ts +5 -0
  147. package/dist/types/platform-workbench/workspaceViewNavigation.d.ts +9 -0
  148. package/dist/types/platform-workbench/workspaceViewUnsavedState.d.ts +5 -0
  149. package/dist/types/views/BusinessActivityLogView.vue.d.ts +3 -0
  150. package/dist/types/views/BusinessLogListDrawer.vue.d.ts +9 -0
  151. package/dist/types/views/BusinessRuleGovernanceSurface.vue.d.ts +10 -0
  152. package/dist/types/views/LoginAuditLogView.vue.d.ts +3 -0
  153. package/dist/types/views/MetadataGovernanceSurface.vue.d.ts +8 -0
  154. package/dist/types/views/MetadataSourceTree.vue.d.ts +44 -0
  155. package/dist/types/views/ModuleBusinessPreview.vue.d.ts +7 -0
  156. package/dist/types/views/ModuleExperienceProfileOverview.vue.d.ts +7 -0
  157. package/dist/types/views/ModuleGovernanceView.vue.d.ts +9 -0
  158. package/dist/types/views/PageCompositionDescriptorPreview.vue.d.ts +54 -0
  159. package/dist/types/views/PageCompositionTree.vue.d.ts +103 -0
  160. package/dist/types/views/PageCompositionWorkspace.vue.d.ts +7 -0
  161. package/dist/types/views/PageQuerySummaryEditor.vue.d.ts +48 -0
  162. package/dist/types/views/RequestErrorLogView.vue.d.ts +3 -0
  163. package/dist/types/views/RuntimeLogView.vue.d.ts +3 -0
  164. package/dist/types/views/businessLogClient.d.ts +85 -0
  165. package/dist/types/views/businessRuleGovernance.d.ts +201 -0
  166. package/dist/types/views/dictionaryRadioEligibility.d.ts +18 -0
  167. package/dist/types/views/dictionaryRadioFactRequestEpoch.d.ts +10 -0
  168. package/dist/types/views/metadataModelEditSession.d.ts +84 -0
  169. package/dist/types/views/metadataModelTree.d.ts +40 -0
  170. package/dist/types/views/metadataNaming.d.ts +7 -0
  171. package/dist/types/views/metadataOrchestrationState.d.ts +161 -6
  172. package/dist/types/views/metadataSourceTree.d.ts +10 -0
  173. package/dist/types/views/moduleGovernanceWorkspaceView.d.ts +9 -0
  174. package/dist/types/views/pageCompositionDraftState.d.ts +404 -0
  175. package/dist/types/views/pageCompositionDragPayload.d.ts +26 -0
  176. package/dist/types/views/pageCompositionMode.d.ts +86 -0
  177. package/dist/types/views/pageCompositionPlacement.d.ts +48 -0
  178. package/dist/types/views/pageCompositionTransport.d.ts +9 -0
  179. package/dist/types/views/roleDetailWorkspaceSession.d.ts +1 -0
  180. package/dist/types/views/roleGrantClient.d.ts +0 -1
  181. package/dist/types/views/runtimeLogClient.d.ts +12 -0
  182. package/dist/types/views/runtimeLogSse.d.ts +13 -0
  183. package/dist/types/views/usePageCompositionActionPreviewDrag.d.ts +41 -0
  184. package/dist/types/views/usePageCompositionPreviewDrag.d.ts +48 -0
  185. package/dist/types/vue-ui-antdv/components/UiActionButton.vue.d.ts +2 -2
  186. package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +6 -3
  187. package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +20 -2
  188. package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
  189. package/dist/types/vue-ui-antdv/components/UiPopover.vue.d.ts +22 -0
  190. package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +1 -1
  191. package/dist/types/vue-ui-antdv/components/UiSearchInput.vue.d.ts +16 -2
  192. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +28 -2
  193. package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +9 -2
  194. package/dist/types/vue-ui-antdv/components/UiSwitch.vue.d.ts +1 -1
  195. package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +38 -1
  196. package/dist/types/vue-ui-antdv/components/UiTokenInput.vue.d.ts +62 -0
  197. package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +63 -9
  198. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +24 -2
  199. package/dist/types/vue-ui-antdv/drawerDismissal.d.ts +18 -0
  200. package/dist/types/vue-ui-antdv/drawerWidth.d.ts +22 -0
  201. package/dist/types/vue-ui-antdv/index.d.ts +10 -1
  202. package/dist/types/vue-ui-antdv/treeStructure.d.ts +18 -0
  203. package/dist/types/vue-ui-antdv/types.d.ts +64 -0
  204. package/dist/types/vue-ui-antdv/useTreeLoader.d.ts +21 -0
  205. package/dist/types/vue-ui-antdv/useTreeMotion.d.ts +9 -0
  206. package/dist/types/vue-ui-antdv/useUiTreeDrag.d.ts +32 -0
  207. package/dist/types/web-contracts/index.d.ts +132 -12
  208. package/dist/types/web-core/http.d.ts +2 -0
  209. package/dist/types/web-core/module/index.d.ts +1 -0
  210. package/dist/types/web-core/module/moduleContext.d.ts +29 -1
  211. package/dist/types/web-core/module/pageActionEntries.d.ts +21 -0
  212. package/dist/types/web-core/module/runtimeContext.d.ts +10 -5
  213. package/dist/types/web-core/module/staticModuleClient.d.ts +30 -3
  214. package/dist/workspaceViews-CCg6V0pr.js +3623 -0
  215. package/package.json +1 -1
  216. package/dist/MetadataOrchestrationView-F_Bmfn9K.js +0 -661
  217. package/dist/ModuleActionManagementView-Db_3Twom.js +0 -597
  218. package/dist/RoleDetailWorkspaceView-UOm1ejGH.js +0 -1369
  219. package/dist/platform-components-59b4qzUL.js +0 -12489
  220. package/dist/types/views/metadataOrchestrationWorkspaceView.d.ts +0 -6
  221. package/dist/workspaceViews-BvV8mpML.js +0 -11149
@@ -1,597 +0,0 @@
1
- import { Ct as e, Gt as t, Lt as n, M as r, Mt as i, Nt as a, Ot as o, Pt as s, Rt as c, U as ee, Y as te, at as ne, bt as re, ft as l, i as ie, jt as u, l as ae, p as oe, st as se, t as ce, tn as le, v as ue, zt as d } from "./platform-components-59b4qzUL.js";
2
- import { computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, onMounted as de, openBlock as b, ref as x, toDisplayString as S, unref as C, withCtx as w, withModifiers as T } from "vue";
3
- //#region src/views/ModuleActionManagementView.vue?vue&type=script&setup=true&lang.ts
4
- var fe = { class: "action-declaration-section" }, pe = { class: "permission-governance-section" }, me = { class: "governance-grid" }, he = { class: "governance-item" }, ge = {
5
- type: "button",
6
- class: "governance-help",
7
- "aria-label": "访问方式说明"
8
- }, _e = { class: "governance-reset-slot" }, ve = { class: "governance-item" }, ye = {
9
- type: "button",
10
- class: "governance-help",
11
- "aria-label": "默认授予策略说明"
12
- }, be = { class: "governance-reset-slot" }, E = { class: "governance-item" }, D = {
13
- type: "button",
14
- class: "governance-help",
15
- "aria-label": "动作授权说明"
16
- }, O = { class: "governance-reset-slot" }, k = { class: "governance-switch-control" }, A = { class: "governance-item" }, j = {
17
- type: "button",
18
- class: "governance-help",
19
- "aria-label": "数据授权说明"
20
- }, M = { class: "governance-reset-slot" }, N = { class: "governance-switch-control" }, xe = { class: "checkbox-field" }, Se = { class: "checkbox-field" }, Ce = { class: "wide-field" }, we = { class: "wide-field" }, P = /*#__PURE__*/ d(/* @__PURE__ */ y({
21
- name: "ModuleActionManagementView",
22
- __name: "ModuleActionManagementView",
23
- props: {
24
- moduleAlias: {},
25
- moduleTitle: {},
26
- moduleKind: {},
27
- title: {}
28
- },
29
- setup(d) {
30
- let y = d, P = t({ moduleAlias: "platform.module_action" }), F = ie(P, { client: le(P.http, `/platform.module/${encodeURIComponent(y.moduleAlias)}/actions`) }), I = x(""), L = x([]), R = ce({
31
- context: F,
32
- confirmAction: l,
33
- emptyDraft: () => He(y.moduleAlias),
34
- normalizeDraft: (e) => J(e, y.moduleAlias),
35
- copyRecord: (e) => ({ ...e }),
36
- titleOf: Q,
37
- fallbackTitle: "模块动作",
38
- createTitle: "新建动作",
39
- requiredMessage: "动作编码不能为空",
40
- isValid: (e) => !!e.actionCode?.trim(),
41
- recordName: "动作",
42
- deleteTitle: "删除动作",
43
- saveDeniedMessage: "当前用户无权保存模块动作",
44
- createDeniedMessage: "当前用户无权新建模块动作",
45
- enableDeniedMessage: "当前用户无权变更模块动作启停状态",
46
- deleteDeniedMessage: () => "当前用户无权删除模块动作",
47
- canDeleteRecord: (e) => e.systemManaged !== !0,
48
- canEnableRecord: (e) => e.systemManaged !== !0
49
- }), { selected: z, draft: B, mode: V, reloadKey: H, saving: U, cardTitle: Te, canCreate: Ee, canEnable: De } = R, Oe = f(() => y.moduleKind === "dynamic" && Ee.value && L.value.length > 0), ke = f(() => L.value.map((e) => ({
50
- value: e.executorKey,
51
- label: e.description ? `${e.title} · ${e.description}` : e.title
52
- }))), Ae = f(() => (L.value.find((e) => e.executorKey === B.value.executorKey)?.supportedLevels ?? []).map((e) => ({
53
- value: e,
54
- label: {
55
- LIST: "列表",
56
- RECORD: "单条记录",
57
- BATCH: "批量",
58
- ANY: "任意"
59
- }[e]
60
- }))), je = f(() => [
61
- "actionCode",
62
- "title",
63
- "category",
64
- "actionLevel",
65
- "accessMode",
66
- "executorType",
67
- ...Z(B.value.executorKey) ? ["executorKey"] : [],
68
- "actionAuth",
69
- "dataAuth",
70
- "defaultGrantPolicy",
71
- ...Z(B.value.availableExpression) ? ["availableExpression"] : [],
72
- ...Z(B.value.unavailableMessage) ? ["unavailableMessage"] : [],
73
- ...B.value.sourceType ? ["sourceType"] : [],
74
- ...Z(B.value.bindingAlias) ? ["bindingAlias"] : []
75
- ]), Me = f(() => [
76
- "actionCode",
77
- "title",
78
- "category",
79
- "actionLevel",
80
- "executorType",
81
- ...Z(B.value.executorKey) ? ["executorKey"] : [],
82
- ...B.value.sourceType ? ["sourceType"] : []
83
- ]);
84
- de(() => void ze());
85
- let Ne = f(() => R.readonly.value), W = f(() => Ne.value || R.saving.value), Pe = f(() => {
86
- if (R.mode.value !== "view") return [
87
- ...R.mode.value === "edit" && R.selected.value?.systemManaged === !0 && Le(B.value) ? [{
88
- key: "reset-permission-governance",
89
- actionCode: "update",
90
- title: "全部重置",
91
- disabled: R.saving.value
92
- }] : [],
93
- {
94
- key: "cancel",
95
- title: "取消",
96
- disabled: R.saving.value
97
- },
98
- {
99
- key: "save",
100
- actionCode: R.mode.value === "create" ? "create" : "update",
101
- title: R.saving.value ? "保存中" : "保存",
102
- primary: !0,
103
- loading: R.saving.value
104
- }
105
- ];
106
- let e = R.selected.value;
107
- return [{
108
- key: "edit",
109
- actionCode: "update",
110
- title: "编辑",
111
- disabled: !e || !R.canUpdate.value
112
- }, {
113
- key: "delete",
114
- actionCode: "delete",
115
- title: "删除",
116
- danger: !0,
117
- loading: R.saving.value,
118
- disabled: !e || e.systemManaged === !0 || !R.canDelete.value
119
- }];
120
- });
121
- function Fe(e) {
122
- let t = e;
123
- return {
124
- title: Q(t),
125
- secondary: t.actionCode,
126
- tag: t.systemManaged === !0 ? "平台托管" : t.category,
127
- muted: t.enabled === !1
128
- };
129
- }
130
- function Ie(e) {
131
- e.key === "edit" && R.startEdit(), e.key === "delete" && R.removeSelected(), e.key === "reset-permission-governance" && Re(), e.key === "cancel" && R.cancelEdit(), e.key === "save" && R.save();
132
- }
133
- function Le(e) {
134
- return [
135
- e.accessModeOverride,
136
- e.actionAuthOverride,
137
- e.dataAuthOverride,
138
- e.defaultGrantPolicyOverride
139
- ].some((e) => e != null);
140
- }
141
- function G(e) {
142
- return B.value[e] != null;
143
- }
144
- function K(e) {
145
- q(e, void 0);
146
- }
147
- function Re() {
148
- R.draft.value = {
149
- ...R.draft.value,
150
- accessModeOverride: void 0,
151
- actionAuthOverride: void 0,
152
- dataAuthOverride: void 0,
153
- defaultGrantPolicyOverride: void 0
154
- };
155
- }
156
- function q(e, t) {
157
- R.draft.value = {
158
- ...R.draft.value,
159
- [e]: t ?? void 0
160
- };
161
- }
162
- async function ze() {
163
- try {
164
- L.value = await P.http.request({ path: "/platform.module/action-executors" });
165
- } catch (e) {
166
- L.value = [], se(e, {
167
- source: "module-action-management",
168
- phase: "load"
169
- });
170
- }
171
- }
172
- function Be() {
173
- R.startCreate();
174
- let e = L.value[0];
175
- e && (R.draft.value = {
176
- ...R.draft.value,
177
- executorKey: e.executorKey,
178
- actionLevel: e.supportedLevels[0] ?? "ANY"
179
- });
180
- }
181
- function Ve(e) {
182
- let t = typeof e == "string" ? e : void 0, n = L.value.find((e) => e.executorKey === t);
183
- q("executorKey", t), n?.supportedLevels.length && q("actionLevel", n.supportedLevels[0]);
184
- }
185
- function He(e) {
186
- return {
187
- moduleAlias: e,
188
- actionCode: "",
189
- title: "",
190
- category: "CUSTOM",
191
- actionLevel: "ANY",
192
- accessMode: "AUTH_REQUIRED",
193
- actionAuth: !0,
194
- dataAuth: !1,
195
- defaultGrantPolicy: "NONE",
196
- executorType: "SERVICE",
197
- enabled: !0,
198
- systemManaged: !1
199
- };
200
- }
201
- function J(e, t) {
202
- return {
203
- ...e,
204
- moduleAlias: t,
205
- actionCode: Y(e.actionCode),
206
- title: X(e.title) ?? Y(e.actionCode),
207
- entityAlias: X(e.entityAlias),
208
- permissionActionCode: X(e.permissionActionCode),
209
- availableExpression: X(e.availableExpression),
210
- unavailableMessage: X(e.unavailableMessage),
211
- executorKey: X(e.executorKey)
212
- };
213
- }
214
- function Y(e) {
215
- return e?.trim() ?? "";
216
- }
217
- function X(e) {
218
- return e?.trim() || void 0;
219
- }
220
- function Z(e) {
221
- return !!e?.trim();
222
- }
223
- function Q(e) {
224
- return e.title?.trim() || e.actionCode?.trim() || e.id || "未命名动作";
225
- }
226
- function $(e, t) {
227
- return e === "actionAuth" || e === "dataAuth" ? t === !0 ? "启用" : "未启用" : typeof t == "string" ? {
228
- category: {
229
- STANDARD: "标准动作",
230
- CUSTOM: "自定义动作",
231
- DIALOG: "弹窗动作",
232
- WORKFLOW: "工作流动作",
233
- GENERATE: "生成动作"
234
- },
235
- actionLevel: {
236
- LIST: "列表",
237
- RECORD: "单条记录",
238
- BATCH: "批量",
239
- ANY: "任意"
240
- },
241
- accessMode: {
242
- AUTH_REQUIRED: "需要授权",
243
- LOGIN_REQUIRED: "登录可用",
244
- ANONYMOUS_ALLOWED: "匿名可用"
245
- },
246
- executorType: {
247
- STANDARD: "平台标准",
248
- SERVICE: "服务(二开)",
249
- DIALOG: "弹窗协议",
250
- WORKFLOW: "工作流",
251
- GENERATE: "生成器"
252
- },
253
- defaultGrantPolicy: {
254
- NONE: "不默认授予",
255
- ANY_LOGIN_USER: "所有登录用户",
256
- OWNER: "记录所有者",
257
- ASSIGNEE: "办理人",
258
- MEMBER: "成员"
259
- },
260
- sourceType: {
261
- STATIC_MODULE: "静态模块声明",
262
- CODE_EXTENSION: "代码扩展",
263
- DYNAMIC_MODULE: "动态模块配置",
264
- WORKFLOW_DEFINITION: "工作流定义",
265
- WORKFLOW_RUNTIME: "工作流运行时",
266
- RECORD_GENERATION_RULE: "生单规则",
267
- DOCUMENT_RELATION: "单据关系",
268
- PRINT_TEMPLATE: "打印模板"
269
- }
270
- }[e]?.[t] : void 0;
271
- }
272
- return (t, l) => (b(), p(C(ae), {
273
- "explorer-title": "模块动作",
274
- "refresh-title": "刷新动作",
275
- mode: C(V),
276
- "detail-title": C(Te),
277
- "explorer-search-keyword": I.value,
278
- "explorer-search-placeholder": "搜索动作名称或编码",
279
- "onUpdate:explorerSearchKeyword": l[22] ||= (e) => I.value = e,
280
- onRefresh: l[23] ||= (e) => H.value += 1
281
- }, {
282
- "explorer-actions": w(() => [v(C(te), {
283
- class: "record-panel-create-button",
284
- context: C(F),
285
- "action-code": "create",
286
- title: "新建动作",
287
- "icon-only": "",
288
- disabled: !Oe.value || C(U),
289
- onClick: Be
290
- }, null, 8, ["context", "disabled"])]),
291
- explorer: w(() => [v(C(ne), {
292
- context: C(F),
293
- "selected-id": C(z)?.id,
294
- "reload-key": C(H),
295
- keyword: I.value,
296
- "empty-description": "当前模块暂无动作",
297
- "loading-tip": "加载模块动作",
298
- "fallback-title": "未命名动作",
299
- "item-of": Fe,
300
- onLoaded: l[0] ||= (e) => C(R).handleListLoaded(e),
301
- onSelect: l[1] ||= (e) => C(R).handleSelect(e)
302
- }, null, 8, [
303
- "context",
304
- "selected-id",
305
- "reload-key",
306
- "keyword"
307
- ])]),
308
- "detail-status": w(() => [C(V) === "view" && C(z) ? (b(), p(C(ue), {
309
- key: 0,
310
- enabled: C(z).enabled,
311
- disabled: C(U) || C(z).systemManaged === !0 || !C(De),
312
- loading: C(U),
313
- "show-label": !1,
314
- onChange: C(R).toggleEnabled
315
- }, null, 8, [
316
- "enabled",
317
- "disabled",
318
- "loading",
319
- "onChange"
320
- ])) : m("v-if", !0)]),
321
- "detail-actions": w(() => [v(C(ee), {
322
- context: C(F),
323
- actions: Pe.value,
324
- onAction: Ie
325
- }, null, 8, ["context", "actions"])]),
326
- default: w(() => [!C(z) && C(V) === "view" ? (b(), p(C(re), {
327
- key: 0,
328
- description: d.moduleKind === "static" ? "静态模块动作由 Java 声明自动注册" : "当前模块暂无动作"
329
- }, null, 8, ["description"])) : C(V) === "view" && C(z) ? (b(), p(C(r), {
330
- key: 1,
331
- record: C(B),
332
- "display-of": $,
333
- "field-names": je.value,
334
- fallback: {
335
- actionCode: { label: "动作编码" },
336
- title: { label: "动作名称" },
337
- category: { label: "动作类别" },
338
- actionLevel: { label: "执行层级" },
339
- accessMode: { label: "访问方式" },
340
- executorType: { label: "执行方式" },
341
- executorKey: { label: "执行实现" },
342
- actionAuth: { label: "动作授权" },
343
- dataAuth: { label: "数据授权" },
344
- defaultGrantPolicy: { label: "默认授予策略" },
345
- availableExpression: { label: "可用条件" },
346
- unavailableMessage: { label: "不可用提示" },
347
- sourceType: { label: "注册来源" },
348
- bindingAlias: { label: "绑定标识" }
349
- }
350
- }, null, 8, ["record", "field-names"])) : C(z)?.systemManaged ? (b(), h("form", {
351
- key: 2,
352
- class: "managed-action-editor",
353
- onSubmit: l[10] ||= T((...e) => C(R).save && C(R).save(...e), ["prevent"])
354
- }, [g("section", fe, [l[24] ||= g("h3", null, "动作声明", -1), v(C(r), {
355
- record: C(B),
356
- "display-of": $,
357
- "field-names": Me.value,
358
- fallback: {
359
- actionCode: { label: "动作编码" },
360
- title: { label: "动作名称" },
361
- category: { label: "动作类别" },
362
- actionLevel: { label: "执行层级" },
363
- executorType: { label: "执行方式" },
364
- executorKey: { label: "执行实现" },
365
- sourceType: { label: "注册来源" }
366
- }
367
- }, null, 8, ["record", "field-names"])]), g("section", pe, [l[33] ||= g("h3", null, "权限治理", -1), g("div", me, [
368
- g("section", he, [g("header", null, [g("div", null, [g("h4", null, [l[25] ||= _(" 访问方式 ", -1), v(C(o), { title: "决定调用动作前需要满足的身份条件。" }, {
369
- default: w(() => [g("button", ge, [v(C(c), { name: "help" })])]),
370
- _: 1
371
- })])]), g("span", _e, [G("accessModeOverride") ? (b(), p(C(n), {
372
- key: 0,
373
- type: "text",
374
- size: "small",
375
- disabled: W.value,
376
- onClick: l[2] ||= (e) => K("accessModeOverride")
377
- }, {
378
- default: w(() => [...l[26] ||= [_("重置", -1)]]),
379
- _: 1
380
- }, 8, ["disabled"])) : m("v-if", !0)])]), v(C(a), {
381
- value: C(B).accessModeOverride ?? C(B).accessMode,
382
- disabled: W.value,
383
- options: [
384
- {
385
- label: "需要授权",
386
- value: "AUTH_REQUIRED"
387
- },
388
- {
389
- label: "登录可用",
390
- value: "LOGIN_REQUIRED"
391
- },
392
- {
393
- label: "匿名可用",
394
- value: "ANONYMOUS_ALLOWED"
395
- }
396
- ],
397
- "onUpdate:value": l[3] ||= (e) => q("accessModeOverride", e)
398
- }, null, 8, ["value", "disabled"])]),
399
- g("section", ve, [g("header", null, [g("div", null, [g("h4", null, [l[27] ||= _(" 默认授予策略 ", -1), v(C(o), { title: "定义满足条件的用户首次获得动作时的默认规则。" }, {
400
- default: w(() => [g("button", ye, [v(C(c), { name: "help" })])]),
401
- _: 1
402
- })])]), g("span", be, [G("defaultGrantPolicyOverride") ? (b(), p(C(n), {
403
- key: 0,
404
- type: "text",
405
- size: "small",
406
- disabled: W.value,
407
- onClick: l[4] ||= (e) => K("defaultGrantPolicyOverride")
408
- }, {
409
- default: w(() => [...l[28] ||= [_("重置", -1)]]),
410
- _: 1
411
- }, 8, ["disabled"])) : m("v-if", !0)])]), v(C(a), {
412
- value: C(B).defaultGrantPolicyOverride ?? C(B).defaultGrantPolicy,
413
- disabled: W.value,
414
- options: [
415
- {
416
- label: "不默认授予",
417
- value: "NONE"
418
- },
419
- {
420
- label: "所有登录用户",
421
- value: "ANY_LOGIN_USER"
422
- },
423
- {
424
- label: "记录所有者",
425
- value: "OWNER"
426
- },
427
- {
428
- label: "办理人",
429
- value: "ASSIGNEE"
430
- },
431
- {
432
- label: "成员",
433
- value: "MEMBER"
434
- }
435
- ],
436
- "onUpdate:value": l[5] ||= (e) => q("defaultGrantPolicyOverride", e)
437
- }, null, 8, ["value", "disabled"])]),
438
- g("section", E, [g("header", null, [g("div", null, [g("h4", null, [l[29] ||= _(" 动作授权 ", -1), v(C(o), { title: "控制角色是否需要被显式授予该动作。" }, {
439
- default: w(() => [g("button", D, [v(C(c), { name: "help" })])]),
440
- _: 1
441
- })])]), g("span", O, [G("actionAuthOverride") ? (b(), p(C(n), {
442
- key: 0,
443
- type: "text",
444
- size: "small",
445
- disabled: W.value,
446
- onClick: l[6] ||= (e) => K("actionAuthOverride")
447
- }, {
448
- default: w(() => [...l[30] ||= [_("重置", -1)]]),
449
- _: 1
450
- }, 8, ["disabled"])) : m("v-if", !0)])]), g("div", k, [v(C(e), {
451
- checked: (C(B).actionAuthOverride ?? C(B).actionAuth) !== !1,
452
- disabled: W.value,
453
- "checked-text": "开",
454
- "unchecked-text": "关",
455
- "onUpdate:checked": l[7] ||= (e) => q("actionAuthOverride", e)
456
- }, null, 8, ["checked", "disabled"]), g("strong", null, S((C(B).actionAuthOverride ?? C(B).actionAuth) === !1 ? "未启用" : "已启用"), 1)])]),
457
- g("section", A, [g("header", null, [g("div", null, [g("h4", null, [l[31] ||= _(" 数据授权 ", -1), v(C(o), { title: "启用后,读取和执行会继续按数据范围校验。" }, {
458
- default: w(() => [g("button", j, [v(C(c), { name: "help" })])]),
459
- _: 1
460
- })])]), g("span", M, [G("dataAuthOverride") ? (b(), p(C(n), {
461
- key: 0,
462
- type: "text",
463
- size: "small",
464
- disabled: W.value,
465
- onClick: l[8] ||= (e) => K("dataAuthOverride")
466
- }, {
467
- default: w(() => [...l[32] ||= [_("重置", -1)]]),
468
- _: 1
469
- }, 8, ["disabled"])) : m("v-if", !0)])]), g("div", N, [v(C(e), {
470
- checked: (C(B).dataAuthOverride ?? C(B).dataAuth) === !0,
471
- disabled: W.value,
472
- "checked-text": "开",
473
- "unchecked-text": "关",
474
- "onUpdate:checked": l[9] ||= (e) => q("dataAuthOverride", e)
475
- }, null, 8, ["checked", "disabled"]), g("strong", null, S((C(B).dataAuthOverride ?? C(B).dataAuth) === !0 ? "已启用" : "未启用"), 1)])])
476
- ])])], 32)) : (b(), h("form", {
477
- key: 3,
478
- class: "static-record-form",
479
- onSubmit: l[21] ||= T((...e) => C(R).save && C(R).save(...e), ["prevent"])
480
- }, [
481
- l[44] ||= g("p", { class: "form-hint wide-field" }, " 手工动作只能绑定已部署的二开执行器;平台会通过通用动作接口承接权限、审计和运行态刷新。 ", -1),
482
- g("label", null, [l[34] ||= g("span", null, "动作编码", -1), v(C(i), {
483
- value: C(B).actionCode,
484
- disabled: W.value,
485
- "onUpdate:value": l[11] ||= (e) => q("actionCode", e)
486
- }, null, 8, ["value", "disabled"])]),
487
- g("label", null, [l[35] ||= g("span", null, "动作名称", -1), v(C(i), {
488
- value: C(B).title,
489
- disabled: W.value,
490
- "onUpdate:value": l[12] ||= (e) => q("title", e)
491
- }, null, 8, ["value", "disabled"])]),
492
- g("label", null, [l[36] ||= g("span", null, "执行层级", -1), v(C(a), {
493
- value: C(B).actionLevel,
494
- disabled: W.value,
495
- options: Ae.value,
496
- "onUpdate:value": l[13] ||= (e) => q("actionLevel", e)
497
- }, null, 8, [
498
- "value",
499
- "disabled",
500
- "options"
501
- ])]),
502
- g("label", null, [l[37] ||= g("span", null, "访问方式", -1), v(C(a), {
503
- value: C(B).accessMode,
504
- disabled: W.value,
505
- options: [
506
- {
507
- label: "需要授权",
508
- value: "AUTH_REQUIRED"
509
- },
510
- {
511
- label: "登录可用",
512
- value: "LOGIN_REQUIRED"
513
- },
514
- {
515
- label: "匿名可用",
516
- value: "ANONYMOUS_ALLOWED"
517
- }
518
- ],
519
- "onUpdate:value": l[14] ||= (e) => q("accessMode", e)
520
- }, null, 8, ["value", "disabled"])]),
521
- g("label", null, [l[38] ||= g("span", null, "二开执行器", -1), v(C(a), {
522
- value: C(B).executorKey,
523
- disabled: W.value,
524
- options: ke.value,
525
- "onUpdate:value": l[15] ||= (e) => Ve(e)
526
- }, null, 8, [
527
- "value",
528
- "disabled",
529
- "options"
530
- ])]),
531
- g("label", xe, [v(C(s), {
532
- checked: C(B).actionAuth !== !1,
533
- disabled: W.value,
534
- "onUpdate:checked": l[16] ||= (e) => q("actionAuth", e)
535
- }, {
536
- default: w(() => [...l[39] ||= [_("启用动作授权", -1)]]),
537
- _: 1
538
- }, 8, ["checked", "disabled"])]),
539
- g("label", Se, [v(C(s), {
540
- checked: C(B).dataAuth === !0,
541
- disabled: W.value,
542
- "onUpdate:checked": l[17] ||= (e) => q("dataAuth", e)
543
- }, {
544
- default: w(() => [...l[40] ||= [_("启用数据授权", -1)]]),
545
- _: 1
546
- }, 8, ["checked", "disabled"])]),
547
- g("label", null, [l[41] ||= g("span", null, "默认授予策略", -1), v(C(a), {
548
- value: C(B).defaultGrantPolicy,
549
- disabled: W.value,
550
- options: [
551
- {
552
- label: "不默认授予",
553
- value: "NONE"
554
- },
555
- {
556
- label: "所有登录用户",
557
- value: "ANY_LOGIN_USER"
558
- },
559
- {
560
- label: "记录所有者",
561
- value: "OWNER"
562
- },
563
- {
564
- label: "办理人",
565
- value: "ASSIGNEE"
566
- },
567
- {
568
- label: "成员",
569
- value: "MEMBER"
570
- }
571
- ],
572
- "onUpdate:value": l[18] ||= (e) => q("defaultGrantPolicy", e)
573
- }, null, 8, ["value", "disabled"])]),
574
- g("label", Ce, [l[42] ||= g("span", null, "可用条件表达式", -1), v(C(u), {
575
- value: C(B).availableExpression,
576
- disabled: W.value,
577
- "onUpdate:value": l[19] ||= (e) => q("availableExpression", e)
578
- }, null, 8, ["value", "disabled"])]),
579
- g("label", we, [l[43] ||= g("span", null, "不可用提示", -1), v(C(u), {
580
- value: C(B).unavailableMessage,
581
- disabled: W.value,
582
- "onUpdate:value": l[20] ||= (e) => q("unavailableMessage", e)
583
- }, null, 8, ["value", "disabled"])])
584
- ], 32)), C(z) || C(V) !== "view" ? (b(), p(C(oe), {
585
- key: 4,
586
- record: C(B)
587
- }, null, 8, ["record"])) : m("v-if", !0)]),
588
- _: 1
589
- }, 8, [
590
- "mode",
591
- "detail-title",
592
- "explorer-search-keyword"
593
- ]));
594
- }
595
- }), [["__scopeId", "data-v-f74a56ea"]]);
596
- //#endregion
597
- export { P as default };