@ximatai/muyun-web-app 0.26.3

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 (241) hide show
  1. package/dist/EmployeeDetailWorkspaceView-mtdcsqgF.js +14 -0
  2. package/dist/EmployeeManagementView-CKKvQZaC.js +1706 -0
  3. package/dist/MetadataOrchestrationView-CprWBocy.js +655 -0
  4. package/dist/ModuleActionManagementView-DNuAQUPE.js +597 -0
  5. package/dist/RoleAuthorizationView-CQtSAJoJ.js +592 -0
  6. package/dist/RoleDetailWorkspaceView-Dh8DXpyS.js +26 -0
  7. package/dist/RoleManagementView-BrqaFV7y.js +1927 -0
  8. package/dist/SystemUserDetailWorkspaceView-N-kvycAu.js +17 -0
  9. package/dist/SystemUserManagementView-BVS5moV5.js +761 -0
  10. package/dist/UserDetailWorkspaceView-Iek6xwix.js +17 -0
  11. package/dist/UserManagementView-BR_Jz8O-.js +965 -0
  12. package/dist/currentUserContext-B1lj1WgF.js +11 -0
  13. package/dist/index.css +2 -0
  14. package/dist/index.js +7127 -0
  15. package/dist/pageRealtime-sRtDYlQP.js +140 -0
  16. package/dist/platform-components-bC1gwhic.js +8412 -0
  17. package/dist/types/App.vue.d.ts +3 -0
  18. package/dist/types/app/ChangeOwnPasswordDialog.vue.d.ts +27 -0
  19. package/dist/types/app/LoginView.vue.d.ts +14 -0
  20. package/dist/types/app/appWorkbenchStartup.d.ts +3 -0
  21. package/dist/types/app/devWorkbenchStartup.d.ts +1 -0
  22. package/dist/types/app/loginTenant.d.ts +6 -0
  23. package/dist/types/app/platformMessage.d.ts +6 -0
  24. package/dist/types/app/query.d.ts +3 -0
  25. package/dist/types/app/router.d.ts +1 -0
  26. package/dist/types/app/workbenchStartup.d.ts +24 -0
  27. package/dist/types/consumer/PlatformAdminOutlet.vue.d.ts +7 -0
  28. package/dist/types/consumer/index.d.ts +15 -0
  29. package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +7 -0
  30. package/dist/types/dynamic-page-runtime/DynamicModulePage.vue.d.ts +7 -0
  31. package/dist/types/dynamic-page-runtime/actionReactions.d.ts +16 -0
  32. package/dist/types/dynamic-page-runtime/index.d.ts +3 -0
  33. package/dist/types/dynamic-page-runtime/mockDescriptor.d.ts +2 -0
  34. package/dist/types/main.d.ts +2 -0
  35. package/dist/types/platform-admin-runtime/PlatformAdminOutlet.vue.d.ts +7 -0
  36. package/dist/types/platform-admin-runtime/WorkspaceViewDrawer.vue.d.ts +32 -0
  37. package/dist/types/platform-admin-runtime/WorkspaceViewOutlet.vue.d.ts +7 -0
  38. package/dist/types/platform-admin-runtime/authSession.d.ts +8 -0
  39. package/dist/types/platform-admin-runtime/backendHttp.d.ts +3 -0
  40. package/dist/types/platform-admin-runtime/currentUserContext.d.ts +4 -0
  41. package/dist/types/platform-admin-runtime/index.d.ts +12 -0
  42. package/dist/types/platform-admin-runtime/moduleOpenApi.d.ts +36 -0
  43. package/dist/types/platform-admin-runtime/pageRealtime.d.ts +61 -0
  44. package/dist/types/platform-admin-runtime/platformAdminRoutes.d.ts +21 -0
  45. package/dist/types/platform-admin-runtime/realtime.d.ts +20 -0
  46. package/dist/types/platform-admin-runtime/sessionRecovery.d.ts +3 -0
  47. package/dist/types/platform-admin-runtime/useWorkspaceViewPromotion.d.ts +24 -0
  48. package/dist/types/platform-admin-runtime/workspaceViewContract.d.ts +36 -0
  49. package/dist/types/platform-admin-runtime/workspaceViewContributions.d.ts +3 -0
  50. package/dist/types/platform-admin-runtime/workspaceViewHost.d.ts +10 -0
  51. package/dist/types/platform-admin-runtime/workspaceViewSessions.d.ts +18 -0
  52. package/dist/types/platform-admin-runtime/workspaceViews.d.ts +18 -0
  53. package/dist/types/platform-components/ApplicationScopeSwitcher.vue.d.ts +18 -0
  54. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +52 -0
  55. package/dist/types/platform-components/DateTimeText.vue.d.ts +15 -0
  56. package/dist/types/platform-components/DrawerOperationBar.vue.d.ts +18 -0
  57. package/dist/types/platform-components/EnabledSelect.vue.d.ts +14 -0
  58. package/dist/types/platform-components/ManagementExplorerColumn.vue.d.ts +13 -0
  59. package/dist/types/platform-components/ManagementWorkspace.vue.d.ts +19 -0
  60. package/dist/types/platform-components/ModuleActionButton.vue.d.ts +40 -0
  61. package/dist/types/platform-components/RecordActionBar.vue.d.ts +20 -0
  62. package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +37 -0
  63. package/dist/types/platform-components/RecordDetailFields.vue.d.ts +23 -0
  64. package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +37 -0
  65. package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +25 -0
  66. package/dist/types/platform-components/RecordExpandedSubtable.vue.d.ts +29 -0
  67. package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +39 -0
  68. package/dist/types/platform-components/RecordExternalChangeNotice.vue.d.ts +20 -0
  69. package/dist/types/platform-components/RecordFormFields.vue.d.ts +31 -0
  70. package/dist/types/platform-components/RecordListExplorer.vue.d.ts +42 -0
  71. package/dist/types/platform-components/RecordMetaSection.vue.d.ts +8 -0
  72. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +74 -0
  73. package/dist/types/platform-components/RecordPicker.vue.d.ts +35 -0
  74. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +103 -0
  75. package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +18 -0
  76. package/dist/types/platform-components/RecordStatusTag.vue.d.ts +6 -0
  77. package/dist/types/platform-components/RecordTreeSelector.vue.d.ts +22 -0
  78. package/dist/types/platform-components/RecycleBinModeButton.vue.d.ts +16 -0
  79. package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +44 -0
  80. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +57 -0
  81. package/dist/types/platform-components/UserSessionExpandedSubtable.vue.d.ts +26 -0
  82. package/dist/types/platform-components/actionConfirmation.d.ts +3 -0
  83. package/dist/types/platform-components/crudRecordListModel.d.ts +10 -0
  84. package/dist/types/platform-components/drawerPromotion.d.ts +4 -0
  85. package/dist/types/platform-components/index.d.ts +76 -0
  86. package/dist/types/platform-components/optionFieldOptions.d.ts +10 -0
  87. package/dist/types/platform-components/pageLayoutContext.d.ts +6 -0
  88. package/dist/types/platform-components/platformActionResultFeedback.d.ts +12 -0
  89. package/dist/types/platform-components/platformActionResultReactions.d.ts +53 -0
  90. package/dist/types/platform-components/platformDateTime.d.ts +16 -0
  91. package/dist/types/platform-components/platformErrorFeedback.d.ts +15 -0
  92. package/dist/types/platform-components/platformTimeZoneContext.d.ts +3 -0
  93. package/dist/types/platform-components/recordActionBarModel.d.ts +27 -0
  94. package/dist/types/platform-components/recordDetailFieldModel.d.ts +7 -0
  95. package/dist/types/platform-components/recordDraftNormalizer.d.ts +1 -0
  96. package/dist/types/platform-components/recordEditorSessionState.d.ts +38 -0
  97. package/dist/types/platform-components/recordExplorerItemModel.d.ts +8 -0
  98. package/dist/types/platform-components/recordFormFieldModel.d.ts +57 -0
  99. package/dist/types/platform-components/recordPickerConstraints.d.ts +20 -0
  100. package/dist/types/platform-components/recordPickerModel.d.ts +2 -0
  101. package/dist/types/platform-components/recycleBinState.d.ts +39 -0
  102. package/dist/types/platform-components/scopedResourceTreeModuleContext.d.ts +6 -0
  103. package/dist/types/platform-components/scopedTreeModuleContext.d.ts +10 -0
  104. package/dist/types/platform-components/softDeletedConflictHandler.d.ts +75 -0
  105. package/dist/types/platform-components/staticCrudManagementState.d.ts +66 -0
  106. package/dist/types/platform-components/staticFormActionFlow.d.ts +39 -0
  107. package/dist/types/platform-components/staticTreeResourceModuleContext.d.ts +7 -0
  108. package/dist/types/platform-components/treeRecordModel.d.ts +17 -0
  109. package/dist/types/platform-components/useRecycleBinExplorerMode.d.ts +26 -0
  110. package/dist/types/platform-components/userSessionPresentation.d.ts +12 -0
  111. package/dist/types/platform-workbench/Workbench.vue.d.ts +46 -0
  112. package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +23 -0
  113. package/dist/types/platform-workbench/WorkbenchMenuTree.vue.d.ts +13 -0
  114. package/dist/types/platform-workbench/WorkbenchOutlet.vue.d.ts +7 -0
  115. package/dist/types/platform-workbench/hosts/BusinessRouteHost.vue.d.ts +7 -0
  116. package/dist/types/platform-workbench/hosts/ExternalPageHost.vue.d.ts +7 -0
  117. package/dist/types/platform-workbench/hosts/PlatformRouteHost.vue.d.ts +7 -0
  118. package/dist/types/platform-workbench/index.d.ts +11 -0
  119. package/dist/types/platform-workbench/menuNavigation.d.ts +28 -0
  120. package/dist/types/platform-workbench/menuTreeModel.d.ts +20 -0
  121. package/dist/types/platform-workbench/pageHostRegistry.d.ts +3 -0
  122. package/dist/types/platform-workbench/realtimeStatus.d.ts +7 -0
  123. package/dist/types/platform-workbench/workbenchNavigation.d.ts +12 -0
  124. package/dist/types/views/ApplicationManagementView.vue.d.ts +3 -0
  125. package/dist/types/views/DepartmentManagementView.vue.d.ts +3 -0
  126. package/dist/types/views/DictionaryManagementView.vue.d.ts +3 -0
  127. package/dist/types/views/EmployeeDetailContent.vue.d.ts +64 -0
  128. package/dist/types/views/EmployeeDetailWorkspaceView.vue.d.ts +6 -0
  129. package/dist/types/views/EmployeeEmploymentDrawer.vue.d.ts +14 -0
  130. package/dist/types/views/EmployeeEmploymentTable.vue.d.ts +18 -0
  131. package/dist/types/views/EmployeeManagementView.vue.d.ts +7 -0
  132. package/dist/types/views/FieldSpecManagementView.vue.d.ts +3 -0
  133. package/dist/types/views/FieldUiControlManagementView.vue.d.ts +3 -0
  134. package/dist/types/views/HomeView.vue.d.ts +3 -0
  135. package/dist/types/views/MenuManagementView.vue.d.ts +3 -0
  136. package/dist/types/views/MetadataOrchestrationView.vue.d.ts +8 -0
  137. package/dist/types/views/ModuleActionManagementView.vue.d.ts +9 -0
  138. package/dist/types/views/ModuleManagementView.vue.d.ts +3 -0
  139. package/dist/types/views/ModuleOpenApiView.vue.d.ts +10 -0
  140. package/dist/types/views/OpenApiCatalogView.vue.d.ts +9 -0
  141. package/dist/types/views/OrganizationManagementView.vue.d.ts +3 -0
  142. package/dist/types/views/PasswordManagementView.vue.d.ts +3 -0
  143. package/dist/types/views/PositionManagementView.vue.d.ts +3 -0
  144. package/dist/types/views/RoleAccountGrantDrawer.vue.d.ts +16 -0
  145. package/dist/types/views/RoleAuthorizationView.vue.d.ts +12 -0
  146. package/dist/types/views/RoleDetailWorkspaceView.vue.d.ts +9 -0
  147. package/dist/types/views/RoleEmploymentGrantDrawer.vue.d.ts +16 -0
  148. package/dist/types/views/RoleGroupMemberSelector.vue.d.ts +18 -0
  149. package/dist/types/views/RoleManagementView.vue.d.ts +9 -0
  150. package/dist/types/views/SystemUserDetailWorkspaceView.vue.d.ts +7 -0
  151. package/dist/types/views/SystemUserManagementView.vue.d.ts +7 -0
  152. package/dist/types/views/TenantManagementView.vue.d.ts +3 -0
  153. package/dist/types/views/UserDetailContent.vue.d.ts +32 -0
  154. package/dist/types/views/UserDetailWorkspaceView.vue.d.ts +7 -0
  155. package/dist/types/views/UserManagementView.vue.d.ts +8 -0
  156. package/dist/types/views/applicationManagementState.d.ts +64 -0
  157. package/dist/types/views/departmentManagementState.d.ts +137 -0
  158. package/dist/types/views/dictionaryManagementState.d.ts +215 -0
  159. package/dist/types/views/employeeDetailStateModel.d.ts +39 -0
  160. package/dist/types/views/employeeDetailWorkspaceSession.d.ts +16 -0
  161. package/dist/types/views/employeeDetailWorkspaceView.d.ts +4 -0
  162. package/dist/types/views/fieldSpecManagementState.d.ts +80 -0
  163. package/dist/types/views/fieldUiControlManagementState.d.ts +76 -0
  164. package/dist/types/views/menuManagementState.d.ts +178 -0
  165. package/dist/types/views/metadataOrchestrationState.d.ts +278 -0
  166. package/dist/types/views/metadataOrchestrationWorkspaceView.d.ts +6 -0
  167. package/dist/types/views/moduleActionManagementWorkspaceView.d.ts +7 -0
  168. package/dist/types/views/moduleManagementState.d.ts +76 -0
  169. package/dist/types/views/organizationManagementState.d.ts +64 -0
  170. package/dist/types/views/positionManagementState.d.ts +218 -0
  171. package/dist/types/views/roleAuthorizationWorkspaceSession.d.ts +17 -0
  172. package/dist/types/views/roleAuthorizationWorkspaceView.d.ts +5 -0
  173. package/dist/types/views/roleDetailWorkspaceSession.d.ts +19 -0
  174. package/dist/types/views/roleDetailWorkspaceView.d.ts +8 -0
  175. package/dist/types/views/roleGrantClient.d.ts +59 -0
  176. package/dist/types/views/systemUserDetailWorkspaceSession.d.ts +12 -0
  177. package/dist/types/views/systemUserDetailWorkspaceView.d.ts +5 -0
  178. package/dist/types/views/tenantManagementState.d.ts +64 -0
  179. package/dist/types/views/useEmployeeEmploymentRows.d.ts +20 -0
  180. package/dist/types/views/useUserSessionRows.d.ts +28 -0
  181. package/dist/types/views/userDetailStateModel.d.ts +11 -0
  182. package/dist/types/views/userDetailWorkspaceSession.d.ts +14 -0
  183. package/dist/types/views/userDetailWorkspaceView.d.ts +4 -0
  184. package/dist/types/vue-ui-antdv/components/ActionBar.vue.d.ts +11 -0
  185. package/dist/types/vue-ui-antdv/components/DictionarySelect.vue.d.ts +14 -0
  186. package/dist/types/vue-ui-antdv/components/ReferenceSelect.vue.d.ts +16 -0
  187. package/dist/types/vue-ui-antdv/components/UiActionButton.vue.d.ts +37 -0
  188. package/dist/types/vue-ui-antdv/components/UiBadge.vue.d.ts +20 -0
  189. package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +41 -0
  190. package/dist/types/vue-ui-antdv/components/UiCheckbox.vue.d.ts +30 -0
  191. package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +71 -0
  192. package/dist/types/vue-ui-antdv/components/UiDropdown.vue.d.ts +29 -0
  193. package/dist/types/vue-ui-antdv/components/UiEmpty.vue.d.ts +6 -0
  194. package/dist/types/vue-ui-antdv/components/UiError.vue.d.ts +7 -0
  195. package/dist/types/vue-ui-antdv/components/UiForm.vue.d.ts +15 -0
  196. package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +7 -0
  197. package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +25 -0
  198. package/dist/types/vue-ui-antdv/components/UiMenu.vue.d.ts +19 -0
  199. package/dist/types/vue-ui-antdv/components/UiModal.vue.d.ts +36 -0
  200. package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +26 -0
  201. package/dist/types/vue-ui-antdv/components/UiSearchInput.vue.d.ts +22 -0
  202. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +30 -0
  203. package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +28 -0
  204. package/dist/types/vue-ui-antdv/components/UiSidePanelHost.vue.d.ts +13 -0
  205. package/dist/types/vue-ui-antdv/components/UiSpin.vue.d.ts +22 -0
  206. package/dist/types/vue-ui-antdv/components/UiSwitch.vue.d.ts +22 -0
  207. package/dist/types/vue-ui-antdv/components/UiTable.vue.d.ts +13 -0
  208. package/dist/types/vue-ui-antdv/components/UiTabs.vue.d.ts +14 -0
  209. package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +20 -0
  210. package/dist/types/vue-ui-antdv/components/UiTooltip.vue.d.ts +19 -0
  211. package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +17 -0
  212. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +30 -0
  213. package/dist/types/vue-ui-antdv/components/sidePanelHost.d.ts +3 -0
  214. package/dist/types/vue-ui-antdv/confirm.d.ts +5 -0
  215. package/dist/types/vue-ui-antdv/dataTableModel.d.ts +10 -0
  216. package/dist/types/vue-ui-antdv/dictionaries.d.ts +2 -0
  217. package/dist/types/vue-ui-antdv/feedback.d.ts +10 -0
  218. package/dist/types/vue-ui-antdv/index.d.ts +36 -0
  219. package/dist/types/vue-ui-antdv/references.d.ts +8 -0
  220. package/dist/types/vue-ui-antdv/registry.d.ts +3 -0
  221. package/dist/types/vue-ui-antdv/types.d.ts +65 -0
  222. package/dist/types/web-contracts/index.d.ts +862 -0
  223. package/dist/types/web-core/actionResult.d.ts +28 -0
  224. package/dist/types/web-core/clients.d.ts +23 -0
  225. package/dist/types/web-core/dataChanges.d.ts +15 -0
  226. package/dist/types/web-core/errors.d.ts +65 -0
  227. package/dist/types/web-core/http.d.ts +21 -0
  228. package/dist/types/web-core/index.d.ts +8 -0
  229. package/dist/types/web-core/mock.d.ts +6 -0
  230. package/dist/types/web-core/module/abilities.d.ts +21 -0
  231. package/dist/types/web-core/module/abilityCodes.d.ts +18 -0
  232. package/dist/types/web-core/module/index.d.ts +6 -0
  233. package/dist/types/web-core/module/moduleContext.d.ts +49 -0
  234. package/dist/types/web-core/module/recycleBin.d.ts +6 -0
  235. package/dist/types/web-core/module/runtimeContext.d.ts +65 -0
  236. package/dist/types/web-core/module/staticModuleClient.d.ts +45 -0
  237. package/dist/types/web-core/query.d.ts +16 -0
  238. package/dist/types/web-core/realtime.d.ts +104 -0
  239. package/dist/useUserSessionRows-CLM0ZvAF.js +128 -0
  240. package/dist/workspaceViewSessions-WsJU3OS7.js +1578 -0
  241. package/package.json +27 -0
