@ximatai/muyun-web-app 0.26.11 → 0.26.13

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 (221) hide show
  1. package/dist/BusinessActivityLogView-UC4rH4Fn.js +16 -0
  2. package/dist/BusinessLogListDrawer-BtaXVJKz.js +564 -0
  3. package/dist/LoginAuditLogView-Cjrp8MKX.js +16 -0
  4. package/dist/ModuleActionManagementView-Dkb35QXc.js +673 -0
  5. package/dist/ModuleGovernanceView-Dx43QvGf.js +28651 -0
  6. package/dist/RequestErrorLogView-WnGvMWiF.js +16 -0
  7. package/dist/RoleDetailWorkspaceView-DPDb_QOn.js +1397 -0
  8. package/dist/RuntimeLogView-BRl4ZDkU.js +330 -0
  9. package/dist/http-B0TC0pJB.js +157 -0
  10. package/dist/index.css +1 -1
  11. package/dist/index.js +1938 -325
  12. package/dist/moduleGovernanceWorkspaceView-4V_UW-Bt.js +40 -0
  13. package/dist/platform-components-1cvOeHmo.js +17854 -0
  14. package/dist/platform-workbench-Cu14Xd9d.js +10299 -0
  15. package/dist/rolldown-runtime-DPVXH0ON.js +17 -0
  16. package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +0 -2
  17. package/dist/types/app/LoginView.vue.d.ts +1 -1
  18. package/dist/types/app/workbenchRouteSync.d.ts +10 -1
  19. package/dist/types/app/workbenchSessionTabs.d.ts +22 -0
  20. package/dist/types/app/workbenchStartup.d.ts +7 -0
  21. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +4 -1
  22. package/dist/types/consumer/index.d.ts +8 -0
  23. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +2208 -0
  24. package/dist/types/dynamic-page-runtime/ModulePageBusinessState.vue.d.ts +11 -0
  25. package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +1 -1
  26. package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +32 -5
  27. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +4431 -0
  28. package/dist/types/dynamic-page-runtime/ModulePageHostSession.vue.d.ts +43 -0
  29. package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +2 -2
  30. package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +20 -0
  31. package/dist/types/dynamic-page-runtime/ModuleReferenceRecordDetailBrowser.vue.d.ts +42 -0
  32. package/dist/types/dynamic-page-runtime/NavigatorPanelActions.vue.d.ts +22 -0
  33. package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +11 -11
  34. package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +2 -2
  35. package/dist/types/dynamic-page-runtime/TenantScopeExplorer.vue.d.ts +21 -0
  36. package/dist/types/dynamic-page-runtime/childAggregateContext.d.ts +11 -0
  37. package/dist/types/dynamic-page-runtime/composables/useModulePageActions.d.ts +1 -1
  38. package/dist/types/dynamic-page-runtime/composables/useModulePageDetailActionRuntime.d.ts +5 -0
  39. package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +81 -26
  40. package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +1 -1
  41. package/dist/types/dynamic-page-runtime/formActionResult.d.ts +7 -0
  42. package/dist/types/dynamic-page-runtime/formComputeCoordinator.d.ts +7 -4
  43. package/dist/types/dynamic-page-runtime/formValidationCoordinator.d.ts +17 -0
  44. package/dist/types/dynamic-page-runtime/index.d.ts +3 -1
  45. package/dist/types/dynamic-page-runtime/inputValidationActionStatus.d.ts +20 -0
  46. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +13 -3
  47. package/dist/types/dynamic-page-runtime/modulePageUnsavedState.d.ts +10 -0
  48. package/dist/types/dynamic-page-runtime/pageActionInvocation.d.ts +7 -0
  49. package/dist/types/dynamic-page-runtime/pageActionPlacement.d.ts +14 -0
  50. package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +1 -0
  51. package/dist/types/dynamic-page-runtime/recordMutationPayload.d.ts +4 -0
  52. package/dist/types/dynamic-page-runtime/referenceRecordProjection.d.ts +6 -0
  53. package/dist/types/dynamic-page-runtime/sessionViewBindings.d.ts +3 -0
  54. package/dist/types/dynamic-page-runtime/sourceReferencePickerConfig.d.ts +26 -0
  55. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +1728 -0
  56. package/dist/types/dynamic-page-runtime/useTenantScopeController.d.ts +18 -0
  57. package/dist/types/formula/FormulaRuntime.d.ts +6 -0
  58. package/dist/types/platform-admin-runtime/WorkspaceViewDrawer.vue.d.ts +5 -0
  59. package/dist/types/platform-admin-runtime/module-menu/ModuleMenuDrawer.vue.d.ts +7 -0
  60. package/dist/types/platform-admin-runtime/module-menu/ModuleMenuEntriesSection.vue.d.ts +7 -0
  61. package/dist/types/platform-admin-runtime/module-menu/moduleMenuClient.d.ts +16 -0
  62. package/dist/types/platform-admin-runtime/platformModulePageEnhancement.d.ts +2 -0
  63. package/dist/types/platform-admin-runtime/role/roleScopeSelectionClient.d.ts +52 -0
  64. package/dist/types/platform-components/AdaptiveHeaderActionBar.vue.d.ts +24 -0
  65. package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +15 -1
  66. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +11 -3
  67. package/dist/types/platform-components/DetailRelationListPanel.vue.d.ts +1 -1
  68. package/dist/types/platform-components/DictionaryOptionDialog.vue.d.ts +37 -0
  69. package/dist/types/platform-components/DictionaryOptionDialogChoiceList.vue.d.ts +21 -0
  70. package/dist/types/platform-components/DictionaryPicker.vue.d.ts +47 -0
  71. package/dist/types/platform-components/DictionaryRadioGroup.vue.d.ts +20 -0
  72. package/dist/types/platform-components/EmployeePicker.vue.d.ts +40 -0
  73. package/dist/types/platform-components/FileTransferUploader.vue.d.ts +1 -1
  74. package/dist/types/platform-components/FormulaExpressionEditor.vue.d.ts +54 -0
  75. package/dist/types/platform-components/ManagementExplorerColumn.vue.d.ts +15 -3
  76. package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +5 -3
  77. package/dist/types/platform-components/ManagementWorkspace.vue.d.ts +11 -0
  78. package/dist/types/platform-components/ModuleActionButton.vue.d.ts +3 -3
  79. package/dist/types/platform-components/ObjectPickerInput.vue.d.ts +34 -0
  80. package/dist/types/platform-components/QueryCriteriaComposer.vue.d.ts +29 -0
  81. package/dist/types/platform-components/QueryCriteriaGroupEditor.vue.d.ts +36 -0
  82. package/dist/types/platform-components/QueryGroupedSummary.vue.d.ts +21 -0
  83. package/dist/types/platform-components/QueryValueEditor.vue.d.ts +33 -0
  84. package/dist/types/platform-components/ReadonlyReferenceValue.vue.d.ts +11 -0
  85. package/dist/types/platform-components/RecordContentSectionHeading.vue.d.ts +4 -2
  86. package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +8 -3
  87. package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +9 -3
  88. package/dist/types/platform-components/RecordDetailFields.vue.d.ts +41 -4
  89. package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +4 -1
  90. package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +2 -0
  91. package/dist/types/platform-components/RecordExplorerCreateButton.vue.d.ts +16 -0
  92. package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +16 -5
  93. package/dist/types/platform-components/RecordFieldLabel.vue.d.ts +16 -0
  94. package/dist/types/platform-components/RecordFormFields.vue.d.ts +24 -5
  95. package/dist/types/platform-components/RecordFormGrid.vue.d.ts +24 -0
  96. package/dist/types/platform-components/RecordListExplorer.vue.d.ts +23 -1
  97. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +11 -3
  98. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +3 -3
  99. package/dist/types/platform-components/RecordPanelButton.vue.d.ts +9 -3
  100. package/dist/types/platform-components/RecordPermissionDialog.vue.d.ts +15 -0
  101. package/dist/types/platform-components/RecordPicker.vue.d.ts +3 -3
  102. package/dist/types/platform-components/RecordQueryEnumFilter.vue.d.ts +17 -0
  103. package/dist/types/platform-components/RecordQueryListCell.vue.d.ts +12 -0
  104. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +120 -63
  105. package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +144 -0
  106. package/dist/types/platform-components/RecordRelationTable.vue.d.ts +62 -0
  107. package/dist/types/platform-components/RecordRelationValue.vue.d.ts +9 -0
  108. package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +3 -3
  109. package/dist/types/platform-components/ReferencePicker.vue.d.ts +47 -0
  110. package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +55 -0
  111. package/dist/types/platform-components/ScopedTreePicker.vue.d.ts +31 -0
  112. package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +2 -0
  113. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +14 -3
  114. package/dist/types/platform-components/UserPicker.vue.d.ts +47 -0
  115. package/dist/types/platform-components/adaptiveHeaderActionLayout.d.ts +22 -0
  116. package/dist/types/platform-components/dictionaryOptionDialogModel.d.ts +23 -0
  117. package/dist/types/platform-components/employeePickerModel.d.ts +19 -0
  118. package/dist/types/platform-components/formulaExpressionTokens.d.ts +18 -0
  119. package/dist/types/platform-components/identityPickerModel.d.ts +18 -0
  120. package/dist/types/platform-components/index.d.ts +48 -2
  121. package/dist/types/platform-components/managementExplorerContext.d.ts +11 -0
  122. package/dist/types/platform-components/managementWorkspaceContext.d.ts +20 -0
  123. package/dist/types/platform-components/managementWorkspaceLayout.d.ts +14 -0
  124. package/dist/types/platform-components/optionFieldOptionCache.d.ts +1 -1
  125. package/dist/types/platform-components/queryCriteriaDraft.d.ts +24 -0
  126. package/dist/types/platform-components/queryReferencePickerProvider.d.ts +19 -0
  127. package/dist/types/platform-components/readonlyReferenceDisplay.d.ts +19 -0
  128. package/dist/types/platform-components/recordActionBarModel.d.ts +3 -0
  129. package/dist/types/platform-components/recordEditorSessionState.d.ts +11 -4
  130. package/dist/types/platform-components/recordFormFieldModel.d.ts +28 -2
  131. package/dist/types/platform-components/recordQueryListColumnModel.d.ts +44 -0
  132. package/dist/types/platform-components/referencePickerModel.d.ts +103 -0
  133. package/dist/types/platform-components/referencePickerReadError.d.ts +24 -0
  134. package/dist/types/platform-components/referenceRecordDetailBrowser.d.ts +48 -0
  135. package/dist/types/platform-components/scopedTreePickerModel.d.ts +46 -0
  136. package/dist/types/platform-components/selectionRefresh.d.ts +9 -0
  137. package/dist/types/platform-components/sortPartitionKey.d.ts +5 -0
  138. package/dist/types/platform-components/sourceReferencePickerProvider.d.ts +26 -0
  139. package/dist/types/platform-components/staticCrudManagementState.d.ts +7 -6
  140. package/dist/types/platform-components/userPickerModel.d.ts +45 -0
  141. package/dist/types/platform-components/userReferencePicker.d.ts +17 -0
  142. package/dist/types/platform-workbench/index.d.ts +2 -0
  143. package/dist/types/platform-workbench/useWorkspaceViewUnsavedState.d.ts +5 -0
  144. package/dist/types/platform-workbench/workbenchNavigation.d.ts +5 -1
  145. package/dist/types/platform-workbench/workspaceViewContract.d.ts +5 -0
  146. package/dist/types/platform-workbench/workspaceViewHost.d.ts +5 -0
  147. package/dist/types/platform-workbench/workspaceViewNavigation.d.ts +9 -0
  148. package/dist/types/platform-workbench/workspaceViewUnsavedState.d.ts +5 -0
  149. package/dist/types/views/BusinessActivityLogView.vue.d.ts +3 -0
  150. package/dist/types/views/BusinessLogListDrawer.vue.d.ts +9 -0
  151. package/dist/types/views/BusinessRuleGovernanceSurface.vue.d.ts +10 -0
  152. package/dist/types/views/LoginAuditLogView.vue.d.ts +3 -0
  153. package/dist/types/views/MetadataGovernanceSurface.vue.d.ts +8 -0
  154. package/dist/types/views/MetadataSourceTree.vue.d.ts +44 -0
  155. package/dist/types/views/ModuleBusinessPreview.vue.d.ts +7 -0
  156. package/dist/types/views/ModuleExperienceProfileOverview.vue.d.ts +7 -0
  157. package/dist/types/views/ModuleGovernanceView.vue.d.ts +9 -0
  158. package/dist/types/views/PageCompositionDescriptorPreview.vue.d.ts +54 -0
  159. package/dist/types/views/PageCompositionTree.vue.d.ts +103 -0
  160. package/dist/types/views/PageCompositionWorkspace.vue.d.ts +7 -0
  161. package/dist/types/views/PageQuerySummaryEditor.vue.d.ts +48 -0
  162. package/dist/types/views/RequestErrorLogView.vue.d.ts +3 -0
  163. package/dist/types/views/RuntimeLogView.vue.d.ts +3 -0
  164. package/dist/types/views/businessLogClient.d.ts +85 -0
  165. package/dist/types/views/businessRuleGovernance.d.ts +201 -0
  166. package/dist/types/views/dictionaryRadioEligibility.d.ts +18 -0
  167. package/dist/types/views/dictionaryRadioFactRequestEpoch.d.ts +10 -0
  168. package/dist/types/views/metadataModelEditSession.d.ts +84 -0
  169. package/dist/types/views/metadataModelTree.d.ts +40 -0
  170. package/dist/types/views/metadataNaming.d.ts +7 -0
  171. package/dist/types/views/metadataOrchestrationState.d.ts +161 -6
  172. package/dist/types/views/metadataSourceTree.d.ts +10 -0
  173. package/dist/types/views/moduleGovernanceWorkspaceView.d.ts +9 -0
  174. package/dist/types/views/pageCompositionDraftState.d.ts +404 -0
  175. package/dist/types/views/pageCompositionDragPayload.d.ts +26 -0
  176. package/dist/types/views/pageCompositionMode.d.ts +86 -0
  177. package/dist/types/views/pageCompositionPlacement.d.ts +48 -0
  178. package/dist/types/views/pageCompositionTransport.d.ts +9 -0
  179. package/dist/types/views/roleDetailWorkspaceSession.d.ts +1 -0
  180. package/dist/types/views/roleGrantClient.d.ts +0 -1
  181. package/dist/types/views/runtimeLogClient.d.ts +12 -0
  182. package/dist/types/views/runtimeLogSse.d.ts +13 -0
  183. package/dist/types/views/usePageCompositionActionPreviewDrag.d.ts +41 -0
  184. package/dist/types/views/usePageCompositionPreviewDrag.d.ts +48 -0
  185. package/dist/types/vue-ui-antdv/components/UiActionButton.vue.d.ts +2 -2
  186. package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +6 -3
  187. package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +20 -2
  188. package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
  189. package/dist/types/vue-ui-antdv/components/UiPopover.vue.d.ts +22 -0
  190. package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +1 -1
  191. package/dist/types/vue-ui-antdv/components/UiSearchInput.vue.d.ts +16 -2
  192. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +28 -2
  193. package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +9 -2
  194. package/dist/types/vue-ui-antdv/components/UiSwitch.vue.d.ts +1 -1
  195. package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +38 -1
  196. package/dist/types/vue-ui-antdv/components/UiTokenInput.vue.d.ts +62 -0
  197. package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +63 -9
  198. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +24 -2
  199. package/dist/types/vue-ui-antdv/drawerDismissal.d.ts +18 -0
  200. package/dist/types/vue-ui-antdv/drawerWidth.d.ts +22 -0
  201. package/dist/types/vue-ui-antdv/index.d.ts +10 -1
  202. package/dist/types/vue-ui-antdv/treeStructure.d.ts +18 -0
  203. package/dist/types/vue-ui-antdv/types.d.ts +64 -0
  204. package/dist/types/vue-ui-antdv/useTreeLoader.d.ts +21 -0
  205. package/dist/types/vue-ui-antdv/useTreeMotion.d.ts +9 -0
  206. package/dist/types/vue-ui-antdv/useUiTreeDrag.d.ts +32 -0
  207. package/dist/types/web-contracts/index.d.ts +132 -12
  208. package/dist/types/web-core/http.d.ts +2 -0
  209. package/dist/types/web-core/module/index.d.ts +1 -0
  210. package/dist/types/web-core/module/moduleContext.d.ts +29 -1
  211. package/dist/types/web-core/module/pageActionEntries.d.ts +21 -0
  212. package/dist/types/web-core/module/runtimeContext.d.ts +10 -5
  213. package/dist/types/web-core/module/staticModuleClient.d.ts +30 -3
  214. package/dist/workspaceViews-CCg6V0pr.js +3623 -0
  215. package/package.json +1 -1
  216. package/dist/MetadataOrchestrationView-F_Bmfn9K.js +0 -661
  217. package/dist/ModuleActionManagementView-Db_3Twom.js +0 -597
  218. package/dist/RoleDetailWorkspaceView-UOm1ejGH.js +0 -1369
  219. package/dist/platform-components-59b4qzUL.js +0 -12489
  220. package/dist/types/views/metadataOrchestrationWorkspaceView.d.ts +0 -6
  221. package/dist/workspaceViews-BvV8mpML.js +0 -11149
