@apform-ui/core 1.10.10 → 1.10.12

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.
Files changed (29) hide show
  1. package/dist/apform-ui.css +1 -1
  2. package/dist/apform-ui.js +2834 -2389
  3. package/dist/apform-ui.umd.cjs +71 -71
  4. package/dist/components/Chat/AgentTransferCard/AgentTransferCard.vue.d.ts +10 -0
  5. package/dist/components/Chat/AgentTransferCard/doc.d.ts +3 -0
  6. package/dist/components/Chat/AgentTransferCard/index.d.ts +1 -0
  7. package/dist/components/Chat/CollapsibleStepCard/CollapsibleStepCard.vue.d.ts +33 -0
  8. package/dist/components/Chat/CollapsibleStepCard/doc.d.ts +3 -0
  9. package/dist/components/Chat/CollapsibleStepCard/index.d.ts +2 -0
  10. package/dist/components/Chat/CollapsibleStepCard/types.d.ts +2 -0
  11. package/dist/components/Chat/FieldListCard/FieldListCard.vue.d.ts +19 -0
  12. package/dist/components/Chat/FieldListCard/doc.d.ts +3 -0
  13. package/dist/components/Chat/FieldListCard/index.d.ts +2 -0
  14. package/dist/components/Chat/FieldListCard/types.d.ts +7 -0
  15. package/dist/components/Chat/FlowNodeStripCard/FlowNodeStripCard.vue.d.ts +19 -0
  16. package/dist/components/Chat/FlowNodeStripCard/doc.d.ts +3 -0
  17. package/dist/components/Chat/FlowNodeStripCard/index.d.ts +2 -0
  18. package/dist/components/Chat/FlowNodeStripCard/types.d.ts +5 -0
  19. package/dist/components/Chat/QuestionnaireCard/QuestionnaireCard.vue.d.ts +26 -0
  20. package/dist/components/Chat/QuestionnaireCard/doc.d.ts +3 -0
  21. package/dist/components/Chat/QuestionnaireCard/index.d.ts +2 -0
  22. package/dist/components/Chat/QuestionnaireCard/types.d.ts +7 -0
  23. package/dist/components/Chat/TokenUsageCard/TokenUsageCard.vue.d.ts +10 -0
  24. package/dist/components/Chat/TokenUsageCard/doc.d.ts +3 -0
  25. package/dist/components/Chat/TokenUsageCard/index.d.ts +1 -0
  26. package/dist/docs/index.d.ts +6 -0
  27. package/dist/index.d.ts +10 -0
  28. package/package.json +1 -1
  29. package/src/docs/index.ts +18 -0
