@apform-ui/core 1.10.11 → 1.10.13

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 (30) hide show
  1. package/dist/apform-ui.css +1 -1
  2. package/dist/apform-ui.js +5108 -4070
  3. package/dist/apform-ui.umd.cjs +76 -76
  4. package/dist/components/Chat/ChecklistProposalCard/ChecklistProposalCard.vue.d.ts +25 -0
  5. package/dist/components/Chat/ChecklistProposalCard/doc.d.ts +3 -0
  6. package/dist/components/Chat/ChecklistProposalCard/index.d.ts +2 -0
  7. package/dist/components/Chat/ChecklistProposalCard/types.d.ts +30 -0
  8. package/dist/components/Chat/FieldListCard/FieldListCard.vue.d.ts +19 -0
  9. package/dist/components/Chat/FieldListCard/doc.d.ts +3 -0
  10. package/dist/components/Chat/FieldListCard/index.d.ts +2 -0
  11. package/dist/components/Chat/FieldListCard/types.d.ts +7 -0
  12. package/dist/components/Chat/FlowNodeStripCard/FlowNodeStripCard.vue.d.ts +19 -0
  13. package/dist/components/Chat/FlowNodeStripCard/doc.d.ts +3 -0
  14. package/dist/components/Chat/FlowNodeStripCard/index.d.ts +2 -0
  15. package/dist/components/Chat/FlowNodeStripCard/types.d.ts +5 -0
  16. package/dist/components/Chat/QuestionnaireCard/QuestionnaireCard.vue.d.ts +26 -0
  17. package/dist/components/Chat/QuestionnaireCard/doc.d.ts +3 -0
  18. package/dist/components/Chat/QuestionnaireCard/index.d.ts +2 -0
  19. package/dist/components/Chat/QuestionnaireCard/types.d.ts +7 -0
  20. package/dist/components/Chat/RequirementAnalysisCard/RequirementAnalysisCard.vue.d.ts +22 -0
  21. package/dist/components/Chat/RequirementAnalysisCard/doc.d.ts +3 -0
  22. package/dist/components/Chat/RequirementAnalysisCard/index.d.ts +2 -0
  23. package/dist/components/Chat/RequirementAnalysisCard/types.d.ts +26 -0
  24. package/dist/components/Chat/TokenUsageCard/TokenUsageCard.vue.d.ts +10 -0
  25. package/dist/components/Chat/TokenUsageCard/doc.d.ts +3 -0
  26. package/dist/components/Chat/TokenUsageCard/index.d.ts +1 -0
  27. package/dist/docs/index.d.ts +6 -0
  28. package/dist/index.d.ts +11 -0
  29. package/package.json +1 -1
  30. package/src/docs/index.ts +18 -0
