@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.
Files changed (69) hide show
  1. package/dist/{BusinessActivityLogView-BPnAoGim.js → BusinessActivityLogView-DlNB97pu.js} +2 -2
  2. package/dist/{BusinessLogListDrawer-CXabZOOM.js → BusinessLogListDrawer-ByiwQP1m.js} +163 -163
  3. package/dist/CodeConfigurationView-91B9dHjD.js +2333 -0
  4. package/dist/{ConfigurationTranslationView-BsWyLeRd.js → ConfigurationTranslationView-ClovkYJt.js} +22 -22
  5. package/dist/{LoginAuditLogView-D3TJdzWM.js → LoginAuditLogView-Blg9giRX.js} +2 -2
  6. package/dist/{ModuleActionManagementView-C9LiwMM3.js → ModuleActionManagementView-Chr_XTJ3.js} +193 -193
  7. package/dist/{ModuleGovernanceView-CYZzHLHa.js → ModuleGovernanceView-BNlRHqSj.js} +4054 -4072
  8. package/dist/{RequestErrorLogView-D85h_q4P.js → RequestErrorLogView-CGczIKQy.js} +2 -2
  9. package/dist/{RoleDetailWorkspaceView-VHvh-_Sj.js → RoleDetailWorkspaceView-CPH9cga9.js} +75 -75
  10. package/dist/{RuntimeLogView-D-MrVfT7.js → RuntimeLogView-DF-1k-9y.js} +60 -60
  11. package/dist/WorkflowAdministrationView-CCXry0G4.js +650 -0
  12. package/dist/WorkflowConfigurationView-BqSfYua2.js +2227 -0
  13. package/dist/{WorkflowWorkbenchView-BN3ckTHB.js → WorkflowWorkbenchView-DUFfO3Gf.js} +248 -248
  14. package/dist/{codeConfiguration-B5OjCYZ6.js → codeConfiguration-BRxveKen.js} +71 -54
  15. package/dist/configurationEditorNavigation-DeXvfJyr.js +15 -0
  16. package/dist/formulaReferences-CKkkdA_R.js +23 -0
  17. package/dist/index.css +1 -1
  18. package/dist/index.js +1239 -1131
  19. package/dist/{moduleMenuWorkspace-DhI4_LpA.js → moduleMenuWorkspace-D_A94ZgR.js} +218 -229
  20. package/dist/{platform-components-Ca8SikTY.js → platform-components-DSMqalgQ.js} +4660 -4538
  21. package/dist/{platform-workbench-DpXhb4F6.js → platform-workbench-B53hydzq.js} +6055 -5909
  22. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +2 -0
  23. package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +2 -0
  24. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +37 -3
  25. package/dist/types/dynamic-page-runtime/ModulePageHostSession.vue.d.ts +2 -0
  26. package/dist/types/dynamic-page-runtime/ModuleReferenceRecordDetailBrowser.vue.d.ts +16 -4
  27. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +2 -0
  28. package/dist/types/dynamic-page-runtime/recordFormAssistantCapabilities.d.ts +4 -2
  29. package/dist/types/dynamic-page-runtime/recordFormDraftAccess.d.ts +2 -0
  30. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +1 -0
  31. package/dist/types/platform-admin-runtime/realtime.d.ts +3 -1
  32. package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +2 -0
  33. package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +11 -1
  34. package/dist/types/platform-components/index.d.ts +2 -2
  35. package/dist/types/platform-components/optionFieldOptionCache.d.ts +11 -1
  36. package/dist/types/platform-components/recordFormFieldModel.d.ts +1 -0
  37. package/dist/types/platform-components/referenceRecordDetailBrowser.d.ts +17 -2
  38. package/dist/types/platform-components/useWorkflowDesignSession.d.ts +141 -0
  39. package/dist/types/platform-components/workflowDesignEditing.d.ts +8 -7
  40. package/dist/types/platform-components/workflowDesignOperations.d.ts +107 -0
  41. package/dist/types/views/CodeRuleRecoveryPanel.vue.d.ts +20 -0
  42. package/dist/types/views/businessRuleGovernance.d.ts +1 -2
  43. package/dist/types/views/codeConfiguration.d.ts +29 -1
  44. package/dist/types/views/codeConfigurationAssistantSurface.d.ts +17 -0
  45. package/dist/types/views/codeRuleSaveRecovery.d.ts +12 -0
  46. package/dist/types/views/useCodeConfigurationAssistant.d.ts +10 -0
  47. package/dist/types/views/useCodeConfigurationSession.d.ts +16 -0
  48. package/dist/types/views/useWorkflowConfigurationAssistant.d.ts +16 -0
  49. package/dist/types/views/useWorkflowConfigurationContext.d.ts +16 -2
  50. package/dist/types/views/useWorkflowConfigurationSession.d.ts +146 -0
  51. package/dist/types/views/workflowConfigurationAssistantSurface.d.ts +169 -0
  52. package/dist/types/views/workflowSaveRecovery.d.ts +11 -0
  53. package/dist/types/vue-ui-antdv/components/sidePanelHost.d.ts +3 -1
  54. package/dist/types/vue-ui-antdv/index.d.ts +1 -0
  55. package/dist/types/web-contracts/operation.d.ts +7 -0
  56. package/dist/types/web-core/assistantConfirmation.d.ts +4 -4
  57. package/dist/types/web-core/assistantSurface.d.ts +2 -2
  58. package/dist/types/web-core/businessNotificationSession.d.ts +27 -0
  59. package/dist/types/web-core/formulaReferences.d.ts +2 -0
  60. package/dist/types/web-core/index.d.ts +1 -0
  61. package/dist/types/web-core/operationConfirmation.d.ts +13 -8
  62. package/dist/types/web-core/workflow.d.ts +11 -1
  63. package/dist/useWorkflowConfigurationContext-BuBDdUcQ.js +78 -0
  64. package/dist/{workspaceViews-CLOyLZMZ.js → workspaceViews-BSVtjZj1.js} +689 -689
  65. package/package.json +1 -1
  66. package/dist/CodeConfigurationView-B1Lgdnkj.js +0 -1667
  67. package/dist/WorkflowAdministrationView-DHPlIJXF.js +0 -650
  68. package/dist/WorkflowConfigurationView-BhQl7NjM.js +0 -980
  69. package/dist/useWorkflowConfigurationContext-DpzBpKa3.js +0 -66
