@apform-ui/core 1.10.20 → 1.10.22

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.
@@ -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,3 @@
1
+ import { ComponentDoc } from '../../../docs/types';
2
+ /** ConversationSearchBar 文档 */
3
+ export declare const ConversationSearchBarDoc: ComponentDoc;
@@ -0,0 +1,2 @@
1
+ export { default as ConversationSearchBar } from './ConversationSearchBar.vue';
2
+ export type { ConversationSearchResult, ConversationSearchSourceOption, } from './types';
@@ -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,34 @@
1
+ import { RagContextItem } from './types';
2
+ type __VLS_Props = {
3
+ results: RagContextItem[];
4
+ selected: RagContextItem[];
5
+ loading?: boolean;
6
+ query?: string;
7
+ placeholder?: string;
8
+ emptyHint?: string;
9
+ idleHint?: string;
10
+ footerHint?: string;
11
+ selectedFooterHint?: string;
12
+ };
13
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ close: () => any;
15
+ select: (item: RagContextItem) => any;
16
+ search: (query: string) => any;
17
+ remove: (id: string) => any;
18
+ "update:query": (value: string) => any;
19
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
20
+ onClose?: (() => any) | undefined;
21
+ onSelect?: ((item: RagContextItem) => any) | undefined;
22
+ onSearch?: ((query: string) => any) | undefined;
23
+ onRemove?: ((id: string) => any) | undefined;
24
+ "onUpdate:query"?: ((value: string) => any) | undefined;
25
+ }>, {
26
+ loading: boolean;
27
+ placeholder: string;
28
+ query: string;
29
+ emptyHint: string;
30
+ idleHint: string;
31
+ footerHint: string;
32
+ selectedFooterHint: string;
33
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
34
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as RagContextPanel } from './RagContextPanel.vue';
2
+ export type { RagContextItem } from './types';
@@ -0,0 +1,9 @@
1
+ /** RAG / Schema 检索结果项(纯展示) */
2
+ export interface RagContextItem {
3
+ id: string;
4
+ name: string;
5
+ score: number;
6
+ description?: string;
7
+ /** 标签(如 widgetTypes) */
8
+ tags?: string[];
9
+ }
@@ -0,0 +1,11 @@
1
+ import { TaskChainStepItem } from './types';
2
+ type __VLS_Props = {
3
+ steps: TaskChainStepItem[];
4
+ currentIndex: number;
5
+ /** 左侧标签文案 */
6
+ label?: string;
7
+ };
8
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ label: string;
10
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as TaskChainBar } from './TaskChainBar.vue';
2
+ export type { TaskChainStepItem, TaskChainStepStatus } from './types';
@@ -0,0 +1,11 @@
1
+ /** 任务链步骤状态 */
2
+ export type TaskChainStepStatus = 'pending' | 'running' | 'done' | 'error' | 'skipped';
3
+ /** 任务链步骤(纯展示) */
4
+ export interface TaskChainStepItem {
5
+ /** 代理/角色标识(如 editor / flow / page) */
6
+ agent: string;
7
+ /** 步骤说明 */
8
+ description: string;
9
+ /** 步骤状态 */
10
+ status?: TaskChainStepStatus;
11
+ }
@@ -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,12 @@ 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';
128
+ export { TaskChainBar } from './components/Chat/TaskChainBar';
129
+ export type { TaskChainStepItem, TaskChainStepStatus, } from './components/Chat/TaskChainBar';
130
+ export { RagContextPanel } from './components/Chat/RagContextPanel';
131
+ export type { RagContextItem } from './components/Chat/RagContextPanel';
126
132
  export { AssistantPicker } from './components/Chat/AssistantPicker';
127
133
  export type { AssistantPickerItem } from './components/Chat/AssistantPicker';
128
134
  export { ModelPicker } from './components/Chat/ModelPicker';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apform-ui/core",
3
- "version": "1.10.20",
3
+ "version": "1.10.22",
4
4
  "type": "module",
5
5
  "author": "yangdongnan",
6
6
  "license": "MIT",
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,