@ximatai/muyun-web-app 0.26.26 → 0.26.28
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-BPnAoGim.js → BusinessActivityLogView-DlNB97pu.js} +2 -2
- package/dist/{BusinessLogListDrawer-CXabZOOM.js → BusinessLogListDrawer-ByiwQP1m.js} +163 -163
- package/dist/CodeConfigurationView-91B9dHjD.js +2333 -0
- package/dist/{ConfigurationTranslationView-BsWyLeRd.js → ConfigurationTranslationView-ClovkYJt.js} +22 -22
- package/dist/{LoginAuditLogView-D3TJdzWM.js → LoginAuditLogView-Blg9giRX.js} +2 -2
- package/dist/{ModuleActionManagementView-C9LiwMM3.js → ModuleActionManagementView-Chr_XTJ3.js} +193 -193
- package/dist/{ModuleGovernanceView-CYZzHLHa.js → ModuleGovernanceView-BNlRHqSj.js} +4054 -4072
- package/dist/{RequestErrorLogView-D85h_q4P.js → RequestErrorLogView-CGczIKQy.js} +2 -2
- package/dist/{RoleDetailWorkspaceView-VHvh-_Sj.js → RoleDetailWorkspaceView-CPH9cga9.js} +75 -75
- package/dist/{RuntimeLogView-D-MrVfT7.js → RuntimeLogView-DF-1k-9y.js} +60 -60
- package/dist/WorkflowAdministrationView-CCXry0G4.js +650 -0
- package/dist/WorkflowConfigurationView-BqSfYua2.js +2227 -0
- package/dist/{WorkflowWorkbenchView-BN3ckTHB.js → WorkflowWorkbenchView-DUFfO3Gf.js} +248 -248
- package/dist/{codeConfiguration-B5OjCYZ6.js → codeConfiguration-BRxveKen.js} +71 -54
- package/dist/configurationEditorNavigation-DeXvfJyr.js +15 -0
- package/dist/formulaReferences-CKkkdA_R.js +23 -0
- package/dist/index.css +1 -1
- package/dist/index.js +1239 -1131
- package/dist/{moduleMenuWorkspace-DhI4_LpA.js → moduleMenuWorkspace-D_A94ZgR.js} +218 -229
- package/dist/{platform-components-Ca8SikTY.js → platform-components-DSMqalgQ.js} +4660 -4538
- package/dist/{platform-workbench-DpXhb4F6.js → platform-workbench-B53hydzq.js} +6055 -5909
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +37 -3
- package/dist/types/dynamic-page-runtime/ModulePageHostSession.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModuleReferenceRecordDetailBrowser.vue.d.ts +16 -4
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/recordFormAssistantCapabilities.d.ts +4 -2
- package/dist/types/dynamic-page-runtime/recordFormDraftAccess.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +1 -0
- package/dist/types/platform-admin-runtime/realtime.d.ts +3 -1
- package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +2 -0
- package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +11 -1
- package/dist/types/platform-components/index.d.ts +2 -2
- package/dist/types/platform-components/optionFieldOptionCache.d.ts +11 -1
- package/dist/types/platform-components/recordFormFieldModel.d.ts +1 -0
- package/dist/types/platform-components/referenceRecordDetailBrowser.d.ts +17 -2
- package/dist/types/platform-components/useWorkflowDesignSession.d.ts +141 -0
- package/dist/types/platform-components/workflowDesignEditing.d.ts +8 -7
- package/dist/types/platform-components/workflowDesignOperations.d.ts +107 -0
- package/dist/types/views/CodeRuleRecoveryPanel.vue.d.ts +20 -0
- package/dist/types/views/businessRuleGovernance.d.ts +1 -2
- package/dist/types/views/codeConfiguration.d.ts +29 -1
- package/dist/types/views/codeConfigurationAssistantSurface.d.ts +17 -0
- package/dist/types/views/codeRuleSaveRecovery.d.ts +12 -0
- package/dist/types/views/useCodeConfigurationAssistant.d.ts +10 -0
- package/dist/types/views/useCodeConfigurationSession.d.ts +16 -0
- package/dist/types/views/useWorkflowConfigurationAssistant.d.ts +16 -0
- package/dist/types/views/useWorkflowConfigurationContext.d.ts +16 -2
- package/dist/types/views/useWorkflowConfigurationSession.d.ts +146 -0
- package/dist/types/views/workflowConfigurationAssistantSurface.d.ts +169 -0
- package/dist/types/views/workflowSaveRecovery.d.ts +11 -0
- package/dist/types/vue-ui-antdv/components/sidePanelHost.d.ts +3 -1
- package/dist/types/vue-ui-antdv/index.d.ts +1 -0
- package/dist/types/web-contracts/operation.d.ts +7 -0
- package/dist/types/web-core/assistantConfirmation.d.ts +4 -4
- package/dist/types/web-core/assistantSurface.d.ts +2 -2
- package/dist/types/web-core/businessNotificationSession.d.ts +27 -0
- package/dist/types/web-core/formulaReferences.d.ts +2 -0
- package/dist/types/web-core/index.d.ts +1 -0
- package/dist/types/web-core/operationConfirmation.d.ts +13 -8
- package/dist/types/web-core/workflow.d.ts +11 -1
- package/dist/useWorkflowConfigurationContext-BuBDdUcQ.js +78 -0
- package/dist/{workspaceViews-CLOyLZMZ.js → workspaceViews-BSVtjZj1.js} +689 -689
- package/package.json +1 -1
- package/dist/CodeConfigurationView-B1Lgdnkj.js +0 -1667
- package/dist/WorkflowAdministrationView-DHPlIJXF.js +0 -650
- package/dist/WorkflowConfigurationView-BhQl7NjM.js +0 -980
- package/dist/useWorkflowConfigurationContext-DpzBpKa3.js +0 -66
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./platform-workbench-
|
|
2
|
-
import {
|
|
1
|
+
import "./platform-workbench-B53hydzq.js";
|
|
2
|
+
import { Ca as e, Ft as t, Va as n, ba as r, no as i, xa as a } from "./platform-components-DSMqalgQ.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-BNlRHqSj.js")),
|
|
24
24
|
layout: "workspace",
|
|
25
25
|
routeTitle: "模块管理",
|
|
26
26
|
routeTitleKey: "platform.workspace-view.modules.route-title",
|
|
@@ -53,14 +53,17 @@ var d = [
|
|
|
53
53
|
"VALUE_MAPPING",
|
|
54
54
|
"FORMULA"
|
|
55
55
|
];
|
|
56
|
-
function f(
|
|
57
|
-
let
|
|
58
|
-
return
|
|
56
|
+
function f(e, t = i) {
|
|
57
|
+
let r = n(e.title, e.titleText, t);
|
|
58
|
+
return e.ownerTitle ? `${e.ownerTitle} · ${r}` : r;
|
|
59
59
|
}
|
|
60
60
|
function p(e, t) {
|
|
61
61
|
return e.request({ path: `/platform.module/${encodeURIComponent(t)}/code-configuration` });
|
|
62
62
|
}
|
|
63
|
-
function m(e
|
|
63
|
+
function m(e, t) {
|
|
64
|
+
return (!e.sourceRef || t.has(e.sourceRef)) && [...e.formulaExpr?.matchAll(/\{([^{}]+)\}/g) ?? []].every((e) => t.has(e[1]));
|
|
65
|
+
}
|
|
66
|
+
function h(e = "CONSTANT") {
|
|
64
67
|
return {
|
|
65
68
|
segmentType: e,
|
|
66
69
|
sortOrder: 0,
|
|
@@ -74,7 +77,7 @@ function m(e = "CONSTANT") {
|
|
|
74
77
|
mappings: []
|
|
75
78
|
};
|
|
76
79
|
}
|
|
77
|
-
function
|
|
80
|
+
function g() {
|
|
78
81
|
return {
|
|
79
82
|
startValue: 1,
|
|
80
83
|
stepValue: 1,
|
|
@@ -84,7 +87,7 @@ function h() {
|
|
|
84
87
|
maxValue: null
|
|
85
88
|
};
|
|
86
89
|
}
|
|
87
|
-
function
|
|
90
|
+
function _(e, t) {
|
|
88
91
|
return {
|
|
89
92
|
title: t.title,
|
|
90
93
|
moduleAlias: e.moduleAlias,
|
|
@@ -101,31 +104,34 @@ function g(e, t) {
|
|
|
101
104
|
orgScopeType: "GLOBAL",
|
|
102
105
|
globalDefault: !0,
|
|
103
106
|
orgScopeId: null,
|
|
104
|
-
segments: [
|
|
105
|
-
sequencePolicy:
|
|
107
|
+
segments: [h(), h("SEQUENCE")],
|
|
108
|
+
sequencePolicy: g()
|
|
106
109
|
};
|
|
107
110
|
}
|
|
108
|
-
function
|
|
111
|
+
function v(e) {
|
|
109
112
|
return e.mode !== "MANUAL" && e.fieldTrigger !== "EXPLICIT" && e.segments.some((e) => e.segmentType === "FORMULA" || [
|
|
110
113
|
"FIELD_VALUE",
|
|
111
114
|
"CONTEXT_VAR",
|
|
112
115
|
"VALUE_MAPPING"
|
|
113
116
|
].includes(e.segmentType) && !!e.sourceRef?.trim());
|
|
114
117
|
}
|
|
115
|
-
function
|
|
116
|
-
if (
|
|
117
|
-
...
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
].some((e) => e != null && !Number.isSafeInteger(e))) throw new r(a(
|
|
123
|
-
|
|
124
|
-
|
|
118
|
+
function y(e, t = i) {
|
|
119
|
+
if (e.mode !== "MANUAL" && [
|
|
120
|
+
...e.segments.map((e) => e.length),
|
|
121
|
+
e.sequencePolicy?.startValue,
|
|
122
|
+
e.sequencePolicy?.stepValue,
|
|
123
|
+
e.sequencePolicy?.sequenceLength,
|
|
124
|
+
e.sequencePolicy?.maxValue
|
|
125
|
+
].some((e) => e != null && !Number.isSafeInteger(e))) throw new r(a(t, "platform.code.config.integer-required", "流水策略和片段长度须为可准确表示的整数。"));
|
|
126
|
+
}
|
|
127
|
+
function b(e, t = i) {
|
|
128
|
+
y(e, t);
|
|
129
|
+
let n = JSON.parse(JSON.stringify(e));
|
|
130
|
+
return n.orgScopeId = n.orgScopeType === "GLOBAL" ? null : n.orgScopeId, n.globalDefault = n.orgScopeType === "GLOBAL", n.effectiveFrom ||= null, n.effectiveTo ||= null, n.mode === "MANUAL" ? (n.segments = [], n.sequencePolicy = null, n.linkedUpdate = !1) : n.segments.some((e) => e.segmentType === "SEQUENCE") || (n.sequencePolicy = null), v(n) || (n.linkedUpdate = !1), n.segments.forEach((e, t) => {
|
|
125
131
|
e.sortOrder = t;
|
|
126
|
-
}),
|
|
132
|
+
}), n;
|
|
127
133
|
}
|
|
128
|
-
function
|
|
134
|
+
function x(e, t) {
|
|
129
135
|
let n = /* @__PURE__ */ new Map();
|
|
130
136
|
for (let r of t?.segments ?? []) {
|
|
131
137
|
if (![
|
|
@@ -142,67 +148,78 @@ function y(e, t) {
|
|
|
142
148
|
}
|
|
143
149
|
return [...n.values()];
|
|
144
150
|
}
|
|
145
|
-
function
|
|
151
|
+
function S(e) {
|
|
146
152
|
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
153
|
}
|
|
148
|
-
function
|
|
154
|
+
function C(e, n, o = i) {
|
|
149
155
|
let s = {};
|
|
150
|
-
for (let
|
|
151
|
-
let
|
|
152
|
-
if (
|
|
153
|
-
if (
|
|
154
|
-
let
|
|
155
|
-
if (c === void 0) throw new r(a(o, "platform.code.config.number-required", "{field}请输入有效数字", { field: f(
|
|
156
|
-
s[
|
|
157
|
-
} else if (
|
|
158
|
-
if (
|
|
159
|
-
s[
|
|
160
|
-
} else s[
|
|
156
|
+
for (let i of e) {
|
|
157
|
+
let e = n[i.fieldName];
|
|
158
|
+
if (e !== void 0 && e !== "") {
|
|
159
|
+
if (S(i) === "number") {
|
|
160
|
+
let n = i.type.toUpperCase(), c = t(e, n === "LONG" ? "LONG" : ["DECIMAL", "BIGDECIMAL"].includes(n) ? "DECIMAL" : ["INT", "INTEGER"].includes(n) ? "INTEGER" : void 0);
|
|
161
|
+
if (c === void 0) throw new r(a(o, "platform.code.config.number-required", "{field}请输入有效数字", { field: f(i, o) }));
|
|
162
|
+
s[i.fieldName] = c;
|
|
163
|
+
} else if (S(i) === "boolean") {
|
|
164
|
+
if (e !== "true" && e !== "false") throw new r(a(o, "platform.code.config.boolean-required", "{field}请输入 true 或 false", { field: f(i, o) }));
|
|
165
|
+
s[i.fieldName] = e === "true";
|
|
166
|
+
} else s[i.fieldName] = e;
|
|
161
167
|
}
|
|
162
168
|
}
|
|
163
169
|
return s;
|
|
164
170
|
}
|
|
165
|
-
function
|
|
171
|
+
function w(t, n = i) {
|
|
166
172
|
let o = "/platform.code_rule";
|
|
167
173
|
return {
|
|
168
174
|
targets: (e) => t.request({ path: o + "/targets" + (e ? `?moduleAlias=${encodeURIComponent(e)}` : "") }),
|
|
169
175
|
rules: (e) => t.request({ path: `${o}/rules?moduleAlias=${encodeURIComponent(e.moduleAlias)}&entityAlias=${encodeURIComponent(e.entityAlias)}` }),
|
|
170
|
-
async bind(
|
|
171
|
-
return
|
|
176
|
+
async bind(n, r, i, a) {
|
|
177
|
+
return e(await t.request({
|
|
172
178
|
method: "POST",
|
|
173
179
|
path: o + "/binding",
|
|
174
180
|
body: {
|
|
175
|
-
moduleAlias:
|
|
176
|
-
entityAlias:
|
|
177
|
-
fieldName:
|
|
178
|
-
role:
|
|
181
|
+
moduleAlias: n.moduleAlias,
|
|
182
|
+
entityAlias: n.entityAlias,
|
|
183
|
+
fieldName: r.fieldName,
|
|
184
|
+
role: i,
|
|
179
185
|
trigger: a,
|
|
180
|
-
expectedVersion:
|
|
186
|
+
expectedVersion: r.bindingVersion ?? null
|
|
181
187
|
}
|
|
182
188
|
}));
|
|
183
189
|
},
|
|
184
|
-
async save(
|
|
185
|
-
return
|
|
190
|
+
async save(r, i) {
|
|
191
|
+
return e(await t.request({
|
|
186
192
|
method: "POST",
|
|
187
|
-
path: o + "/saveTree",
|
|
188
|
-
body:
|
|
193
|
+
path: i ? `${o}/save-requests/${encodeURIComponent(i)}` : o + "/saveTree",
|
|
194
|
+
body: b(r, n)
|
|
189
195
|
}));
|
|
190
196
|
},
|
|
191
|
-
|
|
197
|
+
view: (e) => t.request({ path: `${o}/viewTree/${encodeURIComponent(e)}` }),
|
|
198
|
+
receipt: (e) => t.request({ path: `${o}/save-requests/${encodeURIComponent(e.requestId)}?moduleAlias=${encodeURIComponent(e.moduleAlias)}&entityAlias=${encodeURIComponent(e.entityAlias)}&fieldName=${encodeURIComponent(e.fieldName)}` }),
|
|
199
|
+
abandon: (e) => t.request({
|
|
200
|
+
method: "POST",
|
|
201
|
+
path: `${o}/save-requests/${encodeURIComponent(e.requestId)}/abandon`,
|
|
202
|
+
body: {
|
|
203
|
+
moduleAlias: e.moduleAlias,
|
|
204
|
+
entityAlias: e.entityAlias,
|
|
205
|
+
fieldName: e.fieldName
|
|
206
|
+
}
|
|
207
|
+
}),
|
|
208
|
+
async preview(i, s, c, l) {
|
|
192
209
|
if (!Number.isSafeInteger(c) || c < 0) throw new r(a(n, "platform.code.config.trial-sequence-required", "试算流水值须为非负整数。"));
|
|
193
|
-
return
|
|
210
|
+
return e(await t.request({
|
|
194
211
|
method: "POST",
|
|
195
212
|
path: o + "/preview",
|
|
196
213
|
...l ? { signal: l } : {},
|
|
197
214
|
body: {
|
|
198
|
-
rule:
|
|
215
|
+
rule: b(i, n),
|
|
199
216
|
context: s,
|
|
200
217
|
sequenceValue: c,
|
|
201
|
-
organizationId:
|
|
218
|
+
organizationId: i.orgScopeId ?? null
|
|
202
219
|
}
|
|
203
220
|
}));
|
|
204
221
|
}
|
|
205
222
|
};
|
|
206
223
|
}
|
|
207
224
|
//#endregion
|
|
208
|
-
export {
|
|
225
|
+
export { s as _, C as a, w as c, g as d, b as f, l as g, c as h, f as i, _ as l, y as m, m as n, S as o, p, d as r, x as s, v as t, h as u };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ba as e, no as t, xa as n } from "./platform-components-DSMqalgQ.js";
|
|
2
|
+
import { nextTick as r, watch as i } from "vue";
|
|
3
|
+
//#region src/views/configurationEditorNavigation.ts
|
|
4
|
+
async function a(a, o, s = t) {
|
|
5
|
+
if (o?.aborted || (a() || await new Promise((t, r) => {
|
|
6
|
+
let c = (e) => {
|
|
7
|
+
u(), clearTimeout(d), o?.removeEventListener("abort", l), e ? r(e) : t();
|
|
8
|
+
}, l = () => c(new DOMException("Navigation cancelled", "AbortError")), u = i(a, (e) => {
|
|
9
|
+
e && c();
|
|
10
|
+
}, { flush: "post" }), d = setTimeout(() => c(new e(n(s, "platform.screen.configurationEditorNavigation.the-configuration-page-is-not-ready-reopen-it-before-continuing", "配置页面尚未就绪,请重新打开后继续。"))), 15e3);
|
|
11
|
+
o?.addEventListener("abort", l, { once: !0 });
|
|
12
|
+
}), await r(), o?.aborted)) throw new DOMException("Navigation cancelled", "AbortError");
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { a as t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region src/web-core/formulaReferences.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = /* @__PURE__ */ new Set(), n;
|
|
4
|
+
for (let r = 0; r < e.length; r += 1) {
|
|
5
|
+
let i = e[r];
|
|
6
|
+
if (n) {
|
|
7
|
+
i === "\\" ? r += 1 : i === n && (n = void 0);
|
|
8
|
+
continue;
|
|
9
|
+
}
|
|
10
|
+
if (i === "\"" || i === "'") {
|
|
11
|
+
n = i;
|
|
12
|
+
continue;
|
|
13
|
+
}
|
|
14
|
+
if (i !== "{") continue;
|
|
15
|
+
let a = e.indexOf("}", r + 1);
|
|
16
|
+
if (a < 0) continue;
|
|
17
|
+
let o = e.slice(r + 1, a);
|
|
18
|
+
/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(o) && t.add(o), r = a;
|
|
19
|
+
}
|
|
20
|
+
return [...t];
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { e as t };
|