@ximatai/muyun-web-app 0.26.11 → 0.26.12

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 (142) hide show
  1. package/dist/ModuleActionManagementView-BHEooZ5L.js +672 -0
  2. package/dist/ModuleGovernanceView-DB3TWlMy.js +28521 -0
  3. package/dist/{RoleDetailWorkspaceView-UOm1ejGH.js → RoleDetailWorkspaceView-D6X7pAj5.js} +467 -457
  4. package/dist/index.css +1 -1
  5. package/dist/index.js +1942 -359
  6. package/dist/moduleGovernanceWorkspaceView-C5pqJOEJ.js +40 -0
  7. package/dist/platform-workbench-DJj42YQP.js +22911 -0
  8. package/dist/rolldown-runtime-DPVXH0ON.js +17 -0
  9. package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +0 -2
  10. package/dist/types/app/LoginView.vue.d.ts +1 -1
  11. package/dist/types/app/workbenchRouteSync.d.ts +10 -1
  12. package/dist/types/app/workbenchSessionTabs.d.ts +22 -0
  13. package/dist/types/app/workbenchStartup.d.ts +7 -0
  14. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +4 -1
  15. package/dist/types/consumer/index.d.ts +1 -0
  16. package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +1 -1
  17. package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +12 -1
  18. package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +17 -0
  19. package/dist/types/dynamic-page-runtime/NavigatorPanelActions.vue.d.ts +22 -0
  20. package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +11 -11
  21. package/dist/types/dynamic-page-runtime/childAggregateContext.d.ts +11 -0
  22. package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +80 -26
  23. package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +1 -1
  24. package/dist/types/dynamic-page-runtime/formActionResult.d.ts +5 -0
  25. package/dist/types/dynamic-page-runtime/formComputeCoordinator.d.ts +7 -4
  26. package/dist/types/dynamic-page-runtime/formValidationCoordinator.d.ts +17 -0
  27. package/dist/types/dynamic-page-runtime/index.d.ts +1 -1
  28. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +6 -0
  29. package/dist/types/dynamic-page-runtime/pageActionInvocation.d.ts +7 -0
  30. package/dist/types/dynamic-page-runtime/pageActionPlacement.d.ts +14 -0
  31. package/dist/types/dynamic-page-runtime/recordMutationPayload.d.ts +3 -0
  32. package/dist/types/formula/FormulaRuntime.d.ts +6 -0
  33. package/dist/types/platform-admin-runtime/module-menu/ModuleMenuDrawer.vue.d.ts +7 -0
  34. package/dist/types/platform-admin-runtime/module-menu/ModuleMenuEntriesSection.vue.d.ts +7 -0
  35. package/dist/types/platform-admin-runtime/module-menu/moduleMenuClient.d.ts +16 -0
  36. package/dist/types/platform-admin-runtime/platformModulePageEnhancement.d.ts +2 -0
  37. package/dist/types/platform-components/AdaptiveHeaderActionBar.vue.d.ts +24 -0
  38. package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +15 -1
  39. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +8 -3
  40. package/dist/types/platform-components/DetailRelationListPanel.vue.d.ts +1 -1
  41. package/dist/types/platform-components/FormulaExpressionEditor.vue.d.ts +54 -0
  42. package/dist/types/platform-components/ManagementExplorerColumn.vue.d.ts +15 -3
  43. package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +5 -3
  44. package/dist/types/platform-components/ManagementWorkspace.vue.d.ts +11 -0
  45. package/dist/types/platform-components/ModuleActionButton.vue.d.ts +3 -3
  46. package/dist/types/platform-components/QueryGroupedSummary.vue.d.ts +21 -0
  47. package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +2 -0
  48. package/dist/types/platform-components/RecordDetailFields.vue.d.ts +41 -2
  49. package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +4 -1
  50. package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +2 -0
  51. package/dist/types/platform-components/RecordExplorerCreateButton.vue.d.ts +16 -0
  52. package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +16 -5
  53. package/dist/types/platform-components/RecordFieldLabel.vue.d.ts +16 -0
  54. package/dist/types/platform-components/RecordFormFields.vue.d.ts +21 -2
  55. package/dist/types/platform-components/RecordFormGrid.vue.d.ts +24 -0
  56. package/dist/types/platform-components/RecordListExplorer.vue.d.ts +23 -1
  57. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +1 -1
  58. package/dist/types/platform-components/RecordPanelButton.vue.d.ts +9 -3
  59. package/dist/types/platform-components/RecordPermissionDialog.vue.d.ts +15 -0
  60. package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
  61. package/dist/types/platform-components/RecordQueryEnumFilter.vue.d.ts +17 -0
  62. package/dist/types/platform-components/RecordQueryListCell.vue.d.ts +12 -0
  63. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +104 -61
  64. package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +124 -0
  65. package/dist/types/platform-components/RecordRelationTable.vue.d.ts +62 -0
  66. package/dist/types/platform-components/RecordRelationValue.vue.d.ts +9 -0
  67. package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +3 -3
  68. package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +2 -0
  69. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +14 -3
  70. package/dist/types/platform-components/adaptiveHeaderActionLayout.d.ts +22 -0
  71. package/dist/types/platform-components/formulaExpressionTokens.d.ts +18 -0
  72. package/dist/types/platform-components/index.d.ts +20 -1
  73. package/dist/types/platform-components/managementExplorerContext.d.ts +11 -0
  74. package/dist/types/platform-components/managementWorkspaceContext.d.ts +20 -0
  75. package/dist/types/platform-components/managementWorkspaceLayout.d.ts +14 -0
  76. package/dist/types/platform-components/optionFieldOptionCache.d.ts +1 -1
  77. package/dist/types/platform-components/recordActionBarModel.d.ts +3 -0
  78. package/dist/types/platform-components/recordQueryListColumnModel.d.ts +42 -0
  79. package/dist/types/platform-components/selectionRefresh.d.ts +9 -0
  80. package/dist/types/platform-components/sortPartitionKey.d.ts +5 -0
  81. package/dist/types/platform-workbench/index.d.ts +2 -0
  82. package/dist/types/platform-workbench/useWorkspaceViewUnsavedState.d.ts +5 -0
  83. package/dist/types/platform-workbench/workbenchNavigation.d.ts +5 -1
  84. package/dist/types/platform-workbench/workspaceViewContract.d.ts +5 -0
  85. package/dist/types/platform-workbench/workspaceViewHost.d.ts +5 -0
  86. package/dist/types/platform-workbench/workspaceViewNavigation.d.ts +9 -0
  87. package/dist/types/platform-workbench/workspaceViewUnsavedState.d.ts +3 -0
  88. package/dist/types/views/BusinessRuleGovernanceSurface.vue.d.ts +10 -0
  89. package/dist/types/views/MetadataGovernanceSurface.vue.d.ts +8 -0
  90. package/dist/types/views/MetadataSourceTree.vue.d.ts +44 -0
  91. package/dist/types/views/ModuleBusinessPreview.vue.d.ts +7 -0
  92. package/dist/types/views/ModuleExperienceProfileOverview.vue.d.ts +7 -0
  93. package/dist/types/views/ModuleGovernanceView.vue.d.ts +9 -0
  94. package/dist/types/views/PageCompositionDescriptorPreview.vue.d.ts +54 -0
  95. package/dist/types/views/PageCompositionTree.vue.d.ts +103 -0
  96. package/dist/types/views/PageCompositionWorkspace.vue.d.ts +7 -0
  97. package/dist/types/views/PageQuerySummaryEditor.vue.d.ts +48 -0
  98. package/dist/types/views/businessRuleGovernance.d.ts +201 -0
  99. package/dist/types/views/metadataModelEditSession.d.ts +75 -0
  100. package/dist/types/views/metadataModelTree.d.ts +40 -0
  101. package/dist/types/views/metadataNaming.d.ts +7 -0
  102. package/dist/types/views/metadataOrchestrationState.d.ts +161 -6
  103. package/dist/types/views/metadataSourceTree.d.ts +10 -0
  104. package/dist/types/views/moduleGovernanceWorkspaceView.d.ts +9 -0
  105. package/dist/types/views/pageCompositionDraftState.d.ts +375 -0
  106. package/dist/types/views/pageCompositionDragPayload.d.ts +26 -0
  107. package/dist/types/views/pageCompositionMode.d.ts +86 -0
  108. package/dist/types/views/pageCompositionPlacement.d.ts +48 -0
  109. package/dist/types/views/pageCompositionTransport.d.ts +9 -0
  110. package/dist/types/views/usePageCompositionActionPreviewDrag.d.ts +41 -0
  111. package/dist/types/views/usePageCompositionPreviewDrag.d.ts +48 -0
  112. package/dist/types/vue-ui-antdv/components/UiActionButton.vue.d.ts +2 -2
  113. package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +6 -3
  114. package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +5 -2
  115. package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
  116. package/dist/types/vue-ui-antdv/components/UiPopover.vue.d.ts +22 -0
  117. package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +1 -1
  118. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +5 -1
  119. package/dist/types/vue-ui-antdv/components/UiSwitch.vue.d.ts +1 -1
  120. package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +38 -1
  121. package/dist/types/vue-ui-antdv/components/UiTokenInput.vue.d.ts +62 -0
  122. package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +63 -9
  123. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
  124. package/dist/types/vue-ui-antdv/index.d.ts +6 -1
  125. package/dist/types/vue-ui-antdv/treeStructure.d.ts +18 -0
  126. package/dist/types/vue-ui-antdv/types.d.ts +64 -0
  127. package/dist/types/vue-ui-antdv/useTreeLoader.d.ts +21 -0
  128. package/dist/types/vue-ui-antdv/useTreeMotion.d.ts +9 -0
  129. package/dist/types/vue-ui-antdv/useUiTreeDrag.d.ts +32 -0
  130. package/dist/types/web-contracts/index.d.ts +67 -7
  131. package/dist/types/web-core/module/index.d.ts +1 -0
  132. package/dist/types/web-core/module/moduleContext.d.ts +15 -0
  133. package/dist/types/web-core/module/pageActionEntries.d.ts +21 -0
  134. package/dist/types/web-core/module/runtimeContext.d.ts +7 -3
  135. package/dist/types/web-core/module/staticModuleClient.d.ts +25 -2
  136. package/dist/workspaceViews-DI_1vYX9.js +3518 -0
  137. package/package.json +1 -1
  138. package/dist/MetadataOrchestrationView-F_Bmfn9K.js +0 -661
  139. package/dist/ModuleActionManagementView-Db_3Twom.js +0 -597
  140. package/dist/platform-components-59b4qzUL.js +0 -12489
  141. package/dist/types/views/metadataOrchestrationWorkspaceView.d.ts +0 -6
  142. package/dist/workspaceViews-BvV8mpML.js +0 -11149
