@apform-ui/core 1.10.20 → 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 +2744 -2526
- 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/docs/index.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
- package/src/docs/index.ts +3 -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
|
+
}
|
package/dist/docs/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export { ImageGenerateCardDoc } from '../components/Chat/ImageGenerateCard/doc';
|
|
|
45
45
|
export { SchemaFormPreviewDoc } from '../components/Chat/SchemaFormPreview/doc';
|
|
46
46
|
export { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/doc';
|
|
47
47
|
export { SuggestionCardDoc } from '../components/Chat/SuggestionCard/doc';
|
|
48
|
+
export { ConversationSearchBarDoc } from '../components/Chat/ConversationSearchBar/doc';
|
|
48
49
|
export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc';
|
|
49
50
|
export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc';
|
|
50
51
|
export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc';
|
package/dist/index.d.ts
CHANGED
|
@@ -123,6 +123,8 @@ export { WorkflowRunTimeline } from './components/Chat/WorkflowRunTimeline';
|
|
|
123
123
|
export type { WorkflowRunStep } from './components/Chat/WorkflowRunTimeline';
|
|
124
124
|
export { SuggestionCard } from './components/Chat/SuggestionCard';
|
|
125
125
|
export type { SuggestionItem } from './components/Chat/SuggestionCard';
|
|
126
|
+
export { ConversationSearchBar } from './components/Chat/ConversationSearchBar';
|
|
127
|
+
export type { ConversationSearchResult, ConversationSearchSourceOption, } from './components/Chat/ConversationSearchBar';
|
|
126
128
|
export { AssistantPicker } from './components/Chat/AssistantPicker';
|
|
127
129
|
export type { AssistantPickerItem } from './components/Chat/AssistantPicker';
|
|
128
130
|
export { ModelPicker } from './components/Chat/ModelPicker';
|
package/package.json
CHANGED
package/src/docs/index.ts
CHANGED
|
@@ -45,6 +45,7 @@ export { ImageGenerateCardDoc } from '../components/Chat/ImageGenerateCard/doc'
|
|
|
45
45
|
export { SchemaFormPreviewDoc } from '../components/Chat/SchemaFormPreview/doc'
|
|
46
46
|
export { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/doc'
|
|
47
47
|
export { SuggestionCardDoc } from '../components/Chat/SuggestionCard/doc'
|
|
48
|
+
export { ConversationSearchBarDoc } from '../components/Chat/ConversationSearchBar/doc'
|
|
48
49
|
export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
|
|
49
50
|
export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
|
|
50
51
|
export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
|
|
@@ -135,6 +136,7 @@ import { ImageGenerateCardDoc } from '../components/Chat/ImageGenerateCard/doc'
|
|
|
135
136
|
import { SchemaFormPreviewDoc } from '../components/Chat/SchemaFormPreview/doc'
|
|
136
137
|
import { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/doc'
|
|
137
138
|
import { SuggestionCardDoc } from '../components/Chat/SuggestionCard/doc'
|
|
139
|
+
import { ConversationSearchBarDoc } from '../components/Chat/ConversationSearchBar/doc'
|
|
138
140
|
import { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
|
|
139
141
|
import { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
|
|
140
142
|
import { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
|
|
@@ -226,6 +228,7 @@ export const componentDocs: Record<string, ComponentDoc> = {
|
|
|
226
228
|
SchemaFormPreview: SchemaFormPreviewDoc,
|
|
227
229
|
WorkflowRunTimeline: WorkflowRunTimelineDoc,
|
|
228
230
|
SuggestionCard: SuggestionCardDoc,
|
|
231
|
+
ConversationSearchBar: ConversationSearchBarDoc,
|
|
229
232
|
AttachmentPreviewModal: AttachmentPreviewModalDoc,
|
|
230
233
|
DocumentSummaryList: DocumentSummaryListDoc,
|
|
231
234
|
MessageAttachmentList: MessageAttachmentListDoc,
|