@ximatai/muyun-web-app 0.26.15 → 0.26.16
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.
- package/dist/BusinessActivityLogView-DVM_GB5y.js +18 -0
- package/dist/BusinessLogListDrawer-BciMLY9z.js +864 -0
- package/dist/ConfigurationTranslationView-B0FosDyz.js +197 -0
- package/dist/LoginAuditLogView-3tAozKlC.js +18 -0
- package/dist/ModuleActionManagementView-CJRNShGg.js +755 -0
- package/dist/{ModuleGovernanceView-LkWCtops.js → ModuleGovernanceView-DsqR_Sj7.js} +6733 -6323
- package/dist/RequestErrorLogView-C4yH-TSX.js +18 -0
- package/dist/RoleDetailWorkspaceView-BpOoGUwS.js +1435 -0
- package/dist/RuntimeLogView-CoKKpJ39.js +316 -0
- package/dist/WorkflowAdministrationView-DmUV6vWS.js +650 -0
- package/dist/WorkflowConfigurationView-pghDbWEh.js +975 -0
- package/dist/WorkflowWorkbenchView-BwWxyDen.js +747 -0
- package/dist/es-BST-ixpj.js +22621 -0
- package/dist/index.css +1 -1
- package/dist/index.js +852 -735
- package/dist/moduleGovernanceWorkspaceView-DGEV3ZyT.js +667 -0
- package/dist/platform-components-Cl5ZZiuU.js +27139 -0
- package/dist/{platform-workbench-C-kE-Yqq.js → platform-workbench-CAHoriIf.js} +7677 -7187
- package/dist/rolldown-runtime-BAC7EHh5.js +20 -0
- package/dist/types/app/ChangeOwnPasswordDialog.vue.d.ts +1 -1
- package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +1 -1
- package/dist/types/app/ThemeSkinPreferencesDialog.vue.d.ts +3 -0
- package/dist/types/app/businessNotificationNavigation.d.ts +4 -0
- package/dist/types/app/menuRouteCompiler.d.ts +3 -0
- package/dist/types/app/platformMessage.d.ts +3 -6
- package/dist/types/app/themeSkinPreference.d.ts +3 -2
- package/dist/types/app/workbenchStartup.d.ts +8 -4
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +1 -1
- package/dist/types/consumer/index.d.ts +3 -1
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +46 -1302
- package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +409 -1626
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansion.vue.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +15 -1
- package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/NavigatorManagementEditor.vue.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/NavigatorPanelActions.vue.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/TenantScopeExplorer.vue.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/composables/useModulePageBootstrap.d.ts +4 -3
- package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +9 -1301
- package/dist/types/dynamic-page-runtime/formActionResult.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/formValidationCoordinator.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +13 -4
- package/dist/types/dynamic-page-runtime/modulePageUnsavedState.d.ts +3 -10
- package/dist/types/dynamic-page-runtime/pageActionInvocation.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/pageActionPlacement.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/pageNavigatorItemModel.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/recordCreationReadiness.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/recordDisplayProjection.d.ts +7 -3
- package/dist/types/dynamic-page-runtime/recordFormAssistantCapabilities.d.ts +5 -4
- package/dist/types/dynamic-page-runtime/recordFormDraftAccess.d.ts +3 -0
- package/dist/types/dynamic-page-runtime/recordMutationPayload.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/recordReferenceDisplay.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/recordSaveRecovery.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/relationDraftAssistantCapabilities.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +35 -1303
- package/dist/types/dynamic-page-runtime/useModuleRecordDataChanges.d.ts +13 -0
- package/dist/types/platform-admin-runtime/backendHttp.d.ts +2 -1
- package/dist/types/platform-admin-runtime/index.d.ts +3 -1
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuClient.d.ts +4 -4
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuReceiptStore.d.ts +2 -1
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuSession.d.ts +11 -7
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuWorkspace.d.ts +16 -7
- package/dist/types/platform-admin-runtime/moduleOpenApi.d.ts +4 -3
- package/dist/types/platform-admin-runtime/pageRealtime.d.ts +0 -1
- package/dist/types/platform-admin-runtime/realtime.d.ts +0 -3
- package/dist/types/platform-admin-runtime/role/roleScopeSelectionClient.d.ts +4 -1
- package/dist/types/platform-admin-runtime/sessionRecovery.d.ts +3 -1
- package/dist/types/platform-admin-runtime/user/useUserSessionRows.d.ts +2 -0
- package/dist/types/platform-admin-runtime/user/userOnlineStatusStore.d.ts +1 -5
- package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +34 -1
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +4 -4
- package/dist/types/platform-components/DateTimeText.vue.d.ts +1 -1
- package/dist/types/platform-components/DetailRelationListPanel.vue.d.ts +1 -1
- package/dist/types/platform-components/DictionaryPicker.vue.d.ts +2 -2
- package/dist/types/platform-components/FileSizeText.vue.d.ts +1 -1
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +1 -1
- package/dist/types/platform-components/FormulaExpressionEditor.vue.d.ts +7 -7
- package/dist/types/platform-components/ModuleActionButton.vue.d.ts +2 -2
- package/dist/types/platform-components/QueryCriteriaComposer.vue.d.ts +1 -1
- package/dist/types/platform-components/QueryCriteriaGroupEditor.vue.d.ts +1 -1
- package/dist/types/platform-components/QueryValueEditor.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordActionBar.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordExpandedSubtable.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordImageFileReferencePreview.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordListExplorer.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +5 -5
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordPanelButton.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordPermissionDialog.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +6 -6
- package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +2 -2
- package/dist/types/platform-components/ReferencePicker.vue.d.ts +3 -3
- package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +1 -1
- package/dist/types/platform-components/ScopedTreePicker.vue.d.ts +1 -1
- package/dist/types/platform-components/SingleImageFileReferenceField.vue.d.ts +1 -1
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +5 -5
- package/dist/types/platform-components/UserPicker.vue.d.ts +2 -2
- package/dist/types/platform-components/UserSessionExpandedSubtable.vue.d.ts +1 -1
- package/dist/types/platform-components/WorkflowBusinessTaskEditor.vue.d.ts +36 -0
- package/dist/types/platform-components/WorkflowDesignProperties.vue.d.ts +40 -0
- package/dist/types/platform-components/WorkflowDiagram.vue.d.ts +24 -0
- package/dist/types/platform-components/WorkflowParticipantEditor.vue.d.ts +18 -0
- package/dist/types/platform-components/WorkflowRecordPanel.vue.d.ts +30 -0
- package/dist/types/platform-components/WorkflowTimeline.vue.d.ts +19 -0
- package/dist/types/platform-components/crudRecordListModel.d.ts +2 -1
- package/dist/types/platform-components/fileTransferUpload.d.ts +10 -0
- package/dist/types/platform-components/index.d.ts +8 -2
- package/dist/types/platform-components/optionFieldOptions.d.ts +7 -2
- package/dist/types/platform-components/platformDateTime.d.ts +2 -0
- package/dist/types/platform-components/platformErrorFeedback.d.ts +2 -1
- package/dist/types/platform-components/readonlyReferenceDisplay.d.ts +10 -2
- package/dist/types/platform-components/recordActionBarModel.d.ts +4 -1
- package/dist/types/platform-components/recordDetailFieldModel.d.ts +2 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +3 -3
- package/dist/types/platform-components/recordPickerConstraints.d.ts +4 -1
- package/dist/types/platform-components/recordQueryListColumnModel.d.ts +5 -1
- package/dist/types/platform-components/recycleBinState.d.ts +3 -2
- package/dist/types/platform-components/referencePickerModel.d.ts +9 -1
- package/dist/types/platform-components/referencePickerReadError.d.ts +11 -3
- package/dist/types/platform-components/referenceRecordDetailBrowser.d.ts +2 -2
- package/dist/types/platform-components/softDeletedConflictHandler.d.ts +3 -1
- package/dist/types/platform-components/staticCrudManagementState.d.ts +9 -8
- package/dist/types/platform-components/treeRecordModel.d.ts +2 -1
- package/dist/types/platform-components/userSessionPresentation.d.ts +4 -3
- package/dist/types/platform-components/workflowAccountOptions.d.ts +4 -0
- package/dist/types/platform-components/workflowDesignEditing.d.ts +11 -0
- package/dist/types/platform-components/workflowDiagramModel.d.ts +41 -0
- package/dist/types/platform-components/workflowParticipantPolicy.d.ts +11 -0
- package/dist/types/platform-components/workflowPresentation.d.ts +11 -0
- package/dist/types/platform-workbench/LanguageSelector.vue.d.ts +6 -0
- package/dist/types/platform-workbench/Workbench.vue.d.ts +3 -3
- package/dist/types/platform-workbench/WorkbenchAssistantPanel.vue.d.ts +1 -1
- package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +1 -1
- package/dist/types/platform-workbench/assistantControlText.d.ts +19 -0
- package/dist/types/platform-workbench/configurationCollaboration.d.ts +2 -2
- package/dist/types/platform-workbench/constructionDelivery.d.ts +2 -2
- package/dist/types/platform-workbench/constructionFields.d.ts +2 -2
- package/dist/types/platform-workbench/constructionInitialization.d.ts +2 -2
- package/dist/types/platform-workbench/constructionPlanGuard.d.ts +2 -1
- package/dist/types/platform-workbench/constructionPlanSession.d.ts +12 -4
- package/dist/types/platform-workbench/constructionPresentation.d.ts +6 -0
- package/dist/types/platform-workbench/constructionReferenceDiscovery.d.ts +2 -2
- package/dist/types/platform-workbench/index.d.ts +2 -1
- package/dist/types/platform-workbench/menuNavigation.d.ts +7 -3
- package/dist/types/platform-workbench/menuTreeModel.d.ts +2 -1
- package/dist/types/platform-workbench/realtimeStatus.d.ts +2 -1
- package/dist/types/platform-workbench/useAssistantConversation.d.ts +107 -15
- package/dist/types/platform-workbench/useAssistantConversationArchive.d.ts +8 -15
- package/dist/types/platform-workbench/useWorkspaceViewUnsavedState.d.ts +1 -5
- package/dist/types/platform-workbench/workbenchAssistantCapabilities.d.ts +3 -2
- package/dist/types/platform-workbench/workbenchNavigation.d.ts +1 -0
- package/dist/types/platform-workbench/workspaceViewContract.d.ts +4 -0
- package/dist/types/platform-workbench/workspaceViewDiscardGuard.d.ts +5 -0
- package/dist/types/platform-workbench/workspaceViewHost.d.ts +1 -1
- package/dist/types/platform-workbench/workspaceViewUnsavedState.d.ts +1 -1
- package/dist/types/platform-workbench/workspaceViews.d.ts +3 -2
- package/dist/types/views/ConfigurationTranslationView.vue.d.ts +3 -0
- package/dist/types/views/MetadataSourceTree.vue.d.ts +0 -2
- package/dist/types/views/PageCompositionDescriptorPreview.vue.d.ts +2 -2
- package/dist/types/views/PageQuerySummaryEditor.vue.d.ts +2 -2
- package/dist/types/views/RoleAuthorizationView.vue.d.ts +1 -1
- package/dist/types/views/WorkflowAdministrationView.vue.d.ts +3 -0
- package/dist/types/views/WorkflowConfigurationView.vue.d.ts +7 -0
- package/dist/types/views/WorkflowWorkbenchView.vue.d.ts +3 -0
- package/dist/types/views/businessLogClient.d.ts +5 -2
- package/dist/types/views/businessRuleAssistantSurface.d.ts +3 -3
- package/dist/types/views/businessRuleEditor.d.ts +2 -1
- package/dist/types/views/businessRuleGovernance.d.ts +14 -4
- package/dist/types/views/businessRuleSession.d.ts +4 -3
- package/dist/types/views/businessRuleWorkspace.d.ts +6 -2
- package/dist/types/views/configurationEditorNavigation.d.ts +2 -1
- package/dist/types/views/configurationTranslationWorkspace.d.ts +69 -0
- package/dist/types/views/dictionaryRadioEligibility.d.ts +2 -1
- package/dist/types/views/metadataChangeSetSubmission.d.ts +4 -3
- package/dist/types/views/metadataEditorSession.d.ts +15 -9
- package/dist/types/views/metadataGovernanceEditor.d.ts +4 -0
- package/dist/types/views/metadataModelEditSession.d.ts +3 -2
- package/dist/types/views/metadataModelTree.d.ts +2 -1
- package/dist/types/views/metadataNaming.d.ts +5 -2
- package/dist/types/views/metadataOrchestrationState.d.ts +10 -9
- package/dist/types/views/metadataSourceTree.d.ts +3 -2
- package/dist/types/views/metadataWorkspace.d.ts +26 -19
- package/dist/types/views/moduleRuntimeActivation.d.ts +3 -3
- package/dist/types/views/pageCompositionAssistantSurface.d.ts +2 -0
- package/dist/types/views/pageCompositionCandidate.d.ts +2 -1
- package/dist/types/views/pageCompositionComponents.d.ts +5 -4
- package/dist/types/views/pageCompositionDraftState.d.ts +21 -7
- package/dist/types/views/pageCompositionMode.d.ts +26 -2
- package/dist/types/views/pageCompositionPublication.d.ts +2 -0
- package/dist/types/views/pageCompositionSession.d.ts +48 -15
- package/dist/types/views/pageCompositionWorkspace.d.ts +90 -29
- package/dist/types/views/runtimeLogClient.d.ts +2 -2
- package/dist/types/views/usePageCompositionComponents.d.ts +2 -1
- package/dist/types/views/workflowConfigurationWorkspaceView.d.ts +5 -0
- package/dist/types/vue-ui-antdv/blockingOverlays.d.ts +9 -0
- package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +2 -2
- package/dist/types/vue-ui-antdv/components/UiLanguageProvider.vue.d.ts +18 -0
- package/dist/types/vue-ui-antdv/components/UiModal.vue.d.ts +3 -3
- package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +2 -2
- package/dist/types/vue-ui-antdv/components/UiSearchInput.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +3 -0
- package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +7 -7
- package/dist/types/vue-ui-antdv/components/UiTokenInput.vue.d.ts +7 -7
- package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/confirm.d.ts +3 -2
- package/dist/types/vue-ui-antdv/index.d.ts +3 -0
- package/dist/types/vue-ui-antdv/languageGlobalScope.d.ts +3 -0
- package/dist/types/vue-ui-antdv/languageLocales.d.ts +4 -0
- package/dist/types/vue-ui-antdv/theme.d.ts +2 -0
- package/dist/types/vue-ui-antdv/types.d.ts +2 -0
- package/dist/types/web-contracts/constructionPlan.d.ts +4 -3
- package/dist/types/web-contracts/index.d.ts +46 -0
- package/dist/types/web-contracts/workflow.d.ts +346 -0
- package/dist/types/web-core/actionResult.d.ts +3 -0
- package/dist/types/web-core/assistantConfirmation.d.ts +3 -2
- package/dist/types/web-core/assistantConversationClient.d.ts +8 -0
- package/dist/types/web-core/assistantSurface.d.ts +4 -3
- package/dist/types/web-core/errors.d.ts +8 -4
- package/dist/types/web-core/index.d.ts +6 -0
- package/dist/types/web-core/language.d.ts +54 -0
- package/dist/types/web-core/languagePreference.d.ts +8 -0
- package/dist/types/web-core/module/dataExchangeClient.d.ts +2 -1
- package/dist/types/web-core/module/index.d.ts +1 -0
- package/dist/types/web-core/module/moduleContext.d.ts +4 -0
- package/dist/types/web-core/module/pageActionEntries.d.ts +3 -2
- package/dist/types/web-core/module/runtimeContext.d.ts +15 -2
- package/dist/types/web-core/operationConfirmation.d.ts +5 -1
- package/dist/types/web-core/operationErrors.d.ts +15 -1
- package/dist/types/web-core/presentationTexts.d.ts +16 -0
- package/dist/types/web-core/sha256.d.ts +2 -0
- package/dist/types/web-core/workflow.d.ts +70 -0
- package/dist/types/web-core/workspaceUnsavedState.d.ts +6 -0
- package/dist/workspaceViews-BIYGPUAO.js +3437 -0
- package/package.json +2 -4
- package/dist/BusinessActivityLogView-DVzrZW1X.js +0 -16
- package/dist/BusinessLogListDrawer-D-R3wnWr.js +0 -825
- package/dist/LoginAuditLogView-BP1eaEPw.js +0 -16
- package/dist/ModuleActionManagementView-D17iKVQv.js +0 -691
- package/dist/RequestErrorLogView-LzN94-Tk.js +0 -16
- package/dist/RoleDetailWorkspaceView-BXA-bzFu.js +0 -1406
- package/dist/RuntimeLogView-DUpu2q2w.js +0 -297
- package/dist/moduleGovernanceWorkspaceView-COjWtJMr.js +0 -639
- package/dist/platform-components-Hs3DrTqE.js +0 -19770
- package/dist/rolldown-runtime-DPVXH0ON.js +0 -17
- package/dist/sse-Q1wa3p_k.js +0 -187
- package/dist/workspaceViews-CHsgLFwY.js +0 -3217
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { Bn as e, Ei as t, Gn as n, Ln as r, Vn as i, dr as a, na as o, nn as s, qn as c } from "./platform-components-Cl5ZZiuU.js";
|
|
2
|
+
import { Fragment as l, computed as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, isRef as _, openBlock as v, ref as y, toDisplayString as b, unref as x, watch as S, withCtx as C } from "vue";
|
|
3
|
+
//#region src/views/configurationTranslationWorkspace.ts
|
|
4
|
+
function w(e) {
|
|
5
|
+
let n = y(""), r = y(""), i = u(() => r.value === n.value.trim()), a = y(), o = y("en"), s = y([]), c = y([]), l = y({}), d = /* @__PURE__ */ new Map(), f = y(!1), p = u(() => s.value.find((e) => e.sourceId === a.value)), m = u(() => JSON.stringify([
|
|
6
|
+
r.value,
|
|
7
|
+
p.value?.sourceId,
|
|
8
|
+
p.value?.sourceVersion,
|
|
9
|
+
o.value
|
|
10
|
+
])), h = u(() => c.value.find((e) => e.sourceId === p.value?.sourceId && e.sourceVersion === p.value?.sourceVersion && e.languageTag === o.value)), g = u(() => c.value.find((e) => e.sourceId === p.value?.sourceId && e.sourceVersion !== p.value?.sourceVersion && e.languageTag === o.value)), _ = u({
|
|
11
|
+
get: () => l.value[m.value] ?? h.value?.draftText ?? "",
|
|
12
|
+
set: (e) => {
|
|
13
|
+
let t = { ...l.value };
|
|
14
|
+
e === (h.value?.draftText ?? "") ? (delete t[m.value], d.delete(m.value)) : (m.value in t || d.set(m.value, h.value?.version), t[m.value] = e), l.value = t;
|
|
15
|
+
}
|
|
16
|
+
}), v = u(() => _.value !== (h.value?.draftText ?? "")), b = 0, x = (e) => {
|
|
17
|
+
c.value = [...c.value.filter((t) => t.id !== e.id), e];
|
|
18
|
+
};
|
|
19
|
+
async function S() {
|
|
20
|
+
if (f.value || !n.value.trim()) return;
|
|
21
|
+
let t = ++b, i = n.value.trim();
|
|
22
|
+
f.value = !0;
|
|
23
|
+
try {
|
|
24
|
+
let [o, l] = await Promise.all([e.request({ path: `/platform.localization/modules/${encodeURIComponent(i)}/sources` }), e.request({ path: `/platform.localization/modules/${encodeURIComponent(i)}/translations` })]);
|
|
25
|
+
if (t !== b || n.value.trim() !== i) return;
|
|
26
|
+
r.value = i, s.value = o, c.value = l, o.some((e) => e.sourceId === a.value) || (a.value = o[0]?.sourceId);
|
|
27
|
+
} finally {
|
|
28
|
+
t === b && (f.value = !1);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
async function C() {
|
|
32
|
+
if (f.value || !i.value || !p.value || !_.value.trim()) return;
|
|
33
|
+
let n = p.value, a = m.value, s = _.value;
|
|
34
|
+
f.value = !0;
|
|
35
|
+
try {
|
|
36
|
+
let i = t(await e.request({
|
|
37
|
+
method: "POST",
|
|
38
|
+
path: "/platform.localization/drafts",
|
|
39
|
+
body: {
|
|
40
|
+
moduleAlias: r.value,
|
|
41
|
+
sourceId: n.sourceId,
|
|
42
|
+
sourceVersion: n.sourceVersion,
|
|
43
|
+
languageTag: o.value,
|
|
44
|
+
text: s,
|
|
45
|
+
version: a in l.value ? d.get(a) : h.value?.version
|
|
46
|
+
}
|
|
47
|
+
}));
|
|
48
|
+
x(i);
|
|
49
|
+
let c = { ...l.value };
|
|
50
|
+
c[a] === s ? (delete c[a], d.delete(a)) : a in c && d.set(a, i.version), l.value = c;
|
|
51
|
+
} finally {
|
|
52
|
+
f.value = !1;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
async function w() {
|
|
56
|
+
if (f.value || !i.value || v.value || !h.value || !p.value) return;
|
|
57
|
+
let n = h.value;
|
|
58
|
+
f.value = !0;
|
|
59
|
+
try {
|
|
60
|
+
x(t(await e.request({
|
|
61
|
+
method: "POST",
|
|
62
|
+
path: `/platform.localization/translations/${encodeURIComponent(n.id)}/publish`,
|
|
63
|
+
body: {
|
|
64
|
+
sourceVersion: p.value.sourceVersion,
|
|
65
|
+
version: n.version
|
|
66
|
+
}
|
|
67
|
+
})));
|
|
68
|
+
} finally {
|
|
69
|
+
f.value = !1;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
moduleAlias: n,
|
|
74
|
+
loadedModuleAlias: r,
|
|
75
|
+
ready: i,
|
|
76
|
+
sourceId: a,
|
|
77
|
+
targetLanguage: o,
|
|
78
|
+
sources: s,
|
|
79
|
+
source: p,
|
|
80
|
+
translation: h,
|
|
81
|
+
previous: g,
|
|
82
|
+
text: _,
|
|
83
|
+
dirty: v,
|
|
84
|
+
busy: f,
|
|
85
|
+
load: S,
|
|
86
|
+
save: C,
|
|
87
|
+
publish: w
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/views/ConfigurationTranslationView.vue?vue&type=script&setup=true&lang.ts
|
|
92
|
+
var T = { class: "configuration-translation" }, E = { class: "configuration-translation__toolbar" }, D = { class: "configuration-translation__location" }, O = {
|
|
93
|
+
key: 0,
|
|
94
|
+
role: "status"
|
|
95
|
+
}, k = { class: "configuration-translation__toolbar" }, A = { key: 1 }, j = /*#__PURE__*/ c(/* @__PURE__ */ g({
|
|
96
|
+
__name: "ConfigurationTranslationView",
|
|
97
|
+
setup(t) {
|
|
98
|
+
let c = o(), g = c.t, y = a({ moduleAlias: "platform.localization" }), j = w(y.http), { moduleAlias: M, sourceId: N, targetLanguage: P, sources: F, source: I, translation: L, previous: R, text: z, dirty: B, busy: V, ready: H } = j, U = u(() => c.catalog.value.languages.filter((e) => e.enabled !== !1).map((e) => ({
|
|
99
|
+
value: e.tag,
|
|
100
|
+
label: e.nativeName
|
|
101
|
+
})));
|
|
102
|
+
S(c.catalog, (e) => {
|
|
103
|
+
e.languages.some((e) => e.tag === P.value && e.enabled !== !1) || (P.value = e.languages.find((t) => t.enabled !== !1 && t.tag !== e.defaultTag)?.tag ?? e.defaultTag);
|
|
104
|
+
}, { immediate: !0 });
|
|
105
|
+
let W = u(() => F.value.map((e) => ({
|
|
106
|
+
value: e.sourceId,
|
|
107
|
+
label: e.originalText
|
|
108
|
+
})));
|
|
109
|
+
async function G(e) {
|
|
110
|
+
try {
|
|
111
|
+
await e();
|
|
112
|
+
} catch (e) {
|
|
113
|
+
s(e, {
|
|
114
|
+
source: "configuration-translation",
|
|
115
|
+
phase: "action"
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return (t, a) => (v(), f("section", T, [
|
|
120
|
+
p("h2", null, b(x(g)("platform.translation.title", "配置翻译")), 1),
|
|
121
|
+
p("p", null, b(x(g)("platform.translation.scope", "维护已生效界面原文的译文;业务记录内容保持原文。")), 1),
|
|
122
|
+
p("div", E, [
|
|
123
|
+
p("label", null, [m(b(x(g)("platform.translation.module", "模块")), 1), h(x(e), {
|
|
124
|
+
value: x(M),
|
|
125
|
+
"onUpdate:value": a[0] ||= (e) => _(M) ? M.value = e : null,
|
|
126
|
+
disabled: x(V),
|
|
127
|
+
placeholder: "education.exam"
|
|
128
|
+
}, null, 8, ["value", "disabled"])]),
|
|
129
|
+
h(x(n), {
|
|
130
|
+
disabled: x(V) || !x(M) || x(y).can("viewTranslationSources") !== !0 || x(y).can("viewTranslations") !== !0,
|
|
131
|
+
onClick: a[1] ||= (e) => G(x(j).load)
|
|
132
|
+
}, {
|
|
133
|
+
default: C(() => [m(b(x(g)("platform.translation.load", "加载原文")), 1)]),
|
|
134
|
+
_: 1
|
|
135
|
+
}, 8, ["disabled"]),
|
|
136
|
+
p("label", null, [m(b(x(g)("platform.translation.target-language", "翻译语言")), 1), h(x(i), {
|
|
137
|
+
value: x(P),
|
|
138
|
+
"onUpdate:value": a[2] ||= (e) => _(P) ? P.value = e : null,
|
|
139
|
+
options: U.value,
|
|
140
|
+
"allow-clear": !1,
|
|
141
|
+
disabled: x(V)
|
|
142
|
+
}, null, 8, [
|
|
143
|
+
"value",
|
|
144
|
+
"options",
|
|
145
|
+
"disabled"
|
|
146
|
+
])])
|
|
147
|
+
]),
|
|
148
|
+
x(F).length && x(H) ? (v(), f(l, { key: 0 }, [p("label", null, [m(b(x(g)("platform.translation.source", "选择原文")), 1), h(x(i), {
|
|
149
|
+
value: x(N),
|
|
150
|
+
"onUpdate:value": a[3] ||= (e) => _(N) ? N.value = e : null,
|
|
151
|
+
options: W.value,
|
|
152
|
+
"allow-clear": !1,
|
|
153
|
+
disabled: x(V),
|
|
154
|
+
"show-search": ""
|
|
155
|
+
}, null, 8, [
|
|
156
|
+
"value",
|
|
157
|
+
"options",
|
|
158
|
+
"disabled"
|
|
159
|
+
])]), x(I) ? (v(), f(l, { key: 0 }, [
|
|
160
|
+
p("p", D, [
|
|
161
|
+
p("span", null, b(x(g)("platform.translation.location", "来源位置")), 1),
|
|
162
|
+
a[7] ||= m(),
|
|
163
|
+
p("code", null, b(x(I).sourceId), 1)
|
|
164
|
+
]),
|
|
165
|
+
p("label", null, [m(b(x(g)("platform.translation.original", "原文")), 1), h(x(r), {
|
|
166
|
+
value: x(I).originalText,
|
|
167
|
+
disabled: ""
|
|
168
|
+
}, null, 8, ["value"])]),
|
|
169
|
+
x(R) ? (v(), f("p", O, b(x(g)("platform.translation.review-required", "原文已变化,旧译文仅供复核参考:")) + b(x(R).publishedText ?? x(R).draftText), 1)) : d("v-if", !0),
|
|
170
|
+
p("label", null, [m(b(x(g)("platform.translation.draft", "译文草稿")), 1), h(x(r), {
|
|
171
|
+
value: x(z),
|
|
172
|
+
"onUpdate:value": a[4] ||= (e) => _(z) ? z.value = e : null,
|
|
173
|
+
disabled: x(V) || x(y).can("saveTranslationDraft") !== !0
|
|
174
|
+
}, null, 8, ["value", "disabled"])]),
|
|
175
|
+
p("label", null, [m(b(x(g)("platform.translation.published", "已发布译文")), 1), h(x(r), {
|
|
176
|
+
value: x(L)?.publishedText ?? "",
|
|
177
|
+
disabled: ""
|
|
178
|
+
}, null, 8, ["value"])]),
|
|
179
|
+
p("div", k, [h(x(n), {
|
|
180
|
+
disabled: x(V) || !x(H) || !x(z).trim() || x(y).can("saveTranslationDraft") !== !0,
|
|
181
|
+
onClick: a[5] ||= (e) => G(x(j).save)
|
|
182
|
+
}, {
|
|
183
|
+
default: C(() => [m(b(x(g)("platform.translation.save-draft", "保存草稿")), 1)]),
|
|
184
|
+
_: 1
|
|
185
|
+
}, 8, ["disabled"]), h(x(n), {
|
|
186
|
+
disabled: x(V) || !x(H) || x(B) || !x(L) || x(y).can("publishTranslation") !== !0,
|
|
187
|
+
onClick: a[6] ||= (e) => G(x(j).publish)
|
|
188
|
+
}, {
|
|
189
|
+
default: C(() => [m(b(x(g)("platform.translation.publish", "独立发布译文")), 1)]),
|
|
190
|
+
_: 1
|
|
191
|
+
}, 8, ["disabled"])])
|
|
192
|
+
], 64)) : d("v-if", !0)], 64)) : x(V) ? d("v-if", !0) : (v(), f("p", A, b(x(g)("platform.translation.empty", "选择模块并加载可翻译的在线配置原文。代码声明文案通过所属应用语言资源维护。")), 1))
|
|
193
|
+
]));
|
|
194
|
+
}
|
|
195
|
+
}), [["__scopeId", "data-v-acb685de"]]);
|
|
196
|
+
//#endregion
|
|
197
|
+
export { j as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { na as e } from "./platform-components-Cl5ZZiuU.js";
|
|
2
|
+
import { t } from "./BusinessLogListDrawer-BciMLY9z.js";
|
|
3
|
+
import { createBlock as n, defineComponent as r, openBlock as i, unref as a } from "vue";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/views/LoginAuditLogView.vue
|
|
6
|
+
var o = /* @__PURE__ */ r({
|
|
7
|
+
__name: "LoginAuditLogView",
|
|
8
|
+
setup(r) {
|
|
9
|
+
let o = e();
|
|
10
|
+
return (e, r) => (i(), n(t, {
|
|
11
|
+
surface: "login",
|
|
12
|
+
"module-alias": "iam.login_audit_log",
|
|
13
|
+
title: a(o).t("platform.screen.BusinessLogRetentionControl.login-audit-logs", "登录日志")
|
|
14
|
+
}, null, 8, ["title"]));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
export { o as default };
|