@farris/x-ui 0.0.1
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/app-preview/src/types.d.ts +37 -0
- package/attachment-preview/index.d.ts +8 -0
- package/attachment-preview/src/attachment-preview.component.d.ts +20 -0
- package/attachment-preview/src/attachment-preview.props.d.ts +13 -0
- package/attachment-preview/src/types.d.ts +27 -0
- package/bubble/index.d.ts +10 -0
- package/bubble/src/bubble.component.d.ts +119 -0
- package/bubble/src/bubble.props.d.ts +79 -0
- package/bubble/src/components/action/bubble-action.component.d.ts +11 -0
- package/bubble/src/components/action/bubble-action.props.d.ts +15 -0
- package/bubble/src/components/attachment/bubble-attachment.component.d.ts +16 -0
- package/bubble/src/components/attachment/bubble-attachment.props.d.ts +18 -0
- package/bubble/src/components/bubble-think/bubble-think.component.d.ts +10 -0
- package/bubble/src/components/bubble-think/bubble-think.props.d.ts +16 -0
- package/bubble/src/components/bubble-thought-chain/bubble-thought-chain.component.d.ts +6 -0
- package/bubble/src/components/bubble-thought-chain/bubble-thought-chain.props.d.ts +9 -0
- package/bubble/src/components/embedded-content/file/file-embedded-content.component.d.ts +16 -0
- package/bubble/src/components/embedded-content/file/file-embedded-content.props.d.ts +26 -0
- package/bubble/src/components/embedded-content/page/page-embedded-content.component.d.ts +13 -0
- package/bubble/src/components/embedded-content/page/page-embedded-content.props.d.ts +20 -0
- package/bubble/src/components/header/content-header.component.d.ts +6 -0
- package/bubble/src/components/header/sender-header.component.d.ts +6 -0
- package/bubble/src/components/text-content/text-content.component.d.ts +20 -0
- package/bubble/src/components/text-content/text-content.props.d.ts +32 -0
- package/bubble/src/composition/types.d.ts +153 -0
- package/bubble/src/composition/use-attachment.d.ts +5 -0
- package/bubble/src/composition/use-embedded-content.d.ts +12 -0
- package/bubble/src/composition/use-widget-content.d.ts +47 -0
- package/bubble/test/bubble.spec.d.ts +1 -0
- package/carousel/index.d.ts +10 -0
- package/carousel/src/carousel.component.d.ts +169 -0
- package/carousel/src/carousel.props.d.ts +94 -0
- package/carousel/src/components/carousel-item.component.d.ts +61 -0
- package/carousel/src/components/carousel-item.props.d.ts +35 -0
- package/carousel/src/composition/type.d.ts +27 -0
- package/carousel/src/composition/use-carousel.d.ts +23 -0
- package/carousel/test/carousel.spec.d.ts +1 -0
- package/chat-preview/index.d.ts +13 -0
- package/chat-preview/src/agent-workbench-sdk.d.ts +61 -0
- package/chat-preview/src/chat-preview.component.d.ts +34 -0
- package/chat-preview/src/chat-preview.props.d.ts +19 -0
- package/chat-preview/src/preview-bridge-protocol.d.ts +22 -0
- package/chat-preview/src/preview-chrome-sdk.d.ts +28 -0
- package/chat-preview/src/preview-iframe-sdk.d.ts +6 -0
- package/coding/index.d.ts +8 -0
- package/coding/src/coding.component.d.ts +12 -0
- package/coding/src/coding.props.d.ts +10 -0
- package/coding/src/types.d.ts +23 -0
- package/common/index.d.ts +7 -0
- package/common/src/runtime-attachment-download.d.ts +16 -0
- package/common/src/types.d.ts +2 -0
- package/common/src/use-appearance.d.ts +14 -0
- package/common/src/use-render.d.ts +15 -0
- package/common/src/use-sequential-streaming.d.ts +19 -0
- package/common/src/use-streaming-output.d.ts +18 -0
- package/common/src/use-timer.d.ts +7 -0
- package/components.d.ts +40 -0
- package/confirm-dialog/index.d.ts +7 -0
- package/confirm-dialog/src/confirm-dialog.component.d.ts +38 -0
- package/confirm-dialog/src/confirm-dialog.props.d.ts +33 -0
- package/dynamic-component/index.d.ts +7 -0
- package/dynamic-component/src/composition/dynamic-component-registry.d.ts +9 -0
- package/dynamic-component/src/composition/types.d.ts +18 -0
- package/dynamic-component/src/composition/use-dynamic-component-parser.d.ts +14 -0
- package/dynamic-component/src/dynamic-component.component.d.ts +15 -0
- package/enterprise-cloud/index.d.ts +16 -0
- package/enterprise-cloud/src/agent-thinking.component.d.ts +15 -0
- package/enterprise-cloud/src/attachment-file.component.d.ts +15 -0
- package/enterprise-cloud/src/error-reminder.component.d.ts +15 -0
- package/enterprise-cloud/src/hitl-question.component.d.ts +43 -0
- package/enterprise-cloud/src/input-recommend.component.d.ts +25 -0
- package/enterprise-cloud/src/link-card.component.d.ts +15 -0
- package/enterprise-cloud/src/reference-sources.component.d.ts +15 -0
- package/enterprise-cloud/src/types.d.ts +155 -0
- package/enterprise-cloud/src/unknown-enterprise.component.d.ts +15 -0
- package/enterprise-cloud/src/user-auth.component.d.ts +25 -0
- package/farris.x-ui.esm.js +13185 -0
- package/farris.x-ui.umd.cjs +108 -0
- package/file-operation/index.d.ts +8 -0
- package/file-operation/src/file-operation.component.d.ts +12 -0
- package/file-operation/src/file-operation.props.d.ts +10 -0
- package/file-operation/src/types.d.ts +30 -0
- package/generate-process/index.d.ts +7 -0
- package/generate-process/src/composition/type.d.ts +1 -0
- package/generate-process/src/generate-process.component.d.ts +41 -0
- package/generate-process/src/generate-process.props.d.ts +47 -0
- package/history/index.d.ts +7 -0
- package/history/src/composition/type.d.ts +8 -0
- package/history/src/history.component.d.ts +15 -0
- package/history/src/history.props.d.ts +14 -0
- package/index.css +1 -0
- package/index.d.ts +8 -0
- package/markdown/index.d.ts +8 -0
- package/markdown/src/markdown.component.d.ts +12 -0
- package/markdown/src/markdown.props.d.ts +10 -0
- package/markdown/src/types.d.ts +8 -0
- package/markdown-preview/index.d.ts +7 -0
- package/markdown-preview/src/markdown-preview.component.d.ts +9 -0
- package/markdown-preview/src/markdown-preview.props.d.ts +9 -0
- package/package.json +19 -0
- 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/started-todo/index.d.ts +8 -0
- package/started-todo/src/started-todo.component.d.ts +108 -0
- package/started-todo/src/started-todo.props.d.ts +54 -0
- package/started-todo/src/types.d.ts +9 -0
- package/suggestion/index.d.ts +7 -0
- package/suggestion/src/composition/type.d.ts +6 -0
- package/suggestion/src/suggestion.component.d.ts +37 -0
- package/suggestion/src/suggestion.props.d.ts +34 -0
- package/todo/index.d.ts +12 -0
- package/todo/src/components/todo-list-item-view.component.d.ts +112 -0
- package/todo/src/components/todo-list-item-view.props.d.ts +57 -0
- package/todo/src/components/todo-list-view.d.ts +17 -0
- package/todo/src/components/todo-list-view.props.d.ts +11 -0
- package/todo/src/composition/status-icon.d.ts +6 -0
- package/todo/src/composition/type.d.ts +32 -0
- package/todo/src/todo.component.d.ts +41 -0
- package/todo/src/todo.props.d.ts +24 -0
- package/tool-use/index.d.ts +6 -0
- package/tool-use/src/tool-use.component.d.ts +19 -0
- 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/widget-container/index.d.ts +8 -0
- package/widget-container/src/composition/class/stage.class.d.ts +10 -0
- package/widget-container/src/composition/types.d.ts +24 -0
- package/widget-container/src/composition/use-deep-equal.d.ts +3 -0
- package/widget-container/src/composition/use-load-widget.d.ts +5 -0
- package/widget-container/src/widget-container.component.d.ts +28 -0
- package/widget-container/src/widget-container.props.d.ts +35 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { MessageContentMarkdown } from './types';
|
|
3
|
+
|
|
4
|
+
export declare const markdownMessageProps: {
|
|
5
|
+
content: {
|
|
6
|
+
type: PropType<MessageContentMarkdown>;
|
|
7
|
+
required: boolean;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export type MarkdownMessageProps = ExtractPropTypes<typeof markdownMessageProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { default as FXMarkdownPreview } from './src/markdown-preview.component';
|
|
3
|
+
|
|
4
|
+
export * from './src/markdown-preview.props';
|
|
5
|
+
export { FXMarkdownPreview };
|
|
6
|
+
declare const _default: typeof FXMarkdownPreview & Plugin;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
declare const _default: import('vue').DefineComponent<{
|
|
3
|
+
content: string;
|
|
4
|
+
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
5
|
+
content: string;
|
|
6
|
+
}> & Readonly<{}>, {
|
|
7
|
+
content: string;
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
package/package.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@farris/x-ui",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "可复用的 AI 对话组件",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./farris.x-ui.umd.cjs",
|
|
7
|
+
"module": "./farris.x-ui.esm.js",
|
|
8
|
+
"types": "./components/index.d.ts",
|
|
9
|
+
"style": "./index.css",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@farris/ui-vue": "^1.6.0",
|
|
12
|
+
"@monaco-editor/loader": "^1.4.0",
|
|
13
|
+
"markdown-it": "^14.1.0",
|
|
14
|
+
"md-editor-v3": "^6.4.1"
|
|
15
|
+
},
|
|
16
|
+
"peerDependencies": {
|
|
17
|
+
"vue": "^3.2.0"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -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
|
+
children: import('../composition/type').BasePromptItemType[];
|
|
122
|
+
disabled: boolean;
|
|
123
|
+
description: string | VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
124
|
+
[key: string]: any;
|
|
125
|
+
}>;
|
|
126
|
+
showType: import('../composition/type').PromptShowType;
|
|
127
|
+
badge: string | VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
128
|
+
[key: string]: any;
|
|
129
|
+
}>;
|
|
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,8 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { default as FXStartedTodo } from './src/started-todo.component';
|
|
3
|
+
|
|
4
|
+
export * from './src/started-todo.props';
|
|
5
|
+
export * from './src/types';
|
|
6
|
+
export { FXStartedTodo };
|
|
7
|
+
declare const _default: typeof FXStartedTodo & Plugin;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { TodoItemStatus, TodoWorkItem } from '../../todo';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
type: {
|
|
5
|
+
type: import('vue').PropType<TodoItemStatus>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
status: {
|
|
9
|
+
type: import('vue').PropType<TodoItemStatus>;
|
|
10
|
+
default: TodoItemStatus;
|
|
11
|
+
};
|
|
12
|
+
message: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
taskDetail: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
todoList: {
|
|
21
|
+
type: import('vue').PropType<TodoWorkItem[]>;
|
|
22
|
+
default: never[];
|
|
23
|
+
};
|
|
24
|
+
detailViewMode: {
|
|
25
|
+
type: import('vue').PropType<import('../..').DetailViewMode>;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
initExpanded: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
showLoading: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
showLabel: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
loading: import('vue').PropType<import('vue').VNode>;
|
|
41
|
+
shimmer: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
outputMode: {
|
|
46
|
+
type: import('vue').PropType<import('../..').OutputMode>;
|
|
47
|
+
default: import('../..').OutputMode;
|
|
48
|
+
};
|
|
49
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
50
|
+
type: {
|
|
51
|
+
type: import('vue').PropType<TodoItemStatus>;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
status: {
|
|
55
|
+
type: import('vue').PropType<TodoItemStatus>;
|
|
56
|
+
default: TodoItemStatus;
|
|
57
|
+
};
|
|
58
|
+
message: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
taskDetail: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
todoList: {
|
|
67
|
+
type: import('vue').PropType<TodoWorkItem[]>;
|
|
68
|
+
default: never[];
|
|
69
|
+
};
|
|
70
|
+
detailViewMode: {
|
|
71
|
+
type: import('vue').PropType<import('../..').DetailViewMode>;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
initExpanded: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
showLoading: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
showLabel: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
loading: import('vue').PropType<import('vue').VNode>;
|
|
87
|
+
shimmer: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
outputMode: {
|
|
92
|
+
type: import('vue').PropType<import('../..').OutputMode>;
|
|
93
|
+
default: import('../..').OutputMode;
|
|
94
|
+
};
|
|
95
|
+
}>> & Readonly<{}>, {
|
|
96
|
+
type: TodoItemStatus;
|
|
97
|
+
message: string;
|
|
98
|
+
status: TodoItemStatus;
|
|
99
|
+
todoList: TodoWorkItem[];
|
|
100
|
+
detailViewMode: import('../..').DetailViewMode;
|
|
101
|
+
initExpanded: boolean;
|
|
102
|
+
showLoading: boolean;
|
|
103
|
+
showLabel: boolean;
|
|
104
|
+
shimmer: boolean;
|
|
105
|
+
outputMode: import('../..').OutputMode;
|
|
106
|
+
taskDetail: string;
|
|
107
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
108
|
+
export default _default;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType, VNode } from 'vue';
|
|
2
|
+
import { OutputMode } from '../../common';
|
|
3
|
+
import { TodoItemStatus, TodoWorkItem, DetailViewMode } from '../../todo';
|
|
4
|
+
|
|
5
|
+
export declare const startedTodoProps: {
|
|
6
|
+
type: {
|
|
7
|
+
type: PropType<TodoItemStatus>;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
status: {
|
|
11
|
+
type: PropType<TodoItemStatus>;
|
|
12
|
+
default: TodoItemStatus;
|
|
13
|
+
};
|
|
14
|
+
message: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
/** 标题下的补充说明(纯文本);expand 模式下随展开区收折,hover 模式下出现在子列表上方 */
|
|
19
|
+
taskDetail: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
todoList: {
|
|
24
|
+
type: PropType<TodoWorkItem[]>;
|
|
25
|
+
default: never[];
|
|
26
|
+
};
|
|
27
|
+
detailViewMode: {
|
|
28
|
+
type: PropType<DetailViewMode>;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
initExpanded: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
showLoading: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
showLabel: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
loading: PropType<VNode>;
|
|
44
|
+
shimmer: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
/** 与待办列表项一致:`taskDetail` 是否使用打字机效果 */
|
|
49
|
+
outputMode: {
|
|
50
|
+
type: PropType<OutputMode>;
|
|
51
|
+
default: OutputMode;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export type StartedTodoProps = ExtractPropTypes<typeof startedTodoProps>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { SuggestionItem } 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: SuggestionItem[];
|
|
8
|
+
height: number;
|
|
9
|
+
prompt: string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}>;
|
|
12
|
+
promptChar: import('./suggestion.props').PromptChar;
|
|
13
|
+
promptAgentName: string;
|
|
14
|
+
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
15
|
+
title: string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}>;
|
|
18
|
+
items: SuggestionItem[];
|
|
19
|
+
height: number;
|
|
20
|
+
prompt: string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}>;
|
|
23
|
+
promptChar: import('./suggestion.props').PromptChar;
|
|
24
|
+
promptAgentName: string;
|
|
25
|
+
}> & Readonly<{}>, {
|
|
26
|
+
title: string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}>;
|
|
29
|
+
items: SuggestionItem[];
|
|
30
|
+
height: number;
|
|
31
|
+
prompt: string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}>;
|
|
34
|
+
promptChar: import('./suggestion.props').PromptChar;
|
|
35
|
+
promptAgentName: string;
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
37
|
+
export default _default;
|