@ximatai/muyun-web-app 0.26.26 → 0.26.27
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-Bbe-GbNG.js} +2 -2
- package/dist/BusinessLogListDrawer-BmF-14We.js +868 -0
- package/dist/CodeConfigurationView-DdPfBjoC.js +1667 -0
- package/dist/{ConfigurationTranslationView-BsWyLeRd.js → ConfigurationTranslationView-B3Cr9Wes.js} +48 -48
- package/dist/{LoginAuditLogView-D3TJdzWM.js → LoginAuditLogView-DOwkqtVB.js} +2 -2
- package/dist/{ModuleActionManagementView-C9LiwMM3.js → ModuleActionManagementView-DNXAhdXk.js} +145 -145
- package/dist/{ModuleGovernanceView-CYZzHLHa.js → ModuleGovernanceView-g5W2R_Zl.js} +3131 -3131
- package/dist/{RequestErrorLogView-D85h_q4P.js → RequestErrorLogView-9GIz2mkQ.js} +2 -2
- package/dist/RoleDetailWorkspaceView-BuqRT0pd.js +1435 -0
- package/dist/{RuntimeLogView-D-MrVfT7.js → RuntimeLogView-C5i19Z-u.js} +55 -55
- package/dist/WorkflowAdministrationView-CnoTudpI.js +650 -0
- package/dist/{WorkflowConfigurationView-BhQl7NjM.js → WorkflowConfigurationView-Cku-F1Fm.js} +33 -33
- package/dist/{WorkflowWorkbenchView-BN3ckTHB.js → WorkflowWorkbenchView-DbWqspEB.js} +34 -34
- package/dist/{codeConfiguration-B5OjCYZ6.js → codeConfiguration-Bno8cWxB.js} +45 -45
- package/dist/index.css +1 -1
- package/dist/index.js +784 -676
- package/dist/{moduleMenuWorkspace-DhI4_LpA.js → moduleMenuWorkspace-DW13bHG5.js} +179 -179
- package/dist/{platform-components-Ca8SikTY.js → platform-components-D3NvMY3T.js} +3298 -3256
- package/dist/{platform-workbench-DpXhb4F6.js → platform-workbench-C4OFiuG5.js} +4969 -4910
- package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +12 -3
- package/dist/types/dynamic-page-runtime/ModulePageHostSession.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModuleReferenceRecordDetailBrowser.vue.d.ts +4 -1
- package/dist/types/dynamic-page-runtime/recordFormAssistantCapabilities.d.ts +1 -1
- package/dist/types/platform-admin-runtime/realtime.d.ts +3 -1
- package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +1 -1
- package/dist/types/platform-components/referenceRecordDetailBrowser.d.ts +5 -2
- 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/index.d.ts +1 -0
- package/dist/types/web-core/operationConfirmation.d.ts +13 -8
- package/dist/{useWorkflowConfigurationContext-DpzBpKa3.js → useWorkflowConfigurationContext-eQKyqe6_.js} +2 -2
- package/dist/{workspaceViews-CLOyLZMZ.js → workspaceViews-D2Uh4KAq.js} +610 -610
- package/package.json +1 -1
- package/dist/BusinessLogListDrawer-CXabZOOM.js +0 -868
- package/dist/CodeConfigurationView-B1Lgdnkj.js +0 -1667
- package/dist/RoleDetailWorkspaceView-VHvh-_Sj.js +0 -1435
- package/dist/WorkflowAdministrationView-DHPlIJXF.js +0 -650
|
@@ -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;
|
|
@@ -3796,7 +3796,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
3796
3796
|
busy: boolean;
|
|
3797
3797
|
dirty?: boolean;
|
|
3798
3798
|
}) => any) | undefined;
|
|
3799
|
-
}>, {
|
|
3799
|
+
}>, {
|
|
3800
|
+
openRecord: (targetModuleAlias: string, recordId: string) => Promise<void>;
|
|
3801
|
+
closeRecord: () => void | Promise<void>;
|
|
3802
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3800
3803
|
"record-change": (mutation: import("../platform-components/index").ReferenceRecordDetailMutation) => any;
|
|
3801
3804
|
"interaction-state-change": (state: {
|
|
3802
3805
|
editing: boolean;
|
|
@@ -3829,7 +3832,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
3829
3832
|
busy: boolean;
|
|
3830
3833
|
dirty?: boolean;
|
|
3831
3834
|
}) => any) | undefined;
|
|
3832
|
-
}>, {
|
|
3835
|
+
}>, {
|
|
3836
|
+
openRecord: (targetModuleAlias: string, recordId: string) => Promise<void>;
|
|
3837
|
+
closeRecord: () => void | Promise<void>;
|
|
3838
|
+
}, {}, {}, {}, {
|
|
3833
3839
|
scope: "tab" | "viewport";
|
|
3834
3840
|
http: import("../web-core/index").HttpClient;
|
|
3835
3841
|
renderMode: "inline" | "portal";
|
|
@@ -3852,7 +3858,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
3852
3858
|
busy: boolean;
|
|
3853
3859
|
dirty?: boolean;
|
|
3854
3860
|
}) => any) | undefined;
|
|
3855
|
-
}>, {
|
|
3861
|
+
}>, {
|
|
3862
|
+
openRecord: (targetModuleAlias: string, recordId: string) => Promise<void>;
|
|
3863
|
+
closeRecord: () => void | Promise<void>;
|
|
3864
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3856
3865
|
"record-change": (mutation: import("../platform-components/index").ReferenceRecordDetailMutation) => any;
|
|
3857
3866
|
"interaction-state-change": (state: {
|
|
3858
3867
|
editing: 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: {
|
|
@@ -11,7 +11,10 @@ declare var __VLS_10: {};
|
|
|
11
11
|
type __VLS_Slots = {} & {
|
|
12
12
|
default?: (props: typeof __VLS_10) => any;
|
|
13
13
|
};
|
|
14
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
15
|
+
openRecord: (targetModuleAlias: string, recordId: string) => Promise<void>;
|
|
16
|
+
closeRecord: () => void | Promise<void>;
|
|
17
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
18
|
"record-change": (mutation: ReferenceRecordDetailMutation) => any;
|
|
16
19
|
"interaction-state-change": (state: {
|
|
17
20
|
editing: boolean;
|
|
@@ -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
|
}[];
|
|
@@ -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
|
}
|
|
@@ -13,7 +13,7 @@ declare var __VLS_1: {}, __VLS_3: {
|
|
|
13
13
|
record: import("./recordQueryListColumnModel.ts").QueryListRecord | undefined;
|
|
14
14
|
reportMutation: typeof reportMutation;
|
|
15
15
|
setBusy: typeof setBusy;
|
|
16
|
-
close: () => void
|
|
16
|
+
close: () => void | Promise<void>;
|
|
17
17
|
}, __VLS_14: {
|
|
18
18
|
context: import("../web-core/index").ModuleContext<import("./recordQueryListColumnModel.ts").QueryListRecord> | undefined;
|
|
19
19
|
record: import("./recordQueryListColumnModel.ts").QueryListRecord | undefined;
|
|
@@ -35,10 +35,13 @@ export interface ReferenceRecordDetailBrowser {
|
|
|
35
35
|
value: string;
|
|
36
36
|
};
|
|
37
37
|
canBrowse(targetModuleAlias: string, recordId: string): boolean;
|
|
38
|
-
open(targetModuleAlias: string, recordId: string): void
|
|
38
|
+
open(targetModuleAlias: string, recordId: string): Promise<void>;
|
|
39
|
+
/** Registers the owning full surface's leave authority. */
|
|
40
|
+
setBeforeLeave(guard: () => boolean | Promise<boolean>): () => void;
|
|
41
|
+
confirmLeave(): boolean | Promise<boolean>;
|
|
39
42
|
setBusy(targetModuleAlias: string, recordId: string, busy: boolean): void;
|
|
40
43
|
reportMutation(mutation: ReferenceRecordDetailMutation): void;
|
|
41
|
-
close(): void
|
|
44
|
+
close(): void | Promise<void>;
|
|
42
45
|
/** Component teardown bypasses the user-facing busy close gate. */
|
|
43
46
|
dispose(): void;
|
|
44
47
|
}
|
|
@@ -8,6 +8,13 @@ export interface OperationPresentation {
|
|
|
8
8
|
lines: string[];
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
+
/** Authoritative command observation. Acceptance is not completion; failure never authorizes replay. */
|
|
12
|
+
export interface OperationReceipt {
|
|
13
|
+
status: 'processing' | 'succeeded' | 'failed';
|
|
14
|
+
presentation: OperationPresentation;
|
|
15
|
+
}
|
|
16
|
+
/** Existing immediate-success adapters may continue returning a presentation. */
|
|
17
|
+
export type OperationResult = OperationPresentation | OperationReceipt;
|
|
11
18
|
/** A bounded read-only pointer, never an executable command or authority. */
|
|
12
19
|
export type OperationReceiptReference = {
|
|
13
20
|
kind: 'record-save';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type LanguageContext } from './language';
|
|
2
|
-
import type { OperationReceiptReference, OperationPresentation } from '../web-contracts/index';
|
|
2
|
+
import type { OperationReceiptReference, OperationResult, OperationPresentation } from '../web-contracts/index';
|
|
3
3
|
import { type OperationProposal, type OperationConfirmation } from './operationConfirmation';
|
|
4
4
|
export { OperationRejectedError as AssistantOperationRejectedError } from './operationConfirmation';
|
|
5
5
|
export type { OperationConfirmationState as AssistantConfirmationState } from './operationConfirmation';
|
|
6
6
|
/** Assistant-only explanation and continuation decorate a platform command. */
|
|
7
|
-
export interface AssistantOperationProposal extends OperationProposal {
|
|
7
|
+
export interface AssistantOperationProposal<TResult extends OperationResult = OperationPresentation> extends OperationProposal<TResult> {
|
|
8
8
|
modelSummary?: string;
|
|
9
9
|
continuation?: {
|
|
10
10
|
message: string;
|
|
@@ -19,6 +19,6 @@ export interface AssistantOperationConfirmation extends OperationConfirmation {
|
|
|
19
19
|
readonly continuationIsCurrent?: () => boolean;
|
|
20
20
|
takeContinuation(): string | undefined;
|
|
21
21
|
}
|
|
22
|
-
export declare function createAssistantOperationConfirmation(proposal: AssistantOperationProposal
|
|
22
|
+
export declare function createAssistantOperationConfirmation(proposal: AssistantOperationProposal<OperationResult>, scopeIsCurrent: () => boolean, now?: () => number, language?: LanguageContext, receiptScopeIsCurrent?: () => boolean): AssistantOperationConfirmation;
|
|
23
23
|
/** Recovered results have no execute path, expiry renewal, or automatic continuation. */
|
|
24
|
-
export declare function restoreAssistantOperationReceipt(reference: OperationReceiptReference, lookup: () => Promise<
|
|
24
|
+
export declare function restoreAssistantOperationReceipt(reference: OperationReceiptReference, lookup: () => Promise<OperationResult | undefined>, scopeIsCurrent: () => boolean, language?: LanguageContext): AssistantOperationConfirmation;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type LanguageContext } from './language';
|
|
2
2
|
import { type AssistantOperationProposal, type AssistantOperationConfirmation } from './assistantConfirmation';
|
|
3
|
-
import type { AssistantCapabilityCall, AssistantResultPresentation, AssistantCapabilityDescriptor, AssistantSurfaceContext, AssistantTurnInput, AssistantTurnOutput } from '../web-contracts/index';
|
|
3
|
+
import type { OperationResult, AssistantCapabilityCall, AssistantResultPresentation, AssistantCapabilityDescriptor, AssistantSurfaceContext, AssistantTurnInput, AssistantTurnOutput } from '../web-contracts/index';
|
|
4
4
|
import type { AssistantTurnProgress } from './assistantTurnClient';
|
|
5
5
|
export interface AssistantCapability<TInput = unknown, TOutput = unknown> {
|
|
6
6
|
descriptor: AssistantCapabilityDescriptor;
|
|
@@ -11,7 +11,7 @@ export interface AssistantCapability<TInput = unknown, TOutput = unknown> {
|
|
|
11
11
|
/** Descriptive boundary for reads that replace selection/candidate state; never authority. */
|
|
12
12
|
changesReadState?: boolean;
|
|
13
13
|
present?(output: TOutput): AssistantResultPresentation;
|
|
14
|
-
propose?(output: TOutput): AssistantOperationProposal
|
|
14
|
+
propose?(output: TOutput): AssistantOperationProposal<OperationResult>;
|
|
15
15
|
parseInput(input: unknown): TInput;
|
|
16
16
|
execute(input: TInput, context: AssistantCapabilityExecutionContext): Promise<TOutput>;
|
|
17
17
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { WebBusinessNotification } from '../web-contracts/index';
|
|
2
|
+
/** A complete authorized snapshot for one business-owned subset, not a page of results. */
|
|
3
|
+
export interface BusinessNotificationRecoverySource {
|
|
4
|
+
id: string;
|
|
5
|
+
owns(notification: WebBusinessNotification): boolean;
|
|
6
|
+
load(signal: AbortSignal): Promise<readonly WebBusinessNotification[]>;
|
|
7
|
+
}
|
|
8
|
+
export interface BusinessNotificationSession {
|
|
9
|
+
register(source: BusinessNotificationRecoverySource): () => void;
|
|
10
|
+
receive(notification: WebBusinessNotification): void;
|
|
11
|
+
dismiss(notificationId: string): void;
|
|
12
|
+
recover(sourceId?: string): Promise<void>;
|
|
13
|
+
snapshot(): WebBusinessNotification[];
|
|
14
|
+
/** Cancel in-flight snapshots while retaining the current list, e.g. on transport loss. */
|
|
15
|
+
cancelRecovery(): void;
|
|
16
|
+
dispose(): void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* One instance per authenticated identity/tenant session. No persistence, timers or action execution.
|
|
20
|
+
* Source loaders capture that identity's client; recreate the session when the identity changes.
|
|
21
|
+
*/
|
|
22
|
+
export declare function createBusinessNotificationSession(options: {
|
|
23
|
+
isCurrent(): boolean;
|
|
24
|
+
onChange(notifications: WebBusinessNotification[]): void;
|
|
25
|
+
onRecoveryError?(sourceId: string, error: unknown): void;
|
|
26
|
+
now?: () => number;
|
|
27
|
+
}): BusinessNotificationSession;
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import { type LanguageContext } from './language';
|
|
2
2
|
import { type OperationErrorMessage } from './operationErrors';
|
|
3
|
-
import type { OperationPresentation, OperationReceiptReference } from '../web-contracts/index';
|
|
3
|
+
import type { OperationPresentation, OperationReceiptReference, OperationResult } from '../web-contracts/index';
|
|
4
|
+
/** Read-only recovery of a domain-owned durable command identity. No payload or write callback is restored. */
|
|
5
|
+
export interface OperationRecovery<TResult extends OperationResult = OperationResult> {
|
|
6
|
+
presentation: OperationPresentation;
|
|
7
|
+
/** Reauthorize and map authoritative domain facts; missing or inaccessible does not mean failed. */
|
|
8
|
+
lookup(): Promise<TResult | undefined>;
|
|
9
|
+
}
|
|
4
10
|
/** Captured platform command. The caller owns the candidate and execution scope. */
|
|
5
|
-
export interface OperationProposal {
|
|
11
|
+
export interface OperationProposal<TResult extends OperationResult = OperationPresentation> extends OperationRecovery<TResult> {
|
|
6
12
|
receiptReference?: OperationReceiptReference;
|
|
7
|
-
presentation: OperationPresentation;
|
|
8
13
|
confirmLabel?: string;
|
|
9
14
|
expiresAt: number;
|
|
10
15
|
isCurrent(): boolean;
|
|
11
16
|
/** Submits the captured payload using the same durable request identity on every attempt. */
|
|
12
|
-
execute(): Promise<
|
|
13
|
-
/** A missing receipt is not permission to automatically resubmit. */
|
|
14
|
-
lookup(): Promise<OperationPresentation | undefined>;
|
|
17
|
+
execute(): Promise<TResult>;
|
|
15
18
|
}
|
|
16
|
-
export type OperationConfirmationState = 'pending' | 'executing' | 'checking' | 'succeeded' | 'unknown' | 'cancelled' | 'expired' | 'rejected';
|
|
19
|
+
export type OperationConfirmationState = 'pending' | 'executing' | 'checking' | 'processing' | 'failed' | 'succeeded' | 'unknown' | 'cancelled' | 'expired' | 'rejected';
|
|
17
20
|
/** Adapter proof that no persistent operation was accepted (validation or authorization rejection). */
|
|
18
21
|
export declare class OperationRejectedError extends Error {
|
|
19
22
|
readonly textMessage?: OperationErrorMessage;
|
|
@@ -29,4 +32,6 @@ export interface OperationConfirmation {
|
|
|
29
32
|
cancel(): void;
|
|
30
33
|
}
|
|
31
34
|
/** Explicit confirmation, duplicate-click protection and read-only recovery of uncertain writes. */
|
|
32
|
-
export declare function createOperationConfirmation(proposal: OperationProposal
|
|
35
|
+
export declare function createOperationConfirmation(proposal: OperationProposal<OperationResult>, scopeIsCurrent: () => boolean, now?: () => number, language?: LanguageContext, receiptScopeIsCurrent?: () => boolean): OperationConfirmation;
|
|
36
|
+
/** Restores only the read path; confirm/cancel cannot execute or discard an already submitted command. */
|
|
37
|
+
export declare function restoreOperationConfirmation(recovery: OperationRecovery, scopeIsCurrent: () => boolean, language?: LanguageContext): OperationConfirmation;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as e, y as t } from "./platform-workbench-
|
|
2
|
-
import { $r as n, Vt as r, Xr as i, bn as a, ni as o,
|
|
1
|
+
import { E as e, y as t } from "./platform-workbench-C4OFiuG5.js";
|
|
2
|
+
import { $r as n, Vt as r, Xr as i, bn as a, ni as o, ro as s, zr as c } from "./platform-components-D3NvMY3T.js";
|
|
3
3
|
import { computed as l, onMounted as u } from "vue";
|
|
4
4
|
//#region src/views/useWorkflowConfigurationContext.ts
|
|
5
5
|
function d(d) {
|