@ximatai/muyun-web-app 0.26.17 → 0.26.19
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-9RrW-RKb.js → BusinessActivityLogView-DudCmeKP.js} +2 -2
- package/dist/{BusinessLogListDrawer-DYVx9tiQ.js → BusinessLogListDrawer-CVUvUG48.js} +193 -193
- package/dist/CodeConfigurationView-ZjVgaZkD.js +1667 -0
- package/dist/{ConfigurationTranslationView-Bh_ekuMP.js → ConfigurationTranslationView-Dl757QMl.js} +38 -38
- package/dist/{LoginAuditLogView-DG6iBXEn.js → LoginAuditLogView-Cj3PMvN5.js} +2 -2
- package/dist/ModuleActionManagementView-BuhQrVA3.js +755 -0
- package/dist/{ModuleGovernanceView-C53RnUzc.js → ModuleGovernanceView-C3RxdgQN.js} +3736 -3880
- package/dist/{RequestErrorLogView-Ba5p0hLE.js → RequestErrorLogView-tmjMOeLE.js} +2 -2
- package/dist/RoleDetailWorkspaceView-OhpBChaT.js +1435 -0
- package/dist/{RuntimeLogView-BFEABm8G.js → RuntimeLogView-BkkgHcF0.js} +69 -69
- package/dist/WorkflowAdministrationView-DOhA_5-M.js +650 -0
- package/dist/WorkflowConfigurationView-Bnjdrkdx.js +980 -0
- package/dist/{WorkflowWorkbenchView-DGpNDt5V.js → WorkflowWorkbenchView-Cf6yiofx.js} +263 -263
- package/dist/codeConfiguration-DERwCY-U.js +208 -0
- package/dist/index.css +1 -1
- package/dist/index.js +472 -471
- package/dist/moduleMenuWorkspace-DPmYGkS_.js +626 -0
- package/dist/platform-components-wRXbnwMr.js +30434 -0
- package/dist/{platform-workbench-C1hmkOUD.js → platform-workbench-Cm_0kmTT.js} +5570 -5592
- package/dist/types/app/DevelopmentTopbarActions.vue.d.ts +9 -0
- package/dist/types/app/executeBusinessNotificationRecordAction.d.ts +7 -0
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +5 -1
- package/dist/types/consumer/index.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageDetailExtensionRuntime.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancementState.d.ts +5 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +6 -2
- package/dist/types/platform-admin-runtime/ModuleCodeConfigurationStatus.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/moduleCodeConfiguration.d.ts +15 -0
- package/dist/types/platform-admin-runtime/workflow/ModuleWorkflowDrawer.vue.d.ts +7 -0
- package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +5 -3
- package/dist/types/platform-components/FormulaExpressionEditor.vue.d.ts +5 -0
- package/dist/types/platform-components/RecordAdaptiveDetailPanel.vue.d.ts +28 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +4 -2
- package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +4 -0
- package/dist/types/platform-components/RecordRelationActionButton.vue.d.ts +16 -0
- package/dist/types/{dynamic-page-runtime → platform-components}/TenantScopeExplorer.vue.d.ts +1 -1
- package/dist/types/platform-components/WorkflowBusinessTaskEditor.vue.d.ts +2 -0
- package/dist/types/platform-components/WorkflowDesignProperties.vue.d.ts +2 -6
- package/dist/types/platform-components/WorkflowDiagram.vue.d.ts +32 -1
- package/dist/types/platform-components/formulaExpressionTokens.d.ts +2 -0
- package/dist/types/platform-components/formulaExpressionTools.d.ts +6 -0
- package/dist/types/platform-components/index.d.ts +5 -0
- package/dist/types/platform-components/managementWorkspaceLayout.d.ts +10 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +4 -0
- package/dist/types/platform-components/useBusinessCodeForm.d.ts +36 -0
- package/dist/types/platform-components/useWorkflowDesignHistory.d.ts +14 -0
- package/dist/types/platform-components/useWorkspaceDetailSurface.d.ts +3 -0
- package/dist/types/platform-components/workflowDesignClipboard.d.ts +7 -0
- package/dist/types/platform-components/workflowPresentation.d.ts +4 -0
- package/dist/types/platform-workbench/Workbench.vue.d.ts +6 -2
- package/dist/types/platform-workbench/WorkbenchGlobalTools.vue.d.ts +13 -1
- package/dist/types/views/CodeConfigurationView.vue.d.ts +8 -0
- package/dist/types/views/CodeRuleFormatEditor.vue.d.ts +17 -0
- package/dist/types/views/WorkflowConfigurationView.vue.d.ts +1 -0
- package/dist/types/views/WorkflowDefinitionSettings.vue.d.ts +35 -0
- package/dist/types/views/WorkflowSelectionFields.vue.d.ts +2 -4
- package/dist/types/views/codeConfiguration.d.ts +127 -0
- package/dist/types/views/codeConfigurationWorkspaceView.d.ts +5 -0
- package/dist/types/views/moduleGovernanceWorkspaceView.d.ts +1 -1
- package/dist/types/views/useWorkflowConfigurationContext.d.ts +49 -0
- package/dist/types/views/workflowConfigurationWorkspaceView.d.ts +2 -0
- package/dist/types/vue-ui-antdv/components/UiDatePicker.vue.d.ts +33 -0
- package/dist/types/vue-ui-antdv/components/UiHelp.vue.d.ts +16 -0
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiPopover.vue.d.ts +12 -4
- package/dist/types/vue-ui-antdv/components/UiRadioGroup.vue.d.ts +4 -0
- package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +5 -0
- package/dist/types/vue-ui-antdv/datePickerCalendar.d.ts +472 -0
- package/dist/types/vue-ui-antdv/datePickerValue.d.ts +6 -0
- package/dist/types/vue-ui-antdv/index.d.ts +4 -0
- package/dist/types/vue-ui-antdv/languageLocales.d.ts +2 -0
- package/dist/types/vue-ui-antdv/overlayLayers.d.ts +5 -0
- package/dist/types/vue-ui-antdv/types.d.ts +2 -0
- package/dist/types/web-contracts/index.d.ts +18 -0
- package/dist/types/web-contracts/workflow.d.ts +16 -8
- package/dist/types/web-core/businessNotifications.d.ts +3 -1
- package/dist/types/web-core/workflow.d.ts +13 -1
- package/dist/useWorkflowConfigurationContext-BE_UjKgk.js +66 -0
- package/dist/{workspaceViews-BpH71LKQ.js → workspaceViews-D37OpJ7g.js} +1608 -884
- package/package.json +4 -1
- package/dist/ModuleActionManagementView-DgHqhoMN.js +0 -755
- package/dist/RoleDetailWorkspaceView-C3TBqksY.js +0 -1435
- package/dist/WorkflowAdministrationView-BOHG2e-I.js +0 -650
- package/dist/WorkflowConfigurationView-A0m5tBX9.js +0 -1097
- package/dist/moduleGovernanceWorkspaceView-DNKzYX0x.js +0 -667
- package/dist/platform-components-BBfyINHa.js +0 -29912
package/dist/{ConfigurationTranslationView-Bh_ekuMP.js → ConfigurationTranslationView-Dl757QMl.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $n as e, Ha as t, Xn as n, ar as r, oa as i, qn as a, rr as o, un as s, zr as c } from "./platform-components-wRXbnwMr.js";
|
|
2
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
3
|
//#region src/views/configurationTranslationWorkspace.ts
|
|
4
4
|
function w(e) {
|
|
5
|
-
let t = y(""), n = y(""), r = u(() => n.value === t.value.trim()),
|
|
5
|
+
let t = y(""), n = y(""), r = u(() => n.value === t.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
6
|
n.value,
|
|
7
7
|
p.value?.sourceId,
|
|
8
8
|
p.value?.sourceVersion,
|
|
9
|
-
|
|
10
|
-
])), h = u(() => c.value.find((e) => e.sourceId === p.value?.sourceId && e.sourceVersion === p.value?.sourceVersion && e.languageTag ===
|
|
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
11
|
get: () => l.value[m.value] ?? h.value?.draftText ?? "",
|
|
12
12
|
set: (e) => {
|
|
13
13
|
let t = { ...l.value };
|
|
@@ -18,36 +18,36 @@ function w(e) {
|
|
|
18
18
|
};
|
|
19
19
|
async function S() {
|
|
20
20
|
if (f.value || !t.value.trim()) return;
|
|
21
|
-
let r = ++b,
|
|
21
|
+
let r = ++b, i = t.value.trim();
|
|
22
22
|
f.value = !0;
|
|
23
23
|
try {
|
|
24
|
-
let [o, l] = await Promise.all([e.request({ path: `/platform.localization/modules/${encodeURIComponent(
|
|
25
|
-
if (r !== b || t.value.trim() !==
|
|
26
|
-
n.value =
|
|
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 (r !== b || t.value.trim() !== i) return;
|
|
26
|
+
n.value = i, s.value = o, c.value = l, o.some((e) => e.sourceId === a.value) || (a.value = o[0]?.sourceId);
|
|
27
27
|
} finally {
|
|
28
28
|
r === b && (f.value = !1);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
async function C() {
|
|
32
32
|
if (f.value || !r.value || !p.value || !_.value.trim()) return;
|
|
33
|
-
let t = p.value,
|
|
33
|
+
let t = p.value, a = m.value, s = _.value;
|
|
34
34
|
f.value = !0;
|
|
35
35
|
try {
|
|
36
|
-
let r =
|
|
36
|
+
let r = i(await e.request({
|
|
37
37
|
method: "POST",
|
|
38
38
|
path: "/platform.localization/drafts",
|
|
39
39
|
body: {
|
|
40
40
|
moduleAlias: n.value,
|
|
41
41
|
sourceId: t.sourceId,
|
|
42
42
|
sourceVersion: t.sourceVersion,
|
|
43
|
-
languageTag:
|
|
43
|
+
languageTag: o.value,
|
|
44
44
|
text: s,
|
|
45
|
-
version:
|
|
45
|
+
version: a in l.value ? d.get(a) : h.value?.version
|
|
46
46
|
}
|
|
47
47
|
}));
|
|
48
48
|
x(r);
|
|
49
49
|
let c = { ...l.value };
|
|
50
|
-
c[
|
|
50
|
+
c[a] === s ? (delete c[a], d.delete(a)) : a in c && d.set(a, r.version), l.value = c;
|
|
51
51
|
} finally {
|
|
52
52
|
f.value = !1;
|
|
53
53
|
}
|
|
@@ -57,7 +57,7 @@ function w(e) {
|
|
|
57
57
|
let t = h.value;
|
|
58
58
|
f.value = !0;
|
|
59
59
|
try {
|
|
60
|
-
x(
|
|
60
|
+
x(i(await e.request({
|
|
61
61
|
method: "POST",
|
|
62
62
|
path: `/platform.localization/translations/${encodeURIComponent(t.id)}/publish`,
|
|
63
63
|
body: {
|
|
@@ -73,8 +73,8 @@ function w(e) {
|
|
|
73
73
|
moduleAlias: t,
|
|
74
74
|
loadedModuleAlias: n,
|
|
75
75
|
ready: r,
|
|
76
|
-
sourceId:
|
|
77
|
-
targetLanguage:
|
|
76
|
+
sourceId: a,
|
|
77
|
+
targetLanguage: o,
|
|
78
78
|
sources: s,
|
|
79
79
|
source: p,
|
|
80
80
|
translation: h,
|
|
@@ -92,14 +92,14 @@ function w(e) {
|
|
|
92
92
|
var T = { class: "configuration-translation" }, E = { class: "configuration-translation__toolbar" }, D = { class: "configuration-translation__location" }, O = {
|
|
93
93
|
key: 0,
|
|
94
94
|
role: "status"
|
|
95
|
-
}, k = { class: "configuration-translation__toolbar" }, A = { key: 1 }, j = /*#__PURE__*/
|
|
95
|
+
}, k = { class: "configuration-translation__toolbar" }, A = { key: 1 }, j = /*#__PURE__*/ r(/* @__PURE__ */ g({
|
|
96
96
|
__name: "ConfigurationTranslationView",
|
|
97
|
-
setup(
|
|
98
|
-
let
|
|
97
|
+
setup(r) {
|
|
98
|
+
let i = t(), g = i.t, y = c({ 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(() => i.catalog.value.languages.filter((e) => e.enabled !== !1).map((e) => ({
|
|
99
99
|
value: e.tag,
|
|
100
100
|
label: e.nativeName
|
|
101
101
|
})));
|
|
102
|
-
S(
|
|
102
|
+
S(i.catalog, (e) => {
|
|
103
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
104
|
}, { immediate: !0 });
|
|
105
105
|
let W = u(() => F.value.map((e) => ({
|
|
@@ -116,26 +116,26 @@ var T = { class: "configuration-translation" }, E = { class: "configuration-tran
|
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
return (
|
|
119
|
+
return (t, r) => (v(), f("section", T, [
|
|
120
120
|
p("h2", null, b(x(g)("platform.translation.title", "配置翻译")), 1),
|
|
121
121
|
p("p", null, b(x(g)("platform.translation.scope", "维护已生效界面原文的译文;业务记录内容保持原文。")), 1),
|
|
122
122
|
p("div", E, [
|
|
123
|
-
p("label", null, [m(b(x(g)("platform.translation.module", "模块")), 1), h(x(
|
|
123
|
+
p("label", null, [m(b(x(g)("platform.translation.module", "模块")), 1), h(x(n), {
|
|
124
124
|
value: x(M),
|
|
125
|
-
"onUpdate:value":
|
|
125
|
+
"onUpdate:value": r[0] ||= (e) => _(M) ? M.value = e : null,
|
|
126
126
|
disabled: x(V),
|
|
127
127
|
placeholder: "education.exam"
|
|
128
128
|
}, null, 8, ["value", "disabled"])]),
|
|
129
|
-
h(x(
|
|
129
|
+
h(x(o), {
|
|
130
130
|
disabled: x(V) || !x(M) || x(y).can("viewTranslationSources") !== !0 || x(y).can("viewTranslations") !== !0,
|
|
131
|
-
onClick:
|
|
131
|
+
onClick: r[1] ||= (e) => G(x(j).load)
|
|
132
132
|
}, {
|
|
133
133
|
default: C(() => [m(b(x(g)("platform.translation.load", "加载原文")), 1)]),
|
|
134
134
|
_: 1
|
|
135
135
|
}, 8, ["disabled"]),
|
|
136
|
-
p("label", null, [m(b(x(g)("platform.translation.target-language", "翻译语言")), 1), h(x(
|
|
136
|
+
p("label", null, [m(b(x(g)("platform.translation.target-language", "翻译语言")), 1), h(x(e), {
|
|
137
137
|
value: x(P),
|
|
138
|
-
"onUpdate:value":
|
|
138
|
+
"onUpdate:value": r[2] ||= (e) => _(P) ? P.value = e : null,
|
|
139
139
|
options: U.value,
|
|
140
140
|
"allow-clear": !1,
|
|
141
141
|
disabled: x(V)
|
|
@@ -145,9 +145,9 @@ var T = { class: "configuration-translation" }, E = { class: "configuration-tran
|
|
|
145
145
|
"disabled"
|
|
146
146
|
])])
|
|
147
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(
|
|
148
|
+
x(F).length && x(H) ? (v(), f(l, { key: 0 }, [p("label", null, [m(b(x(g)("platform.translation.source", "选择原文")), 1), h(x(e), {
|
|
149
149
|
value: x(N),
|
|
150
|
-
"onUpdate:value":
|
|
150
|
+
"onUpdate:value": r[3] ||= (e) => _(N) ? N.value = e : null,
|
|
151
151
|
options: W.value,
|
|
152
152
|
"allow-clear": !1,
|
|
153
153
|
disabled: x(V),
|
|
@@ -159,32 +159,32 @@ var T = { class: "configuration-translation" }, E = { class: "configuration-tran
|
|
|
159
159
|
])]), x(I) ? (v(), f(l, { key: 0 }, [
|
|
160
160
|
p("p", D, [
|
|
161
161
|
p("span", null, b(x(g)("platform.translation.location", "来源位置")), 1),
|
|
162
|
-
|
|
162
|
+
r[7] ||= m(),
|
|
163
163
|
p("code", null, b(x(I).sourceId), 1)
|
|
164
164
|
]),
|
|
165
|
-
p("label", null, [m(b(x(g)("platform.translation.original", "原文")), 1), h(x(
|
|
165
|
+
p("label", null, [m(b(x(g)("platform.translation.original", "原文")), 1), h(x(a), {
|
|
166
166
|
value: x(I).originalText,
|
|
167
167
|
disabled: ""
|
|
168
168
|
}, null, 8, ["value"])]),
|
|
169
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(
|
|
170
|
+
p("label", null, [m(b(x(g)("platform.translation.draft", "译文草稿")), 1), h(x(a), {
|
|
171
171
|
value: x(z),
|
|
172
|
-
"onUpdate:value":
|
|
172
|
+
"onUpdate:value": r[4] ||= (e) => _(z) ? z.value = e : null,
|
|
173
173
|
disabled: x(V) || x(y).can("saveTranslationDraft") !== !0
|
|
174
174
|
}, null, 8, ["value", "disabled"])]),
|
|
175
|
-
p("label", null, [m(b(x(g)("platform.translation.published", "已发布译文")), 1), h(x(
|
|
175
|
+
p("label", null, [m(b(x(g)("platform.translation.published", "已发布译文")), 1), h(x(a), {
|
|
176
176
|
value: x(L)?.publishedText ?? "",
|
|
177
177
|
disabled: ""
|
|
178
178
|
}, null, 8, ["value"])]),
|
|
179
|
-
p("div", k, [h(x(
|
|
179
|
+
p("div", k, [h(x(o), {
|
|
180
180
|
disabled: x(V) || !x(H) || !x(z).trim() || x(y).can("saveTranslationDraft") !== !0,
|
|
181
|
-
onClick:
|
|
181
|
+
onClick: r[5] ||= (e) => G(x(j).save)
|
|
182
182
|
}, {
|
|
183
183
|
default: C(() => [m(b(x(g)("platform.translation.save-draft", "保存草稿")), 1)]),
|
|
184
184
|
_: 1
|
|
185
|
-
}, 8, ["disabled"]), h(x(
|
|
185
|
+
}, 8, ["disabled"]), h(x(o), {
|
|
186
186
|
disabled: x(V) || !x(H) || x(B) || !x(L) || x(y).can("publishTranslation") !== !0,
|
|
187
|
-
onClick:
|
|
187
|
+
onClick: r[6] ||= (e) => G(x(j).publish)
|
|
188
188
|
}, {
|
|
189
189
|
default: C(() => [m(b(x(g)("platform.translation.publish", "独立发布译文")), 1)]),
|
|
190
190
|
_: 1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./BusinessLogListDrawer-
|
|
1
|
+
import { Ha as e } from "./platform-components-wRXbnwMr.js";
|
|
2
|
+
import { t } from "./BusinessLogListDrawer-CVUvUG48.js";
|
|
3
3
|
import { createBlock as n, defineComponent as r, openBlock as i, unref as a } from "vue";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/views/LoginAuditLogView.vue
|