@ximatai/muyun-web-app 0.26.18 → 0.26.19
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-CNW817Sf.js → BusinessActivityLogView-DudCmeKP.js} +2 -2
- package/dist/BusinessLogListDrawer-CVUvUG48.js +864 -0
- package/dist/{CodeConfigurationView-DU8tjPMt.js → CodeConfigurationView-ZjVgaZkD.js} +450 -450
- package/dist/{ConfigurationTranslationView-CbBt5s1q.js → ConfigurationTranslationView-Dl757QMl.js} +38 -38
- package/dist/{LoginAuditLogView-CZF1Jfq_.js → LoginAuditLogView-Cj3PMvN5.js} +2 -2
- package/dist/ModuleActionManagementView-BuhQrVA3.js +755 -0
- package/dist/{ModuleGovernanceView-CcwGyO3x.js → ModuleGovernanceView-C3RxdgQN.js} +2243 -2243
- package/dist/{RequestErrorLogView-DpudZrC2.js → RequestErrorLogView-tmjMOeLE.js} +2 -2
- package/dist/{RoleDetailWorkspaceView-DNMGsAJC.js → RoleDetailWorkspaceView-OhpBChaT.js} +518 -518
- package/dist/{RuntimeLogView-444BL_xs.js → RuntimeLogView-BkkgHcF0.js} +64 -64
- package/dist/{WorkflowAdministrationView-C-VIjvwB.js → WorkflowAdministrationView-DOhA_5-M.js} +139 -139
- package/dist/WorkflowConfigurationView-Bnjdrkdx.js +980 -0
- package/dist/{WorkflowWorkbenchView-Gr02dbBc.js → WorkflowWorkbenchView-Cf6yiofx.js} +222 -222
- package/dist/{codeConfiguration-ChJ6ktRR.js → codeConfiguration-DERwCY-U.js} +44 -44
- package/dist/index.css +1 -1
- package/dist/index.js +421 -430
- package/dist/moduleMenuWorkspace-DPmYGkS_.js +626 -0
- package/dist/platform-components-wRXbnwMr.js +30434 -0
- package/dist/{platform-workbench-BhZPARiH.js → platform-workbench-Cm_0kmTT.js} +5169 -5149
- package/dist/types/app/executeBusinessNotificationRecordAction.d.ts +7 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageDetailExtensionRuntime.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancementState.d.ts +5 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +4 -0
- package/dist/types/platform-admin-runtime/workflow/ModuleWorkflowDrawer.vue.d.ts +7 -0
- package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +5 -3
- package/dist/types/platform-components/FormulaExpressionEditor.vue.d.ts +5 -0
- package/dist/types/platform-components/RecordAdaptiveDetailPanel.vue.d.ts +28 -0
- package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +4 -0
- package/dist/types/platform-components/WorkflowBusinessTaskEditor.vue.d.ts +2 -0
- package/dist/types/platform-components/WorkflowDesignProperties.vue.d.ts +2 -6
- package/dist/types/platform-components/WorkflowDiagram.vue.d.ts +32 -1
- package/dist/types/platform-components/formulaExpressionTokens.d.ts +2 -0
- package/dist/types/platform-components/formulaExpressionTools.d.ts +6 -0
- package/dist/types/platform-components/index.d.ts +3 -0
- package/dist/types/platform-components/useWorkflowDesignHistory.d.ts +14 -0
- package/dist/types/platform-components/useWorkspaceDetailSurface.d.ts +3 -0
- package/dist/types/platform-components/workflowDesignClipboard.d.ts +7 -0
- package/dist/types/platform-components/workflowPresentation.d.ts +4 -0
- package/dist/types/views/WorkflowConfigurationView.vue.d.ts +1 -0
- package/dist/types/views/WorkflowDefinitionSettings.vue.d.ts +35 -0
- package/dist/types/views/WorkflowSelectionFields.vue.d.ts +2 -4
- package/dist/types/views/useWorkflowConfigurationContext.d.ts +49 -0
- package/dist/types/views/workflowConfigurationWorkspaceView.d.ts +2 -0
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiRadioGroup.vue.d.ts +4 -0
- package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +5 -0
- package/dist/types/vue-ui-antdv/index.d.ts +1 -0
- package/dist/types/vue-ui-antdv/overlayLayers.d.ts +5 -0
- package/dist/types/vue-ui-antdv/types.d.ts +2 -0
- package/dist/types/web-contracts/index.d.ts +4 -0
- package/dist/types/web-contracts/workflow.d.ts +16 -8
- package/dist/types/web-core/businessNotifications.d.ts +3 -1
- package/dist/types/web-core/workflow.d.ts +13 -1
- package/dist/useWorkflowConfigurationContext-BE_UjKgk.js +66 -0
- package/dist/{workspaceViews-DeBqozVb.js → workspaceViews-D37OpJ7g.js} +1516 -936
- package/package.json +1 -1
- package/dist/BusinessLogListDrawer-YiJxOlnD.js +0 -864
- package/dist/ModuleActionManagementView-CaiXH1l_.js +0 -755
- package/dist/WorkflowConfigurationView-DLFY2x7V.js +0 -1110
- package/dist/moduleMenuWorkspace-B8DKwC3L.js +0 -626
- package/dist/platform-components-5AE0j2_3.js +0 -29879
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./platform-workbench-
|
|
2
|
-
import {
|
|
1
|
+
import "./platform-workbench-Cm_0kmTT.js";
|
|
2
|
+
import { ia as e, oa as t, ra as n, wa as r, wt as i, za as a } from "./platform-components-wRXbnwMr.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-C3RxdgQN.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(e, t = a) {
|
|
57
|
+
let n = r(e.title, e.titleText, t);
|
|
58
|
+
return e.ownerTitle ? `${e.ownerTitle} · ${n}` : n;
|
|
59
59
|
}
|
|
60
60
|
function p(e, t) {
|
|
61
61
|
return e.request({ path: `/platform.module/${encodeURIComponent(t)}/code-configuration` });
|
|
@@ -112,18 +112,18 @@ 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
|
|
123
|
-
let
|
|
124
|
-
return
|
|
115
|
+
function v(t, r = a) {
|
|
116
|
+
if (t.mode !== "MANUAL" && [
|
|
117
|
+
...t.segments.map((e) => e.length),
|
|
118
|
+
t.sequencePolicy?.startValue,
|
|
119
|
+
t.sequencePolicy?.stepValue,
|
|
120
|
+
t.sequencePolicy?.sequenceLength,
|
|
121
|
+
t.sequencePolicy?.maxValue
|
|
122
|
+
].some((e) => e != null && !Number.isSafeInteger(e))) throw new n(e(r, "platform.code.config.integer-required", "流水策略和片段长度须为可准确表示的整数。"));
|
|
123
|
+
let i = JSON.parse(JSON.stringify(t));
|
|
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;
|
|
127
127
|
}
|
|
128
128
|
function y(e, t) {
|
|
129
129
|
let n = /* @__PURE__ */ new Map();
|
|
@@ -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(t, r, o = a) {
|
|
149
149
|
let s = {};
|
|
150
|
-
for (let
|
|
151
|
-
let
|
|
152
|
-
if (
|
|
153
|
-
if (b(
|
|
154
|
-
let
|
|
155
|
-
if (c === void 0) throw new
|
|
156
|
-
s[
|
|
157
|
-
} else if (b(
|
|
158
|
-
if (
|
|
159
|
-
s[
|
|
160
|
-
} else s[
|
|
150
|
+
for (let a of t) {
|
|
151
|
+
let t = r[a.fieldName];
|
|
152
|
+
if (t !== void 0 && t !== "") {
|
|
153
|
+
if (b(a) === "number") {
|
|
154
|
+
let r = a.type.toUpperCase(), c = i(t, r === "LONG" ? "LONG" : ["DECIMAL", "BIGDECIMAL"].includes(r) ? "DECIMAL" : ["INT", "INTEGER"].includes(r) ? "INTEGER" : void 0);
|
|
155
|
+
if (c === void 0) throw new n(e(o, "platform.code.config.number-required", "{field}请输入有效数字", { field: f(a, o) }));
|
|
156
|
+
s[a.fieldName] = c;
|
|
157
|
+
} else if (b(a) === "boolean") {
|
|
158
|
+
if (t !== "true" && t !== "false") throw new n(e(o, "platform.code.config.boolean-required", "{field}请输入 true 或 false", { field: f(a, o) }));
|
|
159
|
+
s[a.fieldName] = t === "true";
|
|
160
|
+
} else s[a.fieldName] = t;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
return s;
|
|
164
164
|
}
|
|
165
|
-
function S(
|
|
165
|
+
function S(r, i = a) {
|
|
166
166
|
let o = "/platform.code_rule";
|
|
167
167
|
return {
|
|
168
|
-
targets: (e) =>
|
|
169
|
-
rules: (e) =>
|
|
170
|
-
async bind(e,
|
|
171
|
-
return
|
|
168
|
+
targets: (e) => r.request({ path: o + "/targets" + (e ? `?moduleAlias=${encodeURIComponent(e)}` : "") }),
|
|
169
|
+
rules: (e) => r.request({ path: `${o}/rules?moduleAlias=${encodeURIComponent(e.moduleAlias)}&entityAlias=${encodeURIComponent(e.entityAlias)}` }),
|
|
170
|
+
async bind(e, n, i, a) {
|
|
171
|
+
return t(await r.request({
|
|
172
172
|
method: "POST",
|
|
173
173
|
path: o + "/binding",
|
|
174
174
|
body: {
|
|
175
175
|
moduleAlias: e.moduleAlias,
|
|
176
176
|
entityAlias: e.entityAlias,
|
|
177
|
-
fieldName:
|
|
178
|
-
role:
|
|
177
|
+
fieldName: n.fieldName,
|
|
178
|
+
role: i,
|
|
179
179
|
trigger: a,
|
|
180
|
-
expectedVersion:
|
|
180
|
+
expectedVersion: n.bindingVersion ?? null
|
|
181
181
|
}
|
|
182
182
|
}));
|
|
183
183
|
},
|
|
184
184
|
async save(e) {
|
|
185
|
-
return
|
|
185
|
+
return t(await r.request({
|
|
186
186
|
method: "POST",
|
|
187
187
|
path: o + "/saveTree",
|
|
188
|
-
body: v(e,
|
|
188
|
+
body: v(e, i)
|
|
189
189
|
}));
|
|
190
190
|
},
|
|
191
|
-
async preview(
|
|
192
|
-
if (!Number.isSafeInteger(c) || c < 0) throw new
|
|
193
|
-
return
|
|
191
|
+
async preview(a, s, c, l) {
|
|
192
|
+
if (!Number.isSafeInteger(c) || c < 0) throw new n(e(i, "platform.code.config.trial-sequence-required", "试算流水值须为非负整数。"));
|
|
193
|
+
return t(await r.request({
|
|
194
194
|
method: "POST",
|
|
195
195
|
path: o + "/preview",
|
|
196
196
|
...l ? { signal: l } : {},
|
|
197
197
|
body: {
|
|
198
|
-
rule: v(
|
|
198
|
+
rule: v(a, i),
|
|
199
199
|
context: s,
|
|
200
200
|
sequenceValue: c,
|
|
201
|
-
organizationId:
|
|
201
|
+
organizationId: a.orgScopeId ?? null
|
|
202
202
|
}
|
|
203
203
|
}));
|
|
204
204
|
}
|