@ximatai/muyun-web-app 0.26.27 → 0.26.29

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 (71) hide show
  1. package/dist/{BusinessActivityLogView-Bbe-GbNG.js → BusinessActivityLogView-fzxP3P68.js} +2 -2
  2. package/dist/BusinessLogListDrawer-C7wb2R6q.js +868 -0
  3. package/dist/CodeConfigurationView-DXrXp7kg.js +2333 -0
  4. package/dist/{ConfigurationTranslationView-B3Cr9Wes.js → ConfigurationTranslationView-CNWJhB8C.js} +49 -49
  5. package/dist/{LoginAuditLogView-DOwkqtVB.js → LoginAuditLogView-D2q4WT8W.js} +2 -2
  6. package/dist/{ModuleActionManagementView-DNXAhdXk.js → ModuleActionManagementView-Xd8uB3iR.js} +191 -191
  7. package/dist/{ModuleGovernanceView-g5W2R_Zl.js → ModuleGovernanceView-BFCfy5wB.js} +3403 -3421
  8. package/dist/{RequestErrorLogView-9GIz2mkQ.js → RequestErrorLogView-C-dZhHvD.js} +2 -2
  9. package/dist/RoleDetailWorkspaceView-BmtEBE0r.js +1435 -0
  10. package/dist/{RuntimeLogView-C5i19Z-u.js → RuntimeLogView-BuFuboQh.js} +51 -51
  11. package/dist/{WorkflowAdministrationView-CnoTudpI.js → WorkflowAdministrationView-Cb6RnlGU.js} +57 -57
  12. package/dist/WorkflowConfigurationView-VLObweIg.js +2227 -0
  13. package/dist/{WorkflowWorkbenchView-DbWqspEB.js → WorkflowWorkbenchView-CbZervUv.js} +248 -248
  14. package/dist/{codeConfiguration-Bno8cWxB.js → codeConfiguration-DbUEhnW7.js} +66 -49
  15. package/dist/configurationEditorNavigation-DZeBbg3z.js +15 -0
  16. package/dist/formulaReferences-CKkkdA_R.js +23 -0
  17. package/dist/index.css +1 -1
  18. package/dist/index.js +727 -727
  19. package/dist/{moduleMenuWorkspace-DW13bHG5.js → moduleMenuWorkspace-COanAuqc.js} +237 -248
  20. package/dist/{platform-components-D3NvMY3T.js → platform-components-5joS6YaR.js} +4677 -4489
  21. package/dist/{platform-workbench-C4OFiuG5.js → platform-workbench-le7pFe4d.js} +5457 -5296
  22. package/dist/types/consumer/index.d.ts +2 -1
  23. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +32 -26
  24. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +60 -29
  25. package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +2 -0
  26. package/dist/types/dynamic-page-runtime/ModuleReferenceRecordDetailBrowser.vue.d.ts +13 -4
  27. package/dist/types/dynamic-page-runtime/index.d.ts +2 -2
  28. package/dist/types/dynamic-page-runtime/modulePageActionControls.d.ts +12 -0
  29. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +18 -5
  30. package/dist/types/dynamic-page-runtime/recordFormAssistantCapabilities.d.ts +3 -1
  31. package/dist/types/dynamic-page-runtime/recordFormDraftAccess.d.ts +2 -0
  32. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +16 -13
  33. package/dist/types/dynamic-page-runtime/useModuleRecordDataChanges.d.ts +4 -1
  34. package/dist/types/platform-components/ActionControlHost.vue.d.ts +16 -0
  35. package/dist/types/platform-components/AdaptiveHeaderActionBar.vue.d.ts +3 -0
  36. package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +2 -0
  37. package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +10 -0
  38. package/dist/types/platform-components/actionControl.d.ts +28 -0
  39. package/dist/types/platform-components/adaptiveHeaderActionLayout.d.ts +4 -2
  40. package/dist/types/platform-components/index.d.ts +3 -2
  41. package/dist/types/platform-components/optionFieldOptionCache.d.ts +11 -1
  42. package/dist/types/platform-components/recordActionBarModel.d.ts +5 -0
  43. package/dist/types/platform-components/recordFormFieldModel.d.ts +1 -0
  44. package/dist/types/platform-components/referenceRecordDetailBrowser.d.ts +13 -1
  45. package/dist/types/platform-components/useWorkflowDesignSession.d.ts +141 -0
  46. package/dist/types/platform-components/workflowDesignEditing.d.ts +8 -7
  47. package/dist/types/platform-components/workflowDesignOperations.d.ts +107 -0
  48. package/dist/types/views/CodeRuleRecoveryPanel.vue.d.ts +20 -0
  49. package/dist/types/views/businessRuleGovernance.d.ts +1 -2
  50. package/dist/types/views/codeConfiguration.d.ts +29 -1
  51. package/dist/types/views/codeConfigurationAssistantSurface.d.ts +17 -0
  52. package/dist/types/views/codeRuleSaveRecovery.d.ts +12 -0
  53. package/dist/types/views/useCodeConfigurationAssistant.d.ts +10 -0
  54. package/dist/types/views/useCodeConfigurationSession.d.ts +16 -0
  55. package/dist/types/views/useWorkflowConfigurationAssistant.d.ts +16 -0
  56. package/dist/types/views/useWorkflowConfigurationContext.d.ts +16 -2
  57. package/dist/types/views/useWorkflowConfigurationSession.d.ts +146 -0
  58. package/dist/types/views/workflowConfigurationAssistantSurface.d.ts +169 -0
  59. package/dist/types/views/workflowSaveRecovery.d.ts +11 -0
  60. package/dist/types/vue-ui-antdv/components/sidePanelHost.d.ts +3 -1
  61. package/dist/types/vue-ui-antdv/index.d.ts +1 -0
  62. package/dist/types/web-core/formulaReferences.d.ts +2 -0
  63. package/dist/types/web-core/workflow.d.ts +11 -1
  64. package/dist/useWorkflowConfigurationContext-B9GigSF8.js +78 -0
  65. package/dist/{workspaceViews-D2Uh4KAq.js → workspaceViews-8-LaaGxD.js} +680 -680
  66. package/package.json +1 -1
  67. package/dist/BusinessLogListDrawer-BmF-14We.js +0 -868
  68. package/dist/CodeConfigurationView-DdPfBjoC.js +0 -1667
  69. package/dist/RoleDetailWorkspaceView-BuqRT0pd.js +0 -1435
  70. package/dist/WorkflowConfigurationView-Cku-F1Fm.js +0 -980
  71. package/dist/useWorkflowConfigurationContext-eQKyqe6_.js +0 -66
