@ximatai/muyun-web-app 0.26.5 → 0.26.7
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-rm9ujeiQ.js → EmployeeDetailWorkspaceView-DYJLlkSz.js} +1 -1
- package/dist/EmployeeManagementView-taxWUa7g.js +1778 -0
- package/dist/{MetadataOrchestrationView-DaPNQML7.js → MetadataOrchestrationView-B-CPudJl.js} +151 -151
- package/dist/ModuleActionManagementView-CmVj0e0C.js +597 -0
- package/dist/{RoleAuthorizationView-qQvn7M75.js → RoleAuthorizationView-q_6CsBYq.js} +194 -194
- package/dist/{RoleDetailWorkspaceView-C-vaKeZM.js → RoleDetailWorkspaceView-DmJlJgAj.js} +1 -1
- package/dist/{RoleManagementView-C3nxfub2.js → RoleManagementView-HCa9rH0f.js} +466 -466
- package/dist/{SystemUserDetailWorkspaceView-FIbfff00.js → SystemUserDetailWorkspaceView-U6Ij0US1.js} +1 -1
- package/dist/SystemUserManagementView-C1CkKivH.js +758 -0
- package/dist/{UserDetailWorkspaceView-M--ndn6x.js → UserDetailWorkspaceView-OPYvD6mH.js} +1 -1
- package/dist/{UserManagementView-MSXf4fno.js → UserManagementView-gbCL9SnC.js} +226 -226
- package/dist/index.css +1 -1
- package/dist/index.js +3309 -2288
- package/dist/pageRealtime-CzJlr9hs.js +225 -0
- package/dist/{platform-components-_3KlZZf5.js → platform-components-DKKWbNrz.js} +4196 -1790
- 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/workbenchRouteSync.d.ts +13 -0
- package/dist/types/app/workbenchStartup.d.ts +14 -1
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +43 -0
- package/dist/types/consumer/index.d.ts +24 -1
- package/dist/types/consumer/userPreferencePersistence.d.ts +7 -0
- package/dist/types/consumer/workbenchNavigation.d.ts +8 -0
- package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +8 -1
- package/dist/types/dynamic-page-runtime/index.d.ts +5 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +144 -0
- package/dist/types/dynamic-page-runtime/modulePageListRefresh.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/modulePageNavigation.d.ts +11 -0
- package/dist/types/platform-admin-runtime/PlatformAdminOutlet.vue.d.ts +1 -0
- package/dist/types/platform-admin-runtime/backendHttp.d.ts +1 -1
- package/dist/types/platform-admin-runtime/index.d.ts +3 -0
- package/dist/types/platform-admin-runtime/realtime.d.ts +9 -5
- package/dist/types/platform-admin-runtime/workspaceViewContract.d.ts +1 -36
- package/dist/types/platform-admin-runtime/workspaceViewHost.d.ts +2 -10
- package/dist/types/platform-admin-runtime/workspaceViews.d.ts +1 -17
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/DateTimeText.vue.d.ts +1 -1
- package/dist/types/platform-components/FileSizeText.vue.d.ts +10 -0
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +70 -0
- package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +30 -0
- package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +16 -0
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +8 -6
- package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +5 -5
- package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +6 -6
- package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +29 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +8 -0
- package/dist/types/platform-components/RecordListExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +1 -0
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +33 -0
- package/dist/types/platform-components/RecordPanelButton.vue.d.ts +33 -0
- package/dist/types/platform-components/RecordPanelState.vue.d.ts +11 -0
- package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +47 -2
- package/dist/types/platform-components/RecordStatusTag.vue.d.ts +6 -1
- package/dist/types/platform-components/RecordTagList.vue.d.ts +7 -0
- package/dist/types/platform-components/SingleImageFileReferenceField.vue.d.ts +23 -0
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/fileReferenceTransfer.d.ts +25 -0
- package/dist/types/platform-components/fileTransferUpload.d.ts +43 -0
- package/dist/types/platform-components/index.d.ts +15 -1
- package/dist/types/platform-components/platformErrorFeedback.d.ts +4 -0
- package/dist/types/platform-components/platformFileSize.d.ts +10 -0
- package/dist/types/platform-components/recordActionBarModel.d.ts +12 -1
- package/dist/types/platform-components/recordFormFieldModel.d.ts +24 -3
- package/dist/types/platform-components/scopedTreeModuleContext.d.ts +1 -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 +41 -0
- package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +39 -1
- package/dist/types/platform-workbench/WorkbenchMenuTree.vue.d.ts +2 -0
- package/dist/types/platform-workbench/WorkbenchSidebarMenuEntry.vue.d.ts +19 -0
- package/dist/types/platform-workbench/WorkspaceViewOutlet.vue.d.ts +7 -0
- package/dist/types/platform-workbench/index.d.ts +7 -0
- package/dist/types/platform-workbench/menuHoverClickIntent.d.ts +10 -0
- package/dist/types/platform-workbench/menuPointerAim.d.ts +11 -0
- package/dist/types/platform-workbench/workbenchLayout.d.ts +4 -0
- package/dist/types/platform-workbench/workspaceViewContract.d.ts +20 -0
- package/dist/types/platform-workbench/workspaceViewHost.d.ts +8 -0
- package/dist/types/platform-workbench/workspaceViews.d.ts +21 -0
- package/dist/types/views/applicationManagementState.d.ts +1 -1
- package/dist/types/views/employeeDetailWorkspaceView.d.ts +1 -1
- package/dist/types/views/fieldSpecManagementState.d.ts +1 -1
- package/dist/types/views/fieldUiControlManagementState.d.ts +1 -1
- package/dist/types/views/metadataOrchestrationWorkspaceView.d.ts +1 -1
- package/dist/types/views/moduleActionManagementWorkspaceView.d.ts +1 -1
- package/dist/types/views/roleAuthorizationWorkspaceView.d.ts +1 -1
- package/dist/types/views/roleDetailWorkspaceView.d.ts +1 -1
- package/dist/types/views/systemUserDetailWorkspaceView.d.ts +1 -1
- package/dist/types/views/tenantManagementState.d.ts +11 -1
- package/dist/types/views/userDetailWorkspaceView.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiColorPicker.vue.d.ts +14 -0
- 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/UiRecordExplorerItem.vue.d.ts +3 -3
- 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/UiTagList.vue.d.ts +17 -0
- package/dist/types/vue-ui-antdv/components/UiThemeProvider.vue.d.ts +21 -0
- package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +3 -3
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/index.d.ts +6 -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 +4 -9
- package/dist/types/web-contracts/index.d.ts +168 -0
- package/dist/types/web-core/clients.d.ts +14 -1
- package/dist/types/web-core/http.d.ts +12 -1
- package/dist/types/web-core/index.d.ts +2 -0
- package/dist/types/web-core/mock.d.ts +3 -1
- package/dist/types/web-core/module/staticModuleClient.d.ts +1 -0
- package/dist/types/web-core/userPreferences.d.ts +24 -0
- package/dist/{useUserSessionRows-iAqK_cUy.js → useUserSessionRows-CBHEzRFQ.js} +2 -2
- package/dist/workspaceViewSessions-DkB9myrq.js +3252 -0
- package/package.json +1 -1
- package/dist/EmployeeManagementView-DyYMWQ64.js +0 -1706
- package/dist/ModuleActionManagementView-BFoPGqzC.js +0 -597
- package/dist/SystemUserManagementView-m6vwJDxI.js +0 -761
- package/dist/pageRealtime-4LXXvVW7.js +0 -140
- package/dist/workspaceViewSessions-DW0wbyQ_.js +0 -1448
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { type FileTransferUploadAccess, type FileTransferUploadReceipt } from './fileTransferUpload';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Business API callback: authorize this exact file and return a short-lived upload target. */
|
|
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>;
|
|
7
|
+
/** Optional business callback after upload. Standard file-reference fields leave this undefined. */
|
|
8
|
+
confirmUpload?: (receipt: FileTransferUploadReceipt) => Promise<unknown>;
|
|
9
|
+
accept?: string;
|
|
10
|
+
allowedMediaTypes?: string[];
|
|
11
|
+
maxFileSizeBytes?: number;
|
|
12
|
+
multiple?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
maxFiles?: number;
|
|
15
|
+
/** Files already bound by the surrounding record and therefore occupying this field's capacity. */
|
|
16
|
+
existingFileCount?: number;
|
|
17
|
+
autoUpload?: boolean;
|
|
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>;
|
|
26
|
+
disabledHint?: string;
|
|
27
|
+
/** Persistent guidance displayed in the dropzone before a file is selected. */
|
|
28
|
+
dropzoneHint?: string;
|
|
29
|
+
completionHint?: string;
|
|
30
|
+
/** Completed items may be retained when the surrounding form owns deletion semantics. */
|
|
31
|
+
allowCompletedRemoval?: boolean;
|
|
32
|
+
/** Browser-owned uploaded files removed from an unsaved enclosing form. */
|
|
33
|
+
releasedCompletedFileIds?: readonly string[];
|
|
34
|
+
completedFileId?: (receipt: FileTransferUploadReceipt) => string | undefined;
|
|
35
|
+
};
|
|
36
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
|
+
failed: (file: File, error: unknown) => any;
|
|
38
|
+
completed: (receipt: FileTransferUploadReceipt, result: unknown) => any;
|
|
39
|
+
changed: (files: readonly File[]) => any;
|
|
40
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
41
|
+
onFailed?: ((file: File, error: unknown) => any) | undefined;
|
|
42
|
+
onCompleted?: ((receipt: FileTransferUploadReceipt, result: unknown) => any) | undefined;
|
|
43
|
+
onChanged?: ((files: readonly File[]) => any) | undefined;
|
|
44
|
+
}>, {
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
multiple: boolean;
|
|
47
|
+
presentation: "dropzone" | "button";
|
|
48
|
+
requestUploadAccess: (file: File) => Promise<FileTransferUploadAccess>;
|
|
49
|
+
uploadFile: (file: File) => Promise<FileTransferUploadReceipt>;
|
|
50
|
+
confirmUpload: (receipt: FileTransferUploadReceipt) => Promise<unknown>;
|
|
51
|
+
accept: string;
|
|
52
|
+
allowedMediaTypes: string[];
|
|
53
|
+
maxFileSizeBytes: number;
|
|
54
|
+
maxFiles: number;
|
|
55
|
+
existingFileCount: number;
|
|
56
|
+
autoUpload: boolean;
|
|
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>;
|
|
62
|
+
disabledHint: string;
|
|
63
|
+
dropzoneHint: string;
|
|
64
|
+
completionHint: string;
|
|
65
|
+
allowCompletedRemoval: boolean;
|
|
66
|
+
releasedCompletedFileIds: readonly string[];
|
|
67
|
+
completedFileId: (receipt: FileTransferUploadReceipt) => string | undefined;
|
|
68
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
69
|
+
declare const _default: typeof __VLS_export;
|
|
70
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
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_9: {}, __VLS_11: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
status?: (props: typeof __VLS_9) => any;
|
|
11
|
+
} & {
|
|
12
|
+
actions?: (props: typeof __VLS_11) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
titleAction: () => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
onTitleAction?: (() => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
subtitle: string;
|
|
20
|
+
titleActionIcon: UiIconName;
|
|
21
|
+
titleActionTitle: string;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: 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>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -11,9 +11,9 @@ type __VLS_Props = {
|
|
|
11
11
|
emptyText?: string;
|
|
12
12
|
};
|
|
13
13
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
|
+
emptyText: string;
|
|
14
15
|
fieldNames: string[];
|
|
15
16
|
fields: Map<string, RecordFormFieldDescriptor>;
|
|
16
|
-
emptyText: string;
|
|
17
17
|
excludeFieldNames: string[];
|
|
18
18
|
fallback: Record<string, RecordFormFieldFallback>;
|
|
19
19
|
pickerConfigs: Record<string, RecordFormFieldPickerConfig>;
|
|
@@ -8,19 +8,21 @@ 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_19: {};
|
|
12
12
|
type __VLS_Slots = {} & {
|
|
13
|
-
|
|
13
|
+
header?: (props: typeof __VLS_1) => any;
|
|
14
14
|
} & {
|
|
15
|
-
|
|
15
|
+
status?: (props: typeof __VLS_3) => any;
|
|
16
16
|
} & {
|
|
17
|
-
actions?: (props: typeof __VLS_5) => any;
|
|
17
|
+
'title-actions'?: (props: typeof __VLS_5) => any;
|
|
18
18
|
} & {
|
|
19
|
-
|
|
19
|
+
actions?: (props: typeof __VLS_7) => any;
|
|
20
20
|
} & {
|
|
21
21
|
default?: (props: typeof __VLS_9) => any;
|
|
22
22
|
} & {
|
|
23
|
-
|
|
23
|
+
default?: (props: typeof __VLS_11) => any;
|
|
24
|
+
} & {
|
|
25
|
+
operation?: (props: typeof __VLS_19) => any;
|
|
24
26
|
};
|
|
25
27
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
26
28
|
subtitle: string;
|
|
@@ -2,15 +2,15 @@ type __VLS_Props = {
|
|
|
2
2
|
title: string;
|
|
3
3
|
subtitle?: string;
|
|
4
4
|
};
|
|
5
|
-
declare var
|
|
5
|
+
declare var __VLS_16: {}, __VLS_19: {}, __VLS_21: {}, __VLS_24: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
|
-
status?: (props: typeof
|
|
7
|
+
status?: (props: typeof __VLS_16) => any;
|
|
8
8
|
} & {
|
|
9
|
-
actions?: (props: typeof
|
|
9
|
+
actions?: (props: typeof __VLS_19) => any;
|
|
10
10
|
} & {
|
|
11
|
-
default?: (props: typeof
|
|
11
|
+
default?: (props: typeof __VLS_21) => any;
|
|
12
12
|
} & {
|
|
13
|
-
operation?: (props: typeof
|
|
13
|
+
operation?: (props: typeof __VLS_24) => any;
|
|
14
14
|
};
|
|
15
15
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
16
|
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;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ModuleContext } from '../web-core/index';
|
|
2
|
+
import type { ResolvedFileReferenceFieldDescriptor } from '../web-contracts/index';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
value: unknown;
|
|
5
|
+
/** The surrounding draft is business-owned input to its upload-ticket policy. */
|
|
6
|
+
record: Record<string, unknown>;
|
|
7
|
+
context: ModuleContext<unknown>;
|
|
8
|
+
definition: ResolvedFileReferenceFieldDescriptor;
|
|
9
|
+
formSessionKey?: string | number;
|
|
10
|
+
disabled?: boolean;
|
|
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>;
|
|
22
|
+
};
|
|
23
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
"update:value": (value: string | string[] | undefined) => any;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
26
|
+
"onUpdate:value"?: ((value: string | string[] | undefined) => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
@@ -8,9 +8,13 @@ type __VLS_Props = {
|
|
|
8
8
|
fallback?: Record<string, RecordFormFieldFallback>;
|
|
9
9
|
pickerConfigs?: Record<string, RecordFormFieldPickerConfig>;
|
|
10
10
|
optionContext?: ModuleContext<unknown>;
|
|
11
|
+
fileTransferContext?: ModuleContext<unknown>;
|
|
12
|
+
formSessionKey?: string | number;
|
|
11
13
|
disabled?: boolean;
|
|
12
14
|
disabledOf?: (fieldName: string, field: RecordFormFieldState) => boolean;
|
|
13
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;
|
|
14
18
|
};
|
|
15
19
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
20
|
"update:field": (fieldName: string, value: RecordFormFieldValue) => any;
|
|
@@ -20,12 +24,16 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
20
24
|
disabled: boolean;
|
|
21
25
|
fieldNames: string[];
|
|
22
26
|
fields: Map<string, RecordFormFieldDescriptor>;
|
|
27
|
+
formSessionKey: string | number;
|
|
23
28
|
excludeFieldNames: string[];
|
|
24
29
|
fallback: Record<string, RecordFormFieldFallback>;
|
|
25
30
|
pickerConfigs: Record<string, RecordFormFieldPickerConfig>;
|
|
26
31
|
optionContext: ModuleContext<unknown>;
|
|
32
|
+
fileTransferContext: ModuleContext<unknown>;
|
|
27
33
|
disabledOf: (fieldName: string, field: RecordFormFieldState) => boolean;
|
|
28
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;
|
|
29
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
38
|
declare const _default: typeof __VLS_export;
|
|
31
39
|
export default _default;
|
|
@@ -22,10 +22,10 @@ type __VLS_Props = {
|
|
|
22
22
|
};
|
|
23
23
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
24
|
select: (record: RecordListExplorerRecord) => any;
|
|
25
|
-
action: (action:
|
|
25
|
+
action: (action: import("../web-contracts").RecordInlineAction, record: RecordListExplorerRecord) => any;
|
|
26
26
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
27
|
onSelect?: ((record: RecordListExplorerRecord) => any) | undefined;
|
|
28
|
-
onAction?: ((action:
|
|
28
|
+
onAction?: ((action: import("../web-contracts").RecordInlineAction, record: RecordListExplorerRecord) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
30
|
filterOption: (record: RecordListExplorerRecord, normalizedKeyword: string) => boolean;
|
|
31
31
|
emptyDescription: string;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type ModuleContext } from '../web-core/index';
|
|
2
|
+
import type { PickerConstraint, RecordPickerRecord } from './recordPickerConstraints';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
context: ModuleContext<RecordPickerRecord>;
|
|
5
|
+
value?: string[];
|
|
6
|
+
reloadKey?: number;
|
|
7
|
+
mode?: 'list' | 'tree';
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
allowClear?: boolean;
|
|
11
|
+
constraints?: PickerConstraint<RecordPickerRecord>[];
|
|
12
|
+
titleOf?: (record: RecordPickerRecord) => string;
|
|
13
|
+
descriptionOf?: (record: RecordPickerRecord) => string | undefined;
|
|
14
|
+
filterOption?: (record: RecordPickerRecord, keyword: string) => boolean;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
"update:value": (value: string[]) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
"onUpdate:value"?: ((value: string[]) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
value: string[];
|
|
23
|
+
placeholder: string;
|
|
24
|
+
allowClear: boolean;
|
|
25
|
+
mode: "list" | "tree";
|
|
26
|
+
filterOption: (record: RecordPickerRecord, keyword: string) => boolean;
|
|
27
|
+
titleOf: (record: RecordPickerRecord) => string;
|
|
28
|
+
reloadKey: number;
|
|
29
|
+
constraints: PickerConstraint<RecordPickerRecord>[];
|
|
30
|
+
descriptionOf: (record: RecordPickerRecord) => string | undefined;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type UiIconName } from '../vue-ui-antdv/index';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
type?: 'default' | 'primary' | 'dashed' | 'link' | 'text';
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
danger?: boolean;
|
|
7
|
+
title?: string;
|
|
8
|
+
iconName?: UiIconName;
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_10: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_10) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
click: (event: MouseEvent) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
type: "default" | "primary" | "dashed" | "link" | "text";
|
|
20
|
+
title: string;
|
|
21
|
+
danger: boolean;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
loading: boolean;
|
|
24
|
+
iconName: UiIconName;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
loading?: boolean;
|
|
3
|
+
description: string;
|
|
4
|
+
loadingTip?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
loading: boolean;
|
|
8
|
+
loadingTip: string;
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -22,9 +22,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
22
22
|
}>, {
|
|
23
23
|
disabled: boolean;
|
|
24
24
|
value: string;
|
|
25
|
-
mode: "list" | "tree";
|
|
26
25
|
placeholder: string;
|
|
27
26
|
allowClear: boolean;
|
|
27
|
+
mode: "list" | "tree";
|
|
28
28
|
filterOption: (record: RecordPickerRecord, keyword: string) => boolean;
|
|
29
29
|
titleOf: (record: RecordPickerRecord) => string;
|
|
30
30
|
reloadKey: number;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { type Component } from 'vue';
|
|
2
|
+
import type { ResolvedViewFieldDescriptor } from '../web-contracts/index';
|
|
1
3
|
import { type ModuleContext } from '../web-core/index';
|
|
2
4
|
import { type RecordActionItem, type ResolvedRecordActionItem } from './recordActionBarModel';
|
|
3
5
|
export type QueryListRecord = Record<string, unknown> & {
|
|
@@ -8,23 +10,41 @@ export type RecordQueryListMode = 'normal' | 'recycleBin';
|
|
|
8
10
|
export interface RecordQueryListColumn {
|
|
9
11
|
key: string;
|
|
10
12
|
title: string;
|
|
11
|
-
type?: 'text' | 'enabledStatus' | 'datetime';
|
|
13
|
+
type?: 'text' | 'enabledStatus' | 'booleanStatus' | 'tagList' | 'datetime' | 'fileSize' | 'colorPicker';
|
|
14
|
+
booleanStatus?: ResolvedViewFieldDescriptor['booleanStatus'];
|
|
12
15
|
width?: string;
|
|
13
16
|
align?: 'left' | 'center' | 'right';
|
|
14
17
|
titleField?: string;
|
|
18
|
+
/** Maximum visible lines for text cells. Defaults to one line. */
|
|
19
|
+
maxDisplayLines?: number;
|
|
15
20
|
render?: (record: QueryListRecord) => string;
|
|
16
21
|
}
|
|
22
|
+
export interface RecordQueryListCellComponent {
|
|
23
|
+
key: string;
|
|
24
|
+
component: Component;
|
|
25
|
+
}
|
|
17
26
|
type __VLS_Props = {
|
|
18
27
|
context: ModuleContext<QueryListRecord>;
|
|
19
28
|
title: string;
|
|
20
29
|
columns?: RecordQueryListColumn[];
|
|
30
|
+
/** Columns appended to, or anchored around, the descriptor-owned list fields. */
|
|
31
|
+
additionalColumns?: Array<RecordQueryListColumn & {
|
|
32
|
+
before?: string;
|
|
33
|
+
after?: string;
|
|
34
|
+
}>;
|
|
35
|
+
/** Vue cell components are deliberately constrained to cells; they do not own the table shell. */
|
|
36
|
+
cellComponents?: RecordQueryListCellComponent[];
|
|
21
37
|
actions?: RecordActionItem[];
|
|
38
|
+
extraActions?: RecordActionItem[];
|
|
39
|
+
batchActions?: RecordActionItem[];
|
|
22
40
|
standardCrudActions?: boolean;
|
|
23
41
|
standardCrudRowActions?: boolean;
|
|
24
42
|
rowActionsOf?: (record: QueryListRecord) => RecordActionItem[];
|
|
25
43
|
extraRowActionsOf?: (record: QueryListRecord) => RecordActionItem[];
|
|
26
44
|
rowActionStateOf?: (record: QueryListRecord, action: RecordActionItem) => Partial<RecordActionItem> | undefined;
|
|
27
45
|
rowActionsTitle?: string;
|
|
46
|
+
/** Width of the fixed right-side action column. Defaults to the platform compact width. */
|
|
47
|
+
actionColumnWidth?: string | number;
|
|
28
48
|
cellRenderers?: Record<string, (record: QueryListRecord) => string>;
|
|
29
49
|
rowKey?: string;
|
|
30
50
|
selectedKey?: string;
|
|
@@ -36,19 +56,33 @@ type __VLS_Props = {
|
|
|
36
56
|
queryTemplateId?: string;
|
|
37
57
|
ready?: boolean;
|
|
38
58
|
externalQueryValues?: Record<string, unknown>;
|
|
59
|
+
/** Descriptor-owned external criteria that must be exposed by the query schema. */
|
|
60
|
+
requiredExternalCriteriaKeys?: string[];
|
|
39
61
|
quickSearchPlaceholder?: string;
|
|
40
62
|
emptyDescription?: string;
|
|
41
63
|
waitingDescription?: string;
|
|
42
64
|
mode?: RecordQueryListMode;
|
|
43
65
|
};
|
|
44
66
|
type __VLS_Slots = {
|
|
67
|
+
toolbarActions?: (props: {
|
|
68
|
+
refresh: () => void;
|
|
69
|
+
}) => unknown;
|
|
70
|
+
cell?: (props: {
|
|
71
|
+
column: RecordQueryListColumn;
|
|
72
|
+
record: QueryListRecord;
|
|
73
|
+
}) => unknown;
|
|
74
|
+
rowActions?: (props: {
|
|
75
|
+
record: QueryListRecord;
|
|
76
|
+
}) => unknown;
|
|
45
77
|
expandedRow?: (props: {
|
|
46
78
|
record: QueryListRecord;
|
|
47
79
|
rowKey: string;
|
|
48
80
|
}) => unknown;
|
|
49
81
|
};
|
|
50
82
|
declare function refresh(): void;
|
|
83
|
+
declare function clearSelection(): void;
|
|
51
84
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
85
|
+
clearSelection: typeof clearSelection;
|
|
52
86
|
refresh: typeof refresh;
|
|
53
87
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
54
88
|
select: (record: QueryListRecord) => any;
|
|
@@ -57,6 +91,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
57
91
|
rowExpand: (record: QueryListRecord, expanded: boolean) => any;
|
|
58
92
|
loaded: (records: QueryListRecord[]) => any;
|
|
59
93
|
restored: () => any;
|
|
94
|
+
batchAction: (action: RecordActionItem, records: QueryListRecord[], event: MouseEvent, clearSelection: () => void) => any;
|
|
60
95
|
rowAction: (action: ResolvedRecordActionItem, record: QueryListRecord, event?: MouseEvent | undefined) => any;
|
|
61
96
|
modeChange: (mode: RecordQueryListMode) => any;
|
|
62
97
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -66,6 +101,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
66
101
|
onRowExpand?: ((record: QueryListRecord, expanded: boolean) => any) | undefined;
|
|
67
102
|
onLoaded?: ((records: QueryListRecord[]) => any) | undefined;
|
|
68
103
|
onRestored?: (() => any) | undefined;
|
|
104
|
+
onBatchAction?: ((action: RecordActionItem, records: QueryListRecord[], event: MouseEvent, clearSelection: () => void) => any) | undefined;
|
|
69
105
|
onRowAction?: ((action: ResolvedRecordActionItem, record: QueryListRecord, event?: MouseEvent | undefined) => any) | undefined;
|
|
70
106
|
onModeChange?: ((mode: RecordQueryListMode) => any) | undefined;
|
|
71
107
|
}>, {
|
|
@@ -75,12 +111,21 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
75
111
|
columns: RecordQueryListColumn[];
|
|
76
112
|
rowKey: string;
|
|
77
113
|
expandedRowKeys: string[];
|
|
114
|
+
actionColumnWidth: string | number;
|
|
78
115
|
emptyDescription: string;
|
|
79
116
|
pageSize: number;
|
|
80
117
|
uiConfigId: string;
|
|
81
118
|
queryTemplateId: string;
|
|
82
119
|
reloadKey: number;
|
|
120
|
+
ready: boolean;
|
|
83
121
|
refreshTitle: string;
|
|
122
|
+
additionalColumns: Array<RecordQueryListColumn & {
|
|
123
|
+
before?: string;
|
|
124
|
+
after?: string;
|
|
125
|
+
}>;
|
|
126
|
+
cellComponents: RecordQueryListCellComponent[];
|
|
127
|
+
extraActions: RecordActionItem[];
|
|
128
|
+
batchActions: RecordActionItem[];
|
|
84
129
|
standardCrudActions: boolean;
|
|
85
130
|
standardCrudRowActions: boolean;
|
|
86
131
|
rowActionsOf: (record: QueryListRecord) => RecordActionItem[];
|
|
@@ -88,8 +133,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
88
133
|
rowActionStateOf: (record: QueryListRecord, action: RecordActionItem) => Partial<RecordActionItem> | undefined;
|
|
89
134
|
rowActionsTitle: string;
|
|
90
135
|
cellRenderers: Record<string, (record: QueryListRecord) => string>;
|
|
91
|
-
ready: boolean;
|
|
92
136
|
externalQueryValues: Record<string, unknown>;
|
|
137
|
+
requiredExternalCriteriaKeys: string[];
|
|
93
138
|
quickSearchPlaceholder: string;
|
|
94
139
|
waitingDescription: string;
|
|
95
140
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
enabled?: boolean;
|
|
2
|
+
enabled?: boolean | null;
|
|
3
|
+
enabledLabel?: string;
|
|
4
|
+
disabledLabel?: string;
|
|
5
|
+
unknownLabel?: string;
|
|
6
|
+
enabledTone?: 'SUCCESS' | 'NEUTRAL' | 'WARNING' | 'DANGER';
|
|
7
|
+
disabledTone?: 'SUCCESS' | 'NEUTRAL' | 'WARNING' | 'DANGER';
|
|
3
8
|
};
|
|
4
9
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
10
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
items: unknown;
|
|
3
|
+
maxVisible?: number;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,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;
|
|
@@ -29,11 +29,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
29
29
|
toggleSearch: typeof toggleSearch;
|
|
30
30
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
31
|
select: (record: TreeRecordBase) => any;
|
|
32
|
-
action: (action:
|
|
32
|
+
action: (action: import("../web-contracts/index").RecordInlineAction, record: TreeRecordBase) => any;
|
|
33
33
|
loaded: (records: TreeRecordBase[]) => any;
|
|
34
34
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
35
35
|
onSelect?: ((record: TreeRecordBase) => any) | undefined;
|
|
36
|
-
onAction?: ((action:
|
|
36
|
+
onAction?: ((action: import("../web-contracts/index").RecordInlineAction, record: TreeRecordBase) => any) | undefined;
|
|
37
37
|
onLoaded?: ((records: TreeRecordBase[]) => any) | undefined;
|
|
38
38
|
}>, {
|
|
39
39
|
filterOption: (record: TreeRecordBase, normalizedKeyword: string) => boolean;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { HttpClient } from '../web-core/index';
|
|
2
|
+
import type { ResolvedFileReferenceFieldDescriptor } from '../web-contracts/index';
|
|
3
|
+
import type { FileTransferUploadAccess } from './fileTransferUpload';
|
|
4
|
+
/** Issues the module-owned short-lived upload ticket for a declared file-reference field. */
|
|
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>;
|
|
14
|
+
/** A policy-visible upload fact, derived from the field cardinality and its current binding. */
|
|
15
|
+
export type FileReferenceUploadIntent = 'CREATE' | 'APPEND' | 'REPLACE';
|
|
16
|
+
export declare function fileReferenceUploadIntent(value: unknown, definition: ResolvedFileReferenceFieldDescriptor): FileReferenceUploadIntent;
|
|
17
|
+
/** Returns the physical file that a successful single-file replacement makes eligible for deletion. */
|
|
18
|
+
export declare function replacedFileReferenceId(value: unknown, fileId: string, definition: ResolvedFileReferenceFieldDescriptor): string | undefined;
|
|
19
|
+
/** Extracts the one uploaded file identifier from MuYunFileServer's conventional upload payload. */
|
|
20
|
+
export declare function uploadedFileId(payload: unknown): string;
|
|
21
|
+
/** Applies one successful upload to the draft value without inventing a deletion protocol. */
|
|
22
|
+
export declare function appendUploadedFileReference(value: unknown, fileId: string, definition: ResolvedFileReferenceFieldDescriptor): string | string[];
|
|
23
|
+
export declare function acceptedMediaTypes(definition: ResolvedFileReferenceFieldDescriptor): string | undefined;
|
|
24
|
+
/** Normalizes persisted draft values so callers can account for already bound files. */
|
|
25
|
+
export declare function fileReferenceIds(value: unknown): string[];
|