@apform-ui/core 1.10.12 → 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.
- package/dist/apform-ui.css +1 -1
- package/dist/apform-ui.js +4372 -3628
- package/dist/apform-ui.umd.cjs +74 -74
- package/dist/components/Chat/ChecklistProposalCard/ChecklistProposalCard.vue.d.ts +25 -0
- package/dist/components/Chat/ChecklistProposalCard/doc.d.ts +3 -0
- package/dist/components/Chat/ChecklistProposalCard/index.d.ts +2 -0
- package/dist/components/Chat/ChecklistProposalCard/types.d.ts +30 -0
- package/dist/components/Chat/RequirementAnalysisCard/RequirementAnalysisCard.vue.d.ts +22 -0
- package/dist/components/Chat/RequirementAnalysisCard/doc.d.ts +3 -0
- package/dist/components/Chat/RequirementAnalysisCard/index.d.ts +2 -0
- package/dist/components/Chat/RequirementAnalysisCard/types.d.ts +26 -0
- package/dist/docs/index.d.ts +2 -0
- package/dist/index.d.ts +4 -0
- package/package.json +1 -1
- package/src/docs/index.ts +6 -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,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,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,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
|
+
}
|
package/dist/docs/index.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ export { FieldListCardDoc } from '../components/Chat/FieldListCard/doc';
|
|
|
32
32
|
export { FlowNodeStripCardDoc } from '../components/Chat/FlowNodeStripCard/doc';
|
|
33
33
|
export { TokenUsageCardDoc } from '../components/Chat/TokenUsageCard/doc';
|
|
34
34
|
export { QuestionnaireCardDoc } from '../components/Chat/QuestionnaireCard/doc';
|
|
35
|
+
export { ChecklistProposalCardDoc } from '../components/Chat/ChecklistProposalCard/doc';
|
|
36
|
+
export { RequirementAnalysisCardDoc } from '../components/Chat/RequirementAnalysisCard/doc';
|
|
35
37
|
export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc';
|
|
36
38
|
export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc';
|
|
37
39
|
export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc';
|
package/dist/index.d.ts
CHANGED
|
@@ -98,6 +98,10 @@ export type { FlowStripNode } from './components/Chat/FlowNodeStripCard';
|
|
|
98
98
|
export { TokenUsageCard } from './components/Chat/TokenUsageCard';
|
|
99
99
|
export { QuestionnaireCard } from './components/Chat/QuestionnaireCard';
|
|
100
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';
|
|
101
105
|
export { AssistantPicker } from './components/Chat/AssistantPicker';
|
|
102
106
|
export type { AssistantPickerItem } from './components/Chat/AssistantPicker';
|
|
103
107
|
export { ModelPicker } from './components/Chat/ModelPicker';
|
package/package.json
CHANGED
package/src/docs/index.ts
CHANGED
|
@@ -32,6 +32,8 @@ export { FieldListCardDoc } from '../components/Chat/FieldListCard/doc'
|
|
|
32
32
|
export { FlowNodeStripCardDoc } from '../components/Chat/FlowNodeStripCard/doc'
|
|
33
33
|
export { TokenUsageCardDoc } from '../components/Chat/TokenUsageCard/doc'
|
|
34
34
|
export { QuestionnaireCardDoc } from '../components/Chat/QuestionnaireCard/doc'
|
|
35
|
+
export { ChecklistProposalCardDoc } from '../components/Chat/ChecklistProposalCard/doc'
|
|
36
|
+
export { RequirementAnalysisCardDoc } from '../components/Chat/RequirementAnalysisCard/doc'
|
|
35
37
|
export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
|
|
36
38
|
export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
|
|
37
39
|
export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
|
|
@@ -109,6 +111,8 @@ import { FieldListCardDoc } from '../components/Chat/FieldListCard/doc'
|
|
|
109
111
|
import { FlowNodeStripCardDoc } from '../components/Chat/FlowNodeStripCard/doc'
|
|
110
112
|
import { TokenUsageCardDoc } from '../components/Chat/TokenUsageCard/doc'
|
|
111
113
|
import { QuestionnaireCardDoc } from '../components/Chat/QuestionnaireCard/doc'
|
|
114
|
+
import { ChecklistProposalCardDoc } from '../components/Chat/ChecklistProposalCard/doc'
|
|
115
|
+
import { RequirementAnalysisCardDoc } from '../components/Chat/RequirementAnalysisCard/doc'
|
|
112
116
|
import { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
|
|
113
117
|
import { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
|
|
114
118
|
import { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
|
|
@@ -187,6 +191,8 @@ export const componentDocs: Record<string, ComponentDoc> = {
|
|
|
187
191
|
FlowNodeStripCard: FlowNodeStripCardDoc,
|
|
188
192
|
TokenUsageCard: TokenUsageCardDoc,
|
|
189
193
|
QuestionnaireCard: QuestionnaireCardDoc,
|
|
194
|
+
ChecklistProposalCard: ChecklistProposalCardDoc,
|
|
195
|
+
RequirementAnalysisCard: RequirementAnalysisCardDoc,
|
|
190
196
|
AttachmentPreviewModal: AttachmentPreviewModalDoc,
|
|
191
197
|
DocumentSummaryList: DocumentSummaryListDoc,
|
|
192
198
|
MessageAttachmentList: MessageAttachmentListDoc,
|