@farris/x-ui 0.5.6-beta.20261021 → 0.5.6
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/app-preview/index.d.ts +8 -0
- package/app-preview/src/app-preview.component.d.ts +22 -0
- package/app-preview/src/app-preview.props.d.ts +14 -0
- package/{chat-preview → app-preview}/src/types.d.ts +17 -2
- package/bubble/index.d.ts +1 -11
- package/bubble/src/bubble.component.d.ts +45 -0
- package/bubble/src/bubble.props.d.ts +6 -1
- package/bubble/src/composition/types.d.ts +12 -0
- package/chat-preview/index.d.ts +0 -1
- package/chat-preview/src/chat-preview.component.d.ts +2 -2
- package/chat-preview/src/chat-preview.props.d.ts +1 -1
- package/chat-preview/src/preview-chrome-sdk.d.ts +1 -1
- package/components.d.ts +16 -1
- package/error-reminder/index.d.ts +7 -0
- package/error-reminder/src/error-reminder.component.d.ts +15 -0
- package/error-reminder/src/types.d.ts +7 -0
- package/farris.x-ui.esm.js +11136 -10296
- package/farris.x-ui.umd.cjs +106 -105
- package/hitl-question/src/hitl-question.component.d.ts +2 -2
- package/hitl-question/src/types.d.ts +7 -0
- package/image-preview/src/image-preview.component.d.ts +1 -1
- package/index.css +1 -1
- package/link-card/index.d.ts +7 -0
- package/link-card/src/link-card.component.d.ts +15 -0
- package/link-card/src/types.d.ts +14 -0
- package/markdown/src/composition/table-card-renderer.d.ts +39 -0
- package/markdown/src/composition/table-to-tsv.d.ts +11 -0
- package/markdown/src/composition/write-text-to-clipboard.d.ts +8 -0
- package/nav/src/composition/types.d.ts +0 -6
- package/package.json +1 -1
- package/prompts/index.d.ts +9 -0
- package/prompts/src/components/prompt.component.d.ts +131 -0
- package/prompts/src/components/prompt.props.d.ts +79 -0
- package/prompts/src/composition/type.d.ts +34 -0
- package/prompts/src/prompts.component.d.ts +46 -0
- package/prompts/src/prompts.props.d.ts +61 -0
- package/reference-sources/index.d.ts +7 -0
- package/reference-sources/src/reference-sources.component.d.ts +15 -0
- package/reference-sources/src/types.d.ts +9 -0
- package/started-todo/test/started-todo.spec.d.ts +1 -0
- package/todo/src/composition/status-icon.d.ts +3 -3
- package/welcome/index.d.ts +7 -0
- package/welcome/src/composition/type.d.ts +1 -0
- package/welcome/src/welcome.component.d.ts +35 -0
- package/welcome/src/welcome.props.d.ts +30 -0
- package/welcome/test/welcome.spec.d.ts +1 -0
- package/nav/src/composition/use-nav-right-slot.d.ts +0 -5
- /package/{nav/test/nav.spec.d.ts → markdown/test/markdown-table-card.spec.d.ts} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PropType } from '../../../vue';
|
|
2
|
+
import { MessageContentLinkCard } from '../../../types';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('../../../vue').DefineComponent<import('../../../vue').ExtractPropTypes<{
|
|
5
|
+
content: {
|
|
6
|
+
type: PropType<MessageContentLinkCard>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, string, import('../../../vue').PublicProps, Readonly<import('../../../vue').ExtractPropTypes<{
|
|
10
|
+
content: {
|
|
11
|
+
type: PropType<MessageContentLinkCard>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('../../../vue').ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface LinkRelatedItem {
|
|
2
|
+
title: string;
|
|
3
|
+
url: string;
|
|
4
|
+
poster?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface MessageContentLinkCard {
|
|
7
|
+
type: 'LinkCard';
|
|
8
|
+
standardType?: 'card/url' | string;
|
|
9
|
+
poster?: string;
|
|
10
|
+
title: string;
|
|
11
|
+
subtitle?: string;
|
|
12
|
+
url: string;
|
|
13
|
+
relatedLinks?: LinkRelatedItem[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { default as MarkdownIt } from '../../../../markdown-it';
|
|
2
|
+
|
|
3
|
+
/** 表格卡片根节点属性,事件委托据此定位卡片 */
|
|
4
|
+
export declare const TABLE_CARD_ATTRIBUTE = "data-table-card";
|
|
5
|
+
/** 表格卡片操作按钮属性,取值为动作标识 */
|
|
6
|
+
export declare const TABLE_CARD_ACTION_ATTRIBUTE = "data-table-card-action";
|
|
7
|
+
/** 表格卡片导航区标题文案 */
|
|
8
|
+
export declare const TABLE_CARD_TITLE = "\u8868\u683C";
|
|
9
|
+
/** 复制动作标识(卡片导航区与最大化预览顶部栏共用) */
|
|
10
|
+
export declare const TABLE_CARD_COPY_ACTION = "copy";
|
|
11
|
+
/** 最大化动作标识 */
|
|
12
|
+
export declare const TABLE_CARD_MAXIMIZE_ACTION = "maximize";
|
|
13
|
+
/** 关闭最大化动作标识,仅用于最大化预览顶部栏 */
|
|
14
|
+
export declare const TABLE_CARD_CLOSE_ACTION = "close";
|
|
15
|
+
/** 复制成功反馈态属性 */
|
|
16
|
+
export declare const TABLE_CARD_COPIED_ATTRIBUTE = "data-copied";
|
|
17
|
+
/** 复制成功反馈持续时长(毫秒) */
|
|
18
|
+
export declare const TABLE_CARD_COPY_FEEDBACK_MS = 1500;
|
|
19
|
+
/**
|
|
20
|
+
* 最大化预览右上角的浮层按钮:复制在左、关闭最大化在右。
|
|
21
|
+
*
|
|
22
|
+
* 关闭按钮沿用图片预览的图标字体字形,保证两处全屏预览的关闭入口完全一致;
|
|
23
|
+
* 交互由组件在按钮容器上做事件委托处理。
|
|
24
|
+
*/
|
|
25
|
+
export declare const TABLE_CARD_PREVIEW_ACTIONS_HTML: string;
|
|
26
|
+
/**
|
|
27
|
+
* 让 Markdown 表格渲染为「圆角卡片 + 导航区(标题 + 复制/最大化)」。
|
|
28
|
+
*
|
|
29
|
+
* 实现只在 `table_open` / `table_close` 两侧加壳,`<table>` 自身 HTML 完全交由
|
|
30
|
+
* markdown-it 默认渲染,因此表格语义与既有样式钩子保持不变;又因为所有使用位
|
|
31
|
+
* 都经过同一个 `FXMarkdown`,卡片行为对调用方零改动即可全局生效。
|
|
32
|
+
*
|
|
33
|
+
* 卡片容器同时承担表格外框职责(表格单元格只画右侧与下侧边线),因此最大化预览
|
|
34
|
+
* 必须为 `<table>` 提供带描边的容器,否则表格四周的边线会缺失。
|
|
35
|
+
*
|
|
36
|
+
* 导航区处于 `innerHTML` 注入的子树内,无法挂载 Vue 子组件,交互由组件在内容
|
|
37
|
+
* 容器与预览容器上做事件委托处理(见 `markdown.component.tsx`)。
|
|
38
|
+
*/
|
|
39
|
+
export declare function applyTableCardRenderer(md: MarkdownIt): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 把表格序列化为 TSV 纯文本,便于直接粘贴到 Excel / WPS 自动分列。
|
|
3
|
+
*
|
|
4
|
+
* 规整规则:
|
|
5
|
+
* - 单元格文本取 `textContent`,把换行符与制表符折叠为单个空格后去除首尾空白;
|
|
6
|
+
* - 带 `colspan` 的单元格按跨列数补足空单元格占位,保证每行列数一致;
|
|
7
|
+
* - 行内以制表符连接、行间以换行符连接,末尾不追加换行。
|
|
8
|
+
*
|
|
9
|
+
* 已知限制:`rowspan` 不会补齐被占用的下方单元格,复制结果可能与该列错位。
|
|
10
|
+
*/
|
|
11
|
+
export declare function tableToTsv(table: HTMLTableElement): string;
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import { ComputedRef } from '../../../../vue';
|
|
2
|
-
|
|
3
1
|
export interface NavItem {
|
|
4
2
|
id: string;
|
|
5
3
|
text: string;
|
|
6
4
|
num?: number;
|
|
7
5
|
disable?: boolean;
|
|
8
6
|
}
|
|
9
|
-
export interface UseNavRightSlot {
|
|
10
|
-
/** 是否渲染右侧扩展区:仅横向模式且调用方传入 right slot 时为 true(纵向模式静默忽略) */
|
|
11
|
-
shouldShowRightSlot: ComputedRef<boolean>;
|
|
12
|
-
}
|
|
13
7
|
export type ShouldContinueResult = {
|
|
14
8
|
canContinue: boolean;
|
|
15
9
|
message?: string;
|
package/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Plugin } from '../../vue';
|
|
2
|
+
import { default as FXPrompts } from '../../src/prompts.component';
|
|
3
|
+
import { default as FXPrompt } from '../../src/components/prompt.component';
|
|
4
|
+
|
|
5
|
+
export * from '../../src/prompts.props';
|
|
6
|
+
export * from '../../src/components/prompt.props';
|
|
7
|
+
export { FXPrompts, FXPrompt };
|
|
8
|
+
declare const _default: typeof FXPrompts & Plugin;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { VNode, CSSProperties } from '../../../../vue';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('../../../../vue').DefineComponent<import('../../../../vue').ExtractPropTypes<{
|
|
4
|
+
id: {
|
|
5
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
icon: {
|
|
9
|
+
type: import('../../../../vue').PropType<string | VNode>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
label: {
|
|
13
|
+
type: import('../../../../vue').PropType<string | VNode>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
description: {
|
|
17
|
+
type: import('../../../../vue').PropType<string | VNode>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
badge: {
|
|
21
|
+
type: import('../../../../vue').PropType<string | VNode>;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
disabled: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
children: {
|
|
29
|
+
type: import('../../../../vue').PropType<import('../../../../../composition/type').BasePromptItemType[]>;
|
|
30
|
+
default: () => never[];
|
|
31
|
+
};
|
|
32
|
+
styles: {
|
|
33
|
+
type: import('../../../../vue').PropType<Record<import('../../../../../composition/type').AppearanceType, CSSProperties | string>>;
|
|
34
|
+
};
|
|
35
|
+
classNames: {
|
|
36
|
+
type: import('../../../../vue').PropType<Record<import('../../../../../composition/type').AppearanceType, string | string[] | Record<string, boolean>>>;
|
|
37
|
+
};
|
|
38
|
+
customClass: {
|
|
39
|
+
type: import('../../../../vue').PropType<string | string[] | Record<string, boolean>>;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
customStyle: {
|
|
43
|
+
type: import('../../../../vue').PropType<CSSProperties | string>;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
showType: {
|
|
47
|
+
type: import('../../../../vue').PropType<import('../../../../../composition/type').PromptShowType>;
|
|
48
|
+
default: import('../../../../../composition/type').PromptShowType;
|
|
49
|
+
};
|
|
50
|
+
gap: {
|
|
51
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
52
|
+
};
|
|
53
|
+
onClick: {
|
|
54
|
+
type: import('../../../../vue').PropType<(ev: MouseEvent) => void>;
|
|
55
|
+
required: boolean;
|
|
56
|
+
};
|
|
57
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../../vue').ComponentOptionsMixin, import('../../../../vue').ComponentOptionsMixin, {}, string, import('../../../../vue').PublicProps, Readonly<import('../../../../vue').ExtractPropTypes<{
|
|
58
|
+
id: {
|
|
59
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
icon: {
|
|
63
|
+
type: import('../../../../vue').PropType<string | VNode>;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
label: {
|
|
67
|
+
type: import('../../../../vue').PropType<string | VNode>;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
description: {
|
|
71
|
+
type: import('../../../../vue').PropType<string | VNode>;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
badge: {
|
|
75
|
+
type: import('../../../../vue').PropType<string | VNode>;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
disabled: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
children: {
|
|
83
|
+
type: import('../../../../vue').PropType<import('../../../../../composition/type').BasePromptItemType[]>;
|
|
84
|
+
default: () => never[];
|
|
85
|
+
};
|
|
86
|
+
styles: {
|
|
87
|
+
type: import('../../../../vue').PropType<Record<import('../../../../../composition/type').AppearanceType, CSSProperties | string>>;
|
|
88
|
+
};
|
|
89
|
+
classNames: {
|
|
90
|
+
type: import('../../../../vue').PropType<Record<import('../../../../../composition/type').AppearanceType, string | string[] | Record<string, boolean>>>;
|
|
91
|
+
};
|
|
92
|
+
customClass: {
|
|
93
|
+
type: import('../../../../vue').PropType<string | string[] | Record<string, boolean>>;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
customStyle: {
|
|
97
|
+
type: import('../../../../vue').PropType<CSSProperties | string>;
|
|
98
|
+
default: string;
|
|
99
|
+
};
|
|
100
|
+
showType: {
|
|
101
|
+
type: import('../../../../vue').PropType<import('../../../../../composition/type').PromptShowType>;
|
|
102
|
+
default: import('../../../../../composition/type').PromptShowType;
|
|
103
|
+
};
|
|
104
|
+
gap: {
|
|
105
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
106
|
+
};
|
|
107
|
+
onClick: {
|
|
108
|
+
type: import('../../../../vue').PropType<(ev: MouseEvent) => void>;
|
|
109
|
+
required: boolean;
|
|
110
|
+
};
|
|
111
|
+
}>> & Readonly<{}>, {
|
|
112
|
+
label: string | VNode<import('../../../../vue').RendererNode, import('../../../../vue').RendererElement, {
|
|
113
|
+
[key: string]: any;
|
|
114
|
+
}>;
|
|
115
|
+
customClass: string | string[] | Record<string, boolean>;
|
|
116
|
+
icon: string | VNode<import('../../../../vue').RendererNode, import('../../../../vue').RendererElement, {
|
|
117
|
+
[key: string]: any;
|
|
118
|
+
}>;
|
|
119
|
+
id: string | number;
|
|
120
|
+
customStyle: string | CSSProperties;
|
|
121
|
+
disabled: boolean;
|
|
122
|
+
description: string | VNode<import('../../../../vue').RendererNode, import('../../../../vue').RendererElement, {
|
|
123
|
+
[key: string]: any;
|
|
124
|
+
}>;
|
|
125
|
+
showType: import('../../../../../composition/type').PromptShowType;
|
|
126
|
+
badge: string | VNode<import('../../../../vue').RendererNode, import('../../../../vue').RendererElement, {
|
|
127
|
+
[key: string]: any;
|
|
128
|
+
}>;
|
|
129
|
+
children: import('../../../../../composition/type').BasePromptItemType[];
|
|
130
|
+
}, {}, {}, {}, string, import('../../../../vue').ComponentProvideOptions, true, {}, any>;
|
|
131
|
+
export default _default;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType, VNode, CSSProperties } from '../../../../vue';
|
|
2
|
+
import { AppearanceType, BasePromptItemType, PromptShowType } from '../../../../../composition/type';
|
|
3
|
+
|
|
4
|
+
export declare const promptProps: {
|
|
5
|
+
/** 唯一标识 */
|
|
6
|
+
id: {
|
|
7
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
/** 提示图标
|
|
11
|
+
* 支持:图标字符、图片 URL、VNode
|
|
12
|
+
*/
|
|
13
|
+
icon: {
|
|
14
|
+
type: PropType<string | VNode>;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
/** 提示标签 */
|
|
18
|
+
label: {
|
|
19
|
+
type: PropType<string | VNode>;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
/** 提示描述 */
|
|
23
|
+
description: {
|
|
24
|
+
type: PropType<string | VNode>;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
badge: {
|
|
28
|
+
type: PropType<string | VNode>;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
/** 是否禁用 */
|
|
32
|
+
disabled: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
/** 子项(嵌套) */
|
|
37
|
+
children: {
|
|
38
|
+
type: PropType<BasePromptItemType[]>;
|
|
39
|
+
default: () => never[];
|
|
40
|
+
};
|
|
41
|
+
/** 自定义样式 key: value */
|
|
42
|
+
styles: {
|
|
43
|
+
type: PropType<Record<AppearanceType, CSSProperties | string>>;
|
|
44
|
+
};
|
|
45
|
+
/** 自定义样式类名 key: value*/
|
|
46
|
+
classNames: {
|
|
47
|
+
type: PropType<Record<AppearanceType, string | string[] | Record<string, boolean>>>;
|
|
48
|
+
};
|
|
49
|
+
/** 组件自定义样式类名 */
|
|
50
|
+
customClass: {
|
|
51
|
+
type: PropType<string | string[] | Record<string, boolean>>;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
/** 组件自定义样式 */
|
|
55
|
+
customStyle: {
|
|
56
|
+
type: PropType<CSSProperties | string>;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* standard-feature-card :标准规格功能卡片
|
|
61
|
+
* primary-feature-card:核心主功能卡尺寸大
|
|
62
|
+
* compact-feature-card:紧凑型功能卡片
|
|
63
|
+
* standard-question-item:标准规格问题项
|
|
64
|
+
* default-text-item:标准规格文本项
|
|
65
|
+
*/
|
|
66
|
+
showType: {
|
|
67
|
+
type: PropType<PromptShowType>;
|
|
68
|
+
default: PromptShowType;
|
|
69
|
+
};
|
|
70
|
+
gap: {
|
|
71
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
72
|
+
};
|
|
73
|
+
/** 点击整项回调(演示/列表场景) */
|
|
74
|
+
onClick: {
|
|
75
|
+
type: PropType<(ev: MouseEvent) => void>;
|
|
76
|
+
required: boolean;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
export type PromptProps = ExtractPropTypes<typeof promptProps>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { VNode } from '../../../../vue';
|
|
2
|
+
|
|
3
|
+
export declare enum PromptShowType {
|
|
4
|
+
standardFeatureCard = "standard-feature-card",
|
|
5
|
+
primaryFeatureCard = "primary-feature-card",
|
|
6
|
+
compactFeatureCard = "compact-feature-card",
|
|
7
|
+
standardQuestionItem = "standard-question-item",
|
|
8
|
+
functionEntryItem = "function-entry-item",
|
|
9
|
+
defaultTextItem = "default-text-item",
|
|
10
|
+
hasNestEntryItem = "has-nest-entry-item",
|
|
11
|
+
likeButtonEntryItem = "like-button-entry-item",
|
|
12
|
+
none = ""
|
|
13
|
+
}
|
|
14
|
+
export interface BasePromptItemType {
|
|
15
|
+
/** 唯一标识用于区分每个提示项 */
|
|
16
|
+
id?: string | number;
|
|
17
|
+
/** 提示图标显示在提示项的左侧 */
|
|
18
|
+
icon?: string | VNode;
|
|
19
|
+
/** 提示标签显示提示的主要内容 */
|
|
20
|
+
label?: string | VNode;
|
|
21
|
+
/** 提示描述提供额外的信息 */
|
|
22
|
+
description?: string | VNode;
|
|
23
|
+
/** 设置为 true 时禁用点击事件 */
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
showType?: PromptShowType;
|
|
26
|
+
customClass?: Partial<string | string[] | Record<string, boolean>>;
|
|
27
|
+
customStyle?: string;
|
|
28
|
+
badge?: string | VNode;
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}
|
|
31
|
+
export interface PromptItemType extends BasePromptItemType {
|
|
32
|
+
children?: BasePromptItemType[];
|
|
33
|
+
}
|
|
34
|
+
export type AppearanceType = "root" | "items" | "item" | "itemContent" | "title" | "subItems" | "subItem" | "icon" | "label" | "badge" | "description";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { PromptItemType } from '../../../composition/type';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('../../../vue').DefineComponent<{
|
|
4
|
+
title: string | import('../../../vue').VNode<import('../../../vue').RendererNode, import('../../../vue').RendererElement, {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}>;
|
|
7
|
+
items: PromptItemType[];
|
|
8
|
+
customClass: string | string[] | Record<string, boolean>;
|
|
9
|
+
classNames: Record<import('../../../composition/type').AppearanceType, string | string[] | Record<string, boolean>>;
|
|
10
|
+
customStyle: string | import('../../../vue').CSSProperties;
|
|
11
|
+
styles: Record<import('../../../composition/type').AppearanceType, import('../../../vue').CSSProperties>;
|
|
12
|
+
gap: string | number;
|
|
13
|
+
wrap: boolean;
|
|
14
|
+
vertical: boolean;
|
|
15
|
+
fadeIn: boolean;
|
|
16
|
+
fadeInLeft: boolean;
|
|
17
|
+
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, string, import('../../../vue').PublicProps, Readonly<{
|
|
18
|
+
title: string | import('../../../vue').VNode<import('../../../vue').RendererNode, import('../../../vue').RendererElement, {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
}>;
|
|
21
|
+
items: PromptItemType[];
|
|
22
|
+
customClass: string | string[] | Record<string, boolean>;
|
|
23
|
+
classNames: Record<import('../../../composition/type').AppearanceType, string | string[] | Record<string, boolean>>;
|
|
24
|
+
customStyle: string | import('../../../vue').CSSProperties;
|
|
25
|
+
styles: Record<import('../../../composition/type').AppearanceType, import('../../../vue').CSSProperties>;
|
|
26
|
+
gap: string | number;
|
|
27
|
+
wrap: boolean;
|
|
28
|
+
vertical: boolean;
|
|
29
|
+
fadeIn: boolean;
|
|
30
|
+
fadeInLeft: boolean;
|
|
31
|
+
}> & Readonly<{}>, {
|
|
32
|
+
title: string | import('../../../vue').VNode<import('../../../vue').RendererNode, import('../../../vue').RendererElement, {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}>;
|
|
35
|
+
items: PromptItemType[];
|
|
36
|
+
customClass: string | string[] | Record<string, boolean>;
|
|
37
|
+
classNames: Record<import('../../../composition/type').AppearanceType, string | string[] | Record<string, boolean>>;
|
|
38
|
+
customStyle: string | import('../../../vue').CSSProperties;
|
|
39
|
+
styles: Record<import('../../../composition/type').AppearanceType, import('../../../vue').CSSProperties>;
|
|
40
|
+
gap: string | number;
|
|
41
|
+
wrap: boolean;
|
|
42
|
+
vertical: boolean;
|
|
43
|
+
fadeIn: boolean;
|
|
44
|
+
fadeInLeft: boolean;
|
|
45
|
+
}, {}, {}, {}, string, import('../../../vue').ComponentProvideOptions, true, {}, any>;
|
|
46
|
+
export default _default;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType, VNode, CSSProperties } from '../../../vue';
|
|
2
|
+
import { PromptItemType, AppearanceType } from '../../../composition/type';
|
|
3
|
+
|
|
4
|
+
export declare const promptsProps: {
|
|
5
|
+
/** 包含多个提示项的列表 */
|
|
6
|
+
items: {
|
|
7
|
+
type: PropType<PromptItemType[]>;
|
|
8
|
+
default: () => never[];
|
|
9
|
+
};
|
|
10
|
+
/** 显示在提示列表顶部的标题 */
|
|
11
|
+
title: {
|
|
12
|
+
type: PropType<string | VNode>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
/** 提示列表是否垂直排列 */
|
|
16
|
+
vertical: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
/** 提示列表是否换行 */
|
|
21
|
+
wrap: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
/** 间距 */
|
|
26
|
+
gap: {
|
|
27
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
28
|
+
default: number;
|
|
29
|
+
};
|
|
30
|
+
/** 是否开启渲染渐入 */
|
|
31
|
+
fadeIn: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
/** 是否开启渲染从左到右渐入 */
|
|
36
|
+
fadeInLeft: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
/** 自定义样式 */
|
|
41
|
+
styles: {
|
|
42
|
+
type: PropType<Record<AppearanceType, CSSProperties>>;
|
|
43
|
+
default: () => {};
|
|
44
|
+
};
|
|
45
|
+
/** 自定义样式类名 */
|
|
46
|
+
classNames: {
|
|
47
|
+
type: PropType<Record<AppearanceType, string | string[] | Record<string, boolean>>>;
|
|
48
|
+
default: () => {};
|
|
49
|
+
};
|
|
50
|
+
/** 组件自定义样式类名 */
|
|
51
|
+
customClass: {
|
|
52
|
+
type: PropType<string | string[] | Record<string, boolean>>;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
/** 组件自定义样式 */
|
|
56
|
+
customStyle: {
|
|
57
|
+
type: PropType<CSSProperties | string>;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export type PromptsProps = ExtractPropTypes<typeof promptsProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Plugin } from '../../vue';
|
|
2
|
+
import { default as FXReferenceSources } from '../../src/reference-sources.component';
|
|
3
|
+
|
|
4
|
+
export * from '../../src/types';
|
|
5
|
+
export { FXReferenceSources };
|
|
6
|
+
declare const _default: typeof FXReferenceSources & Plugin;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PropType } from '../../../vue';
|
|
2
|
+
import { MessageContentReferenceSources } from '../../../types';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('../../../vue').DefineComponent<import('../../../vue').ExtractPropTypes<{
|
|
5
|
+
content: {
|
|
6
|
+
type: PropType<MessageContentReferenceSources>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, string, import('../../../vue').PublicProps, Readonly<import('../../../vue').ExtractPropTypes<{
|
|
10
|
+
content: {
|
|
11
|
+
type: PropType<MessageContentReferenceSources>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('../../../vue').ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,9 +4,9 @@ import { IconStatus } from '../../../../type';
|
|
|
4
4
|
type StatusIconVariant = 'todo' | 'thinking' | 'tool-use' | 'attachment' | '';
|
|
5
5
|
/** 状态图标:
|
|
6
6
|
*
|
|
7
|
-
'NotStart'
|
|
8
|
-
'Working'
|
|
9
|
-
'Done'
|
|
7
|
+
'NotStart' :未开始,默认绿色圆圈。任务场景下是灰色空心圆。
|
|
8
|
+
'Working' :进行中,默认绿色转圈。任务场景下是蓝色空心圆。
|
|
9
|
+
'Done':已完成,默认绿色空心对号。任务场景下是绿色实心对号。
|
|
10
10
|
'Error ':失败,默认红色
|
|
11
11
|
*/
|
|
12
12
|
export declare function StatusIcon({ status, variant }: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AppearanceType = "icon" | "title" | "description" | "content";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const _default: import('../../../vue').DefineComponent<{
|
|
2
|
+
customClass: string | string[] | Record<string, boolean>;
|
|
3
|
+
classNames: Record<import('../../../composition/type').AppearanceType, string | string[] | Record<string, boolean>>;
|
|
4
|
+
customStyle: string | import('../../../vue').CSSProperties;
|
|
5
|
+
styles: Record<import('../../../composition/type').AppearanceType, import('../../../vue').CSSProperties>;
|
|
6
|
+
title?: string | import('../../../vue').VNode<import('../../../vue').RendererNode, import('../../../vue').RendererElement, {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}> | undefined;
|
|
9
|
+
icon?: string | import('../../../vue').VNode<import('../../../vue').RendererNode, import('../../../vue').RendererElement, {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}> | undefined;
|
|
12
|
+
description?: string | import('../../../vue').VNode<import('../../../vue').RendererNode, import('../../../vue').RendererElement, {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}> | undefined;
|
|
15
|
+
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, string, import('../../../vue').PublicProps, Readonly<{
|
|
16
|
+
customClass: string | string[] | Record<string, boolean>;
|
|
17
|
+
classNames: Record<import('../../../composition/type').AppearanceType, string | string[] | Record<string, boolean>>;
|
|
18
|
+
customStyle: string | import('../../../vue').CSSProperties;
|
|
19
|
+
styles: Record<import('../../../composition/type').AppearanceType, import('../../../vue').CSSProperties>;
|
|
20
|
+
title?: string | import('../../../vue').VNode<import('../../../vue').RendererNode, import('../../../vue').RendererElement, {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}> | undefined;
|
|
23
|
+
icon?: string | import('../../../vue').VNode<import('../../../vue').RendererNode, import('../../../vue').RendererElement, {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}> | undefined;
|
|
26
|
+
description?: string | import('../../../vue').VNode<import('../../../vue').RendererNode, import('../../../vue').RendererElement, {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}> | undefined;
|
|
29
|
+
}> & Readonly<{}>, {
|
|
30
|
+
customClass: string | string[] | Record<string, boolean>;
|
|
31
|
+
classNames: Record<import('../../../composition/type').AppearanceType, string | string[] | Record<string, boolean>>;
|
|
32
|
+
customStyle: string | import('../../../vue').CSSProperties;
|
|
33
|
+
styles: Record<import('../../../composition/type').AppearanceType, import('../../../vue').CSSProperties>;
|
|
34
|
+
}, {}, {}, {}, string, import('../../../vue').ComponentProvideOptions, true, {}, any>;
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CSSProperties, ExtractPropTypes, PropType, VNode } from '../../../vue';
|
|
2
|
+
import { AppearanceType } from '../../../composition/type';
|
|
3
|
+
|
|
4
|
+
export declare const welcomeProps: {
|
|
5
|
+
/** 图标 */
|
|
6
|
+
icon: PropType<string | VNode>;
|
|
7
|
+
/** 标题 */
|
|
8
|
+
title: PropType<string | VNode>;
|
|
9
|
+
/** 描述 */
|
|
10
|
+
description: PropType<string | VNode>;
|
|
11
|
+
customClass: {
|
|
12
|
+
type: PropType<string | string[] | Record<string, boolean>>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
customStyle: {
|
|
16
|
+
type: PropType<CSSProperties | string>;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
/** 自定义样式 */
|
|
20
|
+
styles: {
|
|
21
|
+
type: PropType<Record<AppearanceType, CSSProperties>>;
|
|
22
|
+
default: () => {};
|
|
23
|
+
};
|
|
24
|
+
/** 自定义样式类名 */
|
|
25
|
+
classNames: {
|
|
26
|
+
type: PropType<Record<AppearanceType, string | string[] | Record<string, boolean>>>;
|
|
27
|
+
default: () => {};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export type WelcomeProps = ExtractPropTypes<typeof welcomeProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|