@@ -0,0 +1,40 @@
1
+ import type { Metadata, MetadataField, ModuleMetadataRelation } from '../web-contracts/index';
2
+ import type { UiTreeDropEvent, UiTreeNode } from '../vue-ui-antdv/index';
3
+ export type MetadataModelTreeNodeKind = 'METADATA' | 'FIELD';
4
+ export interface MetadataModelTreeNode extends UiTreeNode {
5
+ modelKind: MetadataModelTreeNodeKind;
6
+ relationId?: string;
7
+ fieldId?: string;
8
+ /** Parent relation, not the visual root. It makes the reorder boundary explicit. */
9
+ parentRelationId?: string;
10
+ /** Locked nodes are intentionally visible but never draggable. */
11
+ draggable?: boolean;
12
+ }
13
+ export interface MetadataModelTreeInput {
14
+ relations: ModuleMetadataRelation[];
15
+ metadataById: Record<string, Metadata>;
16
+ fieldsByRelation: Record<string, MetadataField[]>;
17
+ fieldLocked: (relation: ModuleMetadataRelation, field: MetadataField) => boolean;
18
+ }
19
+ /**
20
+ * The governance tree is a projection of the model, not a second persistence shape. Metadata
21
+ * branches and field leaves retain their relation/field identities so the page can route to
22
+ * strongly typed cards. The explorer title already states "元数据", so entity nodes are roots
23
+ * rather than being wrapped in a redundant virtual node.
24
+ */
25
+ export declare function buildMetadataModelTree(input: MetadataModelTreeInput): MetadataModelTreeNode[];
26
+ export declare function metadataNodeKey(relationId: string): string;
27
+ export declare function fieldNodeKey(relationId: string, fieldId: string): string;
28
+ export declare function parseMetadataModelTreeKey(key: string): {
29
+ kind: 'METADATA';
30
+ relationId: string;
31
+ } | {
32
+ kind: 'FIELD';
33
+ relationId: string;
34
+ fieldId: string;
35
+ } | undefined;
36
+ /** Only same-parent gap drops are legal. Dropping "on" a node would imply changing model structure. */
37
+ export declare function canReorderMetadataModelTree(event: UiTreeDropEvent): boolean;
38
+ export declare function reorderedIds<T extends {
39
+ id?: string;
40
+ }>(items: T[], sourceId: string, targetId: string, place: -1 | 1): string[];
@@ -0,0 +1,7 @@
1
+ import type { MetadataFieldPropertyKind } from './metadataOrchestrationState';
2
+ export declare function physicalNameOf(fieldName?: string): string;
3
+ export declare function generatedFieldName(title?: string): string;
4
+ /** Default names for newly created business fields; runtime semantics remain metadata-driven. */
5
+ export declare function generatedBusinessFieldName(title: string | undefined, kind: MetadataFieldPropertyKind): string;
6
+ /** Metadata identifiers use lower snake case; they are stable after explicit editing. */
7
+ export declare function generatedMetadataAlias(title: string, maxLength?: number): string;
@@ -1,7 +1,7 @@
1
1
  import type { FieldSpec, Metadata, MetadataField, ModuleMetadataRelation } from '../web-contracts/index';
