@ximatai/muyun-web-app 0.26.18 → 0.26.20

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 (80) hide show
  1. package/dist/{BusinessActivityLogView-CNW817Sf.js → BusinessActivityLogView-BpcmlT8u.js} +2 -2
  2. package/dist/BusinessLogListDrawer-C3EteOgv.js +864 -0
  3. package/dist/CodeConfigurationView-CxqzINb9.js +1667 -0
  4. package/dist/{ConfigurationTranslationView-CbBt5s1q.js → ConfigurationTranslationView-QUeVtdcE.js} +37 -37
  5. package/dist/{LoginAuditLogView-CZF1Jfq_.js → LoginAuditLogView-Cd699_OD.js} +2 -2
  6. package/dist/ModuleActionManagementView-Ct1PqAXF.js +755 -0
  7. package/dist/{ModuleGovernanceView-CcwGyO3x.js → ModuleGovernanceView-CjKt6ryi.js} +2254 -2254
  8. package/dist/{RequestErrorLogView-DpudZrC2.js → RequestErrorLogView-B9sIOhWs.js} +2 -2
  9. package/dist/RoleDetailWorkspaceView-BnBL_Ihe.js +1435 -0
  10. package/dist/{RuntimeLogView-444BL_xs.js → RuntimeLogView-CjV223Pk.js} +70 -70
  11. package/dist/WorkflowAdministrationView-C2jgy4N4.js +650 -0
  12. package/dist/WorkflowConfigurationView-CNXwdgUP.js +980 -0
  13. package/dist/WorkflowWorkbenchView-DdJOTmtG.js +759 -0
  14. package/dist/{codeConfiguration-ChJ6ktRR.js → codeConfiguration-pvXI4qaR.js} +45 -45
  15. package/dist/index.css +1 -1
  16. package/dist/index.js +999 -627
  17. package/dist/{moduleMenuWorkspace-B8DKwC3L.js → moduleMenuWorkspace-D8ih_X-m.js} +204 -204
  18. package/dist/platform-components-DlKD3nyL.js +30676 -0
  19. package/dist/{platform-workbench-BhZPARiH.js → platform-workbench-D5w7Odpt.js} +5246 -5224
  20. package/dist/types/app/executeBusinessNotificationRecordAction.d.ts +7 -0
  21. package/dist/types/consumer/index.d.ts +8 -0
  22. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +3 -3
  23. package/dist/types/dynamic-page-runtime/composables/useModulePageDetailExtensionRuntime.d.ts +1 -0
  24. package/dist/types/dynamic-page-runtime/modulePageEnhancementState.d.ts +5 -0
  25. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +4 -0
  26. package/dist/types/platform-admin-runtime/workflow/ModuleWorkflowDrawer.vue.d.ts +7 -0
  27. package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +5 -3
  28. package/dist/types/platform-components/EmployeePicker.vue.d.ts +1 -1
  29. package/dist/types/platform-components/FormulaExpressionEditor.vue.d.ts +5 -0
  30. package/dist/types/platform-components/QueryCriteriaComposer.vue.d.ts +3 -1
  31. package/dist/types/platform-components/ReadonlyRecordWorkspace.vue.d.ts +56 -0
  32. package/dist/types/platform-components/RecordAdaptiveDetailPanel.vue.d.ts +30 -0
  33. package/dist/types/platform-components/RecordQueryControls.vue.d.ts +21 -0
  34. package/dist/types/platform-components/RecordQueryFieldControls.vue.d.ts +32 -0
  35. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +1 -1
  36. package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +6 -2
  37. package/dist/types/platform-components/ReferencePicker.vue.d.ts +1 -1
  38. package/dist/types/platform-components/UserPicker.vue.d.ts +1 -1
  39. package/dist/types/platform-components/WorkflowBusinessTaskEditor.vue.d.ts +2 -0
  40. package/dist/types/platform-components/WorkflowDesignProperties.vue.d.ts +2 -6
  41. package/dist/types/platform-components/WorkflowDiagram.vue.d.ts +32 -1
  42. package/dist/types/platform-components/formulaExpressionTokens.d.ts +2 -0
  43. package/dist/types/platform-components/formulaExpressionTools.d.ts +6 -0
  44. package/dist/types/platform-components/index.d.ts +3 -0
  45. package/dist/types/platform-components/queryCriteria.d.ts +7 -0
  46. package/dist/types/platform-components/referencePickerModel.d.ts +5 -1
  47. package/dist/types/platform-components/useWorkflowDesignHistory.d.ts +14 -0
  48. package/dist/types/platform-components/useWorkspaceDetailSurface.d.ts +3 -0
  49. package/dist/types/platform-components/workflowDesignClipboard.d.ts +7 -0
  50. package/dist/types/platform-components/workflowPresentation.d.ts +4 -0
  51. package/dist/types/views/WorkflowConfigurationView.vue.d.ts +1 -0
  52. package/dist/types/views/WorkflowDefinitionSettings.vue.d.ts +35 -0
  53. package/dist/types/views/WorkflowSelectionFields.vue.d.ts +2 -4
  54. package/dist/types/views/useWorkflowConfigurationContext.d.ts +49 -0
  55. package/dist/types/views/workflowConfigurationWorkspaceView.d.ts +2 -0
  56. package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
  57. package/dist/types/vue-ui-antdv/components/UiRadioGroup.vue.d.ts +4 -0
  58. package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +5 -0
  59. package/dist/types/vue-ui-antdv/index.d.ts +1 -0
  60. package/dist/types/vue-ui-antdv/overlayLayers.d.ts +5 -0
  61. package/dist/types/vue-ui-antdv/types.d.ts +2 -0
  62. package/dist/types/web-contracts/index.d.ts +7 -0
  63. package/dist/types/web-contracts/workflow.d.ts +16 -8
  64. package/dist/types/web-core/businessNotifications.d.ts +3 -1
  65. package/dist/types/web-core/index.d.ts +3 -0
  66. package/dist/types/web-core/recordReadEntry.d.ts +23 -0
  67. package/dist/types/web-core/recordReadView.d.ts +28 -0
  68. package/dist/types/web-core/useRecordReadSession.d.ts +27 -0
  69. package/dist/types/web-core/workflow.d.ts +13 -1
  70. package/dist/useWorkflowConfigurationContext-B6Wdt26l.js +66 -0
  71. package/dist/{workspaceViews-DeBqozVb.js → workspaceViews-B9wsCYdy.js} +1510 -930
  72. package/package.json +1 -1
  73. package/dist/BusinessLogListDrawer-YiJxOlnD.js +0 -864
  74. package/dist/CodeConfigurationView-DU8tjPMt.js +0 -1667
  75. package/dist/ModuleActionManagementView-CaiXH1l_.js +0 -755
  76. package/dist/RoleDetailWorkspaceView-DNMGsAJC.js +0 -1435
  77. package/dist/WorkflowAdministrationView-C-VIjvwB.js +0 -650
  78. package/dist/WorkflowConfigurationView-DLFY2x7V.js +0 -1110
  79. package/dist/WorkflowWorkbenchView-Gr02dbBc.js +0 -759
  80. package/dist/platform-components-5AE0j2_3.js +0 -29879
