@ximatai/muyun-web-app 0.26.17 → 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.
Files changed (87) hide show
  1. package/dist/{BusinessActivityLogView-9RrW-RKb.js → BusinessActivityLogView-DudCmeKP.js} +2 -2
  2. package/dist/{BusinessLogListDrawer-DYVx9tiQ.js → BusinessLogListDrawer-CVUvUG48.js} +193 -193
  3. package/dist/CodeConfigurationView-ZjVgaZkD.js +1667 -0
  4. package/dist/{ConfigurationTranslationView-Bh_ekuMP.js → ConfigurationTranslationView-Dl757QMl.js} +38 -38
  5. package/dist/{LoginAuditLogView-DG6iBXEn.js → LoginAuditLogView-Cj3PMvN5.js} +2 -2
  6. package/dist/ModuleActionManagementView-BuhQrVA3.js +755 -0
  7. package/dist/{ModuleGovernanceView-C53RnUzc.js → ModuleGovernanceView-C3RxdgQN.js} +3736 -3880
  8. package/dist/{RequestErrorLogView-Ba5p0hLE.js → RequestErrorLogView-tmjMOeLE.js} +2 -2
  9. package/dist/RoleDetailWorkspaceView-OhpBChaT.js +1435 -0
  10. package/dist/{RuntimeLogView-BFEABm8G.js → RuntimeLogView-BkkgHcF0.js} +69 -69
  11. package/dist/WorkflowAdministrationView-DOhA_5-M.js +650 -0
  12. package/dist/WorkflowConfigurationView-Bnjdrkdx.js +980 -0
  13. package/dist/{WorkflowWorkbenchView-DGpNDt5V.js → WorkflowWorkbenchView-Cf6yiofx.js} +263 -263
  14. package/dist/codeConfiguration-DERwCY-U.js +208 -0
  15. package/dist/index.css +1 -1
  16. package/dist/index.js +472 -471
  17. package/dist/moduleMenuWorkspace-DPmYGkS_.js +626 -0
  18. package/dist/platform-components-wRXbnwMr.js +30434 -0
  19. package/dist/{platform-workbench-C1hmkOUD.js → platform-workbench-Cm_0kmTT.js} +5570 -5592
  20. package/dist/types/app/DevelopmentTopbarActions.vue.d.ts +9 -0
  21. package/dist/types/app/executeBusinessNotificationRecordAction.d.ts +7 -0
  22. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +5 -1
  23. package/dist/types/consumer/index.d.ts +2 -1
  24. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +6 -0
  25. package/dist/types/dynamic-page-runtime/composables/useModulePageDetailExtensionRuntime.d.ts +1 -0
  26. package/dist/types/dynamic-page-runtime/modulePageEnhancementState.d.ts +5 -0
  27. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +6 -2
  28. package/dist/types/platform-admin-runtime/ModuleCodeConfigurationStatus.vue.d.ts +7 -0
  29. package/dist/types/platform-admin-runtime/moduleCodeConfiguration.d.ts +15 -0
  30. package/dist/types/platform-admin-runtime/workflow/ModuleWorkflowDrawer.vue.d.ts +7 -0
  31. package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +5 -3
  32. package/dist/types/platform-components/FormulaExpressionEditor.vue.d.ts +5 -0
  33. package/dist/types/platform-components/RecordAdaptiveDetailPanel.vue.d.ts +28 -0
  34. package/dist/types/platform-components/RecordFormFields.vue.d.ts +4 -2
  35. package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +4 -0
  36. package/dist/types/platform-components/RecordRelationActionButton.vue.d.ts +16 -0
  37. package/dist/types/{dynamic-page-runtime → platform-components}/TenantScopeExplorer.vue.d.ts +1 -1
  38. package/dist/types/platform-components/WorkflowBusinessTaskEditor.vue.d.ts +2 -0
  39. package/dist/types/platform-components/WorkflowDesignProperties.vue.d.ts +2 -6
  40. package/dist/types/platform-components/WorkflowDiagram.vue.d.ts +32 -1
  41. package/dist/types/platform-components/formulaExpressionTokens.d.ts +2 -0
  42. package/dist/types/platform-components/formulaExpressionTools.d.ts +6 -0
  43. package/dist/types/platform-components/index.d.ts +5 -0
  44. package/dist/types/platform-components/managementWorkspaceLayout.d.ts +10 -0
  45. package/dist/types/platform-components/recordFormFieldModel.d.ts +4 -0
  46. package/dist/types/platform-components/useBusinessCodeForm.d.ts +36 -0
  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/platform-workbench/Workbench.vue.d.ts +6 -2
  52. package/dist/types/platform-workbench/WorkbenchGlobalTools.vue.d.ts +13 -1
  53. package/dist/types/views/CodeConfigurationView.vue.d.ts +8 -0
  54. package/dist/types/views/CodeRuleFormatEditor.vue.d.ts +17 -0
  55. package/dist/types/views/WorkflowConfigurationView.vue.d.ts +1 -0
  56. package/dist/types/views/WorkflowDefinitionSettings.vue.d.ts +35 -0
  57. package/dist/types/views/WorkflowSelectionFields.vue.d.ts +2 -4
  58. package/dist/types/views/codeConfiguration.d.ts +127 -0
  59. package/dist/types/views/codeConfigurationWorkspaceView.d.ts +5 -0
  60. package/dist/types/views/moduleGovernanceWorkspaceView.d.ts +1 -1
  61. package/dist/types/views/useWorkflowConfigurationContext.d.ts +49 -0
  62. package/dist/types/views/workflowConfigurationWorkspaceView.d.ts +2 -0
  63. package/dist/types/vue-ui-antdv/components/UiDatePicker.vue.d.ts +33 -0
  64. package/dist/types/vue-ui-antdv/components/UiHelp.vue.d.ts +16 -0
  65. package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
  66. package/dist/types/vue-ui-antdv/components/UiPopover.vue.d.ts +12 -4
  67. package/dist/types/vue-ui-antdv/components/UiRadioGroup.vue.d.ts +4 -0
  68. package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +5 -0
  69. package/dist/types/vue-ui-antdv/datePickerCalendar.d.ts +472 -0
  70. package/dist/types/vue-ui-antdv/datePickerValue.d.ts +6 -0
  71. package/dist/types/vue-ui-antdv/index.d.ts +4 -0
  72. package/dist/types/vue-ui-antdv/languageLocales.d.ts +2 -0
  73. package/dist/types/vue-ui-antdv/overlayLayers.d.ts +5 -0
  74. package/dist/types/vue-ui-antdv/types.d.ts +2 -0
  75. package/dist/types/web-contracts/index.d.ts +18 -0
  76. package/dist/types/web-contracts/workflow.d.ts +16 -8
  77. package/dist/types/web-core/businessNotifications.d.ts +3 -1
  78. package/dist/types/web-core/workflow.d.ts +13 -1
  79. package/dist/useWorkflowConfigurationContext-BE_UjKgk.js +66 -0
  80. package/dist/{workspaceViews-BpH71LKQ.js → workspaceViews-D37OpJ7g.js} +1608 -884
  81. package/package.json +4 -1
  82. package/dist/ModuleActionManagementView-DgHqhoMN.js +0 -755
  83. package/dist/RoleDetailWorkspaceView-C3TBqksY.js +0 -1435
  84. package/dist/WorkflowAdministrationView-BOHG2e-I.js +0 -650
  85. package/dist/WorkflowConfigurationView-A0m5tBX9.js +0 -1097
  86. package/dist/moduleGovernanceWorkspaceView-DNKzYX0x.js +0 -667
  87. package/dist/platform-components-BBfyINHa.js +0 -29912
