@apform-ui/core 1.10.12 → 1.10.14
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 +5087 -4285
- package/dist/apform-ui.umd.cjs +78 -78
- 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/DocumentDetailSummaryCard/DocumentDetailSummaryCard.vue.d.ts +6 -0
- package/dist/components/Chat/DocumentDetailSummaryCard/doc.d.ts +3 -0
- package/dist/components/Chat/DocumentDetailSummaryCard/index.d.ts +2 -0
- package/dist/components/Chat/DocumentDetailSummaryCard/types.d.ts +18 -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 +3 -0
- package/dist/index.d.ts +6 -0
- package/package.json +1 -1
- package/src/docs/index.ts +9 -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,6 @@
|
|
|
1
|
+
import { DocumentDetailSummaryItem } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
item: DocumentDetailSummaryItem;
|
|
4
|
+
};
|
|
5
|
+
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>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 结构化文档摘要(含要点与章节)
|
|
3
|
+
*/
|
|
4
|
+
export interface DocumentDetailSummaryBody {
|
|
5
|
+
title: string;
|
|
6
|
+
summary: string;
|
|
7
|
+
keyPoints: string[];
|
|
8
|
+
sections: Array<{
|
|
9
|
+
heading: string;
|
|
10
|
+
content: string;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
13
|
+
/** DocumentDetailSummaryCard 入参 */
|
|
14
|
+
export interface DocumentDetailSummaryItem {
|
|
15
|
+
documentId?: string;
|
|
16
|
+
filename: string;
|
|
17
|
+
summary: DocumentDetailSummaryBody;
|
|
18
|
+
}
|
|
@@ -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,9 @@ 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';
|
|
37
|
+
export { DocumentDetailSummaryCardDoc } from '../components/Chat/DocumentDetailSummaryCard/doc';
|
|
35
38
|
export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc';
|
|
36
39
|
export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc';
|
|
37
40
|
export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc';
|
package/dist/index.d.ts
CHANGED
|
@@ -98,6 +98,12 @@ 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';
|
|
105
|
+
export { DocumentDetailSummaryCard } from './components/Chat/DocumentDetailSummaryCard';
|
|
106
|
+
export type { DocumentDetailSummaryItem, DocumentDetailSummaryBody, } from './components/Chat/DocumentDetailSummaryCard';
|
|
101
107
|
export { AssistantPicker } from './components/Chat/AssistantPicker';
|
|
102
108
|
export type { AssistantPickerItem } from './components/Chat/AssistantPicker';
|
|
103
109
|
export { ModelPicker } from './components/Chat/ModelPicker';
|
package/package.json
CHANGED
package/src/docs/index.ts
CHANGED
|
@@ -32,6 +32,9 @@ 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'
|
|
37
|
+
export { DocumentDetailSummaryCardDoc } from '../components/Chat/DocumentDetailSummaryCard/doc'
|
|
35
38
|
export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
|
|
36
39
|
export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
|
|
37
40
|
export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
|
|
@@ -109,6 +112,9 @@ import { FieldListCardDoc } from '../components/Chat/FieldListCard/doc'
|
|
|
109
112
|
import { FlowNodeStripCardDoc } from '../components/Chat/FlowNodeStripCard/doc'
|
|
110
113
|
import { TokenUsageCardDoc } from '../components/Chat/TokenUsageCard/doc'
|
|
111
114
|
import { QuestionnaireCardDoc } from '../components/Chat/QuestionnaireCard/doc'
|
|
115
|
+
import { ChecklistProposalCardDoc } from '../components/Chat/ChecklistProposalCard/doc'
|
|
116
|
+
import { RequirementAnalysisCardDoc } from '../components/Chat/RequirementAnalysisCard/doc'
|
|
117
|
+
import { DocumentDetailSummaryCardDoc } from '../components/Chat/DocumentDetailSummaryCard/doc'
|
|
112
118
|
import { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
|
|
113
119
|
import { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
|
|
114
120
|
import { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
|
|
@@ -187,6 +193,9 @@ export const componentDocs: Record<string, ComponentDoc> = {
|
|
|
187
193
|
FlowNodeStripCard: FlowNodeStripCardDoc,
|
|
188
194
|
TokenUsageCard: TokenUsageCardDoc,
|
|
189
195
|
QuestionnaireCard: QuestionnaireCardDoc,
|
|
196
|
+
ChecklistProposalCard: ChecklistProposalCardDoc,
|
|
197
|
+
RequirementAnalysisCard: RequirementAnalysisCardDoc,
|
|
198
|
+
DocumentDetailSummaryCard: DocumentDetailSummaryCardDoc,
|
|
190
199
|
AttachmentPreviewModal: AttachmentPreviewModalDoc,
|
|
191
200
|
DocumentSummaryList: DocumentSummaryListDoc,
|
|
192
201
|
MessageAttachmentList: MessageAttachmentListDoc,
|