@ximatai/muyun-web-app 0.26.26 → 0.26.28
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-BPnAoGim.js → BusinessActivityLogView-DlNB97pu.js} +2 -2
- package/dist/{BusinessLogListDrawer-CXabZOOM.js → BusinessLogListDrawer-ByiwQP1m.js} +163 -163
- package/dist/CodeConfigurationView-91B9dHjD.js +2333 -0
- package/dist/{ConfigurationTranslationView-BsWyLeRd.js → ConfigurationTranslationView-ClovkYJt.js} +22 -22
- package/dist/{LoginAuditLogView-D3TJdzWM.js → LoginAuditLogView-Blg9giRX.js} +2 -2
- package/dist/{ModuleActionManagementView-C9LiwMM3.js → ModuleActionManagementView-Chr_XTJ3.js} +193 -193
- package/dist/{ModuleGovernanceView-CYZzHLHa.js → ModuleGovernanceView-BNlRHqSj.js} +4054 -4072
- package/dist/{RequestErrorLogView-D85h_q4P.js → RequestErrorLogView-CGczIKQy.js} +2 -2
- package/dist/{RoleDetailWorkspaceView-VHvh-_Sj.js → RoleDetailWorkspaceView-CPH9cga9.js} +75 -75
- package/dist/{RuntimeLogView-D-MrVfT7.js → RuntimeLogView-DF-1k-9y.js} +60 -60
- package/dist/WorkflowAdministrationView-CCXry0G4.js +650 -0
- package/dist/WorkflowConfigurationView-BqSfYua2.js +2227 -0
- package/dist/{WorkflowWorkbenchView-BN3ckTHB.js → WorkflowWorkbenchView-DUFfO3Gf.js} +248 -248
- package/dist/{codeConfiguration-B5OjCYZ6.js → codeConfiguration-BRxveKen.js} +71 -54
- package/dist/configurationEditorNavigation-DeXvfJyr.js +15 -0
- package/dist/formulaReferences-CKkkdA_R.js +23 -0
- package/dist/index.css +1 -1
- package/dist/index.js +1239 -1131
- package/dist/{moduleMenuWorkspace-DhI4_LpA.js → moduleMenuWorkspace-D_A94ZgR.js} +218 -229
- package/dist/{platform-components-Ca8SikTY.js → platform-components-DSMqalgQ.js} +4660 -4538
- package/dist/{platform-workbench-DpXhb4F6.js → platform-workbench-B53hydzq.js} +6055 -5909
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +37 -3
- package/dist/types/dynamic-page-runtime/ModulePageHostSession.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModuleReferenceRecordDetailBrowser.vue.d.ts +16 -4
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/recordFormAssistantCapabilities.d.ts +4 -2
- package/dist/types/dynamic-page-runtime/recordFormDraftAccess.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +1 -0
- package/dist/types/platform-admin-runtime/realtime.d.ts +3 -1
- package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +2 -0
- package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +11 -1
- package/dist/types/platform-components/index.d.ts +2 -2
- package/dist/types/platform-components/optionFieldOptionCache.d.ts +11 -1
- package/dist/types/platform-components/recordFormFieldModel.d.ts +1 -0
- package/dist/types/platform-components/referenceRecordDetailBrowser.d.ts +17 -2
- package/dist/types/platform-components/useWorkflowDesignSession.d.ts +141 -0
- package/dist/types/platform-components/workflowDesignEditing.d.ts +8 -7
- package/dist/types/platform-components/workflowDesignOperations.d.ts +107 -0
- package/dist/types/views/CodeRuleRecoveryPanel.vue.d.ts +20 -0
- package/dist/types/views/businessRuleGovernance.d.ts +1 -2
- package/dist/types/views/codeConfiguration.d.ts +29 -1
- package/dist/types/views/codeConfigurationAssistantSurface.d.ts +17 -0
- package/dist/types/views/codeRuleSaveRecovery.d.ts +12 -0
- package/dist/types/views/useCodeConfigurationAssistant.d.ts +10 -0
- package/dist/types/views/useCodeConfigurationSession.d.ts +16 -0
- package/dist/types/views/useWorkflowConfigurationAssistant.d.ts +16 -0
- package/dist/types/views/useWorkflowConfigurationContext.d.ts +16 -2
- package/dist/types/views/useWorkflowConfigurationSession.d.ts +146 -0
- package/dist/types/views/workflowConfigurationAssistantSurface.d.ts +169 -0
- package/dist/types/views/workflowSaveRecovery.d.ts +11 -0
- package/dist/types/vue-ui-antdv/components/sidePanelHost.d.ts +3 -1
- package/dist/types/vue-ui-antdv/index.d.ts +1 -0
- package/dist/types/web-contracts/operation.d.ts +7 -0
- package/dist/types/web-core/assistantConfirmation.d.ts +4 -4
- package/dist/types/web-core/assistantSurface.d.ts +2 -2
- package/dist/types/web-core/businessNotificationSession.d.ts +27 -0
- package/dist/types/web-core/formulaReferences.d.ts +2 -0
- package/dist/types/web-core/index.d.ts +1 -0
- package/dist/types/web-core/operationConfirmation.d.ts +13 -8
- package/dist/types/web-core/workflow.d.ts +11 -1
- package/dist/useWorkflowConfigurationContext-BuBDdUcQ.js +78 -0
- package/dist/{workspaceViews-CLOyLZMZ.js → workspaceViews-BSVtjZj1.js} +689 -689
- package/package.json +1 -1
- package/dist/CodeConfigurationView-B1Lgdnkj.js +0 -1667
- package/dist/WorkflowAdministrationView-DHPlIJXF.js +0 -650
- package/dist/WorkflowConfigurationView-BhQl7NjM.js +0 -980
- package/dist/useWorkflowConfigurationContext-DpzBpKa3.js +0 -66
|
@@ -299,6 +299,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
299
299
|
interactionRevision: () => number;
|
|
300
300
|
userChanged: () => void;
|
|
301
301
|
};
|
|
302
|
+
optionState: (fieldName: string) => Readonly<import("../platform-components/index").OptionFieldCandidateState>;
|
|
302
303
|
assistantContextRevision: number;
|
|
303
304
|
assistantInteractionRevision: number;
|
|
304
305
|
listQueryController: import("../platform-components/index").RecordQueryListQueryController | undefined;
|
|
@@ -1096,6 +1097,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1096
1097
|
interactionRevision: () => number;
|
|
1097
1098
|
userChanged: () => void;
|
|
1098
1099
|
};
|
|
1100
|
+
optionState: (fieldName: string) => Readonly<import("../platform-components/index").OptionFieldCandidateState>;
|
|
1099
1101
|
assistantContextRevision: number;
|
|
1100
1102
|
assistantInteractionRevision: number;
|
|
1101
1103
|
listQueryController: import("../platform-components/index").RecordQueryListQueryController | undefined;
|
|
@@ -12,8 +12,10 @@ type __VLS_Props = {
|
|
|
12
12
|
reloadKey?: number;
|
|
13
13
|
};
|
|
14
14
|
declare function refreshList(): void;
|
|
15
|
+
declare function confirmLeave(): boolean | Promise<boolean>;
|
|
15
16
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
16
17
|
refreshList: typeof refreshList;
|
|
18
|
+
confirmLeave: typeof confirmLeave;
|
|
17
19
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
20
|
"interaction-state-change": (state: {
|
|
19
21
|
editing: boolean;
|
|
@@ -433,6 +433,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
433
433
|
interactionRevision: () => number;
|
|
434
434
|
userChanged: () => void;
|
|
435
435
|
}>;
|
|
436
|
+
optionState: import("vue").WritableComputedRef<(fieldName: string) => Readonly<import("../platform-components/index").OptionFieldCandidateState>, (fieldName: string) => Readonly<import("../platform-components/index").OptionFieldCandidateState>>;
|
|
436
437
|
assistantContextRevision: import("vue").WritableComputedRef<number, number>;
|
|
437
438
|
assistantInteractionRevision: import("vue").WritableComputedRef<number, number>;
|
|
438
439
|
listQueryController: import("vue").WritableComputedRef<import("../platform-components/index").RecordQueryListQueryController | undefined, import("../platform-components/index").RecordQueryListQueryController | undefined>;
|
|
@@ -1348,6 +1349,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1348
1349
|
valid: boolean;
|
|
1349
1350
|
}) => void>;
|
|
1350
1351
|
pageLayout: import("vue").WritableComputedRef<import("../web-contracts/index.ts").PageLayoutMode | undefined, import("../web-contracts/index.ts").PageLayoutMode | undefined>;
|
|
1352
|
+
enhancementDrawerNested: import("vue").ComputedRef<boolean>;
|
|
1351
1353
|
businessVisible: import("vue").ComputedRef<boolean>;
|
|
1352
1354
|
dataExchange: import("vue").Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1353
1355
|
context: import("../web-core/index").ModuleContext<unknown>;
|
|
@@ -3791,13 +3793,25 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
3791
3793
|
scope?: "tab" | "viewport";
|
|
3792
3794
|
}> & Readonly<{
|
|
3793
3795
|
"onRecord-change"?: ((mutation: import("../platform-components/index").ReferenceRecordDetailMutation) => any) | undefined;
|
|
3796
|
+
"onOpen-failed"?: ((result: {
|
|
3797
|
+
status: "rejected";
|
|
3798
|
+
reason: "missing-host" | "invalid-target" | "access-denied" | "busy" | "leave-blocked" | "superseded" | "not-found" | "load-failed";
|
|
3799
|
+
}) => any) | undefined;
|
|
3794
3800
|
"onInteraction-state-change"?: ((state: {
|
|
3795
3801
|
editing: boolean;
|
|
3796
3802
|
busy: boolean;
|
|
3797
3803
|
dirty?: boolean;
|
|
3798
3804
|
}) => any) | undefined;
|
|
3799
|
-
}>, {
|
|
3805
|
+
}>, {
|
|
3806
|
+
browser: import("../platform-components/index").ReferenceRecordDetailBrowserState;
|
|
3807
|
+
openRecord: (targetModuleAlias: string, recordId: string) => Promise<import("../platform-components/index").ReferenceRecordOpenResult>;
|
|
3808
|
+
closeRecord: () => void | Promise<void>;
|
|
3809
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3800
3810
|
"record-change": (mutation: import("../platform-components/index").ReferenceRecordDetailMutation) => any;
|
|
3811
|
+
"open-failed": (result: {
|
|
3812
|
+
status: "rejected";
|
|
3813
|
+
reason: "missing-host" | "invalid-target" | "access-denied" | "busy" | "leave-blocked" | "superseded" | "not-found" | "load-failed";
|
|
3814
|
+
}) => any;
|
|
3801
3815
|
"interaction-state-change": (state: {
|
|
3802
3816
|
editing: boolean;
|
|
3803
3817
|
busy: boolean;
|
|
@@ -3824,12 +3838,20 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
3824
3838
|
scope?: "tab" | "viewport";
|
|
3825
3839
|
}> & Readonly<{
|
|
3826
3840
|
"onRecord-change"?: ((mutation: import("../platform-components/index").ReferenceRecordDetailMutation) => any) | undefined;
|
|
3841
|
+
"onOpen-failed"?: ((result: {
|
|
3842
|
+
status: "rejected";
|
|
3843
|
+
reason: "missing-host" | "invalid-target" | "access-denied" | "busy" | "leave-blocked" | "superseded" | "not-found" | "load-failed";
|
|
3844
|
+
}) => any) | undefined;
|
|
3827
3845
|
"onInteraction-state-change"?: ((state: {
|
|
3828
3846
|
editing: boolean;
|
|
3829
3847
|
busy: boolean;
|
|
3830
3848
|
dirty?: boolean;
|
|
3831
3849
|
}) => any) | undefined;
|
|
3832
|
-
}>, {
|
|
3850
|
+
}>, {
|
|
3851
|
+
browser: import("../platform-components/index").ReferenceRecordDetailBrowserState;
|
|
3852
|
+
openRecord: (targetModuleAlias: string, recordId: string) => Promise<import("../platform-components/index").ReferenceRecordOpenResult>;
|
|
3853
|
+
closeRecord: () => void | Promise<void>;
|
|
3854
|
+
}, {}, {}, {}, {
|
|
3833
3855
|
scope: "tab" | "viewport";
|
|
3834
3856
|
http: import("../web-core/index").HttpClient;
|
|
3835
3857
|
renderMode: "inline" | "portal";
|
|
@@ -3847,13 +3869,25 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
3847
3869
|
scope?: "tab" | "viewport";
|
|
3848
3870
|
}> & Readonly<{
|
|
3849
3871
|
"onRecord-change"?: ((mutation: import("../platform-components/index").ReferenceRecordDetailMutation) => any) | undefined;
|
|
3872
|
+
"onOpen-failed"?: ((result: {
|
|
3873
|
+
status: "rejected";
|
|
3874
|
+
reason: "missing-host" | "invalid-target" | "access-denied" | "busy" | "leave-blocked" | "superseded" | "not-found" | "load-failed";
|
|
3875
|
+
}) => any) | undefined;
|
|
3850
3876
|
"onInteraction-state-change"?: ((state: {
|
|
3851
3877
|
editing: boolean;
|
|
3852
3878
|
busy: boolean;
|
|
3853
3879
|
dirty?: boolean;
|
|
3854
3880
|
}) => any) | undefined;
|
|
3855
|
-
}>, {
|
|
3881
|
+
}>, {
|
|
3882
|
+
browser: import("../platform-components/index").ReferenceRecordDetailBrowserState;
|
|
3883
|
+
openRecord: (targetModuleAlias: string, recordId: string) => Promise<import("../platform-components/index").ReferenceRecordOpenResult>;
|
|
3884
|
+
closeRecord: () => void | Promise<void>;
|
|
3885
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3856
3886
|
"record-change": (mutation: import("../platform-components/index").ReferenceRecordDetailMutation) => any;
|
|
3887
|
+
"open-failed": (result: {
|
|
3888
|
+
status: "rejected";
|
|
3889
|
+
reason: "missing-host" | "invalid-target" | "access-denied" | "busy" | "leave-blocked" | "superseded" | "not-found" | "load-failed";
|
|
3890
|
+
}) => any;
|
|
3857
3891
|
"interaction-state-change": (state: {
|
|
3858
3892
|
editing: boolean;
|
|
3859
3893
|
busy: boolean;
|
|
@@ -13,8 +13,10 @@ type __VLS_Props = {
|
|
|
13
13
|
};
|
|
14
14
|
declare function startBusinessSession(): void;
|
|
15
15
|
declare function refreshList(): void;
|
|
16
|
+
declare function confirmLeave(): boolean | Promise<boolean>;
|
|
16
17
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
17
18
|
refreshList: typeof refreshList;
|
|
19
|
+
confirmLeave: typeof confirmLeave;
|
|
18
20
|
retry: typeof startBusinessSession;
|
|
19
21
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
22
|
"interaction-state-change": (state: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HttpClient } from '../web-core/index';
|
|
2
|
-
import { type ReferenceRecordDetailBrowserState, type ReferenceRecordDetailMutation } from '../platform-components/index';
|
|
2
|
+
import { type ReferenceRecordDetailBrowserState, type ReferenceRecordDetailMutation, type ReferenceRecordOpenResult } from '../platform-components/index';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
http?: HttpClient;
|
|
5
5
|
browser?: ReferenceRecordDetailBrowserState;
|
|
@@ -7,12 +7,20 @@ type __VLS_Props = {
|
|
|
7
7
|
renderMode?: 'inline' | 'portal';
|
|
8
8
|
scope?: 'tab' | 'viewport';
|
|
9
9
|
};
|
|
10
|
-
declare var
|
|
10
|
+
declare var __VLS_11: {};
|
|
11
11
|
type __VLS_Slots = {} & {
|
|
12
|
-
default?: (props: typeof
|
|
12
|
+
default?: (props: typeof __VLS_11) => any;
|
|
13
13
|
};
|
|
14
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
15
|
+
browser: ReferenceRecordDetailBrowserState;
|
|
16
|
+
openRecord: (targetModuleAlias: string, recordId: string) => Promise<ReferenceRecordOpenResult>;
|
|
17
|
+
closeRecord: () => void | Promise<void>;
|
|
18
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
19
|
"record-change": (mutation: ReferenceRecordDetailMutation) => any;
|
|
20
|
+
"open-failed": (result: {
|
|
21
|
+
status: "rejected";
|
|
22
|
+
reason: "missing-host" | "invalid-target" | "access-denied" | "busy" | "leave-blocked" | "superseded" | "not-found" | "load-failed";
|
|
23
|
+
}) => any;
|
|
16
24
|
"interaction-state-change": (state: {
|
|
17
25
|
editing: boolean;
|
|
18
26
|
busy: boolean;
|
|
@@ -20,6 +28,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
20
28
|
}) => any;
|
|
21
29
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
30
|
"onRecord-change"?: ((mutation: ReferenceRecordDetailMutation) => any) | undefined;
|
|
31
|
+
"onOpen-failed"?: ((result: {
|
|
32
|
+
status: "rejected";
|
|
33
|
+
reason: "missing-host" | "invalid-target" | "access-denied" | "busy" | "leave-blocked" | "superseded" | "not-found" | "load-failed";
|
|
34
|
+
}) => any) | undefined;
|
|
23
35
|
"onInteraction-state-change"?: ((state: {
|
|
24
36
|
editing: boolean;
|
|
25
37
|
busy: boolean;
|
|
@@ -177,6 +177,8 @@ export interface ModulePageListRowExpansionContext {
|
|
|
177
177
|
}
|
|
178
178
|
/** Actions appended to the standard record-detail operation area in view mode. */
|
|
179
179
|
export interface ModuleDetailEnhancement {
|
|
180
|
+
/** Semantic width override for the standard detail drawer. */
|
|
181
|
+
width?: DrawerWidth;
|
|
180
182
|
actions?: ModulePageRecordActionContribution[];
|
|
181
183
|
sections?: ModulePageDetailSection[];
|
|
182
184
|
}
|
|
@@ -12,7 +12,7 @@ export declare function createRecordFormAssistantCapabilities(view: RecordFormDr
|
|
|
12
12
|
effect: "read" | "page" | "draft" | "configuration-draft";
|
|
13
13
|
changesReadState?: boolean;
|
|
14
14
|
present?(output: unknown): import("../web-contracts").AssistantResultPresentation;
|
|
15
|
-
propose?(output: unknown): import("../web-core/index").AssistantOperationProposal
|
|
15
|
+
propose?(output: unknown): import("../web-core/index").AssistantOperationProposal<import("../web-contracts").OperationResult>;
|
|
16
16
|
parseInput(input: unknown): unknown;
|
|
17
17
|
execute(input: unknown, context: import("../web-core/index").AssistantCapabilityExecutionContext): Promise<unknown>;
|
|
18
18
|
}[];
|
|
@@ -25,10 +25,12 @@ export declare function recordFormAssistantFacts(view: RecordFormDraftAccess, re
|
|
|
25
25
|
editable: boolean;
|
|
26
26
|
currentValuesTruncated: boolean;
|
|
27
27
|
fields: {
|
|
28
|
+
optionsTruncated?: boolean | undefined;
|
|
28
29
|
options: {
|
|
29
30
|
value: import("../web-contracts").OptionValue;
|
|
30
31
|
label: string;
|
|
31
32
|
}[];
|
|
33
|
+
optionLoadStatus?: "error" | "idle" | "ready" | "loading" | undefined;
|
|
32
34
|
currentValueUnavailable?: boolean | undefined;
|
|
33
35
|
currentValueTruncated?: boolean | undefined;
|
|
34
36
|
currentValue?: string | number | boolean | (string | number | boolean)[] | null | undefined;
|
|
@@ -56,5 +58,5 @@ export declare function recordFormAssistantFacts(view: RecordFormDraftAccess, re
|
|
|
56
58
|
}[];
|
|
57
59
|
};
|
|
58
60
|
export declare function isSensitiveField(field: RecordFormFieldState): boolean;
|
|
59
|
-
export declare function formFieldState(view: Pick<RecordFormDraftAccess, 'formFields' | 'referencePickerConfigs' | 'editingRecord' | 'selectedRecord' | 'editorMode'>, fieldName: string): RecordFormFieldState | undefined;
|
|
61
|
+
export declare function formFieldState(view: Pick<RecordFormDraftAccess, 'formFields' | 'referencePickerConfigs' | 'editingRecord' | 'selectedRecord' | 'editorMode' | 'optionState'>, fieldName: string): RecordFormFieldState | undefined;
|
|
60
62
|
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
@@ -9,6 +9,8 @@ export interface RecordFormDraftAccess {
|
|
|
9
9
|
readonly selectedRecord?: RecordFormRecord;
|
|
10
10
|
readonly formFields: Map<string, RecordFormFieldDescriptor>;
|
|
11
11
|
readonly referencePickerConfigs: Record<string, RecordFormFieldPickerConfig>;
|
|
12
|
+
/** Current standard option candidates; unavailable resources expose no selectable values. */
|
|
13
|
+
optionState?(fieldName: string): ReturnType<typeof import('../platform-components/index').optionFieldState>;
|
|
12
14
|
/** Current source-resolved display, separate from mutation data. */
|
|
13
15
|
referenceDisplay?(fieldName: string): string | undefined;
|
|
14
16
|
contextRevision(): string;
|
|
@@ -295,6 +295,7 @@ export declare function useModulePageSession(props: ModulePageSessionProps, emit
|
|
|
295
295
|
interactionRevision: () => number;
|
|
296
296
|
userChanged: () => void;
|
|
297
297
|
};
|
|
298
|
+
optionState: (fieldName: string) => Readonly<import("../platform-components/index").OptionFieldCandidateState>;
|
|
298
299
|
assistantContextRevision: import("vue").Ref<number, number>;
|
|
299
300
|
assistantInteractionRevision: import("vue").Ref<number, number>;
|
|
300
301
|
listQueryController: import("vue").ShallowRef<RecordQueryListQueryController | undefined, RecordQueryListQueryController | undefined>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type RealtimeConnectionState } from '../web-core/index';
|
|
1
|
+
import { type BusinessNotificationSession, type RealtimeConnectionState } from '../web-core/index';
|
|
2
2
|
import type { WebBusinessRealtimeEvent, WebBusinessNotification, WebCommittedChangeSet, WebUserNotification } from '../web-contracts/index';
|
|
3
3
|
export declare const appDataChangeDispatcher: import("../web-core/index").DataChangeDispatcher;
|
|
4
4
|
export interface AppRealtimeOptions {
|
|
@@ -8,6 +8,8 @@ export interface AppRealtimeOptions {
|
|
|
8
8
|
token?: string;
|
|
9
9
|
onUnauthorized?: () => void;
|
|
10
10
|
onUserNotification?: (notification: WebUserNotification) => void;
|
|
11
|
+
/** Owned by this connection; disposed on disconnect or lost authentication. */
|
|
12
|
+
notificationSession?: BusinessNotificationSession;
|
|
11
13
|
onBusinessNotification?: (notification: WebBusinessNotification) => void;
|
|
12
14
|
onStateChange?: (state: RealtimeConnectionState) => void;
|
|
13
15
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { WebBusinessNotification, WebBusinessNotificationAction } from '../web-contracts/index';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
notifications: WebBusinessNotification[];
|
|
4
|
+
/** Identity-scoped presentation memory; stores viewed IDs only in this browser tab. */
|
|
5
|
+
presentationKey?: string;
|
|
4
6
|
/** Opt a card into the optional right-hand attachment area. */
|
|
5
7
|
hasAccessory?: (notification: WebBusinessNotification) => boolean;
|
|
6
8
|
executeAction: (notification: WebBusinessNotification, action: WebBusinessNotificationAction) => void | boolean | Promise<void | boolean>;
|
|
@@ -4,6 +4,7 @@ type __VLS_Props = {
|
|
|
4
4
|
http?: HttpClient;
|
|
5
5
|
browser?: ReferenceRecordDetailBrowserState;
|
|
6
6
|
inlineAnchor?: boolean;
|
|
7
|
+
scope?: 'tab' | 'viewport';
|
|
7
8
|
};
|
|
8
9
|
declare function reportMutation(mutation: ReferenceRecordDetailMutation): void;
|
|
9
10
|
declare function setBusy(busy: boolean): void;
|
|
@@ -13,7 +14,7 @@ declare var __VLS_1: {}, __VLS_3: {
|
|
|
13
14
|
record: import("./recordQueryListColumnModel.ts").QueryListRecord | undefined;
|
|
14
15
|
reportMutation: typeof reportMutation;
|
|
15
16
|
setBusy: typeof setBusy;
|
|
16
|
-
close: () => void
|
|
17
|
+
close: () => void | Promise<void>;
|
|
17
18
|
}, __VLS_14: {
|
|
18
19
|
context: import("../web-core/index").ModuleContext<import("./recordQueryListColumnModel.ts").QueryListRecord> | undefined;
|
|
19
20
|
record: import("./recordQueryListColumnModel.ts").QueryListRecord | undefined;
|
|
@@ -38,9 +39,18 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
38
39
|
browser: ReferenceRecordDetailBrowserState;
|
|
39
40
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
40
41
|
"record-change": (mutation: ReferenceRecordDetailMutation) => any;
|
|
42
|
+
"open-failed": (result: {
|
|
43
|
+
status: "rejected";
|
|
44
|
+
reason: "missing-host" | "invalid-target" | "access-denied" | "busy" | "leave-blocked" | "superseded" | "not-found" | "load-failed";
|
|
45
|
+
}) => any;
|
|
41
46
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
42
47
|
"onRecord-change"?: ((mutation: ReferenceRecordDetailMutation) => any) | undefined;
|
|
48
|
+
"onOpen-failed"?: ((result: {
|
|
49
|
+
status: "rejected";
|
|
50
|
+
reason: "missing-host" | "invalid-target" | "access-denied" | "busy" | "leave-blocked" | "superseded" | "not-found" | "load-failed";
|
|
51
|
+
}) => any) | undefined;
|
|
43
52
|
}>, {
|
|
53
|
+
scope: "tab" | "viewport";
|
|
44
54
|
http: HttpClient;
|
|
45
55
|
browser: ReferenceRecordDetailBrowserState;
|
|
46
56
|
inlineAnchor: boolean;
|
|
@@ -42,7 +42,7 @@ export { default as RecordDetailDrawer } from './RecordDetailDrawer.vue';
|
|
|
42
42
|
export { default as ReferenceRecordDetailBrowser } from './ReferenceRecordDetailBrowser.vue';
|
|
43
43
|
export { default as ReadonlyReferenceValue } from './ReadonlyReferenceValue.vue';
|
|
44
44
|
export { createReferenceRecordDetailBrowser, provideReferenceRecordDetailBrowser, } from './referenceRecordDetailBrowser';
|
|
45
|
-
export type { ReferenceRecordDetailBrowser as ReferenceRecordDetailBrowserState, ReferenceRecordDetailMutation, } from './referenceRecordDetailBrowser';
|
|
45
|
+
export type { ReferenceRecordDetailBrowser as ReferenceRecordDetailBrowserState, ReferenceRecordDetailMutation, ReferenceRecordOpenResult, ReferenceRecordOpenCheck, } from './referenceRecordDetailBrowser';
|
|
46
46
|
export type { DrawerPromotion } from './drawerPromotion';
|
|
47
47
|
export { default as RecordExternalChangeNotice } from './RecordExternalChangeNotice.vue';
|
|
48
48
|
export { default as RecordDetailFields } from './RecordDetailFields.vue';
|
|
@@ -122,7 +122,7 @@ export { defaultActionIcon, mergeRecordActions, resolveRecordActions } from './r
|
|
|
122
122
|
export { normalizeRecordDraft } from './recordDraftNormalizer';
|
|
123
123
|
export { acceptedMediaTypes, appendUploadedFileReference, fileReferenceIds, issueFileReferenceUploadAccess, uploadedFileId, } from './fileReferenceTransfer';
|
|
124
124
|
export { resolveRecordDetailDisplayValue } from './recordDetailFieldModel';
|
|
125
|
-
export { loadOptionFieldItems } from './optionFieldOptionCache';
|
|
125
|
+
export { loadOptionFieldItems, optionFieldState, settleOptionFieldItems, type OptionFieldCandidateState, } from './optionFieldOptionCache';
|
|
126
126
|
export { formatPlatformDateTime, resolveBrowserTimeZone } from './platformDateTime';
|
|
127
127
|
export { formatPlatformFileSize } from './platformFileSize';
|
|
128
128
|
export type { PlatformFileSizeDisplay, PlatformFileSizeOptions } from './platformFileSize';
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
import type { OptionItemDescriptor } from '../web-contracts/index';
|
|
2
2
|
import type { ModuleContext } from '../web-core/index';
|
|
3
|
-
|
|
3
|
+
type OptionContext = Pick<ModuleContext<unknown>, 'moduleAlias' | 'http'>;
|
|
4
|
+
export interface OptionFieldCandidateState {
|
|
5
|
+
status: 'idle' | 'loading' | 'ready' | 'error';
|
|
6
|
+
items: OptionItemDescriptor[];
|
|
7
|
+
}
|
|
8
|
+
/** Reactive read access; reading candidates never initiates an assistant-specific request. */
|
|
9
|
+
export declare function optionFieldState(context: OptionContext, fieldName: string, entityAlias?: string, moduleAlias?: string): Readonly<OptionFieldCandidateState>;
|
|
10
|
+
export declare function loadOptionFieldItems(context: OptionContext, fieldName: string, entityAlias?: string, moduleAlias?: string, forceRefresh?: boolean): Promise<OptionItemDescriptor[]>;
|
|
11
|
+
/** Wait for the standard editor's current loads, without starting or cancelling shared requests. */
|
|
12
|
+
export declare function settleOptionFieldItems(context: OptionContext, fieldNames: string[], signal: AbortSignal, entityAlias?: string): Promise<void>;
|
|
13
|
+
export {};
|
|
@@ -124,6 +124,7 @@ export interface RecordFormFieldState {
|
|
|
124
124
|
hasOption: boolean;
|
|
125
125
|
optionSelectionMode?: 'SINGLE' | 'MULTIPLE';
|
|
126
126
|
optionTitleField?: string;
|
|
127
|
+
optionLoadStatus?: 'idle' | 'loading' | 'ready' | 'error';
|
|
127
128
|
optionItems?: import('../web-contracts/index').OptionItemDescriptor[];
|
|
128
129
|
referenceTitleField?: string;
|
|
129
130
|
/** The compiled reference contract remains available to read-only detail and list renderers. */
|
|
@@ -18,6 +18,16 @@ export type ReferenceRecordDetailMutation = {
|
|
|
18
18
|
type: 'saved' | 'deleted' | 'unavailable';
|
|
19
19
|
record?: QueryListRecord;
|
|
20
20
|
};
|
|
21
|
+
/** `loaded` reports data readiness, not a DOM visibility or animation acknowledgement. */
|
|
22
|
+
export type ReferenceRecordOpenResult = {
|
|
23
|
+
status: 'loaded';
|
|
24
|
+
} | {
|
|
25
|
+
status: 'rejected';
|
|
26
|
+
reason: 'missing-host' | 'invalid-target' | 'access-denied' | 'busy' | 'leave-blocked' | 'superseded' | 'not-found' | 'load-failed';
|
|
27
|
+
};
|
|
28
|
+
export type ReferenceRecordOpenCheck = () => Extract<ReferenceRecordOpenResult, {
|
|
29
|
+
status: 'rejected';
|
|
30
|
+
}> | undefined;
|
|
21
31
|
export interface ReferenceRecordDetailBrowser {
|
|
22
32
|
revision: {
|
|
23
33
|
value: number;
|
|
@@ -35,10 +45,15 @@ export interface ReferenceRecordDetailBrowser {
|
|
|
35
45
|
value: string;
|
|
36
46
|
};
|
|
37
47
|
canBrowse(targetModuleAlias: string, recordId: string): boolean;
|
|
38
|
-
open(targetModuleAlias: string, recordId: string):
|
|
48
|
+
open(targetModuleAlias: string, recordId: string): Promise<ReferenceRecordOpenResult>;
|
|
49
|
+
/** Presentation adapters register readiness here so every open entry uses the same gate. */
|
|
50
|
+
setBeforeOpen(check: ReferenceRecordOpenCheck): () => void;
|
|
51
|
+
/** Registers the owning full surface's leave authority. */
|
|
52
|
+
setBeforeLeave(guard: () => boolean | Promise<boolean>): () => void;
|
|
53
|
+
confirmLeave(): boolean | Promise<boolean>;
|
|
39
54
|
setBusy(targetModuleAlias: string, recordId: string, busy: boolean): void;
|
|
40
55
|
reportMutation(mutation: ReferenceRecordDetailMutation): void;
|
|
41
|
-
close(): void
|
|
56
|
+
close(): void | Promise<void>;
|
|
42
57
|
/** Component teardown bypasses the user-facing busy close gate. */
|
|
43
58
|
dispose(): void;
|
|
44
59
|
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import type { WorkflowDesign, WorkflowNode, WorkflowRoute } from '../web-contracts/index';
|
|
2
|
+
import { prepareWorkflowDesignOperations, type WorkflowDesignOperationBatch } from './workflowDesignOperations';
|
|
3
|
+
/** Shared draft ownership, independent of canvas, properties and assistant entry points. */
|
|
4
|
+
export declare function useWorkflowDesignSession(): {
|
|
5
|
+
design: import("vue").Ref<{
|
|
6
|
+
nodes: {
|
|
7
|
+
nodeTitleText?: {
|
|
8
|
+
source: {
|
|
9
|
+
sourceKind: "CODE" | "CONFIG";
|
|
10
|
+
sourceId: string;
|
|
11
|
+
sourceVersion: string;
|
|
12
|
+
originalText: string;
|
|
13
|
+
};
|
|
14
|
+
languages: Record<string, {
|
|
15
|
+
text: string;
|
|
16
|
+
requestedTag: string;
|
|
17
|
+
resourceTag?: string | null;
|
|
18
|
+
missing: boolean;
|
|
19
|
+
fallback: boolean;
|
|
20
|
+
}>;
|
|
21
|
+
} | undefined;
|
|
22
|
+
id?: string | undefined;
|
|
23
|
+
version?: number | undefined;
|
|
24
|
+
nodeKey: string;
|
|
25
|
+
title?: string | undefined;
|
|
26
|
+
nodeTitle?: string | undefined;
|
|
27
|
+
nodeType: string;
|
|
28
|
+
nodeStatus?: string | undefined;
|
|
29
|
+
approvalMode?: string | undefined;
|
|
30
|
+
approvalRatio?: number | undefined;
|
|
31
|
+
participantPolicyText?: string | undefined;
|
|
32
|
+
milestoneType?: string | undefined;
|
|
33
|
+
routeMode?: string | undefined;
|
|
34
|
+
selectorNodeKey?: string | undefined;
|
|
35
|
+
convergeNodeKey?: string | undefined;
|
|
36
|
+
convergeMode?: string | undefined;
|
|
37
|
+
convergeRatio?: number | undefined;
|
|
38
|
+
requireManualSelectionReason?: boolean | undefined;
|
|
39
|
+
allowReject?: boolean | undefined;
|
|
40
|
+
autoApproveSameUser?: boolean | undefined;
|
|
41
|
+
requireRejectReason?: boolean | undefined;
|
|
42
|
+
allowRejectReturnToMe?: boolean | undefined;
|
|
43
|
+
allowRollback?: boolean | undefined;
|
|
44
|
+
requireRollbackReason?: boolean | undefined;
|
|
45
|
+
allowAddSign?: boolean | undefined;
|
|
46
|
+
warningDurationMinutes?: number | undefined;
|
|
47
|
+
overtimeDurationMinutes?: number | undefined;
|
|
48
|
+
taskDefinitionId?: string | undefined;
|
|
49
|
+
nodeConfigText?: string | undefined;
|
|
50
|
+
}[];
|
|
51
|
+
links: {
|
|
52
|
+
id?: string | undefined;
|
|
53
|
+
routeKey: string;
|
|
54
|
+
sourceNodeKey: string;
|
|
55
|
+
targetNodeKey: string;
|
|
56
|
+
title?: string | undefined;
|
|
57
|
+
conditionExpression?: string | undefined;
|
|
58
|
+
defaultRoute?: boolean | undefined;
|
|
59
|
+
routeStatus?: string | undefined;
|
|
60
|
+
routeReason?: string | undefined;
|
|
61
|
+
selectedReason?: string | undefined;
|
|
62
|
+
}[];
|
|
63
|
+
layoutJson?: string | undefined;
|
|
64
|
+
}, WorkflowDesign | {
|
|
65
|
+
nodes: {
|
|
66
|
+
nodeTitleText?: {
|
|
67
|
+
source: {
|
|
68
|
+
sourceKind: "CODE" | "CONFIG";
|
|
69
|
+
sourceId: string;
|
|
70
|
+
sourceVersion: string;
|
|
71
|
+
originalText: string;
|
|
72
|
+
};
|
|
73
|
+
languages: Record<string, {
|
|
74
|
+
text: string;
|
|
75
|
+
requestedTag: string;
|
|
76
|
+
resourceTag?: string | null;
|
|
77
|
+
missing: boolean;
|
|
78
|
+
fallback: boolean;
|
|
79
|
+
}>;
|
|
80
|
+
} | undefined;
|
|
81
|
+
id?: string | undefined;
|
|
82
|
+
version?: number | undefined;
|
|
83
|
+
nodeKey: string;
|
|
84
|
+
title?: string | undefined;
|
|
85
|
+
nodeTitle?: string | undefined;
|
|
86
|
+
nodeType: string;
|
|
87
|
+
nodeStatus?: string | undefined;
|
|
88
|
+
approvalMode?: string | undefined;
|
|
89
|
+
approvalRatio?: number | undefined;
|
|
90
|
+
participantPolicyText?: string | undefined;
|
|
91
|
+
milestoneType?: string | undefined;
|
|
92
|
+
routeMode?: string | undefined;
|
|
93
|
+
selectorNodeKey?: string | undefined;
|
|
94
|
+
convergeNodeKey?: string | undefined;
|
|
95
|
+
convergeMode?: string | undefined;
|
|
96
|
+
convergeRatio?: number | undefined;
|
|
97
|
+
requireManualSelectionReason?: boolean | undefined;
|
|
98
|
+
allowReject?: boolean | undefined;
|
|
99
|
+
autoApproveSameUser?: boolean | undefined;
|
|
100
|
+
requireRejectReason?: boolean | undefined;
|
|
101
|
+
allowRejectReturnToMe?: boolean | undefined;
|
|
102
|
+
allowRollback?: boolean | undefined;
|
|
103
|
+
requireRollbackReason?: boolean | undefined;
|
|
104
|
+
allowAddSign?: boolean | undefined;
|
|
105
|
+
warningDurationMinutes?: number | undefined;
|
|
106
|
+
overtimeDurationMinutes?: number | undefined;
|
|
107
|
+
taskDefinitionId?: string | undefined;
|
|
108
|
+
nodeConfigText?: string | undefined;
|
|
109
|
+
}[];
|
|
110
|
+
links: {
|
|
111
|
+
id?: string | undefined;
|
|
112
|
+
routeKey: string;
|
|
113
|
+
sourceNodeKey: string;
|
|
114
|
+
targetNodeKey: string;
|
|
115
|
+
title?: string | undefined;
|
|
116
|
+
conditionExpression?: string | undefined;
|
|
117
|
+
defaultRoute?: boolean | undefined;
|
|
118
|
+
routeStatus?: string | undefined;
|
|
119
|
+
routeReason?: string | undefined;
|
|
120
|
+
selectedReason?: string | undefined;
|
|
121
|
+
}[];
|
|
122
|
+
layoutJson?: string | undefined;
|
|
123
|
+
}>;
|
|
124
|
+
history: {
|
|
125
|
+
checkpoint(): () => boolean;
|
|
126
|
+
canUndo: import("vue").ComputedRef<boolean>;
|
|
127
|
+
canRedo: import("vue").ComputedRef<boolean>;
|
|
128
|
+
dirty: import("vue").ComputedRef<boolean>;
|
|
129
|
+
undo: () => void;
|
|
130
|
+
redo: () => void;
|
|
131
|
+
markSaved: () => void;
|
|
132
|
+
reset: (value: WorkflowDesign, persisted?: WorkflowDesign) => void;
|
|
133
|
+
};
|
|
134
|
+
updateNode: (key: string, patch: Partial<WorkflowNode>) => void;
|
|
135
|
+
updateRoute: (key: string, patch: Partial<WorkflowRoute>) => void;
|
|
136
|
+
prepare: (batch: WorkflowDesignOperationBatch, fields: Parameters<typeof prepareWorkflowDesignOperations>[2], current: () => boolean) => () => {
|
|
137
|
+
changes: string[];
|
|
138
|
+
created: Record<string, Record<string, string>>;
|
|
139
|
+
diagnostics: import("./workflowDesignOperations").WorkflowDraftDiagnostics;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { type LanguageContext } from '../web-core/index';
|
|
1
2
|
import type { WorkflowDesign, WorkflowNode, WorkflowRoute } from '../web-contracts/index';
|
|
2
3
|
export declare function createWorkflowApprovalNode(nodeKey: string, title: string): WorkflowNode;
|
|
3
4
|
/** A branch and its convergence are one editable business structure. */
|
|
4
|
-
export declare function insertWorkflowBranch(design: WorkflowDesign, routeKey: string, key: string): WorkflowDesign;
|
|
5
|
-
export declare function appendWorkflowBranchPath(design: WorkflowDesign, branchKey: string, key: string): WorkflowDesign;
|
|
6
|
-
export declare function removeWorkflowBranch(design: WorkflowDesign, branchKey: string): WorkflowDesign;
|
|
7
|
-
export declare function updateWorkflowRoute(design: WorkflowDesign, routeKey: string, patch: Partial<WorkflowRoute
|
|
5
|
+
export declare function insertWorkflowBranch(design: WorkflowDesign, routeKey: string, key: string, language?: LanguageContext): WorkflowDesign;
|
|
6
|
+
export declare function appendWorkflowBranchPath(design: WorkflowDesign, branchKey: string, key: string, language?: LanguageContext): WorkflowDesign;
|
|
7
|
+
export declare function removeWorkflowBranch(design: WorkflowDesign, branchKey: string, language?: LanguageContext): WorkflowDesign;
|
|
8
|
+
export declare function updateWorkflowRoute(design: WorkflowDesign, routeKey: string, patch: Partial<WorkflowRoute>, language?: LanguageContext): WorkflowDesign;
|
|
8
9
|
/** Edits the semantic graph; coordinates never decide workflow structure. */
|
|
9
|
-
export declare function insertWorkflowNode(design: WorkflowDesign, routeKey: string, node: WorkflowNode): WorkflowDesign;
|
|
10
|
-
export declare function removeWorkflowNode(design: WorkflowDesign, nodeKey: string): WorkflowDesign;
|
|
11
|
-
export declare function createWorkflowDesign(approval: boolean): WorkflowDesign;
|
|
10
|
+
export declare function insertWorkflowNode(design: WorkflowDesign, routeKey: string, node: WorkflowNode, language?: LanguageContext): WorkflowDesign;
|
|
11
|
+
export declare function removeWorkflowNode(design: WorkflowDesign, nodeKey: string, language?: LanguageContext): WorkflowDesign;
|
|
12
|
+
export declare function createWorkflowDesign(approval: boolean, language?: LanguageContext): WorkflowDesign;
|