@ximatai/muyun-web-app 0.26.19 → 0.26.21
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-DudCmeKP.js → BusinessActivityLogView-6L75GZVc.js} +2 -2
- package/dist/{BusinessLogListDrawer-CVUvUG48.js → BusinessLogListDrawer-C4iFnkE7.js} +95 -95
- package/dist/{CodeConfigurationView-ZjVgaZkD.js → CodeConfigurationView-D7sqbNCg.js} +515 -515
- package/dist/{ConfigurationTranslationView-Dl757QMl.js → ConfigurationTranslationView-ta82REbn.js} +21 -21
- package/dist/{LoginAuditLogView-Cj3PMvN5.js → LoginAuditLogView-B_RQ9JIX.js} +2 -2
- package/dist/ModuleActionManagementView-DtGF3NC_.js +755 -0
- package/dist/{ModuleGovernanceView-C3RxdgQN.js → ModuleGovernanceView-Cl6tkZ6M.js} +2659 -2651
- package/dist/{RequestErrorLogView-tmjMOeLE.js → RequestErrorLogView-BJDO3Scn.js} +2 -2
- package/dist/RoleDetailWorkspaceView-C0Ab3PEp.js +1435 -0
- package/dist/{RuntimeLogView-BkkgHcF0.js → RuntimeLogView-jP9ceuJD.js} +61 -61
- package/dist/WorkflowAdministrationView-BmNJQYtq.js +650 -0
- package/dist/{WorkflowConfigurationView-Bnjdrkdx.js → WorkflowConfigurationView-Dh6BKQm5.js} +309 -309
- package/dist/WorkflowWorkbenchView-BvPNKbuV.js +759 -0
- package/dist/{codeConfiguration-DERwCY-U.js → codeConfiguration-DhCBKbkc.js} +38 -38
- package/dist/index.css +1 -1
- package/dist/index.js +999 -618
- package/dist/moduleMenuWorkspace-BbVmNKZn.js +626 -0
- package/dist/{platform-components-wRXbnwMr.js → platform-components-i2ONyZ8r.js} +2989 -2746
- package/dist/{platform-workbench-Cm_0kmTT.js → platform-workbench-DhaREttd.js} +5400 -5384
- package/dist/types/consumer/index.d.ts +8 -0
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +19 -29
- package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModulePageTenantNavigator.vue.d.ts +8 -0
- package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/recordSaveFeedback.d.ts +5 -0
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/useTenantScopeController.d.ts +1 -0
- package/dist/types/platform-components/EmployeePicker.vue.d.ts +1 -1
- package/dist/types/platform-components/QueryCriteriaComposer.vue.d.ts +3 -1
- package/dist/types/platform-components/ReadonlyRecordWorkspace.vue.d.ts +56 -0
- package/dist/types/platform-components/RecordAdaptiveDetailPanel.vue.d.ts +3 -1
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +3 -0
- package/dist/types/platform-components/RecordQueryControls.vue.d.ts +21 -0
- package/dist/types/platform-components/RecordQueryFieldControls.vue.d.ts +32 -0
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +2 -2
- package/dist/types/platform-components/ReferencePicker.vue.d.ts +1 -1
- package/dist/types/platform-components/UserPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/queryCriteria.d.ts +7 -0
- package/dist/types/platform-components/referencePickerModel.d.ts +5 -1
- package/dist/types/views/metadataChangeSetSubmission.d.ts +3 -0
- package/dist/types/views/metadataModelChangeSetClient.d.ts +7 -1
- package/dist/types/web-contracts/index.d.ts +3 -0
- package/dist/types/web-core/index.d.ts +3 -0
- package/dist/types/web-core/recordReadEntry.d.ts +23 -0
- package/dist/types/web-core/recordReadView.d.ts +28 -0
- package/dist/types/web-core/useRecordReadSession.d.ts +27 -0
- package/dist/{useWorkflowConfigurationContext-BE_UjKgk.js → useWorkflowConfigurationContext-B_NxZFyz.js} +8 -8
- package/dist/{workspaceViews-D37OpJ7g.js → workspaceViews-MTwNg_aQ.js} +565 -565
- package/package.json +1 -1
- package/dist/ModuleActionManagementView-BuhQrVA3.js +0 -755
- package/dist/RoleDetailWorkspaceView-OhpBChaT.js +0 -1435
- package/dist/WorkflowAdministrationView-DOhA_5-M.js +0 -650
- package/dist/WorkflowWorkbenchView-Cf6yiofx.js +0 -759
- package/dist/moduleMenuWorkspace-DPmYGkS_.js +0 -626
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./platform-workbench-
|
|
2
|
-
import {
|
|
1
|
+
import "./platform-workbench-DhaREttd.js";
|
|
2
|
+
import { Ma as e, da as t, fa as n, jt as r, ma as i, qa as a } from "./platform-components-i2ONyZ8r.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-Cl6tkZ6M.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
|
|
58
|
-
return
|
|
56
|
+
function f(t, n = a) {
|
|
57
|
+
let r = e(t.title, t.titleText, n);
|
|
58
|
+
return t.ownerTitle ? `${t.ownerTitle} · ${r}` : r;
|
|
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 n(
|
|
123
|
-
let i = JSON.parse(JSON.stringify(
|
|
115
|
+
function v(e, r = a) {
|
|
116
|
+
if (e.mode !== "MANUAL" && [
|
|
117
|
+
...e.segments.map((e) => e.length),
|
|
118
|
+
e.sequencePolicy?.startValue,
|
|
119
|
+
e.sequencePolicy?.stepValue,
|
|
120
|
+
e.sequencePolicy?.sequenceLength,
|
|
121
|
+
e.sequencePolicy?.maxValue
|
|
122
|
+
].some((e) => e != null && !Number.isSafeInteger(e))) throw new t(n(r, "platform.code.config.integer-required", "流水策略和片段长度须为可准确表示的整数。"));
|
|
123
|
+
let i = JSON.parse(JSON.stringify(e));
|
|
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,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(e, i, o = a) {
|
|
149
149
|
let s = {};
|
|
150
|
-
for (let a of
|
|
151
|
-
let
|
|
152
|
-
if (
|
|
150
|
+
for (let a of e) {
|
|
151
|
+
let e = i[a.fieldName];
|
|
152
|
+
if (e !== void 0 && e !== "") {
|
|
153
153
|
if (b(a) === "number") {
|
|
154
|
-
let
|
|
155
|
-
if (c === void 0) throw new n(
|
|
154
|
+
let i = a.type.toUpperCase(), c = r(e, i === "LONG" ? "LONG" : ["DECIMAL", "BIGDECIMAL"].includes(i) ? "DECIMAL" : ["INT", "INTEGER"].includes(i) ? "INTEGER" : void 0);
|
|
155
|
+
if (c === void 0) throw new t(n(o, "platform.code.config.number-required", "{field}请输入有效数字", { field: f(a, o) }));
|
|
156
156
|
s[a.fieldName] = c;
|
|
157
157
|
} else if (b(a) === "boolean") {
|
|
158
|
-
if (
|
|
159
|
-
s[a.fieldName] =
|
|
160
|
-
} else s[a.fieldName] =
|
|
158
|
+
if (e !== "true" && e !== "false") throw new t(n(o, "platform.code.config.boolean-required", "{field}请输入 true 或 false", { field: f(a, o) }));
|
|
159
|
+
s[a.fieldName] = e === "true";
|
|
160
|
+
} else s[a.fieldName] = e;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
return s;
|
|
164
164
|
}
|
|
165
|
-
function S(
|
|
165
|
+
function S(e, r = a) {
|
|
166
166
|
let o = "/platform.code_rule";
|
|
167
167
|
return {
|
|
168
|
-
targets: (
|
|
169
|
-
rules: (
|
|
170
|
-
async bind(
|
|
171
|
-
return
|
|
168
|
+
targets: (t) => e.request({ path: o + "/targets" + (t ? `?moduleAlias=${encodeURIComponent(t)}` : "") }),
|
|
169
|
+
rules: (t) => e.request({ path: `${o}/rules?moduleAlias=${encodeURIComponent(t.moduleAlias)}&entityAlias=${encodeURIComponent(t.entityAlias)}` }),
|
|
170
|
+
async bind(t, n, r, a) {
|
|
171
|
+
return i(await e.request({
|
|
172
172
|
method: "POST",
|
|
173
173
|
path: o + "/binding",
|
|
174
174
|
body: {
|
|
175
|
-
moduleAlias:
|
|
176
|
-
entityAlias:
|
|
175
|
+
moduleAlias: t.moduleAlias,
|
|
176
|
+
entityAlias: t.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
|
-
async save(
|
|
185
|
-
return
|
|
184
|
+
async save(t) {
|
|
185
|
+
return i(await e.request({
|
|
186
186
|
method: "POST",
|
|
187
187
|
path: o + "/saveTree",
|
|
188
|
-
body: v(
|
|
188
|
+
body: v(t, r)
|
|
189
189
|
}));
|
|
190
190
|
},
|
|
191
191
|
async preview(a, s, c, l) {
|
|
192
|
-
if (!Number.isSafeInteger(c) || c < 0) throw new n(
|
|
193
|
-
return
|
|
192
|
+
if (!Number.isSafeInteger(c) || c < 0) throw new t(n(r, "platform.code.config.trial-sequence-required", "试算流水值须为非负整数。"));
|
|
193
|
+
return i(await e.request({
|
|
194
194
|
method: "POST",
|
|
195
195
|
path: o + "/preview",
|
|
196
196
|
...l ? { signal: l } : {},
|
|
197
197
|
body: {
|
|
198
|
-
rule: v(a,
|
|
198
|
+
rule: v(a, r),
|
|
199
199
|
context: s,
|
|
200
200
|
sequenceValue: c,
|
|
201
201
|
organizationId: a.orgScopeId ?? null
|