@@ -0,0 +1,20 @@
1
+ import { type ComputedRef, type InjectionKey, type Ref } from 'vue';
2
+ export interface ManagementWorkspaceExplorerRegistration {
3
+ id: string;
4
+ title: string;
5
+ hasSelection: boolean;
6
+ }
7
+ export interface ManagementWorkspaceContext {
8
+ registerExplorer: (registration: ManagementWorkspaceExplorerRegistration) => void;
9
+ unregisterExplorer: (id: string) => void;
10
+ isExplorerCollapsed: (id: string) => boolean;
11
+ toggleExplorer: (id: string) => void;
12
+ collapsedExplorerOffset: (id: string) => number;
13
+ hasCollapsedExplorers: ComputedRef<boolean>;
14
+ }
15
+ export declare const WORKSPACE_NAVIGATION_DISABLED: InjectionKey<ComputedRef<boolean>>;
16
+ export declare const MANAGEMENT_WORKSPACE_CONTEXT: InjectionKey<ManagementWorkspaceContext>;
17
+ export declare const WORKSPACE_SORTING_BUSY: InjectionKey<ComputedRef<boolean>>;
18
+ export declare const WORKSPACE_SORT_ACTIVITY: InjectionKey<(active: boolean) => void>;
19
+ /** Reports an actual sorting request, never the user's sorting toggle. */
20
+ export declare function useWorkspaceSortActivity(active: Ref<boolean>): void;
@@ -11,4 +11,18 @@ export declare const MANAGEMENT_WORKSPACE_LAYOUT: {
11
11
  readonly detailMinWidth: 560;
12
12
  readonly columnGap: 12;
13
13
  };
