@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.
Files changed (39) hide show
  1. package/dist/{BusinessActivityLogView-6L75GZVc.js → BusinessActivityLogView-IWGZiPLo.js} +2 -2
  2. package/dist/{BusinessLogListDrawer-C4iFnkE7.js → BusinessLogListDrawer-UCsg6psI.js} +85 -85
  3. package/dist/{CodeConfigurationView-D7sqbNCg.js → CodeConfigurationView-Calkazua.js} +532 -532
  4. package/dist/{ConfigurationTranslationView-ta82REbn.js → ConfigurationTranslationView-fZrlRAMy.js} +24 -24
  5. package/dist/{LoginAuditLogView-B_RQ9JIX.js → LoginAuditLogView-B6J7t__0.js} +2 -2
  6. package/dist/ModuleActionManagementView-BZ89Woex.js +755 -0
  7. package/dist/{ModuleGovernanceView-Cl6tkZ6M.js → ModuleGovernanceView-D8ONs78K.js} +1892 -1892
  8. package/dist/{RequestErrorLogView-BJDO3Scn.js → RequestErrorLogView-poMgx4_6.js} +2 -2
  9. package/dist/RoleDetailWorkspaceView-6Bs1eKbm.js +1435 -0
  10. package/dist/{RuntimeLogView-jP9ceuJD.js → RuntimeLogView-Co-Z86bt.js} +41 -41
  11. package/dist/WorkflowAdministrationView-D7QpRHDp.js +650 -0
  12. package/dist/{WorkflowConfigurationView-Dh6BKQm5.js → WorkflowConfigurationView-mSyL_-We.js} +32 -32
  13. package/dist/{WorkflowWorkbenchView-BvPNKbuV.js → WorkflowWorkbenchView-DBMh3ycN.js} +224 -224
  14. package/dist/{codeConfiguration-DhCBKbkc.js → codeConfiguration-D1zrxzoW.js} +44 -44
  15. package/dist/index.css +1 -1
  16. package/dist/index.js +524 -550
  17. package/dist/moduleMenuWorkspace-lIVrTaOB.js +626 -0
  18. package/dist/{platform-components-i2ONyZ8r.js → platform-components-D0T03KGl.js} +2815 -2913
  19. package/dist/{platform-workbench-DhaREttd.js → platform-workbench-CobObbuz.js} +2770 -2745
  20. package/dist/record-read.js +2 -0
  21. package/dist/recordReadEntry-CxDHM44F.js +152 -0
  22. package/dist/types/consumer/recordRead.d.ts +6 -0
  23. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +4 -0
  24. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +8 -0
  25. package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +2 -0
  26. package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +2 -0
  27. package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +2 -0
  28. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +2 -0
  29. package/dist/types/platform-components/RecordFormFields.vue.d.ts +10 -8
  30. package/dist/types/platform-components/useBusinessCodeForm.d.ts +1 -0
  31. package/dist/types/platform-workbench/useAssistantConversation.d.ts +3 -0
  32. package/dist/types/web-contracts/operation.d.ts +2 -0
  33. package/dist/{useWorkflowConfigurationContext-B_NxZFyz.js → useWorkflowConfigurationContext-BkcNPU2H.js} +8 -8
  34. package/dist/{workspaceViews-MTwNg_aQ.js → workspaceViews-BtqO8rU0.js} +355 -355
  35. package/package.json +5 -1
  36. package/dist/ModuleActionManagementView-DtGF3NC_.js +0 -755
  37. package/dist/RoleDetailWorkspaceView-C0Ab3PEp.js +0 -1435
  38. package/dist/WorkflowAdministrationView-BmNJQYtq.js +0 -650
  39. package/dist/moduleMenuWorkspace-BbVmNKZn.js +0 -626
@@ -1,5 +1,5 @@
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";
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-Cl6tkZ6M.js")),
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, n = a) {
57
- let r = e(t.title, t.titleText, n);
58
- return t.ownerTitle ? `${t.ownerTitle} · ${r}` : r;
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(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));
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(e, i, o = a) {
148
+ function x(n, i, o = e) {
149
149
  let s = {};
150
- for (let a of e) {
151
- let e = i[a.fieldName];
152
- if (e !== void 0 && e !== "") {
153
- if (b(a) === "number") {
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
- s[a.fieldName] = c;
157
- } else if (b(a) === "boolean") {
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;
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(e, r = a) {
165
+ function S(n, r = e) {
166
166
  let o = "/platform.code_rule";
167
167
  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({
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: t.moduleAlias,
176
- entityAlias: t.entityAlias,
177
- fieldName: n.fieldName,
175
+ moduleAlias: e.moduleAlias,
176
+ entityAlias: e.entityAlias,
177
+ fieldName: t.fieldName,
178
178
  role: r,
179
179
  trigger: a,
180
- expectedVersion: n.bindingVersion ?? null
180
+ expectedVersion: t.bindingVersion ?? null
181
181
  }
182
182
  }));
183
183
  },
184
- async save(t) {
185
- return i(await e.request({
184
+ async save(e) {
185
+ return i(await n.request({
186
186
  method: "POST",
187
187
  path: o + "/saveTree",
188
- body: v(t, r)
188
+ body: v(e, r)
189
189
  }));
190
190
  },
191
- async preview(a, s, c, l) {
192
- if (!Number.isSafeInteger(c) || c < 0) throw new t(n(r, "platform.code.config.trial-sequence-required", "试算流水值须为非负整数。"));
193
- return i(await e.request({
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(a, r),
198
+ rule: v(e, r),
199
199
  context: s,
200
200
  sequenceValue: c,
201
- organizationId: a.orgScopeId ?? null
201
+ organizationId: e.orgScopeId ?? null
202
202
  }
203
203
  }));
204
204
  }