@apform-ui/core 1.10.11 → 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.
@@ -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';
@@ -28,6 +28,10 @@ export { EditableArtifactCardDoc } from '../components/Chat/EditableArtifactCard
28
28
  export { MessageActionBarDoc } from '../components/Chat/MessageActionBar/doc';
29
29
  export { CollapsibleStepCardDoc } from '../components/Chat/CollapsibleStepCard/doc';
30
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';
31
35
  export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc';
32
36
  export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc';
33
37
  export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc';
package/dist/index.d.ts CHANGED
@@ -91,6 +91,13 @@ export { MessageActionBar } from './components/Chat/MessageActionBar';
91
91
  export { CollapsibleStepCard } from './components/Chat/CollapsibleStepCard';
92
92
  export type { StepCardTone } from './components/Chat/CollapsibleStepCard';
93
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';
94
101
  export { AssistantPicker } from './components/Chat/AssistantPicker';
95
102
  export type { AssistantPickerItem } from './components/Chat/AssistantPicker';
96
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.11",
3
+ "version": "1.10.12",
4
4
  "type": "module",
5
5
  "author": "yangdongnan",
6
6
  "license": "MIT",
package/src/docs/index.ts CHANGED
@@ -28,6 +28,10 @@ export { EditableArtifactCardDoc } from '../components/Chat/EditableArtifactCard
28
28
  export { MessageActionBarDoc } from '../components/Chat/MessageActionBar/doc'
29
29
  export { CollapsibleStepCardDoc } from '../components/Chat/CollapsibleStepCard/doc'
30
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'
31
35
  export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
32
36
  export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
33
37
  export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
@@ -101,6 +105,10 @@ import { EditableArtifactCardDoc } from '../components/Chat/EditableArtifactCard
101
105
  import { MessageActionBarDoc } from '../components/Chat/MessageActionBar/doc'
102
106
  import { CollapsibleStepCardDoc } from '../components/Chat/CollapsibleStepCard/doc'
103
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'
104
112
  import { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
105
113
  import { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
106
114
  import { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
@@ -175,6 +183,10 @@ export const componentDocs: Record<string, ComponentDoc> = {
175
183
  MessageActionBar: MessageActionBarDoc,
176
184
  CollapsibleStepCard: CollapsibleStepCardDoc,
177
185
  AgentTransferCard: AgentTransferCardDoc,
186
+ FieldListCard: FieldListCardDoc,
187
+ FlowNodeStripCard: FlowNodeStripCardDoc,
188
+ TokenUsageCard: TokenUsageCardDoc,
189
+ QuestionnaireCard: QuestionnaireCardDoc,
178
190
  AttachmentPreviewModal: AttachmentPreviewModalDoc,
179
191
  DocumentSummaryList: DocumentSummaryListDoc,
180
192
  MessageAttachmentList: MessageAttachmentListDoc,