@@ -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, scopeIsCurrent: () => boolean, now?: () => number, language?: LanguageContext): AssistantOperationConfirmation;
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<OperationPresentation | undefined>, scopeIsCurrent: () => boolean, language?: LanguageContext): AssistantOperationConfirmation;
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;
@@ -0,0 +1,2 @@
1
+ /** Reads only real field tokens; references inside string literals are formula text, not dependencies. */
2
+ export declare function referencedFormulaFields(expression: string): string[];
@@ -36,3 +36,4 @@ export * from './recordReadRefreshGuard';
36
36
  export * from './recordReadView';
37
37
  export * from './useRecordReadSession';
38
38
  export * from './recordReadEntry';
39
+ export * from './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<OperationPresentation>;
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, scopeIsCurrent: () => boolean, now?: () => number, language?: LanguageContext): OperationConfirmation;
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;
@@ -67,7 +67,17 @@ export declare function createWorkflowDefinitionClient(http: HttpClient, moduleA
67
67
  upgrade: (id: string) => Promise<WorkflowVersion>;
68
68
  saveSelection: (id: string, payload: WorkflowDefinitionSelection) => Promise<WorkflowDefinition>;
69
69
  design: (id: string, versionId: string) => Promise<WorkflowDesign>;
70
- saveDesign: (id: string, versionId: string, expectedVersion: number, design: WorkflowDesign) => Promise<WorkflowVersion>;
70
+ saveDesign: (id: string, versionId: string, expectedVersion: number, design: WorkflowDesign, requestId?: string) => Promise<WorkflowVersion>;
71
+ saveReceipt: (id: string, versionId: string, requestId: string) => Promise<{
72
+ committed: boolean;
73
+ cancelled: boolean;
74
+ savedVersion: number | null;
75
+ }>;
76
+ abandonSave: (id: string, versionId: string, requestId: string) => Promise<{
77
+ committed: boolean;
78
+ cancelled: boolean;
79
+ savedVersion: number | null;
80
+ }>;
71
81
  validate: (id: string, versionId: string) => Promise<unknown>;
72
82
  publish: (id: string, versionId: string, definitionVersion: number, expectedVersion: number) => Promise<WorkflowVersion>;
73
83
  changeStatus: (id: string, action: "enable" | "disable" | "archive", expectedVersion: number) => Promise<WorkflowDefinition>;
@@ -0,0 +1,78 @@
1
+ import { D as e, b as t, y as n } from "./platform-workbench-B53hydzq.js";
2
+ import { Qr as r, Sn as i, Ut as a, Vr as o, ao as s, ii as c, ti as l } from "./platform-components-DSMqalgQ.js";
3
+ import { computed as u, inject as d, onMounted as f, toValue as p, watch as m } from "vue";
4
+ //#region src/views/useWorkflowConfigurationContext.ts
5
+ function h(h) {
6
+ let g = s(), _ = l({ moduleAlias: "platform.workflow.definition" }), v = o(_.http, p(h)), y = () => o(_.http, p(h)), b = {
7
+ loadFunctions: async () => (await y().formulaFunctions()).map((e) => ({
8
+ name: e.name,
9
+ title: e.title,
10
+ description: e.description,
11
+ example: e.example,
12
+ signature: `${e.name}(${e.parameters.map((e) => e.name).join(", ")})`
13
+ })),
14
+ validate: (e) => y().validateCondition(e)
15
+ }, x = n(), S = d(t, void 0), C = u(() => JSON.stringify([
16
+ p(h),
17
+ x?.value,
18
+ S?.value
19
+ ])), w = u(() => (C.value, r({
20
+ http: _.http,
21
+ language: g,
22
+ moduleAlias: p(h),
23
+ runtimeAccess: "VIEW"
24
+ }))), T = u(() => x?.value?.tenantId ? r({
25
+ http: _.http,
26
+ language: g,
27
+ moduleAlias: "iam.organization",
28
+ runtimeAccess: "REFERENCE"
29
+ }) : void 0);
30
+ e({
31
+ moduleAlias: p(h),
32
+ predicate: (e) => e.type === "configuration-translations-changed",
33
+ handler: async () => {
34
+ try {
35
+ await w.value.runtime.refreshTexts?.();
36
+ } catch (e) {
37
+ i(e, {
38
+ source: "workflow-design",
39
+ phase: "load"
40
+ });
41
+ }
42
+ }
43
+ });
44
+ let E = u(() => c(w.value.runtime)), D = u(() => !w.value.runtime.snapshot() && !w.value.runtime.error()), O = u(() => [...a(E.value?.uiDescriptor)].map(([e, t]) => ({
45
+ name: e,
46
+ label: t.label ?? e,
47
+ valueType: t.valueType,
48
+ assistantPolicy: t.assistantPolicy,
49
+ fieldControl: t.fieldControl,
50
+ referenceModule: t.reference?.targetModuleAlias
51
+ })));
52
+ return f(async () => {
53
+ try {
54
+ await w.value.runtime.ready;
55
+ } catch (e) {
56
+ i(e, {
57
+ source: "workflow-design",
58
+ phase: "load"
59
+ });
60
+ }
61
+ }), m(C, () => {
62
+ w.value.runtime.ready.catch((e) => i(e, {
63
+ source: "workflow-design",
64
+ phase: "load"
65
+ }));
66
+ }), {
67
+ context: _,
68
+ client: v,
69
+ language: g,
70
+ businessRuntime: E,
71
+ businessLoading: D,
72
+ fields: O,
73
+ organizationContext: T,
74
+ conditionTools: b
75
+ };
76
+ }
77
+ //#endregion
78
+ export { h as t };