@deep-eye/core 1.3.83 → 1.3.85
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/CHANGELOG.md +69 -0
- package/README.md +1 -1
- package/dist/{ChartRenderer-Cjy0_9Vd.js → ChartRenderer-4jMDeAxm.js} +1 -1
- package/dist/{ChartRenderer-DYaFJva0.cjs → ChartRenderer-Bq-WRQmw.cjs} +1 -1
- package/dist/ChatMyFilesArtifacts-D7unczTL.js +1013 -0
- package/dist/ChatMyFilesArtifacts-dk7QXDl0.cjs +1 -0
- package/dist/components/chat/ChatApp.vue.d.ts +37 -14
- package/dist/components/chat/ChatApp.vue.d.ts.map +1 -1
- package/dist/components/chat/addToTask.d.ts +1 -1
- package/dist/components/chat/addToTask.d.ts.map +1 -1
- package/dist/components/chat/attachmentController.d.ts.map +1 -1
- package/dist/components/chat/attachments.d.ts +4 -1
- package/dist/components/chat/attachments.d.ts.map +1 -1
- package/dist/components/chat/chatErrors.d.ts.map +1 -1
- package/dist/components/chat/chatFilePicker.d.ts +91 -1
- package/dist/components/chat/chatFilePicker.d.ts.map +1 -1
- package/dist/components/chat/chatQuota.d.ts +29 -14
- package/dist/components/chat/chatQuota.d.ts.map +1 -1
- package/dist/components/chat/chatSessionSidebarAssets.d.ts +4 -2
- package/dist/components/chat/chatSessionSidebarAssets.d.ts.map +1 -1
- package/dist/components/chat/cloudConfig.d.ts +6 -0
- package/dist/components/chat/cloudConfig.d.ts.map +1 -1
- package/dist/components/chat/components/ChatFilePickerDialog.vue.d.ts +5 -5
- package/dist/components/chat/components/ChatFilePickerDialog.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatKnowledgeLibraryList.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatMentionFileMenu.vue.d.ts +24 -0
- package/dist/components/chat/components/ChatMentionFileMenu.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatPreviewDrawer.vue.d.ts +31 -0
- package/dist/components/chat/components/ChatPreviewDrawer.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatPreviewHeader.vue.d.ts +1 -1
- package/dist/components/chat/components/ChatPreviewHeader.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatQuotaDialog.vue.d.ts +20 -1
- package/dist/components/chat/components/ChatQuotaDialog.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatQuotaEntry.vue.d.ts +14 -3
- package/dist/components/chat/components/ChatQuotaEntry.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatSender.vue.d.ts +3 -3
- package/dist/components/chat/components/ChatSender.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatSessionSidebar.vue.d.ts +9 -2
- package/dist/components/chat/components/ChatSessionSidebar.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ConversationIndex.vue.d.ts.map +1 -1
- package/dist/components/chat/components/InputContentParts.vue.d.ts.map +1 -1
- package/dist/components/chat/components/IntermediateFileCards.vue.d.ts.map +1 -1
- package/dist/components/chat/components/MessageBubble.vue.d.ts.map +1 -1
- package/dist/components/chat/components/UserMessageEditor.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatArtifactFileRow.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatArtifactPreview.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatFileCheckbox.vue.d.ts +2 -0
- package/dist/components/chat/components/files/ChatFileCheckbox.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFiles.vue.d.ts +11 -0
- package/dist/components/chat/components/files/ChatMyFiles.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesArtifacts.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesDirectory.vue.d.ts +6 -0
- package/dist/components/chat/components/files/ChatMyFilesDirectory.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesEmptyGuide.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesFileTable.vue.d.ts +66 -3
- package/dist/components/chat/components/files/ChatMyFilesFileTable.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesFolder.vue.d.ts +61 -5
- package/dist/components/chat/components/files/ChatMyFilesFolder.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesGuideIcon.vue.d.ts +7 -0
- package/dist/components/chat/components/files/ChatMyFilesGuideIcon.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatMyFilesPrompt.vue.d.ts +7 -0
- package/dist/components/chat/components/files/ChatMyFilesPrompt.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesQuickAdd.vue.d.ts +17 -3
- package/dist/components/chat/components/files/ChatMyFilesQuickAdd.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesRecent.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesSearchDialog.vue.d.ts +18 -2
- package/dist/components/chat/components/files/ChatMyFilesSearchDialog.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesTree.vue.d.ts +1 -1
- package/dist/components/chat/components/files/ChatMyFilesTree.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatMyFilesUploadDialog.vue.d.ts +2 -2
- package/dist/components/chat/components/files/ChatMyFilesUploadPanel.vue.d.ts +8 -0
- package/dist/components/chat/components/files/ChatMyFilesUploadPanel.vue.d.ts.map +1 -1
- package/dist/components/chat/components/files/ChatSelectionBar.vue.d.ts +36 -0
- package/dist/components/chat/components/files/ChatSelectionBar.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/ChatUploadPanel.vue.d.ts +34 -0
- package/dist/components/chat/components/files/ChatUploadPanel.vue.d.ts.map +1 -0
- package/dist/components/chat/components/files/chatArtifactFileActions.d.ts +26 -11
- package/dist/components/chat/components/files/chatArtifactFileActions.d.ts.map +1 -1
- package/dist/components/chat/components/files/chatFileTransfer.d.ts +93 -11
- package/dist/components/chat/components/files/chatFileTransfer.d.ts.map +1 -1
- package/dist/components/chat/components/files/chatFileTransferSources.d.ts +37 -3
- package/dist/components/chat/components/files/chatFileTransferSources.d.ts.map +1 -1
- package/dist/components/chat/components/files/chatMyFilesApi.d.ts +132 -2
- package/dist/components/chat/components/files/chatMyFilesApi.d.ts.map +1 -1
- package/dist/components/chat/components/files/chatMyFilesModel.d.ts +24 -3
- package/dist/components/chat/components/files/chatMyFilesModel.d.ts.map +1 -1
- package/dist/components/chat/components/files/chatUploadPanel.d.ts +42 -0
- package/dist/components/chat/components/files/chatUploadPanel.d.ts.map +1 -0
- package/dist/components/chat/components/files/guideIcon.d.ts +10 -0
- package/dist/components/chat/components/files/guideIcon.d.ts.map +1 -0
- package/dist/components/chat/components/files/index.d.ts +20 -2
- package/dist/components/chat/components/files/index.d.ts.map +1 -1
- package/dist/components/chat/components/files/myFilesFilePicker.d.ts +16 -3
- package/dist/components/chat/components/files/myFilesFilePicker.d.ts.map +1 -1
- package/dist/components/chat/components/files/myFilesRows.d.ts +15 -0
- package/dist/components/chat/components/files/myFilesRows.d.ts.map +1 -1
- package/dist/components/chat/components/files/myFilesToast.d.ts +31 -0
- package/dist/components/chat/components/files/myFilesToast.d.ts.map +1 -0
- package/dist/components/chat/components/files/myFilesTransferQueue.d.ts +81 -0
- package/dist/components/chat/components/files/myFilesTransferQueue.d.ts.map +1 -0
- package/dist/components/chat/components/files/myFilesUploadQueue.d.ts +2 -0
- package/dist/components/chat/components/files/myFilesUploadQueue.d.ts.map +1 -1
- package/dist/components/chat/components/files/useFileTransfer.d.ts +32 -6
- package/dist/components/chat/components/files/useFileTransfer.d.ts.map +1 -1
- package/dist/components/chat/components/index.d.ts +4 -0
- package/dist/components/chat/components/index.d.ts.map +1 -1
- package/dist/components/chat/components/mentionFileMenu.d.ts +130 -0
- package/dist/components/chat/components/mentionFileMenu.d.ts.map +1 -0
- package/dist/components/chat/composables/chatQuotaApi.d.ts +28 -0
- package/dist/components/chat/composables/chatQuotaApi.d.ts.map +1 -0
- package/dist/components/chat/composables/useChatColorMode.d.ts +11 -0
- package/dist/components/chat/composables/useChatColorMode.d.ts.map +1 -0
- package/dist/components/chat/composables/useChatQuota.d.ts +23 -0
- package/dist/components/chat/composables/useChatQuota.d.ts.map +1 -0
- package/dist/components/chat/composer/ComposerFormattedText.vue.d.ts.map +1 -1
- package/dist/components/chat/composer/ComposerInlineParts.vue.d.ts.map +1 -1
- package/dist/components/chat/composer/composerExtensions.d.ts +3 -0
- package/dist/components/chat/composer/composerExtensions.d.ts.map +1 -1
- package/dist/components/chat/composer/composerText.d.ts +6 -1
- package/dist/components/chat/composer/composerText.d.ts.map +1 -1
- package/dist/components/chat/fileChipView.d.ts +21 -0
- package/dist/components/chat/fileChipView.d.ts.map +1 -0
- package/dist/components/chat/fileToken.d.ts +42 -0
- package/dist/components/chat/fileToken.d.ts.map +1 -0
- package/dist/components/chat/hydrateHistory.d.ts.map +1 -1
- package/dist/components/chat/icons/ChatTipMenuAssetIcon.vue.d.ts +9 -0
- package/dist/components/chat/icons/ChatTipMenuAssetIcon.vue.d.ts.map +1 -1
- package/dist/components/chat/icons/ChatTipMenuLocalFileIcon.vue.d.ts.map +1 -1
- package/dist/components/chat/icons/ChatTipMenuMyFilesIcon.vue.d.ts.map +1 -1
- package/dist/components/chat/index.d.ts +2 -2
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/mdoc/ArtifactBlock.vue.d.ts.map +1 -1
- package/dist/components/chat/mentionEditor.d.ts +3 -1
- package/dist/components/chat/mentionEditor.d.ts.map +1 -1
- package/dist/components/chat/responseStream.d.ts +3 -1
- package/dist/components/chat/responseStream.d.ts.map +1 -1
- package/dist/components/chat/types.d.ts +31 -6
- package/dist/components/chat/types.d.ts.map +1 -1
- package/dist/components/library/LibraryApp.vue.d.ts +8 -2
- package/dist/components/library/LibraryApp.vue.d.ts.map +1 -1
- package/dist/components/library/components/LibrarySidebar.vue.d.ts +6 -2
- package/dist/components/library/components/LibrarySidebar.vue.d.ts.map +1 -1
- package/dist/components/library/components/LibraryTreeNode.vue.d.ts.map +1 -1
- package/dist/components/ui/components/UiMenuNestedSubmenu.vue.d.ts.map +1 -1
- package/dist/components/ui/components/UiSplitPane.vue.d.ts +38 -0
- package/dist/components/ui/components/UiSplitPane.vue.d.ts.map +1 -0
- package/dist/components/ui/components/index.d.ts +1 -0
- package/dist/components/ui/components/index.d.ts.map +1 -1
- package/dist/{docx-preview-DMQ6xzQM.js → docx-preview-_KbfGYVZ.js} +1 -1
- package/dist/{docx-preview-DG8slhP7.cjs → docx-preview-ljv2r1o6.cjs} +1 -1
- package/dist/index-B0LYCMyD.cjs +1447 -0
- package/dist/{index-DRZPTPoe.js → index-CgfD9R7Z.js} +1 -1
- package/dist/{index-B4nd6sY1.cjs → index-DkAkCzn-.cjs} +1 -1
- package/dist/{index-CBCQPl8n.js → index-xNFX7ZcL.js} +36813 -33436
- package/dist/index.cjs +1 -1
- package/dist/index.js +607 -572
- package/dist/{papaparse.min-CpVaJlaF.js → papaparse.min-CxNXl7Vn.js} +1 -1
- package/dist/{papaparse.min-BRNq6gPR.cjs → papaparse.min-DYV83FIL.cjs} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/ChatMyFilesArtifacts-B8IrM7Gv.cjs +0 -1
- package/dist/ChatMyFilesArtifacts-CPbY91Eg.js +0 -1029
- package/dist/index-CJ-Mb6SU.cjs +0 -1410
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { UiDropdownMenuItem } from '../../../ui';
|
|
1
2
|
import type { MaterialNode } from './chatMyFilesModel';
|
|
2
|
-
import { type MyFilesFileRow } from './myFilesRows';
|
|
3
|
-
import type { QuickAddActionId } from './chatQuickAddMenu';
|
|
3
|
+
import { type MyFilesFileRow, type MyFilesTableColumn } from './myFilesRows';
|
|
4
4
|
/**
|
|
5
5
|
* 文件夹页:面包屑 + 文件夹标题行(右上角「快速添加」)+ 子项列表。
|
|
6
6
|
*
|
|
@@ -17,8 +17,46 @@ type __VLS_Props = {
|
|
|
17
17
|
name: string;
|
|
18
18
|
}[];
|
|
19
19
|
selectedId?: string;
|
|
20
|
+
/** 为 false 时不渲染右上角「快速添加」。缺省仍显示。 */
|
|
21
|
+
showQuickAdd?: boolean;
|
|
22
|
+
/** 传入后替换「快速添加」菜单。不传时用「我的文件」默认项。 */
|
|
23
|
+
quickAddItems?: readonly UiDropdownMenuItem[];
|
|
24
|
+
/** 按行替换右侧「更多」菜单。不传时用「我的资料」菜单。 */
|
|
25
|
+
menuForRow?: (row: MyFilesFileRow) => readonly UiDropdownMenuItem[];
|
|
26
|
+
editingId?: string;
|
|
27
|
+
editingValue?: string;
|
|
28
|
+
checkedIds?: readonly string[];
|
|
29
|
+
indeterminateIds?: readonly string[];
|
|
30
|
+
selectionCount?: number;
|
|
31
|
+
/** 时间列表头。不传 `columns` 时表格仍写「访问时间」。 */
|
|
32
|
+
timeLabel?: string;
|
|
33
|
+
/** 数据列。不传时表格仍是名称、所有者、位置、访问时间。 */
|
|
34
|
+
columns?: readonly MyFilesTableColumn[];
|
|
35
|
+
/** 按行决定有没有勾选框。不传时每行都能选。 */
|
|
36
|
+
rowSelectable?: (row: MyFilesFileRow) => boolean;
|
|
37
|
+
/** 操作列宽度。用了 `#row-action` 插槽时传;不传仍是 24px。 */
|
|
38
|
+
actionWidth?: string;
|
|
20
39
|
};
|
|
21
|
-
declare
|
|
40
|
+
declare var __VLS_1: {}, __VLS_29: string, __VLS_30: {
|
|
41
|
+
row: MyFilesFileRow;
|
|
42
|
+
}, __VLS_33: {
|
|
43
|
+
rows: MyFilesFileRow[];
|
|
44
|
+
clear: () => void;
|
|
45
|
+
}, __VLS_36: {
|
|
46
|
+
row: MyFilesFileRow;
|
|
47
|
+
}, __VLS_39: {};
|
|
48
|
+
type __VLS_Slots = {} & {
|
|
49
|
+
[K in NonNullable<typeof __VLS_29>]?: (props: typeof __VLS_30) => any;
|
|
50
|
+
} & {
|
|
51
|
+
'head-actions'?: (props: typeof __VLS_1) => any;
|
|
52
|
+
} & {
|
|
53
|
+
batch?: (props: typeof __VLS_33) => any;
|
|
54
|
+
} & {
|
|
55
|
+
'row-action'?: (props: typeof __VLS_36) => any;
|
|
56
|
+
} & {
|
|
57
|
+
empty?: (props: typeof __VLS_39) => any;
|
|
58
|
+
};
|
|
59
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
60
|
open: (row: MyFilesFileRow) => any;
|
|
23
61
|
action: (payload: {
|
|
24
62
|
row: MyFilesFileRow;
|
|
@@ -29,7 +67,13 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
29
67
|
action: "add-task" | "delete";
|
|
30
68
|
rows: MyFilesFileRow[];
|
|
31
69
|
}) => any;
|
|
32
|
-
|
|
70
|
+
"update:editingValue": (value: string) => any;
|
|
71
|
+
"editing-submit": () => any;
|
|
72
|
+
"editing-cancel": () => any;
|
|
73
|
+
"more-open": (row: MyFilesFileRow) => any;
|
|
74
|
+
"selection-change": (rows: MyFilesFileRow[]) => any;
|
|
75
|
+
"selection-clear": () => any;
|
|
76
|
+
quickAdd: (id: string) => any;
|
|
33
77
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
34
78
|
onOpen?: ((row: MyFilesFileRow) => any) | undefined;
|
|
35
79
|
onAction?: ((payload: {
|
|
@@ -41,8 +85,20 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
41
85
|
action: "add-task" | "delete";
|
|
42
86
|
rows: MyFilesFileRow[];
|
|
43
87
|
}) => any) | undefined;
|
|
44
|
-
|
|
88
|
+
"onUpdate:editingValue"?: ((value: string) => any) | undefined;
|
|
89
|
+
"onEditing-submit"?: (() => any) | undefined;
|
|
90
|
+
"onEditing-cancel"?: (() => any) | undefined;
|
|
91
|
+
"onMore-open"?: ((row: MyFilesFileRow) => any) | undefined;
|
|
92
|
+
"onSelection-change"?: ((rows: MyFilesFileRow[]) => any) | undefined;
|
|
93
|
+
"onSelection-clear"?: (() => any) | undefined;
|
|
94
|
+
onQuickAdd?: ((id: string) => any) | undefined;
|
|
45
95
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
96
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
46
97
|
declare const _default: typeof __VLS_export;
|
|
47
98
|
export default _default;
|
|
99
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
100
|
+
new (): {
|
|
101
|
+
$slots: S;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
48
104
|
//# sourceMappingURL=ChatMyFilesFolder.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMyFilesFolder.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/ChatMyFilesFolder.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatMyFilesFolder.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/ChatMyFilesFolder.vue"],"names":[],"mappings":"AA8VA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EAAmB,KAAK,cAAc,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAI7F;;;;;GAKG;AACH,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,CAAA;IACpB,oCAAoC;IACpC,SAAS,EAAE,YAAY,EAAE,CAAA;IACzB,kCAAkC;IAClC,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACtC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,mCAAmC;IACnC,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,mCAAmC;IACnC,aAAa,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAA;IAC7C,iCAAiC;IACjC,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,SAAS,kBAAkB,EAAE,CAAA;IACnE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAC9B,gBAAgB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACpC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iCAAiC;IACjC,OAAO,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAA;IACvC,2BAA2B;IAC3B,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,OAAO,CAAA;IAChD,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAC;AAsZF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,QAAW,EAAE,QAAQ;;CAAW,EAAE,QAAQ;;;CAAW,EAAE,QAAQ;;CAAW,EAAE,QAAQ,IAAY,CAAE;AACjI,KAAK,WAAW,GAAG,EAAE,GACnB;KAAG,CAAC,IAAI,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG;CAAE,GACzE;IAAE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAClD;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAK9C,QAAA,MAAM,UAAU;;;aA9YW,cAAc;gBAAU,MAAM;;;;gBAE5B,UAAU,GAAG,QAAQ;cAAQ,cAAc,EAAE;;;;;;;;;;;;aAF/C,cAAc;gBAAU,MAAM;;;;gBAE5B,UAAU,GAAG,QAAQ;cAAQ,cAAc,EAAE;;;;;;;;;kFA+YxE,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
src: string;
|
|
3
|
+
};
|
|
4
|
+
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
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=ChatMyFilesGuideIcon.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatMyFilesGuideIcon.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/ChatMyFilesGuideIcon.vue"],"names":[],"mappings":"AAgEA,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAA;CACZ,CAAC;AAiDF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
title: string;
|
|
3
|
+
/**
|
|
4
|
+
* - `prompt`:带输入框(重命名、新建文件夹);
|
|
5
|
+
* - `confirm`:只有文案 + 取消/确定(删除确认)。
|
|
6
|
+
*
|
|
7
|
+
* 原先还有一个 `alert` 模式,专给「操作结果提示」用;结果提示改为宿主 toast
|
|
8
|
+
* 后没有调用方了,一并去掉——弹框只负责**要用户做决定**的事。
|
|
9
|
+
*/
|
|
3
10
|
mode?: 'prompt' | 'confirm';
|
|
4
11
|
message?: string;
|
|
5
12
|
placeholder?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMyFilesPrompt.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/ChatMyFilesPrompt.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatMyFilesPrompt.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/ChatMyFilesPrompt.vue"],"names":[],"mappings":"AAmNA,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,MAAM,CAAA;IACb;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC;AA8CJ,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAaF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAyHxD,QAAA,MAAM,YAAY;;;;;;;UA5LP,QAAQ,GAAG,SAAS;aAGjB,MAAM;YAEP,OAAO;aAJN,MAAM;iBACF,MAAM;iBAEN,MAAM;6EA4LtB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type UiMenuPlacement } from '../../../ui';
|
|
2
|
-
import {
|
|
2
|
+
import type { UiDropdownMenuItem } from '../../../ui';
|
|
3
3
|
import './chatQuickAddMenu.css';
|
|
4
4
|
/**
|
|
5
5
|
* 「快速添加」菜单的通用触发器:只管弹菜单与 id 归一化,
|
|
@@ -21,18 +21,32 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
21
21
|
type: () => UiMenuPlacement;
|
|
22
22
|
default: string;
|
|
23
23
|
};
|
|
24
|
+
/** 传入后替换默认菜单。不传时仍是「我的文件」那一份。 */
|
|
25
|
+
items: {
|
|
26
|
+
type: () => readonly UiDropdownMenuItem[] | undefined;
|
|
27
|
+
default: undefined;
|
|
28
|
+
};
|
|
24
29
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
25
30
|
[key: string]: any;
|
|
26
31
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
|
-
select: (id:
|
|
32
|
+
select: (id: string) => boolean;
|
|
33
|
+
/** 触发按钮悬浮才出现的宿主(目录行)要靠它在菜单打开期间保住锚点。 */
|
|
34
|
+
openChange: (open: boolean) => boolean;
|
|
28
35
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
36
|
placement: {
|
|
30
37
|
type: () => UiMenuPlacement;
|
|
31
38
|
default: string;
|
|
32
39
|
};
|
|
40
|
+
/** 传入后替换默认菜单。不传时仍是「我的文件」那一份。 */
|
|
41
|
+
items: {
|
|
42
|
+
type: () => readonly UiDropdownMenuItem[] | undefined;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
33
45
|
}>> & Readonly<{
|
|
34
|
-
onSelect?: ((id:
|
|
46
|
+
onSelect?: ((id: string) => any) | undefined;
|
|
47
|
+
onOpenChange?: ((open: boolean) => any) | undefined;
|
|
35
48
|
}>, {
|
|
49
|
+
items: readonly UiDropdownMenuItem[] | undefined;
|
|
36
50
|
placement: UiMenuPlacement;
|
|
37
51
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
38
52
|
//# sourceMappingURL=ChatMyFilesQuickAdd.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMyFilesQuickAdd.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/ChatMyFilesQuickAdd.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatMyFilesQuickAdd.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/ChatMyFilesQuickAdd.vue"],"names":[],"mappings":"AA0EA,OAAO,EAAiB,KAAK,eAAe,EAAE,MAAM,aAAa,CAAA;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AASrD,OAAO,wBAAwB,CAAA;AAE/B;;;;;;;;;;;;GAYG;wBACkB,OAAO,YAAY;AAAxC,wBAAyC;AAQzC,QAAA,MAAM,YAAY;;cAII,MAAM,eAAe;;;IAGvC,gCAAgC;;cAEf,MAAM,SAAS,kBAAkB,EAAE,GAAG,SAAS;;;;;;iBAKnD,MAAM;IACnB,uCAAuC;uBACpB,OAAO;;;cAZR,MAAM,eAAe;;;IAGvC,gCAAgC;;cAEf,MAAM,SAAS,kBAAkB,EAAE,GAAG,SAAS;;;;;;;;;4EAgClE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMyFilesRecent.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/ChatMyFilesRecent.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatMyFilesRecent.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/ChatMyFilesRecent.vue"],"names":[],"mappings":"AA2UA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEtD,OAAO,oBAAoB,CAAA;AAC3B,OAAO,EAML,KAAK,cAAc,EAGpB,MAAM,eAAe,CAAA;AAItB,KAAK,WAAW,GAAG;IACjB,qCAAqC;IACrC,KAAK,EAAE,YAAY,EAAE,CAAA;IACrB,gCAAgC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,kCAAkC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAC;AA0TF,QAAA,MAAM,YAAY;;;aApTS,cAAc;gBAAU,MAAM;;;gBAE5B,UAAU,GAAG,QAAQ;cAAQ,cAAc,EAAE;;;;;aAF/C,cAAc;gBAAU,MAAM;;;gBAE5B,UAAU,GAAG,QAAQ;cAAQ,cAAc,EAAE;;kFAqTxE,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -3,10 +3,13 @@ import type { MaterialNode } from './chatMyFilesModel';
|
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
cloud?: ChatCloudConfig;
|
|
5
5
|
/** 目录树快照:空关键词时用于拼「最近浏览」,本地模式同时充当搜索源。 */
|
|
6
|
-
nodes
|
|
6
|
+
nodes?: MaterialNode[];
|
|
7
7
|
/** 本地浏览记录(id 顺序,最近的在前)。 */
|
|
8
8
|
recentIds?: string[];
|
|
9
|
+
/** 搜索框占位。不传时仍是「搜索文档」。 */
|
|
10
|
+
placeholder?: string;
|
|
9
11
|
};
|
|
12
|
+
declare function close(): void;
|
|
10
13
|
type __VLS_ModelProps = {
|
|
11
14
|
/**
|
|
12
15
|
* 「我的文件」右上角搜索图标打开的检索面板(命令面板形态)。
|
|
@@ -19,7 +22,14 @@ type __VLS_ModelProps = {
|
|
|
19
22
|
modelValue?: boolean;
|
|
20
23
|
};
|
|
21
24
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
22
|
-
declare
|
|
25
|
+
declare var __VLS_22: {
|
|
26
|
+
keyword: string;
|
|
27
|
+
close: typeof close;
|
|
28
|
+
};
|
|
29
|
+
type __VLS_Slots = {} & {
|
|
30
|
+
default?: (props: typeof __VLS_22) => any;
|
|
31
|
+
};
|
|
32
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
33
|
"update:modelValue": (value: boolean) => any;
|
|
24
34
|
open: (payload: {
|
|
25
35
|
node: MaterialNode;
|
|
@@ -32,6 +42,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
32
42
|
newWindow: boolean;
|
|
33
43
|
}) => any) | undefined;
|
|
34
44
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
46
|
declare const _default: typeof __VLS_export;
|
|
36
47
|
export default _default;
|
|
48
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
37
53
|
//# sourceMappingURL=ChatMyFilesSearchDialog.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMyFilesSearchDialog.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/ChatMyFilesSearchDialog.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatMyFilesSearchDialog.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/ChatMyFilesSearchDialog.vue"],"names":[],"mappings":"AAohBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAqBtD,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,eAAe,CAAA;IACvB,wCAAwC;IACxC,KAAK,CAAC,EAAE,YAAY,EAAE,CAAA;IACtB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAC;AA2EF,iBAAS,KAAK,SAEb;AAmED,KAAK,gBAAgB,GAAG;IACxB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AA2SxD,QAAA,IAAyB,QAAQ;;;CAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAQhD,QAAA,MAAM,UAAU;;;cA5cU,YAAY;mBAAa,OAAO;;;;;cAAhC,YAAY;mBAAa,OAAO;;kFA+cxD,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMyFilesTree.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/ChatMyFilesTree.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatMyFilesTree.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/ChatMyFilesTree.vue"],"names":[],"mappings":"AA0aA,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACvE,OAAO,EAAuB,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAQ/E,OAAO,wBAAwB,CAAA;AAC/B,OAAO,yBAAyB,CAAA;AAIhC;;;;;;;;GAQG;AACH,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,YAAY,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACxB,UAAU,EAAE,MAAM,CAAA;IAClB,oCAAoC;IACpC,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAC;AAyaF,QAAA,MAAM,YAAY;;;;cA5ZU,YAAY;gBAAU,MAAM;;;;cAE1B,YAAY;gBAAU,gBAAgB;;;;;;cAFxC,YAAY;gBAAU,MAAM;;;;cAE1B,YAAY;gBAAU,gBAAgB;;kFA6ZlE,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -20,12 +20,12 @@ type __VLS_ModelProps = {
|
|
|
20
20
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
21
21
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
22
|
"update:modelValue": (value: boolean) => any;
|
|
23
|
-
files: (files: File[]) => any;
|
|
24
23
|
folder: (files: File[]) => any;
|
|
24
|
+
files: (files: File[]) => any;
|
|
25
25
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
26
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
27
|
-
onFiles?: ((files: File[]) => any) | undefined;
|
|
28
27
|
onFolder?: ((files: File[]) => any) | undefined;
|
|
28
|
+
onFiles?: ((files: File[]) => any) | undefined;
|
|
29
29
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
31
31
|
export default _default;
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import type { MyFilesUploadQueue, MyFilesUploadTask } from './myFilesUploadQueue';
|
|
2
|
+
import type { MyFilesTransferQueue } from './myFilesTransferQueue';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
queue: MyFilesUploadQueue;
|
|
5
|
+
/**
|
|
6
|
+
* 「上传到」的批量任务(可选)。和本地上传放同一块面板:两者都是「一批文件正在去哪」,
|
|
7
|
+
* 分成两个浮层用户得分别关两次。差别只在行的内容——本地上传有字节进度,转存只有逐条成败。
|
|
8
|
+
*/
|
|
9
|
+
transfer?: MyFilesTransferQueue;
|
|
4
10
|
};
|
|
5
11
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
delete: (task: MyFilesUploadTask) => any;
|
|
6
13
|
open: (task: MyFilesUploadTask) => any;
|
|
7
14
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onDelete?: ((task: MyFilesUploadTask) => any) | undefined;
|
|
8
16
|
onOpen?: ((task: MyFilesUploadTask) => any) | undefined;
|
|
9
17
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
18
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMyFilesUploadPanel.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/ChatMyFilesUploadPanel.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatMyFilesUploadPanel.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/ChatMyFilesUploadPanel.vue"],"names":[],"mappings":"AAoOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACjF,OAAO,KAAK,EAEV,oBAAoB,EAErB,MAAM,wBAAwB,CAAA;AAW/B,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,kBAAkB,CAAA;IACzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAAA;CAChC,CAAC;AAoRF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import './chatSelectionBar.css';
|
|
2
|
+
/**
|
|
3
|
+
* 多选后的浮动操作条:贴着列表底部居中浮出,
|
|
4
|
+
* 从左到右固定为「已选 N 项 · 取消选择 | 次要操作 | 添加到任务」。
|
|
5
|
+
*
|
|
6
|
+
* 「添加到任务」由这里自己画,是条上唯一的实心按钮,永远在最右端。
|
|
7
|
+
* 页面只能用默认插槽往中间补次要操作(按钮加 `chat-selection-bar__action`,
|
|
8
|
+
* 危险操作再加 `is-danger`),改不了主按钮的位置和样式——
|
|
9
|
+
* 用户在我的文件、AI 产物、知识库之间切换时,不用重新找这颗按钮。
|
|
10
|
+
*
|
|
11
|
+
* 定位相对最近的 positioned 祖先;宿主要给滚动区底部留出约 84px,
|
|
12
|
+
* 否则最后一行会被盖住。
|
|
13
|
+
*/
|
|
14
|
+
type __VLS_Props = {
|
|
15
|
+
count: number;
|
|
16
|
+
};
|
|
17
|
+
declare var __VLS_7: {};
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
default?: (props: typeof __VLS_7) => any;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
clear: () => any;
|
|
23
|
+
"add-task": () => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
+
onClear?: (() => any) | undefined;
|
|
26
|
+
"onAdd-task"?: (() => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=ChatSelectionBar.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatSelectionBar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/ChatSelectionBar.vue"],"names":[],"mappings":"AAyEA,OAAO,wBAAwB,CAAA;AAI/B;;;;;;;;;;;GAWG;AACH,KAAK,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAwHrC,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type ChatUploadGroup, type ChatUploadItem } from './chatUploadPanel';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
groups: ChatUploadGroup[];
|
|
5
|
+
/** 进行中时的标题文案。 */
|
|
6
|
+
busyTitle?: string;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_ModelProps = {
|
|
9
|
+
'collapsed'?: boolean;
|
|
10
|
+
'collapsedGroups'?: string[];
|
|
11
|
+
};
|
|
12
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
close: () => any;
|
|
15
|
+
open: (item: ChatUploadItem) => any;
|
|
16
|
+
retry: (item: ChatUploadItem) => any;
|
|
17
|
+
remove: (item: ChatUploadItem) => any;
|
|
18
|
+
"update:collapsed": (value: boolean) => any;
|
|
19
|
+
"retry-all": () => any;
|
|
20
|
+
"update:collapsedGroups": (value: string[]) => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
+
onClose?: (() => any) | undefined;
|
|
23
|
+
onOpen?: ((item: ChatUploadItem) => any) | undefined;
|
|
24
|
+
onRetry?: ((item: ChatUploadItem) => any) | undefined;
|
|
25
|
+
onRemove?: ((item: ChatUploadItem) => any) | undefined;
|
|
26
|
+
"onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
|
27
|
+
"onRetry-all"?: (() => any) | undefined;
|
|
28
|
+
"onUpdate:collapsedGroups"?: ((value: string[]) => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
busyTitle: string;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
34
|
+
//# sourceMappingURL=ChatUploadPanel.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatUploadPanel.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/ChatUploadPanel.vue"],"names":[],"mappings":"AAs6BA,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAA;AAU1B,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,EAAE,eAAe,EAAE,CAAA;IACzB,iBAAiB;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;AAqIJ,KAAK,gBAAgB,GAAG;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B,CAAC;AAOF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AA4lBxD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;eA5uBF,MAAM;6EAgvBpB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type InjectionKey, type Ref } from 'vue';
|
|
2
2
|
import type { UiDropdownMenuItem } from '../../../ui';
|
|
3
|
+
import type { FileTransferTarget } from './chatFileTransfer';
|
|
3
4
|
/**
|
|
4
5
|
* 文件行「更多操作」菜单的统一数据源。
|
|
5
6
|
*
|
|
@@ -16,19 +17,31 @@ import type { UiDropdownMenuItem } from '../../../ui';
|
|
|
16
17
|
*/
|
|
17
18
|
export type ArtifactFileActionId = 'add-task' | 'rename' | 'share' | 'share-school' | 'upload-my-files' | 'upload-lesson' | 'upload-knowledge' | 'delete';
|
|
18
19
|
export declare const ARTIFACT_FILE_ACTION_IDS: readonly ArtifactFileActionId[];
|
|
19
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* 「上传到」的目标项;id 与菜单项 id 同名,便于二级路径归一化。
|
|
22
|
+
*
|
|
23
|
+
* 三个落点都带图标,且都取自侧栏同一套导航切图(我的文件 / 备课 / 知识库),
|
|
24
|
+
* 保证「上传到」子菜单里三行的图标语言与左侧导航一致:
|
|
25
|
+
* 我的资料用「我的文件」、备课中心用「备课」、知识库用「知识库」。
|
|
26
|
+
*/
|
|
20
27
|
export declare const UPLOAD_TARGETS: {
|
|
21
28
|
readonly myFiles: {
|
|
22
29
|
readonly id: "upload-my-files";
|
|
30
|
+
readonly target: "my-files";
|
|
23
31
|
readonly label: "我的资料";
|
|
32
|
+
readonly iconUrl: string;
|
|
24
33
|
};
|
|
25
34
|
readonly lesson: {
|
|
26
35
|
readonly id: "upload-lesson";
|
|
36
|
+
readonly target: "lesson";
|
|
27
37
|
readonly label: "备课中心";
|
|
38
|
+
readonly iconUrl: string;
|
|
28
39
|
};
|
|
29
40
|
readonly knowledge: {
|
|
30
41
|
readonly id: "upload-knowledge";
|
|
42
|
+
readonly target: "knowledge";
|
|
31
43
|
readonly label: "知识库";
|
|
44
|
+
readonly iconUrl: string;
|
|
32
45
|
};
|
|
33
46
|
};
|
|
34
47
|
/**
|
|
@@ -37,11 +50,11 @@ export declare const UPLOAD_TARGETS: {
|
|
|
37
50
|
* 换图只改这里;对话卡片另需 `.chat-chrome-icon` 做暗色反色。
|
|
38
51
|
*/
|
|
39
52
|
export declare const ARTIFACT_FILE_MORE_ICON: string;
|
|
40
|
-
/**
|
|
53
|
+
/** 面板宽 160;行高 36、圆角 12、项圆角 6、图标 20 见 chatFileMenu.css。 */
|
|
41
54
|
export declare const ARTIFACT_FILE_MENU_PANEL_CLASS = "chat-artifact-menu";
|
|
42
|
-
/** 子菜单 flyout
|
|
55
|
+
/** 子菜单 flyout 面板与根面板同一套规格。 */
|
|
43
56
|
export declare const ARTIFACT_FILE_SUBMENU_PANEL_CLASS = "chat-artifact-menu-sub";
|
|
44
|
-
export declare const ARTIFACT_FILE_MENU_WIDTH =
|
|
57
|
+
export declare const ARTIFACT_FILE_MENU_WIDTH = 160;
|
|
45
58
|
export declare const ARTIFACT_FILE_MENU_PLACEMENT: "bottom-end";
|
|
46
59
|
export declare const ARTIFACT_FILE_ACTIONS_UNAVAILABLE_NOTICE = "\u6682\u4E0D\u652F\u6301";
|
|
47
60
|
/** 与 AI 产物页 `onFileAction` 逐字一致的即时反馈文案。 */
|
|
@@ -66,16 +79,20 @@ export declare const artifactFileActionsKey: InjectionKey<Readonly<Ref<ArtifactF
|
|
|
66
79
|
* 场景差异(有哪些动作、能传到哪)留在各自的 scope 里,不做「万能菜单」。
|
|
67
80
|
*/
|
|
68
81
|
export type FileActionMenuScope = 'artifact' | 'my-files';
|
|
82
|
+
export interface FileActionMenuOptions {
|
|
83
|
+
includeDownload?: boolean;
|
|
84
|
+
/** 返回 false 的落点不进「上传到」子菜单;一个都不剩时整项不出现。 */
|
|
85
|
+
canUploadTo?: (target: FileTransferTarget) => boolean;
|
|
86
|
+
}
|
|
69
87
|
/**
|
|
70
88
|
* 统一的文件行菜单工厂。
|
|
71
89
|
*
|
|
72
90
|
* - `scope`:动作集合与上传目标的差异来源。
|
|
73
91
|
* - `includeDownload`:是否把「下载」置顶。产物侧恒有下载;我的资料的文件
|
|
74
92
|
* 在预览弹层里已能下载,设计稿的行菜单里也没有下载,故默认不带。
|
|
93
|
+
* - `canUploadTo`:按文件格式裁掉落点(见 `useTransferTargetFilter`)。
|
|
75
94
|
*/
|
|
76
|
-
export declare function createFileActionMenuItems(scope: FileActionMenuScope, policy?: Partial<ArtifactFileActionPolicy>, options?:
|
|
77
|
-
includeDownload?: boolean;
|
|
78
|
-
}): UiDropdownMenuItem[];
|
|
95
|
+
export declare function createFileActionMenuItems(scope: FileActionMenuScope, policy?: Partial<ArtifactFileActionPolicy>, options?: FileActionMenuOptions): UiDropdownMenuItem[];
|
|
79
96
|
/**
|
|
80
97
|
* 产物文件「更多操作」的统一菜单:下载、添加到任务、上传到。
|
|
81
98
|
*
|
|
@@ -86,11 +103,9 @@ export declare function createFileActionMenuItems(scope: FileActionMenuScope, po
|
|
|
86
103
|
* - 对话卡片:非 bento 才显示下载;
|
|
87
104
|
* - AI 产物列表行 / 预览:恒显示下载。
|
|
88
105
|
*/
|
|
89
|
-
export declare function createArtifactFileMenuItems(policy?: Partial<ArtifactFileActionPolicy>, options?:
|
|
90
|
-
includeDownload?: boolean;
|
|
91
|
-
}): UiDropdownMenuItem[];
|
|
106
|
+
export declare function createArtifactFileMenuItems(policy?: Partial<ArtifactFileActionPolicy>, options?: FileActionMenuOptions): UiDropdownMenuItem[];
|
|
92
107
|
/** 我的资料文件行的菜单:设计稿的六项(上传到子菜单为备课中心 / 知识库)。 */
|
|
93
|
-
export declare function createMyFilesFileMenuItems(policy?: Partial<ArtifactFileActionPolicy>): UiDropdownMenuItem[];
|
|
108
|
+
export declare function createMyFilesFileMenuItems(policy?: Partial<ArtifactFileActionPolicy>, options?: Pick<FileActionMenuOptions, 'canUploadTo'>): UiDropdownMenuItem[];
|
|
94
109
|
/**
|
|
95
110
|
* UiDropdown 对二级菜单项返回 `父id:子id` 路径(如 `upload:upload-knowledge`),
|
|
96
111
|
* 归一化为统一的操作 id;未知 id 返回 null,避免误触发操作。
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatArtifactFileActions.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/chatArtifactFileActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,YAAY,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"chatArtifactFileActions.d.ts","sourceRoot":"","sources":["../../../../../src/components/chat/components/files/chatArtifactFileActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,YAAY,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AA8B5D;;;;;;;;;;;;;GAaG;AAEH,MAAM,MAAM,oBAAoB,GAC5B,UAAU,GACV,QAAQ,GACR,OAAO,GACP,cAAc,GACd,iBAAiB,GACjB,eAAe,GACf,kBAAkB,GAClB,QAAQ,CAAA;AAEZ,eAAO,MAAM,wBAAwB,EAAE,SAAS,oBAAoB,EASnE,CAAA;AASD;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;CAS0B,CAAA;AAErD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,QAAW,CAAA;AAE/C,0DAA0D;AAC1D,eAAO,MAAM,8BAA8B,uBAAuB,CAAA;AAClE,8BAA8B;AAC9B,eAAO,MAAM,iCAAiC,2BAA2B,CAAA;AACzE,eAAO,MAAM,wBAAwB,MAAM,CAAA;AAC3C,eAAO,MAAM,4BAA4B,EAAG,YAAqB,CAAA;AAEjE,eAAO,MAAM,wCAAwC,6BAAS,CAAA;AAE9D,2CAA2C;AAC3C,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAC/C,OAAO,CAAC,oBAAoB,EAAE,QAAQ,GAAG,QAAQ,CAAC,EAClD,MAAM,CAQP,CAAA;AAED;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,mCAAmC,EAAE,wBAGjD,CAAA;AAED,iDAAiD;AACjD,eAAO,MAAM,sBAAsB,EAAE,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC,CAExF,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,UAAU,CAAA;AASzD,MAAM,WAAW,qBAAqB;IACpC,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,0CAA0C;IAC1C,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,OAAO,CAAA;CACtD;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,mBAAmB,EAC1B,MAAM,GAAE,OAAO,CAAC,wBAAwB,CAAM,EAC9C,OAAO,GAAE,qBAA0B,GAClC,kBAAkB,EAAE,CA0DtB;AAED;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,GAAE,OAAO,CAAC,wBAAwB,CAAM,EAC9C,OAAO,GAAE,qBAA0B,GAClC,kBAAkB,EAAE,CAEtB;AAED,4CAA4C;AAC5C,wBAAgB,0BAA0B,CACxC,MAAM,GAAE,OAAO,CAAC,wBAAwB,CAAM,EAC9C,OAAO,GAAE,IAAI,CAAC,qBAAqB,EAAE,aAAa,CAAM,GACvD,kBAAkB,EAAE,CAEtB;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,EAAE,EAAE,MAAM,GAAG,oBAAoB,GAAG,IAAI,CAKrF;AAED,MAAM,MAAM,yBAAyB,GACjC;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,MAAM,EAAE,oBAAoB,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACrE;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,QAAQ,CAAA;CAAE,GACpC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,QAAQ,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,oBAAoB,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AAEpE,2BAA2B;AAC3B,wBAAgB,yBAAyB,CACvC,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,OAAO,CAAC,wBAAwB,CAAM,GAC7C,yBAAyB,GAAG,IAAI,CAUlC;AAED,6CAA6C;AAC7C,wBAAgB,8BAA8B,IAAI,QAAQ,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC,GAAG,IAAI,CAE/F"}
|