@ximatai/muyun-web-app 0.26.27 → 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.
Files changed (61) hide show
  1. package/dist/{BusinessActivityLogView-Bbe-GbNG.js → BusinessActivityLogView-DlNB97pu.js} +2 -2
  2. package/dist/BusinessLogListDrawer-ByiwQP1m.js +868 -0
  3. package/dist/CodeConfigurationView-91B9dHjD.js +2333 -0
  4. package/dist/{ConfigurationTranslationView-B3Cr9Wes.js → ConfigurationTranslationView-ClovkYJt.js} +49 -49
  5. package/dist/{LoginAuditLogView-DOwkqtVB.js → LoginAuditLogView-Blg9giRX.js} +2 -2
  6. package/dist/{ModuleActionManagementView-DNXAhdXk.js → ModuleActionManagementView-Chr_XTJ3.js} +191 -191
  7. package/dist/{ModuleGovernanceView-g5W2R_Zl.js → ModuleGovernanceView-BNlRHqSj.js} +3403 -3421
  8. package/dist/{RequestErrorLogView-9GIz2mkQ.js → RequestErrorLogView-CGczIKQy.js} +2 -2
  9. package/dist/RoleDetailWorkspaceView-CPH9cga9.js +1435 -0
  10. package/dist/{RuntimeLogView-C5i19Z-u.js → RuntimeLogView-DF-1k-9y.js} +51 -51
  11. package/dist/{WorkflowAdministrationView-CnoTudpI.js → WorkflowAdministrationView-CCXry0G4.js} +57 -57
  12. package/dist/WorkflowConfigurationView-BqSfYua2.js +2227 -0
  13. package/dist/{WorkflowWorkbenchView-DbWqspEB.js → WorkflowWorkbenchView-DUFfO3Gf.js} +248 -248
  14. package/dist/{codeConfiguration-Bno8cWxB.js → codeConfiguration-BRxveKen.js} +66 -49
  15. package/dist/configurationEditorNavigation-DeXvfJyr.js +15 -0
  16. package/dist/formulaReferences-CKkkdA_R.js +23 -0
  17. package/dist/index.css +1 -1
  18. package/dist/index.js +727 -727
  19. package/dist/{moduleMenuWorkspace-DW13bHG5.js → moduleMenuWorkspace-D_A94ZgR.js} +237 -248
  20. package/dist/{platform-components-D3NvMY3T.js → platform-components-DSMqalgQ.js} +4535 -4455
  21. package/dist/{platform-workbench-C4OFiuG5.js → platform-workbench-B53hydzq.js} +5376 -5289
  22. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +2 -0
  23. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +28 -3
  24. package/dist/types/dynamic-page-runtime/ModuleReferenceRecordDetailBrowser.vue.d.ts +13 -4
  25. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +2 -0
  26. package/dist/types/dynamic-page-runtime/recordFormAssistantCapabilities.d.ts +3 -1
  27. package/dist/types/dynamic-page-runtime/recordFormDraftAccess.d.ts +2 -0
  28. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +1 -0
  29. package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +2 -0
  30. package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +10 -0
  31. package/dist/types/platform-components/index.d.ts +2 -2
  32. package/dist/types/platform-components/optionFieldOptionCache.d.ts +11 -1
  33. package/dist/types/platform-components/recordFormFieldModel.d.ts +1 -0
  34. package/dist/types/platform-components/referenceRecordDetailBrowser.d.ts +13 -1
  35. package/dist/types/platform-components/useWorkflowDesignSession.d.ts +141 -0
  36. package/dist/types/platform-components/workflowDesignEditing.d.ts +8 -7
  37. package/dist/types/platform-components/workflowDesignOperations.d.ts +107 -0
  38. package/dist/types/views/CodeRuleRecoveryPanel.vue.d.ts +20 -0
  39. package/dist/types/views/businessRuleGovernance.d.ts +1 -2
  40. package/dist/types/views/codeConfiguration.d.ts +29 -1
  41. package/dist/types/views/codeConfigurationAssistantSurface.d.ts +17 -0
  42. package/dist/types/views/codeRuleSaveRecovery.d.ts +12 -0
  43. package/dist/types/views/useCodeConfigurationAssistant.d.ts +10 -0
  44. package/dist/types/views/useCodeConfigurationSession.d.ts +16 -0
  45. package/dist/types/views/useWorkflowConfigurationAssistant.d.ts +16 -0
  46. package/dist/types/views/useWorkflowConfigurationContext.d.ts +16 -2
  47. package/dist/types/views/useWorkflowConfigurationSession.d.ts +146 -0
  48. package/dist/types/views/workflowConfigurationAssistantSurface.d.ts +169 -0
  49. package/dist/types/views/workflowSaveRecovery.d.ts +11 -0
  50. package/dist/types/vue-ui-antdv/components/sidePanelHost.d.ts +3 -1
  51. package/dist/types/vue-ui-antdv/index.d.ts +1 -0
  52. package/dist/types/web-core/formulaReferences.d.ts +2 -0
  53. package/dist/types/web-core/workflow.d.ts +11 -1
  54. package/dist/useWorkflowConfigurationContext-BuBDdUcQ.js +78 -0
  55. package/dist/{workspaceViews-D2Uh4KAq.js → workspaceViews-BSVtjZj1.js} +680 -680
  56. package/package.json +1 -1
  57. package/dist/BusinessLogListDrawer-BmF-14We.js +0 -868
  58. package/dist/CodeConfigurationView-DdPfBjoC.js +0 -1667
  59. package/dist/RoleDetailWorkspaceView-BuqRT0pd.js +0 -1435
  60. package/dist/WorkflowConfigurationView-Cku-F1Fm.js +0 -980
  61. package/dist/useWorkflowConfigurationContext-eQKyqe6_.js +0 -66
