@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.
- package/dist/{BusinessActivityLogView-6L75GZVc.js → BusinessActivityLogView-IWGZiPLo.js} +2 -2
- package/dist/{BusinessLogListDrawer-C4iFnkE7.js → BusinessLogListDrawer-UCsg6psI.js} +85 -85
- package/dist/{CodeConfigurationView-D7sqbNCg.js → CodeConfigurationView-Calkazua.js} +532 -532
- package/dist/{ConfigurationTranslationView-ta82REbn.js → ConfigurationTranslationView-fZrlRAMy.js} +24 -24
- package/dist/{LoginAuditLogView-B_RQ9JIX.js → LoginAuditLogView-B6J7t__0.js} +2 -2
- package/dist/ModuleActionManagementView-BZ89Woex.js +755 -0
- package/dist/{ModuleGovernanceView-Cl6tkZ6M.js → ModuleGovernanceView-D8ONs78K.js} +1892 -1892
- package/dist/{RequestErrorLogView-BJDO3Scn.js → RequestErrorLogView-poMgx4_6.js} +2 -2
- package/dist/RoleDetailWorkspaceView-6Bs1eKbm.js +1435 -0
- package/dist/{RuntimeLogView-jP9ceuJD.js → RuntimeLogView-Co-Z86bt.js} +41 -41
- package/dist/WorkflowAdministrationView-D7QpRHDp.js +650 -0
- package/dist/{WorkflowConfigurationView-Dh6BKQm5.js → WorkflowConfigurationView-mSyL_-We.js} +32 -32
- package/dist/{WorkflowWorkbenchView-BvPNKbuV.js → WorkflowWorkbenchView-DBMh3ycN.js} +224 -224
- package/dist/{codeConfiguration-DhCBKbkc.js → codeConfiguration-D1zrxzoW.js} +44 -44
- package/dist/index.css +1 -1
- package/dist/index.js +524 -550
- package/dist/moduleMenuWorkspace-lIVrTaOB.js +626 -0
- package/dist/{platform-components-i2ONyZ8r.js → platform-components-D0T03KGl.js} +2815 -2913
- package/dist/{platform-workbench-DhaREttd.js → platform-workbench-CobObbuz.js} +2770 -2745
- package/dist/record-read.js +2 -0
- package/dist/recordReadEntry-CxDHM44F.js +152 -0
- package/dist/types/consumer/recordRead.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +4 -0
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +8 -0
- package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +2 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +10 -8
- package/dist/types/platform-components/useBusinessCodeForm.d.ts +1 -0
- package/dist/types/platform-workbench/useAssistantConversation.d.ts +3 -0
- package/dist/types/web-contracts/operation.d.ts +2 -0
- package/dist/{useWorkflowConfigurationContext-B_NxZFyz.js → useWorkflowConfigurationContext-BkcNPU2H.js} +8 -8
- package/dist/{workspaceViews-MTwNg_aQ.js → workspaceViews-BtqO8rU0.js} +355 -355
- package/package.json +5 -1
- package/dist/ModuleActionManagementView-DtGF3NC_.js +0 -755
- package/dist/RoleDetailWorkspaceView-C0Ab3PEp.js +0 -1435
- package/dist/WorkflowAdministrationView-BmNJQYtq.js +0 -650
- package/dist/moduleMenuWorkspace-BbVmNKZn.js +0 -626
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { computed as e, onScopeDispose as t, ref as n, shallowRef as r, toValue as i, watch as a } from "vue";
|
|
2
|
+
//#region src/web-core/useRecordReadSession.ts
|
|
3
|
+
function o(o) {
|
|
4
|
+
let u = r(), d = n(!1), f = r(), p = n(1), m = n(s(o.pageSize ?? 20)), h = n(""), g = r(), _ = r(), v = n(!1), y = r(), b = !1, x, S = 0, C = 0, w, T, E = e(() => {
|
|
5
|
+
let e = i(o.view);
|
|
6
|
+
return JSON.stringify([
|
|
7
|
+
e.sourceId,
|
|
8
|
+
e.viewCode,
|
|
9
|
+
e.scopeKey
|
|
10
|
+
]);
|
|
11
|
+
});
|
|
12
|
+
function D() {
|
|
13
|
+
C++, T?.abort(), g.value = void 0, _.value = void 0, y.value = void 0, v.value = !1;
|
|
14
|
+
}
|
|
15
|
+
async function O(e) {
|
|
16
|
+
if (b) return;
|
|
17
|
+
let t = i(o.view), n = t.recordKey(e), r = u.value?.records.find((e) => t.recordKey(e) === n);
|
|
18
|
+
if (!r || !t.detail) return;
|
|
19
|
+
D();
|
|
20
|
+
let a = C;
|
|
21
|
+
g.value = r, v.value = !0;
|
|
22
|
+
let s = new AbortController();
|
|
23
|
+
T = s;
|
|
24
|
+
try {
|
|
25
|
+
let e = await t.detail.load(r, {
|
|
26
|
+
signal: s.signal,
|
|
27
|
+
contentLanguage: i(o.contentLanguage)
|
|
28
|
+
});
|
|
29
|
+
if (b || a !== C) return;
|
|
30
|
+
if (!c(e)) throw Error("Read detail requires a record projection");
|
|
31
|
+
_.value = e;
|
|
32
|
+
} catch (e) {
|
|
33
|
+
!b && a === C && (y.value = e);
|
|
34
|
+
} finally {
|
|
35
|
+
!b && a === C && (v.value = !1);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
async function k() {
|
|
39
|
+
if (b) return;
|
|
40
|
+
E.value !== x && (x = E.value, D(), p.value = 1, h.value = "");
|
|
41
|
+
let e = ++S;
|
|
42
|
+
w?.abort();
|
|
43
|
+
let t = new AbortController();
|
|
44
|
+
w = t;
|
|
45
|
+
let n = g.value;
|
|
46
|
+
D();
|
|
47
|
+
let r = C;
|
|
48
|
+
u.value = void 0, f.value = void 0, d.value = !0;
|
|
49
|
+
try {
|
|
50
|
+
if (await Promise.resolve(), b || e !== S) return;
|
|
51
|
+
let a = i(o.view);
|
|
52
|
+
if (!a.sourceId?.trim() || !a.viewCode?.trim() || !a.scopeKey?.trim() || !a.descriptor.page?.list?.fields) throw Error("Read view requires an identity, authorization scope and compiled list descriptor");
|
|
53
|
+
let s = n && a.recordKey(n), c = JSON.parse(JSON.stringify(i(o.query) ?? {}));
|
|
54
|
+
delete c.unpaged;
|
|
55
|
+
let d = await a.query({
|
|
56
|
+
...c,
|
|
57
|
+
page: {
|
|
58
|
+
pageNum: p.value,
|
|
59
|
+
pageSize: m.value
|
|
60
|
+
},
|
|
61
|
+
quickSearch: h.value || void 0
|
|
62
|
+
}, {
|
|
63
|
+
signal: t.signal,
|
|
64
|
+
contentLanguage: i(o.contentLanguage)
|
|
65
|
+
});
|
|
66
|
+
if (b || e !== S) return;
|
|
67
|
+
l(d);
|
|
68
|
+
let f = d.records.map((e) => a.recordKey(e));
|
|
69
|
+
if (f.some((e) => typeof e != "string" || !e.trim()) || new Set(f).size !== f.length) throw Error("Read projection requires unique, non-empty record keys");
|
|
70
|
+
u.value = d, p.value = d.pageNum, m.value = d.pageSize;
|
|
71
|
+
let g = s && d.records.find((e) => a.recordKey(e) === s);
|
|
72
|
+
g && r === C && O(g);
|
|
73
|
+
} catch (t) {
|
|
74
|
+
!b && e === S && (f.value = t);
|
|
75
|
+
} finally {
|
|
76
|
+
!b && e === S && (d.value = !1);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
function A(e) {
|
|
80
|
+
return h.value = e, j(1);
|
|
81
|
+
}
|
|
82
|
+
function j(e) {
|
|
83
|
+
return p.value = s(e), D(), k();
|
|
84
|
+
}
|
|
85
|
+
function M(e) {
|
|
86
|
+
return m.value = s(e), j(1);
|
|
87
|
+
}
|
|
88
|
+
return a([E, () => i(o.view)], () => {
|
|
89
|
+
k();
|
|
90
|
+
}, {
|
|
91
|
+
immediate: !0,
|
|
92
|
+
flush: "sync"
|
|
93
|
+
}), a(() => JSON.stringify(i(o.query)), () => void j(1), { flush: "sync" }), a(() => i(o.contentLanguage), () => void k(), { flush: "sync" }), t(() => {
|
|
94
|
+
b = !0, S++, w?.abort(), D();
|
|
95
|
+
}), {
|
|
96
|
+
result: u,
|
|
97
|
+
loading: d,
|
|
98
|
+
error: f,
|
|
99
|
+
pageNum: p,
|
|
100
|
+
pageSize: m,
|
|
101
|
+
quickSearch: h,
|
|
102
|
+
selected: g,
|
|
103
|
+
detail: _,
|
|
104
|
+
detailLoading: v,
|
|
105
|
+
detailError: y,
|
|
106
|
+
refresh: k,
|
|
107
|
+
search: A,
|
|
108
|
+
goPage: j,
|
|
109
|
+
resizePage: M,
|
|
110
|
+
select: O,
|
|
111
|
+
closeDetail: D
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
function s(e) {
|
|
115
|
+
if (!Number.isSafeInteger(e) || e < 1) throw RangeError("Pagination requires positive integers");
|
|
116
|
+
return e;
|
|
117
|
+
}
|
|
118
|
+
function c(e) {
|
|
119
|
+
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
120
|
+
}
|
|
121
|
+
function l(e) {
|
|
122
|
+
if (!c(e) || !Array.isArray(e.records) || !e.records.every(c) || !Number.isSafeInteger(e.pageNum) || e.pageNum < 1 || !Number.isSafeInteger(e.pageSize) || e.pageSize < 1 || !Number.isSafeInteger(e.total) || e.total < 0 || !Number.isSafeInteger(e.pages) || e.pages < 0 || typeof e.totalKnown != "boolean" || e.records.length > e.pageSize) throw Error("Read query requires a valid paged response");
|
|
123
|
+
}
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region src/web-core/recordReadEntry.ts
|
|
126
|
+
function u(e) {
|
|
127
|
+
let { page: t, moduleAlias: n } = e;
|
|
128
|
+
if (t?.target.moduleAlias && t.target.moduleAlias !== n) throw Error(`Read entry module mismatch: ${n}`);
|
|
129
|
+
let r = {};
|
|
130
|
+
if (t?.entryParamsJson !== void 0) {
|
|
131
|
+
let e = JSON.parse(t.entryParamsJson);
|
|
132
|
+
if (typeof e != "object" || !e || Array.isArray(e)) throw Error("Read entry parameters require a JSON object");
|
|
133
|
+
r = e;
|
|
134
|
+
}
|
|
135
|
+
let i = r.view;
|
|
136
|
+
if (i !== void 0 && (typeof i != "string" || !i.trim())) throw Error("Read entry requires a named view");
|
|
137
|
+
let a = t?.menuId ? i : e.directViewCode ?? i ?? e.defaultViewCode;
|
|
138
|
+
if (typeof a != "string" || !e.viewCodes.includes(a)) throw Error(`Unknown read view: ${String(a)}`);
|
|
139
|
+
if (t?.menuId && e.directViewCode && e.directViewCode !== a) throw Error("Read entry view conflicts with menu");
|
|
140
|
+
return {
|
|
141
|
+
moduleAlias: n,
|
|
142
|
+
viewCode: a,
|
|
143
|
+
menuId: t?.menuId,
|
|
144
|
+
params: r,
|
|
145
|
+
...t?.pageType === "dynamic-module" || t?.pageType === "business-route" ? {
|
|
146
|
+
defaultUiConfigId: t.target.defaultUiConfigId,
|
|
147
|
+
defaultQueryTemplateId: t.target.defaultQueryTemplateId
|
|
148
|
+
} : {}
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
//#endregion
|
|
152
|
+
export { o as n, u as t };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Record reading without UI registration, styles or browser globals; Vue remains a peer. */
|
|
2
|
+
export { useRecordReadSession } from '../web-core/useRecordReadSession';
|
|
3
|
+
export { resolveRecordReadEntry } from '../web-core/recordReadEntry';
|
|
4
|
+
export type { RecordReadEntry } from '../web-core/recordReadEntry';
|
|
5
|
+
export type { RecordReadQuery, RecordReadRequestOptions, RecordReadView } from '../web-core/recordReadView';
|
|
6
|
+
export type { PageDescriptor, QuerySchema, ResolvedModuleUiDescriptor, WebPageResponse, WebQueryRequest, } from '../web-contracts/index';
|
|
@@ -308,6 +308,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
308
308
|
bindNavigatorQueryController: (levelKey: string, controller: import("../platform-components/index").RecordQueryListQueryController | import("../platform-components/index").RecordTreeQueryController | undefined) => void;
|
|
309
309
|
bindTreeQueryController: (controller: import("../platform-components/index").RecordTreeQueryController | undefined) => void;
|
|
310
310
|
formValidationRequestKey: number;
|
|
311
|
+
mainFormPending: boolean;
|
|
311
312
|
recordSaveError: import("../web-core").AppError | undefined;
|
|
312
313
|
referencePickerConfigs: Record<string, import("../platform-components/index").RecordFormFieldPickerConfig>;
|
|
313
314
|
runtimeUiDescriptor: import("../web-contracts").ResolvedModuleUiDescriptor | undefined;
|
|
@@ -321,6 +322,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
321
322
|
formFieldPolicies: import("./modulePageEnhancements").ModulePageFormFieldPolicy[];
|
|
322
323
|
updateMainFormValidity: (validity: {
|
|
323
324
|
valid: boolean;
|
|
325
|
+
pending?: boolean;
|
|
324
326
|
}) => void;
|
|
325
327
|
updateEmbeddedChildren: (relationField: string, records: QueryListRecord[], displayRecords?: QueryListRecord[], options?: Record<string, import("../web-contracts").OptionItemDescriptor[]>) => void;
|
|
326
328
|
updateRelationDraftValidity: (valid: boolean) => void;
|
|
@@ -1101,6 +1103,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1101
1103
|
bindNavigatorQueryController: (levelKey: string, controller: import("../platform-components/index").RecordQueryListQueryController | import("../platform-components/index").RecordTreeQueryController | undefined) => void;
|
|
1102
1104
|
bindTreeQueryController: (controller: import("../platform-components/index").RecordTreeQueryController | undefined) => void;
|
|
1103
1105
|
formValidationRequestKey: number;
|
|
1106
|
+
mainFormPending: boolean;
|
|
1104
1107
|
recordSaveError: import("../web-core").AppError | undefined;
|
|
1105
1108
|
referencePickerConfigs: Record<string, import("../platform-components/index").RecordFormFieldPickerConfig>;
|
|
1106
1109
|
runtimeUiDescriptor: import("../web-contracts").ResolvedModuleUiDescriptor | undefined;
|
|
@@ -1114,6 +1117,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1114
1117
|
formFieldPolicies: import("./modulePageEnhancements").ModulePageFormFieldPolicy[];
|
|
1115
1118
|
updateMainFormValidity: (validity: {
|
|
1116
1119
|
valid: boolean;
|
|
1120
|
+
pending?: boolean;
|
|
1117
1121
|
}) => void;
|
|
1118
1122
|
updateEmbeddedChildren: (relationField: string, records: QueryListRecord[], displayRecords?: QueryListRecord[], options?: Record<string, import("../web-contracts").OptionItemDescriptor[]>) => void;
|
|
1119
1123
|
updateRelationDraftValidity: (valid: boolean) => void;
|
|
@@ -442,6 +442,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
442
442
|
bindNavigatorQueryController: import("vue").WritableComputedRef<(levelKey: string, controller: import("../platform-components/index").RecordQueryListQueryController | import("../platform-components/index").RecordTreeQueryController | undefined) => void, (levelKey: string, controller: import("../platform-components/index").RecordQueryListQueryController | import("../platform-components/index").RecordTreeQueryController | undefined) => void>;
|
|
443
443
|
bindTreeQueryController: import("vue").WritableComputedRef<(controller: import("../platform-components/index").RecordTreeQueryController | undefined) => void, (controller: import("../platform-components/index").RecordTreeQueryController | undefined) => void>;
|
|
444
444
|
formValidationRequestKey: import("vue").WritableComputedRef<number, number>;
|
|
445
|
+
mainFormPending: import("vue").WritableComputedRef<boolean, boolean>;
|
|
445
446
|
recordSaveError: import("vue").WritableComputedRef<import("../web-core/index").AppError | undefined, import("../web-core/index").AppError | undefined>;
|
|
446
447
|
referencePickerConfigs: import("vue").WritableComputedRef<Record<string, import("../platform-components/index").RecordFormFieldPickerConfig>, Record<string, import("../platform-components/index").RecordFormFieldPickerConfig>>;
|
|
447
448
|
runtimeUiDescriptor: import("vue").WritableComputedRef<import("../web-contracts/index.ts").ResolvedModuleUiDescriptor | undefined, import("../web-contracts/index.ts").ResolvedModuleUiDescriptor | undefined>;
|
|
@@ -455,8 +456,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
455
456
|
formFieldPolicies: import("vue").WritableComputedRef<import("./modulePageEnhancements.ts").ModulePageFormFieldPolicy[], import("./modulePageEnhancements.ts").ModulePageFormFieldPolicy[]>;
|
|
456
457
|
updateMainFormValidity: import("vue").WritableComputedRef<(validity: {
|
|
457
458
|
valid: boolean;
|
|
459
|
+
pending?: boolean;
|
|
458
460
|
}) => void, (validity: {
|
|
459
461
|
valid: boolean;
|
|
462
|
+
pending?: boolean;
|
|
460
463
|
}) => void>;
|
|
461
464
|
updateEmbeddedChildren: import("vue").WritableComputedRef<(relationField: string, records: QueryListRecord[], displayRecords?: QueryListRecord[], options?: Record<string, import("../web-contracts/index.ts").OptionItemDescriptor[]>) => void, (relationField: string, records: QueryListRecord[], displayRecords?: QueryListRecord[], options?: Record<string, import("../web-contracts/index.ts").OptionItemDescriptor[]>) => void>;
|
|
462
465
|
updateRelationDraftValidity: import("vue").WritableComputedRef<(valid: boolean) => void, (valid: boolean) => void>;
|
|
@@ -3577,6 +3580,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
3577
3580
|
record?: QueryListRecord;
|
|
3578
3581
|
mode: "create" | "edit" | "view";
|
|
3579
3582
|
saving?: boolean;
|
|
3583
|
+
formPending?: boolean;
|
|
3580
3584
|
saveNeedsCheck?: boolean;
|
|
3581
3585
|
checkingSave?: boolean;
|
|
3582
3586
|
activeActionKey?: string;
|
|
@@ -3605,6 +3609,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
3605
3609
|
record?: QueryListRecord;
|
|
3606
3610
|
mode: "create" | "edit" | "view";
|
|
3607
3611
|
saving?: boolean;
|
|
3612
|
+
formPending?: boolean;
|
|
3608
3613
|
saveNeedsCheck?: boolean;
|
|
3609
3614
|
checkingSave?: boolean;
|
|
3610
3615
|
activeActionKey?: string;
|
|
@@ -3632,6 +3637,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
3632
3637
|
record: QueryListRecord;
|
|
3633
3638
|
actions: import("./modulePageEnhancements.ts").ModulePageRecordActionContribution[];
|
|
3634
3639
|
saving: boolean;
|
|
3640
|
+
formPending: boolean;
|
|
3635
3641
|
saveNeedsCheck: boolean;
|
|
3636
3642
|
checkingSave: boolean;
|
|
3637
3643
|
activeActionKey: string;
|
|
@@ -3730,6 +3736,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
3730
3736
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3731
3737
|
"validity-change": (validity: {
|
|
3732
3738
|
valid: boolean;
|
|
3739
|
+
pending?: boolean;
|
|
3733
3740
|
}) => any;
|
|
3734
3741
|
"update:field": (fieldName: string, value: import("../platform-components/index").RecordFormFieldValue) => any;
|
|
3735
3742
|
"reference-display-change": (fieldName: string, candidates: readonly import("../platform-components/index").ReferencePickerCandidate[]) => any;
|
|
@@ -3766,6 +3773,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
3766
3773
|
}> & Readonly<{
|
|
3767
3774
|
"onValidity-change"?: ((validity: {
|
|
3768
3775
|
valid: boolean;
|
|
3776
|
+
pending?: boolean;
|
|
3769
3777
|
}) => any) | undefined;
|
|
3770
3778
|
"onUpdate:field"?: ((fieldName: string, value: import("../platform-components/index").RecordFormFieldValue) => any) | undefined;
|
|
3771
3779
|
"onReference-display-change"?: ((fieldName: string, candidates: readonly import("../platform-components/index").ReferencePickerCandidate[]) => any) | undefined;
|
|
@@ -33,6 +33,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
33
33
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
34
|
"validity-change": (validity: {
|
|
35
35
|
valid: boolean;
|
|
36
|
+
pending?: boolean;
|
|
36
37
|
}) => any;
|
|
37
38
|
"update:field": (fieldName: string, value: RecordFormFieldValue) => any;
|
|
38
39
|
"reference-display-change": (fieldName: string, candidates: readonly import("../platform-components/index").ReferencePickerCandidate[]) => any;
|
|
@@ -47,6 +48,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
47
48
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
48
49
|
"onValidity-change"?: ((validity: {
|
|
49
50
|
valid: boolean;
|
|
51
|
+
pending?: boolean;
|
|
50
52
|
}) => any) | undefined;
|
|
51
53
|
"onUpdate:field"?: ((fieldName: string, value: RecordFormFieldValue) => any) | undefined;
|
|
52
54
|
"onReference-display-change"?: ((fieldName: string, candidates: readonly import("../platform-components/index").ReferencePickerCandidate[]) => any) | undefined;
|
|
@@ -6,6 +6,7 @@ type __VLS_Props = {
|
|
|
6
6
|
record?: QueryListRecord;
|
|
7
7
|
mode: 'create' | 'edit' | 'view';
|
|
8
8
|
saving?: boolean;
|
|
9
|
+
formPending?: boolean;
|
|
9
10
|
saveNeedsCheck?: boolean;
|
|
10
11
|
checkingSave?: boolean;
|
|
11
12
|
/** The action currently owning the shared detail-operation session. */
|
|
@@ -49,6 +50,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
49
50
|
record: QueryListRecord;
|
|
50
51
|
actions: ModulePageRecordActionContribution[];
|
|
51
52
|
saving: boolean;
|
|
53
|
+
formPending: boolean;
|
|
52
54
|
saveNeedsCheck: boolean;
|
|
53
55
|
checkingSave: boolean;
|
|
54
56
|
activeActionKey: string;
|
|
@@ -20,12 +20,14 @@ type __VLS_Props = {
|
|
|
20
20
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
21
|
"validity-change": (validity: {
|
|
22
22
|
valid: boolean;
|
|
23
|
+
pending?: boolean;
|
|
23
24
|
}) => any;
|
|
24
25
|
"update:field": (fieldName: string, value: RecordFormFieldValue) => any;
|
|
25
26
|
"reference-display-change": (fieldName: string, candidates: readonly import("../platform-components/index").ReferencePickerCandidate[]) => any;
|
|
26
27
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
28
|
"onValidity-change"?: ((validity: {
|
|
28
29
|
valid: boolean;
|
|
30
|
+
pending?: boolean;
|
|
29
31
|
}) => any) | undefined;
|
|
30
32
|
"onUpdate:field"?: ((fieldName: string, value: RecordFormFieldValue) => any) | undefined;
|
|
31
33
|
"onReference-display-change"?: ((fieldName: string, candidates: readonly import("../platform-components/index").ReferencePickerCandidate[]) => any) | undefined;
|
|
@@ -304,6 +304,7 @@ export declare function useModulePageSession(props: ModulePageSessionProps, emit
|
|
|
304
304
|
bindNavigatorQueryController: (levelKey: string, controller: RecordQueryListQueryController | RecordTreeQueryController | undefined) => void;
|
|
305
305
|
bindTreeQueryController: (controller: RecordTreeQueryController | undefined) => void;
|
|
306
306
|
formValidationRequestKey: import("vue").Ref<number, number>;
|
|
307
|
+
mainFormPending: import("vue").Ref<boolean, boolean>;
|
|
307
308
|
recordSaveError: import("vue").ShallowRef<AppError | undefined, AppError | undefined>;
|
|
308
309
|
referencePickerConfigs: import("vue").ComputedRef<Record<string, RecordFormFieldPickerConfig>>;
|
|
309
310
|
runtimeUiDescriptor: import("vue").ComputedRef<ResolvedModuleUiDescriptor | undefined>;
|
|
@@ -317,6 +318,7 @@ export declare function useModulePageSession(props: ModulePageSessionProps, emit
|
|
|
317
318
|
formFieldPolicies: import("vue").ComputedRef<ModulePageFormFieldPolicy[]>;
|
|
318
319
|
updateMainFormValidity: (validity: {
|
|
319
320
|
valid: boolean;
|
|
321
|
+
pending?: boolean;
|
|
320
322
|
}) => void;
|
|
321
323
|
updateEmbeddedChildren: (relationField: string, records: QueryListRecord[], displayRecords?: QueryListRecord[], options?: Record<string, OptionItemDescriptor[]>) => void;
|
|
322
324
|
updateRelationDraftValidity: (valid: boolean) => void;
|
|
@@ -3,6 +3,8 @@ import { type RecordFormFieldDescriptor, type RecordFormFieldFallback, type Reco
|
|
|
3
3
|
export interface RecordFormValidity {
|
|
4
4
|
valid: boolean;
|
|
5
5
|
errors: Record<string, string>;
|
|
6
|
+
/** An asynchronous form dependency is still being refreshed. */
|
|
7
|
+
pending?: boolean;
|
|
6
8
|
}
|
|
7
9
|
type __VLS_Props = {
|
|
8
10
|
record: RecordFormRecord;
|
|
@@ -35,23 +37,23 @@ type __VLS_Props = {
|
|
|
35
37
|
imageUploadHintOf?: (fieldName: string, field: RecordFormFieldState) => string | undefined;
|
|
36
38
|
imageUploadAdvisoryOf?: (fieldName: string, field: RecordFormFieldState) => ((file: File) => string | undefined | Promise<string | undefined>) | undefined;
|
|
37
39
|
};
|
|
38
|
-
declare var
|
|
40
|
+
declare var __VLS_9: {
|
|
39
41
|
field: RecordFormFieldState;
|
|
40
|
-
},
|
|
42
|
+
}, __VLS_18: {
|
|
41
43
|
group: import("../web-contracts/index").FormGroupDescriptor | undefined;
|
|
42
|
-
},
|
|
44
|
+
}, __VLS_20: {
|
|
43
45
|
field: RecordFormFieldState;
|
|
44
|
-
},
|
|
46
|
+
}, __VLS_225: {
|
|
45
47
|
field: RecordFormFieldState;
|
|
46
48
|
};
|
|
47
49
|
type __VLS_Slots = {} & {
|
|
48
|
-
'before-field'?: (props: typeof
|
|
50
|
+
'before-field'?: (props: typeof __VLS_9) => any;
|
|
49
51
|
} & {
|
|
50
|
-
'group-actions'?: (props: typeof
|
|
52
|
+
'group-actions'?: (props: typeof __VLS_18) => any;
|
|
51
53
|
} & {
|
|
52
|
-
'field-actions'?: (props: typeof
|
|
54
|
+
'field-actions'?: (props: typeof __VLS_20) => any;
|
|
53
55
|
} & {
|
|
54
|
-
'after-field'?: (props: typeof
|
|
56
|
+
'after-field'?: (props: typeof __VLS_225) => any;
|
|
55
57
|
};
|
|
56
58
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
57
59
|
"validity-change": (validity: RecordFormValidity) => any;
|
|
@@ -15,6 +15,7 @@ export declare function useBusinessCodeForm(options: {
|
|
|
15
15
|
}): {
|
|
16
16
|
field: (base: RecordFormFieldState) => RecordFormFieldState;
|
|
17
17
|
errorOf: (name: string) => string | undefined;
|
|
18
|
+
errors: import("vue").ComputedRef<Record<string, string>>;
|
|
18
19
|
policies: import("vue").Ref<Map<string, {
|
|
19
20
|
fieldName: string;
|
|
20
21
|
mode?: "AUTO" | "MANUAL" | "AUTO_WITH_MANUAL_EDIT" | null | undefined;
|
|
@@ -146,6 +146,7 @@ export declare function useAssistantConversation(props: {
|
|
|
146
146
|
readonly modelSummary: string;
|
|
147
147
|
readonly receiptReference?: {
|
|
148
148
|
kind: "record-save";
|
|
149
|
+
recordId?: string | undefined;
|
|
149
150
|
moduleAlias: string;
|
|
150
151
|
requestId: string;
|
|
151
152
|
tenantId?: string | undefined;
|
|
@@ -264,6 +265,7 @@ export declare function useAssistantConversation(props: {
|
|
|
264
265
|
readonly modelSummary: string;
|
|
265
266
|
readonly receiptReference?: {
|
|
266
267
|
kind: "record-save";
|
|
268
|
+
recordId?: string | undefined;
|
|
267
269
|
moduleAlias: string;
|
|
268
270
|
requestId: string;
|
|
269
271
|
tenantId?: string | undefined;
|
|
@@ -387,6 +389,7 @@ export declare function useAssistantConversation(props: {
|
|
|
387
389
|
readonly modelSummary: string;
|
|
388
390
|
readonly receiptReference?: {
|
|
389
391
|
kind: "record-save";
|
|
392
|
+
recordId?: string | undefined;
|
|
390
393
|
moduleAlias: string;
|
|
391
394
|
requestId: string;
|
|
392
395
|
tenantId?: string | undefined;
|
|
@@ -11,6 +11,8 @@ export interface OperationPresentation {
|
|
|
11
11
|
/** A bounded read-only pointer, never an executable command or authority. */
|
|
12
12
|
export type OperationReceiptReference = {
|
|
13
13
|
kind: 'record-save';
|
|
14
|
+
/** Independent record context for a receipt lookup; never an authorization grant. */
|
|
15
|
+
recordId?: string;
|
|
14
16
|
moduleAlias: string;
|
|
15
17
|
requestId: string;
|
|
16
18
|
tenantId?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as e, y as t } from "./platform-workbench-
|
|
2
|
-
import {
|
|
1
|
+
import { E as e, y as t } from "./platform-workbench-CobObbuz.js";
|
|
2
|
+
import { Kr as n, Nr as r, Ur as i, Ya as a, Yr as o, _n as s, zt as c } from "./platform-components-D0T03KGl.js";
|
|
3
3
|
import { computed as l, onMounted as u } from "vue";
|
|
4
4
|
//#region src/views/useWorkflowConfigurationContext.ts
|
|
5
5
|
function d(d) {
|
|
6
|
-
let f =
|
|
6
|
+
let f = a(), p = n({ moduleAlias: "platform.workflow.definition" }), m = r(p.http, d), h = {
|
|
7
7
|
loadFunctions: async () => (await m.formulaFunctions()).map((e) => ({
|
|
8
8
|
name: e.name,
|
|
9
9
|
title: e.title,
|
|
@@ -12,12 +12,12 @@ function d(d) {
|
|
|
12
12
|
signature: `${e.name}(${e.parameters.map((e) => e.name).join(", ")})`
|
|
13
13
|
})),
|
|
14
14
|
validate: (e) => m.validateCondition(e)
|
|
15
|
-
}, g =
|
|
15
|
+
}, g = i({
|
|
16
16
|
http: p.http,
|
|
17
17
|
language: f,
|
|
18
18
|
moduleAlias: d,
|
|
19
19
|
runtimeAccess: "VIEW"
|
|
20
|
-
}), _ = t(), v = l(() => _?.value?.tenantId ?
|
|
20
|
+
}), _ = t(), v = l(() => _?.value?.tenantId ? i({
|
|
21
21
|
http: p.http,
|
|
22
22
|
language: f,
|
|
23
23
|
moduleAlias: "iam.organization",
|
|
@@ -30,14 +30,14 @@ function d(d) {
|
|
|
30
30
|
try {
|
|
31
31
|
await g.runtime.refreshTexts?.();
|
|
32
32
|
} catch (e) {
|
|
33
|
-
|
|
33
|
+
s(e, {
|
|
34
34
|
source: "workflow-design",
|
|
35
35
|
phase: "load"
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
|
-
let y = l(() =>
|
|
40
|
+
let y = l(() => o(g.runtime)), b = l(() => [...c(y.value?.uiDescriptor)].map(([e, t]) => ({
|
|
41
41
|
name: e,
|
|
42
42
|
label: t.label ?? e,
|
|
43
43
|
valueType: t.valueType,
|
|
@@ -47,7 +47,7 @@ function d(d) {
|
|
|
47
47
|
try {
|
|
48
48
|
await g.runtime.ready;
|
|
49
49
|
} catch (e) {
|
|
50
|
-
|
|
50
|
+
s(e, {
|
|
51
51
|
source: "workflow-design",
|
|
52
52
|
phase: "load"
|
|
53
53
|
});
|