@ximatai/muyun-web-app 0.26.10 → 0.26.11

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 (55) hide show
  1. package/dist/{MetadataOrchestrationView-BhtVwJII.js → MetadataOrchestrationView-F_Bmfn9K.js} +91 -91
  2. package/dist/{ModuleActionManagementView-DpZS-xAD.js → ModuleActionManagementView-Db_3Twom.js} +36 -36
  3. package/dist/RoleDetailWorkspaceView-UOm1ejGH.js +1369 -0
  4. package/dist/index.css +1 -1
  5. package/dist/index.js +201 -206
  6. package/dist/{platform-components-oRIsIoxu.js → platform-components-59b4qzUL.js} +2391 -2273
  7. package/dist/types/consumer/index.d.ts +1 -1
  8. package/dist/types/dynamic-page-runtime/composables/useModulePageDetailExtensionRuntime.d.ts +3 -1
  9. package/dist/types/dynamic-page-runtime/composables/useModulePageFormContributionRuntime.d.ts +5 -3
  10. package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +26 -26
  11. package/dist/types/dynamic-page-runtime/index.d.ts +1 -2
  12. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +69 -1
  13. package/dist/types/formula/FormulaRuntime.d.ts +3 -0
  14. package/dist/types/{views/UserDetailRouteView.vue.d.ts → platform-admin-runtime/role/RoleAccountGrantDrawerSurface.vue.d.ts} +2 -3
  15. package/dist/types/{dynamic-page-runtime/DynamicModuleHost.vue.d.ts → platform-admin-runtime/role/RoleAuthorizationDrawerSurface.vue.d.ts} +2 -2
  16. package/dist/types/platform-admin-runtime/role/RoleEmploymentGrantDrawerSurface.vue.d.ts +7 -0
  17. package/dist/types/platform-admin-runtime/role/RoleEnumTitleCell.vue.d.ts +8 -0
  18. package/dist/types/platform-admin-runtime/role/RoleGroupMemberFormField.vue.d.ts +7 -0
  19. package/dist/types/platform-admin-runtime/role/RoleScopeTree.vue.d.ts +7 -0
  20. package/dist/types/platform-admin-runtime/roleModulePageEnhancement.d.ts +7 -0
  21. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +1 -1
  22. package/dist/types/platform-components/DrawerOperationBar.vue.d.ts +4 -2
  23. package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +1 -0
  24. package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +4 -2
  25. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +1 -1
  26. package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
  27. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +6 -3
  28. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +1 -1
  29. package/dist/types/platform-components/index.d.ts +1 -1
  30. package/dist/types/platform-components/scopedTreeModuleContext.d.ts +2 -2
  31. package/dist/types/platform-components/staticTreeResourceModuleContext.d.ts +3 -3
  32. package/dist/types/views/EmployeeEmploymentTable.vue.d.ts +5 -0
  33. package/dist/types/views/RoleAccountGrantDrawer.vue.d.ts +6 -2
  34. package/dist/types/views/RoleAuthorizationView.vue.d.ts +7 -0
  35. package/dist/types/views/RoleEmploymentGrantDrawer.vue.d.ts +5 -1
  36. package/dist/types/views/roleGrantClient.d.ts +8 -5
  37. package/dist/types/vue-ui-antdv/components/UiTable.vue.d.ts +1 -0
  38. package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +20 -1
  39. package/dist/types/vue-ui-antdv/types.d.ts +6 -0
  40. package/dist/types/web-contracts/index.d.ts +9 -2
  41. package/dist/types/web-core/module/staticModuleClient.d.ts +4 -4
  42. package/dist/workspaceViews-BvV8mpML.js +11149 -0
  43. package/package.json +1 -1
  44. package/dist/RoleAuthorizationView-8lilhtMB.js +0 -646
  45. package/dist/RoleDetailWorkspaceView-CFha6JHn.js +0 -26
  46. package/dist/RoleManagementView-0_KDrzgh.js +0 -1948
  47. package/dist/types/dynamic-page-runtime/DynamicRecordDetailActions.vue.d.ts +0 -39
  48. package/dist/types/dynamic-page-runtime/dynamicModuleDetailStateModel.d.ts +0 -5
  49. package/dist/types/views/UserDetailContent.vue.d.ts +0 -32
  50. package/dist/types/views/UserManagementListView.vue.d.ts +0 -3
  51. package/dist/types/views/UserManagementView.vue.d.ts +0 -3
  52. package/dist/types/views/useUserSessionRows.d.ts +0 -28
  53. package/dist/types/views/userDetailStateModel.d.ts +0 -9
  54. package/dist/types/views/userManagementRouteState.d.ts +0 -11
  55. package/dist/workspaceViews-D-RiJ64o.js +0 -9078