@@ -1,5 +1,5 @@
1
- import "./platform-workbench-C4OFiuG5.js";
2
- import { Nt as e, eo as t, va as n, xa as r, ya as i, za as a } from "./platform-components-D3NvMY3T.js";
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-g5W2R_Zl.js")),
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(e, n = t) {
57
- let r = a(e.title, e.titleText, n);
56
+ function f(e, t = i) {
57
+ let r = n(e.title, e.titleText, t);
58
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 = "CONSTANT") {
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 h() {
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 g(e, t) {
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: [m(), m("SEQUENCE")],
105
- sequencePolicy: h()
107
+ segments: [h(), h("SEQUENCE")],
108
+ sequencePolicy: g()
106
109
  };
107
110
  }
108
- function _(e) {
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 v(e, r = t) {
118
+ function y(e, t = i) {
116
119
  if (e.mode !== "MANUAL" && [
117
120
  ...e.segments.map((e) => e.length),
118
121
  e.sequencePolicy?.startValue,
119
122
  e.sequencePolicy?.stepValue,
120
123
  e.sequencePolicy?.sequenceLength,
121
124
  e.sequencePolicy?.maxValue
122
- ].some((e) => e != null && !Number.isSafeInteger(e))) throw new n(i(r, "platform.code.config.integer-required", "流水策略和片段长度须为可准确表示的整数。"));
123
- let a = JSON.parse(JSON.stringify(e));
124
- return a.orgScopeId = a.orgScopeType === "GLOBAL" ? null : a.orgScopeId, a.globalDefault = a.orgScopeType === "GLOBAL", a.effectiveFrom ||= null, a.effectiveTo ||= null, a.mode === "MANUAL" ? (a.segments = [], a.sequencePolicy = null, a.linkedUpdate = !1) : a.segments.some((e) => e.segmentType === "SEQUENCE") || (a.sequencePolicy = null), _(a) || (a.linkedUpdate = !1), a.segments.forEach((e, t) => {
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
- }), a;
132
+ }), n;
127
133
  }
128
- function y(e, t) {
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 b(e) {
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 x(r, a, o = t) {
154
+ function C(e, n, o = i) {
149
155
  let s = {};
150
- for (let t of r) {
151
- let r = a[t.fieldName];
152
- if (r !== void 0 && r !== "") {
153
- if (b(t) === "number") {
154
- let a = t.type.toUpperCase(), c = e(r, a === "LONG" ? "LONG" : ["DECIMAL", "BIGDECIMAL"].includes(a) ? "DECIMAL" : ["INT", "INTEGER"].includes(a) ? "INTEGER" : void 0);
155
- if (c === void 0) throw new n(i(o, "platform.code.config.number-required", "{field}请输入有效数字", { field: f(t, o) }));
156
- s[t.fieldName] = c;
157
- } else if (b(t) === "boolean") {
158
- if (r !== "true" && r !== "false") throw new n(i(o, "platform.code.config.boolean-required", "{field}请输入 true 或 false", { field: f(t, o) }));
159
- s[t.fieldName] = r === "true";
160
- } else s[t.fieldName] = r;
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 S(e, a = t) {
171
+ function w(t, n = i) {
166
172
  let o = "/platform.code_rule";
167
173
  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, i, a) {
171
- return r(await e.request({
174
+ targets: (e) => t.request({ path: o + "/targets" + (e ? `?moduleAlias=${encodeURIComponent(e)}` : "") }),
175
+ rules: (e) => t.request({ path: `${o}/rules?moduleAlias=${encodeURIComponent(e.moduleAlias)}&entityAlias=${encodeURIComponent(e.entityAlias)}` }),
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: t.moduleAlias,
176
- entityAlias: t.entityAlias,
177
- fieldName: n.fieldName,
181
+ moduleAlias: n.moduleAlias,
182
+ entityAlias: n.entityAlias,
183
+ fieldName: r.fieldName,
178
184
  role: i,
179
185
  trigger: a,
180
- expectedVersion: n.bindingVersion ?? null
186
+ expectedVersion: r.bindingVersion ?? null
181
187
  }
182
188
  }));
183
189
  },
184
- async save(t) {
185
- return r(await e.request({
190
+ async save(r, i) {
191
+ return e(await t.request({
186
192
  method: "POST",
187
- path: o + "/saveTree",
188
- body: v(t, a)
193
+ path: i ? `${o}/save-requests/${encodeURIComponent(i)}` : o + "/saveTree",
194
+ body: b(r, n)
189
195
  }));
190
196
  },
191
- async preview(t, s, c, l) {
192
- if (!Number.isSafeInteger(c) || c < 0) throw new n(i(a, "platform.code.config.trial-sequence-required", "试算流水值须为非负整数。"));
193
- return r(await e.request({
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) {
209
+ if (!Number.isSafeInteger(c) || c < 0) throw new r(a(n, "platform.code.config.trial-sequence-required", "试算流水值须为非负整数。"));
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: v(t, a),
215
+ rule: b(i, n),
199
216
  context: s,
200
217
  sequenceValue: c,
201
- organizationId: t.orgScopeId ?? null
218
+ organizationId: i.orgScopeId ?? null
202
219
  }
203
220
  }));
204
221
  }
205
222
  };
206
223
  }
207
224
  //#endregion
208
- export { b as a, g as c, p as d, c as f, x as i, m as l, s as m, d as n, y as o, l as p, f as r, S as s, _ as t, h as u };
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 };