2
2
  import type { RecordExplorerItemDescriptor } from '../platform-components/recordExplorerItemModel';
3
3
  /** Editor lifecycle of the metadata orchestration workspace. */
4
- export type MetadataOrchestrationMode = 'view' | 'create-main' | 'create-field' | 'edit-field';
4
+ export type MetadataOrchestrationMode = 'view' | 'create-main' | 'create-field' | 'create-reference-field' | 'create-dictionary-field' | 'edit-field';
5
5
  export interface MainMetadataDraft {
6
6
  alias: string;
7
7
  title: string;
@@ -10,6 +10,52 @@ export interface MainMetadataDraft {
10
10
  dataScopeEnabled: boolean;
11
11
  }
12
12
  export type MetadataFieldDraft = Partial<MetadataField>;
13
+ /**
14
+ * A field's business property is distinct from its physical field specification. For example,
15
+ * a reference can still use a short-text column to store a target key.
16
+ */
17
+ export type MetadataFieldPropertyKind = 'BASIC' | 'MODULE_REFERENCE' | 'DICTIONARY' | 'LEGACY_LOCKED';
18
+ export interface MetadataFieldReferencePropertyConfig {
19
+ targetModuleAlias?: string;
20
+ targetMetadataId?: string;
21
+ targetKeyField?: string;
22
+ targetLabelField?: string;
23
+ cardinality?: 'ONE' | 'MANY';
24
+ targetUnavailablePolicy?: 'PRESERVE_HISTORY' | 'RESTRICT' | 'CASCADE_DELETE';
25
+ projectionMappings?: string[];
26
+ }
27
+ export interface MetadataFieldDictionaryPropertyConfig {
28
+ dictionaryApplicationAlias?: string;
29
+ dictionaryCategoryAlias?: string;
30
+ selectionMode?: 'SINGLE' | 'MULTIPLE';
31
+ }
32
+ /**
33
+ * The platform field-spec catalog owns these stable storage shapes. A property editor must
34
+ * select a legal shape rather than exposing every scalar type as a possible reference/dictionary
35
+ * backing store.
36
+ */
37
+ export declare function storageFieldSpecAliasOf(kind: MetadataFieldPropertyKind, selectionMode?: MetadataFieldDictionaryPropertyConfig['selectionMode']): string | undefined;
38
+ export interface MetadataFieldPropertyDraft {
39
+ kind: MetadataFieldPropertyKind;
40
+ expectedBindingVersion?: number;
41
+ referenceConfig?: MetadataFieldReferencePropertyConfig;
42
+ dictionaryConfig?: MetadataFieldDictionaryPropertyConfig;
43
+ }
44
+ /** Relation-scoped property facts supplied by the module-governance read model. */
45
+ export interface MetadataFieldPropertySummary extends MetadataFieldPropertyDraft {
46
+ fieldId?: string;
47
+ fieldName?: string;
48
+ fieldSpecAlias?: string;
49
+ bindingVersion?: number;
50
+ legacyReason?: string;
51
+ /** Transport shape of the relation-scoped property summary. */
52
+ reference?: MetadataFieldReferencePropertyConfig;
53
+ dictionary?: {
54
+ applicationAlias?: string;
55
+ categoryAlias?: string;
56
+ selectionMode?: 'SINGLE' | 'MULTIPLE';
57
+ };
58
+ }
13
59
  export interface FieldSpecOption {
14
60
  value: string;
15
61
  label: string;
@@ -19,7 +65,7 @@ export declare function createMetadataOrchestrationState(): {
19
65
  moduleAlias?: string | undefined;
20
66
  metadataId?: string | undefined;
21
67
  relationAlias?: string | undefined;
22
- relationRole?: "MAIN" | "CHILD" | undefined;
68
+ relationRole?: "main" | "child" | "MAIN" | "CHILD" | undefined;
23
69
  parentMetadataId?: string | undefined;
24
70
  foreignKey?: string | undefined;
25
71
  autoPopulate?: boolean | undefined;
@@ -38,7 +84,7 @@ export declare function createMetadataOrchestrationState(): {
38
84
  moduleAlias?: string | undefined;
39
85
  metadataId?: string | undefined;
40
86
  relationAlias?: string | undefined;
41
- relationRole?: "MAIN" | "CHILD" | undefined;
87
+ relationRole?: "main" | "child" | "MAIN" | "CHILD" | undefined;
42
88
  parentMetadataId?: string | undefined;
43
89
  foreignKey?: string | undefined;
44
90
  autoPopulate?: boolean | undefined;
@@ -111,6 +157,61 @@ export declare function createMetadataOrchestrationState(): {
111
157
  updatedBy?: string | undefined;
112
158
  updatedAt?: string | undefined;
113
159
  }[]>;
160
+ allFields: import("vue").Ref<{
161
+ metadataId?: string | undefined;
162
+ fieldName?: string | undefined;
163
+ columnName?: string | undefined;
164
+ fieldSpecAlias?: string | undefined;
165
+ fieldOwnership?: string | undefined;
166
+ fieldForm?: string | undefined;
167
+ ownerFieldId?: string | undefined;
168
+ fieldRole?: string | undefined;
169
+ systemManaged?: boolean | undefined;
170
+ required?: boolean | undefined;
171
+ uniqueField?: boolean | undefined;
172
+ indexed?: boolean | undefined;
173
+ sortableField?: boolean | undefined;
174
+ titleField?: boolean | undefined;
175
+ enabled?: boolean | undefined;
176
+ sortOrder?: number | undefined;
177
+ title?: string | undefined;
178
+ id?: string | undefined;
179
+ tenantId?: string | undefined;
180
+ version?: number | undefined;
181
+ deleted?: boolean | undefined;
182
+ deletedAt?: string | undefined;
183
+ createdBy?: string | undefined;
184
+ createdAt?: string | undefined;
185
+ updatedBy?: string | undefined;
186
+ updatedAt?: string | undefined;
187
+ }[], MetadataField[] | {
188
+ metadataId?: string | undefined;
189
+ fieldName?: string | undefined;
190
+ columnName?: string | undefined;
191
+ fieldSpecAlias?: string | undefined;
192
+ fieldOwnership?: string | undefined;
193
+ fieldForm?: string | undefined;
194
+ ownerFieldId?: string | undefined;
195
+ fieldRole?: string | undefined;
196
+ systemManaged?: boolean | undefined;
197
+ required?: boolean | undefined;
198
+ uniqueField?: boolean | undefined;
199
+ indexed?: boolean | undefined;
200
+ sortableField?: boolean | undefined;
201
+ titleField?: boolean | undefined;
202
+ enabled?: boolean | undefined;
203
+ sortOrder?: number | undefined;
204
+ title?: string | undefined;
205
+ id?: string | undefined;
206
+ tenantId?: string | undefined;
207
+ version?: number | undefined;
208
+ deleted?: boolean | undefined;
209
+ deletedAt?: string | undefined;
210
+ createdBy?: string | undefined;
211
+ createdAt?: string | undefined;
212
+ updatedBy?: string | undefined;
213
+ updatedAt?: string | undefined;
214
+ }[]>;
114
215
  fieldSpecs: import("vue").Ref<{
115
216
  alias?: string | undefined;
116
217
  fieldType?: string | undefined;
@@ -121,6 +222,7 @@ export declare function createMetadataOrchestrationState(): {
121
222
  queryOperators?: string[] | undefined;
122
223
  defaultUiControlAlias?: string | undefined;
123
224
  uiControlAliases?: string[] | undefined;
225
+ safeTargetFieldSpecAliases?: string[] | undefined;
124
226
  enabled?: boolean | undefined;
125
227
  sortOrder?: number | undefined;
126
228
  title?: string | undefined;
@@ -143,6 +245,7 @@ export declare function createMetadataOrchestrationState(): {
143
245
  queryOperators?: string[] | undefined;
144
246
  defaultUiControlAlias?: string | undefined;
145
247
  uiControlAliases?: string[] | undefined;
248
+ safeTargetFieldSpecAliases?: string[] | undefined;
146
249
  enabled?: boolean | undefined;
147
250
  sortOrder?: number | undefined;
148
251
  title?: string | undefined;
@@ -225,11 +328,46 @@ export declare function createMetadataOrchestrationState(): {
225
328
  updatedBy?: string | undefined;
226
329
  updatedAt?: string | undefined;
227
330
  }>;
331
+ fieldPropertyDraft: import("vue").Ref<{
332
+ kind: MetadataFieldPropertyKind;
333
+ expectedBindingVersion?: number | undefined;
334
+ referenceConfig?: {
335
+ targetModuleAlias?: string | undefined;
336
+ targetMetadataId?: string | undefined;
337
+ targetKeyField?: string | undefined;
338
+ targetLabelField?: string | undefined;
339
+ cardinality?: "ONE" | "MANY" | undefined;
340
+ targetUnavailablePolicy?: "PRESERVE_HISTORY" | "RESTRICT" | "CASCADE_DELETE" | undefined;
341
+ projectionMappings?: string[] | undefined;
342
+ } | undefined;
343
+ dictionaryConfig?: {
344
+ dictionaryApplicationAlias?: string | undefined;
345
+ dictionaryCategoryAlias?: string | undefined;
346
+ selectionMode?: "SINGLE" | "MULTIPLE" | undefined;
347
+ } | undefined;
348
+ }, MetadataFieldPropertyDraft | {
349
+ kind: MetadataFieldPropertyKind;
350
+ expectedBindingVersion?: number | undefined;
351
+ referenceConfig?: {
352
+ targetModuleAlias?: string | undefined;
353
+ targetMetadataId?: string | undefined;
354
+ targetKeyField?: string | undefined;
355
+ targetLabelField?: string | undefined;
356
+ cardinality?: "ONE" | "MANY" | undefined;
357
+ targetUnavailablePolicy?: "PRESERVE_HISTORY" | "RESTRICT" | "CASCADE_DELETE" | undefined;
358
+ projectionMappings?: string[] | undefined;
359
+ } | undefined;
360
+ dictionaryConfig?: {
361
+ dictionaryApplicationAlias?: string | undefined;
362
+ dictionaryCategoryAlias?: string | undefined;
363
+ selectionMode?: "SINGLE" | "MULTIPLE" | undefined;
364
+ } | undefined;
365
+ }>;
228
366
  selectedRelation: import("vue").ComputedRef<{
229
367
  moduleAlias?: string | undefined;
230
368
  metadataId?: string | undefined;
231
369
  relationAlias?: string | undefined;
232
- relationRole?: "MAIN" | "CHILD" | undefined;
370
+ relationRole?: "main" | "child" | "MAIN" | "CHILD" | undefined;
233
371
  parentMetadataId?: string | undefined;
234
372
  foreignKey?: string | undefined;
235
373
  autoPopulate?: boolean | undefined;
@@ -257,8 +395,9 @@ export declare function createMetadataOrchestrationState(): {
257
395
  selectRelation: (relation: ModuleMetadataRelation) => boolean;
258
396
  focusRelation: (relationId: string | undefined) => void;
259
397
  startCreateMain: () => void;
260
- startCreateField: () => void;
261
- startEditField: (field: MetadataField) => void;
398
+ startCreateField: (kind?: MetadataFieldPropertyKind) => void;
399
+ startEditField: (field: MetadataField, property?: MetadataFieldPropertyDraft) => void;
400
+ startConfigureFieldProperty: (field: MetadataField, kind: Exclude<MetadataFieldPropertyKind, "BASIC" | "LEGACY_LOCKED">) => void;
262
401
  cancelEditor: () => void;
263
402
  };
264
403
  export type MetadataOrchestrationState = ReturnType<typeof createMetadataOrchestrationState>;
@@ -266,13 +405,29 @@ export declare function emptyMainMetadataDraft(): MainMetadataDraft;
266
405
  export declare function normalizeMainMetadataDraft(draft: MainMetadataDraft): MainMetadataDraft;
267
406
  export declare function isValidMainMetadataDraft(draft: MainMetadataDraft): boolean;
268
407
  export declare function emptyFieldDraft(): MetadataFieldDraft;
408
+ export declare function emptyFieldPropertyDraft(kind: MetadataFieldPropertyKind): MetadataFieldPropertyDraft;
409
+ export declare function copyFieldPropertyDraft(property: MetadataFieldPropertyDraft): MetadataFieldPropertyDraft;
410
+ /** Converts the read-model's concise bindings into the draft contract accepted by change sets. */
411
+ export declare function propertyDraftFromSummary(summary: MetadataFieldPropertySummary): MetadataFieldPropertyDraft;
269
412
  export declare function copyMetadataField(field: MetadataField): MetadataFieldDraft;
270
413
  export declare function isValidFieldDraft(draft: MetadataFieldDraft): boolean;
271
414
  export declare function normalizeFieldDraft(draft: MetadataFieldDraft): MetadataFieldDraft;
415
+ export declare function normalizeFieldPropertyDraft(property: MetadataFieldPropertyDraft): MetadataFieldPropertyDraft;
416
+ export declare function isValidFieldPropertyDraft(property: MetadataFieldPropertyDraft): boolean;
417
+ export declare function metadataFieldPropertyLabel(kind: MetadataFieldPropertyKind): string;
418
+ export declare function metadataFieldPropertySummary(property: MetadataFieldPropertyDraft): string;
272
419
  /** Only business-owned physical fields are orchestrated; platform-managed fields stay hidden. */
273
420
  export declare function orchestratableFields(fields: MetadataField[]): MetadataField[];
421
+ /** Only these field facts may be changed through the metadata field editor. */
422
+ export declare function isOrchestratableField(field: MetadataField): boolean;
274
423
  export declare function fieldSpecOptionListOf(specs: FieldSpec[]): FieldSpecOption[];
424
+ /** Filters a populated entity to the source specification's server-declared safe targets. */
425
+ export declare function dataSafeFieldSpecOptions(specs: FieldSpec[], currentAlias?: string): FieldSpecOption[];
426
+ /** Use the catalog title for human-facing metadata surfaces; aliases remain stable machine identities. */
427
+ export declare function fieldSpecDisplayLabel(fieldSpecAlias: string | undefined, specs: FieldSpec[]): string;
275
428
  export declare function entityTitleOf(relation: ModuleMetadataRelation, metadata: Metadata | undefined): string;
276
429
  export declare function relationRoleTag(role: ModuleMetadataRelation['relationRole']): string | undefined;
430
+ /** Java code enums are serialized by their stable lower-case code in runtime responses. */
431
+ export declare function isMainRelation(role: ModuleMetadataRelation['relationRole'] | undefined): boolean;
277
432
  export declare function entityExplorerItem(relation: ModuleMetadataRelation, metadata: Metadata | undefined): RecordExplorerItemDescriptor;
278
433
  export declare function metadataSubtitleOf(metadata: Metadata | undefined): string | undefined;
@@ -0,0 +1,10 @@
1
+ import type { UiTreeNode } from '../vue-ui-antdv/index';
2
+ /** Shared metadata presentation; consumers supply actions and capability restrictions. */
3
+ export declare function metadataSourceFieldNode(field: {
4
+ title: string;
5
+ fieldName: string;
6
+ platformReadOnly?: boolean;
7
+ referenceModuleAlias?: string;
8
+ expandable?: boolean;
9
+ }, options: Pick<UiTreeNode, 'key'> & Partial<UiTreeNode>): UiTreeNode;
10
+ export declare function metadataSourceRoot(title: string, children: UiTreeNode[]): UiTreeNode;
@@ -0,0 +1,9 @@
1
+ export declare const moduleGovernanceTabs: readonly ["overview", "metadata", "actions", "rules", "ui", "preview"];
2
+ export type ModuleGovernanceTab = (typeof moduleGovernanceTabs)[number];
3
+ export interface ModuleGovernanceWorkspaceViewInput {
4
+ moduleAlias: string;
5
+ moduleTitle?: string;
6
+ governanceTab?: ModuleGovernanceTab;
7
+ }
8
+ /** The module-scoped home for configuration governance surfaces. */
9
+ export declare const moduleGovernanceWorkspaceView: import("../platform-workbench/workspaceViewContract.ts").WorkspaceViewDefinition<ModuleGovernanceWorkspaceViewInput>;