@ximatai/muyun-web-app 0.26.7 → 0.26.9
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.
- package/dist/DictionaryManagementView-CtIQpqVA.js +1035 -0
- package/dist/MenuManagementView-DJhkN2sG.js +837 -0
- package/dist/{MetadataOrchestrationView-B-CPudJl.js → MetadataOrchestrationView-CzhAgEdX.js} +210 -204
- package/dist/{ModuleActionManagementView-CmVj0e0C.js → ModuleActionManagementView-CM2d8jPO.js} +69 -69
- package/dist/RoleAuthorizationView-jn_WUCeg.js +599 -0
- package/dist/{RoleDetailWorkspaceView-DmJlJgAj.js → RoleDetailWorkspaceView-CzaQ3Dz1.js} +1 -1
- package/dist/RoleManagementView-nY7qu4GF.js +1951 -0
- package/dist/{SystemUserDetailWorkspaceView-U6Ij0US1.js → SystemUserDetailWorkspaceView-CBvqmWvP.js} +1 -1
- package/dist/SystemUserManagementView-AEomKvK7.js +887 -0
- package/dist/index.css +1 -1
- package/dist/index.js +651 -6970
- package/dist/{platform-components-DKKWbNrz.js → platform-components-CIi6GdC9.js} +5292 -3634
- package/dist/types/App.vue.d.ts +1 -0
- package/dist/types/app/StaticRoutePageHost.vue.d.ts +11 -0
- package/dist/types/app/loginTenant.d.ts +1 -1
- package/dist/types/app/menuRouteCompiler.d.ts +45 -0
- package/dist/types/app/menuRouteRuntime.d.ts +24 -0
- package/dist/types/app/pageRouteContext.d.ts +24 -0
- package/dist/types/app/routeDiagnosticsStore.d.ts +10 -0
- package/dist/types/app/router.d.ts +15 -0
- package/dist/types/app/staticRouteDefinitions.d.ts +25 -0
- package/dist/types/app/workbenchRouteSync.d.ts +1 -1
- package/dist/types/app/workbenchStartup.d.ts +9 -5
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +2 -2
- package/dist/types/consumer/index.d.ts +7 -4
- package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +3 -10
- package/dist/types/{views/EmployeeEmploymentDrawer.vue.d.ts → dynamic-page-runtime/DynamicModuleWorkspaceDetailView.vue.d.ts} +3 -7
- package/dist/types/dynamic-page-runtime/DynamicRecordDetailActions.vue.d.ts +39 -0
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +40 -0
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +14 -0
- package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +26 -0
- package/dist/types/dynamic-page-runtime/ModulePageFormContributionRenderer.vue.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +14 -0
- package/dist/types/dynamic-page-runtime/ModulePageListExpansionSurface.vue.d.ts +19 -0
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansion.vue.d.ts +13 -0
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansions.vue.d.ts +16 -0
- package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +42 -0
- package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +41 -0
- package/dist/types/dynamic-page-runtime/NavigatorManagementEditor.vue.d.ts +44 -0
- package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +50 -0
- package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +31 -0
- package/dist/types/dynamic-page-runtime/composables/useManagedDetailRelationRuntime.d.ts +30 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageActions.d.ts +13 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageBootstrap.d.ts +17 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageDetailActionRuntime.d.ts +48 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageDetailExtensionRuntime.d.ts +26 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageFormContributionRuntime.d.ts +22 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageListSession.d.ts +41 -0
- package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +1324 -0
- package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +22 -0
- package/dist/types/dynamic-page-runtime/detailSurfacePreference.d.ts +10 -0
- package/dist/types/dynamic-page-runtime/dynamicModuleDetailStateModel.d.ts +5 -12
- package/dist/types/dynamic-page-runtime/formComputeCoordinator.d.ts +18 -0
- package/dist/types/dynamic-page-runtime/index.d.ts +4 -2
- package/dist/types/dynamic-page-runtime/listPageSizePreference.d.ts +10 -0
- package/dist/types/dynamic-page-runtime/moduleDetailStateModel.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +218 -6
- package/dist/types/dynamic-page-runtime/modulePageNavigation.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/navigatorVisibility.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/pageContextRuntime.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +35 -0
- package/dist/types/dynamic-page-runtime/relationFormComputeCoordinator.d.ts +9 -0
- package/dist/types/formula/FormulaRuntime.d.ts +29 -0
- package/dist/types/platform-admin-runtime/WorkspaceViewDrawer.vue.d.ts +1 -0
- package/dist/types/{views/EmployeeDetailWorkspaceView.vue.d.ts → platform-admin-runtime/employee/EmployeeAccountDrawer.vue.d.ts} +2 -1
- package/dist/types/platform-admin-runtime/employeeModulePageEnhancement.d.ts +3 -0
- package/dist/types/platform-admin-runtime/moduleOpenApi.d.ts +2 -0
- package/dist/types/platform-admin-runtime/passwordPolicyPageEnhancement.d.ts +6 -0
- package/dist/types/platform-admin-runtime/platformAdminRoutes.d.ts +1 -1
- package/dist/types/platform-admin-runtime/platformModulePageEnhancement.d.ts +9 -0
- package/dist/types/platform-admin-runtime/realtime.d.ts +2 -1
- package/dist/types/platform-admin-runtime/tenant/TenantApplicationConfigurationDrawer.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/tenant/TenantApplicationsDetailSection.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/tenantModulePageEnhancement.d.ts +7 -0
- package/dist/types/platform-admin-runtime/user/UserOnlineStatusCell.vue.d.ts +8 -0
- package/dist/types/platform-admin-runtime/user/UserPasswordDrawer.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/user/UserSessionListExpansion.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/user/useUserSessionRows.d.ts +23 -0
- package/dist/types/platform-admin-runtime/user/userOnlineStatusStore.d.ts +11 -0
- package/dist/types/platform-admin-runtime/userModulePageEnhancement.d.ts +7 -0
- package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +12 -0
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +10 -2
- package/dist/types/platform-components/DetailRelationListPanel.vue.d.ts +13 -0
- package/dist/types/{views/EmployeeManagementView.vue.d.ts → platform-components/DrawerTitleActions.vue.d.ts} +2 -2
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +7 -0
- package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +5 -3
- package/dist/types/platform-components/ManagementWorkspace.vue.d.ts +8 -2
- package/dist/types/platform-components/ModuleActionButton.vue.d.ts +5 -2
- package/dist/types/platform-components/RecordActionBar.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordContentSectionHeading.vue.d.ts +17 -0
- package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +7 -1
- package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +8 -3
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +5 -0
- package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +17 -7
- package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +15 -5
- package/dist/types/platform-components/RecordExpandedSubtable.vue.d.ts +3 -0
- package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +4 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +29 -1
- package/dist/types/platform-components/RecordImageFileReferencePreview.vue.d.ts +11 -0
- package/dist/types/platform-components/RecordListExpansionSurface.vue.d.ts +13 -0
- package/dist/types/platform-components/RecordListExplorer.vue.d.ts +4 -2
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +6 -2
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +12 -2
- package/dist/types/platform-components/RecordPanelButton.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordPicker.vue.d.ts +10 -2
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +42 -7
- package/dist/types/platform-components/RecordRelationTabs.vue.d.ts +14 -0
- package/dist/types/platform-components/RecordSelectionCheckbox.vue.d.ts +13 -0
- package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +3 -0
- package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +21 -7
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +7 -2
- package/dist/types/platform-components/UserSessionExpandedSubtable.vue.d.ts +2 -0
- package/dist/types/platform-components/drawerTitleActions.d.ts +11 -0
- package/dist/types/platform-components/index.d.ts +15 -5
- package/dist/types/platform-components/managementWorkspaceLayout.d.ts +14 -0
- package/dist/types/platform-components/optionFieldOptionCache.d.ts +3 -0
- package/dist/types/platform-components/recordDetailFieldModel.d.ts +2 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +69 -6
- package/dist/types/platform-components/recordPickerConstraints.d.ts +2 -0
- package/dist/types/platform-components/recordPickerModel.d.ts +6 -2
- package/dist/types/platform-components/recycleBinState.d.ts +2 -0
- package/dist/types/platform-components/scopedTreeModuleContext.d.ts +11 -0
- package/dist/types/platform-workbench/Workbench.vue.d.ts +2 -2
- package/dist/types/platform-workbench/index.d.ts +4 -2
- package/dist/types/platform-workbench/legacyPageHostTypeCompatibility.d.ts +6 -0
- package/dist/types/platform-workbench/menuNavigation.d.ts +26 -1
- package/dist/types/platform-workbench/modulePageWorkspaceViews.d.ts +7 -0
- package/dist/types/platform-workbench/pageCacheKey.d.ts +2 -0
- package/dist/types/platform-workbench/pageHostRegistry.d.ts +1 -1
- package/dist/types/platform-workbench/workbenchLayout.d.ts +36 -0
- package/dist/types/platform-workbench/workbenchNavigation.d.ts +16 -1
- package/dist/types/platform-workbench/workspaceViewHost.d.ts +2 -0
- package/dist/types/views/PasswordPolicyPreview.vue.d.ts +7 -0
- package/dist/types/views/RoleAccountGrantDrawer.vue.d.ts +1 -0
- package/dist/types/views/RoleAuthorizationView.vue.d.ts +2 -0
- package/dist/types/views/RoleEmploymentGrantDrawer.vue.d.ts +1 -0
- package/dist/types/views/{UserDetailWorkspaceView.vue.d.ts → UserDetailRouteView.vue.d.ts} +3 -2
- package/dist/types/views/UserManagementView.vue.d.ts +1 -6
- package/dist/types/views/menuManagementState.d.ts +2 -0
- package/dist/types/views/userDetailStateModel.d.ts +1 -3
- package/dist/types/views/userManagementRouteState.d.ts +11 -0
- package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +4 -1
- package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +2 -1
- package/dist/types/vue-ui-antdv/components/UiModal.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiRadioGroup.vue.d.ts +18 -0
- package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +2 -2
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +4 -2
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +7 -1
- package/dist/types/vue-ui-antdv/index.d.ts +5 -2
- package/dist/types/web-contracts/index.d.ts +408 -24
- package/dist/types/web-core/businessNotifications.d.ts +4 -0
- package/dist/types/web-core/index.d.ts +2 -0
- package/dist/types/web-core/module/abilities.d.ts +7 -7
- package/dist/types/web-core/module/moduleContext.d.ts +6 -3
- package/dist/types/web-core/module/runtimeContext.d.ts +5 -1
- package/dist/types/web-core/module/staticModuleClient.d.ts +42 -9
- package/dist/types/web-core/realtime.d.ts +5 -1
- package/dist/types/web-core/referenceResolveClient.d.ts +11 -0
- package/dist/workspaceViewSessions-B5g4M0rT.js +51 -0
- package/dist/workspaceViews-CkERhK0K.js +8748 -0
- package/package.json +1 -1
- package/dist/EmployeeDetailWorkspaceView-DYJLlkSz.js +0 -14
- package/dist/EmployeeManagementView-taxWUa7g.js +0 -1778
- package/dist/RoleAuthorizationView-q_6CsBYq.js +0 -592
- package/dist/RoleManagementView-HCa9rH0f.js +0 -1927
- package/dist/SystemUserManagementView-C1CkKivH.js +0 -758
- package/dist/UserDetailWorkspaceView-OPYvD6mH.js +0 -17
- package/dist/UserManagementView-gbCL9SnC.js +0 -965
- package/dist/pageRealtime-CzJlr9hs.js +0 -225
- package/dist/types/views/EmployeeDetailContent.vue.d.ts +0 -64
- package/dist/types/views/PositionManagementView.vue.d.ts +0 -3
- package/dist/types/views/TenantManagementView.vue.d.ts +0 -3
- package/dist/types/views/applicationManagementState.d.ts +0 -64
- package/dist/types/views/departmentManagementState.d.ts +0 -137
- package/dist/types/views/employeeDetailStateModel.d.ts +0 -39
- package/dist/types/views/employeeDetailWorkspaceSession.d.ts +0 -16
- package/dist/types/views/employeeDetailWorkspaceView.d.ts +0 -4
- package/dist/types/views/fieldSpecManagementState.d.ts +0 -80
- package/dist/types/views/fieldUiControlManagementState.d.ts +0 -76
- package/dist/types/views/moduleManagementState.d.ts +0 -76
- package/dist/types/views/organizationManagementState.d.ts +0 -64
- package/dist/types/views/positionManagementState.d.ts +0 -218
- package/dist/types/views/tenantManagementState.d.ts +0 -74
- package/dist/types/views/useEmployeeEmploymentRows.d.ts +0 -20
- package/dist/types/views/userDetailWorkspaceSession.d.ts +0 -14
- package/dist/types/views/userDetailWorkspaceView.d.ts +0 -4
- package/dist/useUserSessionRows-CBHEzRFQ.js +0 -128
- package/dist/workspaceViewSessions-DkB9myrq.js +0 -3252
- /package/dist/types/views/{ApplicationManagementView.vue.d.ts → DynamicModuleRouteView.vue.d.ts} +0 -0
- /package/dist/types/views/{DepartmentManagementView.vue.d.ts → ExternalRouteView.vue.d.ts} +0 -0
- /package/dist/types/views/{FieldSpecManagementView.vue.d.ts → ModuleOpenApiRouteView.vue.d.ts} +0 -0
- /package/dist/types/views/{FieldUiControlManagementView.vue.d.ts → OpenApiCatalogRouteView.vue.d.ts} +0 -0
- /package/dist/types/views/{ModuleManagementView.vue.d.ts → RouteDiagnosticsView.vue.d.ts} +0 -0
- /package/dist/types/views/{OrganizationManagementView.vue.d.ts → UserManagementListView.vue.d.ts} +0 -0
- /package/dist/types/views/{PasswordManagementView.vue.d.ts → WorkspaceRouteView.vue.d.ts} +0 -0
package/dist/types/App.vue.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import './platform-admin-runtime/workspaceViews';
|
|
1
2
|
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
3
|
declare const _default: typeof __VLS_export;
|
|
3
4
|
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type Component } from 'vue';
|
|
2
|
+
import type { RouteLocationNormalizedLoaded } from 'vue-router';
|
|
3
|
+
import type { PageDescriptor } from '../web-contracts/index';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
component: Component;
|
|
6
|
+
route: RouteLocationNormalizedLoaded;
|
|
7
|
+
pageDescriptor?: PageDescriptor;
|
|
8
|
+
};
|
|
9
|
+
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>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -2,5 +2,5 @@ export interface LoginTenantDefaults {
|
|
|
2
2
|
tenantId: string;
|
|
3
3
|
tenantLocked: boolean;
|
|
4
4
|
}
|
|
5
|
-
export declare function resolveLoginTenantDefaults(envTenantId?: string | null, search?: string, pathname?: string): LoginTenantDefaults;
|
|
5
|
+
export declare function resolveLoginTenantDefaults(envTenantId?: string | null, search?: string, pathname?: string, workbenchBase?: string): LoginTenantDefaults;
|
|
6
6
|
export declare function normalizeInitialValue(value: string | null | undefined): string;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { RouteRecordRaw } from 'vue-router';
|
|
2
|
+
import type { MenuEntryType, MenuRecord, MenuTreeNode } from '../web-contracts/index';
|
|
3
|
+
import { type RoutePageLoader, type StaticRouteDefinition } from './staticRouteDefinitions';
|
|
4
|
+
/**
|
|
5
|
+
* 负责把菜单数据检查后整理成可打开的页面地址。
|
|
6
|
+
* 它只做数据检查和结果整理,不请求后台、不写页面状态,也不直接跳转浏览器。
|
|
7
|
+
*/
|
|
8
|
+
export type RouteConfigurationIssueCode = 'MENU_ENTRY_TYPE_MISSING' | 'MENU_ROUTE_MISSING' | 'ROUTE_NOT_REGISTERED' | 'MODULE_ALIAS_MISMATCH' | 'COMPONENT_NOT_FOUND' | 'ENTRY_FIELDS_CONFLICT' | 'ROUTE_CONFLICT';
|
|
9
|
+
export interface RouteConfigurationIssue {
|
|
10
|
+
code: RouteConfigurationIssueCode;
|
|
11
|
+
menuId?: string;
|
|
12
|
+
menuTitle?: string;
|
|
13
|
+
entryType?: MenuEntryType;
|
|
14
|
+
route?: string;
|
|
15
|
+
componentPath?: string;
|
|
16
|
+
actual?: {
|
|
17
|
+
entryType?: MenuEntryType;
|
|
18
|
+
moduleAlias?: string;
|
|
19
|
+
route?: string;
|
|
20
|
+
externalUrl?: string;
|
|
21
|
+
};
|
|
22
|
+
expected?: {
|
|
23
|
+
entryType?: MenuEntryType;
|
|
24
|
+
moduleAlias?: string;
|
|
25
|
+
route?: string;
|
|
26
|
+
componentPath?: string;
|
|
27
|
+
};
|
|
28
|
+
reason: string;
|
|
29
|
+
suggestion?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface CompiledMenuRoute {
|
|
32
|
+
menu: MenuRecord;
|
|
33
|
+
route: RouteRecordRaw;
|
|
34
|
+
}
|
|
35
|
+
export interface MenuRouteValidationResult {
|
|
36
|
+
validRoutes: RouteRecordRaw[];
|
|
37
|
+
compiledRoutes: CompiledMenuRoute[];
|
|
38
|
+
windowMenus: MenuRecord[];
|
|
39
|
+
issues: RouteConfigurationIssue[];
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* 检查全部菜单和前端页面清单,并产出可打开的页面、需新窗口打开的菜单和配置问题。
|
|
43
|
+
* 一条菜单有问题不会影响其他正确菜单;有问题的菜单不会被猜测成其他页面。
|
|
44
|
+
*/
|
|
45
|
+
export declare function validateAndCompileMenuRoutes(menus: MenuTreeNode[] | MenuRecord[], definitions: StaticRouteDefinition[], componentLoaders: Record<string, RoutePageLoader>): MenuRouteValidationResult;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { MenuTreeNode } from '../web-contracts/index';
|
|
2
|
+
import type { Router } from 'vue-router';
|
|
3
|
+
/**
|
|
4
|
+
* 当前用户菜单页面的操作集合。
|
|
5
|
+
* 地址管理文件创建它后,用它准备菜单页面或在身份变化时清空旧页面。
|
|
6
|
+
*/
|
|
7
|
+
export interface MenuRouteRuntime {
|
|
8
|
+
ensureMenuRoutes(menus?: MenuTreeNode[]): Promise<void>;
|
|
9
|
+
resetMenuRoutes(): void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 创建当前用户菜单页面准备器所需的信息。
|
|
13
|
+
* 调用方必须传入同一个地址管理器、工作台页面名称和菜单获取方法,保证检查与页面登记使用的是同一份对象。
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateMenuRouteRuntimeOptions {
|
|
16
|
+
router: Router;
|
|
17
|
+
workbenchRouteName: string;
|
|
18
|
+
loadMenus(): Promise<MenuTreeNode[]>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 管理当前用户可打开菜单页面的准备和清理。
|
|
22
|
+
* 首次进入需要登录的地址时先取菜单、检查菜单并登记正确页面;退出或切换身份后清空这些结果。
|
|
23
|
+
*/
|
|
24
|
+
export declare function createMenuRouteRuntime(options: CreateMenuRouteRuntimeOptions): MenuRouteRuntime;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ComputedRef } from 'vue';
|
|
2
|
+
import { type RouteLocationNormalizedLoaded } from 'vue-router';
|
|
3
|
+
import type { PageDescriptor } from '../web-contracts/index';
|
|
4
|
+
export interface PageRoute {
|
|
5
|
+
path: string;
|
|
6
|
+
meta: RouteLocationNormalizedLoaded['meta'];
|
|
7
|
+
query: RouteLocationNormalizedLoaded['query'];
|
|
8
|
+
params: RouteLocationNormalizedLoaded['params'];
|
|
9
|
+
matched: Array<Pick<RouteLocationNormalizedLoaded['matched'][number], 'path'>>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Provides the route owned by one cached page instance.
|
|
13
|
+
*
|
|
14
|
+
* `useRoute()` always follows the browser's active route. A page kept alive in
|
|
15
|
+
* another tab must instead keep reading the route that created its own cache
|
|
16
|
+
* entry, otherwise another tab's navigation can reset its local state.
|
|
17
|
+
*/
|
|
18
|
+
export declare function providePageRoute(route: () => PageRoute): void;
|
|
19
|
+
/** Provides the workbench-restored descriptor for the cached page instance. */
|
|
20
|
+
export declare function providePageDescriptor(descriptor: () => PageDescriptor | undefined): void;
|
|
21
|
+
/** Returns the page-instance route when rendered by the workbench, otherwise the active router route. */
|
|
22
|
+
export declare function usePageRoute(): ComputedRef<PageRoute>;
|
|
23
|
+
/** Returns the descriptor restored from the current user's workbench state, when available. */
|
|
24
|
+
export declare function usePageDescriptor(): ComputedRef<PageDescriptor | undefined>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RouteConfigurationIssue } from '@/app/menuRouteCompiler';
|
|
2
|
+
export declare const useRouteDiagnosticsStore: import("pinia").StoreDefinition<"routeDiagnostics", {
|
|
3
|
+
issues: RouteConfigurationIssue[];
|
|
4
|
+
issuesByMenuId: Record<string, RouteConfigurationIssue[]>;
|
|
5
|
+
issuesByRoute: Record<string, RouteConfigurationIssue[]>;
|
|
6
|
+
}, {}, {
|
|
7
|
+
replaceIssues(issues: RouteConfigurationIssue[]): void;
|
|
8
|
+
findIssues(menuId?: string, route?: string): RouteConfigurationIssue[];
|
|
9
|
+
clear(): void;
|
|
10
|
+
}>;
|
|
@@ -1 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 浏览器地址与页面的统一入口。
|
|
3
|
+
* 这里定义基础页面,并在首次进入受保护地址前加载菜单、检查菜单和登记当前用户可打开的页面。
|
|
4
|
+
*/
|
|
5
|
+
export declare const workbenchRouteName = "workbench";
|
|
1
6
|
export declare const router: import("vue-router")._RouterClassic;
|
|
7
|
+
/**
|
|
8
|
+
* 准备当前用户可打开的菜单页面。
|
|
9
|
+
* 应用已经拿到菜单时可直接传入,避免再次请求;否则由本文件配置的方法获取菜单。
|
|
10
|
+
*/
|
|
11
|
+
export declare const ensureMenuRoutes: (menus?: import("../web-contracts").MenuTreeNode[]) => Promise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* 清空当前用户的菜单页面和错误说明。
|
|
14
|
+
* 退出登录、切换身份或刷新菜单后调用,避免旧入口留在浏览器地址管理器中。
|
|
15
|
+
*/
|
|
16
|
+
export declare const resetMenuRoutes: () => void;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
import type { PageLayoutMode } from '../web-contracts/index';
|
|
3
|
+
/**
|
|
4
|
+
* 集中列出前端自带页面的固定地址、所属模块和页面文件。
|
|
5
|
+
* 菜单只能按这里登记的地址打开前端自带页面,不能只凭模块名猜测要显示哪个页面。
|
|
6
|
+
*/
|
|
7
|
+
export interface StaticRouteDefinition {
|
|
8
|
+
route: `/${string}`;
|
|
9
|
+
moduleAlias: string;
|
|
10
|
+
componentPath: `/src/views/${string}.vue`;
|
|
11
|
+
layout: PageLayoutMode;
|
|
12
|
+
menuEntry?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export type RoutePageLoader = () => Promise<Component>;
|
|
15
|
+
/**
|
|
16
|
+
* 记录允许按需加载的页面文件。
|
|
17
|
+
* 用户真正打开某个页面前,不会下载该页面的代码,避免启动时把所有页面一次性加载进来。
|
|
18
|
+
*/
|
|
19
|
+
export declare const routePageLoaders: Record<string, RoutePageLoader>;
|
|
20
|
+
export declare const staticRouteDefinitions: StaticRouteDefinition[];
|
|
21
|
+
/**
|
|
22
|
+
* 根据浏览器地址生成稳定的内部名称。
|
|
23
|
+
* 同一个地址始终得到同一个名称,避免不同页面在注册时互相覆盖。
|
|
24
|
+
*/
|
|
25
|
+
export declare function createStaticRouteName(route: string): string;
|
|
@@ -10,4 +10,4 @@ export interface WorkbenchRouteWrite {
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function workbenchRouteWriteFor(state: WorkbenchStartupState, currentUrl: string, mode: WorkbenchRouteWriteMode): WorkbenchRouteWrite | undefined;
|
|
12
12
|
/** A route written from the workbench already has matching in-memory tab state. */
|
|
13
|
-
export declare function shouldRestoreWorkbenchFromRoute(url: string, pendingWorkbenchNavigation: string | undefined
|
|
13
|
+
export declare function shouldRestoreWorkbenchFromRoute(url: string, pendingWorkbenchNavigation: string | undefined): boolean;
|
|
@@ -10,14 +10,14 @@ export declare function openMenuTab(tabs: MenuTab[], menu: MenuRecord, target: M
|
|
|
10
10
|
tabs: MenuTab[];
|
|
11
11
|
activeTabKey: string;
|
|
12
12
|
};
|
|
13
|
-
export declare function openDirectTab(tabs: MenuTab[], descriptor: PageDescriptor): {
|
|
13
|
+
export declare function openDirectTab(tabs: MenuTab[], descriptor: PageDescriptor, options?: PageDescriptorResolveOptions): {
|
|
14
14
|
tabs: MenuTab[];
|
|
15
15
|
activeTabKey: string;
|
|
16
16
|
created: boolean;
|
|
17
17
|
};
|
|
18
|
-
export declare function menuTargetUrl(menu: MenuRecord, target: MenuNavigationTarget): string;
|
|
18
|
+
export declare function menuTargetUrl(menu: MenuRecord, target: MenuNavigationTarget, options?: PageDescriptorResolveOptions): string;
|
|
19
19
|
export declare function activeTabUrlOf(state: WorkbenchStartupState): string | undefined;
|
|
20
|
-
export declare function restoreWorkbenchStartupStateFromUrl(state: WorkbenchStartupState, url: string, options?: PageDescriptorResolveOptions): WorkbenchStartupState;
|
|
20
|
+
export declare function restoreWorkbenchStartupStateFromUrl(state: WorkbenchStartupState, url: string, options?: PageDescriptorResolveOptions, newInstance?: boolean): WorkbenchStartupState;
|
|
21
21
|
export declare function closeMenuTab(tabs: MenuTab[], activeTabKey: string | undefined, closedTabKey: string): {
|
|
22
22
|
tabs: MenuTab[];
|
|
23
23
|
activeTabKey: string | undefined;
|
|
@@ -29,8 +29,12 @@ export declare function closeMenuTabs(tabs: MenuTab[], activeTabKey: string | un
|
|
|
29
29
|
};
|
|
30
30
|
/** Keeps account-pinned tabs at the left while ordinary tab order remains a browser-session concern. */
|
|
31
31
|
export declare function arrangeLockedMenuTabs(tabs: MenuTab[], lockedTabs: MenuTab[], includeMissingLockedTabs?: boolean): MenuTab[];
|
|
32
|
-
/**
|
|
33
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Restores account-locked tabs from two authority-checked sources only:
|
|
34
|
+
* currently visible tab menus and registered, URL-restorable workspace views.
|
|
35
|
+
* Arbitrary stored routes are deliberately not revived.
|
|
36
|
+
*/
|
|
37
|
+
export declare function restoreLockedWorkbenchTabs(lockedTabs: MenuTab[], menus: MenuTreeNode[], options?: PageDescriptorResolveOptions): MenuTab[];
|
|
34
38
|
export declare function updateLockedMenuTabs(lockedTabs: MenuTab[], tab: MenuTab): MenuTab[];
|
|
35
39
|
export declare function removeLockedMenuTabs(lockedTabs: MenuTab[], keys: string[]): MenuTab[];
|
|
36
40
|
/** Reorders the open tabs for the current browser session without affecting URL restoration. */
|
|
@@ -19,12 +19,12 @@ type __VLS_Slots = {} & {
|
|
|
19
19
|
default?: (props: typeof __VLS_17) => any;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
-
userCommand: (key: string) => any;
|
|
23
22
|
navigate: (navigation: AppWorkbenchNavigation) => any;
|
|
23
|
+
userCommand: (key: string) => any;
|
|
24
24
|
"update:startup": (value: WorkbenchStartupState) => any;
|
|
25
25
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
26
|
-
onUserCommand?: ((key: string) => any) | undefined;
|
|
27
26
|
onNavigate?: ((navigation: AppWorkbenchNavigation) => any) | undefined;
|
|
27
|
+
onUserCommand?: ((key: string) => any) | undefined;
|
|
28
28
|
"onUpdate:startup"?: ((value: WorkbenchStartupState) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
30
|
loading: boolean;
|
|
@@ -11,12 +11,12 @@ export * from '../web-contracts/index';
|
|
|
11
11
|
export * from '../web-core/index';
|
|
12
12
|
export * from '../platform-workbench/index';
|
|
13
13
|
export * from '../platform-admin-runtime/index';
|
|
14
|
-
export { activeTabUrlOf, arrangeLockedMenuTabs, removeLockedMenuTabs, restoreWorkbenchStartupStateFromUrl,
|
|
14
|
+
export { activeTabUrlOf, arrangeLockedMenuTabs, removeLockedMenuTabs, restoreWorkbenchStartupStateFromUrl, restoreLockedWorkbenchTabs, updateLockedMenuTabs, } from '../app/workbenchStartup';
|
|
15
15
|
export { restoreLockedTabPreference, saveLockedTabPreference } from '../app/lockedTabPreference';
|
|
16
|
-
export { configureModulePageEnhancements, createModulePageEnhancementRegistry, modulePageWorkspaceViews, } from '../dynamic-page-runtime/modulePageEnhancements';
|
|
16
|
+
export { configureModulePageEnhancementContributions, configureModulePageEnhancements, createModulePageEnhancementRegistry, modulePageWorkspaceViews, } from '../dynamic-page-runtime/modulePageEnhancements';
|
|
17
17
|
export { refreshModulePageList } from '../dynamic-page-runtime/modulePageListRefresh';
|
|
18
|
-
export type { ModuleListEnhancement, ModuleDetailEnhancement, ModulePageActionContext, ModulePageActionContribution, ModulePageActionStateContext, ModulePageBatchActionContext, ModulePageBatchActionContribution, ModulePageColumnContribution, ModulePageDetailSection, ModulePageDetailSectionContext, ModulePageDrawer, ModulePageDrawerContext, ModulePageEnhancement, ModulePageEnhancementTarget, ModulePageRecordActionContext, ModulePageRecordActionContribution, ModulePageScopeContext, ModulePageWorkspaceView, ModulePageWorkspaceViewInput, } from '../dynamic-page-runtime/modulePageEnhancements';
|
|
19
|
-
export { UiButton, confirmAction, UiDataTable,
|
|
18
|
+
export type { ModuleListEnhancement, ModuleDetailEnhancement, ModulePageActionContext, ModulePageActionContribution, ModulePageActionStateContext, ModulePageBatchActionContext, ModulePageBatchActionContribution, ModulePageColumnContribution, ModulePageDetailDrawer, ModulePageDetailSection, ModulePageDetailSectionContext, ModulePageDrawer, ModulePageDrawerContext, ModulePageRecordViewContext, ModulePageEnhancement, ModulePageEnhancementTarget, ModulePageRecordActionContext, ModulePageRecordActionContribution, ModulePageScopeContext, ModulePageWorkspaceView, ModulePageWorkspaceViewInput, } from '../dynamic-page-runtime/modulePageEnhancements';
|
|
19
|
+
export { UiButton, confirmAction, UiDataTable, UiSidePanel, UiTree, UiTreeSelect, UiInput, UiSwitch, UiTextArea, } from '../vue-ui-antdv/index';
|
|
20
20
|
export { default as PlatformAdminOutlet } from './PlatformAdminOutlet.vue';
|
|
21
21
|
export { default as AppWorkbenchShell } from './AppWorkbenchShell.vue';
|
|
22
22
|
export { default as LoginView } from '../app/LoginView.vue';
|
|
@@ -29,6 +29,9 @@ export { defaultUiThemeSkinId, UiThemeProvider, uiThemeSkinById, uiThemeSkins }
|
|
|
29
29
|
export type { UiThemeSkin, UiThemeSkinId } from '../vue-ui-antdv/index';
|
|
30
30
|
export { default as DateTimeText } from '../platform-components/DateTimeText.vue';
|
|
31
31
|
export { default as FileSizeText } from '../platform-components/FileSizeText.vue';
|
|
32
|
+
export { default as DrawerOperationBar } from '../platform-components/DrawerOperationBar.vue';
|
|
33
|
+
export { default as RecordDetailDrawer } from '../platform-components/RecordDetailDrawer.vue';
|
|
34
|
+
export { default as DynamicModuleWorkspaceDetailView } from '../dynamic-page-runtime/DynamicModuleWorkspaceDetailView.vue';
|
|
32
35
|
export { default as FileTransferUploader } from '../platform-components/FileTransferUploader.vue';
|
|
33
36
|
export { default as SingleImageFileReferenceField } from '../platform-components/SingleImageFileReferenceField.vue';
|
|
34
37
|
export { uploadedFileId } from '../platform-components/fileReferenceTransfer';
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { StandardModulePageDescriptor } from '../web-contracts/index';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
descriptor:
|
|
3
|
+
descriptor: StandardModulePageDescriptor;
|
|
4
4
|
};
|
|
5
|
-
|
|
6
|
-
* Public, state-preserving list refresh for business-owned triggers.
|
|
7
|
-
* RecordQueryListPanel observes reloadKey and only re-runs loadRecords().
|
|
8
|
-
*/
|
|
9
|
-
declare function refreshList(): void;
|
|
10
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
11
|
-
refreshList: typeof refreshList;
|
|
12
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
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>;
|
|
13
6
|
declare const _default: typeof __VLS_export;
|
|
14
7
|
export default _default;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import type { Employee } from '../web-contracts/index';
|
|
2
1
|
type __VLS_Props = {
|
|
3
|
-
|
|
4
|
-
employee?: Employee;
|
|
2
|
+
recordId: string;
|
|
5
3
|
};
|
|
6
4
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
close: () => any;
|
|
8
|
-
saved: (employeeId: string) => any;
|
|
5
|
+
"close-workspace": () => any;
|
|
9
6
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
-
onClose?: (() => any) | undefined;
|
|
11
|
-
onSaved?: ((employeeId: string) => any) | undefined;
|
|
7
|
+
"onClose-workspace"?: (() => any) | undefined;
|
|
12
8
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
9
|
declare const _default: typeof __VLS_export;
|
|
14
10
|
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { QueryListRecord, RecordActionItem } from '../platform-components/index';
|
|
2
|
+
import type { ModuleContext } from '../web-core/index';
|
|
3
|
+
import type { ModulePageRecordActionContribution } from './modulePageEnhancements';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
context: ModuleContext<QueryListRecord>;
|
|
6
|
+
record?: QueryListRecord;
|
|
7
|
+
mode: 'create' | 'edit' | 'view';
|
|
8
|
+
saving?: boolean;
|
|
9
|
+
detailLoading?: boolean;
|
|
10
|
+
detailLoadFailed?: boolean;
|
|
11
|
+
recycleBinActive?: boolean;
|
|
12
|
+
actions?: ModulePageRecordActionContribution[];
|
|
13
|
+
configuredActions?: RecordActionItem[];
|
|
14
|
+
showStandardViewActions?: boolean;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
delete: () => any;
|
|
18
|
+
edit: () => any;
|
|
19
|
+
save: () => any;
|
|
20
|
+
cancel: () => any;
|
|
21
|
+
detailAction: (action: RecordActionItem) => any;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
+
onDelete?: (() => any) | undefined;
|
|
24
|
+
onEdit?: (() => any) | undefined;
|
|
25
|
+
onSave?: (() => any) | undefined;
|
|
26
|
+
onCancel?: (() => any) | undefined;
|
|
27
|
+
onDetailAction?: ((action: RecordActionItem) => any) | undefined;
|
|
28
|
+
}>, {
|
|
29
|
+
record: QueryListRecord;
|
|
30
|
+
actions: ModulePageRecordActionContribution[];
|
|
31
|
+
saving: boolean;
|
|
32
|
+
detailLoading: boolean;
|
|
33
|
+
detailLoadFailed: boolean;
|
|
34
|
+
recycleBinActive: boolean;
|
|
35
|
+
configuredActions: RecordActionItem[];
|
|
36
|
+
showStandardViewActions: boolean;
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
declare const _default: typeof __VLS_export;
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type QueryListRecord } from '../platform-components/index';
|
|
2
|
+
import type { ResolvedDetailRelationDescriptor, ResolvedModuleUiDescriptor } from '../web-contracts/index';
|
|
3
|
+
import { type ModuleContext } from '../web-core/index';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
sourceContext: ModuleContext<QueryListRecord>;
|
|
6
|
+
uiDescriptor: ResolvedModuleUiDescriptor;
|
|
7
|
+
relation: ResolvedDetailRelationDescriptor;
|
|
8
|
+
parentRecord: QueryListRecord;
|
|
9
|
+
reloadKey?: number;
|
|
10
|
+
addRequestKey?: number;
|
|
11
|
+
removeRequestKey?: number;
|
|
12
|
+
undoRemoveRequestKey?: number;
|
|
13
|
+
recycleBinRequestKey?: number;
|
|
14
|
+
mutationEnabled?: boolean;
|
|
15
|
+
density?: 'default' | 'compact';
|
|
16
|
+
validationRequestKey?: number;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
"validity-change": (valid: boolean) => any;
|
|
20
|
+
"selection-change": (selectedCount: number) => any;
|
|
21
|
+
"removed-count-change": (removedCount: number) => any;
|
|
22
|
+
"recycle-bin-availability-change": (available: boolean) => any;
|
|
23
|
+
"records-change": (records: QueryListRecord[]) => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
+
"onValidity-change"?: ((valid: boolean) => any) | undefined;
|
|
26
|
+
"onSelection-change"?: ((selectedCount: number) => any) | undefined;
|
|
27
|
+
"onRemoved-count-change"?: ((removedCount: number) => any) | undefined;
|
|
28
|
+
"onRecycle-bin-availability-change"?: ((available: boolean) => any) | undefined;
|
|
29
|
+
"onRecords-change"?: ((records: QueryListRecord[]) => any) | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
density: "default" | "compact";
|
|
32
|
+
reloadKey: number;
|
|
33
|
+
validationRequestKey: number;
|
|
34
|
+
addRequestKey: number;
|
|
35
|
+
removeRequestKey: number;
|
|
36
|
+
undoRemoveRequestKey: number;
|
|
37
|
+
recycleBinRequestKey: number;
|
|
38
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type QueryListRecord } from '../platform-components/index';
|
|
2
|
+
import type { ResolvedDetailRelationDescriptor, ResolvedModuleUiDescriptor } from '../web-contracts/index';
|
|
3
|
+
import { type ModuleContext } from '../web-core/index';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
sourceContext: ModuleContext<QueryListRecord>;
|
|
6
|
+
uiDescriptor: ResolvedModuleUiDescriptor;
|
|
7
|
+
relation: ResolvedDetailRelationDescriptor;
|
|
8
|
+
parentRecord: QueryListRecord;
|
|
9
|
+
mutationEnabled?: boolean;
|
|
10
|
+
reloadKey?: number;
|
|
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>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type QueryListRecord } from '../platform-components/index';
|
|
2
|
+
import type { ResolvedDetailRelationDescriptor, ResolvedModuleUiDescriptor } from '../web-contracts/index';
|
|
3
|
+
import type { ModuleContext } from '../web-core/index';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
sourceContext: ModuleContext<QueryListRecord>;
|
|
6
|
+
uiDescriptor: ResolvedModuleUiDescriptor;
|
|
7
|
+
relations: ResolvedDetailRelationDescriptor[];
|
|
8
|
+
parentRecord: QueryListRecord;
|
|
9
|
+
surface?: 'detail' | 'list-expansion';
|
|
10
|
+
mutationEnabled?: boolean;
|
|
11
|
+
reloadKey?: number;
|
|
12
|
+
validationRequestKey?: number;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
"validity-change": (valid: boolean) => any;
|
|
16
|
+
"children-change": (relationCode: string, records: QueryListRecord[]) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
"onValidity-change"?: ((valid: boolean) => any) | undefined;
|
|
19
|
+
"onChildren-change"?: ((relationCode: string, records: QueryListRecord[]) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
reloadKey: number;
|
|
22
|
+
surface: "detail" | "list-expansion";
|
|
23
|
+
validationRequestKey: number;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RecordFormFieldState } from '../platform-components/index';
|
|
2
|
+
import type { ModulePageFormContribution, ModulePageFormContributionContext, ModulePageFormSurface } from './modulePageEnhancements';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
contributions: readonly ModulePageFormContribution[];
|
|
5
|
+
surface: ModulePageFormSurface;
|
|
6
|
+
position: 'before-fields' | 'after-fields' | 'before' | 'after';
|
|
7
|
+
field?: Readonly<RecordFormFieldState>;
|
|
8
|
+
contextFor(contribution: ModulePageFormContribution, field?: Readonly<RecordFormFieldState>): ModulePageFormContributionContext;
|
|
9
|
+
};
|
|
10
|
+
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>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { StandardModulePageDescriptor } from '../web-contracts/index';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
descriptor: StandardModulePageDescriptor;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Public, state-preserving list refresh for business-owned triggers.
|
|
7
|
+
* RecordQueryListPanel observes reloadKey and only re-runs loadRecords().
|
|
8
|
+
*/
|
|
9
|
+
declare function refreshList(): void;
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
11
|
+
refreshList: typeof refreshList;
|
|
12
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type QueryListRecord } from '../platform-components/index';
|
|
2
|
+
import type { ResolvedDetailRelationDescriptor, ResolvedModuleUiDescriptor, ResolvedPageListRelationExpansionDescriptor } from '../web-contracts/index';
|
|
3
|
+
import type { ModuleContext } from '../web-core/index';
|
|
4
|
+
import type { ModulePageListRowExpansion, ModulePageListRowExpansionContext } from './modulePageEnhancements';
|
|
5
|
+
type RelationExpansionEntry = {
|
|
6
|
+
expansion: ResolvedPageListRelationExpansionDescriptor;
|
|
7
|
+
relation: ResolvedDetailRelationDescriptor;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Props = {
|
|
10
|
+
sourceContext: ModuleContext<QueryListRecord>;
|
|
11
|
+
uiDescriptor: ResolvedModuleUiDescriptor;
|
|
12
|
+
record: QueryListRecord;
|
|
13
|
+
relationEntries: readonly RelationExpansionEntry[];
|
|
14
|
+
extension?: ModulePageListRowExpansion;
|
|
15
|
+
extensionContext?: ModulePageListRowExpansionContext;
|
|
16
|
+
};
|
|
17
|
+
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>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ResolvedDetailRelationDescriptor, ResolvedModuleUiDescriptor, ResolvedPageListRelationExpansionDescriptor } from '../web-contracts/index';
|
|
2
|
+
import type { ModuleContext } from '../web-core/index';
|
|
3
|
+
import { type QueryListRecord } from '../platform-components/index';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
sourceContext: ModuleContext<QueryListRecord>;
|
|
6
|
+
uiDescriptor: ResolvedModuleUiDescriptor;
|
|
7
|
+
record: QueryListRecord;
|
|
8
|
+
relation: ResolvedDetailRelationDescriptor;
|
|
9
|
+
expansion: ResolvedPageListRelationExpansionDescriptor;
|
|
10
|
+
};
|
|
11
|
+
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
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ResolvedDetailRelationDescriptor, ResolvedModuleUiDescriptor, ResolvedPageListRelationExpansionDescriptor } from '../web-contracts/index';
|
|
2
|
+
import type { ModuleContext } from '../web-core/index';
|
|
3
|
+
import { type QueryListRecord } from '../platform-components/index';
|
|
4
|
+
type RelationExpansionEntry = {
|
|
5
|
+
relation: ResolvedDetailRelationDescriptor;
|
|
6
|
+
expansion: ResolvedPageListRelationExpansionDescriptor;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
sourceContext: ModuleContext<QueryListRecord>;
|
|
10
|
+
uiDescriptor: ResolvedModuleUiDescriptor;
|
|
11
|
+
record: QueryListRecord;
|
|
12
|
+
entries: readonly RelationExpansionEntry[];
|
|
13
|
+
};
|
|
14
|
+
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>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type QueryListRecord, type RecordFormFieldPickerConfig, type RecordFormFieldValue, type RecordFormFieldDescriptor } from '../platform-components/index';
|
|
2
|
+
import type { ModuleContext } from '../web-core/index';
|
|
3
|
+
import type { ResolvedDetailRelationDescriptor, ResolvedModuleUiDescriptor } from '../web-contracts/index';
|
|
4
|
+
import type { ModulePageDetailSection, ModulePageDetailSectionContext, ModulePageFormContribution, ModulePageFormFieldPolicy } from './modulePageEnhancements';
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
context: ModuleContext<QueryListRecord>;
|
|
7
|
+
mode: 'view' | 'edit' | 'create';
|
|
8
|
+
record: QueryListRecord;
|
|
9
|
+
selectedRecord?: QueryListRecord;
|
|
10
|
+
detailDisplayFields: Map<string, RecordFormFieldDescriptor>;
|
|
11
|
+
formFields: Map<string, RecordFormFieldDescriptor>;
|
|
12
|
+
formSessionKey: number;
|
|
13
|
+
validationRequestKey: number;
|
|
14
|
+
pickerConfigs: Record<string, RecordFormFieldPickerConfig>;
|
|
15
|
+
saving?: boolean;
|
|
16
|
+
uiDescriptor?: ResolvedModuleUiDescriptor;
|
|
17
|
+
relations: ResolvedDetailRelationDescriptor[];
|
|
18
|
+
relationsAvailable: boolean;
|
|
19
|
+
relationReloadKey: number;
|
|
20
|
+
showSystemInfo: boolean;
|
|
21
|
+
extensionSections: ModulePageDetailSection[];
|
|
22
|
+
detailSectionContext(record: QueryListRecord): ModulePageDetailSectionContext;
|
|
23
|
+
formContributions?: readonly ModulePageFormContribution[];
|
|
24
|
+
formFieldPolicies?: readonly ModulePageFormFieldPolicy[];
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
|
+
"update:field": (fieldName: string, value: RecordFormFieldValue) => any;
|
|
28
|
+
"validity-change": (validity: {
|
|
29
|
+
valid: boolean;
|
|
30
|
+
}) => any;
|
|
31
|
+
"children-change": (relationField: string, records: QueryListRecord[]) => any;
|
|
32
|
+
"relations-validity-change": (valid: boolean) => any;
|
|
33
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
34
|
+
"onUpdate:field"?: ((fieldName: string, value: RecordFormFieldValue) => any) | undefined;
|
|
35
|
+
"onValidity-change"?: ((validity: {
|
|
36
|
+
valid: boolean;
|
|
37
|
+
}) => any) | undefined;
|
|
38
|
+
"onChildren-change"?: ((relationField: string, records: QueryListRecord[]) => any) | undefined;
|
|
39
|
+
"onRelations-validity-change"?: ((valid: boolean) => any) | undefined;
|
|
40
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
41
|
+
declare const _default: typeof __VLS_export;
|
|
42
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type RecordActionItem, type QueryListRecord } from '../platform-components/index';
|
|
2
|
+
import type { ModuleContext } from '../web-core/index';
|
|
3
|
+
import type { ModulePageRecordActionContribution } from './modulePageEnhancements';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
context: ModuleContext<QueryListRecord>;
|
|
6
|
+
record?: QueryListRecord;
|
|
7
|
+
mode: 'create' | 'edit' | 'view';
|
|
8
|
+
saving?: boolean;
|
|
9
|
+
detailLoading?: boolean;
|
|
10
|
+
detailLoadFailed?: boolean;
|
|
11
|
+
recycleBinActive?: boolean;
|
|
12
|
+
actions?: ModulePageRecordActionContribution[];
|
|
13
|
+
/** Server-resolved standard action blocks, intentionally separate from frontend extensions. */
|
|
14
|
+
configuredActions?: RecordActionItem[];
|
|
15
|
+
/** Custom record views retain their own operation model. */
|
|
16
|
+
showStandardViewActions?: boolean;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
delete: () => any;
|
|
20
|
+
edit: () => any;
|
|
21
|
+
save: () => any;
|
|
22
|
+
cancel: () => any;
|
|
23
|
+
detailAction: (action: RecordActionItem) => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
+
onDelete?: (() => any) | undefined;
|
|
26
|
+
onEdit?: (() => any) | undefined;
|
|
27
|
+
onSave?: (() => any) | undefined;
|
|
28
|
+
onCancel?: (() => any) | undefined;
|
|
29
|
+
onDetailAction?: ((action: RecordActionItem) => any) | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
record: QueryListRecord;
|
|
32
|
+
actions: ModulePageRecordActionContribution[];
|
|
33
|
+
saving: boolean;
|
|
34
|
+
detailLoading: boolean;
|
|
35
|
+
detailLoadFailed: boolean;
|
|
36
|
+
recycleBinActive: boolean;
|
|
37
|
+
configuredActions: RecordActionItem[];
|
|
38
|
+
showStandardViewActions: boolean;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
declare const _default: typeof __VLS_export;
|
|
41
|
+
export default _default;
|