@@ -0,0 +1,10 @@
1
+ /**
2
+ * AgentTransferCard — 智能体移交提示条
3
+ */
4
+ type __VLS_Props = {
5
+ fromLabel: string;
6
+ toLabel: string;
7
+ reason?: string;
8
+ };
9
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../../../docs/types';
2
+ /** AgentTransferCard 文档 */
3
+ export declare const AgentTransferCardDoc: ComponentDoc;
@@ -0,0 +1 @@
1
+ export { default as AgentTransferCard } from './AgentTransferCard.vue';
@@ -0,0 +1,33 @@
1
+ import { StepCardTone } from './types';
2
+ type __VLS_Props = {
3
+ title: string;
4
+ subtitle?: string;
5
+ badge?: string;
6
+ statusLabel?: string;
7
+ tone?: StepCardTone;
8
+ timestamp?: string;
9
+ defaultCollapsed?: boolean;
10
+ /** 受控折叠;不传则内部管理 */
11
+ collapsed?: boolean;
12
+ };
13
+ declare var __VLS_1: {}, __VLS_3: {};
14
+ type __VLS_Slots = {} & {
15
+ icon?: (props: typeof __VLS_1) => any;
16
+ } & {
17
+ default?: (props: typeof __VLS_3) => any;
18
+ };
19
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ "update:collapsed": (value: boolean) => any;
21
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
23
+ }>, {
24
+ defaultCollapsed: boolean;
25
+ tone: StepCardTone;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
28
+ export default _default;
29
+ type __VLS_WithSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../../../docs/types';
2
+ /** CollapsibleStepCard 文档 */
3
+ export declare const CollapsibleStepCardDoc: ComponentDoc;
@@ -0,0 +1,2 @@
1
+ export { default as CollapsibleStepCard } from './CollapsibleStepCard.vue';
2
+ export type { StepCardTone } from './types';
@@ -0,0 +1,2 @@
1
+ /** 步骤卡片色调 */
2
+ export type StepCardTone = 'default' | 'success' | 'error' | 'running';
@@ -0,0 +1,19 @@
1
+ import { FieldListItem } from './types';
2
+ type __VLS_Props = {
3
+ title: string;
4
+ fields: FieldListItem[];
5
+ badgeLabel?: string;
6
+ primaryAction?: string;
7
+ secondaryAction?: string;
8
+ compact?: boolean;
9
+ };
10
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ "primary-action": () => any;
12
+ "secondary-action": () => any;
13
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ "onPrimary-action"?: (() => any) | undefined;
15
+ "onSecondary-action"?: (() => any) | undefined;
16
+ }>, {
17
+ compact: boolean;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../../../docs/types';
2
+ /** FieldListCard 文档 */
3
+ export declare const FieldListCardDoc: ComponentDoc;
@@ -0,0 +1,2 @@
1
+ export { default as FieldListCard } from './FieldListCard.vue';
2
+ export type { FieldListItem } from './types';
@@ -0,0 +1,7 @@
1
+ /** 字段列表项 */
2
+ export interface FieldListItem {
3
+ name: string;
4
+ type: string;
5
+ required?: boolean;
6
+ meta?: string;
7
+ }
@@ -0,0 +1,19 @@
1
+ import { FlowStripNode } from './types';
2
+ type __VLS_Props = {
3
+ title: string;
4
+ nodes: FlowStripNode[];
5
+ badgeLabel?: string;
6
+ primaryAction?: string;
7
+ secondaryAction?: string;
8
+ compact?: boolean;
9
+ };
10
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ "primary-action": () => any;
12
+ "secondary-action": () => any;
13
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ "onPrimary-action"?: (() => any) | undefined;
15
+ "onSecondary-action"?: (() => any) | undefined;
16
+ }>, {
17
+ compact: boolean;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../../../docs/types';
2
+ /** FlowNodeStripCard 文档 */
3
+ export declare const FlowNodeStripCardDoc: ComponentDoc;
@@ -0,0 +1,2 @@
1
+ export { default as FlowNodeStripCard } from './FlowNodeStripCard.vue';
2
+ export type { FlowStripNode } from './types';
@@ -0,0 +1,5 @@
1
+ /** 流程条节点 */
2
+ export interface FlowStripNode {
3
+ label: string;
4
+ type: 'start' | 'task' | 'end' | string;
5
+ }
@@ -0,0 +1,26 @@
1
+ import { QuestionnaireQuestion } from './types';
2
+ type __VLS_Props = {
3
+ title: string;
4
+ description?: string;
5
+ questions: QuestionnaireQuestion[];
6
+ answers?: Record<string, string>;
7
+ status?: 'waiting' | 'approved' | 'rejected' | string;
8
+ approveLabel?: string;
9
+ rejectLabel?: string;
10
+ disabled?: boolean;
11
+ };
12
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ approve: () => any;
14
+ reject: () => any;
15
+ answer: (questionId: string, value: string) => any;
16
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
17
+ onApprove?: (() => any) | undefined;
18
+ onReject?: (() => any) | undefined;
19
+ onAnswer?: ((questionId: string, value: string) => any) | undefined;
20
+ }>, {
21
+ status: "waiting" | "approved" | "rejected" | string;
22
+ answers: Record<string, string>;
23
+ approveLabel: string;
24
+ rejectLabel: string;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../../../docs/types';
2
+ /** QuestionnaireCard 文档 */
3
+ export declare const QuestionnaireCardDoc: ComponentDoc;
@@ -0,0 +1,2 @@
1
+ export { default as QuestionnaireCard } from './QuestionnaireCard.vue';
2
+ export type { QuestionnaireQuestion } from './types';
@@ -0,0 +1,7 @@
1
+ /** 问卷问题 */
2
+ export interface QuestionnaireQuestion {
3
+ id: string;
4
+ question: string;
5
+ required?: boolean;
6
+ options?: string[];
7
+ }
@@ -0,0 +1,10 @@
1
+ type __VLS_Props = {
2
+ inputTokens: number;
3
+ outputTokens: number;
4
+ totalTokens?: number;
5
+ estimatedCost?: number | null;
6
+ model?: string;
7
+ title?: string;
8
+ };
9
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../../../docs/types';
2
+ /** TokenUsageCard 文档 */
3
+ export declare const TokenUsageCardDoc: ComponentDoc;
@@ -0,0 +1 @@
1
+ export { default as TokenUsageCard } from './TokenUsageCard.vue';
@@ -26,6 +26,12 @@ export { MentionInputDoc } from '../components/Chat/MentionInput/doc';
26
26
  export { ThinkingBlockDoc } from '../components/Chat/ThinkingBlock/doc';
27
27
  export { EditableArtifactCardDoc } from '../components/Chat/EditableArtifactCard/doc';
28
28
  export { MessageActionBarDoc } from '../components/Chat/MessageActionBar/doc';
29
+ export { CollapsibleStepCardDoc } from '../components/Chat/CollapsibleStepCard/doc';
30
+ export { AgentTransferCardDoc } from '../components/Chat/AgentTransferCard/doc';
31
+ export { FieldListCardDoc } from '../components/Chat/FieldListCard/doc';
32
+ export { FlowNodeStripCardDoc } from '../components/Chat/FlowNodeStripCard/doc';
33
+ export { TokenUsageCardDoc } from '../components/Chat/TokenUsageCard/doc';
34
+ export { QuestionnaireCardDoc } from '../components/Chat/QuestionnaireCard/doc';
29
35
  export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc';
30
36
  export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc';
31
37
  export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc';
package/dist/index.d.ts CHANGED
@@ -88,6 +88,16 @@ export type { MentionTab, MentionResultItem, MentionChip, MentionSearchFn, } fro
88
88
  export { ThinkingBlock } from './components/Chat/ThinkingBlock';
89
89
  export { EditableArtifactCard } from './components/Chat/EditableArtifactCard';
90
90
  export { MessageActionBar } from './components/Chat/MessageActionBar';
91
+ export { CollapsibleStepCard } from './components/Chat/CollapsibleStepCard';
92
+ export type { StepCardTone } from './components/Chat/CollapsibleStepCard';
93
+ export { AgentTransferCard } from './components/Chat/AgentTransferCard';
94
+ export { FieldListCard } from './components/Chat/FieldListCard';
95
+ export type { FieldListItem } from './components/Chat/FieldListCard';
96
+ export { FlowNodeStripCard } from './components/Chat/FlowNodeStripCard';
97
+ export type { FlowStripNode } from './components/Chat/FlowNodeStripCard';
98
+ export { TokenUsageCard } from './components/Chat/TokenUsageCard';
99
+ export { QuestionnaireCard } from './components/Chat/QuestionnaireCard';
100
+ export type { QuestionnaireQuestion } from './components/Chat/QuestionnaireCard';
91
101
  export { AssistantPicker } from './components/Chat/AssistantPicker';
92
102
  export type { AssistantPickerItem } from './components/Chat/AssistantPicker';
93
103
  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.10",
3
+ "version": "1.10.12",
4
4
  "type": "module",
5
5
  "author": "yangdongnan",
6
6
  "license": "MIT",
package/src/docs/index.ts CHANGED
@@ -26,6 +26,12 @@ export { MentionInputDoc } from '../components/Chat/MentionInput/doc'
26
26
  export { ThinkingBlockDoc } from '../components/Chat/ThinkingBlock/doc'
27
27
  export { EditableArtifactCardDoc } from '../components/Chat/EditableArtifactCard/doc'
28
28
  export { MessageActionBarDoc } from '../components/Chat/MessageActionBar/doc'
29
+ export { CollapsibleStepCardDoc } from '../components/Chat/CollapsibleStepCard/doc'
30
+ export { AgentTransferCardDoc } from '../components/Chat/AgentTransferCard/doc'
31
+ export { FieldListCardDoc } from '../components/Chat/FieldListCard/doc'
32
+ export { FlowNodeStripCardDoc } from '../components/Chat/FlowNodeStripCard/doc'
33
+ export { TokenUsageCardDoc } from '../components/Chat/TokenUsageCard/doc'
34
+ export { QuestionnaireCardDoc } from '../components/Chat/QuestionnaireCard/doc'
29
35
  export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
30
36
  export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
31
37
  export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
@@ -97,6 +103,12 @@ import { MentionInputDoc } from '../components/Chat/MentionInput/doc'
97
103
  import { ThinkingBlockDoc } from '../components/Chat/ThinkingBlock/doc'
98
104
  import { EditableArtifactCardDoc } from '../components/Chat/EditableArtifactCard/doc'
99
105
  import { MessageActionBarDoc } from '../components/Chat/MessageActionBar/doc'
106
+ import { CollapsibleStepCardDoc } from '../components/Chat/CollapsibleStepCard/doc'
107
+ import { AgentTransferCardDoc } from '../components/Chat/AgentTransferCard/doc'
108
+ import { FieldListCardDoc } from '../components/Chat/FieldListCard/doc'
109
+ import { FlowNodeStripCardDoc } from '../components/Chat/FlowNodeStripCard/doc'
110
+ import { TokenUsageCardDoc } from '../components/Chat/TokenUsageCard/doc'
111
+ import { QuestionnaireCardDoc } from '../components/Chat/QuestionnaireCard/doc'
100
112
  import { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
101
113
  import { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
102
114
  import { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
@@ -169,6 +181,12 @@ export const componentDocs: Record<string, ComponentDoc> = {
169
181
  ThinkingBlock: ThinkingBlockDoc,
170
182
  EditableArtifactCard: EditableArtifactCardDoc,
171
183
  MessageActionBar: MessageActionBarDoc,
184
+ CollapsibleStepCard: CollapsibleStepCardDoc,
185
+ AgentTransferCard: AgentTransferCardDoc,
186
+ FieldListCard: FieldListCardDoc,
187
+ FlowNodeStripCard: FlowNodeStripCardDoc,
188
+ TokenUsageCard: TokenUsageCardDoc,
189
+ QuestionnaireCard: QuestionnaireCardDoc,
172
190
  AttachmentPreviewModal: AttachmentPreviewModalDoc,
173
191
  DocumentSummaryList: DocumentSummaryListDoc,
174
192
  MessageAttachmentList: MessageAttachmentListDoc,