@apform-ui/core 1.1.0 → 1.4.0
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/README.md +5 -0
- package/dist/__tests__/components.spec.d.ts +1 -0
- package/dist/apform-ui.css +1 -1
- package/dist/apform-ui.js +4141 -2635
- package/dist/apform-ui.umd.cjs +61 -57
- package/dist/components/AppDialog/AppDialog.vue.d.ts +48 -0
- package/dist/components/AppDialog/index.d.ts +1 -0
- package/dist/components/AppIcon/AppIcon.vue.d.ts +11 -0
- package/dist/components/AppIcon/index.d.ts +1 -0
- package/dist/components/AppPagination/AppPagination.vue.d.ts +26 -0
- package/dist/components/AppPagination/index.d.ts +1 -0
- package/dist/components/CardGridSkeleton/CardGridSkeleton.vue.d.ts +34 -0
- package/dist/components/CardGridSkeleton/index.d.ts +1 -0
- package/dist/components/CardTable/CardTable.vue.d.ts +28 -0
- package/dist/components/CardTable/index.d.ts +1 -0
- package/dist/components/Chat/ApprovalCard/ApprovalCard.vue.d.ts +12 -0
- package/dist/components/Chat/ApprovalCard/index.d.ts +1 -0
- package/dist/components/Chat/AssistantPicker/AssistantPicker.vue.d.ts +23 -0
- package/dist/components/Chat/AssistantPicker/index.d.ts +2 -0
- package/dist/components/Chat/AssistantPicker/types.d.ts +9 -0
- package/dist/components/Chat/Composer/Composer.vue.d.ts +32 -0
- package/dist/components/Chat/Composer/index.d.ts +1 -0
- package/dist/components/Chat/ConversationHeader/ConversationHeader.vue.d.ts +21 -0
- package/dist/components/Chat/ConversationHeader/index.d.ts +1 -0
- package/dist/components/Chat/MessageBubble/MessageBubble.vue.d.ts +23 -0
- package/dist/components/Chat/MessageBubble/index.d.ts +1 -0
- package/dist/components/Chat/MessageList/MessageList.vue.d.ts +24 -0
- package/dist/components/Chat/MessageList/index.d.ts +1 -0
- package/dist/components/Chat/ModelPicker/ModelPicker.vue.d.ts +16 -0
- package/dist/components/Chat/ModelPicker/index.d.ts +2 -0
- package/dist/components/Chat/ModelPicker/types.d.ts +6 -0
- package/dist/components/Chat/ProcessingDrawer/ProcessingDrawer.vue.d.ts +32 -0
- package/dist/components/Chat/ProcessingDrawer/index.d.ts +1 -0
- package/dist/components/Chat/RunStatusBar/RunStatusBar.vue.d.ts +12 -0
- package/dist/components/Chat/RunStatusBar/index.d.ts +1 -0
- package/dist/components/Chat/SessionSidebar/SessionSidebar.vue.d.ts +18 -0
- package/dist/components/Chat/SessionSidebar/index.d.ts +1 -0
- package/dist/components/Chat/message/AttachmentPreviewModal.vue.d.ts +18 -0
- package/dist/components/Chat/message/DocumentSummaryList.vue.d.ts +12 -0
- package/dist/components/Chat/message/MessageAttachmentList.vue.d.ts +11 -0
- package/dist/components/Chat/message/MessageParts.vue.d.ts +6 -0
- package/dist/components/Chat/message/index.d.ts +4 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts +26 -0
- package/dist/components/ConfirmDialog/index.d.ts +1 -0
- package/dist/components/ContentPanel/ContentPanel.vue.d.ts +31 -0
- package/dist/components/ContentPanel/index.d.ts +1 -0
- package/dist/components/DocumentPreview/DocumentPreviewDrawer.vue.d.ts +61 -0
- package/dist/components/DocumentPreview/DocumentPreviewPanel.vue.d.ts +53 -0
- package/dist/components/DocumentPreview/index.d.ts +3 -0
- package/dist/components/DocumentPreview/types.d.ts +33 -0
- package/dist/components/EmptyState/EmptyState.vue.d.ts +33 -0
- package/dist/components/EmptyState/index.d.ts +1 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.vue.d.ts +39 -0
- package/dist/components/ErrorBoundary/index.d.ts +1 -0
- package/dist/components/FieldRow/FieldRow.vue.d.ts +23 -0
- package/dist/components/FieldRow/index.d.ts +1 -0
- package/dist/components/FilterBar/FilterBar.vue.d.ts +30 -0
- package/dist/components/FilterBar/index.d.ts +1 -0
- package/dist/components/FilterTabs/FilterTabs.vue.d.ts +21 -0
- package/dist/components/FilterTabs/index.d.ts +1 -0
- package/dist/components/FormDialog/FormDialog.vue.d.ts +44 -0
- package/dist/components/FormDialog/index.d.ts +1 -0
- package/dist/components/HintText/HintText.vue.d.ts +19 -0
- package/dist/components/HintText/index.d.ts +1 -0
- package/dist/components/JsonCard/JsonCard.vue.d.ts +20 -0
- package/dist/components/JsonCard/index.d.ts +1 -0
- package/dist/components/JsonDetailDialog/JsonDetailDialog.vue.d.ts +13 -0
- package/dist/components/JsonDetailDialog/index.d.ts +1 -0
- package/dist/components/LoadingDots/LoadingDots.vue.d.ts +10 -0
- package/dist/components/LoadingDots/index.d.ts +1 -0
- package/dist/components/PageHeader/PageHeader.vue.d.ts +28 -0
- package/dist/components/PageHeader/index.d.ts +1 -0
- package/dist/components/PageShell/PageShell.vue.d.ts +25 -0
- package/dist/components/PageShell/index.d.ts +1 -0
- package/dist/components/SchemaLitePreview/SchemaLitePreview.vue.d.ts +30 -0
- package/dist/components/SchemaLitePreview/index.d.ts +2 -0
- package/dist/components/SearchForm/SearchForm.vue.d.ts +39 -0
- package/dist/components/SearchForm/index.d.ts +2 -0
- package/dist/components/SectionToggle/SectionToggle.vue.d.ts +20 -0
- package/dist/components/SectionToggle/index.d.ts +1 -0
- package/dist/components/Skeleton/Skeleton.vue.d.ts +29 -0
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/StatusTag/StatusTag.vue.d.ts +21 -0
- package/dist/components/StatusTag/index.d.ts +2 -0
- package/dist/components/TableRowActions/TableRowActions.vue.d.ts +23 -0
- package/dist/components/TableRowActions/index.d.ts +2 -0
- package/dist/components/Toast/Toast.vue.d.ts +12 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/TruncatedTooltipText/TruncatedTooltipText.vue.d.ts +22 -0
- package/dist/components/TruncatedTooltipText/index.d.ts +1 -0
- package/dist/components/UserAvatar/UserAvatar.vue.d.ts +26 -0
- package/dist/components/UserAvatar/index.d.ts +1 -0
- package/dist/composables/index.d.ts +9 -0
- package/dist/composables/useClientPagination.d.ts +15 -0
- package/dist/composables/useConfirm.d.ts +15 -0
- package/dist/composables/useDataLoading.d.ts +30 -0
- package/dist/composables/useDebounceFn.d.ts +1 -0
- package/dist/composables/useMessage.d.ts +8 -0
- package/dist/composables/useToast.d.ts +17 -0
- package/dist/index.d.ts +77 -0
- package/dist/stories/AppDialog.stories.d.ts +9 -0
- package/dist/stories/AppIcon.stories.d.ts +9 -0
- package/dist/stories/ApprovalCard.stories.d.ts +8 -0
- package/dist/stories/Composer.stories.d.ts +9 -0
- package/dist/stories/MessageBubble.stories.d.ts +10 -0
- package/dist/stories/RunStatusBar.stories.d.ts +8 -0
- package/dist/stories/StatusTag.stories.d.ts +8 -0
- package/dist/stories/useConfirm.stories.d.ts +5 -0
- package/dist/stories/useMessage.stories.d.ts +5 -0
- package/dist/tokens/index.d.ts +139 -0
- package/dist/types/chat.d.ts +121 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/utils/attachmentKind.d.ts +7 -0
- package/dist/utils/iconRegistry.d.ts +7 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/pagination.d.ts +8 -0
- package/dist/utils/resolveApiErrorMessage.d.ts +22 -0
- package/dist/utils/textParser.d.ts +20 -0
- package/package.json +3 -1
- package/src/tokens/index.ts +78 -0
- package/src/tokens/tokens.css +74 -5
- package/styles/element-override.css +155 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue: boolean;
|
|
3
|
+
title: string;
|
|
4
|
+
width?: string;
|
|
5
|
+
destroyOnClose?: boolean;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
draggable?: boolean;
|
|
8
|
+
appendToBody?: boolean;
|
|
9
|
+
showFullscreenBtn?: boolean;
|
|
10
|
+
closeOnClickModal?: boolean;
|
|
11
|
+
cancelText?: string;
|
|
12
|
+
confirmText?: string;
|
|
13
|
+
};
|
|
14
|
+
declare var __VLS_26: {}, __VLS_29: {};
|
|
15
|
+
type __VLS_Slots = {} & {
|
|
16
|
+
default?: (props: typeof __VLS_26) => any;
|
|
17
|
+
} & {
|
|
18
|
+
footer?: (props: typeof __VLS_29) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (value: boolean) => any;
|
|
22
|
+
confirm: () => any;
|
|
23
|
+
cancel: () => any;
|
|
24
|
+
close: () => any;
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
27
|
+
onConfirm?: (() => any) | undefined;
|
|
28
|
+
onCancel?: (() => any) | undefined;
|
|
29
|
+
onClose?: (() => any) | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
width: string;
|
|
32
|
+
destroyOnClose: boolean;
|
|
33
|
+
loading: boolean;
|
|
34
|
+
draggable: boolean;
|
|
35
|
+
appendToBody: boolean;
|
|
36
|
+
showFullscreenBtn: boolean;
|
|
37
|
+
closeOnClickModal: boolean;
|
|
38
|
+
cancelText: string;
|
|
39
|
+
confirmText: string;
|
|
40
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
41
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
42
|
+
declare const _default: typeof __VLS_export;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AppDialog } from './AppDialog.vue';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 图标名称(kebab-case,如 'home-filled'、'setting') */
|
|
3
|
+
name: string;
|
|
4
|
+
/** 图标大小(px) */
|
|
5
|
+
size?: number | string;
|
|
6
|
+
/** 图标颜色 */
|
|
7
|
+
color?: string;
|
|
8
|
+
};
|
|
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>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AppIcon } from './AppIcon.vue';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 当前页(从 1 开始) */
|
|
3
|
+
currentPage: number;
|
|
4
|
+
/** 每页条数 */
|
|
5
|
+
pageSize?: number;
|
|
6
|
+
/** 总条数 */
|
|
7
|
+
total: number;
|
|
8
|
+
/** 紧凑尺寸(弹窗 / 侧栏等) */
|
|
9
|
+
size?: 'default' | 'small';
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"update:currentPage": (page: number) => any;
|
|
13
|
+
"update:pageSize": (size: number) => any;
|
|
14
|
+
currentChange: (page: number) => any;
|
|
15
|
+
sizeChange: (size: number) => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
"onUpdate:currentPage"?: ((page: number) => any) | undefined;
|
|
18
|
+
"onUpdate:pageSize"?: ((size: number) => any) | undefined;
|
|
19
|
+
onCurrentChange?: ((page: number) => any) | undefined;
|
|
20
|
+
onSizeChange?: ((size: number) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
size: "default" | "small";
|
|
23
|
+
pageSize: number;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AppPagination } from './AppPagination.vue';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CardGridSkeleton — 卡片网格骨架屏
|
|
3
|
+
*
|
|
4
|
+
* 用于卡片列表加载时的占位展示。
|
|
5
|
+
* 跨 4 个项目存在完全相同的骨架屏 markup,此组件统一替代。
|
|
6
|
+
*
|
|
7
|
+
* 真实用法(来自 editor/flow/ai 项目):
|
|
8
|
+
* <div class="skeleton">
|
|
9
|
+
* <div v-for="i in 6" :key="i" class="skeletonCard">
|
|
10
|
+
* <div class="skeletonThumb" />
|
|
11
|
+
* <div class="skeletonTitle" />
|
|
12
|
+
* <div class="skeletonText" />
|
|
13
|
+
* </div>
|
|
14
|
+
* </div>
|
|
15
|
+
*
|
|
16
|
+
* 用法:
|
|
17
|
+
* <CardGridSkeleton :count="6" />
|
|
18
|
+
* <CardGridSkeleton :count="3" :show-thumb="false" />
|
|
19
|
+
*/
|
|
20
|
+
type __VLS_Props = {
|
|
21
|
+
/** 骨架卡片数量(默认 6) */
|
|
22
|
+
count?: number;
|
|
23
|
+
/** 是否显示缩略图区域(默认 true) */
|
|
24
|
+
showThumb?: boolean;
|
|
25
|
+
/** 是否开启动画(默认 true) */
|
|
26
|
+
animated?: boolean;
|
|
27
|
+
};
|
|
28
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
29
|
+
count: number;
|
|
30
|
+
animated: boolean;
|
|
31
|
+
showThumb: boolean;
|
|
32
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const _default: typeof __VLS_export;
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CardGridSkeleton } from './CardGridSkeleton.vue';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CardTable — 卡片式表格/内容容器
|
|
3
|
+
*/
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
/** 加载态(依赖 Element Plus v-loading) */
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
/** 内边距 */
|
|
8
|
+
padding?: string;
|
|
9
|
+
/** 无边框 */
|
|
10
|
+
borderless?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare var __VLS_1: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
default?: (props: typeof __VLS_1) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
|
+
loading: boolean;
|
|
18
|
+
padding: string;
|
|
19
|
+
borderless: boolean;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CardTable } from './CardTable.vue';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WaitingPayload } from '../../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
waiting: WaitingPayload | null;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
|
+
resume: (action: string, payload?: string | undefined) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onResume?: ((action: string, payload?: string | undefined) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ApprovalCard } from './ApprovalCard.vue';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AssistantPickerItem } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 智能体列表 */
|
|
4
|
+
items: AssistantPickerItem[];
|
|
5
|
+
/** 当前选中 id */
|
|
6
|
+
modelValue: string | null;
|
|
7
|
+
/** 加载中 */
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
/** 错误信息 */
|
|
10
|
+
error?: string | null;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
"update:modelValue": (value: string) => any;
|
|
14
|
+
select: (item: AssistantPickerItem) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
17
|
+
onSelect?: ((item: AssistantPickerItem) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
error: string | null;
|
|
20
|
+
loading: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
disabled: boolean;
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
supportedInputs?: string[];
|
|
5
|
+
hitlCapable?: boolean;
|
|
6
|
+
/** WebSocket 状态(可选) */
|
|
7
|
+
wsStatus?: 'ok' | 'pending' | 'streaming' | 'warn' | 'err' | 'idle';
|
|
8
|
+
wsLabel?: string;
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_1: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
tools?: (props: typeof __VLS_1) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
15
|
+
upload: (file: File) => any;
|
|
16
|
+
send: (content: string, attachmentIds: string[]) => any;
|
|
17
|
+
"remove-attachment": (id: string) => any;
|
|
18
|
+
"ws-click": () => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
onUpload?: ((file: File) => any) | undefined;
|
|
21
|
+
onSend?: ((content: string, attachmentIds: string[]) => any) | undefined;
|
|
22
|
+
"onRemove-attachment"?: ((id: string) => any) | undefined;
|
|
23
|
+
"onWs-click"?: (() => any) | undefined;
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Composer } from './Composer.vue';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 主标题(智能体/模型名) */
|
|
3
|
+
title?: string;
|
|
4
|
+
/** 副文案 */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** 是否有消息 */
|
|
7
|
+
hasMessages?: boolean;
|
|
8
|
+
/** 处理中 */
|
|
9
|
+
processing?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
create: () => any;
|
|
13
|
+
changeAssistant: () => any;
|
|
14
|
+
toggleDetails: () => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onCreate?: (() => any) | undefined;
|
|
17
|
+
onChangeAssistant?: (() => any) | undefined;
|
|
18
|
+
onToggleDetails?: (() => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ConversationHeader } from './ConversationHeader.vue';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Message, RunStatusView } from '../../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
message: Message;
|
|
4
|
+
run: RunStatusView | null;
|
|
5
|
+
sending: boolean;
|
|
6
|
+
/** 品牌标识组件(可选,如 AppMark) */
|
|
7
|
+
brandMark?: any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
|
+
cancel: () => any;
|
|
11
|
+
retry: () => any;
|
|
12
|
+
preview: (attachment: any) => any;
|
|
13
|
+
resume: (action: string, payload?: string | undefined) => any;
|
|
14
|
+
"open-process": () => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onCancel?: (() => any) | undefined;
|
|
17
|
+
onRetry?: (() => any) | undefined;
|
|
18
|
+
onPreview?: ((attachment: any) => any) | undefined;
|
|
19
|
+
onResume?: ((action: string, payload?: string | undefined) => any) | undefined;
|
|
20
|
+
"onOpen-process"?: (() => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MessageBubble } from './MessageBubble.vue';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Message, RunStatusView } from '../../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
messages: Message[];
|
|
4
|
+
loading: boolean;
|
|
5
|
+
currentRun: RunStatusView | null;
|
|
6
|
+
sending?: boolean;
|
|
7
|
+
/** 品牌标识组件(可选) */
|
|
8
|
+
brandMark?: any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
|
+
cancel: () => any;
|
|
12
|
+
retry: () => any;
|
|
13
|
+
preview: (attachment: any) => any;
|
|
14
|
+
resume: (action: string, payload?: string | undefined) => any;
|
|
15
|
+
"open-process": (message: Message) => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
onCancel?: (() => any) | undefined;
|
|
18
|
+
onRetry?: (() => any) | undefined;
|
|
19
|
+
onPreview?: ((attachment: any) => any) | undefined;
|
|
20
|
+
onResume?: ((action: string, payload?: string | undefined) => any) | undefined;
|
|
21
|
+
"onOpen-process"?: ((message: Message) => any) | undefined;
|
|
22
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MessageList } from './MessageList.vue';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ModelPickerItem } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 模型列表 */
|
|
4
|
+
models: ModelPickerItem[];
|
|
5
|
+
/** 当前选中 id */
|
|
6
|
+
modelValue: string | null;
|
|
7
|
+
/** 加载中 */
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (value: string) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { RunStatusView } from '../../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 是否打开 */
|
|
4
|
+
modelValue: boolean;
|
|
5
|
+
/** 运行状态 */
|
|
6
|
+
run?: RunStatusView | null;
|
|
7
|
+
/** 标题 */
|
|
8
|
+
title?: string;
|
|
9
|
+
/** 副标题(如模型名 / 智能体名) */
|
|
10
|
+
subtitle?: string;
|
|
11
|
+
/** 透传 RunStatusBar sending */
|
|
12
|
+
sending?: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare var __VLS_17: {};
|
|
15
|
+
type __VLS_Slots = {} & {
|
|
16
|
+
default?: (props: typeof __VLS_17) => any;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (args_0: boolean) => any;
|
|
20
|
+
cancel: () => any;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
|
|
23
|
+
onCancel?: (() => any) | undefined;
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ProcessingDrawer } from './ProcessingDrawer.vue';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RunStatusView } from '../../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
run: RunStatusView | null;
|
|
4
|
+
sending: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
|
+
cancel: () => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onCancel?: (() => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as RunStatusBar } from './RunStatusBar.vue';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Session } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
sessions: Session[];
|
|
4
|
+
activeId?: string | null;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
title?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
select: (id: string) => any;
|
|
10
|
+
delete: (id: string) => any;
|
|
11
|
+
create: () => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onSelect?: ((id: string) => any) | undefined;
|
|
14
|
+
onDelete?: ((id: string) => any) | undefined;
|
|
15
|
+
onCreate?: (() => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SessionSidebar } from './SessionSidebar.vue';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MessageAttachment } from '../../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 是否显示预览弹层 */
|
|
4
|
+
modelValue: boolean;
|
|
5
|
+
/** 当前预览的附件 */
|
|
6
|
+
attachment: MessageAttachment | null;
|
|
7
|
+
/** 图片 gallery(仅图片时左右切换) */
|
|
8
|
+
gallery?: MessageAttachment[];
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (value: boolean) => any;
|
|
12
|
+
"update:attachment": (value: MessageAttachment) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
15
|
+
"onUpdate:attachment"?: ((value: MessageAttachment) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MessageDocumentSummary, MessageAttachment } from '../../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
summaries: MessageDocumentSummary[];
|
|
4
|
+
attachments?: MessageAttachment[];
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
|
+
preview: (attachment: MessageAttachment) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onPreview?: ((attachment: MessageAttachment) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MessageAttachment } from '../../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
attachments: MessageAttachment[];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
preview: (attachment: MessageAttachment) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
onPreview?: ((attachment: MessageAttachment) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
content: 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;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as MessageParts } from './MessageParts.vue';
|
|
2
|
+
export { default as MessageAttachmentList } from './MessageAttachmentList.vue';
|
|
3
|
+
export { default as DocumentSummaryList } from './DocumentSummaryList.vue';
|
|
4
|
+
export { default as AttachmentPreviewModal } from './AttachmentPreviewModal.vue';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue: boolean;
|
|
3
|
+
title?: string;
|
|
4
|
+
width?: string;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
message: string;
|
|
7
|
+
type?: 'info' | 'warning' | 'danger';
|
|
8
|
+
cancelText?: string;
|
|
9
|
+
confirmText?: string;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: boolean) => any;
|
|
13
|
+
confirm: () => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
16
|
+
onConfirm?: (() => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
title: string;
|
|
19
|
+
width: string;
|
|
20
|
+
loading: boolean;
|
|
21
|
+
cancelText: string;
|
|
22
|
+
confirmText: string;
|
|
23
|
+
type: "info" | "warning" | "danger";
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ConfirmDialog } from './ConfirmDialog.vue';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ContentPanel — 白底内容面板
|
|
3
|
+
*
|
|
4
|
+
* 对应会议系统 MsPanel:title / extra / flush / fill。
|
|
5
|
+
*/
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
/** 面板标题 */
|
|
8
|
+
title?: string;
|
|
9
|
+
/** 去除 body 内边距 */
|
|
10
|
+
flush?: boolean;
|
|
11
|
+
/** 在父级 flex 中撑满剩余高度 */
|
|
12
|
+
fill?: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
15
|
+
type __VLS_Slots = {} & {
|
|
16
|
+
extra?: (props: typeof __VLS_1) => any;
|
|
17
|
+
} & {
|
|
18
|
+
default?: (props: typeof __VLS_3) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
21
|
+
fill: boolean;
|
|
22
|
+
flush: boolean;
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ContentPanel } from './ContentPanel.vue';
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { DocumentPreviewChunk } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 是否打开 */
|
|
4
|
+
modelValue: boolean;
|
|
5
|
+
/** 文件名 */
|
|
6
|
+
filename?: string;
|
|
7
|
+
/** MIME 类型 */
|
|
8
|
+
mimetype?: string;
|
|
9
|
+
/** 文件大小(字节) */
|
|
10
|
+
size?: number;
|
|
11
|
+
/** 文本分块 */
|
|
12
|
+
chunks?: DocumentPreviewChunk[];
|
|
13
|
+
/** 抽取方法 */
|
|
14
|
+
extractionMethod?: string;
|
|
15
|
+
/** 是否有原文件可下载 */
|
|
16
|
+
hasOriginalFile?: boolean;
|
|
17
|
+
/** PDF 预览 URL */
|
|
18
|
+
pdfUrl?: string;
|
|
19
|
+
/** Excel 预览 URL */
|
|
20
|
+
excelUrl?: string;
|
|
21
|
+
/** 加载中 */
|
|
22
|
+
loading?: boolean;
|
|
23
|
+
/** 错误信息 */
|
|
24
|
+
error?: string | null;
|
|
25
|
+
/** 抽屉宽度 */
|
|
26
|
+
sizeDrawer?: string | number;
|
|
27
|
+
};
|
|
28
|
+
declare var __VLS_21: {
|
|
29
|
+
url: string | undefined;
|
|
30
|
+
}, __VLS_24: {
|
|
31
|
+
url: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
type __VLS_Slots = {} & {
|
|
34
|
+
pdf?: (props: typeof __VLS_21) => any;
|
|
35
|
+
} & {
|
|
36
|
+
excel?: (props: typeof __VLS_24) => any;
|
|
37
|
+
};
|
|
38
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
39
|
+
"update:modelValue": (value: boolean) => any;
|
|
40
|
+
close: () => any;
|
|
41
|
+
download: () => any;
|
|
42
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
43
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
44
|
+
onClose?: (() => any) | undefined;
|
|
45
|
+
onDownload?: (() => any) | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
error: string | null;
|
|
48
|
+
loading: boolean;
|
|
49
|
+
filename: string;
|
|
50
|
+
chunks: DocumentPreviewChunk[];
|
|
51
|
+
hasOriginalFile: boolean;
|
|
52
|
+
sizeDrawer: string | number;
|
|
53
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
54
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
55
|
+
declare const _default: typeof __VLS_export;
|
|
56
|
+
export default _default;
|
|
57
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
58
|
+
new (): {
|
|
59
|
+
$slots: S;
|
|
60
|
+
};
|
|
61
|
+
};
|