@ximatai/muyun-web-app 0.26.25 → 0.26.27
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-a6oZ2t9t.js → BusinessActivityLogView-Bbe-GbNG.js} +2 -2
- package/dist/BusinessLogListDrawer-BmF-14We.js +868 -0
- package/dist/CodeConfigurationView-DdPfBjoC.js +1667 -0
- package/dist/{ConfigurationTranslationView-Cd8ezR4t.js → ConfigurationTranslationView-B3Cr9Wes.js} +48 -48
- package/dist/{LoginAuditLogView-DyvHTCXH.js → LoginAuditLogView-DOwkqtVB.js} +2 -2
- package/dist/{ModuleActionManagementView-y3t2YHKF.js → ModuleActionManagementView-DNXAhdXk.js} +145 -145
- package/dist/{ModuleGovernanceView-BqJq2Pxm.js → ModuleGovernanceView-g5W2R_Zl.js} +3131 -3131
- package/dist/{RequestErrorLogView-2iPeAi3b.js → RequestErrorLogView-9GIz2mkQ.js} +2 -2
- package/dist/RoleDetailWorkspaceView-BuqRT0pd.js +1435 -0
- package/dist/{RuntimeLogView-CulSgS0l.js → RuntimeLogView-C5i19Z-u.js} +55 -55
- package/dist/WorkflowAdministrationView-CnoTudpI.js +650 -0
- package/dist/{WorkflowConfigurationView-DpONX2nN.js → WorkflowConfigurationView-Cku-F1Fm.js} +33 -33
- package/dist/{WorkflowWorkbenchView-CGo1eZjr.js → WorkflowWorkbenchView-DbWqspEB.js} +34 -34
- package/dist/{codeConfiguration-fZiz0PNC.js → codeConfiguration-Bno8cWxB.js} +45 -45
- package/dist/index.css +1 -1
- package/dist/index.js +784 -676
- package/dist/{moduleMenuWorkspace-AZ4G9BpZ.js → moduleMenuWorkspace-DW13bHG5.js} +179 -179
- package/dist/{platform-components-D98pyZ77.js → platform-components-D3NvMY3T.js} +3302 -3260
- package/dist/{platform-workbench-BBLDvT9V.js → platform-workbench-C4OFiuG5.js} +4969 -4910
- package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +12 -3
- package/dist/types/dynamic-page-runtime/ModulePageHostSession.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModuleReferenceRecordDetailBrowser.vue.d.ts +4 -1
- package/dist/types/dynamic-page-runtime/recordFormAssistantCapabilities.d.ts +1 -1
- package/dist/types/platform-admin-runtime/realtime.d.ts +3 -1
- package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +1 -1
- package/dist/types/platform-components/referenceRecordDetailBrowser.d.ts +5 -2
- package/dist/types/web-contracts/operation.d.ts +7 -0
- package/dist/types/web-core/assistantConfirmation.d.ts +4 -4
- package/dist/types/web-core/assistantSurface.d.ts +2 -2
- package/dist/types/web-core/businessNotificationSession.d.ts +27 -0
- package/dist/types/web-core/index.d.ts +1 -0
- package/dist/types/web-core/operationConfirmation.d.ts +13 -8
- package/dist/{useWorkflowConfigurationContext-BcK19EXl.js → useWorkflowConfigurationContext-eQKyqe6_.js} +2 -2
- package/dist/{workspaceViews-Dr7RZXvX.js → workspaceViews-D2Uh4KAq.js} +610 -610
- package/package.json +1 -1
- package/dist/BusinessLogListDrawer-DtSXpK6g.js +0 -868
- package/dist/CodeConfigurationView-BVu1ZnH-.js +0 -1667
- package/dist/RoleDetailWorkspaceView-G-5VAV_B.js +0 -1435
- package/dist/WorkflowAdministrationView-y8VBYMLZ.js +0 -650
package/dist/{ConfigurationTranslationView-Cd8ezR4t.js → ConfigurationTranslationView-B3Cr9Wes.js}
RENAMED
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import { $r as e,
|
|
1
|
+
import { $r as e, bn as t, fr as n, gr as r, ir as i, lr as a, ro as o, vr as s, xa as c } from "./platform-components-D3NvMY3T.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
|
|
6
|
-
|
|
5
|
+
let t = y(""), n = y(""), r = u(() => n.value === t.value.trim()), i = y(), a = y("en"), o = y([]), s = y([]), l = y({}), d = /* @__PURE__ */ new Map(), f = y(!1), p = u(() => o.value.find((e) => e.sourceId === i.value)), m = u(() => JSON.stringify([
|
|
6
|
+
n.value,
|
|
7
7
|
p.value?.sourceId,
|
|
8
8
|
p.value?.sourceVersion,
|
|
9
|
-
|
|
10
|
-
])), h = u(() =>
|
|
9
|
+
a.value
|
|
10
|
+
])), h = u(() => s.value.find((e) => e.sourceId === p.value?.sourceId && e.sourceVersion === p.value?.sourceVersion && e.languageTag === a.value)), g = u(() => s.value.find((e) => e.sourceId === p.value?.sourceId && e.sourceVersion !== p.value?.sourceVersion && e.languageTag === a.value)), _ = u({
|
|
11
11
|
get: () => l.value[m.value] ?? h.value?.draftText ?? "",
|
|
12
12
|
set: (e) => {
|
|
13
13
|
let t = { ...l.value };
|
|
14
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
15
|
}
|
|
16
16
|
}), v = u(() => _.value !== (h.value?.draftText ?? "")), b = 0, x = (e) => {
|
|
17
|
-
|
|
17
|
+
s.value = [...s.value.filter((t) => t.id !== e.id), e];
|
|
18
18
|
};
|
|
19
19
|
async function S() {
|
|
20
|
-
if (f.value || !
|
|
21
|
-
let
|
|
20
|
+
if (f.value || !t.value.trim()) return;
|
|
21
|
+
let r = ++b, a = t.value.trim();
|
|
22
22
|
f.value = !0;
|
|
23
23
|
try {
|
|
24
|
-
let [
|
|
25
|
-
if (
|
|
26
|
-
|
|
24
|
+
let [c, l] = await Promise.all([e.request({ path: `/platform.localization/modules/${encodeURIComponent(a)}/sources` }), e.request({ path: `/platform.localization/modules/${encodeURIComponent(a)}/translations` })]);
|
|
25
|
+
if (r !== b || t.value.trim() !== a) return;
|
|
26
|
+
n.value = a, o.value = c, s.value = l, c.some((e) => e.sourceId === i.value) || (i.value = c[0]?.sourceId);
|
|
27
27
|
} finally {
|
|
28
|
-
|
|
28
|
+
r === b && (f.value = !1);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
async function C() {
|
|
32
|
-
if (f.value || !
|
|
33
|
-
let
|
|
32
|
+
if (f.value || !r.value || !p.value || !_.value.trim()) return;
|
|
33
|
+
let t = p.value, i = m.value, o = _.value;
|
|
34
34
|
f.value = !0;
|
|
35
35
|
try {
|
|
36
|
-
let
|
|
36
|
+
let r = c(await e.request({
|
|
37
37
|
method: "POST",
|
|
38
38
|
path: "/platform.localization/drafts",
|
|
39
39
|
body: {
|
|
40
|
-
moduleAlias:
|
|
41
|
-
sourceId:
|
|
42
|
-
sourceVersion:
|
|
43
|
-
languageTag:
|
|
44
|
-
text:
|
|
45
|
-
version:
|
|
40
|
+
moduleAlias: n.value,
|
|
41
|
+
sourceId: t.sourceId,
|
|
42
|
+
sourceVersion: t.sourceVersion,
|
|
43
|
+
languageTag: a.value,
|
|
44
|
+
text: o,
|
|
45
|
+
version: i in l.value ? d.get(i) : h.value?.version
|
|
46
46
|
}
|
|
47
47
|
}));
|
|
48
|
-
x(
|
|
49
|
-
let
|
|
50
|
-
|
|
48
|
+
x(r);
|
|
49
|
+
let s = { ...l.value };
|
|
50
|
+
s[i] === o ? (delete s[i], d.delete(i)) : i in s && d.set(i, r.version), l.value = s;
|
|
51
51
|
} finally {
|
|
52
52
|
f.value = !1;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
async function w() {
|
|
56
|
-
if (f.value || !
|
|
57
|
-
let
|
|
56
|
+
if (f.value || !r.value || v.value || !h.value || !p.value) return;
|
|
57
|
+
let t = h.value;
|
|
58
58
|
f.value = !0;
|
|
59
59
|
try {
|
|
60
|
-
x(
|
|
60
|
+
x(c(await e.request({
|
|
61
61
|
method: "POST",
|
|
62
|
-
path: `/platform.localization/translations/${encodeURIComponent(
|
|
62
|
+
path: `/platform.localization/translations/${encodeURIComponent(t.id)}/publish`,
|
|
63
63
|
body: {
|
|
64
64
|
sourceVersion: p.value.sourceVersion,
|
|
65
|
-
version:
|
|
65
|
+
version: t.version
|
|
66
66
|
}
|
|
67
67
|
})));
|
|
68
68
|
} finally {
|
|
@@ -70,12 +70,12 @@ function w(e) {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
return {
|
|
73
|
-
moduleAlias:
|
|
74
|
-
loadedModuleAlias:
|
|
75
|
-
ready:
|
|
76
|
-
sourceId:
|
|
77
|
-
targetLanguage:
|
|
78
|
-
sources:
|
|
73
|
+
moduleAlias: t,
|
|
74
|
+
loadedModuleAlias: n,
|
|
75
|
+
ready: r,
|
|
76
|
+
sourceId: i,
|
|
77
|
+
targetLanguage: a,
|
|
78
|
+
sources: o,
|
|
79
79
|
source: p,
|
|
80
80
|
translation: h,
|
|
81
81
|
previous: g,
|
|
@@ -92,10 +92,10 @@ 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__*/ s(/* @__PURE__ */ g({
|
|
96
96
|
__name: "ConfigurationTranslationView",
|
|
97
|
-
setup(
|
|
98
|
-
let c =
|
|
97
|
+
setup(s) {
|
|
98
|
+
let c = o(), g = c.t, y = e({ 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
99
|
value: e.tag,
|
|
100
100
|
label: e.nativeName
|
|
101
101
|
})));
|
|
@@ -110,7 +110,7 @@ var T = { class: "configuration-translation" }, E = { class: "configuration-tran
|
|
|
110
110
|
try {
|
|
111
111
|
await e();
|
|
112
112
|
} catch (e) {
|
|
113
|
-
|
|
113
|
+
t(e, {
|
|
114
114
|
source: "configuration-translation",
|
|
115
115
|
phase: "action"
|
|
116
116
|
});
|
|
@@ -120,20 +120,20 @@ var T = { class: "configuration-translation" }, E = { class: "configuration-tran
|
|
|
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(a), {
|
|
124
124
|
value: x(M),
|
|
125
125
|
"onUpdate:value": t[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(r), {
|
|
130
130
|
disabled: x(V) || !x(M) || x(y).can("viewTranslationSources") !== !0 || x(y).can("viewTranslations") !== !0,
|
|
131
131
|
onClick: t[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(n), {
|
|
137
137
|
value: x(P),
|
|
138
138
|
"onUpdate:value": t[2] ||= (e) => _(P) ? P.value = e : null,
|
|
139
139
|
options: U.value,
|
|
@@ -145,7 +145,7 @@ 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(n), {
|
|
149
149
|
value: x(N),
|
|
150
150
|
"onUpdate:value": t[3] ||= (e) => _(N) ? N.value = e : null,
|
|
151
151
|
options: W.value,
|
|
@@ -162,27 +162,27 @@ var T = { class: "configuration-translation" }, E = { class: "configuration-tran
|
|
|
162
162
|
t[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(i), {
|
|
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(i), {
|
|
171
171
|
value: x(z),
|
|
172
172
|
"onUpdate:value": t[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(i), {
|
|
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(r), {
|
|
180
180
|
disabled: x(V) || !x(H) || !x(z).trim() || x(y).can("saveTranslationDraft") !== !0,
|
|
181
181
|
onClick: t[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(r), {
|
|
186
186
|
disabled: x(V) || !x(H) || x(B) || !x(L) || x(y).can("publishTranslation") !== !0,
|
|
187
187
|
onClick: t[6] ||= (e) => G(x(j).publish)
|
|
188
188
|
}, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./BusinessLogListDrawer-
|
|
1
|
+
import { ro as e } from "./platform-components-D3NvMY3T.js";
|
|
2
|
+
import { t } from "./BusinessLogListDrawer-BmF-14We.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
|