@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
|
@@ -11,7 +11,8 @@ export interface QuerySchemaRequestOptions {
|
|
|
11
11
|
uiConfigId?: string;
|
|
12
12
|
queryTemplateId?: string;
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
/** Source-neutral client for a platform module's standard CRUD contract. */
|
|
15
|
+
export interface ModuleCrudClient<TRecord> {
|
|
15
16
|
querySchema(options?: QuerySchemaRequestOptions): Promise<QuerySchema>;
|
|
16
17
|
query(request?: WebQueryRequest): Promise<WebPageResponse<TRecord>>;
|
|
17
18
|
view(id: string): Promise<TRecord>;
|
|
@@ -21,8 +22,9 @@ export interface StaticModuleCrudClient<TRecord> {
|
|
|
21
22
|
enable(id: string, request: RecordActionRequest): Promise<StaticCountMutationResult>;
|
|
22
23
|
disable(id: string, request: RecordActionRequest): Promise<StaticCountMutationResult>;
|
|
23
24
|
}
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
/** Source-neutral tree extension for a platform module. */
|
|
26
|
+
export interface ModuleTreeClient<TRecord> extends ModuleCrudClient<TRecord> {
|
|
27
|
+
tree(request?: WebQueryRequest): Promise<WebListResponse<WebTreeNode<TRecord>>>;
|
|
26
28
|
treeFlat(options?: {
|
|
27
29
|
rootId?: string;
|
|
28
30
|
includeSelf?: boolean;
|
|
@@ -36,11 +38,42 @@ export interface ModuleEnableClient {
|
|
|
36
38
|
enable(id: string, request: RecordActionRequest): Promise<StaticCountMutationResult>;
|
|
37
39
|
disable(id: string, request: RecordActionRequest): Promise<StaticCountMutationResult>;
|
|
38
40
|
}
|
|
39
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Fixed platform transport for a compiled, one-level detail relation.
|
|
43
|
+
* Relation descriptors contain no business URL: the parent module alias, persisted parent id and
|
|
44
|
+
* server-issued relation code are the only routing facts a surface receives.
|
|
45
|
+
*/
|
|
46
|
+
export interface ManagedDetailRelationClient<TRecord> {
|
|
47
|
+
query(request?: WebQueryRequest): Promise<WebPageResponse<TRecord>>;
|
|
48
|
+
insert(record: TRecord): Promise<StaticRecordMutationResult<TRecord>>;
|
|
49
|
+
update(id: string, record: TRecord): Promise<StaticRecordMutationResult<TRecord>>;
|
|
50
|
+
delete(id: string, request: RecordActionRequest): Promise<StaticCountMutationResult>;
|
|
51
|
+
}
|
|
52
|
+
export declare function createManagedDetailRelationClient<TRecord>(http: HttpClient, options: {
|
|
53
|
+
parentModuleAlias: string;
|
|
54
|
+
parentId: string;
|
|
55
|
+
relationCode: string;
|
|
56
|
+
}): ManagedDetailRelationClient<TRecord>;
|
|
57
|
+
export declare function createModuleCrudClient<TRecord>(http: HttpClient, options: {
|
|
58
|
+
moduleAlias: string;
|
|
59
|
+
}): ModuleCrudClient<TRecord>;
|
|
60
|
+
/** The navigation-only read surface deliberately does not reuse the module query endpoint. */
|
|
61
|
+
export declare function createNavigatorReferenceCrudClient<TRecord>(http: HttpClient, options: {
|
|
62
|
+
moduleAlias: string;
|
|
63
|
+
}): ModuleCrudClient<TRecord>;
|
|
64
|
+
export declare function createStaticResourceCrudClient<TRecord>(http: HttpClient, resourcePath: string): ModuleCrudClient<TRecord>;
|
|
65
|
+
export declare function createModuleTreeClient<TRecord>(http: HttpClient, options: {
|
|
40
66
|
moduleAlias: string;
|
|
41
|
-
}):
|
|
42
|
-
export declare function
|
|
43
|
-
export declare function createStaticModuleTreeClient<TRecord>(http: HttpClient, options: {
|
|
67
|
+
}): ModuleTreeClient<TRecord>;
|
|
68
|
+
export declare function createNavigatorReferenceTreeClient<TRecord>(http: HttpClient, options: {
|
|
44
69
|
moduleAlias: string;
|
|
45
|
-
}):
|
|
46
|
-
export declare function createStaticResourceTreeClient<TRecord>(http: HttpClient, resourcePath: string):
|
|
70
|
+
}): ModuleTreeClient<TRecord>;
|
|
71
|
+
export declare function createStaticResourceTreeClient<TRecord>(http: HttpClient, resourcePath: string): ModuleTreeClient<TRecord>;
|
|
72
|
+
/** @deprecated Use ModuleCrudClient. Remove after static-prefixed consumer imports migrate. */
|
|
73
|
+
export type StaticModuleCrudClient<TRecord> = ModuleCrudClient<TRecord>;
|
|
74
|
+
/** @deprecated Use ModuleTreeClient. Remove after static-prefixed consumer imports migrate. */
|
|
75
|
+
export type StaticModuleTreeClient<TRecord> = ModuleTreeClient<TRecord>;
|
|
76
|
+
/** @deprecated Use createModuleCrudClient. Remove after static-prefixed consumer imports migrate. */
|
|
77
|
+
export declare const createStaticModuleCrudClient: typeof createModuleCrudClient;
|
|
78
|
+
/** @deprecated Use createModuleTreeClient. Remove after static-prefixed consumer imports migrate. */
|
|
79
|
+
export declare const createStaticModuleTreeClient: typeof createModuleTreeClient;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IMessage } from '@stomp/stompjs';
|
|
2
|
-
import type { WebBusinessRealtimeEvent, WebCommittedChangeSet, WebRealtimeEnvelope, WebUserNotification } from '../web-contracts/index';
|
|
2
|
+
import type { WebBusinessRealtimeEvent, WebBusinessNotification, WebCommittedChangeSet, WebRealtimeEnvelope, WebUserNotification } from '../web-contracts/index';
|
|
3
3
|
import type { DataChangeDispatcher } from './dataChanges';
|
|
4
4
|
export type RealtimeConnectionState = 'idle' | 'connecting' | 'connected' | 'reconnecting' | 'disconnected' | 'unauthorized' | 'failed';
|
|
5
5
|
export interface RealtimeChannel<TPayload> {
|
|
@@ -66,11 +66,13 @@ export interface StompErrorFrame {
|
|
|
66
66
|
export declare const realtimeMessageTypes: {
|
|
67
67
|
readonly dataChange: "platform.data-change";
|
|
68
68
|
readonly securityNotification: "platform.security-notification";
|
|
69
|
+
readonly businessNotification: "platform.business-notification";
|
|
69
70
|
readonly businessEvent: "platform.business-event";
|
|
70
71
|
};
|
|
71
72
|
export declare const realtimeDestinations: {
|
|
72
73
|
readonly userDataChanges: "/user/queue/platform/data-changes";
|
|
73
74
|
readonly userNotifications: "/user/queue/platform/notifications";
|
|
75
|
+
readonly userBusinessNotifications: "/user/queue/platform/business-notifications";
|
|
74
76
|
readonly userBusinessEvents: "/user/queue/platform/business-events";
|
|
75
77
|
readonly userImMessages: "/user/queue/platform/im/messages";
|
|
76
78
|
readonly platformPing: "/app/platform/ping";
|
|
@@ -79,6 +81,7 @@ export declare const realtimeDestinations: {
|
|
|
79
81
|
};
|
|
80
82
|
export declare const dataChangeChannel: RealtimeChannel<WebCommittedChangeSet>;
|
|
81
83
|
export declare const userNotificationChannel: RealtimeChannel<WebUserNotification>;
|
|
84
|
+
export declare const userBusinessNotificationChannel: RealtimeChannel<WebBusinessNotification>;
|
|
82
85
|
export declare const userBusinessEventChannel: RealtimeChannel<WebBusinessRealtimeEvent>;
|
|
83
86
|
export declare const userImMessageChannel: RealtimeChannel<unknown>;
|
|
84
87
|
export declare const platformPingCommand: RealtimeCommand<{
|
|
@@ -101,4 +104,5 @@ export declare function imConversationMessageChannel(conversationId: string): Re
|
|
|
101
104
|
export declare function createRealtimeClient(options?: RealtimeClientOptions): RealtimeClient;
|
|
102
105
|
export declare function connectRealtimeDataChanges(realtime: RealtimeClient, dispatcher: DataChangeDispatcher): RealtimeSubscription;
|
|
103
106
|
export declare function connectRealtimeUserNotifications(realtime: RealtimeClient, handler: RealtimeHandler<WebUserNotification>): RealtimeSubscription;
|
|
107
|
+
export declare function connectRealtimeBusinessNotifications(realtime: RealtimeClient, handler: RealtimeHandler<WebBusinessNotification>): RealtimeSubscription;
|
|
104
108
|
export declare function connectRealtimeBusinessEvents(realtime: RealtimeClient, handler: RealtimeHandler<WebBusinessRealtimeEvent>): RealtimeSubscription;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { WebReferenceResolveRequest, WebReferenceResolveResponse } from '../web-contracts/index';
|
|
2
|
+
import type { HttpClient } from './http';
|
|
3
|
+
/**
|
|
4
|
+
* Resolves candidates for a source field, including source-defined filtering,
|
|
5
|
+
* projections and field patches. The transport is source-module based; callers
|
|
6
|
+
* must not derive it from the referenced target module.
|
|
7
|
+
*/
|
|
8
|
+
export interface ReferenceResolveClient {
|
|
9
|
+
resolve(fieldName: string, request?: WebReferenceResolveRequest): Promise<WebReferenceResolveResponse>;
|
|
10
|
+
}
|
|
11
|
+
export declare function createReferenceResolveClient(http: HttpClient, moduleAlias: string, resolvePath?: string): ReferenceResolveClient;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { L as e, O as t } from "./workspaceViews-CkERhK0K.js";
|
|
2
|
+
import { computed as n, toValue as r } from "vue";
|
|
3
|
+
//#region src/platform-admin-runtime/useWorkspaceViewPromotion.ts
|
|
4
|
+
function i(e) {
|
|
5
|
+
return e.hasStableIdentity && e.busy !== !0 && e.canChangeHost !== !1;
|
|
6
|
+
}
|
|
7
|
+
function a(a) {
|
|
8
|
+
let o = e();
|
|
9
|
+
return n(() => {
|
|
10
|
+
let e = r(a.input);
|
|
11
|
+
if (!(!e || !i(r(a.eligibility)) || !o)) return {
|
|
12
|
+
title: "固定为页签",
|
|
13
|
+
promote: async () => {
|
|
14
|
+
if (await a.beforePromote?.(e) === !1) {
|
|
15
|
+
a.onPromotionRejected?.();
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
let n = o.openPage(t(a.view, e, "tab", r(a.title)));
|
|
19
|
+
a.onPromoted?.(n);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/platform-admin-runtime/workspaceViewSessions.ts
|
|
26
|
+
var o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
|
|
27
|
+
function c(e, t) {
|
|
28
|
+
return `${e.type}:${f(t)}`;
|
|
29
|
+
}
|
|
30
|
+
async function l(e, t, n) {
|
|
31
|
+
let r = c(e, t), i = s.get(r), a = i && [...i].at(-1);
|
|
32
|
+
return a ? await a(p(n)) ? "accepted" : "rejected" : (o.set(r, p(n)), "accepted");
|
|
33
|
+
}
|
|
34
|
+
function u(e, t, n) {
|
|
35
|
+
let r = c(e, t), i = s.get(r) ?? /* @__PURE__ */ new Set();
|
|
36
|
+
return i.add(n), s.set(r, i), () => {
|
|
37
|
+
i.delete(n), i.size === 0 && s.delete(r);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function d(e, t) {
|
|
41
|
+
let n = c(e, t), r = o.get(n);
|
|
42
|
+
return o.delete(n), r;
|
|
43
|
+
}
|
|
44
|
+
function f(e) {
|
|
45
|
+
return Array.isArray(e) ? `[${e.map(f).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => `${JSON.stringify(e)}:${f(t)}`).join(",")}}` : JSON.stringify(e);
|
|
46
|
+
}
|
|
47
|
+
function p(e) {
|
|
48
|
+
return JSON.parse(JSON.stringify(e));
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
export { a as i, u as n, d as r, l as t };
|