@ximatai/muyun-web-app 0.26.21 → 0.26.23
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-6L75GZVc.js → BusinessActivityLogView-IWGZiPLo.js} +2 -2
- package/dist/{BusinessLogListDrawer-C4iFnkE7.js → BusinessLogListDrawer-UCsg6psI.js} +85 -85
- package/dist/{CodeConfigurationView-D7sqbNCg.js → CodeConfigurationView-Calkazua.js} +532 -532
- package/dist/{ConfigurationTranslationView-ta82REbn.js → ConfigurationTranslationView-fZrlRAMy.js} +24 -24
- package/dist/{LoginAuditLogView-B_RQ9JIX.js → LoginAuditLogView-B6J7t__0.js} +2 -2
- package/dist/ModuleActionManagementView-BZ89Woex.js +755 -0
- package/dist/{ModuleGovernanceView-Cl6tkZ6M.js → ModuleGovernanceView-D8ONs78K.js} +1892 -1892
- package/dist/{RequestErrorLogView-BJDO3Scn.js → RequestErrorLogView-poMgx4_6.js} +2 -2
- package/dist/RoleDetailWorkspaceView-6Bs1eKbm.js +1435 -0
- package/dist/{RuntimeLogView-jP9ceuJD.js → RuntimeLogView-Co-Z86bt.js} +41 -41
- package/dist/WorkflowAdministrationView-D7QpRHDp.js +650 -0
- package/dist/{WorkflowConfigurationView-Dh6BKQm5.js → WorkflowConfigurationView-mSyL_-We.js} +32 -32
- package/dist/{WorkflowWorkbenchView-BvPNKbuV.js → WorkflowWorkbenchView-DBMh3ycN.js} +224 -224
- package/dist/{codeConfiguration-DhCBKbkc.js → codeConfiguration-D1zrxzoW.js} +44 -44
- package/dist/index.css +1 -1
- package/dist/index.js +524 -550
- package/dist/moduleMenuWorkspace-lIVrTaOB.js +626 -0
- package/dist/{platform-components-i2ONyZ8r.js → platform-components-D0T03KGl.js} +2815 -2913
- package/dist/{platform-workbench-DhaREttd.js → platform-workbench-CobObbuz.js} +2770 -2745
- package/dist/record-read.js +2 -0
- package/dist/recordReadEntry-CxDHM44F.js +152 -0
- package/dist/types/consumer/recordRead.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +4 -0
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +8 -0
- package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +2 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +10 -8
- package/dist/types/platform-components/useBusinessCodeForm.d.ts +1 -0
- package/dist/types/platform-workbench/useAssistantConversation.d.ts +3 -0
- package/dist/types/web-contracts/operation.d.ts +2 -0
- package/dist/{useWorkflowConfigurationContext-B_NxZFyz.js → useWorkflowConfigurationContext-BkcNPU2H.js} +8 -8
- package/dist/{workspaceViews-MTwNg_aQ.js → workspaceViews-BtqO8rU0.js} +355 -355
- package/package.json +5 -1
- package/dist/ModuleActionManagementView-DtGF3NC_.js +0 -755
- package/dist/RoleDetailWorkspaceView-C0Ab3PEp.js +0 -1435
- package/dist/WorkflowAdministrationView-BmNJQYtq.js +0 -650
- package/dist/moduleMenuWorkspace-BbVmNKZn.js +0 -626
package/dist/{ConfigurationTranslationView-ta82REbn.js → ConfigurationTranslationView-fZrlRAMy.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Kr as e, Ya as t, _n as n, er as r, fr as i, or as a, pa as o, rr as s, ur as c } from "./platform-components-D0T03KGl.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()), i = y(), a = y("en"), s = y([]), c = y([]), l = y({}), d = /* @__PURE__ */ new Map(), f = y(!1), p = u(() => s.value.find((e) => e.sourceId === i.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
|
+
a.value
|
|
10
|
+
])), h = u(() => c.value.find((e) => e.sourceId === p.value?.sourceId && e.sourceVersion === p.value?.sourceVersion && e.languageTag === a.value)), g = u(() => c.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 };
|
|
@@ -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, a = 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(a)}/sources` }), e.request({ path: `/platform.localization/modules/${encodeURIComponent(a)}/translations` })]);
|
|
25
|
+
if (r !== b || t.value.trim() !== a) return;
|
|
26
|
+
n.value = a, s.value = o, c.value = l, o.some((e) => e.sourceId === i.value) || (i.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, i = m.value, s = _.value;
|
|
34
34
|
f.value = !0;
|
|
35
35
|
try {
|
|
36
|
-
let r =
|
|
36
|
+
let r = o(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: a.value,
|
|
44
44
|
text: s,
|
|
45
|
-
version:
|
|
45
|
+
version: i in l.value ? d.get(i) : h.value?.version
|
|
46
46
|
}
|
|
47
47
|
}));
|
|
48
48
|
x(r);
|
|
49
49
|
let c = { ...l.value };
|
|
50
|
-
c[
|
|
50
|
+
c[i] === s ? (delete c[i], d.delete(i)) : i in c && d.set(i, 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(o(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: i,
|
|
77
|
+
targetLanguage: a,
|
|
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__*/ i(/* @__PURE__ */ g({
|
|
96
96
|
__name: "ConfigurationTranslationView",
|
|
97
|
-
setup(
|
|
98
|
-
let
|
|
97
|
+
setup(i) {
|
|
98
|
+
let o = t(), g = o.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(() => o.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(o.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) => ({
|
|
@@ -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
|
+
n(e, {
|
|
114
114
|
source: "configuration-translation",
|
|
115
115
|
phase: "action"
|
|
116
116
|
});
|
|
@@ -162,17 +162,17 @@ 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(r), {
|
|
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(r), {
|
|
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(r), {
|
|
176
176
|
value: x(L)?.publishedText ?? "",
|
|
177
177
|
disabled: ""
|
|
178
178
|
}, null, 8, ["value"])]),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./BusinessLogListDrawer-
|
|
1
|
+
import { Ya as e } from "./platform-components-D0T03KGl.js";
|
|
2
|
+
import { t } from "./BusinessLogListDrawer-UCsg6psI.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
|