@@ -0,0 +1,146 @@
1
+ /** Workflow editor ownership is shared by manual and assistant entry points. */
2
+ export declare function useWorkflowConfigurationSession(options: {
3
+ moduleAlias(): string;
4
+ definitionId(): string;
5
+ }): {
6
+ scope: import("vue").ComputedRef<string>;
7
+ active: import("vue").Ref<boolean, boolean>;
8
+ submissionStatus: import("vue").Ref<"unknown" | "idle" | "review" | "conflict", "unknown" | "idle" | "review" | "conflict">;
9
+ recoveryRequired: import("vue").ComputedRef<boolean>;
10
+ design: import("vue").Ref<{
11
+ nodes: {
12
+ nodeTitleText?: {
13
+ source: {
14
+ sourceKind: "CODE" | "CONFIG";
15
+ sourceId: string;
16
+ sourceVersion: string;
17
+ originalText: string;
18
+ };
19
+ languages: Record<string, {
20
+ text: string;
21
+ requestedTag: string;
22
+ resourceTag?: string | null;
23
+ missing: boolean;
24
+ fallback: boolean;
25
+ }>;
26
+ } | undefined;
27
+ id?: string | undefined;
28
+ version?: number | undefined;
29
+ nodeKey: string;
30
+ title?: string | undefined;
31
+ nodeTitle?: string | undefined;
32
+ nodeType: string;
33
+ nodeStatus?: string | undefined;
34
+ approvalMode?: string | undefined;
35
+ approvalRatio?: number | undefined;
36
+ participantPolicyText?: string | undefined;
37
+ milestoneType?: string | undefined;
38
+ routeMode?: string | undefined;
39
+ selectorNodeKey?: string | undefined;
40
+ convergeNodeKey?: string | undefined;
41
+ convergeMode?: string | undefined;
42
+ convergeRatio?: number | undefined;
43
+ requireManualSelectionReason?: boolean | undefined;
44
+ allowReject?: boolean | undefined;
45
+ autoApproveSameUser?: boolean | undefined;
46
+ requireRejectReason?: boolean | undefined;
47
+ allowRejectReturnToMe?: boolean | undefined;
48
+ allowRollback?: boolean | undefined;
49
+ requireRollbackReason?: boolean | undefined;
50
+ allowAddSign?: boolean | undefined;
51
+ warningDurationMinutes?: number | undefined;
52
+ overtimeDurationMinutes?: number | undefined;
53
+ taskDefinitionId?: string | undefined;
54
+ nodeConfigText?: string | undefined;
55
+ }[];
56
+ links: {
57
+ id?: string | undefined;
58
+ routeKey: string;
59
+ sourceNodeKey: string;
60
+ targetNodeKey: string;
61
+ title?: string | undefined;
62
+ conditionExpression?: string | undefined;
63
+ defaultRoute?: boolean | undefined;
64
+ routeStatus?: string | undefined;
65
+ routeReason?: string | undefined;
66
+ selectedReason?: string | undefined;
67
+ }[];
68
+ layoutJson?: string | undefined;
69
+ }, import("../web-contracts").WorkflowDesign | {
70
+ nodes: {
71
+ nodeTitleText?: {
72
+ source: {
73
+ sourceKind: "CODE" | "CONFIG";
74
+ sourceId: string;
75
+ sourceVersion: string;
76
+ originalText: string;
77
+ };
78
+ languages: Record<string, {
79
+ text: string;
80
+ requestedTag: string;
81
+ resourceTag?: string | null;
82
+ missing: boolean;
83
+ fallback: boolean;
84
+ }>;
85
+ } | undefined;
86
+ id?: string | undefined;
87
+ version?: number | undefined;
88
+ nodeKey: string;
89
+ title?: string | undefined;
90
+ nodeTitle?: string | undefined;
91
+ nodeType: string;
92
+ nodeStatus?: string | undefined;
93
+ approvalMode?: string | undefined;
94
+ approvalRatio?: number | undefined;
95
+ participantPolicyText?: string | undefined;
96
+ milestoneType?: string | undefined;
97
+ routeMode?: string | undefined;
98
+ selectorNodeKey?: string | undefined;
99
+ convergeNodeKey?: string | undefined;
100
+ convergeMode?: string | undefined;
101
+ convergeRatio?: number | undefined;
102
+ requireManualSelectionReason?: boolean | undefined;
103
+ allowReject?: boolean | undefined;
104
+ autoApproveSameUser?: boolean | undefined;
105
+ requireRejectReason?: boolean | undefined;
106
+ allowRejectReturnToMe?: boolean | undefined;
107
+ allowRollback?: boolean | undefined;
108
+ requireRollbackReason?: boolean | undefined;
109
+ allowAddSign?: boolean | undefined;
110
+ warningDurationMinutes?: number | undefined;
111
+ overtimeDurationMinutes?: number | undefined;
112
+ taskDefinitionId?: string | undefined;
113
+ nodeConfigText?: string | undefined;
114
+ }[];
115
+ links: {
116
+ id?: string | undefined;
117
+ routeKey: string;
118
+ sourceNodeKey: string;
119
+ targetNodeKey: string;
120
+ title?: string | undefined;
121
+ conditionExpression?: string | undefined;
122
+ defaultRoute?: boolean | undefined;
123
+ routeStatus?: string | undefined;
124
+ routeReason?: string | undefined;
125
+ selectedReason?: string | undefined;
126
+ }[];
127
+ layoutJson?: string | undefined;
128
+ }>;
129
+ history: {
130
+ checkpoint(): () => boolean;
131
+ canUndo: import("vue").ComputedRef<boolean>;
132
+ canRedo: import("vue").ComputedRef<boolean>;
133
+ dirty: import("vue").ComputedRef<boolean>;
134
+ undo: () => void;
135
+ redo: () => void;
136
+ markSaved: () => void;
137
+ reset: (value: import("../web-contracts").WorkflowDesign, persisted?: import("../web-contracts").WorkflowDesign) => void;
138
+ };
139
+ updateNode: (key: string, patch: Partial<import("../web-contracts").WorkflowNode>) => void;
140
+ updateRoute: (key: string, patch: Partial<import("../web-contracts").WorkflowRoute>) => void;
141
+ prepare: (batch: import("../platform-components/workflowDesignOperations").WorkflowDesignOperationBatch, fields: Parameters<typeof import("../platform-components/workflowDesignOperations").prepareWorkflowDesignOperations>[2], current: () => boolean) => () => {
142
+ changes: string[];
143
+ created: Record<string, Record<string, string>>;
144
+ diagnostics: import("../platform-components/workflowDesignOperations").WorkflowDraftDiagnostics;
145
+ };
146
+ };
@@ -0,0 +1,169 @@
1
+ import type { WorkflowDefinition, WorkflowDesign, WorkflowVersion } from '../web-contracts/index';
2
+ import { type LanguageContext, type AssistantCapability, type AssistantSurface, type AssistantTurnRequester } from '../web-core/index';
3
+ import { type WorkflowDesignOperationBatch, type WorkflowParticipantField, type prepareWorkflowDesignOperations } from '../platform-components/workflowDesignOperations';
4
+ export interface WorkflowConfigurationAssistantState {
5
+ ready: boolean;
6
+ busy?: boolean;
7
+ editable: boolean;
8
+ moduleAlias: string;
9
+ definition?: WorkflowDefinition;
10
+ version?: WorkflowVersion;
11
+ design: WorkflowDesign;
12
+ fields: readonly WorkflowParticipantField[];
13
+ selectedNodeKeys: string[];
14
+ selectedRouteKey: string;
15
+ dirty: boolean;
16
+ submissionStatus?: 'idle' | 'unknown' | 'conflict' | 'review';
17
+ }
18
+ export type WorkflowDraftChange = Pick<ReturnType<typeof prepareWorkflowDesignOperations>, 'changes' | 'created' | 'diagnostics'>;
19
+ export interface WorkflowConfigurationAssistantAdapter {
20
+ readonly language?: LanguageContext;
21
+ state(): WorkflowConfigurationAssistantState;
22
+ /** Existing read-only expression endpoint, never the page validate/save pipeline. */
23
+ validateCondition?(expression: string, signal: AbortSignal): Promise<void>;
24
+ /** Fully prepares against the shared draft. Returned synchronous commit rechecks its revision. */
25
+ prepare(batch: WorkflowDesignOperationBatch): () => WorkflowDraftChange;
26
+ }
27
+ export declare function createWorkflowConfigurationAssistantSurface(adapter: WorkflowConfigurationAssistantAdapter, requestTurn: AssistantTurnRequester, contributedCapabilities?: () => AssistantCapability[]): AssistantSurface;
28
+ /** Explicit projection, with one shared payload budget. No persistent node IDs, layout JSON or policy text. */
29
+ export declare function describeWorkflowDraft(state: WorkflowConfigurationAssistantState, language?: LanguageContext): {
30
+ nodes: {
31
+ total: number;
32
+ entries: {
33
+ nodeKey: string | undefined;
34
+ nodeType: string | undefined;
35
+ title: string | undefined;
36
+ approvalMode: string | undefined;
37
+ approvalRatio: number | undefined;
38
+ milestoneType: string | undefined;
39
+ routeMode: string | undefined;
40
+ selectorNodeKey: string | undefined;
41
+ convergeNodeKey: string | undefined;
42
+ convergeMode: string | undefined;
43
+ convergeRatio: number | undefined;
44
+ requireManualSelectionReason: boolean | undefined;
45
+ participants: {
46
+ configured: boolean;
47
+ omitted: boolean;
48
+ manualConfigurationRequired: boolean;
49
+ rules?: undefined;
50
+ invalid?: undefined;
51
+ } | {
52
+ configured: boolean;
53
+ rules: ({
54
+ manualConfigurationRequired: boolean;
55
+ } | {
56
+ targetCount?: number | undefined;
57
+ manualConfigurationRequired?: boolean | undefined;
58
+ relation?: string | undefined;
59
+ depth?: number | undefined;
60
+ headOnly?: boolean | undefined;
61
+ fieldName?: string | undefined;
62
+ type: string | undefined;
63
+ })[];
64
+ omitted?: undefined;
65
+ manualConfigurationRequired?: undefined;
66
+ invalid?: undefined;
67
+ } | {
68
+ configured: boolean;
69
+ invalid: boolean;
70
+ omitted?: undefined;
71
+ manualConfigurationRequired?: undefined;
72
+ rules?: undefined;
73
+ };
74
+ businessTask: {
75
+ taskDefinitionId: string | undefined;
76
+ configured: boolean;
77
+ manualConfigurationRequired: boolean;
78
+ } | {
79
+ omitted: boolean;
80
+ taskDefinitionId: string | undefined;
81
+ configured: boolean;
82
+ manualConfigurationRequired: boolean;
83
+ } | {
84
+ invalid: boolean;
85
+ taskDefinitionId: string | undefined;
86
+ configured: boolean;
87
+ manualConfigurationRequired: boolean;
88
+ } | {
89
+ definition: {
90
+ manualConfirm: boolean;
91
+ enabled: boolean;
92
+ } | undefined;
93
+ checks: {
94
+ total: number;
95
+ entries: {
96
+ advancedConfigurationPreserved: boolean;
97
+ expression?: string | undefined;
98
+ title: string | undefined;
99
+ kind: string | undefined;
100
+ enabled: boolean;
101
+ }[];
102
+ } | undefined;
103
+ guides: {
104
+ total: number;
105
+ entries: {
106
+ advancedConfigurationPreserved: boolean;
107
+ expression?: string | undefined;
108
+ title: string | undefined;
109
+ kind: string | undefined;
110
+ enabled: boolean;
111
+ }[];
112
+ } | undefined;
113
+ taskDefinitionId: string | undefined;
114
+ configured: boolean;
115
+ manualConfigurationRequired: boolean;
116
+ } | undefined;
117
+ }[];
118
+ omitted: number;
119
+ };
120
+ routes: {
121
+ total: number;
122
+ entries: {
123
+ routeKey: string | undefined;
124
+ sourceNodeKey: string | undefined;
125
+ targetNodeKey: string | undefined;
126
+ title: string | undefined;
127
+ conditionExpression: string | undefined;
128
+ defaultRoute: boolean | undefined;
129
+ }[];
130
+ omitted: number;
131
+ };
132
+ fields: {
133
+ total: number;
134
+ entries: {
135
+ name: string | undefined;
136
+ label: string | undefined;
137
+ referenceModule: string | undefined;
138
+ participantSupported: boolean;
139
+ }[];
140
+ omitted: number;
141
+ };
142
+ selectedNodeKeys: (string | undefined)[];
143
+ selectedRouteKey: string | undefined;
144
+ truncated: boolean;
145
+ limits: {
146
+ participantWrites: string[];
147
+ manualConfiguration: string[];
148
+ delivery: string;
149
+ };
150
+ submissionStatus?: "unknown" | "review" | "conflict" | undefined;
151
+ recoveryRequired?: boolean | undefined;
152
+ moduleAlias: string | undefined;
153
+ definition: {
154
+ id: string | undefined;
155
+ title: string | undefined;
156
+ alias: string | undefined;
157
+ definitionStatus: string | undefined;
158
+ approvalEnabled: boolean;
159
+ version: number;
160
+ } | undefined;
161
+ version: {
162
+ id: string | undefined;
163
+ version: number;
164
+ versionNo: number;
165
+ publishStatus: string | undefined;
166
+ } | undefined;
167
+ editable: boolean;
168
+ unsaved: boolean;
169
+ };
@@ -0,0 +1,11 @@
1
+ export interface WorkflowSaveReference {
2
+ requestId: string;
3
+ versionId: string;
4
+ expectedVersion: number;
5
+ }
6
+ /** Tab-scoped query evidence only: no draft, executable payload, or authorization. */
7
+ export declare function workflowSaveRecovery(scope: string, storage: Pick<Storage, 'getItem' | 'setItem' | 'removeItem'>): {
8
+ restore: () => WorkflowSaveReference | undefined;
9
+ save(reference: WorkflowSaveReference): void;
10
+ clear(requestId: string): void;
11
+ };
@@ -1,3 +1,5 @@
1
- import type { InjectionKey, Ref } from 'vue';
1
+ import { type InjectionKey, type Ref, type MaybeRefOrGetter } from 'vue';
2
2
  export type UiSidePanelScope = 'tab' | 'viewport';