@@ -0,0 +1,25 @@
1
+ import { ChecklistProposal, ChecklistProposalItem } from './types';
2
+ type __VLS_Props = {
3
+ proposal: ChecklistProposal;
4
+ /** 状态:pending / approved / rejected */
5
+ status?: 'pending' | 'approved' | 'rejected';
6
+ /** 已选中的项 ID 集合(由 composable 管理) */
7
+ selectedIds?: Set<string>;
8
+ readonly?: boolean;
9
+ };
10
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ reset: () => any;
12
+ approve: (selectedIds: string[]) => any;
13
+ reject: () => any;
14
+ "toggle-item": (itemId: string) => any;
15
+ "toggle-all": () => any;
16
+ modify: (itemId: string, changes: Partial<ChecklistProposalItem>) => any;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ onReset?: (() => any) | undefined;
19
+ onApprove?: ((selectedIds: string[]) => any) | undefined;
20
+ onReject?: (() => any) | undefined;
21
+ "onToggle-item"?: ((itemId: string) => any) | undefined;
22
+ "onToggle-all"?: (() => any) | undefined;
23
+ onModify?: ((itemId: string, changes: Partial<ChecklistProposalItem>) => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../../../docs/types';
2
+ /** ChecklistProposalCard 文档 */
3
+ export declare const ChecklistProposalCardDoc: ComponentDoc;
@@ -0,0 +1,2 @@
1
+ export { default as ChecklistProposalCard } from './ChecklistProposalCard.vue';
2
+ export type { ChecklistProposal, ChecklistProposalItem, ChecklistItemPriority, ChecklistItemKind, } from './types';
@@ -0,0 +1,30 @@
1
+ /**
2
+ * 清单拟办卡 — 通用行动项与方案形状(不绑定业务 ActionItem 语义)
3
+ */
4
+ /** 优先级 */
5
+ export type ChecklistItemPriority = 'high' | 'medium' | 'low';
6
+ /** 展示用类型(可扩展字符串) */
7
+ export type ChecklistItemKind = 'todo' | 'approval' | 'review' | 'decision' | (string & {});
8
+ /** 单条拟办项 */
9
+ export interface ChecklistProposalItem {
10
+ id: string;
11
+ title: string;
12
+ description?: string;
13
+ type?: ChecklistItemKind;
14
+ priority?: ChecklistItemPriority | string;
15
+ assignee?: string;
16
+ deadline?: string;
17
+ }
18
+ /** 拟办方案 */
19
+ export interface ChecklistProposal {
20
+ id?: string;
21
+ title?: string;
22
+ /** 摘要文案 */
23
+ summary?: string;
24
+ /** 来源文档标题 */
25
+ documentTitle?: string;
26
+ /** 审批链人名 */
27
+ approvalChain?: string[];
28
+ actionItems: ChecklistProposalItem[];
29
+ status?: 'pending' | 'approved' | 'rejected';
30
+ }
@@ -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,22 @@
1
+ import { RequirementAnalysis } from './types';
2
+ type __VLS_Props = {
3
+ analysis: RequirementAnalysis;
4
+ /** 已收集的部分答案(渐进式) */
5
+ partialAnswers?: Record<string, string>;
6
+ /** 当前待回答的问题 id */
7
+ nextQuestionId?: string | null;
8
+ /** 是否正在等待用户确认 */
9
+ waitingConfirmation?: boolean;
10
+ };
11
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ answer: (questionId: string, value: string) => any;
13
+ skip: () => any;
14
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onAnswer?: ((questionId: string, value: string) => any) | undefined;
16
+ onSkip?: (() => any) | undefined;
17
+ }>, {
18
+ partialAnswers: Record<string, string>;
19
+ nextQuestionId: string | null;
20
+ waitingConfirmation: boolean;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../../../docs/types';
2
+ /** RequirementAnalysisCard 文档 */
3
+ export declare const RequirementAnalysisCardDoc: ComponentDoc;
@@ -0,0 +1,2 @@
1
+ export { default as RequirementAnalysisCard } from './RequirementAnalysisCard.vue';
2
+ export type { RequirementAnalysis, RequirementConfirmQuestion, } from './types';
@@ -0,0 +1,26 @@
1
+ /**
2
+ * 需求分析确认卡 — 通用分析形状
3
+ */
4
+ /** 确认问题 */
5
+ export interface RequirementConfirmQuestion {
6
+ id: string;
7
+ question: string;
8
+ options?: string[];
9
+ required: boolean;
10
+ }
11
+ /** 需求分析结果 */
12
+ export interface RequirementAnalysis {
13
+ intent: string;
14
+ type: string;
15
+ complexity: string;
16
+ completeness: {
17
+ score: number;
18
+ missing: string[];
19
+ assumptions: string[];
20
+ };
21
+ confirmQuestions: RequirementConfirmQuestion[];
22
+ suggestedChain: Array<{
23
+ agent: string;
24
+ description: string;
25
+ }>;
26
+ }
@@ -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,12 @@ 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';
35
+ export { ChecklistProposalCardDoc } from '../components/Chat/ChecklistProposalCard/doc';
36
+ export { RequirementAnalysisCardDoc } from '../components/Chat/RequirementAnalysisCard/doc';
31
37
  export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc';
32
38
  export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc';
33
39
  export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc';
package/dist/index.d.ts CHANGED
@@ -91,6 +91,17 @@ 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';
101
+ export { ChecklistProposalCard } from './components/Chat/ChecklistProposalCard';
102
+ export type { ChecklistProposal, ChecklistProposalItem, ChecklistItemPriority, ChecklistItemKind, } from './components/Chat/ChecklistProposalCard';
103
+ export { RequirementAnalysisCard } from './components/Chat/RequirementAnalysisCard';
104
+ export type { RequirementAnalysis, RequirementConfirmQuestion, } from './components/Chat/RequirementAnalysisCard';
94
105
  export { AssistantPicker } from './components/Chat/AssistantPicker';
95
106
  export type { AssistantPickerItem } from './components/Chat/AssistantPicker';
96
107
  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.13",
4
4
  "type": "module",
5
5
  "author": "yangdongnan",
6
6
  "license": "MIT",
package/src/docs/index.ts CHANGED
@@ -28,6 +28,12 @@ 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'
35
+ export { ChecklistProposalCardDoc } from '../components/Chat/ChecklistProposalCard/doc'
36
+ export { RequirementAnalysisCardDoc } from '../components/Chat/RequirementAnalysisCard/doc'
31
37
  export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
32
38
  export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
33
39
  export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
@@ -101,6 +107,12 @@ import { EditableArtifactCardDoc } from '../components/Chat/EditableArtifactCard
101
107
  import { MessageActionBarDoc } from '../components/Chat/MessageActionBar/doc'
102
108
  import { CollapsibleStepCardDoc } from '../components/Chat/CollapsibleStepCard/doc'
103
109
  import { AgentTransferCardDoc } from '../components/Chat/AgentTransferCard/doc'
110
+ import { FieldListCardDoc } from '../components/Chat/FieldListCard/doc'
111
+ import { FlowNodeStripCardDoc } from '../components/Chat/FlowNodeStripCard/doc'
112
+ import { TokenUsageCardDoc } from '../components/Chat/TokenUsageCard/doc'
113
+ import { QuestionnaireCardDoc } from '../components/Chat/QuestionnaireCard/doc'
114
+ import { ChecklistProposalCardDoc } from '../components/Chat/ChecklistProposalCard/doc'
115
+ import { RequirementAnalysisCardDoc } from '../components/Chat/RequirementAnalysisCard/doc'
104
116
  import { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
105
117
  import { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
106
118
  import { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
@@ -175,6 +187,12 @@ export const componentDocs: Record<string, ComponentDoc> = {
175
187
  MessageActionBar: MessageActionBarDoc,
176
188
  CollapsibleStepCard: CollapsibleStepCardDoc,
177
189
  AgentTransferCard: AgentTransferCardDoc,
190
+ FieldListCard: FieldListCardDoc,
191
+ FlowNodeStripCard: FlowNodeStripCardDoc,
192
+ TokenUsageCard: TokenUsageCardDoc,
193
+ QuestionnaireCard: QuestionnaireCardDoc,
194
+ ChecklistProposalCard: ChecklistProposalCardDoc,
195
+ RequirementAnalysisCard: RequirementAnalysisCardDoc,
178
196
  AttachmentPreviewModal: AttachmentPreviewModalDoc,
179
197
  DocumentSummaryList: DocumentSummaryListDoc,
180
198
  MessageAttachmentList: MessageAttachmentListDoc,