@@ -43,6 +43,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
43
43
  onLoaded?: ((records: TreeRecordBase[]) => any) | undefined;
44
44
  }>, {
45
45
  filterOption: (record: TreeRecordBase, normalizedKeyword: string) => boolean;
46
+ reloadKey: number;
46
47
  emptyDescription: string;
47
48
  navigatorHostModuleAlias: string;
48
49
  navigatorTargetLevelKey: string;
@@ -54,7 +55,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
54
55
  actionsOf: (record: TreeRecordBase) => UiRecordInlineAction[];
55
56
  tagOf: (record: TreeRecordBase) => string | undefined;
56
57
  mutedOf: (record: TreeRecordBase) => boolean;
57
- reloadKey: number;
58
58
  externalQueryValues: Record<string, unknown>;
59
59
  loadingTip: string;
60
60
  fallbackTitle: string;
@@ -70,7 +70,7 @@ export type { QueryListRecord, RecordQueryListCellComponent, RecordQueryListColu
70
70
  export type { RecordFormFieldDescriptor, RecordFormFieldFallback, RecordFormFieldPickerConfig, RecordFormFieldState, RecordFieldRenderer, RecordFormFieldValue, RecordFormRecord, } from './recordFormFieldModel';
71
71
  export type { CrudRecordListBase } from './crudRecordListModel';
72
72
  export { defaultCrudRecordListMatches, defaultCrudRecordListSubtitle, defaultCrudRecordListTitle, } from './crudRecordListModel';
73
- export { resolveRecordActions } from './recordActionBarModel';
73
+ export { mergeRecordActions, resolveRecordActions } from './recordActionBarModel';
74
74
  export { normalizeRecordDraft } from './recordDraftNormalizer';
75
75
  export { acceptedMediaTypes, appendUploadedFileReference, fileReferenceIds, issueFileReferenceUploadAccess, uploadedFileId, } from './fileReferenceTransfer';
76
76
  export { resolveRecordDetailDisplayValue } from './recordDetailFieldModel';
@@ -1,5 +1,5 @@
1
1
  import type { RouteQueryValue } from '../web-contracts/index';
2
- import type { ModuleContext, StaticModuleTreeClient } from '../web-core/index';
2
+ import type { ModuleContext, ModuleTreeClient } from '../web-core/index';
3
3
  export interface ScopedTreeModuleContextOptions {
4
4
  scopeFieldName: string;
5
5
  scopeValue: string | undefined | (() => string | undefined);
@@ -18,4 +18,4 @@ export interface QueryScopedTreeModuleContextOptions {
18
18
  }
19
19
  export declare function createQueryScopedTreeModuleContext<TRecord>(context: ModuleContext<TRecord>, options: QueryScopedTreeModuleContextOptions): ModuleContext<TRecord>;
20
20
  export declare function createScopedTreeModuleContext<TRecord>(context: ModuleContext<TRecord>, options: ScopedTreeModuleContextOptions): ModuleContext<TRecord>;
21
- export declare function createScopedTreeClient<TRecord>(context: ModuleContext<TRecord>, options: ScopedTreeModuleContextOptions): StaticModuleTreeClient<TRecord>;
21
+ export declare function createScopedTreeClient<TRecord>(context: ModuleContext<TRecord>, options: ScopedTreeModuleContextOptions): ModuleTreeClient<TRecord>;
@@ -1,7 +1,7 @@
1
- import type { ModuleContext, StaticModuleTreeClient } from '../web-core/index';
1
+ import type { ModuleContext, ModuleTreeClient } from '../web-core/index';
2
2
  export interface StaticTreeResourceModuleContextOptions<TRecord> {
3
- client?: StaticModuleTreeClient<TRecord>;
3
+ client?: ModuleTreeClient<TRecord>;
4
4
  emptyQueryScopeName?: string;
5
5
  }
6
6
  export declare function createStaticTreeResourceModuleContext<TRecord, TContextRecord = unknown>(context: ModuleContext<TContextRecord>, options?: StaticTreeResourceModuleContextOptions<TRecord>): ModuleContext<TRecord>;
7
- export declare function createEmptyStaticTreeClient<TRecord>(scopeName?: string): StaticModuleTreeClient<TRecord>;
7
+ export declare function createEmptyStaticTreeClient<TRecord>(scopeName?: string): ModuleTreeClient<TRecord>;
@@ -1,9 +1,12 @@
1
+ import type { UiDataTablePagination } from '../vue-ui-antdv/index';
1
2
  import type { EmploymentSelectorItem } from '../web-contracts/index';
2
3
  type __VLS_Props = {
3
4
  rows: EmploymentSelectorItem[];
4
5
  selectedIds?: Set<string>;
5
6
  selectable?: boolean;
6
7
  disabled?: boolean;
8
+ pagination?: false | UiDataTablePagination;
9
+ fillHeight?: boolean;
7
10
  };
8
11
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
12
  "update:selectedIds": (value: Set<string>) => any;
@@ -11,7 +14,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
11
14
  "onUpdate:selectedIds"?: ((value: Set<string>) => any) | undefined;
12
15
  }>, {
13
16
  disabled: boolean;
17
+ pagination: false | UiDataTablePagination;
14
18
  selectable: boolean;
19
+ fillHeight: boolean;
15
20
  selectedIds: Set<string>;
16
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
22
  declare const _default: typeof __VLS_export;
@@ -1,8 +1,12 @@
1
1
  import type { Role } from '../web-contracts/index';
2
- import type { ModuleContext } from '../web-core/index';
2
+ import { type ModuleContext } from '../web-core/index';
3
+ import type { ModulePageDrawerContext } from '../dynamic-page-runtime/index';
3
4
  type __VLS_Props = {
4
5
  open: boolean;
5
- container: HTMLElement | null;
6
+ container?: HTMLElement | null;
7
+ /** Uses the owning platform drawer and renders only this operation's content. */
8
+ embedded?: boolean;
9
+ drawerContext?: ModulePageDrawerContext;
6
10
  context: ModuleContext<Role>;
7
11
  role?: Role;
8
12
  };
@@ -1,9 +1,16 @@
1
+ import type { Role } from '../web-contracts/index';
2
+ import { type ModuleContext } from '../web-core/index';
3
+ import type { ModulePageDrawerContext } from '../dynamic-page-runtime/index';
1
4
  type __VLS_Props = {
2
5
  roleId?: string;
6
+ /** Reuses a host-governed module context when this view is mounted as an extension surface. */
7
+ moduleContext?: ModuleContext<Role>;
3
8
  /** Parent page root required when this view is displayed inside a drawer. */
4
9
  container?: HTMLElement | null;
5
10
  /** A parent management tab owns the initial wide drawer before promotion. */
6
11
  drawer?: boolean;
12
+ /** The action drawer owns the outer title and fixed operation region. */
13
+ drawerContext?: ModulePageDrawerContext;
7
14
  };
8
15
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
16
  close: () => any;
@@ -1,8 +1,12 @@
1
1
  import type { Role } from '../web-contracts/index';
2
2
  import type { ModuleContext } from '../web-core/index';
3
+ import type { ModulePageDrawerContext } from '../dynamic-page-runtime/index';
3
4
  type __VLS_Props = {
4
5
  open: boolean;
5
- container: HTMLElement | null;
6
+ container?: HTMLElement | null;
7
+ /** Uses the owning platform drawer and renders only this operation's content. */
8
+ embedded?: boolean;
9
+ drawerContext?: ModulePageDrawerContext;
6
10
  context: ModuleContext<Role>;
7
11
  role?: Role;
8
12
  };
@@ -1,9 +1,9 @@
1
- import type { AccountRoleGrant, DataScopePolicy, EmploymentRoleGrant, EmploymentSelectorItem, ManagementScopeType, RoleAuthorizationModule, RoleDataGrantActionMatrix, RoleDataScopePolicyCatalog, RolePermissionMatrix, UserSelectorItem, WebActionResultEnvelope, WebListResponse, WebPageResponse } from '../web-contracts/index';
1
+ import type { AccountRoleGrant, DataScopePolicy, EmploymentRoleGrant, EmploymentSelectorItem, RoleAuthorizationModule, RoleDataGrantActionMatrix, RoleDataScopePolicyCatalog, RolePermissionMatrix, UserSelectorItem, WebActionResultEnvelope, WebListResponse, WebPageResponse } from '../web-contracts/index';
2
2
  import type { HttpClient } from '../web-core/index';
3
3
  export interface AccountRoleGrantRequest {
4
4
  userId: string;
5
- managementScopeType?: ManagementScopeType;
6
- managementScopeId?: string;
5
+ /** Required only when granting a platform-shared account role. */
6
+ targetTenantId?: string;
7
7
  }
8
8
  export interface UserSelectorRequest {
9
9
  roleId?: string;
@@ -40,10 +40,13 @@ export interface DataGrantActionRequest {
40
40
  enabled: boolean;
41
41
  }
42
42
  export declare function createRoleGrantClient(http: HttpClient): {
43
- accountRoleGrants(roleId: string): Promise<AccountRoleGrant[]>;
43
+ accountRoleGrants(roleId: string, targetTenantId?: string): Promise<AccountRoleGrant[]>;
44
44
  grantAccountRole(roleId: string, request: AccountRoleGrantRequest): Promise<string | WebActionResultEnvelope<string>>;
45
- deleteAccountRoleGrant(roleId: string, grantId: string): Promise<number | WebActionResultEnvelope<number>>;
45
+ deleteAccountRoleGrant(roleId: string, grantId: string, targetTenantId?: string): Promise<number | WebActionResultEnvelope<number>>;
46
46
  userSelector(request: UserSelectorRequest): Promise<WebPageResponse<UserSelectorItem>>;
47
+ accountRoleCandidates(roleId: string, request: Omit<UserSelectorRequest, "roleId"> & {
48
+ targetTenantId?: string;
49
+ }): Promise<WebPageResponse<UserSelectorItem>>;
47
50
  employmentRoleGrants(roleId: string): Promise<EmploymentRoleGrant[]>;
48
51
  grantEmploymentRole(roleId: string, employeePositionId: string): Promise<string | WebActionResultEnvelope<string>>;
49
52
  deleteEmploymentRoleGrant(roleId: string, grantId: string): Promise<number | WebActionResultEnvelope<number>>;
@@ -7,6 +7,7 @@ type __VLS_Props = {
7
7
  pagination?: false | UiDataTablePagination;
8
8
  selection?: UiDataTableSelection;
9
9
  size?: 'small' | 'middle' | 'large';
10
+ fillHeight?: boolean;
10
11
  };
11
12
  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>;
12
13
  declare const _default: typeof __VLS_export;
@@ -3,17 +3,36 @@ type __VLS_Props = {
3
3
  nodes: UiTreeNode[];
4
4
  selectedKey?: string;
5
5
  expandedKeys?: string[];
6
+ /** Resolves children only when a non-leaf node is expanded. */
7
+ loadChildren?: (node: UiTreeNode) => Promise<void>;
8
+ /** Re-fetches a node's children after it was explicitly collapsed. */
9
+ reloadOnReexpand?: boolean;
10
+ /** Set false only when an empty lazy branch should remain visibly expanded. */
11
+ collapseEmptyLazyBranch?: boolean;
12
+ /** Keeps the built-in lazy-loading indicator visible long enough to be perceived. */
13
+ minLoadingDurationMs?: number;
14
+ /** Replaces the current lazy snapshot, including Ant Tree's loaded-node bookkeeping. */
15
+ reloadKey?: number;
6
16
  };
7
17
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
18
  action: (action: import("../../web-contracts/index.ts").RecordInlineAction, node: UiTreeNode) => any;
9
19
  select: (node: UiTreeNode) => any;
10
20
  deselect: () => any;
21
+ "unload-children": (node: UiTreeNode) => any;
11
22
  "update:expandedKeys": (keys: string[]) => any;
12
23
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
24
  onAction?: ((action: import("../../web-contracts/index.ts").RecordInlineAction, node: UiTreeNode) => any) | undefined;
14
25
  onSelect?: ((node: UiTreeNode) => any) | undefined;
15
26
  onDeselect?: (() => any) | undefined;
27
+ "onUnload-children"?: ((node: UiTreeNode) => any) | undefined;
16
28
  "onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
+ }>, {
30
+ selectedKey: string;
31
+ expandedKeys: string[];
32
+ loadChildren: (node: UiTreeNode) => Promise<void>;
33
+ collapseEmptyLazyBranch: boolean;
34
+ minLoadingDurationMs: number;
35
+ reloadKey: number;
36
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
37
  declare const _default: typeof __VLS_export;
19
38
  export default _default;
@@ -11,7 +11,11 @@ export interface UiDataTableColumn {
11
11
  }
12
12
  export interface UiDataTablePagination {
13
13
  pageSize: number;
14
+ current?: number;
15
+ total?: number;
14
16
  showSizeChanger?: boolean;
17
+ showQuickJumper?: boolean;
18
+ onChange?: (page: number, pageSize: number) => void;
15
19
  }
16
20
  export interface UiDataTableSelection {
17
21
  selectedRowKeys: UiDataTableKey[];
@@ -43,6 +47,8 @@ export type UiTreeNodeAction = UiRecordInlineAction;
43
47
  export interface UiTreeNode {
44
48
  key: string;
45
49
  title: string;
50
+ /** False keeps the node expandable before its children are loaded. */
51
+ isLeaf?: boolean;
46
52
  disabled?: boolean;
47
53
  secondary?: string;
48
54
  tag?: string;
@@ -665,7 +665,7 @@ export interface UiFormula {
665
665
  /** Versioned program compiled by FormulaEngine. The browser executes it locally and never parses expression. */
666
666
  export interface FormulaProgram {
667
667
  schemaVersion: number;
668
- profile: 'WEB_UI' | 'FORM_COMPUTE';
668
+ profile: 'WEB_UI' | 'PAGE_TEXT' | 'FORM_COMPUTE';
669
669
  root: FormulaNode;
670
670
  referencedFields: string[];
671
671
  }
@@ -880,7 +880,7 @@ export interface ResolvedPageNavigatorLevelDescriptor {
880
880
  management?: ResolvedPageNavigatorManagementDescriptor;
881
881
  }
882
882
  export interface ResolvedPageContextBindingDescriptor {
883
- source: 'SESSION' | 'NAVIGATOR';
883
+ source: 'SESSION' | 'NAVIGATOR' | 'RESOLVED_SELECTION';
884
884
  sourceKey: string;
885
885
  target: 'LIST_QUERY' | 'NAVIGATOR_QUERY' | 'FORM_DEFAULT' | 'PICKER_QUERY' | 'MUTATION_CONSTRAINT';
886
886
  targetKey: string;
@@ -900,11 +900,18 @@ export interface ResolvedPageNavigatorManagementDescriptor {
900
900
  export interface ResolvedPageListDescriptor {
901
901
  searchPlaceholder: string;
902
902
  fields: ResolvedViewDescriptor;
903
+ /** Main-content header copy; PAGE_TEXT programs run only against the host display context. */
904
+ title?: ResolvedPageTextDescriptor;
905
+ subtitle?: ResolvedPageTextDescriptor;
903
906
  /** Read-only placements of declared aggregate relations beneath an expanded list row. */
904
907
  relationExpansions?: ResolvedPageListRelationExpansionDescriptor[];
905
908
  persistentQueryControls?: ResolvedPageListPersistentQueryControlDescriptor[];
906
909
  querySummaries?: ResolvedPageListQuerySummaryDescriptor[];
907
910
  }
911
+ export interface ResolvedPageTextDescriptor {
912
+ text?: string;
913
+ program?: FormulaProgram;
914
+ }
908
915
  export interface ResolvedPageListQuerySummaryDescriptor {
909
916
  key: string;
910
917
  title: string;
@@ -75,11 +75,11 @@ export interface NavigatorReferenceRequestContext {
75
75
  targetLevelKey: string;
76
76
  }
77
77
  export declare function createStaticResourceTreeClient<TRecord>(http: HttpClient, resourcePath: string): ModuleTreeClient<TRecord>;
78
- /** @deprecated Use ModuleCrudClient. Remove after static-prefixed consumer imports migrate. */
78
+ /** @deprecated Use ModuleCrudClient. Retained for published consumer compatibility. */
79
79
  export type StaticModuleCrudClient<TRecord> = ModuleCrudClient<TRecord>;
80
- /** @deprecated Use ModuleTreeClient. Remove after static-prefixed consumer imports migrate. */
80
+ /** @deprecated Use ModuleTreeClient. Retained for published consumer compatibility. */
81
81
  export type StaticModuleTreeClient<TRecord> = ModuleTreeClient<TRecord>;
82
- /** @deprecated Use createModuleCrudClient. Remove after static-prefixed consumer imports migrate. */
82
+ /** @deprecated Use createModuleCrudClient. Retained for published consumer compatibility. */
83
83
  export declare const createStaticModuleCrudClient: typeof createModuleCrudClient;
84
- /** @deprecated Use createModuleTreeClient. Remove after static-prefixed consumer imports migrate. */
84
+ /** @deprecated Use createModuleTreeClient. Retained for published consumer compatibility. */
85
85
  export declare const createStaticModuleTreeClient: typeof createModuleTreeClient;