3
3
  export declare const sidePanelHostKey: InjectionKey<Ref<HTMLElement | undefined>>;
4
+ /** Inline panels own their anchor; tab portals require an injected, mounted host. */
5
+ export declare function useUiSidePanelAvailability(renderMode: MaybeRefOrGetter<'inline' | 'portal'>, scope: MaybeRefOrGetter<UiSidePanelScope>): import("vue").ComputedRef<boolean>;
@@ -60,3 +60,4 @@ export { default as UiLanguageProvider } from './components/UiLanguageProvider.v
60
60
  export { registerUiLanguageLocales } from './languageLocales';
61
61
  export { default as UiDatePicker } from './components/UiDatePicker.vue';
62
62
  export type { UiDatePickerMode, UiDatePickerPrecision } from './datePickerValue';
63
+ export { useUiSidePanelAvailability } from './components/sidePanelHost';
@@ -0,0 +1,2 @@
1
+ /** Reads only real field tokens; references inside string literals are formula text, not dependencies. */
2
+ export declare function referencedFormulaFields(expression: string): string[];
@@ -67,7 +67,17 @@ export declare function createWorkflowDefinitionClient(http: HttpClient, moduleA
67
67
  upgrade: (id: string) => Promise<WorkflowVersion>;
68
68
  saveSelection: (id: string, payload: WorkflowDefinitionSelection) => Promise<WorkflowDefinition>;
69
69
  design: (id: string, versionId: string) => Promise<WorkflowDesign>;
70
- saveDesign: (id: string, versionId: string, expectedVersion: number, design: WorkflowDesign) => Promise<WorkflowVersion>;
70
+ saveDesign: (id: string, versionId: string, expectedVersion: number, design: WorkflowDesign, requestId?: string) => Promise<WorkflowVersion>;
71
+ saveReceipt: (id: string, versionId: string, requestId: string) => Promise<{
72
+ committed: boolean;
73
+ cancelled: boolean;
74
+ savedVersion: number | null;
75
+ }>;
76
+ abandonSave: (id: string, versionId: string, requestId: string) => Promise<{
77
+ committed: boolean;
78
+ cancelled: boolean;
79
+ savedVersion: number | null;
80
+ }>;
71
81
  validate: (id: string, versionId: string) => Promise<unknown>;
72
82
  publish: (id: string, versionId: string, definitionVersion: number, expectedVersion: number) => Promise<WorkflowVersion>;
73
83
  changeStatus: (id: string, action: "enable" | "disable" | "archive", expectedVersion: number) => Promise<WorkflowDefinition>;
@@ -0,0 +1,78 @@
1
+ import { D as e, b as t, y as n } from "./platform-workbench-le7pFe4d.js";
2
+ import { Qr as r, Sn as i, Ut as a, Vr as o, ao as s, ii as c, ti as l } from "./platform-components-5joS6YaR.js";
3
+ import { computed as u, inject as d, onMounted as f, toValue as p, watch as m } from "vue";
4
+ //#region src/views/useWorkflowConfigurationContext.ts
5
+ function h(h) {
6
+ let g = s(), _ = l({ moduleAlias: "platform.workflow.definition" }), v = o(_.http, p(h)), y = () => o(_.http, p(h)), b = {
7
+ loadFunctions: async () => (await y().formulaFunctions()).map((e) => ({
8
+ name: e.name,
9
+ title: e.title,
10
+ description: e.description,
11
+ example: e.example,
12
+ signature: `${e.name}(${e.parameters.map((e) => e.name).join(", ")})`
13
+ })),
14
+ validate: (e) => y().validateCondition(e)
15
+ }, x = n(), S = d(t, void 0), C = u(() => JSON.stringify([
16
+ p(h),
17
+ x?.value,
18
+ S?.value
19
+ ])), w = u(() => (C.value, r({
20
+ http: _.http,
21
+ language: g,
22
+ moduleAlias: p(h),
23
+ runtimeAccess: "VIEW"
24
+ }))), T = u(() => x?.value?.tenantId ? r({
25
+ http: _.http,
26
+ language: g,
27
+ moduleAlias: "iam.organization",
28
+ runtimeAccess: "REFERENCE"
29
+ }) : void 0);
30
+ e({
31
+ moduleAlias: p(h),
32
+ predicate: (e) => e.type === "configuration-translations-changed",
33
+ handler: async () => {
34
+ try {
35
+ await w.value.runtime.refreshTexts?.();
36
+ } catch (e) {
37
+ i(e, {
38
+ source: "workflow-design",
39
+ phase: "load"
40
+ });
41
+ }
42
+ }
43
+ });
44
+ let E = u(() => c(w.value.runtime)), D = u(() => !w.value.runtime.snapshot() && !w.value.runtime.error()), O = u(() => [...a(E.value?.uiDescriptor)].map(([e, t]) => ({
45
+ name: e,
46
+ label: t.label ?? e,
47
+ valueType: t.valueType,
48
+ assistantPolicy: t.assistantPolicy,
49
+ fieldControl: t.fieldControl,
50
+ referenceModule: t.reference?.targetModuleAlias
51
+ })));
52
+ return f(async () => {
53
+ try {
54
+ await w.value.runtime.ready;
55
+ } catch (e) {
56
+ i(e, {
57
+ source: "workflow-design",
58
+ phase: "load"
59
+ });
60
+ }
61
+ }), m(C, () => {
62
+ w.value.runtime.ready.catch((e) => i(e, {
63
+ source: "workflow-design",
64
+ phase: "load"
65
+ }));
66
+ }), {
67
+ context: _,
68
+ client: v,
69
+ language: g,
70
+ businessRuntime: E,
71
+ businessLoading: D,
72
+ fields: O,
73
+ organizationContext: T,
74
+ conditionTools: b
75
+ };
76
+ }
77
+ //#endregion
78
+ export { h as t };