@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./platform-workbench-
|
|
2
|
-
import {
|
|
1
|
+
import "./platform-workbench-CobObbuz.js";
|
|
2
|
+
import { Ka as e, da as t, ja as n, jt as r, pa as i, ua as a } from "./platform-components-D0T03KGl.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-D8ONs78K.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(t,
|
|
57
|
-
let
|
|
58
|
-
return t.ownerTitle ? `${t.ownerTitle} · ${
|
|
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,15 +112,15 @@ function _(e) {
|
|
|
112
112
|
"VALUE_MAPPING"
|
|
113
113
|
].includes(e.segmentType) && !!e.sourceRef?.trim());
|
|
114
114
|
}
|
|
115
|
-
function v(
|
|
116
|
-
if (
|
|
117
|
-
...
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
].some((e) => e != null && !Number.isSafeInteger(e))) throw new t(
|
|
123
|
-
let i = JSON.parse(JSON.stringify(
|
|
115
|
+
function v(n, r = e) {
|
|
116
|
+
if (n.mode !== "MANUAL" && [
|
|
117
|
+
...n.segments.map((e) => e.length),
|
|
118
|
+
n.sequencePolicy?.startValue,
|
|
119
|
+
n.sequencePolicy?.stepValue,
|
|
120
|
+
n.sequencePolicy?.sequenceLength,
|
|
121
|
+
n.sequencePolicy?.maxValue
|
|
122
|
+
].some((e) => e != null && !Number.isSafeInteger(e))) throw new a(t(r, "platform.code.config.integer-required", "流水策略和片段长度须为可准确表示的整数。"));
|
|
123
|
+
let i = JSON.parse(JSON.stringify(n));
|
|
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;
|
|
126
126
|
}), i;
|
|
@@ -145,60 +145,60 @@ 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
|
|
151
|
-
let
|
|
152
|
-
if (
|
|
153
|
-
if (b(
|
|
154
|
-
let i =
|
|
155
|
-
if (c === void 0) throw new t(
|
|
156
|
-
s[
|
|
157
|
-
} else if (b(
|
|
158
|
-
if (
|
|
159
|
-
s[
|
|
160
|
-
} else s[
|
|
150
|
+
for (let e of n) {
|
|
151
|
+
let n = i[e.fieldName];
|
|
152
|
+
if (n !== void 0 && n !== "") {
|
|
153
|
+
if (b(e) === "number") {
|
|
154
|
+
let i = e.type.toUpperCase(), c = r(n, i === "LONG" ? "LONG" : ["DECIMAL", "BIGDECIMAL"].includes(i) ? "DECIMAL" : ["INT", "INTEGER"].includes(i) ? "INTEGER" : void 0);
|
|
155
|
+
if (c === void 0) throw new a(t(o, "platform.code.config.number-required", "{field}请输入有效数字", { field: f(e, o) }));
|
|
156
|
+
s[e.fieldName] = c;
|
|
157
|
+
} else if (b(e) === "boolean") {
|
|
158
|
+
if (n !== "true" && n !== "false") throw new a(t(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(
|
|
165
|
+
function S(n, r = e) {
|
|
166
166
|
let o = "/platform.code_rule";
|
|
167
167
|
return {
|
|
168
|
-
targets: (
|
|
169
|
-
rules: (
|
|
170
|
-
async bind(
|
|
171
|
-
return i(await
|
|
168
|
+
targets: (e) => n.request({ path: o + "/targets" + (e ? `?moduleAlias=${encodeURIComponent(e)}` : "") }),
|
|
169
|
+
rules: (e) => n.request({ path: `${o}/rules?moduleAlias=${encodeURIComponent(e.moduleAlias)}&entityAlias=${encodeURIComponent(e.entityAlias)}` }),
|
|
170
|
+
async bind(e, t, r, a) {
|
|
171
|
+
return i(await n.request({
|
|
172
172
|
method: "POST",
|
|
173
173
|
path: o + "/binding",
|
|
174
174
|
body: {
|
|
175
|
-
moduleAlias:
|
|
176
|
-
entityAlias:
|
|
177
|
-
fieldName:
|
|
175
|
+
moduleAlias: e.moduleAlias,
|
|
176
|
+
entityAlias: e.entityAlias,
|
|
177
|
+
fieldName: t.fieldName,
|
|
178
178
|
role: r,
|
|
179
179
|
trigger: a,
|
|
180
|
-
expectedVersion:
|
|
180
|
+
expectedVersion: t.bindingVersion ?? null
|
|
181
181
|
}
|
|
182
182
|
}));
|
|
183
183
|
},
|
|
184
|
-
async save(
|
|
185
|
-
return i(await
|
|
184
|
+
async save(e) {
|
|
185
|
+
return i(await n.request({
|
|
186
186
|
method: "POST",
|
|
187
187
|
path: o + "/saveTree",
|
|
188
|
-
body: v(
|
|
188
|
+
body: v(e, r)
|
|
189
189
|
}));
|
|
190
190
|
},
|
|
191
|
-
async preview(
|
|
192
|
-
if (!Number.isSafeInteger(c) || c < 0) throw new t(
|
|
193
|
-
return i(await
|
|
191
|
+
async preview(e, s, c, l) {
|
|
192
|
+
if (!Number.isSafeInteger(c) || c < 0) throw new a(t(r, "platform.code.config.trial-sequence-required", "试算流水值须为非负整数。"));
|
|
193
|
+
return i(await n.request({
|
|
194
194
|
method: "POST",
|
|
195
195
|
path: o + "/preview",
|
|
196
196
|
...l ? { signal: l } : {},
|
|
197
197
|
body: {
|
|
198
|
-
rule: v(
|
|
198
|
+
rule: v(e, r),
|
|
199
199
|
context: s,
|
|
200
200
|
sequenceValue: c,
|
|
201
|
-
organizationId:
|
|
201
|
+
organizationId: e.orgScopeId ?? null
|
|
202
202
|
}
|
|
203
203
|
}));
|
|
204
204
|
}
|