@ximatai/muyun-web-app 0.26.9 → 0.26.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MetadataOrchestrationView-CzhAgEdX.js → MetadataOrchestrationView-F_Bmfn9K.js} +188 -188
- package/dist/{ModuleActionManagementView-CM2d8jPO.js → ModuleActionManagementView-Db_3Twom.js} +70 -70
- package/dist/RoleDetailWorkspaceView-UOm1ejGH.js +1369 -0
- package/dist/index.css +1 -1
- package/dist/index.js +274 -299
- package/dist/{platform-components-CIi6GdC9.js → platform-components-59b4qzUL.js} +2738 -2453
- package/dist/types/app/StaticRoutePageHost.vue.d.ts +2 -0
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +4 -2
- package/dist/types/consumer/index.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +3 -1
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +3 -1
- package/dist/types/dynamic-page-runtime/ModulePageListExpansionSurface.vue.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansion.vue.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansions.vue.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +3 -1
- package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +7 -2
- package/dist/types/dynamic-page-runtime/composables/useModulePageDetailExtensionRuntime.d.ts +5 -1
- package/dist/types/dynamic-page-runtime/composables/useModulePageFormContributionRuntime.d.ts +5 -3
- package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +95 -41
- package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +3 -2
- package/dist/types/dynamic-page-runtime/index.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +103 -3
- package/dist/types/dynamic-page-runtime/navigatorEntrySelection.d.ts +18 -0
- package/dist/types/dynamic-page-runtime/pageContextRuntime.d.ts +8 -0
- package/dist/types/dynamic-page-runtime/pageNavigatorItemModel.d.ts +13 -0
- package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +9 -8
- package/dist/types/formula/FormulaRuntime.d.ts +3 -0
- package/dist/types/platform-admin-runtime/platformModulePageEnhancement.d.ts +6 -0
- package/dist/types/{views/SystemUserManagementView.vue.d.ts → platform-admin-runtime/role/RoleAccountGrantDrawerSurface.vue.d.ts} +2 -2
- package/dist/types/{views/UserDetailRouteView.vue.d.ts → platform-admin-runtime/role/RoleAuthorizationDrawerSurface.vue.d.ts} +2 -3
- package/dist/types/{views/SystemUserDetailWorkspaceView.vue.d.ts → platform-admin-runtime/role/RoleEmploymentGrantDrawerSurface.vue.d.ts} +2 -2
- package/dist/types/platform-admin-runtime/role/RoleEnumTitleCell.vue.d.ts +8 -0
- package/dist/types/{dynamic-page-runtime/DynamicModuleHost.vue.d.ts → platform-admin-runtime/role/RoleGroupMemberFormField.vue.d.ts} +2 -2
- package/dist/types/platform-admin-runtime/role/RoleScopeTree.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/roleModulePageEnhancement.d.ts +7 -0
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +5 -1
- package/dist/types/platform-components/DrawerOperationBar.vue.d.ts +4 -2
- package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +6 -3
- package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +4 -2
- package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordPanelButton.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordPicker.vue.d.ts +3 -1
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +13 -4
- package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +2 -0
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +5 -1
- package/dist/types/platform-components/index.d.ts +1 -3
- package/dist/types/platform-components/recordFormFieldModel.d.ts +16 -2
- package/dist/types/platform-components/recordPickerConstraints.d.ts +2 -0
- package/dist/types/platform-components/scopedTreeModuleContext.d.ts +2 -2
- package/dist/types/platform-components/staticTreeResourceModuleContext.d.ts +3 -3
- package/dist/types/platform-workbench/Workbench.vue.d.ts +4 -2
- package/dist/types/views/EmployeeEmploymentTable.vue.d.ts +5 -0
- package/dist/types/views/RoleAccountGrantDrawer.vue.d.ts +6 -2
- package/dist/types/views/RoleAuthorizationView.vue.d.ts +7 -0
- package/dist/types/views/RoleEmploymentGrantDrawer.vue.d.ts +5 -1
- package/dist/types/views/roleGrantClient.d.ts +8 -5
- package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +4 -2
- package/dist/types/vue-ui-antdv/components/UiSwitch.vue.d.ts +2 -0
- package/dist/types/vue-ui-antdv/components/UiTable.vue.d.ts +1 -0
- package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +20 -1
- package/dist/types/vue-ui-antdv/types.d.ts +6 -0
- package/dist/types/web-contracts/index.d.ts +81 -4
- package/dist/types/web-core/http.d.ts +6 -0
- package/dist/types/web-core/module/index.d.ts +1 -1
- package/dist/types/web-core/module/moduleContext.d.ts +2 -1
- package/dist/types/web-core/module/staticModuleClient.d.ts +10 -4
- package/dist/types/web-core/realtime.d.ts +8 -0
- package/dist/workspaceViews-BvV8mpML.js +11149 -0
- package/package.json +1 -1
- package/dist/DictionaryManagementView-CtIQpqVA.js +0 -1035
- package/dist/MenuManagementView-DJhkN2sG.js +0 -837
- package/dist/RoleAuthorizationView-jn_WUCeg.js +0 -599
- package/dist/RoleDetailWorkspaceView-CzaQ3Dz1.js +0 -26
- package/dist/RoleManagementView-nY7qu4GF.js +0 -1951
- package/dist/SystemUserDetailWorkspaceView-CBvqmWvP.js +0 -17
- package/dist/SystemUserManagementView-AEomKvK7.js +0 -887
- package/dist/currentUserContext-B1lj1WgF.js +0 -11
- package/dist/types/dynamic-page-runtime/DynamicRecordDetailActions.vue.d.ts +0 -39
- package/dist/types/dynamic-page-runtime/dynamicModuleDetailStateModel.d.ts +0 -5
- package/dist/types/platform-components/scopedResourceTreeModuleContext.d.ts +0 -6
- package/dist/types/views/DictionaryManagementView.vue.d.ts +0 -3
- package/dist/types/views/MenuManagementView.vue.d.ts +0 -3
- package/dist/types/views/UserDetailContent.vue.d.ts +0 -32
- package/dist/types/views/UserManagementListView.vue.d.ts +0 -3
- package/dist/types/views/UserManagementView.vue.d.ts +0 -3
- package/dist/types/views/dictionaryManagementState.d.ts +0 -215
- package/dist/types/views/menuManagementState.d.ts +0 -180
- package/dist/types/views/systemUserDetailWorkspaceSession.d.ts +0 -12
- package/dist/types/views/systemUserDetailWorkspaceView.d.ts +0 -5
- package/dist/types/views/useUserSessionRows.d.ts +0 -28
- package/dist/types/views/userDetailStateModel.d.ts +0 -9
- package/dist/types/views/userManagementRouteState.d.ts +0 -11
- package/dist/workspaceViewSessions-B5g4M0rT.js +0 -51
- package/dist/workspaceViews-CkERhK0K.js +0 -8748
|
@@ -5,6 +5,8 @@ type __VLS_Props = {
|
|
|
5
5
|
component: Component;
|
|
6
6
|
route: RouteLocationNormalizedLoaded;
|
|
7
7
|
pageDescriptor?: PageDescriptor;
|
|
8
|
+
/** Refreshes this page's inner route component without evicting sibling tabs from KeepAlive. */
|
|
9
|
+
refreshRevision?: number;
|
|
8
10
|
};
|
|
9
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>;
|
|
10
12
|
declare const _default: typeof __VLS_export;
|
|
@@ -12,18 +12,20 @@ type __VLS_Props = {
|
|
|
12
12
|
realtimeStatus?: WorkbenchRealtimeStatus;
|
|
13
13
|
themeAppearance?: 'light' | 'dark';
|
|
14
14
|
};
|
|
15
|
-
declare var
|
|
15
|
+
declare var __VLS_18: {
|
|
16
16
|
pageDescriptor: PageDescriptor | undefined;
|
|
17
17
|
};
|
|
18
18
|
type __VLS_Slots = {} & {
|
|
19
|
-
default?: (props: typeof
|
|
19
|
+
default?: (props: typeof __VLS_18) => any;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
22
|
navigate: (navigation: AppWorkbenchNavigation) => any;
|
|
23
|
+
refreshPage: (key: string) => any;
|
|
23
24
|
userCommand: (key: string) => any;
|
|
24
25
|
"update:startup": (value: WorkbenchStartupState) => any;
|
|
25
26
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
26
27
|
onNavigate?: ((navigation: AppWorkbenchNavigation) => any) | undefined;
|
|
28
|
+
onRefreshPage?: ((key: string) => any) | undefined;
|
|
27
29
|
onUserCommand?: ((key: string) => any) | undefined;
|
|
28
30
|
"onUpdate:startup"?: ((value: WorkbenchStartupState) => any) | undefined;
|
|
29
31
|
}>, {
|
|
@@ -15,7 +15,7 @@ export { activeTabUrlOf, arrangeLockedMenuTabs, removeLockedMenuTabs, restoreWor
|
|
|
15
15
|
export { restoreLockedTabPreference, saveLockedTabPreference } from '../app/lockedTabPreference';
|
|
16
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, ModulePageDetailDrawer, ModulePageDetailSection, ModulePageDetailSectionContext, ModulePageDrawer, ModulePageDrawerContext, ModulePageRecordViewContext, ModulePageEnhancement, ModulePageEnhancementTarget, ModulePageRecordActionContext, ModulePageRecordActionContribution, ModulePageScopeContext, ModulePageWorkspaceView, ModulePageWorkspaceViewInput, } from '../dynamic-page-runtime/modulePageEnhancements';
|
|
18
|
+
export type { ModuleListEnhancement, ModuleDetailEnhancement, ModulePageActionContext, ModulePageActionContribution, ModulePageActionStateContext, ModulePageBatchActionContext, ModulePageBatchActionContribution, ModulePageColumnContribution, ModulePageDetailDrawer, ModulePageDetailSection, ModulePageDetailSectionContext, ModulePageDrawer, ModulePageDrawerContext, ModulePageRecordViewContext, ModulePageEnhancement, ModulePageEnhancementTarget, ModulePageLockedNavigatorEntry, ModulePageNavigatorEnhancement, ModulePageNavigatorExtension, ModulePageNavigatorExtensionContext, ModulePageRecordActionContext, ModulePageRecordActionContribution, ModulePageScopeContext, ModulePageWorkspaceView, ModulePageWorkspaceViewInput, } from '../dynamic-page-runtime/modulePageEnhancements';
|
|
19
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';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type QueryListRecord } from '../platform-components/index';
|
|
2
2
|
import type { ResolvedDetailRelationDescriptor, ResolvedModuleUiDescriptor } from '../web-contracts/index';
|
|
3
|
-
import { type ModuleContext } from '../web-core/index';
|
|
3
|
+
import { type HttpClient, type ModuleContext } from '../web-core/index';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
sourceContext: ModuleContext<QueryListRecord>;
|
|
6
|
+
crossModuleHttp?: HttpClient;
|
|
6
7
|
uiDescriptor: ResolvedModuleUiDescriptor;
|
|
7
8
|
relation: ResolvedDetailRelationDescriptor;
|
|
8
9
|
parentRecord: QueryListRecord;
|
|
@@ -31,6 +32,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
31
32
|
density: "default" | "compact";
|
|
32
33
|
reloadKey: number;
|
|
33
34
|
validationRequestKey: number;
|
|
35
|
+
crossModuleHttp: HttpClient;
|
|
34
36
|
addRequestKey: number;
|
|
35
37
|
removeRequestKey: number;
|
|
36
38
|
undoRemoveRequestKey: number;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type QueryListRecord } from '../platform-components/index';
|
|
2
2
|
import type { ResolvedDetailRelationDescriptor, ResolvedModuleUiDescriptor } from '../web-contracts/index';
|
|
3
|
-
import { type ModuleContext } from '../web-core/index';
|
|
3
|
+
import { type HttpClient, type ModuleContext } from '../web-core/index';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
sourceContext: ModuleContext<QueryListRecord>;
|
|
6
|
+
crossModuleHttp?: HttpClient;
|
|
6
7
|
uiDescriptor: ResolvedModuleUiDescriptor;
|
|
7
8
|
relation: ResolvedDetailRelationDescriptor;
|
|
8
9
|
parentRecord: QueryListRecord;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type QueryListRecord } from '../platform-components/index';
|
|
2
2
|
import type { ResolvedDetailRelationDescriptor, ResolvedModuleUiDescriptor } from '../web-contracts/index';
|
|
3
|
-
import type { ModuleContext } from '../web-core/index';
|
|
3
|
+
import type { HttpClient, ModuleContext } from '../web-core/index';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
sourceContext: ModuleContext<QueryListRecord>;
|
|
6
|
+
crossModuleHttp?: HttpClient;
|
|
6
7
|
uiDescriptor: ResolvedModuleUiDescriptor;
|
|
7
8
|
relations: ResolvedDetailRelationDescriptor[];
|
|
8
9
|
parentRecord: QueryListRecord;
|
|
@@ -21,6 +22,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
21
22
|
reloadKey: number;
|
|
22
23
|
surface: "detail" | "list-expansion";
|
|
23
24
|
validationRequestKey: number;
|
|
25
|
+
crossModuleHttp: HttpClient;
|
|
24
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
27
|
declare const _default: typeof __VLS_export;
|
|
26
28
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type QueryListRecord } from '../platform-components/index';
|
|
2
2
|
import type { ResolvedDetailRelationDescriptor, ResolvedModuleUiDescriptor, ResolvedPageListRelationExpansionDescriptor } from '../web-contracts/index';
|
|
3
|
-
import type { ModuleContext } from '../web-core/index';
|
|
3
|
+
import type { HttpClient, ModuleContext } from '../web-core/index';
|
|
4
4
|
import type { ModulePageListRowExpansion, ModulePageListRowExpansionContext } from './modulePageEnhancements';
|
|
5
5
|
type RelationExpansionEntry = {
|
|
6
6
|
expansion: ResolvedPageListRelationExpansionDescriptor;
|
|
@@ -8,6 +8,7 @@ type RelationExpansionEntry = {
|
|
|
8
8
|
};
|
|
9
9
|
type __VLS_Props = {
|
|
10
10
|
sourceContext: ModuleContext<QueryListRecord>;
|
|
11
|
+
crossModuleHttp?: HttpClient;
|
|
11
12
|
uiDescriptor: ResolvedModuleUiDescriptor;
|
|
12
13
|
record: QueryListRecord;
|
|
13
14
|
relationEntries: readonly RelationExpansionEntry[];
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { ResolvedDetailRelationDescriptor, ResolvedModuleUiDescriptor, ResolvedPageListRelationExpansionDescriptor } from '../web-contracts/index';
|
|
2
|
-
import type { ModuleContext } from '../web-core/index';
|
|
2
|
+
import type { HttpClient, ModuleContext } from '../web-core/index';
|
|
3
3
|
import { type QueryListRecord } from '../platform-components/index';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
sourceContext: ModuleContext<QueryListRecord>;
|
|
6
|
+
crossModuleHttp?: HttpClient;
|
|
6
7
|
uiDescriptor: ResolvedModuleUiDescriptor;
|
|
7
8
|
record: QueryListRecord;
|
|
8
9
|
relation: ResolvedDetailRelationDescriptor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResolvedDetailRelationDescriptor, ResolvedModuleUiDescriptor, ResolvedPageListRelationExpansionDescriptor } from '../web-contracts/index';
|
|
2
|
-
import type { ModuleContext } from '../web-core/index';
|
|
2
|
+
import type { HttpClient, ModuleContext } from '../web-core/index';
|
|
3
3
|
import { type QueryListRecord } from '../platform-components/index';
|
|
4
4
|
type RelationExpansionEntry = {
|
|
5
5
|
relation: ResolvedDetailRelationDescriptor;
|
|
@@ -7,6 +7,7 @@ type RelationExpansionEntry = {
|
|
|
7
7
|
};
|
|
8
8
|
type __VLS_Props = {
|
|
9
9
|
sourceContext: ModuleContext<QueryListRecord>;
|
|
10
|
+
crossModuleHttp?: HttpClient;
|
|
10
11
|
uiDescriptor: ResolvedModuleUiDescriptor;
|
|
11
12
|
record: QueryListRecord;
|
|
12
13
|
entries: readonly RelationExpansionEntry[];
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { type QueryListRecord, type RecordFormFieldPickerConfig, type RecordFormFieldValue, type RecordFormFieldDescriptor } from '../platform-components/index';
|
|
2
|
-
import type { ModuleContext } from '../web-core/index';
|
|
2
|
+
import type { HttpClient, ModuleContext } from '../web-core/index';
|
|
3
3
|
import type { ResolvedDetailRelationDescriptor, ResolvedModuleUiDescriptor } from '../web-contracts/index';
|
|
4
4
|
import type { ModulePageDetailSection, ModulePageDetailSectionContext, ModulePageFormContribution, ModulePageFormFieldPolicy } from './modulePageEnhancements';
|
|
5
5
|
type __VLS_Props = {
|
|
6
6
|
context: ModuleContext<QueryListRecord>;
|
|
7
|
+
/** Neutral transport for reference target modules. */
|
|
8
|
+
crossModuleHttp?: HttpClient;
|
|
7
9
|
mode: 'view' | 'edit' | 'create';
|
|
8
10
|
record: QueryListRecord;
|
|
9
11
|
selectedRecord?: QueryListRecord;
|
|
@@ -12,16 +12,21 @@ type __VLS_Props = {
|
|
|
12
12
|
reloadKey: number;
|
|
13
13
|
keyword: string;
|
|
14
14
|
externalQueryValues?: Record<string, unknown>;
|
|
15
|
+
navigatorHostModuleAlias: string;
|
|
16
|
+
/** Whether this navigator's upstream selection scope is available. */
|
|
17
|
+
ready?: boolean;
|
|
15
18
|
/** The navigator's declared upstream query scope is not settled yet. */
|
|
16
19
|
createDisabled?: boolean;
|
|
17
20
|
createDisabledReason?: string;
|
|
21
|
+
/** Human-readable context supplied by an upstream navigator selection. */
|
|
22
|
+
scopeSubtitle?: string;
|
|
18
23
|
actionsOf?: (record: {
|
|
19
24
|
id?: string;
|
|
20
25
|
}) => RecordInlineAction[];
|
|
21
26
|
};
|
|
22
|
-
declare var
|
|
27
|
+
declare var __VLS_45: {};
|
|
23
28
|
type __VLS_Slots = {} & {
|
|
24
|
-
editor?: (props: typeof
|
|
29
|
+
editor?: (props: typeof __VLS_45) => any;
|
|
25
30
|
};
|
|
26
31
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
32
|
action: (action: RecordInlineAction, record: QueryListRecord) => any;
|
package/dist/types/dynamic-page-runtime/composables/useModulePageDetailExtensionRuntime.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { QueryListRecord } from '../../platform-components/index';
|
|
2
2
|
import type { ModuleContext } from '../../web-core/index';
|
|
3
|
-
import type { ModulePageDetailSectionContext, ModulePageDrawer, ModulePageDrawerAction, ModulePageDrawerContext, ModulePageRecordViewContext, ModulePageScopeContext } from '../modulePageEnhancements';
|
|
3
|
+
import type { ModulePageDetailSectionContext, ModulePageDrawer, ModulePageDrawerAction, ModulePageDrawerContext, ModulePageDrawerOperation, ModulePageRecordViewContext, ModulePageScopeContext } from '../modulePageEnhancements';
|
|
4
4
|
export interface ModulePageEnhancementDrawerRuntime {
|
|
5
5
|
definition: ModulePageDrawer;
|
|
6
6
|
context: ModulePageDrawerContext;
|
|
7
7
|
titleActions: ModulePageDrawerAction[];
|
|
8
|
+
operation?: ModulePageDrawerOperation;
|
|
9
|
+
subtitle?: string;
|
|
8
10
|
closeBlocked: boolean;
|
|
9
11
|
}
|
|
10
12
|
interface Options {
|
|
@@ -17,10 +19,12 @@ interface Options {
|
|
|
17
19
|
/** Owns frontend-only detail extension invalidation and drawer lifecycle. */
|
|
18
20
|
export declare function useModulePageDetailExtensionRuntime(options: Options): {
|
|
19
21
|
drawer: import("vue").Ref<ModulePageEnhancementDrawerRuntime | undefined, ModulePageEnhancementDrawerRuntime | undefined>;
|
|
22
|
+
drawerOpen: import("vue").Ref<boolean, boolean>;
|
|
20
23
|
refreshDetailExtensions: () => void;
|
|
21
24
|
sectionContext: (record: QueryListRecord) => ModulePageDetailSectionContext;
|
|
22
25
|
recordViewContext: (record: QueryListRecord) => ModulePageRecordViewContext;
|
|
23
26
|
openDrawer: (definition: ModulePageDrawer, record?: QueryListRecord) => void;
|
|
24
27
|
closeDrawer: () => void;
|
|
28
|
+
disposeDrawer: () => void;
|
|
25
29
|
};
|
|
26
30
|
export {};
|
package/dist/types/dynamic-page-runtime/composables/useModulePageFormContributionRuntime.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
|
-
import { type RecordFormFieldDescriptor, type RecordFormFieldState, type RecordFormFieldValue, type RecordFormRecord } from '../../platform-components/index';
|
|
2
|
+
import { type RecordFormFieldDescriptor, type RecordFormFieldState, type RecordFormFieldValue, type RecordFormRecord, type QueryListRecord } from '../../platform-components/index';
|
|
3
|
+
import type { WebPageResponse, WebQueryRequest } from '../../web-contracts/index';
|
|
3
4
|
import { type ModulePageFormContribution, type ModulePageFormContributionContext, type ModulePageFormContributionState } from '../modulePageEnhancements';
|
|
4
5
|
interface UseModulePageFormContributionRuntimeOptions {
|
|
5
6
|
contributions: Ref<readonly ModulePageFormContribution[]>;
|
|
@@ -8,11 +9,12 @@ interface UseModulePageFormContributionRuntimeOptions {
|
|
|
8
9
|
fields: Ref<Map<string, RecordFormFieldDescriptor>>;
|
|
9
10
|
formSessionKey: Ref<number>;
|
|
10
11
|
setField(fieldName: string, value: RecordFormFieldValue): void;
|
|
12
|
+
queryRecords?(request?: WebQueryRequest): Promise<WebPageResponse<QueryListRecord>>;
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
15
|
* Keeps application contribution validity at the same save boundary as the
|
|
14
|
-
* descriptor-owned form, without giving contributed components
|
|
15
|
-
*
|
|
16
|
+
* descriptor-owned form, without giving contributed components mutable form
|
|
17
|
+
* state or an arbitrary transport. Read queries stay on the host context.
|
|
16
18
|
*/
|
|
17
19
|
export declare function useModulePageFormContributionRuntime(options: UseModulePageFormContributionRuntimeOptions): {
|
|
18
20
|
valid: import("vue").ComputedRef<boolean>;
|