@@ -0,0 +1,208 @@
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
+ import { defineAsyncComponent as o } from "vue";
4
+ //#region src/platform-workbench/workspaceViewContract.ts
5
+ function s(e) {
6
+ return e;
7
+ }
8
+ //#endregion
9
+ //#region src/views/moduleGovernanceWorkspaceView.ts
10
+ var c = [
11
+ "overview",
12
+ "metadata",
13
+ "actions",
14
+ "rules",
15
+ "codes",
16
+ "ui",
17
+ "menu",
18
+ "preview"
19
+ ], l = s({
20
+ type: "platform.module.governance",
21
+ route: "/_platform/workspace/platform.module.governance",
22
+ moduleAlias: "platform.module",
23
+ component: o(() => import("./ModuleGovernanceView-C3RxdgQN.js")),
24
+ layout: "workspace",
25
+ routeTitle: "模块管理",
26
+ routeTitleKey: "platform.workspace-view.modules.route-title",
27
+ presentations: ["tab"],
28
+ titleArgsOf: (e) => ({ module: e.moduleTitle ?? e.moduleAlias }),
29
+ titleKey: "platform.workspace-view.governance.title",
30
+ titleOf: (e) => `低代码治理:${e.moduleTitle ?? e.moduleAlias}`,
31
+ tabIdentityParamsOf: (e) => ({ moduleAlias: e.moduleAlias }),
32
+ parentRouteQueryOf: () => ({}),
33
+ parse(e) {
34
+ let t = e.moduleAlias, n = e.moduleTitle, r = e.governanceTab === "diagnostics" ? "preview" : e.governanceTab;
35
+ if (typeof t == "string" && t) return {
36
+ moduleAlias: t,
37
+ ...typeof n == "string" && n ? { moduleTitle: n } : {},
38
+ ...u(r) ? { governanceTab: r } : {}
39
+ };
40
+ }
41
+ });
42
+ function u(e) {
43
+ return typeof e == "string" && c.includes(e);
44
+ }
45
+ //#endregion
46
+ //#region src/views/codeConfiguration.ts
47
+ var d = [
48
+ "CONSTANT",
49
+ "FIELD_VALUE",
50
+ "CONTEXT_VAR",
51
+ "SYSTEM_TIME",
52
+ "SEQUENCE",
53
+ "VALUE_MAPPING",
54
+ "FORMULA"
55
+ ];
56
+ function f(e, t = a) {
57
+ let n = r(e.title, e.titleText, t);
58
+ return e.ownerTitle ? `${e.ownerTitle} · ${n}` : n;
59
+ }
60
+ function p(e, t) {
61
+ return e.request({ path: `/platform.module/${encodeURIComponent(t)}/code-configuration` });
62
+ }
63
+ function m(e = "CONSTANT") {
64
+ return {
65
+ segmentType: e,
66
+ sortOrder: 0,
67
+ fixedValue: e === "CONSTANT" ? "NO-" : null,
68
+ dateFormat: e === "SYSTEM_TIME" ? "YYYYMMDD" : null,
69
+ length: null,
70
+ padMode: "NONE",
71
+ truncatePolicy: "NONE",
72
+ nullPolicy: "ERROR",
73
+ sequenceBasis: !1,
74
+ mappings: []
75
+ };
76
+ }
77
+ function h() {
78
+ return {
79
+ startValue: 1,
80
+ stepValue: 1,
81
+ sequenceLength: 4,
82
+ resetPolicy: "NONE",
83
+ overflowPolicy: "ERROR",
84
+ maxValue: null
85
+ };
86
+ }
87
+ function g(e, t) {
88
+ return {
89
+ title: t.title,
90
+ moduleAlias: e.moduleAlias,
91
+ entityAlias: e.entityAlias,
92
+ fieldName: t.fieldName,
93
+ moduleMetadataFieldId: t.bindingId,
94
+ metadataFieldId: t.metadataFieldId,
95
+ fieldRole: t.role ?? "NORMAL",
96
+ fieldTrigger: t.trigger ?? "SAVE",
97
+ mode: "AUTO",
98
+ enabled: !1,
99
+ linkedUpdate: !1,
100
+ allowRecycle: !1,
101
+ orgScopeType: "GLOBAL",
102
+ globalDefault: !0,
103
+ orgScopeId: null,
104
+ segments: [m(), m("SEQUENCE")],
105
+ sequencePolicy: h()
106
+ };
107
+ }
108
+ function _(e) {
109
+ return e.mode !== "MANUAL" && e.fieldTrigger !== "EXPLICIT" && e.segments.some((e) => e.segmentType === "FORMULA" || [
110
+ "FIELD_VALUE",
111
+ "CONTEXT_VAR",
112
+ "VALUE_MAPPING"
113
+ ].includes(e.segmentType) && !!e.sourceRef?.trim());
114
+ }
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
+ e.sortOrder = t;
126
+ }), i;
127
+ }
128
+ function y(e, t) {
129
+ let n = /* @__PURE__ */ new Map();
130
+ for (let r of t?.segments ?? []) {
131
+ if (![
132
+ "FIELD_VALUE",
133
+ "VALUE_MAPPING",
134
+ "CONTEXT_VAR"
135
+ ].includes(r.segmentType) || !r.sourceRef) continue;
136
+ let t = e.sources.find((e) => e.fieldName === r.sourceRef);
137
+ t ? n.set(t.fieldName, t) : r.segmentType === "CONTEXT_VAR" && n.set(r.sourceRef, {
138
+ fieldName: r.sourceRef,
139
+ title: r.sourceRef,
140
+ type: "STRING"
141
+ });
142
+ }
143
+ return [...n.values()];
144
+ }
145
+ function b(e) {
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
+ }
148
+ function x(t, r, o = a) {
149
+ let 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
+ }
162
+ }
163
+ return s;
164
+ }
165
+ function S(r, i = a) {
166
+ let o = "/platform.code_rule";
167
+ 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
+ method: "POST",
173
+ path: o + "/binding",
174
+ body: {
175
+ moduleAlias: e.moduleAlias,
176
+ entityAlias: e.entityAlias,
177
+ fieldName: n.fieldName,
178
+ role: i,
179
+ trigger: a,
180
+ expectedVersion: n.bindingVersion ?? null
181
+ }
182
+ }));
183
+ },
184
+ async save(e) {
185
+ return t(await r.request({
186
+ method: "POST",
187
+ path: o + "/saveTree",
188
+ body: v(e, i)
189
+ }));
190
+ },
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
+ method: "POST",
195
+ path: o + "/preview",
196
+ ...l ? { signal: l } : {},
197
+ body: {
198
+ rule: v(a, i),
199
+ context: s,
200
+ sequenceValue: c,
201
+ organizationId: a.orgScopeId ?? null
202
+ }
203
+ }));
204
+ }
205
+ };
206
+ }
207
+ //#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 };