@ximatai/muyun-web-app 0.26.16 → 0.26.18
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-DVM_GB5y.js → BusinessActivityLogView-CNW817Sf.js} +2 -2
- package/dist/BusinessLogListDrawer-YiJxOlnD.js +864 -0
- package/dist/CodeConfigurationView-DU8tjPMt.js +1667 -0
- package/dist/{ConfigurationTranslationView-B0FosDyz.js → ConfigurationTranslationView-CbBt5s1q.js} +51 -51
- package/dist/{LoginAuditLogView-3tAozKlC.js → LoginAuditLogView-CZF1Jfq_.js} +2 -2
- package/dist/{ModuleActionManagementView-CJRNShGg.js → ModuleActionManagementView-CaiXH1l_.js} +208 -208
- package/dist/{ModuleGovernanceView-DsqR_Sj7.js → ModuleGovernanceView-CcwGyO3x.js} +4331 -4475
- package/dist/{RequestErrorLogView-C4yH-TSX.js → RequestErrorLogView-DpudZrC2.js} +2 -2
- package/dist/RoleDetailWorkspaceView-DNMGsAJC.js +1435 -0
- package/dist/{RuntimeLogView-CoKKpJ39.js → RuntimeLogView-444BL_xs.js} +61 -61
- package/dist/WorkflowAdministrationView-C-VIjvwB.js +650 -0
- package/dist/WorkflowConfigurationView-DLFY2x7V.js +1110 -0
- package/dist/WorkflowWorkbenchView-Gr02dbBc.js +759 -0
- package/dist/codeConfiguration-ChJ6ktRR.js +208 -0
- package/dist/index.css +1 -1
- package/dist/index.js +624 -598
- package/dist/moduleMenuWorkspace-B8DKwC3L.js +626 -0
- package/dist/{platform-components-Cl5ZZiuU.js → platform-components-5AE0j2_3.js} +9579 -6839
- package/dist/{platform-workbench-CAHoriIf.js → platform-workbench-BhZPARiH.js} +6345 -6478
- package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +1 -1
- package/dist/types/app/DevelopmentTopbarActions.vue.d.ts +9 -0
- package/dist/types/app/useAssistantAvailability.d.ts +8 -0
- package/dist/types/app/useCurrentUserProfile.d.ts +12 -0
- package/dist/types/app/workbenchRouteSync.d.ts +2 -0
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +9 -3
- package/dist/types/consumer/index.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +8 -8
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +214 -92
- package/dist/types/dynamic-page-runtime/assistantQueryCapabilities.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/composables/useManagedDetailRelationRuntime.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +4 -4
- package/dist/types/dynamic-page-runtime/useModuleRecordDataChanges.d.ts +4 -0
- package/dist/types/main.d.ts +0 -1
- package/dist/types/platform-admin-runtime/ModuleCodeConfigurationStatus.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/moduleCodeConfiguration.d.ts +15 -0
- package/dist/types/platform-components/BusinessContentGenerationPanel.vue.d.ts +22 -0
- package/dist/types/platform-components/BusinessContentQueryNotice.vue.d.ts +17 -0
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/DictionaryOptionDialog.vue.d.ts +4 -4
- package/dist/types/platform-components/DictionaryOptionDialogChoiceList.vue.d.ts +1 -1
- package/dist/types/platform-components/DictionaryPicker.vue.d.ts +4 -4
- package/dist/types/platform-components/ObjectPickerInput.vue.d.ts +2 -2
- package/dist/types/platform-components/QueryCriteriaGroupEditor.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordContentSourceField.vue.d.ts +22 -0
- package/dist/types/platform-components/RecordContentTranslationField.vue.d.ts +26 -0
- package/dist/types/platform-components/RecordDataExchangeSurface.vue.d.ts +26 -0
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +3 -2
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +5 -2
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListCell.vue.d.ts +1 -0
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +1 -1
- package/dist/types/{dynamic-page-runtime/ModuleDataExchangeSurface.vue.d.ts → platform-components/RecordQuerySortSelector.vue.d.ts} +5 -9
- package/dist/types/platform-components/RecordRelationActionButton.vue.d.ts +16 -0
- package/dist/types/platform-components/RecordRelationValue.vue.d.ts +2 -0
- package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +7 -2
- package/dist/types/{dynamic-page-runtime → platform-components}/TenantScopeExplorer.vue.d.ts +1 -1
- package/dist/types/platform-components/WorkflowRecordPanel.vue.d.ts +2 -0
- package/dist/types/platform-components/WorkflowTimeline.vue.d.ts +4 -0
- package/dist/types/platform-components/crudRecordListModel.d.ts +1 -0
- package/dist/types/platform-components/index.d.ts +3 -0
- package/dist/types/platform-components/loadExplorerRecords.d.ts +3 -0
- package/dist/types/platform-components/managementWorkspaceLayout.d.ts +10 -0
- package/dist/types/platform-components/recordDetailFieldModel.d.ts +2 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +6 -0
- package/dist/types/platform-components/recordQueryListQueryController.d.ts +2 -0
- package/dist/types/platform-components/recordSurfaceActivity.d.ts +3 -0
- package/dist/types/platform-components/recycleBinState.d.ts +1 -0
- package/dist/types/platform-components/referencePickerModel.d.ts +6 -2
- package/dist/types/platform-components/scopedTreePickerModel.d.ts +4 -0
- package/dist/types/platform-components/useBusinessCodeForm.d.ts +36 -0
- package/dist/types/platform-workbench/Workbench.vue.d.ts +13 -4
- package/dist/types/platform-workbench/WorkbenchGlobalTools.vue.d.ts +28 -0
- package/dist/types/platform-workbench/WorkbenchLanguageSettings.vue.d.ts +11 -0
- package/dist/types/platform-workbench/WorkbenchPageTitle.vue.d.ts +10 -0
- package/dist/types/platform-workbench/menuGroupLayout.d.ts +5 -0
- package/dist/types/platform-workbench/menuTreeModel.d.ts +1 -2
- package/dist/types/platform-workbench/useAssistantConversation.d.ts +1 -1
- package/dist/types/platform-workbench/useAssistantConversationArchive.d.ts +1 -1
- package/dist/types/platform-workbench/useLanguagePreferenceSelection.d.ts +7 -0
- package/dist/types/views/CodeConfigurationView.vue.d.ts +8 -0
- package/dist/types/views/CodeRuleFormatEditor.vue.d.ts +17 -0
- package/dist/types/views/PageQuerySummaryEditor.vue.d.ts +4 -4
- package/dist/types/views/WorkflowSelectionFields.vue.d.ts +28 -0
- package/dist/types/views/codeConfiguration.d.ts +127 -0
- package/dist/types/views/codeConfigurationWorkspaceView.d.ts +5 -0
- package/dist/types/views/metadataEditorSession.d.ts +4 -0
- package/dist/types/views/metadataOrchestrationState.d.ts +3 -0
- package/dist/types/views/metadataWorkspace.d.ts +8 -0
- package/dist/types/views/moduleGovernanceWorkspaceView.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiDatePicker.vue.d.ts +33 -0
- package/dist/types/vue-ui-antdv/components/UiDropdown.vue.d.ts +1 -0
- package/dist/types/vue-ui-antdv/components/UiHelp.vue.d.ts +16 -0
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiModal.vue.d.ts +9 -6
- package/dist/types/vue-ui-antdv/components/UiPopover.vue.d.ts +12 -4
- package/dist/types/vue-ui-antdv/datePickerCalendar.d.ts +472 -0
- package/dist/types/vue-ui-antdv/datePickerValue.d.ts +6 -0
- package/dist/types/vue-ui-antdv/index.d.ts +3 -0
- package/dist/types/vue-ui-antdv/languageLocales.d.ts +2 -0
- package/dist/types/vue-ui-antdv/types.d.ts +2 -0
- package/dist/types/vue-ui-antdv/typography.d.ts +25 -0
- package/dist/types/web-contracts/index.d.ts +146 -1
- package/dist/types/web-contracts/workflow.d.ts +10 -0
- package/dist/types/web-core/assistantTurnClient.d.ts +2 -0
- package/dist/types/web-core/businessContent.d.ts +38 -0
- package/dist/types/web-core/businessContentLanguage.d.ts +18 -0
- package/dist/types/web-core/index.d.ts +5 -0
- package/dist/types/web-core/languagePreference.d.ts +2 -2
- package/dist/types/web-core/module/dataExchangeClient.d.ts +83 -1
- package/dist/types/web-core/module/staticModuleClient.d.ts +9 -3
- package/dist/types/web-core/presentationTexts.d.ts +5 -0
- package/dist/types/web-core/recordReadRefreshGuard.d.ts +7 -0
- package/dist/types/web-core/useBusinessContentGenerationBatch.d.ts +36 -0
- package/dist/types/web-core/useBusinessContentReading.d.ts +30 -0
- package/dist/types/web-core/workflow.d.ts +2 -1
- package/dist/{workspaceViews-BIYGPUAO.js → workspaceViews-DeBqozVb.js} +1062 -918
- package/package.json +4 -1
- package/dist/BusinessLogListDrawer-BciMLY9z.js +0 -864
- package/dist/RoleDetailWorkspaceView-BpOoGUwS.js +0 -1435
- package/dist/WorkflowAdministrationView-DmUV6vWS.js +0 -650
- package/dist/WorkflowConfigurationView-pghDbWEh.js +0 -975
- package/dist/WorkflowWorkbenchView-BwWxyDen.js +0 -747
- package/dist/moduleGovernanceWorkspaceView-DGEV3ZyT.js +0 -667
|
@@ -0,0 +1,208 @@
|
|
|
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";
|
|
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-CcwGyO3x.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(t, n = e) {
|
|
57
|
+
let r = a(t.title, t.titleText, n);
|
|
58
|
+
return t.ownerTitle ? `${t.ownerTitle} · ${r}` : r;
|
|
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(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) => {
|
|
125
|
+
e.sortOrder = t;
|
|
126
|
+
}), a;
|
|
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(i, a, o = e) {
|
|
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;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return s;
|
|
164
|
+
}
|
|
165
|
+
function S(n, a = e) {
|
|
166
|
+
let o = "/platform.code_rule";
|
|
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({
|
|
172
|
+
method: "POST",
|
|
173
|
+
path: o + "/binding",
|
|
174
|
+
body: {
|
|
175
|
+
moduleAlias: e.moduleAlias,
|
|
176
|
+
entityAlias: e.entityAlias,
|
|
177
|
+
fieldName: t.fieldName,
|
|
178
|
+
role: r,
|
|
179
|
+
trigger: a,
|
|
180
|
+
expectedVersion: t.bindingVersion ?? null
|
|
181
|
+
}
|
|
182
|
+
}));
|
|
183
|
+
},
|
|
184
|
+
async save(e) {
|
|
185
|
+
return i(await n.request({
|
|
186
|
+
method: "POST",
|
|
187
|
+
path: o + "/saveTree",
|
|
188
|
+
body: v(e, a)
|
|
189
|
+
}));
|
|
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({
|
|
194
|
+
method: "POST",
|
|
195
|
+
path: o + "/preview",
|
|
196
|
+
...l ? { signal: l } : {},
|
|
197
|
+
body: {
|
|
198
|
+
rule: v(e, a),
|
|
199
|
+
context: s,
|
|
200
|
+
sequenceValue: c,
|
|
201
|
+
organizationId: e.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 };
|