@apform-ui/core 1.10.19 → 1.10.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/apform-ui.css +1 -1
- package/dist/apform-ui.js +3858 -3443
- package/dist/apform-ui.umd.cjs +39 -39
- package/dist/components/Chat/ConversationSearchBar/ConversationSearchBar.vue.d.ts +45 -0
- package/dist/components/Chat/ConversationSearchBar/doc.d.ts +3 -0
- package/dist/components/Chat/ConversationSearchBar/index.d.ts +2 -0
- package/dist/components/Chat/ConversationSearchBar/types.d.ts +16 -0
- package/dist/components/Chat/FlowPreviewShell/FlowPreviewShell.vue.d.ts +26 -0
- package/dist/components/Chat/FlowPreviewShell/doc.d.ts +3 -0
- package/dist/components/Chat/FlowPreviewShell/index.d.ts +2 -0
- package/dist/components/Chat/FlowPreviewShell/types.d.ts +18 -0
- package/dist/components/Chat/Model3dPreviewCard/Model3dPreviewCard.vue.d.ts +3 -0
- package/dist/components/Chat/Model3dPreviewCard/doc.d.ts +3 -0
- package/dist/components/Chat/Model3dPreviewCard/index.d.ts +2 -0
- package/dist/components/Chat/Model3dPreviewCard/types.d.ts +14 -0
- package/dist/docs/index.d.ts +3 -0
- package/dist/index.d.ts +6 -0
- package/package.json +1 -1
- package/src/docs/index.ts +9 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ConversationSearchResult, ConversationSearchSourceOption } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue: string;
|
|
4
|
+
searching?: boolean;
|
|
5
|
+
panelVisible?: boolean;
|
|
6
|
+
results: ConversationSearchResult[];
|
|
7
|
+
total?: number;
|
|
8
|
+
sourceOptions?: ConversationSearchSourceOption[];
|
|
9
|
+
sourceFilter?: string;
|
|
10
|
+
startDate?: string;
|
|
11
|
+
endDate?: string;
|
|
12
|
+
filtersExpanded?: boolean;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
"update:modelValue": (value: string) => any;
|
|
17
|
+
select: (id: string) => any;
|
|
18
|
+
search: () => any;
|
|
19
|
+
clear: () => any;
|
|
20
|
+
"update:sourceFilter": (value: string) => any;
|
|
21
|
+
"update:startDate": (value: string) => any;
|
|
22
|
+
"update:endDate": (value: string) => any;
|
|
23
|
+
"update:filtersExpanded": (value: boolean) => any;
|
|
24
|
+
"update:panelVisible": (value: boolean) => any;
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
27
|
+
onSelect?: ((id: string) => any) | undefined;
|
|
28
|
+
onSearch?: (() => any) | undefined;
|
|
29
|
+
onClear?: (() => any) | undefined;
|
|
30
|
+
"onUpdate:sourceFilter"?: ((value: string) => any) | undefined;
|
|
31
|
+
"onUpdate:startDate"?: ((value: string) => any) | undefined;
|
|
32
|
+
"onUpdate:endDate"?: ((value: string) => any) | undefined;
|
|
33
|
+
"onUpdate:filtersExpanded"?: ((value: boolean) => any) | undefined;
|
|
34
|
+
"onUpdate:panelVisible"?: ((value: boolean) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
placeholder: string;
|
|
37
|
+
total: number;
|
|
38
|
+
panelVisible: boolean;
|
|
39
|
+
searching: boolean;
|
|
40
|
+
sourceFilter: string;
|
|
41
|
+
startDate: string;
|
|
42
|
+
endDate: string;
|
|
43
|
+
filtersExpanded: boolean;
|
|
44
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 对话搜索结果项
|
|
3
|
+
*/
|
|
4
|
+
export interface ConversationSearchResult {
|
|
5
|
+
id: string;
|
|
6
|
+
title: string;
|
|
7
|
+
updatedAt?: string | Date;
|
|
8
|
+
source?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 来源筛选项
|
|
12
|
+
*/
|
|
13
|
+
export interface ConversationSearchSourceOption {
|
|
14
|
+
value: string;
|
|
15
|
+
label: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FlowPreviewShellProps } from './types';
|
|
2
|
+
declare var __VLS_1: {}, __VLS_11: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
icon?: (props: typeof __VLS_1) => any;
|
|
5
|
+
} & {
|
|
6
|
+
default?: (props: typeof __VLS_11) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import('vue').DefineComponent<FlowPreviewShellProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
"primary-action": () => any;
|
|
10
|
+
"secondary-action": () => any;
|
|
11
|
+
"fit-view": () => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<FlowPreviewShellProps> & Readonly<{
|
|
13
|
+
"onPrimary-action"?: (() => any) | undefined;
|
|
14
|
+
"onSecondary-action"?: (() => any) | undefined;
|
|
15
|
+
"onFit-view"?: (() => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
compact: boolean;
|
|
18
|
+
showFitButton: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FlowPreviewShell 相关类型
|
|
3
|
+
*/
|
|
4
|
+
/** FlowPreviewShell props */
|
|
5
|
+
export interface FlowPreviewShellProps {
|
|
6
|
+
/** 卡片标题 */
|
|
7
|
+
title: string;
|
|
8
|
+
/** 右侧徽章文案,如「3 节点 / 2 连线」 */
|
|
9
|
+
badge?: string;
|
|
10
|
+
/** 主操作按钮文案 */
|
|
11
|
+
primaryAction?: string;
|
|
12
|
+
/** 次操作按钮文案 */
|
|
13
|
+
secondaryAction?: string;
|
|
14
|
+
/** 紧凑模式(消息内联卡) */
|
|
15
|
+
compact?: boolean;
|
|
16
|
+
/** 是否显示适配画布按钮,默认 true */
|
|
17
|
+
showFitButton?: boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Model3dPreviewCardProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<Model3dPreviewCardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Model3dPreviewCardProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model3dPreviewCard 相关类型
|
|
3
|
+
*/
|
|
4
|
+
/** Model3dPreviewCard props */
|
|
5
|
+
export interface Model3dPreviewCardProps {
|
|
6
|
+
/** 模型资源 URL */
|
|
7
|
+
url: string;
|
|
8
|
+
/** 文件名(用于推断格式徽章) */
|
|
9
|
+
filename?: string;
|
|
10
|
+
/** MIME 类型(预留) */
|
|
11
|
+
mimeType?: string;
|
|
12
|
+
/** model-viewer poster 图 */
|
|
13
|
+
poster?: string;
|
|
14
|
+
}
|
package/dist/docs/index.d.ts
CHANGED
|
@@ -39,10 +39,13 @@ export { ErrorRecoveryCardDoc } from '../components/Chat/ErrorRecoveryCard/doc';
|
|
|
39
39
|
export { VariableDiffCardDoc } from '../components/Chat/VariableDiffCard/doc';
|
|
40
40
|
export { SubWorkflowStatusCardDoc } from '../components/Chat/SubWorkflowStatusCard/doc';
|
|
41
41
|
export { PptPreviewCardDoc } from '../components/Chat/PptPreviewCard/doc';
|
|
42
|
+
export { FlowPreviewShellDoc } from '../components/Chat/FlowPreviewShell/doc';
|
|
43
|
+
export { Model3dPreviewCardDoc } from '../components/Chat/Model3dPreviewCard/doc';
|
|
42
44
|
export { ImageGenerateCardDoc } from '../components/Chat/ImageGenerateCard/doc';
|
|
43
45
|
export { SchemaFormPreviewDoc } from '../components/Chat/SchemaFormPreview/doc';
|
|
44
46
|
export { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/doc';
|
|
45
47
|
export { SuggestionCardDoc } from '../components/Chat/SuggestionCard/doc';
|
|
48
|
+
export { ConversationSearchBarDoc } from '../components/Chat/ConversationSearchBar/doc';
|
|
46
49
|
export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc';
|
|
47
50
|
export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc';
|
|
48
51
|
export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc';
|
package/dist/index.d.ts
CHANGED
|
@@ -111,6 +111,10 @@ export type { VariableDiffChange } from './components/Chat/VariableDiffCard';
|
|
|
111
111
|
export { SubWorkflowStatusCard } from './components/Chat/SubWorkflowStatusCard';
|
|
112
112
|
export { PptPreviewCard } from './components/Chat/PptPreviewCard';
|
|
113
113
|
export type { PptSlide, PptMetadata } from './components/Chat/PptPreviewCard';
|
|
114
|
+
export { FlowPreviewShell } from './components/Chat/FlowPreviewShell';
|
|
115
|
+
export type { FlowPreviewShellProps } from './components/Chat/FlowPreviewShell';
|
|
116
|
+
export { Model3dPreviewCard } from './components/Chat/Model3dPreviewCard';
|
|
117
|
+
export type { Model3dPreviewCardProps } from './components/Chat/Model3dPreviewCard';
|
|
114
118
|
export { ImageGenerateCard } from './components/Chat/ImageGenerateCard';
|
|
115
119
|
export type { ImageGenerateCardProps } from './components/Chat/ImageGenerateCard';
|
|
116
120
|
export { SchemaFormPreview } from './components/Chat/SchemaFormPreview';
|
|
@@ -119,6 +123,8 @@ export { WorkflowRunTimeline } from './components/Chat/WorkflowRunTimeline';
|
|
|
119
123
|
export type { WorkflowRunStep } from './components/Chat/WorkflowRunTimeline';
|
|
120
124
|
export { SuggestionCard } from './components/Chat/SuggestionCard';
|
|
121
125
|
export type { SuggestionItem } from './components/Chat/SuggestionCard';
|
|
126
|
+
export { ConversationSearchBar } from './components/Chat/ConversationSearchBar';
|
|
127
|
+
export type { ConversationSearchResult, ConversationSearchSourceOption, } from './components/Chat/ConversationSearchBar';
|
|
122
128
|
export { AssistantPicker } from './components/Chat/AssistantPicker';
|
|
123
129
|
export type { AssistantPickerItem } from './components/Chat/AssistantPicker';
|
|
124
130
|
export { ModelPicker } from './components/Chat/ModelPicker';
|
package/package.json
CHANGED
package/src/docs/index.ts
CHANGED
|
@@ -39,10 +39,13 @@ export { ErrorRecoveryCardDoc } from '../components/Chat/ErrorRecoveryCard/doc'
|
|
|
39
39
|
export { VariableDiffCardDoc } from '../components/Chat/VariableDiffCard/doc'
|
|
40
40
|
export { SubWorkflowStatusCardDoc } from '../components/Chat/SubWorkflowStatusCard/doc'
|
|
41
41
|
export { PptPreviewCardDoc } from '../components/Chat/PptPreviewCard/doc'
|
|
42
|
+
export { FlowPreviewShellDoc } from '../components/Chat/FlowPreviewShell/doc'
|
|
43
|
+
export { Model3dPreviewCardDoc } from '../components/Chat/Model3dPreviewCard/doc'
|
|
42
44
|
export { ImageGenerateCardDoc } from '../components/Chat/ImageGenerateCard/doc'
|
|
43
45
|
export { SchemaFormPreviewDoc } from '../components/Chat/SchemaFormPreview/doc'
|
|
44
46
|
export { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/doc'
|
|
45
47
|
export { SuggestionCardDoc } from '../components/Chat/SuggestionCard/doc'
|
|
48
|
+
export { ConversationSearchBarDoc } from '../components/Chat/ConversationSearchBar/doc'
|
|
46
49
|
export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
|
|
47
50
|
export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
|
|
48
51
|
export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
|
|
@@ -127,10 +130,13 @@ import { ErrorRecoveryCardDoc } from '../components/Chat/ErrorRecoveryCard/doc'
|
|
|
127
130
|
import { VariableDiffCardDoc } from '../components/Chat/VariableDiffCard/doc'
|
|
128
131
|
import { SubWorkflowStatusCardDoc } from '../components/Chat/SubWorkflowStatusCard/doc'
|
|
129
132
|
import { PptPreviewCardDoc } from '../components/Chat/PptPreviewCard/doc'
|
|
133
|
+
import { FlowPreviewShellDoc } from '../components/Chat/FlowPreviewShell/doc'
|
|
134
|
+
import { Model3dPreviewCardDoc } from '../components/Chat/Model3dPreviewCard/doc'
|
|
130
135
|
import { ImageGenerateCardDoc } from '../components/Chat/ImageGenerateCard/doc'
|
|
131
136
|
import { SchemaFormPreviewDoc } from '../components/Chat/SchemaFormPreview/doc'
|
|
132
137
|
import { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/doc'
|
|
133
138
|
import { SuggestionCardDoc } from '../components/Chat/SuggestionCard/doc'
|
|
139
|
+
import { ConversationSearchBarDoc } from '../components/Chat/ConversationSearchBar/doc'
|
|
134
140
|
import { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
|
|
135
141
|
import { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
|
|
136
142
|
import { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
|
|
@@ -216,10 +222,13 @@ export const componentDocs: Record<string, ComponentDoc> = {
|
|
|
216
222
|
VariableDiffCard: VariableDiffCardDoc,
|
|
217
223
|
SubWorkflowStatusCard: SubWorkflowStatusCardDoc,
|
|
218
224
|
PptPreviewCard: PptPreviewCardDoc,
|
|
225
|
+
FlowPreviewShell: FlowPreviewShellDoc,
|
|
226
|
+
Model3dPreviewCard: Model3dPreviewCardDoc,
|
|
219
227
|
ImageGenerateCard: ImageGenerateCardDoc,
|
|
220
228
|
SchemaFormPreview: SchemaFormPreviewDoc,
|
|
221
229
|
WorkflowRunTimeline: WorkflowRunTimelineDoc,
|
|
222
230
|
SuggestionCard: SuggestionCardDoc,
|
|
231
|
+
ConversationSearchBar: ConversationSearchBarDoc,
|
|
223
232
|
AttachmentPreviewModal: AttachmentPreviewModalDoc,
|
|
224
233
|
DocumentSummaryList: DocumentSummaryListDoc,
|
|
225
234
|
MessageAttachmentList: MessageAttachmentListDoc,
|