@apform-ui/core 1.1.0 → 1.3.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/dist/__tests__/components.spec.d.ts +1 -0
- package/dist/apform-ui.css +1 -1
- package/dist/apform-ui.js +3659 -2487
- package/dist/apform-ui.umd.cjs +55 -54
- 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/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/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/EmptyState/EmptyState.vue.d.ts +23 -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 +7 -0
- package/dist/composables/useClientPagination.d.ts +15 -0
- package/dist/composables/useConfirm.d.ts +15 -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 +69 -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 +2 -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,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,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,23 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 图标名称(AppIcon 已注册的 kebab-case name) */
|
|
3
|
+
icon?: string;
|
|
4
|
+
/** 图标尺寸 */
|
|
5
|
+
iconSize?: number;
|
|
6
|
+
/** 标题文案 */
|
|
7
|
+
title?: string;
|
|
8
|
+
/** 描述文案 */
|
|
9
|
+
description?: string;
|
|
10
|
+
};
|
|
11
|
+
declare var __VLS_6: {};
|
|
12
|
+
type __VLS_Slots = {} & {
|
|
13
|
+
default?: (props: typeof __VLS_6) => any;
|
|
14
|
+
};
|
|
15
|
+
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>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as EmptyState } from './EmptyState.vue';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
/** 自定义上下文信息,用于错误日志 */
|
|
5
|
+
context: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
/** 错误回调 */
|
|
10
|
+
onError: {
|
|
11
|
+
type: () => ((info: {
|
|
12
|
+
context?: string;
|
|
13
|
+
error: Error;
|
|
14
|
+
}) => void) | undefined;
|
|
15
|
+
default: undefined;
|
|
16
|
+
};
|
|
17
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
20
|
+
/** 自定义上下文信息,用于错误日志 */
|
|
21
|
+
context: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
/** 错误回调 */
|
|
26
|
+
onError: {
|
|
27
|
+
type: () => ((info: {
|
|
28
|
+
context?: string;
|
|
29
|
+
error: Error;
|
|
30
|
+
}) => void) | undefined;
|
|
31
|
+
default: undefined;
|
|
32
|
+
};
|
|
33
|
+
}>> & Readonly<{}>, {
|
|
34
|
+
onError: ((info: {
|
|
35
|
+
context?: string;
|
|
36
|
+
error: Error;
|
|
37
|
+
}) => void) | undefined;
|
|
38
|
+
context: string;
|
|
39
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ErrorBoundary } from './ErrorBoundary.vue';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 字段标签 */
|
|
3
|
+
label: string;
|
|
4
|
+
/** 多行控件时拉高对齐 */
|
|
5
|
+
textarea?: boolean;
|
|
6
|
+
/** 提示文案(拼进 label tooltip) */
|
|
7
|
+
hint?: string;
|
|
8
|
+
/** 必填标记 */
|
|
9
|
+
required?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare var __VLS_7: {};
|
|
12
|
+
type __VLS_Slots = {} & {
|
|
13
|
+
default?: (props: typeof __VLS_7) => any;
|
|
14
|
+
};
|
|
15
|
+
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>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FieldRow } from './FieldRow.vue';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FilterBar — 列表页筛选条
|
|
3
|
+
*
|
|
4
|
+
* fields slot + 查询/重置;对应会议系统 MsFilterBar。
|
|
5
|
+
*/
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
/** 可选区块标题 */
|
|
8
|
+
title?: string;
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_1) => any;
|
|
13
|
+
} & {
|
|
14
|
+
actions?: (props: typeof __VLS_3) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
search: () => any;
|
|
18
|
+
reset: () => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
onSearch?: (() => any) | undefined;
|
|
21
|
+
onReset?: (() => any) | undefined;
|
|
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 @@
|
|
|
1
|
+
export { default as FilterBar } from './FilterBar.vue';
|