@ximatai/muyun-web-app 0.26.6 → 0.26.8
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/{EmployeeDetailWorkspaceView-DHZ4arBj.js → EmployeeDetailWorkspaceView-DswEDSxH.js} +1 -1
- package/dist/EmployeeManagementView-C9STtw08.js +1777 -0
- package/dist/{MetadataOrchestrationView-BLxigKBh.js → MetadataOrchestrationView-DKYVGMzy.js} +195 -195
- package/dist/{ModuleActionManagementView-ByJzNkQs.js → ModuleActionManagementView-DiVzuPdu.js} +122 -122
- package/dist/RoleAuthorizationView-C0s4Bog7.js +592 -0
- package/dist/{RoleDetailWorkspaceView-Dfdigf04.js → RoleDetailWorkspaceView-dqHxKVfd.js} +1 -1
- package/dist/{RoleManagementView-D0e9nLwW.js → RoleManagementView-D43pUCxi.js} +542 -543
- package/dist/{SystemUserDetailWorkspaceView-D-UPhCmD.js → SystemUserDetailWorkspaceView-CQ9WeLrR.js} +1 -1
- package/dist/SystemUserManagementView-D75_ylYk.js +758 -0
- package/dist/{UserDetailWorkspaceView-BCSCLNSz.js → UserDetailWorkspaceView-BCST01d2.js} +1 -1
- package/dist/{UserManagementView-aY2AeeWK.js → UserManagementView-CcdvDo_y.js} +211 -212
- package/dist/index.css +1 -1
- package/dist/index.js +4293 -5694
- package/dist/{pageRealtime-Be2xkeKK.js → pageRealtime-EAiGWKEo.js} +87 -85
- package/dist/{platform-components-DuAohqJO.js → platform-components-CFU_zR7-.js} +3828 -2331
- package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +33 -0
- package/dist/types/app/LoginView.vue.d.ts +4 -1
- package/dist/types/app/ThemeSkinPreferencesDialog.vue.d.ts +20 -0
- package/dist/types/app/lockedTabPreference.d.ts +6 -0
- package/dist/types/app/themeSkinPreference.d.ts +11 -0
- package/dist/types/app/workbenchStartup.d.ts +18 -1
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +43 -0
- package/dist/types/consumer/index.d.ts +17 -2
- package/dist/types/consumer/userPreferencePersistence.d.ts +7 -0
- package/dist/types/consumer/workbenchNavigation.d.ts +8 -0
- package/dist/types/dynamic-page-runtime/DynamicModuleWorkspaceDetailView.vue.d.ts +10 -0
- package/dist/types/dynamic-page-runtime/DynamicRecordDetailActions.vue.d.ts +38 -0
- package/dist/types/dynamic-page-runtime/NavigatorManagementEditor.vue.d.ts +25 -0
- package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +43 -0
- package/dist/types/dynamic-page-runtime/detailSurfacePreference.d.ts +10 -0
- package/dist/types/dynamic-page-runtime/index.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +57 -1
- package/dist/types/dynamic-page-runtime/modulePageNavigation.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/pageContextRuntime.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +27 -0
- package/dist/types/platform-admin-runtime/index.d.ts +1 -1
- package/dist/types/platform-admin-runtime/platformAdminRoutes.d.ts +5 -0
- package/dist/types/platform-admin-runtime/realtime.d.ts +2 -1
- package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +12 -0
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +6 -0
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +20 -1
- package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +32 -0
- package/dist/types/platform-components/ManagementWorkspace.vue.d.ts +8 -2
- package/dist/types/platform-components/RecordActionBar.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +4 -1
- package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +11 -7
- package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +7 -5
- package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +6 -6
- package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +10 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +5 -1
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +4 -1
- 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 +1 -1
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +9 -2
- package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +3 -0
- package/dist/types/platform-components/SingleImageFileReferenceField.vue.d.ts +23 -0
- package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +13 -7
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +3 -0
- package/dist/types/platform-components/fileReferenceTransfer.d.ts +8 -0
- package/dist/types/platform-components/index.d.ts +5 -2
- package/dist/types/platform-components/managementWorkspaceLayout.d.ts +14 -0
- package/dist/types/platform-components/platformErrorFeedback.d.ts +2 -0
- package/dist/types/platform-components/recordActionBarModel.d.ts +6 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +6 -3
- package/dist/types/platform-components/recycleBinState.d.ts +2 -0
- package/dist/types/platform-components/scopedTreeModuleContext.d.ts +12 -1
- package/dist/types/platform-components/staticCrudManagementState.d.ts +1 -1
- package/dist/types/platform-workbench/Workbench.vue.d.ts +12 -2
- package/dist/types/platform-workbench/WorkbenchBrandControl.vue.d.ts +22 -2
- package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +24 -0
- package/dist/types/platform-workbench/WorkbenchSidebarMenuEntry.vue.d.ts +19 -0
- package/dist/types/platform-workbench/index.d.ts +1 -0
- package/dist/types/platform-workbench/menuHoverClickIntent.d.ts +10 -0
- package/dist/types/platform-workbench/menuNavigation.d.ts +3 -0
- package/dist/types/platform-workbench/menuPointerAim.d.ts +1 -1
- package/dist/types/platform-workbench/modulePageWorkspaceViews.d.ts +7 -0
- package/dist/types/platform-workbench/workbenchLayout.d.ts +39 -0
- package/dist/types/platform-workbench/workbenchNavigation.d.ts +2 -0
- package/dist/types/platform-workbench/workspaceViewHost.d.ts +2 -0
- package/dist/types/views/fieldUiControlManagementState.d.ts +1 -1
- package/dist/types/views/tenantManagementState.d.ts +11 -1
- package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +2 -2
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiModal.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiTabs.vue.d.ts +6 -0
- package/dist/types/vue-ui-antdv/components/UiThemeProvider.vue.d.ts +21 -0
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +7 -1
- package/dist/types/vue-ui-antdv/index.d.ts +4 -0
- package/dist/types/vue-ui-antdv/theme.d.ts +58 -0
- package/dist/types/vue-ui-antdv/themeGlobalScope.d.ts +2 -0
- package/dist/types/vue-ui-antdv/types.d.ts +1 -0
- package/dist/types/web-contracts/index.d.ts +168 -17
- package/dist/types/web-core/businessNotifications.d.ts +3 -0
- package/dist/types/web-core/clients.d.ts +9 -1
- package/dist/types/web-core/index.d.ts +3 -0
- package/dist/types/web-core/mock.d.ts +3 -1
- package/dist/types/web-core/module/moduleContext.d.ts +1 -0
- package/dist/types/web-core/module/runtimeContext.d.ts +3 -1
- package/dist/types/web-core/module/staticModuleClient.d.ts +8 -1
- package/dist/types/web-core/realtime.d.ts +5 -1
- package/dist/types/web-core/userPreferences.d.ts +24 -0
- package/dist/{useUserSessionRows-DX9qYU5r.js → useUserSessionRows-DCpUZCzN.js} +2 -2
- package/dist/workspaceViewSessions-Dj1LjdG1.js +4984 -0
- package/package.json +1 -1
- package/dist/EmployeeManagementView-BfGb_ssB.js +0 -1706
- package/dist/RoleAuthorizationView-DJSWY3fu.js +0 -592
- package/dist/SystemUserManagementView-DNKRvmDk.js +0 -761
- package/dist/currentUserContext-B1lj1WgF.js +0 -11
- package/dist/types/views/ApplicationManagementView.vue.d.ts +0 -3
- package/dist/types/views/DepartmentManagementView.vue.d.ts +0 -3
- package/dist/types/views/FieldSpecManagementView.vue.d.ts +0 -3
- package/dist/types/views/OrganizationManagementView.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/fieldSpecManagementState.d.ts +0 -80
- package/dist/types/views/organizationManagementState.d.ts +0 -64
- package/dist/workspaceViewSessions-C3GP1UGp.js +0 -2639
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { type FileTransferUploadAccess, type FileTransferUploadReceipt } from './fileTransferUpload';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
/** Business API callback: authorize this exact file and return a short-lived upload target. */
|
|
4
|
-
requestUploadAccess
|
|
4
|
+
requestUploadAccess?: (file: File) => Promise<FileTransferUploadAccess>;
|
|
5
|
+
/** Storage-specific transport; ordinary FileServer fields continue to use upload access tickets. */
|
|
6
|
+
uploadFile?: (file: File) => Promise<FileTransferUploadReceipt>;
|
|
5
7
|
/** Optional business callback after upload. Standard file-reference fields leave this undefined. */
|
|
6
8
|
confirmUpload?: (receipt: FileTransferUploadReceipt) => Promise<unknown>;
|
|
7
9
|
accept?: string;
|
|
@@ -14,7 +16,16 @@ type __VLS_Props = {
|
|
|
14
16
|
existingFileCount?: number;
|
|
15
17
|
autoUpload?: boolean;
|
|
16
18
|
uploadText?: string;
|
|
19
|
+
presentation?: 'dropzone' | 'button';
|
|
20
|
+
uploadButtonType?: 'default' | 'primary' | 'dashed' | 'link' | 'text';
|
|
21
|
+
showCompletedItems?: boolean;
|
|
22
|
+
/** Non-blocking, browser-side guidance evaluated after file selection and before transfer. */
|
|
23
|
+
uploadAdvisory?: (file: File) => string | undefined | Promise<string | undefined>;
|
|
24
|
+
/** Business-owned preflight validation; returning a message rejects the selected file before transfer. */
|
|
25
|
+
uploadValidation?: (file: File) => string | undefined | Promise<string | undefined>;
|
|
17
26
|
disabledHint?: string;
|
|
27
|
+
/** Persistent guidance displayed in the dropzone before a file is selected. */
|
|
28
|
+
dropzoneHint?: string;
|
|
18
29
|
completionHint?: string;
|
|
19
30
|
/** Completed items may be retained when the surrounding form owns deletion semantics. */
|
|
20
31
|
allowCompletedRemoval?: boolean;
|
|
@@ -33,6 +44,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
33
44
|
}>, {
|
|
34
45
|
disabled: boolean;
|
|
35
46
|
multiple: boolean;
|
|
47
|
+
presentation: "dropzone" | "button";
|
|
48
|
+
requestUploadAccess: (file: File) => Promise<FileTransferUploadAccess>;
|
|
49
|
+
uploadFile: (file: File) => Promise<FileTransferUploadReceipt>;
|
|
36
50
|
confirmUpload: (receipt: FileTransferUploadReceipt) => Promise<unknown>;
|
|
37
51
|
accept: string;
|
|
38
52
|
allowedMediaTypes: string[];
|
|
@@ -41,7 +55,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
41
55
|
existingFileCount: number;
|
|
42
56
|
autoUpload: boolean;
|
|
43
57
|
uploadText: string;
|
|
58
|
+
uploadButtonType: "default" | "primary" | "dashed" | "link" | "text";
|
|
59
|
+
showCompletedItems: boolean;
|
|
60
|
+
uploadAdvisory: (file: File) => string | undefined | Promise<string | undefined>;
|
|
61
|
+
uploadValidation: (file: File) => string | undefined | Promise<string | undefined>;
|
|
44
62
|
disabledHint: string;
|
|
63
|
+
dropzoneHint: string;
|
|
45
64
|
completionHint: string;
|
|
46
65
|
allowCompletedRemoval: boolean;
|
|
47
66
|
releasedCompletedFileIds: readonly string[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type UiIconName } from '../vue-ui-antdv/index';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
titleActionIcon?: UiIconName;
|
|
6
|
+
titleActionTitle?: string;
|
|
7
|
+
};
|
|
8
|
+
declare var __VLS_1: {}, __VLS_11: {}, __VLS_13: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
'title-prefix'?: (props: typeof __VLS_1) => any;
|
|
11
|
+
} & {
|
|
12
|
+
status?: (props: typeof __VLS_11) => any;
|
|
13
|
+
} & {
|
|
14
|
+
actions?: (props: typeof __VLS_13) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
titleAction: () => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
onTitleAction?: (() => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
subtitle: string;
|
|
22
|
+
titleActionIcon: UiIconName;
|
|
23
|
+
titleActionTitle: string;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
/** Number of explorer columns shown before the detail workspace. */
|
|
3
|
-
explorerCount?:
|
|
3
|
+
explorerCount?: number;
|
|
4
|
+
/** Whether the final workspace is a list plus an independently sized detail surface. */
|
|
5
|
+
detailSurface?: boolean;
|
|
6
|
+
/** Whether the final workspace is a list without a persistent detail surface. */
|
|
7
|
+
listSurface?: boolean;
|
|
4
8
|
};
|
|
5
9
|
declare var __VLS_1: {};
|
|
6
10
|
type __VLS_Slots = {} & {
|
|
7
11
|
default?: (props: typeof __VLS_1) => any;
|
|
8
12
|
};
|
|
9
13
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
-
explorerCount:
|
|
14
|
+
explorerCount: number;
|
|
15
|
+
detailSurface: boolean;
|
|
16
|
+
listSurface: boolean;
|
|
11
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
18
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
19
|
declare const _default: typeof __VLS_export;
|
|
@@ -13,8 +13,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
13
13
|
onAction?: ((action: RecordActionItem, event: MouseEvent) => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
15
|
recordId: string;
|
|
16
|
-
loading: boolean;
|
|
17
16
|
size: "default" | "compact";
|
|
17
|
+
loading: boolean;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const _default: typeof __VLS_export;
|
|
20
20
|
export default _default;
|
|
@@ -12,6 +12,9 @@ type __VLS_Props = {
|
|
|
12
12
|
};
|
|
13
13
|
type __VLS_Slots = {
|
|
14
14
|
status(): unknown;
|
|
15
|
+
'title-prefix'(): unknown;
|
|
16
|
+
'title-actions'(): unknown;
|
|
17
|
+
'header-actions'(): unknown;
|
|
15
18
|
default(): unknown;
|
|
16
19
|
operation(): unknown;
|
|
17
20
|
};
|
|
@@ -21,8 +24,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
21
24
|
onClose?: (() => any) | undefined;
|
|
22
25
|
}>, {
|
|
23
26
|
scope: UiSidePanelScope;
|
|
24
|
-
subtitle: string;
|
|
25
27
|
width: number | string;
|
|
28
|
+
subtitle: string;
|
|
26
29
|
closeOnOutside: boolean;
|
|
27
30
|
closeTitle: string;
|
|
28
31
|
promotion: DrawerPromotion;
|
|
@@ -8,19 +8,23 @@ type __VLS_Props = {
|
|
|
8
8
|
/** Internal composition surface selected by the hosting platform component. */
|
|
9
9
|
surface?: 'workspace' | 'drawer';
|
|
10
10
|
};
|
|
11
|
-
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {},
|
|
11
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {}, __VLS_21: {};
|
|
12
12
|
type __VLS_Slots = {} & {
|
|
13
|
-
|
|
13
|
+
header?: (props: typeof __VLS_1) => any;
|
|
14
14
|
} & {
|
|
15
|
-
'title-
|
|
15
|
+
'title-prefix'?: (props: typeof __VLS_3) => any;
|
|
16
16
|
} & {
|
|
17
|
-
|
|
17
|
+
status?: (props: typeof __VLS_5) => any;
|
|
18
18
|
} & {
|
|
19
|
-
|
|
19
|
+
'title-actions'?: (props: typeof __VLS_7) => any;
|
|
20
20
|
} & {
|
|
21
|
-
|
|
21
|
+
actions?: (props: typeof __VLS_9) => any;
|
|
22
22
|
} & {
|
|
23
|
-
|
|
23
|
+
default?: (props: typeof __VLS_11) => any;
|
|
24
|
+
} & {
|
|
25
|
+
default?: (props: typeof __VLS_13) => any;
|
|
26
|
+
} & {
|
|
27
|
+
operation?: (props: typeof __VLS_21) => any;
|
|
24
28
|
};
|
|
25
29
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
26
30
|
subtitle: string;
|
|
@@ -2,15 +2,17 @@ type __VLS_Props = {
|
|
|
2
2
|
title: string;
|
|
3
3
|
subtitle?: string;
|
|
4
4
|
};
|
|
5
|
-
declare var
|
|
5
|
+
declare var __VLS_16: {}, __VLS_19: {}, __VLS_22: {}, __VLS_24: {}, __VLS_27: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
|
-
|
|
7
|
+
'title-prefix'?: (props: typeof __VLS_16) => any;
|
|
8
8
|
} & {
|
|
9
|
-
|
|
9
|
+
status?: (props: typeof __VLS_19) => any;
|
|
10
10
|
} & {
|
|
11
|
-
|
|
11
|
+
actions?: (props: typeof __VLS_22) => any;
|
|
12
12
|
} & {
|
|
13
|
-
|
|
13
|
+
default?: (props: typeof __VLS_24) => any;
|
|
14
|
+
} & {
|
|
15
|
+
operation?: (props: typeof __VLS_27) => any;
|
|
14
16
|
};
|
|
15
17
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
18
|
subtitle: string;
|
|
@@ -5,17 +5,17 @@ type __VLS_Props = {
|
|
|
5
5
|
searchPlaceholder?: string;
|
|
6
6
|
searchable?: boolean;
|
|
7
7
|
};
|
|
8
|
-
declare var
|
|
8
|
+
declare var __VLS_10: {}, __VLS_20: {}, __VLS_36: {}, __VLS_38: {}, __VLS_40: {};
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
|
-
'title-extra'?: (props: typeof
|
|
10
|
+
'title-extra'?: (props: typeof __VLS_10) => any;
|
|
11
11
|
} & {
|
|
12
|
-
actions?: (props: typeof
|
|
12
|
+
actions?: (props: typeof __VLS_20) => any;
|
|
13
13
|
} & {
|
|
14
|
-
default?: (props: typeof
|
|
14
|
+
default?: (props: typeof __VLS_36) => any;
|
|
15
15
|
} & {
|
|
16
|
-
footer?: (props: typeof
|
|
16
|
+
footer?: (props: typeof __VLS_38) => any;
|
|
17
17
|
} & {
|
|
18
|
-
editor?: (props: typeof
|
|
18
|
+
editor?: (props: typeof __VLS_40) => any;
|
|
19
19
|
};
|
|
20
20
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
21
|
refresh: () => any;
|
|
@@ -9,6 +9,16 @@ type __VLS_Props = {
|
|
|
9
9
|
formSessionKey?: string | number;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
disabledHint?: string;
|
|
12
|
+
dropzoneHint?: string;
|
|
13
|
+
showBoundFiles?: boolean;
|
|
14
|
+
uploaderPresentation?: 'dropzone' | 'button';
|
|
15
|
+
uploadText?: string;
|
|
16
|
+
uploadButtonType?: 'default' | 'primary' | 'dashed' | 'link' | 'text';
|
|
17
|
+
showCompletedUploadItems?: boolean;
|
|
18
|
+
/** The enclosing field has already rendered the bound file and needs the uploader slot immediately reusable. */
|
|
19
|
+
releaseCompletedUploadOnBind?: boolean;
|
|
20
|
+
uploadAdvisory?: (file: File) => string | undefined | Promise<string | undefined>;
|
|
21
|
+
uploadValidation?: (file: File) => string | undefined | Promise<string | undefined>;
|
|
12
22
|
};
|
|
13
23
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
24
|
"update:value": (value: string | string[] | undefined) => any;
|
|
@@ -13,6 +13,8 @@ type __VLS_Props = {
|
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
disabledOf?: (fieldName: string, field: RecordFormFieldState) => boolean;
|
|
15
15
|
placeholderOf?: (fieldName: string, field: RecordFormFieldState) => string | undefined;
|
|
16
|
+
imageUploadHintOf?: (fieldName: string, field: RecordFormFieldState) => string | undefined;
|
|
17
|
+
imageUploadAdvisoryOf?: (fieldName: string, field: RecordFormFieldState) => ((file: File) => string | undefined | Promise<string | undefined>) | undefined;
|
|
16
18
|
};
|
|
17
19
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
20
|
"update:field": (fieldName: string, value: RecordFormFieldValue) => any;
|
|
@@ -22,14 +24,16 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
22
24
|
disabled: boolean;
|
|
23
25
|
fieldNames: string[];
|
|
24
26
|
fields: Map<string, RecordFormFieldDescriptor>;
|
|
27
|
+
formSessionKey: string | number;
|
|
25
28
|
excludeFieldNames: string[];
|
|
26
29
|
fallback: Record<string, RecordFormFieldFallback>;
|
|
27
30
|
pickerConfigs: Record<string, RecordFormFieldPickerConfig>;
|
|
28
|
-
formSessionKey: string | number;
|
|
29
31
|
optionContext: ModuleContext<unknown>;
|
|
30
32
|
fileTransferContext: ModuleContext<unknown>;
|
|
31
33
|
disabledOf: (fieldName: string, field: RecordFormFieldState) => boolean;
|
|
32
34
|
placeholderOf: (fieldName: string, field: RecordFormFieldState) => string | undefined;
|
|
35
|
+
imageUploadHintOf: (fieldName: string, field: RecordFormFieldState) => string | undefined;
|
|
36
|
+
imageUploadAdvisoryOf: (fieldName: string, field: RecordFormFieldState) => ((file: File) => string | undefined | Promise<string | undefined>) | undefined;
|
|
33
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
38
|
declare const _default: typeof __VLS_export;
|
|
35
39
|
export default _default;
|
|
@@ -31,6 +31,9 @@ type __VLS_Props = {
|
|
|
31
31
|
};
|
|
32
32
|
type __VLS_Slots = {
|
|
33
33
|
status(): unknown;
|
|
34
|
+
'title-prefix'(): unknown;
|
|
35
|
+
'title-actions'(): unknown;
|
|
36
|
+
'header-actions'(): unknown;
|
|
34
37
|
loading(): unknown;
|
|
35
38
|
error(): unknown;
|
|
36
39
|
externalChangeNotice(): unknown;
|
|
@@ -56,9 +59,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
56
59
|
onDismissExternalChange?: (() => any) | undefined;
|
|
57
60
|
}>, {
|
|
58
61
|
scope: UiSidePanelScope;
|
|
62
|
+
width: number | string;
|
|
59
63
|
loading: boolean;
|
|
60
64
|
subtitle: string;
|
|
61
|
-
width: number | string;
|
|
62
65
|
closeOnOutside: boolean;
|
|
63
66
|
closeTitle: string;
|
|
64
67
|
promotion: DrawerPromotion;
|
|
@@ -18,11 +18,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
18
18
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
19
|
"onUpdate:value"?: ((value: string[]) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
|
+
mode: "list" | "tree";
|
|
21
22
|
disabled: boolean;
|
|
22
23
|
value: string[];
|
|
23
24
|
placeholder: string;
|
|
24
25
|
allowClear: boolean;
|
|
25
|
-
mode: "list" | "tree";
|
|
26
26
|
filterOption: (record: RecordPickerRecord, keyword: string) => boolean;
|
|
27
27
|
titleOf: (record: RecordPickerRecord) => string;
|
|
28
28
|
reloadKey: number;
|
|
@@ -5,6 +5,7 @@ type __VLS_Props = {
|
|
|
5
5
|
loading?: boolean;
|
|
6
6
|
danger?: boolean;
|
|
7
7
|
title?: string;
|
|
8
|
+
ariaLabel?: string;
|
|
8
9
|
iconName?: UiIconName;
|
|
9
10
|
};
|
|
10
11
|
declare var __VLS_10: {};
|
|
@@ -21,6 +22,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
21
22
|
danger: boolean;
|
|
22
23
|
disabled: boolean;
|
|
23
24
|
loading: boolean;
|
|
25
|
+
ariaLabel: string;
|
|
24
26
|
iconName: UiIconName;
|
|
25
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -20,11 +20,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
20
20
|
onSelect?: ((record: RecordPickerRecord | undefined) => any) | undefined;
|
|
21
21
|
"onUpdate:value"?: ((value: string | undefined) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
|
+
mode: "list" | "tree";
|
|
23
24
|
disabled: boolean;
|
|
24
25
|
value: string;
|
|
25
26
|
placeholder: string;
|
|
26
27
|
allowClear: boolean;
|
|
27
|
-
mode: "list" | "tree";
|
|
28
28
|
filterOption: (record: RecordPickerRecord, keyword: string) => boolean;
|
|
29
29
|
titleOf: (record: RecordPickerRecord) => string;
|
|
30
30
|
reloadKey: number;
|
|
@@ -7,6 +7,7 @@ export type QueryListRecord = Record<string, unknown> & {
|
|
|
7
7
|
enabled?: boolean;
|
|
8
8
|
};
|
|
9
9
|
export type RecordQueryListMode = 'normal' | 'recycleBin';
|
|
10
|
+
export type StandardCrudRowActionKey = 'view' | 'edit' | 'delete';
|
|
10
11
|
export interface RecordQueryListColumn {
|
|
11
12
|
key: string;
|
|
12
13
|
title: string;
|
|
@@ -39,6 +40,10 @@ type __VLS_Props = {
|
|
|
39
40
|
batchActions?: RecordActionItem[];
|
|
40
41
|
standardCrudActions?: boolean;
|
|
41
42
|
standardCrudRowActions?: boolean;
|
|
43
|
+
/** Limits built-in row operations without replacing the platform list interaction. */
|
|
44
|
+
standardCrudRowActionKeys?: StandardCrudRowActionKey[];
|
|
45
|
+
/** Optional authorization-code overrides for platform built-in row operations. */
|
|
46
|
+
standardCrudRowActionCodes?: Partial<Record<StandardCrudRowActionKey, string>>;
|
|
42
47
|
rowActionsOf?: (record: QueryListRecord) => RecordActionItem[];
|
|
43
48
|
extraRowActionsOf?: (record: QueryListRecord) => RecordActionItem[];
|
|
44
49
|
rowActionStateOf?: (record: QueryListRecord, action: RecordActionItem) => Partial<RecordActionItem> | undefined;
|
|
@@ -105,8 +110,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
105
110
|
onRowAction?: ((action: ResolvedRecordActionItem, record: QueryListRecord, event?: MouseEvent | undefined) => any) | undefined;
|
|
106
111
|
onModeChange?: ((mode: RecordQueryListMode) => any) | undefined;
|
|
107
112
|
}>, {
|
|
108
|
-
actions: RecordActionItem[];
|
|
109
113
|
mode: RecordQueryListMode;
|
|
114
|
+
actions: RecordActionItem[];
|
|
110
115
|
selectedKey: string;
|
|
111
116
|
columns: RecordQueryListColumn[];
|
|
112
117
|
rowKey: string;
|
|
@@ -117,6 +122,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
117
122
|
uiConfigId: string;
|
|
118
123
|
queryTemplateId: string;
|
|
119
124
|
reloadKey: number;
|
|
125
|
+
externalQueryValues: Record<string, unknown>;
|
|
120
126
|
ready: boolean;
|
|
121
127
|
refreshTitle: string;
|
|
122
128
|
additionalColumns: Array<RecordQueryListColumn & {
|
|
@@ -128,12 +134,13 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
128
134
|
batchActions: RecordActionItem[];
|
|
129
135
|
standardCrudActions: boolean;
|
|
130
136
|
standardCrudRowActions: boolean;
|
|
137
|
+
standardCrudRowActionKeys: StandardCrudRowActionKey[];
|
|
138
|
+
standardCrudRowActionCodes: Partial<Record<StandardCrudRowActionKey, string>>;
|
|
131
139
|
rowActionsOf: (record: QueryListRecord) => RecordActionItem[];
|
|
132
140
|
extraRowActionsOf: (record: QueryListRecord) => RecordActionItem[];
|
|
133
141
|
rowActionStateOf: (record: QueryListRecord, action: RecordActionItem) => Partial<RecordActionItem> | undefined;
|
|
134
142
|
rowActionsTitle: string;
|
|
135
143
|
cellRenderers: Record<string, (record: QueryListRecord) => string>;
|
|
136
|
-
externalQueryValues: Record<string, unknown>;
|
|
137
144
|
requiredExternalCriteriaKeys: string[];
|
|
138
145
|
quickSearchPlaceholder: string;
|
|
139
146
|
waitingDescription: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
enabled?: boolean;
|
|
3
3
|
disabled?: boolean;
|
|
4
|
+
/** Explains why this otherwise visible status control is unavailable. */
|
|
5
|
+
disabledReason?: string;
|
|
4
6
|
loading?: boolean;
|
|
5
7
|
showLabel?: boolean;
|
|
6
8
|
};
|
|
@@ -12,6 +14,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
12
14
|
enabled: boolean;
|
|
13
15
|
disabled: boolean;
|
|
14
16
|
loading: boolean;
|
|
17
|
+
disabledReason: string;
|
|
15
18
|
showLabel: boolean;
|
|
16
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
20
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ModuleContext } from '../web-core/index';
|
|
2
|
+
import type { ResolvedFileReferenceFieldDescriptor } from '../web-contracts/index';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
label: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
value: unknown;
|
|
7
|
+
record: Record<string, unknown>;
|
|
8
|
+
context: ModuleContext<unknown>;
|
|
9
|
+
definition: ResolvedFileReferenceFieldDescriptor;
|
|
10
|
+
uploadHint?: string;
|
|
11
|
+
uploadAdvisory?: (file: File) => string | undefined | Promise<string | undefined>;
|
|
12
|
+
uploadValidation?: (file: File) => string | undefined | Promise<string | undefined>;
|
|
13
|
+
formSessionKey?: string | number;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
disabledHint?: string;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
"update:value": (value: string | undefined) => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
"onUpdate:value"?: ((value: string | undefined) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
@@ -7,20 +7,25 @@ type __VLS_Props = {
|
|
|
7
7
|
explorerSearchKeyword?: string;
|
|
8
8
|
explorerSearchPlaceholder?: string;
|
|
9
9
|
explorerSearchable?: boolean;
|
|
10
|
+
navigatorCount?: number;
|
|
10
11
|
};
|
|
11
|
-
declare var
|
|
12
|
+
declare var __VLS_14: {
|
|
13
|
+
index: number;
|
|
14
|
+
}, __VLS_32: {}, __VLS_34: {}, __VLS_37: {}, __VLS_46: {}, __VLS_49: {}, __VLS_51: {};
|
|
12
15
|
type __VLS_Slots = {} & {
|
|
13
|
-
|
|
16
|
+
navigator?: (props: typeof __VLS_14) => any;
|
|
14
17
|
} & {
|
|
15
|
-
explorer?: (props: typeof
|
|
18
|
+
'explorer-actions'?: (props: typeof __VLS_32) => any;
|
|
16
19
|
} & {
|
|
17
|
-
|
|
20
|
+
explorer?: (props: typeof __VLS_34) => any;
|
|
18
21
|
} & {
|
|
19
|
-
'
|
|
22
|
+
'explorer-footer'?: (props: typeof __VLS_37) => any;
|
|
20
23
|
} & {
|
|
21
|
-
'detail-
|
|
24
|
+
'detail-status'?: (props: typeof __VLS_46) => any;
|
|
22
25
|
} & {
|
|
23
|
-
|
|
26
|
+
'detail-actions'?: (props: typeof __VLS_49) => any;
|
|
27
|
+
} & {
|
|
28
|
+
default?: (props: typeof __VLS_51) => any;
|
|
24
29
|
};
|
|
25
30
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
31
|
refresh: () => any;
|
|
@@ -33,6 +38,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
33
38
|
explorerSearchKeyword: string;
|
|
34
39
|
explorerSearchPlaceholder: string;
|
|
35
40
|
explorerSearchable: boolean;
|
|
41
|
+
navigatorCount: number;
|
|
36
42
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
43
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
38
44
|
declare const _default: typeof __VLS_export;
|
|
@@ -7,6 +7,8 @@ type __VLS_Props = {
|
|
|
7
7
|
context: ModuleContext<TreeRecordBase>;
|
|
8
8
|
selectedId?: string;
|
|
9
9
|
reloadKey?: number;
|
|
10
|
+
/** Descriptor-owned criteria from upstream navigator levels. */
|
|
11
|
+
externalQueryValues?: Record<string, unknown>;
|
|
10
12
|
keyword?: string;
|
|
11
13
|
searchMode?: TreeRecordSearchMode;
|
|
12
14
|
searchTrigger?: 'inline' | 'external';
|
|
@@ -47,6 +49,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
47
49
|
tagOf: (record: TreeRecordBase) => string | undefined;
|
|
48
50
|
mutedOf: (record: TreeRecordBase) => boolean;
|
|
49
51
|
reloadKey: number;
|
|
52
|
+
externalQueryValues: Record<string, unknown>;
|
|
50
53
|
loadingTip: string;
|
|
51
54
|
fallbackTitle: string;
|
|
52
55
|
searchMode: TreeRecordSearchMode;
|
|
@@ -3,6 +3,14 @@ import type { ResolvedFileReferenceFieldDescriptor } from '../web-contracts/inde
|
|
|
3
3
|
import type { FileTransferUploadAccess } from './fileTransferUpload';
|
|
4
4
|
/** Issues the module-owned short-lived upload ticket for a declared file-reference field. */
|
|
5
5
|
export declare function issueFileReferenceUploadAccess(http: HttpClient, moduleAlias: string, definition: ResolvedFileReferenceFieldDescriptor, draft: Record<string, unknown>, file: File, intent: FileReferenceUploadIntent): Promise<FileTransferUploadAccess>;
|
|
6
|
+
/** Uploads one DATABASE_INLINE field through the same authenticated platform HTTP client. */
|
|
7
|
+
export declare function uploadInlineFileReference(http: HttpClient, moduleAlias: string, definition: ResolvedFileReferenceFieldDescriptor, draft: Record<string, unknown>, file: File, intent: FileReferenceUploadIntent): Promise<{
|
|
8
|
+
file: File;
|
|
9
|
+
payload: unknown;
|
|
10
|
+
response: unknown;
|
|
11
|
+
}>;
|
|
12
|
+
/** Resolves a policy-authorized preview or download target without coupling a field to either storage provider. */
|
|
13
|
+
export declare function issueFileReferenceAccess(http: HttpClient, moduleAlias: string, definition: ResolvedFileReferenceFieldDescriptor, draft: Record<string, unknown>, fileId: string, operation: 'preview' | 'download'): Promise<string>;
|
|
6
14
|
/** A policy-visible upload fact, derived from the field cardinality and its current binding. */
|
|
7
15
|
export type FileReferenceUploadIntent = 'CREATE' | 'APPEND' | 'REPLACE';
|
|
8
16
|
export declare function fileReferenceUploadIntent(value: unknown, definition: ResolvedFileReferenceFieldDescriptor): FileReferenceUploadIntent;
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
export {};
|
|
2
2
|
export { default as ApplicationScopeSwitcher } from './ApplicationScopeSwitcher.vue';
|
|
3
|
+
export { default as BusinessNotificationPanel } from './BusinessNotificationPanel.vue';
|
|
3
4
|
export { confirmAction } from '../vue-ui-antdv/index';
|
|
4
5
|
export { default as CrudRecordListExplorer } from './CrudRecordListExplorer.vue';
|
|
5
6
|
export { default as DrawerOperationBar } from './DrawerOperationBar.vue';
|
|
6
7
|
export { default as DateTimeText } from './DateTimeText.vue';
|
|
7
8
|
export { default as FileSizeText } from './FileSizeText.vue';
|
|
8
9
|
export { default as FileTransferUploader } from './FileTransferUploader.vue';
|
|
10
|
+
export { default as SingleImageFileReferenceField } from './SingleImageFileReferenceField.vue';
|
|
9
11
|
export { createBrowserFileTransferUpload, unwrapResponsePayload } from './fileTransferUpload';
|
|
10
12
|
export type { FileTransferUploadAccess, FileTransferUploadReceipt, FileTransferUploadTask, } from './fileTransferUpload';
|
|
11
13
|
export { default as EnabledSelect } from './EnabledSelect.vue';
|
|
12
14
|
export { default as ModuleActionButton } from './ModuleActionButton.vue';
|
|
13
15
|
export { default as ManagementWorkspace } from './ManagementWorkspace.vue';
|
|
14
16
|
export { default as ManagementExplorerColumn } from './ManagementExplorerColumn.vue';
|
|
17
|
+
export { MANAGEMENT_WORKSPACE_LAYOUT, listDetailWorkspaceMinWidth } from './managementWorkspaceLayout';
|
|
15
18
|
export { providePageLayout, usePageLayout } from './pageLayoutContext';
|
|
16
19
|
export { default as RecordActionBar } from './RecordActionBar.vue';
|
|
17
20
|
export { default as RecordDetailDrawer } from './RecordDetailDrawer.vue';
|
|
@@ -55,7 +58,7 @@ export type { RecordPickerMode } from './recordPickerModel';
|
|
|
55
58
|
export type { RecordActionItem, ResolvedRecordActionItem } from './recordActionBarModel';
|
|
56
59
|
export type { RecordDetailDisplayResolver, RecordDetailDisplayValue } from './recordDetailFieldModel';
|
|
57
60
|
export type { RecordListExplorerRecord } from './RecordListExplorer.vue';
|
|
58
|
-
export type { QueryListRecord, RecordQueryListCellComponent, RecordQueryListColumn, RecordQueryListMode, } from './RecordQueryListPanel.vue';
|
|
61
|
+
export type { QueryListRecord, RecordQueryListCellComponent, RecordQueryListColumn, RecordQueryListMode, StandardCrudRowActionKey, } from './RecordQueryListPanel.vue';
|
|
59
62
|
export type { RecordFormFieldDescriptor, RecordFormFieldFallback, RecordFormFieldPickerConfig, RecordFormFieldState, RecordFormFieldValue, RecordFormRecord, } from './recordFormFieldModel';
|
|
60
63
|
export type { CrudRecordListBase } from './crudRecordListModel';
|
|
61
64
|
export { defaultCrudRecordListMatches, defaultCrudRecordListSubtitle, defaultCrudRecordListTitle, } from './crudRecordListModel';
|
|
@@ -69,7 +72,7 @@ export type { PlatformFileSizeDisplay, PlatformFileSizeOptions } from './platfor
|
|
|
69
72
|
export { providePlatformTimeZoneContext, usePlatformTimeZoneContext } from './platformTimeZoneContext';
|
|
70
73
|
export type { PlatformDateTimeDisplay, PlatformDateTimeOptions, PlatformDateTimePrecision, } from './platformDateTime';
|
|
71
74
|
export { childResourceDefaultFormViewCode, resolveRecordFormFieldNames, resolveRecordFormFieldState, resolveRecordFormFields, } from './recordFormFieldModel';
|
|
72
|
-
export { createScopedTreeClient, createScopedTreeModuleContext } from './scopedTreeModuleContext';
|
|
75
|
+
export { createQueryScopedTreeModuleContext, createScopedTreeClient, createScopedTreeModuleContext, } from './scopedTreeModuleContext';
|
|
73
76
|
export { createEmptyStaticTreeClient, createStaticTreeResourceModuleContext, } from './staticTreeResourceModuleContext';
|
|
74
77
|
export { createScopedResourceTreeModuleContext } from './scopedResourceTreeModuleContext';
|
|
75
78
|
export { presentPlatformError, presentPlatformMessage, presentPlatformSuccess, } from './platformErrorFeedback';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared geometry for the platform management workspace.
|
|
3
|
+
*
|
|
4
|
+
* Keep responsive promotion independent from each page's DSL: descriptors say
|
|
5
|
+
* whether a page has a detail surface; the runtime decides whether that surface
|
|
6
|
+
* can share the available workspace with its list and navigators.
|
|
7
|
+
*/
|
|
8
|
+
export declare const MANAGEMENT_WORKSPACE_LAYOUT: {
|
|
9
|
+
readonly explorerWidth: 280;
|
|
10
|
+
readonly listMinWidth: 720;
|
|
11
|
+
readonly detailMinWidth: 560;
|
|
12
|
+
readonly columnGap: 12;
|
|
13
|
+
};
|
|
14
|
+
export declare function listDetailWorkspaceMinWidth(explorerCount: number): number;
|
|
@@ -7,6 +7,8 @@ export interface PlatformErrorFeedbackContext {
|
|
|
7
7
|
export declare function presentPlatformError(cause: unknown, context?: PlatformErrorFeedbackContext): AppError;
|
|
8
8
|
export declare function presentPlatformMessage(message: string, context?: PlatformErrorFeedbackContext): void;
|
|
9
9
|
export declare function presentPlatformSuccess(message: string, context?: PlatformErrorFeedbackContext): void;
|
|
10
|
+
/** Presents a non-blocking recommendation without changing the requested action. */
|
|
11
|
+
export declare function presentPlatformWarning(message: string): void;
|
|
10
12
|
/** Presents a non-blocking progress update without treating it as an action result. */
|
|
11
13
|
export declare function presentPlatformInfo(message: string): void;
|
|
12
14
|
export type PlatformActionErrorHandler<TContext> = {
|
|
@@ -10,10 +10,16 @@ export interface RecordActionItem {
|
|
|
10
10
|
/** Keep the row action visible beside the default row action instead of placing it in “more”. */
|
|
11
11
|
pinned?: boolean;
|
|
12
12
|
disabled?: boolean;
|
|
13
|
+
/** Explains why an otherwise visible action cannot be used. */
|
|
14
|
+
disabledReason?: string;
|
|
13
15
|
loading?: boolean;
|
|
14
16
|
primary?: boolean;
|
|
15
17
|
danger?: boolean;
|
|
16
18
|
iconName?: UiIconName;
|
|
19
|
+
/** Runtime-only authorization source for actions rendered outside their owning module surface. */
|
|
20
|
+
authorizationContext?: ModuleContext<unknown>;
|
|
21
|
+
/** Runtime-only record ID used with authorizationContext. */
|
|
22
|
+
authorizationRecordId?: string;
|
|
17
23
|
}
|
|
18
24
|
export interface ResolvedRecordActionItem extends RecordActionItem {
|
|
19
25
|
key: string;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import type { Option, OptionValueList, ResolvedReferenceFieldDescriptor, BooleanStatusPresentation, ResolvedOptionFieldDescriptor, ResolvedFileReferenceFieldDescriptor, ResolvedModuleUiDescriptor, ResolvedViewFieldDescriptor, FieldValuePresentation, UiFormula, ViewFieldDefinition } from '../web-contracts/index';
|
|
1
|
+
import type { Option, OptionValueList, ResolvedReferenceFieldDescriptor, BooleanStatusPresentation, ResolvedOptionFieldDescriptor, ResolvedFileReferenceFieldDescriptor, ResolvedModuleUiDescriptor, ResolvedViewFieldDescriptor, FieldValuePresentation, FormGroupDescriptor, UiFormula, ViewFieldDefinition } from '../web-contracts/index';
|
|
2
2
|
import type { ModuleContext } from '../web-core/index';
|
|
3
3
|
import type { PickerConstraint, RecordPickerRecord } from './recordPickerConstraints';
|
|
4
4
|
export type RecordFormFieldDescriptor = (ViewFieldDefinition | ResolvedViewFieldDescriptor) & {
|
|
5
5
|
option?: ResolvedOptionFieldDescriptor;
|
|
6
6
|
reference?: ResolvedReferenceFieldDescriptor;
|
|
7
7
|
fileReference?: ResolvedFileReferenceFieldDescriptor;
|
|
8
|
+
formGroup?: FormGroupDescriptor;
|
|
8
9
|
};
|
|
9
10
|
export type RecordFormRecord = Record<string, unknown>;
|
|
10
11
|
export type RecordFormFieldValue = string | number | boolean | OptionValueList | string[] | undefined;
|
|
11
12
|
/** A business boolean does not inherit the lifecycle field's implicit enabled default. */
|
|
12
13
|
export type RecordBooleanStatusValue = boolean | undefined;
|
|
13
|
-
export type RecordFormFieldControlType = 'input' | 'textarea' | 'colorPicker' | 'select' | 'enabledStatus' | 'booleanStatus' | 'switch' | 'recordPicker' | 'recordMultiPicker' | 'fileTransfer';
|
|
14
|
+
export type RecordFormFieldControlType = 'input' | 'textarea' | 'colorPicker' | 'select' | 'enabledStatus' | 'booleanStatus' | 'switch' | 'recordPicker' | 'recordMultiPicker' | 'fileTransfer' | 'imageFileTransfer';
|
|
14
15
|
export interface RecordFormFieldFallback {
|
|
15
16
|
label: string;
|
|
16
17
|
required?: boolean;
|
|
@@ -52,13 +53,15 @@ export interface RecordFormFieldState {
|
|
|
52
53
|
disabledHint?: string;
|
|
53
54
|
placeholder?: string;
|
|
54
55
|
options?: Option[];
|
|
56
|
+
formGroup?: FormGroupDescriptor;
|
|
55
57
|
}
|
|
56
58
|
export interface ResolveRecordFormFieldNamesOptions {
|
|
57
59
|
explicitOrder?: string[];
|
|
58
60
|
exclude?: Iterable<string>;
|
|
59
61
|
}
|
|
60
62
|
export declare function resolveRecordFormFieldNames(fields?: Map<string, RecordFormFieldDescriptor>, fallback?: Record<string, RecordFormFieldFallback>, options?: ResolveRecordFormFieldNamesOptions): string[];
|
|
61
|
-
export declare function resolveRecordFormFields(uiDescriptor: ResolvedModuleUiDescriptor | undefined,
|
|
63
|
+
export declare function resolveRecordFormFields(uiDescriptor: ResolvedModuleUiDescriptor | undefined, resource?: string, editorSurface?: string): Map<string, RecordFormFieldDescriptor>;
|
|
64
|
+
export declare function resolveRecordFormGroups(uiDescriptor: ResolvedModuleUiDescriptor | undefined, resource?: string, editorSurface?: string): FormGroupDescriptor[];
|
|
62
65
|
export declare function childResourceDefaultFormViewCode(resource: string): string;
|
|
63
66
|
export declare function resolveRecordFormFieldState(fieldName: string, options?: {
|
|
64
67
|
fields?: Map<string, RecordFormFieldDescriptor>;
|
|
@@ -7,6 +7,8 @@ export interface RecycleBinStateOptions<TRecord> {
|
|
|
7
7
|
/** 外部刷新信号,变化时重新加载列表 */
|
|
8
8
|
reloadKey?: Ref<number>;
|
|
9
9
|
}
|
|
10
|
+
/** Turns lifecycle facts from the platform into concise operator-facing guidance. */
|
|
11
|
+
export declare function recycleBinRestoreUnavailableReason(item: RecycleBinItem<unknown>): string | undefined;
|
|
10
12
|
export declare function useRecycleBinState<TRecord>(options: RecycleBinStateOptions<TRecord>): {
|
|
11
13
|
items: Ref<{
|
|
12
14
|
record: import("vue").UnwrapRef<TRecord>;
|