14
+ /** Shared geometry for collapsible micro-list tabs and their left rail. */
15
+ export declare const MANAGEMENT_COLLAPSED_EXPLORER_LAYOUT: {
16
+ readonly railWidth: 36;
17
+ readonly tabPaddingBlockStart: 8;
18
+ readonly tabPaddingBlockEnd: 4;
19
+ readonly titleFontSize: 15;
20
+ readonly titleLineHeight: 18;
21
+ /** Visual glyph size; its accessible click target remains 22px. */
22
+ readonly iconSize: 14;
23
+ readonly iconHitArea: 22;
24
+ readonly tabContentGap: 8;
25
+ readonly tabStackGap: 8;
26
+ };
27
+ export declare function collapsedExplorerTabHeight(title: string): number;
14
28
  export declare function listDetailWorkspaceMinWidth(explorerCount: number): number;
@@ -1,3 +1,3 @@
1
1
  import type { OptionItemDescriptor } from '../web-contracts/index';
2
2
  import type { ModuleContext } from '../web-core/index';
3
- export declare function loadOptionFieldItems(context: ModuleContext<unknown>, fieldName: string): Promise<OptionItemDescriptor[]>;
3
+ export declare function loadOptionFieldItems(context: ModuleContext<unknown>, fieldName: string, entityAlias?: string): Promise<OptionItemDescriptor[]>;
@@ -14,6 +14,8 @@ export interface RecordActionItem {
14
14
  disabledReason?: string;
15
15
  loading?: boolean;
16
16
  primary?: boolean;
17
+ /** Business importance; the detail shell decides direct display versus “更多”. */
18
+ actionLevel?: 'primary' | 'standard' | 'secondary';
17
19
  danger?: boolean;
18
20
  iconName?: UiIconName;
19
21
  /** Runtime-only authorization source for actions rendered outside their owning module surface. */
@@ -34,5 +36,6 @@ type RecordActionContext = Pick<ModuleContext<unknown>, 'action'> & {
34
36
  recordActionsSnapshot?: ModuleContext<unknown>['recordActionsSnapshot'];
35
37
  };
36
38
  export declare function resolveRecordActions(context: RecordActionContext, actions: RecordActionItem[], defaultLoading?: boolean, recordId?: string): ResolvedRecordActionItem[];
39
+ export declare function defaultActionIcon(action: RecordActionItem): UiIconName | undefined;
37
40
  export declare function mergeRecordActions(baseActions: RecordActionItem[], extraActions: RecordActionItem[]): RecordActionItem[];
38
41
  export {};
@@ -0,0 +1,42 @@
1
+ import type { OptionItemDescriptor, QuerySchemaField, ResolvedViewDescriptor, ResolvedViewFieldDescriptor } from '../web-contracts/index';
2
+ import type { Component } from 'vue';
3
+ export type QueryListRecord = Record<string, unknown> & {
4
+ id?: string;
5
+ enabled?: boolean;
6
+ };
7
+ export type RecordQueryListMode = 'normal' | 'recycleBin';
8
+ export type StandardCrudRowActionKey = 'view' | 'edit' | 'delete';
9
+ /**
10
+ * Source-neutral list-column projection consumed by the standard table shell.
11
+ * It deliberately carries presentation facts only; cell rendering remains the table's responsibility.
12
+ */
13
+ export interface RecordQueryListColumn {
14
+ key: string;
15
+ title: string;
16
+ type?: 'text' | 'enabledStatus' | 'booleanStatus' | 'tagList' | 'datetime' | 'fileSize' | 'colorPicker';
17
+ booleanStatus?: ResolvedViewFieldDescriptor['booleanStatus'];
18
+ width?: string;
19
+ align?: 'left' | 'center' | 'right';
20
+ titleField?: string;
21
+ /** Only descriptor-declared option fields load a runtime option catalog. */
22
+ optionBinding?: boolean;
23
+ /** Dynamic child entity whose declared option binding owns this field. */
24
+ optionEntityAlias?: string;
25
+ /** Runtime dictionary/reference options used when the response has no title companion. */
26
+ optionItems?: OptionItemDescriptor[];
27
+ /** Maximum visible lines for text cells. Defaults to one line. */
28
+ maxDisplayLines?: number;
29
+ render?: (record: QueryListRecord) => string;
30
+ }
31
+ export interface RecordQueryListCellComponent {
32
+ key: string;
33
+ component: Component;
34
+ }
35
+ /**
36
+ * Compiles the source-neutral resolved list descriptor into the standard table's presentation model.
37
+ *
38
+ * `queryFields` is optional because descriptors normally carry their own value and option facts. It
39
+ * preserves the runtime list's compatibility fallback for older descriptors that still rely on the
40
+ * query schema for timestamp and option-title information.
41
+ */
42
+ export declare function resolveRecordQueryListColumns(view: ResolvedViewDescriptor | undefined, queryFields?: readonly QuerySchemaField[]): RecordQueryListColumn[];
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Reconciles a controlled selection with a freshly loaded collection.
3
+ *
4
+ * Platform components never infer a business fallback; callers supply it when their domain has
5
+ * one. The shared rule is simply that a still-present stable key keeps focus after refresh.
6
+ */
7
+ export declare function reconcileSelectedKey<Key>(previous: Key | undefined, available: Iterable<Key>, fallback?: Key): Key | undefined;
8
+ /** Keeps only selected keys that are still present in the refreshed result set. */
9
+ export declare function reconcileSelectedKeys<Key>(previous: Iterable<Key>, available: Iterable<Key>): Key[];
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Encodes partition values without collapsing distinct persisted values such as null and "".
3
+ * JSON is used instead of a delimiter so values cannot collide through delimiter characters.
4
+ */
5
+ export declare function sortPartitionKey(values: readonly unknown[]): string;
@@ -8,6 +8,8 @@ export type { OpenRouteOptions, WorkbenchNavigation, WorkbenchPageOpenResult } f
8
8
  export { routeUrlWithOpenOptions } from './workbenchNavigation';
9
9
  export { configureWorkspaceViewContributions, createWorkspaceViewDescriptor, createWorkspaceViewRegistry, dismissWorkspaceViewDescriptor, resolveWorkspaceView, } from './workspaceViews';
10
10
  export { provideWorkspaceViewHost, useWorkspaceViewHost } from './workspaceViewHost';
11
+ export { useWorkspaceViewNavigation } from './workspaceViewNavigation';
12
+ export { useWorkspaceViewUnsavedState } from './useWorkspaceViewUnsavedState';
11
13
  export { defineWorkspaceView } from './workspaceViewContract';
12
14
  export type { ResolvedWorkspaceView, WorkspaceViewRegistry } from './workspaceViews';
13
15
  export type { WorkspaceViewDefinition, WorkspaceViewInput, WorkspaceViewPresentation, WorkspaceDrawerProfile, } from './workspaceViewContract';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Lets a workspace panel declare unsaved local state without exposing or
3
+ * duplicating its draft in the workbench shell.
4
+ */
5
+ export declare function useWorkspaceViewUnsavedState(source: string, isDirty: () => boolean): void;
@@ -1,4 +1,4 @@
1
- import type { PageDescriptor, RouteQueryValue } from '../web-contracts/index';
1
+ import type { MenuRecord, MenuTreeNode, PageDescriptor, RouteQueryValue } from '../web-contracts/index';
2
2
  export interface OpenRouteOptions {
3
3
  /** Opens an independent internal tab instance without changing the public URL. */
4
4
  newInstance?: boolean;
@@ -6,6 +6,10 @@ export interface OpenRouteOptions {
6
6
  query?: Record<string, RouteQueryValue>;
7
7
  }
8
8
  export interface WorkbenchNavigation {
9
+ /** Reloads visible menus without resetting open pages or their edits. */
10
+ refreshMenus?(): Promise<MenuTreeNode[]>;
11
+ /** Uses the same navigation policy as clicking a sidebar menu. */
12
+ openMenu?(menu: MenuRecord): void;
9
13
  openRoute(path: string, options?: OpenRouteOptions): WorkbenchPageOpenResult;
10
14
  replaceRoute(path: string, options?: OpenRouteOptions): WorkbenchPageOpenResult;
11
15
  closeCurrentTab(fallbackPath: string): WorkbenchPageOpenResult;
@@ -13,6 +13,11 @@ export interface WorkspaceViewDefinition<TInput extends WorkspaceViewInput> {
13
13
  drawerProfile?: WorkspaceDrawerProfile;
14
14
  routeTitle?: string;
15
15
  titleOf(input: TInput): string;
16
+ /**
17
+ * Returns the input fields that identify one workbench tab. Other parsed
18
+ * input fields remain URL-restorable view state and can change in-place.
19
+ */
20
+ tabIdentityParamsOf?(input: TInput): Record<string, RouteQueryValue>;
16
21
  parentRouteQueryOf?(input: TInput): Record<string, RouteQueryValue>;
17
22
  parse(query: Record<string, RouteQueryValue>): TInput | undefined;
18
23
  presentations: readonly WorkspaceViewPresentation[];
@@ -1,7 +1,12 @@
1
+ import type { RouteQueryValue } from '../web-contracts/index';
1
2
  import type { WorkspaceViewPresentation } from './workspaceViewContract';
2
3
  export interface WorkspaceViewHost {
3
4
  presentation: WorkspaceViewPresentation;
4
5
  setTitle(title: string): void;
6
+ /** Replaces URL-restorable state without creating another workbench tab. */
7
+ replaceQuery(query: Record<string, RouteQueryValue | undefined>): void;
8
+ /** Registers a local draft signal used only when the owning workbench tab closes. */
9
+ registerUnsavedState(source: string, isDirty: () => boolean): () => void;
5
10
  dismiss(): void;
6
11
  /** Closes the current independent workbench view. */
7
12
  close(): void;
@@ -0,0 +1,9 @@
1
+ import type { RouteQueryValue } from '../web-contracts/index';
2
+ /**
3
+ * Updates navigation state owned by the current workspace view. The workbench
4
+ * replaces the current page descriptor, so this does not open another tab or
5
+ * add a browser-history entry.
6
+ */
7
+ export declare function useWorkspaceViewNavigation(): {
8
+ replaceQuery(query: Record<string, RouteQueryValue | undefined>): void;
9
+ };
@@ -0,0 +1,3 @@
1
+ export declare function registerWorkspaceViewUnsavedState(pageKey: string, source: string, isDirty: () => boolean): () => void;
2
+ export declare function workspaceViewUnsavedStateSources(pageKey: string): string[];
3
+ export declare function clearWorkspaceViewUnsavedState(pageKey: string): void;
@@ -0,0 +1,10 @@
1
+ import { type BusinessRuleFormulaCapability, type BusinessRuleFormulaCatalogEntry } from './businessRuleGovernance';
2
+ type __VLS_Props = {
3
+ moduleAlias: string;
4
+ moduleTitle?: string;
5
+ /** A server-supplied portable catalogue can replace the built-in capability descriptors. */
6
+ formulaCapabilities?: readonly (BusinessRuleFormulaCapability | BusinessRuleFormulaCatalogEntry)[];
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,8 @@
1
+ type __VLS_Props = {
2
+ moduleAlias: string;
3
+ moduleTitle?: string;
4
+ title?: string;
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,44 @@
1
+ import { type UiTreeNode } from '../vue-ui-antdv/index';
2
+ type __VLS_Props = {
3
+ nodes: UiTreeNode[];
4
+ title?: string;
5
+ embedded?: boolean;
6
+ searchKeyword?: string;
7
+ showSystemFields?: boolean;
8
+ searchable?: boolean;
9
+ refreshDisabled?: boolean;
10
+ loading?: boolean;
11
+ unavailable?: boolean;
12
+ unavailableDescription?: string;
13
+ };
14
+ declare var __VLS_34: {};
15
+ type __VLS_Slots = {} & {
16
+ default?: (props: typeof __VLS_34) => any;
17
+ };
18
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ refresh: () => any;
20
+ "update:searchKeyword": (value: string) => any;
21
+ "update:showSystemFields": (value: boolean) => any;
22
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
+ onRefresh?: (() => any) | undefined;
24
+ "onUpdate:searchKeyword"?: ((value: string) => any) | undefined;
25
+ "onUpdate:showSystemFields"?: ((value: boolean) => any) | undefined;
26
+ }>, {
27
+ title: string;
28
+ loading: boolean;
29
+ unavailable: boolean;
30
+ embedded: boolean;
31
+ refreshDisabled: boolean;
32
+ searchKeyword: string;
33
+ searchable: boolean;
34
+ showSystemFields: boolean;
35
+ unavailableDescription: string;
36
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
38
+ declare const _default: typeof __VLS_export;
39
+ export default _default;
40
+ type __VLS_WithSlots<T, S> = T & {
41
+ new (): {
42
+ $slots: S;
43
+ };
44
+ };
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ moduleAlias: string;
3
+ moduleTitle?: string;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ moduleAlias: string;
3
+ moduleTitle?: string;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { type ModuleGovernanceTab } from './moduleGovernanceWorkspaceView';
2
+ type __VLS_Props = {
3
+ moduleAlias: string;
4
+ moduleTitle?: string;
5
+ governanceTab?: ModuleGovernanceTab;
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: typeof __VLS_export;
9
+ export default _default;
@@ -0,0 +1,54 @@
1
+ import type { ModuleRuntimeAction } from '../web-core/index';
2
+ import type { ResolvedModuleUiDescriptor } from '../web-contracts/index';
3
+ import { type CompositionPlacementSource, type CompositionPlacementTarget, type PageCompositionStructure } from './pageCompositionPlacement';
4
+ import { type PageQuerySummary } from './pageCompositionDraftState';
5
+ import { type PageCompositionActionPlacement } from './pageCompositionMode';
6
+ type PreviewMode = 'list' | 'query' | 'detail' | 'edit';
7
+ type PreviewSlot = 'list' | 'form';
8
+ type __VLS_Props = {
9
+ descriptor: ResolvedModuleUiDescriptor;
10
+ moduleAlias: string;
11
+ mode: PreviewMode;
12
+ selectedFieldName?: string;
13
+ /** Allows the active preview surface to receive a compatible metadata payload. */
14
+ acceptExternalDrop?: boolean;
15
+ structure?: PageCompositionStructure;
16
+ placementDisabled?: boolean;
17
+ /** A failed async descriptor refresh must not leave its pre-drop layout on screen. */
18
+ placementCommitFailed?: boolean;
19
+ actionPlacements?: PageCompositionActionPlacement[];
20
+ actionFormMode?: 'create' | 'edit';
21
+ moduleActions?: ModuleRuntimeAction[];
22
+ querySummaries?: PageQuerySummary[];
23
+ };
24
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ selectField: (slot: PreviewSlot, fieldName: string) => any;
26
+ configureField: (slot: PreviewSlot, fieldName: string) => any;
27
+ configureRelationField: (relationCode: string, fieldName: string) => any;
28
+ configureAction: (anchor: "page" | "form" | "detail", actionCode: string) => any;
29
+ configureSummaries: () => any;
30
+ "placement-drop": (source: CompositionPlacementSource, target: CompositionPlacementTarget) => any;
31
+ "action-drop": (source: {
32
+ actionCode: string;
33
+ sourceAnchor?: "page" | "detail" | "form";
34
+ }, target: {
35
+ anchor: "page" | "detail" | "form";
36
+ index: number;
37
+ }) => any;
38
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
39
+ onSelectField?: ((slot: PreviewSlot, fieldName: string) => any) | undefined;
40
+ onConfigureField?: ((slot: PreviewSlot, fieldName: string) => any) | undefined;
41
+ onConfigureRelationField?: ((relationCode: string, fieldName: string) => any) | undefined;
42
+ onConfigureAction?: ((anchor: "page" | "form" | "detail", actionCode: string) => any) | undefined;
43
+ onConfigureSummaries?: (() => any) | undefined;
44
+ "onPlacement-drop"?: ((source: CompositionPlacementSource, target: CompositionPlacementTarget) => any) | undefined;
45
+ "onAction-drop"?: ((source: {
46
+ actionCode: string;
47
+ sourceAnchor?: "page" | "detail" | "form";
48
+ }, target: {
49
+ anchor: "page" | "detail" | "form";
50
+ index: number;
51
+ }) => any) | undefined;
52
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
53
+ declare const _default: typeof __VLS_export;
54
+ export default _default;
@@ -0,0 +1,103 @@
1
+ import { type CompositionSkeleton, type PageCompositionActionPlacement } from './pageCompositionMode';
2
+ import { type PageComposerFormItem, type PageComposerField, type PageComposerGroup, type PageComposerRelation, type PageQuerySummary } from './pageCompositionDraftState';
3
+ import { type PageCompositionDragPayload } from './pageCompositionDragPayload';
4
+ type __VLS_Props = {
5
+ skeleton?: CompositionSkeleton;
6
+ explorerTitle?: string;
7
+ searchableFieldIds?: string[];
8
+ quickSearchFields?: {
9
+ fieldName: string;
10
+ title: string;
11
+ }[];
12
+ querySummaries?: PageQuerySummary[];
13
+ summariesSupported?: boolean;
14
+ summaryDescriptions?: Record<string, string>;
15
+ summaryIssues?: Record<string, string>;
16
+ explorerSecondary?: string;
17
+ actionPlacements?: PageCompositionActionPlacement[];
18
+ moduleActions?: {
19
+ actionCode: string;
20
+ title?: string;
21
+ bindingPending?: boolean;
22
+ category?: string;
23
+ executorType?: string;
24
+ actionLevel?: 'LIST' | 'RECORD' | 'BATCH' | 'ANY' | 'DEFAULT';
25
+ }[];
26
+ editorMode?: 'fields' | 'actions';
27
+ listFields: PageComposerField[];
28
+ formFields: PageComposerField[];
29
+ formGroups: PageComposerGroup[];
30
+ formOrder?: PageComposerFormItem[];
31
+ formRelations: PageComposerRelation[];
32
+ selectedKey?: string;
33
+ disabled?: boolean;
34
+ };
35
+ type ComposerNodeAction = 'configure' | 'remove' | 'add-group' | 'toggle-visibility';
36
+ export type ComposerDropTarget = ({
37
+ kind: 'explorer-title' | 'explorer-secondary' | 'quick-search';
38
+ } | {
39
+ kind: 'list';
40
+ } | {
41
+ kind: 'form';
42
+ } | {
43
+ kind: 'group';
44
+ groupId: string;
45
+ } | {
46
+ kind: 'relation';
47
+ relationId: string;
48
+ } | {
49
+ kind: 'action-anchor';
50
+ anchor: PageCompositionActionPlacement['anchor'];
51
+ }) & {
52
+ index?: number;
53
+ };
54
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
55
+ select: (key: string) => any;
56
+ "double-click": (key: string) => any;
57
+ "action-drop": (source: {
58
+ actionCode: string;
59
+ sourceAnchor?: PageCompositionActionPlacement["anchor"];
60
+ }, target: {
61
+ anchor: PageCompositionActionPlacement["anchor"];
62
+ index: number;
63
+ }) => any;
64
+ "node-action": (action: ComposerNodeAction, key: string) => any;
65
+ "reorder-list-field": (fieldId: string, targetIndex: number) => any;
66
+ "reorder-form-field": (fieldId: string, targetIndex: number) => any;
67
+ "move-form-field-to-group": (fieldId: string, groupId: string, targetIndex: number) => any;
68
+ "move-group-field-to-form": (groupId: string, fieldId: string, targetIndex: number) => any;
69
+ "reorder-group-field": (groupId: string, fieldId: string, targetIndex: number) => any;
70
+ "move-group-field-to-group": (sourceGroupId: string, fieldId: string, targetGroupId: string, targetIndex: number) => any;
71
+ "reorder-group": (groupId: string, targetIndex: number) => any;
72
+ "reorder-relation-field": (relationId: string, fieldId: string, targetIndex: number) => any;
73
+ "reorder-query-summary": (summaryKey: string, targetIndex: number) => any;
74
+ "source-drop": (target: ComposerDropTarget, payload: PageCompositionDragPayload) => any;
75
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
76
+ onSelect?: ((key: string) => any) | undefined;
77
+ "onDouble-click"?: ((key: string) => any) | undefined;
78
+ "onAction-drop"?: ((source: {
79
+ actionCode: string;
80
+ sourceAnchor?: PageCompositionActionPlacement["anchor"];
81
+ }, target: {
82
+ anchor: PageCompositionActionPlacement["anchor"];
83
+ index: number;
84
+ }) => any) | undefined;
85
+ "onNode-action"?: ((action: ComposerNodeAction, key: string) => any) | undefined;
86
+ "onReorder-list-field"?: ((fieldId: string, targetIndex: number) => any) | undefined;
87
+ "onReorder-form-field"?: ((fieldId: string, targetIndex: number) => any) | undefined;
88
+ "onMove-form-field-to-group"?: ((fieldId: string, groupId: string, targetIndex: number) => any) | undefined;
89
+ "onMove-group-field-to-form"?: ((groupId: string, fieldId: string, targetIndex: number) => any) | undefined;
90
+ "onReorder-group-field"?: ((groupId: string, fieldId: string, targetIndex: number) => any) | undefined;
91
+ "onMove-group-field-to-group"?: ((sourceGroupId: string, fieldId: string, targetGroupId: string, targetIndex: number) => any) | undefined;
92
+ "onReorder-group"?: ((groupId: string, targetIndex: number) => any) | undefined;
93
+ "onReorder-relation-field"?: ((relationId: string, fieldId: string, targetIndex: number) => any) | undefined;
94
+ "onReorder-query-summary"?: ((summaryKey: string, targetIndex: number) => any) | undefined;
95
+ "onSource-drop"?: ((target: ComposerDropTarget, payload: PageCompositionDragPayload) => any) | undefined;
96
+ }>, {
97
+ disabled: boolean;
98
+ selectedKey: string;
99
+ editorMode: "fields" | "actions";
100
+ formOrder: PageComposerFormItem[];
101
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
102
+ declare const _default: typeof __VLS_export;
103
+ export default _default;
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ moduleAlias: string;
3
+ moduleTitle?: string;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,48 @@
1
+ import type { PageQuerySummary, PageQuerySummarySource } from './pageCompositionDraftState';
2
+ export interface PageQuerySummaryEditorIssues {
3
+ source?: string;
4
+ fieldName?: string;
5
+ contributorKey?: string;
6
+ groupByField?: string;
7
+ label?: string;
8
+ }
9
+ type __VLS_Props = {
10
+ summaries: PageQuerySummary[];
11
+ catalog?: {
12
+ fields?: Array<{
13
+ fieldName: string;
14
+ title: string;
15
+ }>;
16
+ contributors?: Array<{
17
+ contributorKey: string;
18
+ title: string;
19
+ }>;
20
+ groupFields?: Array<{
21
+ fieldName: string;
22
+ title: string;
23
+ kind: 'OPTION' | 'REFERENCE';
24
+ }>;
25
+ };
26
+ loading?: boolean;
27
+ error?: string;
28
+ disabled?: boolean;
29
+ selectedKey?: string;
30
+ focusRequest?: number;
31
+ issues?: Record<string, PageQuerySummaryEditorIssues>;
32
+ descriptions?: Record<string, string>;
33
+ };
34
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
+ move: (index: number, offset: number) => any;
36
+ add: (source: PageQuerySummarySource) => any;
37
+ remove: (index: number) => any;
38
+ update: (index: number, patch: Partial<PageQuerySummary>) => any;
39
+ retry: () => any;
40
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
41
+ onMove?: ((index: number, offset: number) => any) | undefined;
42
+ onAdd?: ((source: PageQuerySummarySource) => any) | undefined;
43
+ onRemove?: ((index: number) => any) | undefined;
44
+ onUpdate?: ((index: number, patch: Partial<PageQuerySummary>) => any) | undefined;
45
+ onRetry?: (() => any) | undefined;
46
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
47
+ declare const _default: typeof __VLS_export;
48
+ export default _default;