@@ -0,0 +1,19 @@
1
+ import type { Organization, Role, RoleOwnerScopeType, Tenant } from '@muyun/web-contracts';
2
+ import { type RoleDetailWorkspaceViewInput } from './roleDetailWorkspaceView';
3
+ export interface RoleDetailWorkspaceScope {
4
+ kind: RoleOwnerScopeType;
5
+ id?: string;
6
+ key: string;
7
+ title: string;
8
+ tenant?: Tenant;
9
+ organization?: Organization;
10
+ }
11
+ export interface RoleDetailWorkspaceSession {
12
+ selectedRole: Role;
13
+ draft: Partial<Role>;
14
+ scope: RoleDetailWorkspaceScope;
15
+ mode: 'view' | 'edit';
16
+ }
17
+ export declare function handOffRoleDetailWorkspaceSession(input: RoleDetailWorkspaceViewInput, session: RoleDetailWorkspaceSession): Promise<"accepted" | "rejected">;
18
+ export declare function registerRoleDetailWorkspaceHandoffRecipient(input: RoleDetailWorkspaceViewInput, recipient: (session: RoleDetailWorkspaceSession) => boolean): () => void;
19
+ export declare function takeRoleDetailWorkspaceSession(input: RoleDetailWorkspaceViewInput): RoleDetailWorkspaceSession | undefined;
@@ -0,0 +1,8 @@
1
+ import type { RoleOwnerScopeType } from '@muyun/web-contracts';
2
+ export interface RoleDetailWorkspaceViewInput {
3
+ recordId: string;
4
+ scopeKind: RoleOwnerScopeType;
5
+ /** Platform-owned roles deliberately have no scope id. */
6
+ scopeId?: string;
7
+ }
8
+ export declare const roleDetailWorkspaceView: import("../platform-admin-runtime/workspaceViewContract").WorkspaceViewDefinition<RoleDetailWorkspaceViewInput>;
@@ -0,0 +1,59 @@
1
+ import type { AccountRoleGrant, DataScopePolicy, EmploymentRoleGrant, EmploymentSelectorItem, ManagementScopeType, RoleAuthorizationModule, RoleDataGrantActionMatrix, RoleDataScopePolicyCatalog, RolePermissionMatrix, UserSelectorItem, WebActionResultEnvelope, WebListResponse, WebPageResponse } from '@muyun/web-contracts';
2
+ import type { HttpClient } from '@muyun/web-core';
3
+ export interface AccountRoleGrantRequest {
4
+ userId: string;
5
+ managementScopeType?: ManagementScopeType;
6
+ managementScopeId?: string;
7
+ }
8
+ export interface UserSelectorRequest {
9
+ roleId?: string;
10
+ keyword?: string;
11
+ enabledOnly?: boolean;
12
+ page?: {
13
+ pageNum: number;
14
+ pageSize: number;
15
+ };
16
+ }
17
+ export interface EmploymentSelectorRequest {
18
+ roleId?: string;
19
+ organizationId?: string;
20
+ departmentId?: string;
21
+ enabledOnly?: boolean;
22
+ page?: {
23
+ pageNum: number;
24
+ pageSize: number;
25
+ };
26
+ }
27
+ export interface RoleActionGrantRequest {
28
+ moduleAlias: string;
29
+ actionCode: string;
30
+ dataScopePolicy?: DataScopePolicy;
31
+ referenceFieldId?: string;
32
+ referenceActionCode?: string;
33
+ }
34
+ export interface RolePermissionMatrixActionRequest extends RoleActionGrantRequest {
35
+ granted: boolean;
36
+ }
37
+ export interface DataGrantActionRequest {
38
+ actionCode: string;
39
+ dataScopePolicy?: DataScopePolicy;
40
+ enabled: boolean;
41
+ }
42
+ export declare function createRoleGrantClient(http: HttpClient): {
43
+ accountRoleGrants(roleId: string): Promise<AccountRoleGrant[]>;
44
+ grantAccountRole(roleId: string, request: AccountRoleGrantRequest): Promise<string | WebActionResultEnvelope<string>>;
45
+ deleteAccountRoleGrant(roleId: string, grantId: string): Promise<number | WebActionResultEnvelope<number>>;
46
+ userSelector(request: UserSelectorRequest): Promise<WebPageResponse<UserSelectorItem>>;
47
+ employmentRoleGrants(roleId: string): Promise<EmploymentRoleGrant[]>;
48
+ grantEmploymentRole(roleId: string, employeePositionId: string): Promise<string | WebActionResultEnvelope<string>>;
49
+ deleteEmploymentRoleGrant(roleId: string, grantId: string): Promise<number | WebActionResultEnvelope<number>>;
50
+ employmentSelector(roleId: string, request: EmploymentSelectorRequest): Promise<WebPageResponse<EmploymentSelectorItem>>;
51
+ authorizationModules(roleId: string): Promise<WebListResponse<RoleAuthorizationModule>>;
52
+ permissionMatrix(roleId: string, moduleAliases: string[]): Promise<RolePermissionMatrix>;
53
+ grantAction(roleId: string, request: RoleActionGrantRequest): Promise<number | WebActionResultEnvelope<number>>;
54
+ revokeAction(roleId: string, moduleAlias: string, actionCode: string): Promise<number | WebActionResultEnvelope<number>>;
55
+ replacePermissionMatrix(roleId: string, actions: RolePermissionMatrixActionRequest[]): Promise<number | WebActionResultEnvelope<number>>;
56
+ dataGrantActionMatrix(roleId: string): Promise<RoleDataGrantActionMatrix>;
57
+ dataScopePolicyCatalog(roleId: string, moduleAlias?: string): Promise<RoleDataScopePolicyCatalog>;
58
+ replaceDataGrantActions(roleId: string, actions: DataGrantActionRequest[]): Promise<number | WebActionResultEnvelope<number>>;
59
+ };
@@ -0,0 +1,12 @@
1
+ import type { ResetPasswordResponse, UserAccount } from '@muyun/web-contracts';
2
+ import { type SystemUserDetailWorkspaceViewInput } from './systemUserDetailWorkspaceView';
3
+ export interface SystemUserDetailWorkspaceSession {
4
+ selectedUser: UserAccount;
5
+ draft: Partial<UserAccount>;
6
+ mode: 'view' | 'edit';
7
+ password: string;
8
+ resetPasswordResult?: ResetPasswordResponse;
9
+ }
10
+ export declare function handOffSystemUserDetailWorkspaceSession(input: SystemUserDetailWorkspaceViewInput, session: SystemUserDetailWorkspaceSession): Promise<"accepted" | "rejected">;
11
+ export declare function registerSystemUserDetailWorkspaceHandoffRecipient(input: SystemUserDetailWorkspaceViewInput, recipient: (session: SystemUserDetailWorkspaceSession) => boolean): () => void;
12
+ export declare function takeSystemUserDetailWorkspaceSession(input: SystemUserDetailWorkspaceViewInput): SystemUserDetailWorkspaceSession | undefined;
@@ -0,0 +1,5 @@
1
+ export interface SystemUserDetailWorkspaceViewInput {
2
+ recordId: string;
3
+ }
4
+ /** A system account detail has a stable identity and can be resumed independently. */
5
+ export declare const systemUserDetailWorkspaceView: import("../platform-admin-runtime/workspaceViewContract").WorkspaceViewDefinition<SystemUserDetailWorkspaceViewInput>;
@@ -0,0 +1,64 @@
1
+ import type { Tenant } from '@muyun/web-contracts';
2
+ import type { ModuleContext } from '@muyun/web-core';
3
+ import type { UiConfirmOptions } from '@muyun/vue-ui-antdv';
4
+ import { type StaticCrudActionErrorHandler } from '../platform-components/staticCrudManagementState';
5
+ import type { PlatformActionResultReactionHandler } from '../platform-components/platformActionResultFeedback';
6
+ type ConfirmAction = (options: UiConfirmOptions) => Promise<boolean>;
7
+ export interface TenantManagementStateOptions {
8
+ actionErrorHandlers?: StaticCrudActionErrorHandler<Tenant>[];
9
+ actionResultReactionHandlers?: Record<string, PlatformActionResultReactionHandler | undefined>;
10
+ }
11
+ export declare function createTenantManagementState(tenantContext: ModuleContext<Tenant>, confirmAction: ConfirmAction, options?: TenantManagementStateOptions): {
12
+ aliasReadonly: import("vue").ComputedRef<boolean>;
13
+ selected: import("vue").Ref<Tenant | undefined, Tenant | undefined>;
14
+ draft: import("vue").Ref<{
15
+ alias?: string | undefined;
16
+ enabled?: boolean | undefined;
17
+ sortOrder?: number | undefined;
18
+ title?: string | undefined;
19
+ id?: string | undefined;
20
+ tenantId?: string | undefined;
21
+ version?: number | undefined;
22
+ deleted?: boolean | undefined;
23
+ deletedAt?: string | undefined;
24
+ createdBy?: string | undefined;
25
+ createdAt?: string | undefined;
26
+ updatedBy?: string | undefined;
27
+ updatedAt?: string | undefined;
28
+ }, Tenant | {
29
+ alias?: string | undefined;
30
+ enabled?: boolean | undefined;
31
+ sortOrder?: number | undefined;
32
+ title?: string | undefined;
33
+ id?: string | undefined;
34
+ tenantId?: string | undefined;
35
+ version?: number | undefined;
36
+ deleted?: boolean | undefined;
37
+ deletedAt?: string | undefined;
38
+ createdBy?: string | undefined;
39
+ createdAt?: string | undefined;
40
+ updatedBy?: string | undefined;
41
+ updatedAt?: string | undefined;
42
+ }>;
43
+ mode: import("vue").Ref<import("../platform-components").StaticCrudCardMode, import("../platform-components").StaticCrudCardMode>;
44
+ reloadKey: import("vue").Ref<number, number>;
45
+ saving: import("vue").Ref<boolean, boolean>;
46
+ actionError: import("vue").Ref<string | undefined, string | undefined>;
47
+ cardTitle: import("vue").ComputedRef<string>;
48
+ readonly: import("vue").ComputedRef<boolean>;
49
+ canCreate: import("vue").ComputedRef<boolean>;
50
+ canUpdate: import("vue").ComputedRef<boolean>;
51
+ canDelete: import("vue").ComputedRef<boolean>;
52
+ canEnable: import("vue").ComputedRef<boolean>;
53
+ canMutate: import("vue").ComputedRef<boolean>;
54
+ handleListLoaded: (records: Tenant[]) => void;
55
+ handleReadonlyListLoaded: (records: Tenant[]) => void;
56
+ handleSelect: (record: Tenant) => void;
57
+ startCreate: () => void;
58
+ startEdit: () => void;
59
+ cancelEdit: () => void;
60
+ save: () => Promise<void>;
61
+ toggleEnabled: () => Promise<void>;
62
+ removeSelected: () => Promise<void>;
63
+ };
64
+ export {};
@@ -0,0 +1,20 @@
1
+ import type { Employee, EmploymentSelectorItem } from '@muyun/web-contracts';
2
+ import type { ModuleContext } from '@muyun/web-core';
3
+ export interface EmployeeEmploymentRowState {
4
+ records: EmploymentSelectorItem[];
5
+ loading: boolean;
6
+ error?: string;
7
+ }
8
+ export declare function useEmployeeEmploymentRows(options: {
9
+ context: ModuleContext<Employee>;
10
+ source: string;
11
+ pathOf?: (employeeId: string) => string;
12
+ }): {
13
+ expandedEmployeeKeys: import("vue").Ref<string[], string[]>;
14
+ employmentRowState: (employeeId: string | undefined) => EmployeeEmploymentRowState;
15
+ handleEmployeeRowExpand: (record: {
16
+ id?: string;
17
+ }, expanded: boolean) => void;
18
+ loadEmployeeEmploymentRows: (employeeId: string | undefined) => Promise<void>;
19
+ resetEmployeeEmploymentRows: () => void;
20
+ };
@@ -0,0 +1,28 @@
1
+ export { userSessionPresenceTitle } from '@muyun/platform-components';
2
+ import type { UserAccount, UserSessionView, WebBusinessRealtimeEvent } from '@muyun/web-contracts';
3
+ import type { ModuleContext } from '@muyun/web-core';
4
+ export interface UserSessionState {
5
+ records: UserSessionView[];
6
+ loading: boolean;
7
+ error?: string;
8
+ }
9
+ export interface UserSessionRowsOptions {
10
+ context: ModuleContext<UserAccount>;
11
+ source: string;
12
+ }
13
+ export declare function useUserSessionRows(options: UserSessionRowsOptions): {
14
+ expandedUserKeys: import("vue").Ref<string[], string[]>;
15
+ handleUserListLoaded: (records: Array<{
16
+ id?: string;
17
+ }>) => void;
18
+ handleUserRowExpand: (record: {
19
+ id?: string;
20
+ }, expanded: boolean) => void;
21
+ handleUserSessionBusinessEvent: (event: WebBusinessRealtimeEvent) => void;
22
+ loadUserSessions: (userId: string | undefined) => void;
23
+ resetUserSessionRows: () => void;
24
+ userOnlineStatusTitle: (record: {
25
+ id?: string;
26
+ }) => string;
27
+ userSessionState: (userId: string | undefined) => UserSessionState;
28
+ };
@@ -0,0 +1,11 @@
1
+ export type UserDetailMode = 'view' | 'create' | 'edit' | 'resetPassword';
2
+ export interface UserDetailRequestState {
3
+ activeRequestSeq: number;
4
+ requestSeq: number;
5
+ selectedUserKey?: string;
6
+ recordId: string;
7
+ }
8
+ export declare function canSwitchUserDetailContext(saving: boolean): boolean;
9
+ export declare function shouldCommitUserDetailRequest(state: UserDetailRequestState): boolean;
10
+ export declare function persistedUserDetailMode(mode: UserDetailMode): 'view' | 'edit';
11
+ export declare function hasUserDetailUnsavedChanges(draft: object, selected: object): boolean;
@@ -0,0 +1,14 @@
1
+ import type { ResetPasswordResponse, Tenant, UserAccount } from '@muyun/web-contracts';
2
+ import { type UserDetailWorkspaceViewInput } from './userDetailWorkspaceView';
3
+ import type { UserDetailMode } from './userDetailStateModel';
4
+ export interface UserDetailWorkspaceSession {
5
+ selectedUser: UserAccount;
6
+ draft: Partial<UserAccount>;
7
+ tenant?: Tenant;
8
+ mode: Extract<UserDetailMode, 'view' | 'edit'>;
9
+ password: string;
10
+ resetPasswordResult?: ResetPasswordResponse;
11
+ }
12
+ export declare function handOffUserDetailWorkspaceSession(input: UserDetailWorkspaceViewInput, session: UserDetailWorkspaceSession): Promise<"accepted" | "rejected">;
13
+ export declare function registerUserDetailWorkspaceHandoffRecipient(input: UserDetailWorkspaceViewInput, recipient: (session: UserDetailWorkspaceSession) => boolean): () => void;
14
+ export declare function takeUserDetailWorkspaceSession(input: UserDetailWorkspaceViewInput): UserDetailWorkspaceSession | undefined;
@@ -0,0 +1,4 @@
1
+ export interface UserDetailWorkspaceViewInput {
2
+ recordId: string;
3
+ }
4
+ export declare const userDetailWorkspaceView: import("../platform-admin-runtime/workspaceViewContract").WorkspaceViewDefinition<UserDetailWorkspaceViewInput>;
@@ -0,0 +1,11 @@
1
+ import type { ActionContract } from '@muyun/web-contracts';
2
+ type __VLS_Props = {
3
+ actions: ActionContract[];
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ execute: (action: ActionContract) => any;
7
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ onExecute?: ((action: ActionContract) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import type { OptionValue } from '@muyun/web-contracts';
2
+ type __VLS_Props = {
3
+ value?: OptionValue | null;
4
+ dictionaryAlias?: string;
5
+ placeholder?: string;
6
+ disabled?: boolean;
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ "update:value": (value: OptionValue | null) => any;
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ "onUpdate:value"?: ((value: OptionValue | null) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import type { OptionValue, Primitive, ReferenceContract } from '@muyun/web-contracts';
2
+ type __VLS_Props = {
3
+ value?: OptionValue | null;
4
+ reference?: ReferenceContract;
5
+ placeholder?: string;
6
+ disabled?: boolean;
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ "update:value": (value: OptionValue | null) => any;
10
+ "fill-back": (patch: Record<string, Primitive>) => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ "onUpdate:value"?: ((value: OptionValue | null) => any) | undefined;
13
+ "onFill-back"?: ((patch: Record<string, Primitive>) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,37 @@
1
+ import type { UiIconName } from './UiIcon.vue';
2
+ type __VLS_Props = {
3
+ emphasis?: 'primary' | 'secondary' | 'quiet';
4
+ intent?: 'normal' | 'danger';
5
+ density?: 'regular' | 'compact';
6
+ submit?: boolean;
7
+ disabled?: boolean;
8
+ loading?: boolean;
9
+ title?: string;
10
+ iconName?: UiIconName;
11
+ };
12
+ declare var __VLS_10: {};
13
+ type __VLS_Slots = {} & {
14
+ default?: (props: typeof __VLS_10) => any;
15
+ };
16
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ click: (event: MouseEvent) => any;
18
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
19
+ onClick?: ((event: MouseEvent) => any) | undefined;
20
+ }>, {
21
+ title: string;
22
+ submit: boolean;
23
+ disabled: boolean;
24
+ loading: boolean;
25
+ iconName: UiIconName;
26
+ emphasis: "primary" | "secondary" | "quiet";
27
+ intent: "normal" | "danger";
28
+ density: "regular" | "compact";
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
31
+ declare const _default: typeof __VLS_export;
32
+ export default _default;
33
+ type __VLS_WithSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -0,0 +1,20 @@
1
+ type __VLS_Props = {
2
+ count?: number;
3
+ overflowCount?: number;
4
+ };
5
+ declare var __VLS_8: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_8) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
+ count: number;
11
+ overflowCount: number;
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,41 @@
1
+ import { type UiIconName } from './UiIcon.vue';
2
+ type __VLS_Props = {
3
+ type?: 'default' | 'primary' | 'dashed' | 'link' | 'text';
4
+ htmlType?: 'button' | 'submit' | 'reset';
5
+ disabled?: boolean;
6
+ loading?: boolean;
7
+ danger?: boolean;
8
+ size?: 'small' | 'middle' | 'large';
9
+ title?: string;
10
+ ariaLabel?: string;
11
+ iconName?: UiIconName;
12
+ iconPosition?: 'start' | 'end';
13
+ };
14
+ declare var __VLS_16: {};
15
+ type __VLS_Slots = {} & {
16
+ default?: (props: typeof __VLS_16) => any;
17
+ };
18
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ click: (event: MouseEvent) => any;
20
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
21
+ onClick?: ((event: MouseEvent) => any) | undefined;
22
+ }>, {
23
+ type: "default" | "primary" | "dashed" | "link" | "text";
24
+ title: string;
25
+ danger: boolean;
26
+ htmlType: "button" | "submit" | "reset";
27
+ disabled: boolean;
28
+ loading: boolean;
29
+ size: "small" | "middle" | "large";
30
+ ariaLabel: string;
31
+ iconName: UiIconName;
32
+ iconPosition: "start" | "end";
33
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
35
+ declare const _default: typeof __VLS_export;
36
+ export default _default;
37
+ type __VLS_WithSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -0,0 +1,30 @@
1
+ type __VLS_Props = {
2
+ checked?: boolean;
3
+ indeterminate?: boolean;
4
+ disabled?: boolean;
5
+ ariaLabel?: string;
6
+ };
7
+ declare var __VLS_10: {};
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_10) => any;
10
+ };
11
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ "update:checked": (checked: boolean) => any;
13
+ change: (checked: boolean) => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ "onUpdate:checked"?: ((checked: boolean) => any) | undefined;
16
+ onChange?: ((checked: boolean) => any) | undefined;
17
+ }>, {
18
+ disabled: boolean;
19
+ ariaLabel: string;
20
+ checked: boolean;
21
+ indeterminate: boolean;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,71 @@
1
+ import type { UiDataTableColumn, UiDataTablePagination, UiDataTableRecord, UiDataTableSelection } from '../types';
2
+ type __VLS_Props = {
3
+ columns: UiDataTableColumn[];
4
+ rows: UiDataTableRecord[];
5
+ rowKey?: string | ((record: UiDataTableRecord) => string);
6
+ loading?: boolean;
7
+ pagination?: false | UiDataTablePagination;
8
+ selection?: UiDataTableSelection;
9
+ size?: 'small' | 'middle' | 'large';
10
+ selectedRowKey?: string;
11
+ expandedRowKeys?: string[];
12
+ clickableRows?: boolean;
13
+ fillHeight?: boolean;
14
+ horizontalScroll?: boolean;
15
+ rowMuted?: (record: UiDataTableRecord) => boolean;
16
+ showActionColumn?: boolean;
17
+ actionColumnTitle?: string;
18
+ actionColumnWidth?: string | number;
19
+ emptyDescription?: string;
20
+ };
21
+ type __VLS_Slots = {
22
+ header?: (props: {
23
+ column: UiDataTableColumn;
24
+ }) => unknown;
25
+ cell?: (props: {
26
+ column: UiDataTableColumn;
27
+ record: UiDataTableRecord;
28
+ value: unknown;
29
+ }) => unknown;
30
+ rowActions?: (props: {
31
+ record: UiDataTableRecord;
32
+ rowKey: string;
33
+ }) => unknown;
34
+ expandedRow?: (props: {
35
+ record: UiDataTableRecord;
36
+ rowKey: string;
37
+ }) => unknown;
38
+ };
39
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
40
+ rowClick: (record: UiDataTableRecord, event: MouseEvent) => any;
41
+ rowDblclick: (record: UiDataTableRecord, event: MouseEvent) => any;
42
+ rowExpand: (record: UiDataTableRecord, expanded: boolean) => any;
43
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
44
+ onRowClick?: ((record: UiDataTableRecord, event: MouseEvent) => any) | undefined;
45
+ onRowDblclick?: ((record: UiDataTableRecord, event: MouseEvent) => any) | undefined;
46
+ onRowExpand?: ((record: UiDataTableRecord, expanded: boolean) => any) | undefined;
47
+ }>, {
48
+ loading: boolean;
49
+ size: "small" | "middle" | "large";
50
+ rowKey: string | ((record: UiDataTableRecord) => string);
51
+ pagination: false | UiDataTablePagination;
52
+ selection: UiDataTableSelection;
53
+ selectedRowKey: string;
54
+ expandedRowKeys: string[];
55
+ clickableRows: boolean;
56
+ fillHeight: boolean;
57
+ horizontalScroll: boolean;
58
+ rowMuted: (record: UiDataTableRecord) => boolean;
59
+ showActionColumn: boolean;
60
+ actionColumnTitle: string;
61
+ actionColumnWidth: string | number;
62
+ emptyDescription: string;
63
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
64
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
65
+ declare const _default: typeof __VLS_export;
66
+ export default _default;
67
+ type __VLS_WithSlots<T, S> = T & {
68
+ new (): {
69
+ $slots: S;
70
+ };
71
+ };
@@ -0,0 +1,29 @@
1
+ import type { UiDropdownItem } from '../types';
2
+ type __VLS_Props = {
3
+ items: UiDropdownItem[];
4
+ selectedKey?: string;
5
+ align?: 'start' | 'end';
6
+ trigger?: 'click' | 'hover';
7
+ };
8
+ type __VLS_Slots = {
9
+ default(props: {
10
+ toggle: () => void;
11
+ }): unknown;
12
+ };
13
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ select: (key: string) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ onSelect?: ((key: string) => any) | undefined;
17
+ }>, {
18
+ trigger: "click" | "hover";
19
+ align: "start" | "end";
20
+ selectedKey: string;
21
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
25
+ type __VLS_WithSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ description?: string;
3
+ };
4
+ 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>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ title?: string;
3
+ message: 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,15 @@
1
+ import type { FormContract, RecordData } from '@muyun/web-contracts';
2
+ type __VLS_Props = {
3
+ contract: FormContract;
4
+ modelValue: RecordData;
5
+ submitText?: string;
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ submit: (value: RecordData) => any;
9
+ "update:modelValue": (value: RecordData) => any;
10
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onSubmit?: ((value: RecordData) => any) | undefined;
12
+ "onUpdate:modelValue"?: ((value: RecordData) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,7 @@
1
+ export type UiIconName = 'app' | 'check' | 'close' | 'delete' | 'down' | 'edit' | 'export' | 'filter' | 'help' | 'lock' | 'notification' | 'plus' | 'power' | 'reload' | 'save' | 'search' | 'settings';
2
+ type __VLS_Props = {
3
+ name: UiIconName;
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,25 @@
1
+ import type { Primitive } from '@muyun/web-contracts';
2
+ type __VLS_Props = {
3
+ value?: Primitive;
4
+ type?: 'text' | 'password' | 'email' | 'search' | 'number' | 'url';
5
+ placeholder?: string;
6
+ disabled?: boolean;
7
+ autofocus?: boolean;
8
+ allowClear?: boolean;
9
+ autocomplete?: string;
10
+ required?: boolean;
11
+ ariaLabel?: string;
12
+ };
13
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ focus: (event: FocusEvent) => any;
15
+ "update:value": (value: string) => any;
16
+ blur: (event: FocusEvent) => any;
17
+ keydown: (event: KeyboardEvent) => any;
18
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
19
+ onFocus?: ((event: FocusEvent) => any) | undefined;
20
+ "onUpdate:value"?: ((value: string) => any) | undefined;
21
+ onBlur?: ((event: FocusEvent) => any) | undefined;
22
+ onKeydown?: ((event: KeyboardEvent) => any) | undefined;
23
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import type { UiMenuItem } from '../types';
2
+ type __VLS_Props = {
3
+ items: UiMenuItem[];
4
+ selectedKey?: string;
5
+ openKeys: string[];
6
+ mode?: 'inline' | 'vertical' | 'horizontal';
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ select: (key: string) => any;
10
+ "update:openKeys": (keys: string[]) => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onSelect?: ((key: string) => any) | undefined;
13
+ "onUpdate:openKeys"?: ((keys: string[]) => any) | undefined;
14
+ }>, {
15
+ mode: "inline" | "vertical" | "horizontal";
16
+ selectedKey: string;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;