@ximatai/muyun-web-app 0.26.24 → 0.26.25
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-DQ5_VmLp.js → BusinessActivityLogView-a6oZ2t9t.js} +2 -2
- package/dist/{BusinessLogListDrawer-BnucgqNA.js → BusinessLogListDrawer-DtSXpK6g.js} +170 -166
- package/dist/{CodeConfigurationView-CtQjmpLz.js → CodeConfigurationView-BVu1ZnH-.js} +291 -291
- package/dist/{ConfigurationTranslationView-BiYn2MJx.js → ConfigurationTranslationView-Cd8ezR4t.js} +39 -39
- package/dist/{LoginAuditLogView-BIz1LVC3.js → LoginAuditLogView-DyvHTCXH.js} +2 -2
- package/dist/{ModuleActionManagementView-0_ek9yag.js → ModuleActionManagementView-y3t2YHKF.js} +161 -161
- package/dist/{ModuleGovernanceView-DEDF61vj.js → ModuleGovernanceView-BqJq2Pxm.js} +2501 -2501
- package/dist/{RequestErrorLogView-HatmiK8_.js → RequestErrorLogView-2iPeAi3b.js} +2 -2
- package/dist/{RoleDetailWorkspaceView-BzzoarpR.js → RoleDetailWorkspaceView-G-5VAV_B.js} +79 -79
- package/dist/{RuntimeLogView-Vdt6SWK6.js → RuntimeLogView-CulSgS0l.js} +60 -60
- package/dist/{WorkflowAdministrationView-Dlw2ng0N.js → WorkflowAdministrationView-y8VBYMLZ.js} +154 -154
- package/dist/{WorkflowConfigurationView-j2xnGmkM.js → WorkflowConfigurationView-DpONX2nN.js} +293 -293
- package/dist/{WorkflowWorkbenchView-Nv4mvTTP.js → WorkflowWorkbenchView-CGo1eZjr.js} +235 -235
- package/dist/{codeConfiguration-B_z1qQvB.js → codeConfiguration-fZiz0PNC.js} +26 -26
- package/dist/index.css +1 -1
- package/dist/index.js +2195 -1562
- package/dist/{moduleMenuWorkspace-1N0U7QW9.js → moduleMenuWorkspace-AZ4G9BpZ.js} +233 -233
- package/dist/{platform-components-Xb5qgsXU.js → platform-components-D98pyZ77.js} +3584 -2996
- package/dist/{platform-workbench-VhgKhPLI.js → platform-workbench-BBLDvT9V.js} +5542 -5417
- package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +4 -1
- package/dist/types/app/PersonalAccessTokenDialog.vue.d.ts +15 -0
- package/dist/types/app/PersonalAccessTokens.vue.d.ts +8 -0
- package/dist/types/app/WorkbenchAccountCenter.vue.d.ts +40 -0
- package/dist/types/app/themeSkinPreference.d.ts +2 -2
- package/dist/types/app/useCurrentUserProfile.d.ts +1 -0
- package/dist/types/app/usePersonalAccessTokenAccess.d.ts +11 -0
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +20 -4
- package/dist/types/consumer/index.d.ts +9 -0
- package/dist/types/dynamic-page-runtime/formCreateDefaults.d.ts +3 -0
- package/dist/types/platform-admin-runtime/authSession.d.ts +2 -0
- package/dist/types/platform-admin-runtime/index.d.ts +1 -1
- package/dist/types/platform-components/CronExpressionInput.vue.d.ts +12 -0
- package/dist/types/platform-components/DurationSecondsInput.vue.d.ts +10 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +2 -2
- package/dist/types/platform-components/cronExpression.d.ts +36 -0
- package/dist/types/platform-components/durationSeconds.d.ts +31 -0
- package/dist/types/platform-components/index.d.ts +6 -0
- package/dist/types/platform-workbench/Workbench.vue.d.ts +13 -4
- package/dist/types/platform-workbench/WorkbenchGlobalTools.vue.d.ts +5 -0
- package/dist/types/platform-workbench/WorkbenchOutlet.vue.d.ts +11 -1
- package/dist/types/platform-workbench/index.d.ts +3 -0
- package/dist/types/platform-workbench/workbenchAccountMenu.d.ts +33 -0
- package/dist/types/platform-workbench/workspaceViewDiscardGuard.d.ts +1 -1
- package/dist/types/views/businessLogClient.d.ts +2 -0
- package/dist/types/vue-ui-antdv/components/UiInputGroup.vue.d.ts +20 -0
- package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +2 -0
- package/dist/types/vue-ui-antdv/index.d.ts +1 -0
- package/dist/types/web-contracts/index.d.ts +16 -0
- package/dist/types/web-core/clients.d.ts +15 -1
- package/dist/{useWorkflowConfigurationContext-BLFXzHwn.js → useWorkflowConfigurationContext-BcK19EXl.js} +8 -8
- package/dist/{workspaceViews-Cas3PR5B.js → workspaceViews-Dr7RZXvX.js} +620 -620
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./platform-workbench-
|
|
2
|
-
import {
|
|
1
|
+
import "./platform-workbench-BBLDvT9V.js";
|
|
2
|
+
import { $a as e, Nt as t, Ra as n, _a as r, ba as i, va as a } from "./platform-components-D98pyZ77.js";
|
|
3
3
|
import { defineAsyncComponent as o } from "vue";
|
|
4
4
|
//#region src/platform-workbench/workspaceViewContract.ts
|
|
5
5
|
function s(e) {
|
|
@@ -20,7 +20,7 @@ var c = [
|
|
|
20
20
|
type: "platform.module.governance",
|
|
21
21
|
route: "/_platform/workspace/platform.module.governance",
|
|
22
22
|
moduleAlias: "platform.module",
|
|
23
|
-
component: o(() => import("./ModuleGovernanceView-
|
|
23
|
+
component: o(() => import("./ModuleGovernanceView-BqJq2Pxm.js")),
|
|
24
24
|
layout: "workspace",
|
|
25
25
|
routeTitle: "模块管理",
|
|
26
26
|
routeTitleKey: "platform.workspace-view.modules.route-title",
|
|
@@ -53,9 +53,9 @@ var d = [
|
|
|
53
53
|
"VALUE_MAPPING",
|
|
54
54
|
"FORMULA"
|
|
55
55
|
];
|
|
56
|
-
function f(
|
|
57
|
-
let i = t
|
|
58
|
-
return
|
|
56
|
+
function f(t, r = e) {
|
|
57
|
+
let i = n(t.title, t.titleText, r);
|
|
58
|
+
return t.ownerTitle ? `${t.ownerTitle} · ${i}` : i;
|
|
59
59
|
}
|
|
60
60
|
function p(e, t) {
|
|
61
61
|
return e.request({ path: `/platform.module/${encodeURIComponent(t)}/code-configuration` });
|
|
@@ -112,14 +112,14 @@ function _(e) {
|
|
|
112
112
|
"VALUE_MAPPING"
|
|
113
113
|
].includes(e.segmentType) && !!e.sourceRef?.trim());
|
|
114
114
|
}
|
|
115
|
-
function v(t,
|
|
115
|
+
function v(t, n = e) {
|
|
116
116
|
if (t.mode !== "MANUAL" && [
|
|
117
117
|
...t.segments.map((e) => e.length),
|
|
118
118
|
t.sequencePolicy?.startValue,
|
|
119
119
|
t.sequencePolicy?.stepValue,
|
|
120
120
|
t.sequencePolicy?.sequenceLength,
|
|
121
121
|
t.sequencePolicy?.maxValue
|
|
122
|
-
].some((e) => e != null && !Number.isSafeInteger(e))) throw new
|
|
122
|
+
].some((e) => e != null && !Number.isSafeInteger(e))) throw new r(a(n, "platform.code.config.integer-required", "流水策略和片段长度须为可准确表示的整数。"));
|
|
123
123
|
let i = JSON.parse(JSON.stringify(t));
|
|
124
124
|
return i.orgScopeId = i.orgScopeType === "GLOBAL" ? null : i.orgScopeId, i.globalDefault = i.orgScopeType === "GLOBAL", i.effectiveFrom ||= null, i.effectiveTo ||= null, i.mode === "MANUAL" ? (i.segments = [], i.sequencePolicy = null, i.linkedUpdate = !1) : i.segments.some((e) => e.segmentType === "SEQUENCE") || (i.sequencePolicy = null), _(i) || (i.linkedUpdate = !1), i.segments.forEach((e, t) => {
|
|
125
125
|
e.sortOrder = t;
|
|
@@ -145,57 +145,57 @@ function y(e, t) {
|
|
|
145
145
|
function b(e) {
|
|
146
146
|
return /^(BOOLEAN|BOOL)$/i.test(e.type) ? "boolean" : /^(INT|INTEGER|LONG|DECIMAL|DOUBLE|FLOAT|NUMBER|BIGDECIMAL)$/i.test(e.type) ? "number" : /^(DATE|LOCALDATE)$/i.test(e.type) ? "date" : /^(DATETIME|LOCALDATETIME)$/i.test(e.type) ? "datetime" : "text";
|
|
147
147
|
}
|
|
148
|
-
function x(
|
|
148
|
+
function x(n, i, o = e) {
|
|
149
149
|
let s = {};
|
|
150
|
-
for (let e of
|
|
151
|
-
let
|
|
152
|
-
if (
|
|
150
|
+
for (let e of n) {
|
|
151
|
+
let n = i[e.fieldName];
|
|
152
|
+
if (n !== void 0 && n !== "") {
|
|
153
153
|
if (b(e) === "number") {
|
|
154
|
-
let
|
|
155
|
-
if (c === void 0) throw new
|
|
154
|
+
let i = e.type.toUpperCase(), c = t(n, i === "LONG" ? "LONG" : ["DECIMAL", "BIGDECIMAL"].includes(i) ? "DECIMAL" : ["INT", "INTEGER"].includes(i) ? "INTEGER" : void 0);
|
|
155
|
+
if (c === void 0) throw new r(a(o, "platform.code.config.number-required", "{field}请输入有效数字", { field: f(e, o) }));
|
|
156
156
|
s[e.fieldName] = c;
|
|
157
157
|
} else if (b(e) === "boolean") {
|
|
158
|
-
if (
|
|
159
|
-
s[e.fieldName] =
|
|
160
|
-
} else s[e.fieldName] =
|
|
158
|
+
if (n !== "true" && n !== "false") throw new r(a(o, "platform.code.config.boolean-required", "{field}请输入 true 或 false", { field: f(e, o) }));
|
|
159
|
+
s[e.fieldName] = n === "true";
|
|
160
|
+
} else s[e.fieldName] = n;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
return s;
|
|
164
164
|
}
|
|
165
|
-
function S(t,
|
|
165
|
+
function S(t, n = e) {
|
|
166
166
|
let o = "/platform.code_rule";
|
|
167
167
|
return {
|
|
168
168
|
targets: (e) => t.request({ path: o + "/targets" + (e ? `?moduleAlias=${encodeURIComponent(e)}` : "") }),
|
|
169
169
|
rules: (e) => t.request({ path: `${o}/rules?moduleAlias=${encodeURIComponent(e.moduleAlias)}&entityAlias=${encodeURIComponent(e.entityAlias)}` }),
|
|
170
|
-
async bind(e, n,
|
|
171
|
-
return
|
|
170
|
+
async bind(e, n, r, a) {
|
|
171
|
+
return i(await t.request({
|
|
172
172
|
method: "POST",
|
|
173
173
|
path: o + "/binding",
|
|
174
174
|
body: {
|
|
175
175
|
moduleAlias: e.moduleAlias,
|
|
176
176
|
entityAlias: e.entityAlias,
|
|
177
177
|
fieldName: n.fieldName,
|
|
178
|
-
role:
|
|
178
|
+
role: r,
|
|
179
179
|
trigger: a,
|
|
180
180
|
expectedVersion: n.bindingVersion ?? null
|
|
181
181
|
}
|
|
182
182
|
}));
|
|
183
183
|
},
|
|
184
184
|
async save(e) {
|
|
185
|
-
return
|
|
185
|
+
return i(await t.request({
|
|
186
186
|
method: "POST",
|
|
187
187
|
path: o + "/saveTree",
|
|
188
|
-
body: v(e,
|
|
188
|
+
body: v(e, n)
|
|
189
189
|
}));
|
|
190
190
|
},
|
|
191
191
|
async preview(e, s, c, l) {
|
|
192
|
-
if (!Number.isSafeInteger(c) || c < 0) throw new
|
|
193
|
-
return
|
|
192
|
+
if (!Number.isSafeInteger(c) || c < 0) throw new r(a(n, "platform.code.config.trial-sequence-required", "试算流水值须为非负整数。"));
|
|
193
|
+
return i(await t.request({
|
|
194
194
|
method: "POST",
|
|
195
195
|
path: o + "/preview",
|
|
196
196
|
...l ? { signal: l } : {},
|
|
197
197
|
body: {
|
|
198
|
-
rule: v(e,
|
|
198
|
+
rule: v(e, n),
|
|
199
199
|
context: s,
|
|
200
200
|
sequenceValue: c,
|
|
201
201
|
organizationId: e.orgScopeId ?? null
|