@@ -1,5 +1,5 @@
1
- import "./platform-workbench-BhZPARiH.js";
2
- import { Na as e, Qi as t, St as n, Zi as r, ea as i, va as a } from "./platform-components-5AE0j2_3.js";
1
+ import "./platform-workbench-D5w7Odpt.js";
2
+ import { Ma as e, da as t, fa as n, jt as r, ma as i, qa as a } from "./platform-components-DlKD3nyL.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-CcwGyO3x.js")),
23
+ component: o(() => import("./ModuleGovernanceView-CjKt6ryi.js")),
24
24
  layout: "workspace",
25
25
  routeTitle: "模块管理",
26
26
  routeTitleKey: "platform.workspace-view.modules.route-title",
@@ -53,8 +53,8 @@ var d = [
53
53
  "VALUE_MAPPING",
54
54
  "FORMULA"
55
55
  ];
56
- function f(t, n = e) {
57
- let r = a(t.title, t.titleText, n);
56
+ function f(t, n = a) {
57
+ let r = e(t.title, t.titleText, n);
58
58
  return t.ownerTitle ? `${t.ownerTitle} · ${r}` : r;
59
59
  }
60
60
  function p(e, t) {
@@ -112,18 +112,18 @@ function _(e) {
112
112
  "VALUE_MAPPING"
113
113
  ].includes(e.segmentType) && !!e.sourceRef?.trim());
114
114
  }
115
- function v(n, i = 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 r(t(i, "platform.code.config.integer-required", "流水策略和片段长度须为可准确表示的整数。"));
123
- let a = JSON.parse(JSON.stringify(n));
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) => {
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
+ 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
- }), a;
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(i, a, o = e) {
148
+ function x(e, i, o = a) {
149
149
  let s = {};
150
- for (let e of i) {
151
- let i = a[e.fieldName];
152
- if (i !== void 0 && i !== "") {
153
- if (b(e) === "number") {
154
- let a = e.type.toUpperCase(), c = n(i, a === "LONG" ? "LONG" : ["DECIMAL", "BIGDECIMAL"].includes(a) ? "DECIMAL" : ["INT", "INTEGER"].includes(a) ? "INTEGER" : void 0);
155
- if (c === void 0) throw new r(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 (i !== "true" && i !== "false") throw new r(t(o, "platform.code.config.boolean-required", "{field}请输入 true 或 false", { field: f(e, o) }));
159
- s[e.fieldName] = i === "true";
160
- } else s[e.fieldName] = i;
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;
161
161
  }
162
162
  }
163
163
  return s;
164
164
  }
165
- function S(n, a = e) {
165
+ function S(e, r = a) {
166
166
  let o = "/platform.code_rule";
167
167
  return {
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({
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: e.moduleAlias,
176
- entityAlias: e.entityAlias,
177
- fieldName: t.fieldName,
175
+ moduleAlias: t.moduleAlias,
176
+ entityAlias: t.entityAlias,
177
+ fieldName: n.fieldName,
178
178
  role: r,
179
179
  trigger: a,
180
- expectedVersion: t.bindingVersion ?? null
180
+ expectedVersion: n.bindingVersion ?? null
181
181
  }
182
182
  }));
183
183
  },
184
- async save(e) {
185
- return i(await n.request({
184
+ async save(t) {
185
+ return i(await e.request({
186
186
  method: "POST",
187
187
  path: o + "/saveTree",
188
- body: v(e, a)
188
+ body: v(t, r)
189
189
  }));
190
190
  },
191
- async preview(e, s, c, l) {
192
- if (!Number.isSafeInteger(c) || c < 0) throw new r(t(a, "platform.code.config.trial-sequence-required", "试算流水值须为非负整数。"));
193
- return i(await n.request({
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({
194
194
  method: "POST",
195
195
  path: o + "/preview",
196
196
  ...l ? { signal: l } : {},
197
197
  body: {
198
- rule: v(e, a),
198
+ rule: v(a, r),
199
199
  context: s,
200
200
  sequenceValue: c,
201
- organizationId: e.orgScopeId ?? null
201
+ organizationId: a.orgScopeId ?? null
202
202
  }
203
203
  }));
204
204
  }