@ximatai/muyun-web-app 0.26.27 → 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-Bbe-GbNG.js → BusinessActivityLogView-DlNB97pu.js} +2 -2
- package/dist/BusinessLogListDrawer-ByiwQP1m.js +868 -0
- package/dist/CodeConfigurationView-91B9dHjD.js +2333 -0
- package/dist/{ConfigurationTranslationView-B3Cr9Wes.js → ConfigurationTranslationView-ClovkYJt.js} +49 -49
- package/dist/{LoginAuditLogView-DOwkqtVB.js → LoginAuditLogView-Blg9giRX.js} +2 -2
- package/dist/{ModuleActionManagementView-DNXAhdXk.js → ModuleActionManagementView-Chr_XTJ3.js} +191 -191
- package/dist/{ModuleGovernanceView-g5W2R_Zl.js → ModuleGovernanceView-BNlRHqSj.js} +3403 -3421
- package/dist/{RequestErrorLogView-9GIz2mkQ.js → RequestErrorLogView-CGczIKQy.js} +2 -2
- package/dist/RoleDetailWorkspaceView-CPH9cga9.js +1435 -0
- package/dist/{RuntimeLogView-C5i19Z-u.js → RuntimeLogView-DF-1k-9y.js} +51 -51
- package/dist/{WorkflowAdministrationView-CnoTudpI.js → WorkflowAdministrationView-CCXry0G4.js} +57 -57
- package/dist/WorkflowConfigurationView-BqSfYua2.js +2227 -0
- package/dist/{WorkflowWorkbenchView-DbWqspEB.js → WorkflowWorkbenchView-DUFfO3Gf.js} +248 -248
- package/dist/{codeConfiguration-Bno8cWxB.js → codeConfiguration-BRxveKen.js} +66 -49
- 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 +727 -727
- package/dist/{moduleMenuWorkspace-DW13bHG5.js → moduleMenuWorkspace-D_A94ZgR.js} +237 -248
- package/dist/{platform-components-D3NvMY3T.js → platform-components-DSMqalgQ.js} +4535 -4455
- package/dist/{platform-workbench-C4OFiuG5.js → platform-workbench-B53hydzq.js} +5376 -5289
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +28 -3
- package/dist/types/dynamic-page-runtime/ModuleReferenceRecordDetailBrowser.vue.d.ts +13 -4
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/recordFormAssistantCapabilities.d.ts +3 -1
- 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-components/BusinessNotificationPanel.vue.d.ts +2 -0
- package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +10 -0
- 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 +13 -1
- 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-core/formulaReferences.d.ts +2 -0
- package/dist/types/web-core/workflow.d.ts +11 -1
- package/dist/useWorkflowConfigurationContext-BuBDdUcQ.js +78 -0
- package/dist/{workspaceViews-D2Uh4KAq.js → workspaceViews-BSVtjZj1.js} +680 -680
- package/package.json +1 -1
- package/dist/BusinessLogListDrawer-BmF-14We.js +0 -868
- package/dist/CodeConfigurationView-DdPfBjoC.js +0 -1667
- package/dist/RoleDetailWorkspaceView-BuqRT0pd.js +0 -1435
- package/dist/WorkflowConfigurationView-Cku-F1Fm.js +0 -980
- package/dist/useWorkflowConfigurationContext-eQKyqe6_.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;
|
|
@@ -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,16 +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
|
}>, {
|
|
3800
|
-
|
|
3806
|
+
browser: import("../platform-components/index").ReferenceRecordDetailBrowserState;
|
|
3807
|
+
openRecord: (targetModuleAlias: string, recordId: string) => Promise<import("../platform-components/index").ReferenceRecordOpenResult>;
|
|
3801
3808
|
closeRecord: () => void | Promise<void>;
|
|
3802
3809
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3803
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;
|
|
3804
3815
|
"interaction-state-change": (state: {
|
|
3805
3816
|
editing: boolean;
|
|
3806
3817
|
busy: boolean;
|
|
@@ -3827,13 +3838,18 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
3827
3838
|
scope?: "tab" | "viewport";
|
|
3828
3839
|
}> & Readonly<{
|
|
3829
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;
|
|
3830
3845
|
"onInteraction-state-change"?: ((state: {
|
|
3831
3846
|
editing: boolean;
|
|
3832
3847
|
busy: boolean;
|
|
3833
3848
|
dirty?: boolean;
|
|
3834
3849
|
}) => any) | undefined;
|
|
3835
3850
|
}>, {
|
|
3836
|
-
|
|
3851
|
+
browser: import("../platform-components/index").ReferenceRecordDetailBrowserState;
|
|
3852
|
+
openRecord: (targetModuleAlias: string, recordId: string) => Promise<import("../platform-components/index").ReferenceRecordOpenResult>;
|
|
3837
3853
|
closeRecord: () => void | Promise<void>;
|
|
3838
3854
|
}, {}, {}, {}, {
|
|
3839
3855
|
scope: "tab" | "viewport";
|
|
@@ -3853,16 +3869,25 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
3853
3869
|
scope?: "tab" | "viewport";
|
|
3854
3870
|
}> & Readonly<{
|
|
3855
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;
|
|
3856
3876
|
"onInteraction-state-change"?: ((state: {
|
|
3857
3877
|
editing: boolean;
|
|
3858
3878
|
busy: boolean;
|
|
3859
3879
|
dirty?: boolean;
|
|
3860
3880
|
}) => any) | undefined;
|
|
3861
3881
|
}>, {
|
|
3862
|
-
|
|
3882
|
+
browser: import("../platform-components/index").ReferenceRecordDetailBrowserState;
|
|
3883
|
+
openRecord: (targetModuleAlias: string, recordId: string) => Promise<import("../platform-components/index").ReferenceRecordOpenResult>;
|
|
3863
3884
|
closeRecord: () => void | Promise<void>;
|
|
3864
3885
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3865
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;
|
|
3866
3891
|
"interaction-state-change": (state: {
|
|
3867
3892
|
editing: boolean;
|
|
3868
3893
|
busy: boolean;
|
|
@@ -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,15 +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
14
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
15
|
-
|
|
15
|
+
browser: ReferenceRecordDetailBrowserState;
|
|
16
|
+
openRecord: (targetModuleAlias: string, recordId: string) => Promise<ReferenceRecordOpenResult>;
|
|
16
17
|
closeRecord: () => void | Promise<void>;
|
|
17
18
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
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;
|
|
19
24
|
"interaction-state-change": (state: {
|
|
20
25
|
editing: boolean;
|
|
21
26
|
busy: boolean;
|
|
@@ -23,6 +28,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
23
28
|
}) => any;
|
|
24
29
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
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;
|
|
26
35
|
"onInteraction-state-change"?: ((state: {
|
|
27
36
|
editing: boolean;
|
|
28
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
|
}
|
|
@@ -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,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;
|
|
@@ -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,7 +45,9 @@ export interface ReferenceRecordDetailBrowser {
|
|
|
35
45
|
value: string;
|
|
36
46
|
};
|
|
37
47
|
canBrowse(targetModuleAlias: string, recordId: string): boolean;
|
|
38
|
-
open(targetModuleAlias: string, recordId: string): Promise<
|
|
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;
|
|
39
51
|
/** Registers the owning full surface's leave authority. */
|
|
40
52
|
setBeforeLeave(guard: () => boolean | Promise<boolean>): () => void;
|
|
41
53
|
confirmLeave(): boolean | Promise<boolean>;
|
|
@@ -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;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { type LanguageContext } from '../web-core/index';
|
|
2
|
+
import type { AssistantFieldPolicy, WorkflowDesign } from '../web-contracts/index';
|
|
3
|
+
export interface WorkflowParticipantField {
|
|
4
|
+
name: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
referenceModule?: string;
|
|
7
|
+
assistantPolicy?: AssistantFieldPolicy;
|
|
8
|
+
fieldControl?: {
|
|
9
|
+
alias?: string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
/** The complete manual directory remains authoritative; only automatic assistant projection is restricted. */
|
|
13
|
+
export declare function workflowParticipantFieldVisible(field: WorkflowParticipantField): boolean;
|
|
14
|
+
/** Derived configuration may expose only field references declared visible in the current directory. */
|
|
15
|
+
export declare function workflowAssistantExpressionVisible(expression: string | undefined, fields: readonly WorkflowParticipantField[]): boolean;
|
|
16
|
+
export type WorkflowDraftReference = string | {
|
|
17
|
+
created: string;
|
|
18
|
+
part: string;
|
|
19
|
+
};
|
|
20
|
+
export type WorkflowDraftParticipant = {
|
|
21
|
+
type: 'INITIATOR_SELF';
|
|
22
|
+
} | {
|
|
23
|
+
type: 'FIELD';
|
|
24
|
+
fieldName: string;
|
|
25
|
+
} | {
|
|
26
|
+
type: 'RELATIVE';
|
|
27
|
+
relation: 'SUPERVISOR';
|
|
28
|
+
depth: number;
|
|
29
|
+
fieldName?: string;
|
|
30
|
+
};
|
|
31
|
+
export interface WorkflowNodeDraftPatch {
|
|
32
|
+
title?: string;
|
|
33
|
+
approvalMode?: 'all' | 'any' | 'ratio' | 'notice';
|
|
34
|
+
approvalRatio?: number;
|
|
35
|
+
participants?: WorkflowDraftParticipant[];
|
|
36
|
+
milestoneType?: 'approval_completed';
|
|
37
|
+
}
|
|
38
|
+
export type WorkflowDesignOperation = {
|
|
39
|
+
op: 'insert-node';
|
|
40
|
+
as: string;
|
|
41
|
+
route: WorkflowDraftReference;
|
|
42
|
+
node: WorkflowNodeDraftPatch & {
|
|
43
|
+
kind: 'approval' | 'notice' | 'milestone';
|
|
44
|
+
title: string;
|
|
45
|
+
};
|
|
46
|
+
} | {
|
|
47
|
+
op: 'update-node';
|
|
48
|
+
node: WorkflowDraftReference;
|
|
49
|
+
patch: WorkflowNodeDraftPatch;
|
|
50
|
+
} | {
|
|
51
|
+
op: 'delete-node';
|
|
52
|
+
node: WorkflowDraftReference;
|
|
53
|
+
} | {
|
|
54
|
+
op: 'insert-branch';
|
|
55
|
+
as: string;
|
|
56
|
+
route: WorkflowDraftReference;
|
|
57
|
+
title?: string;
|
|
58
|
+
} | {
|
|
59
|
+
op: 'append-path';
|
|
60
|
+
as: string;
|
|
61
|
+
branch: WorkflowDraftReference;
|
|
62
|
+
} | {
|
|
63
|
+
op: 'delete-branch';
|
|
64
|
+
branch: WorkflowDraftReference;
|
|
65
|
+
} | {
|
|
66
|
+
op: 'update-branch';
|
|
67
|
+
branch: WorkflowDraftReference;
|
|
68
|
+
patch: {
|
|
69
|
+
title?: string;
|
|
70
|
+
routeMode?: 'auto' | 'manual';
|
|
71
|
+
selectorNode?: WorkflowDraftReference;
|
|
72
|
+
requireManualSelectionReason?: boolean;
|
|
73
|
+
convergeMode?: 'all' | 'any' | 'ratio';
|
|
74
|
+
convergeRatio?: number;
|
|
75
|
+
};
|
|
76
|
+
} | {
|
|
77
|
+
op: 'update-route';
|
|
78
|
+
route: WorkflowDraftReference;
|
|
79
|
+
patch: {
|
|
80
|
+
title?: string;
|
|
81
|
+
conditionExpression?: string;
|
|
82
|
+
defaultRoute?: boolean;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
export interface WorkflowDesignOperationBatch {
|
|
86
|
+
operations: WorkflowDesignOperation[];
|
|
87
|
+
}
|
|
88
|
+
export declare function workflowDesignOperationsSchema(): Record<string, unknown>;
|
|
89
|
+
export declare function parseWorkflowDesignOperations(input: unknown, language?: LanguageContext): WorkflowDesignOperationBatch;
|
|
90
|
+
export interface WorkflowDraftDiagnostics {
|
|
91
|
+
valid: boolean;
|
|
92
|
+
errors: string[];
|
|
93
|
+
warnings: string[];
|
|
94
|
+
truncated: boolean;
|
|
95
|
+
formulaCheck: 'requires-server-validation';
|
|
96
|
+
publishedValidation: false;
|
|
97
|
+
}
|
|
98
|
+
/** Local diagnostics describe an incomplete editable draft, never formal publish readiness. */
|
|
99
|
+
export declare function diagnoseWorkflowDraft(design: WorkflowDesign, fields?: readonly WorkflowParticipantField[], language?: LanguageContext): WorkflowDraftDiagnostics;
|
|
100
|
+
/** Pure preparation: all operations succeed before the caller publishes one history entry. */
|
|
101
|
+
export declare function prepareWorkflowDesignOperations(design: WorkflowDesign, input: WorkflowDesignOperationBatch, fields?: readonly WorkflowParticipantField[], language?: LanguageContext): {
|
|
102
|
+
design: WorkflowDesign;
|
|
103
|
+
changes: string[];
|
|
104
|
+
created: Record<string, Record<string, string>>;
|
|
105
|
+
diagnostics: WorkflowDraftDiagnostics;
|
|
106
|
+
};
|
|
107
|
+
export declare function workflowDesignChangeLines(before: WorkflowDesign, after: WorkflowDesign, language?: LanguageContext): string[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { CodeRule, CodeTarget } from './codeConfiguration';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
rule?: CodeRule;
|
|
4
|
+
target?: CodeTarget;
|
|
5
|
+
busy: boolean;
|
|
6
|
+
resolved: boolean;
|
|
7
|
+
feedback: string;
|
|
8
|
+
error: string;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
check: () => any;
|
|
12
|
+
abandon: () => any;
|
|
13
|
+
adopt: () => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onCheck?: (() => any) | undefined;
|
|
16
|
+
onAbandon?: (() => any) | undefined;
|
|
17
|
+
onAdopt?: (() => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type LanguageContext, type OperationErrorMessage } from '../web-core/index';
|
|
2
2
|
import type { TextPresentation } from '../web-contracts/index';
|
|
3
|
+
export { referencedFormulaFields } from '../web-core/formulaReferences';
|
|
3
4
|
export type BusinessRuleKind = 'CALCULATION' | 'VALIDATION' | 'UI_CONTROL';
|
|
4
5
|
/** Save-validation behavior shared by manual editing and assistant rule inputs. */
|
|
5
6
|
export declare const businessRuleValidationHelp = "\u516C\u5F0F\u4E3A\u771F\u65F6\u5141\u8BB8\u4FDD\u5B58\uFF0C\u4E3A\u5047\u65F6\u963B\u6B62\u4FDD\u5B58\u5E76\u663E\u793A\u5931\u8D25\u63D0\u793A\uFF1B\u5F53\u524D\u7F16\u8F91\u5668\u4E0D\u652F\u6301\u53EA\u63D0\u9192\u800C\u4ECD\u5141\u8BB8\u4FDD\u5B58\u7684\u89C4\u5219\u3002";
|
|
@@ -204,8 +205,6 @@ export declare function typedSampleValue(value: string, valueType: string): unkn
|
|
|
204
205
|
* immediately after the inserted text, including when a selected range was replaced.
|
|
205
206
|
*/
|
|
206
207
|
export declare function insertFormulaText(expression: string, selectionStart: number | undefined, selectionEnd: number | undefined, text: string): FormulaInsertion;
|
|
207
|
-
/** Reads only real field tokens; references inside string literals are formula text, not dependencies. */
|
|
208
|
-
export declare function referencedFormulaFields(expression: string): string[];
|
|
209
208
|
/** Replaces only executable field tokens with their business names for read-only UI summaries. */
|
|
210
209
|
export declare function presentableFormulaExpression(expression: string, fields: readonly BusinessRuleEditableField[]): string;
|
|
211
210
|
/**
|