@apform-ui/core 1.10.14 → 1.10.16
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 +5850 -4764
- package/dist/apform-ui.umd.cjs +53 -53
- package/dist/components/Chat/ErrorRecoveryCard/ErrorRecoveryCard.vue.d.ts +17 -0
- package/dist/components/Chat/ErrorRecoveryCard/doc.d.ts +3 -0
- package/dist/components/Chat/ErrorRecoveryCard/index.d.ts +2 -0
- package/dist/components/Chat/ErrorRecoveryCard/types.d.ts +8 -0
- package/dist/components/Chat/PptPreviewCard/PptPreviewCard.vue.d.ts +19 -0
- package/dist/components/Chat/PptPreviewCard/doc.d.ts +3 -0
- package/dist/components/Chat/PptPreviewCard/index.d.ts +2 -0
- package/dist/components/Chat/PptPreviewCard/types.d.ts +15 -0
- package/dist/components/Chat/SchemaFormPreview/SchemaFormPreview.vue.d.ts +31 -0
- package/dist/components/Chat/SchemaFormPreview/doc.d.ts +3 -0
- package/dist/components/Chat/SchemaFormPreview/index.d.ts +2 -0
- package/dist/components/Chat/SchemaFormPreview/types.d.ts +17 -0
- package/dist/components/Chat/SubWorkflowStatusCard/SubWorkflowStatusCard.vue.d.ts +22 -0
- package/dist/components/Chat/SubWorkflowStatusCard/doc.d.ts +3 -0
- package/dist/components/Chat/SubWorkflowStatusCard/index.d.ts +1 -0
- package/dist/components/Chat/VariableDiffCard/VariableDiffCard.vue.d.ts +9 -0
- package/dist/components/Chat/VariableDiffCard/doc.d.ts +3 -0
- package/dist/components/Chat/VariableDiffCard/index.d.ts +2 -0
- package/dist/components/Chat/VariableDiffCard/types.d.ts +7 -0
- package/dist/components/Chat/WorkflowRunTimeline/WorkflowRunTimeline.vue.d.ts +32 -0
- package/dist/components/Chat/WorkflowRunTimeline/doc.d.ts +3 -0
- package/dist/components/Chat/WorkflowRunTimeline/index.d.ts +2 -0
- package/dist/components/Chat/WorkflowRunTimeline/types.d.ts +9 -0
- package/dist/docs/index.d.ts +6 -0
- package/dist/index.d.ts +11 -0
- package/package.json +1 -1
- package/src/docs/index.ts +18 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ErrorRecoveryStrategy } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 错误信息 */
|
|
4
|
+
error: string;
|
|
5
|
+
/** 节点名称 */
|
|
6
|
+
nodeName: string;
|
|
7
|
+
/** 节点类型 */
|
|
8
|
+
nodeType?: string;
|
|
9
|
+
/** 可选恢复策略 */
|
|
10
|
+
strategies: ErrorRecoveryStrategy[];
|
|
11
|
+
};
|
|
12
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
select: (strategy: string) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onSelect?: ((strategy: string) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PptSlide, PptMetadata } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 幻灯片列表 */
|
|
4
|
+
slides?: PptSlide[];
|
|
5
|
+
/** 元数据 */
|
|
6
|
+
metadata?: PptMetadata;
|
|
7
|
+
/** 加载中 */
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
/** 错误信息 */
|
|
10
|
+
error?: string;
|
|
11
|
+
/** 可下载 Blob */
|
|
12
|
+
blob?: Blob;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
download: () => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
onDownload?: (() => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** PPT 幻灯片预览项 */
|
|
2
|
+
export interface PptSlide {
|
|
3
|
+
index: number;
|
|
4
|
+
type: 'title' | 'content' | 'chart' | 'comparison' | 'summary';
|
|
5
|
+
heading: string;
|
|
6
|
+
content?: string[];
|
|
7
|
+
speakerNotes?: string;
|
|
8
|
+
}
|
|
9
|
+
/** PPT 元数据 */
|
|
10
|
+
export interface PptMetadata {
|
|
11
|
+
title: string;
|
|
12
|
+
template: string;
|
|
13
|
+
totalSlides: number;
|
|
14
|
+
style: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { SchemaFormPreviewField } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 预览字段列表 */
|
|
4
|
+
fields: SchemaFormPreviewField[];
|
|
5
|
+
/** 标题 */
|
|
6
|
+
title?: string;
|
|
7
|
+
/** 紧凑模式(禁用交互、限制高度) */
|
|
8
|
+
compact?: boolean;
|
|
9
|
+
/** 表单 label 宽度 */
|
|
10
|
+
labelWidth?: string;
|
|
11
|
+
/** 表单 label 位置 */
|
|
12
|
+
labelPosition?: 'left' | 'right' | 'top';
|
|
13
|
+
/** 主操作文案 */
|
|
14
|
+
primaryActionLabel?: string;
|
|
15
|
+
/** 是否显示主操作(默认非 compact 时显示) */
|
|
16
|
+
showPrimaryAction?: boolean;
|
|
17
|
+
};
|
|
18
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
click: () => any;
|
|
20
|
+
"primary-action": () => any;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
|
+
onClick?: (() => any) | undefined;
|
|
23
|
+
"onPrimary-action"?: (() => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
compact: boolean;
|
|
26
|
+
title: string;
|
|
27
|
+
labelWidth: string;
|
|
28
|
+
labelPosition: "left" | "right" | "top";
|
|
29
|
+
primaryActionLabel: string;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Schema 表单预览字段(库内模型,不依赖业务 Widget) */
|
|
2
|
+
export type SchemaFormPreviewField = {
|
|
3
|
+
id: string;
|
|
4
|
+
/** 控件类型:input|email|phone|password|textarea|select|checkbox|radio|switch|date-picker|datepicker|time-picker|timepicker|button|number|… */
|
|
5
|
+
type: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
clearable?: boolean;
|
|
9
|
+
showPassword?: boolean;
|
|
10
|
+
maxlength?: number;
|
|
11
|
+
options?: Array<{
|
|
12
|
+
label: string;
|
|
13
|
+
value: unknown;
|
|
14
|
+
}>;
|
|
15
|
+
buttonText?: string;
|
|
16
|
+
buttonType?: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 子工作流名称 */
|
|
3
|
+
workflowName: string;
|
|
4
|
+
/** 执行状态 */
|
|
5
|
+
status: string;
|
|
6
|
+
/** 耗时(毫秒) */
|
|
7
|
+
durationMs?: number;
|
|
8
|
+
/** 错误信息 */
|
|
9
|
+
error?: string;
|
|
10
|
+
/** 节点总数 */
|
|
11
|
+
nodeCount?: number;
|
|
12
|
+
/** 已完成节点数 */
|
|
13
|
+
completedNodes?: number;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
retry: () => any;
|
|
17
|
+
detail: () => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
onRetry?: (() => any) | undefined;
|
|
20
|
+
onDetail?: (() => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SubWorkflowStatusCard } from './SubWorkflowStatusCard.vue';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VariableDiffChange } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 关联节点名称 */
|
|
4
|
+
nodeName?: string;
|
|
5
|
+
/** 变更列表 */
|
|
6
|
+
changes: VariableDiffChange[];
|
|
7
|
+
};
|
|
8
|
+
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>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { WorkflowRunStep } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 头部标题 */
|
|
4
|
+
title: string;
|
|
5
|
+
/** 整体执行状态 */
|
|
6
|
+
status: string;
|
|
7
|
+
/** 进度文案 */
|
|
8
|
+
progressText?: string;
|
|
9
|
+
/** 步骤列表 */
|
|
10
|
+
steps: WorkflowRunStep[];
|
|
11
|
+
/** 初始是否折叠 */
|
|
12
|
+
defaultCollapsed?: boolean;
|
|
13
|
+
/** 无步骤时的提示 */
|
|
14
|
+
emptyText?: string;
|
|
15
|
+
};
|
|
16
|
+
declare var __VLS_9: {
|
|
17
|
+
step: WorkflowRunStep;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_Slots = {} & {
|
|
20
|
+
step?: (props: typeof __VLS_9) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
23
|
+
defaultCollapsed: boolean;
|
|
24
|
+
emptyText: string;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
package/dist/docs/index.d.ts
CHANGED
|
@@ -35,6 +35,12 @@ export { QuestionnaireCardDoc } from '../components/Chat/QuestionnaireCard/doc';
|
|
|
35
35
|
export { ChecklistProposalCardDoc } from '../components/Chat/ChecklistProposalCard/doc';
|
|
36
36
|
export { RequirementAnalysisCardDoc } from '../components/Chat/RequirementAnalysisCard/doc';
|
|
37
37
|
export { DocumentDetailSummaryCardDoc } from '../components/Chat/DocumentDetailSummaryCard/doc';
|
|
38
|
+
export { ErrorRecoveryCardDoc } from '../components/Chat/ErrorRecoveryCard/doc';
|
|
39
|
+
export { VariableDiffCardDoc } from '../components/Chat/VariableDiffCard/doc';
|
|
40
|
+
export { SubWorkflowStatusCardDoc } from '../components/Chat/SubWorkflowStatusCard/doc';
|
|
41
|
+
export { PptPreviewCardDoc } from '../components/Chat/PptPreviewCard/doc';
|
|
42
|
+
export { SchemaFormPreviewDoc } from '../components/Chat/SchemaFormPreview/doc';
|
|
43
|
+
export { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/doc';
|
|
38
44
|
export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc';
|
|
39
45
|
export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc';
|
|
40
46
|
export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc';
|
package/dist/index.d.ts
CHANGED
|
@@ -104,6 +104,17 @@ export { RequirementAnalysisCard } from './components/Chat/RequirementAnalysisCa
|
|
|
104
104
|
export type { RequirementAnalysis, RequirementConfirmQuestion, } from './components/Chat/RequirementAnalysisCard';
|
|
105
105
|
export { DocumentDetailSummaryCard } from './components/Chat/DocumentDetailSummaryCard';
|
|
106
106
|
export type { DocumentDetailSummaryItem, DocumentDetailSummaryBody, } from './components/Chat/DocumentDetailSummaryCard';
|
|
107
|
+
export { ErrorRecoveryCard } from './components/Chat/ErrorRecoveryCard';
|
|
108
|
+
export type { ErrorRecoveryStrategy } from './components/Chat/ErrorRecoveryCard';
|
|
109
|
+
export { VariableDiffCard } from './components/Chat/VariableDiffCard';
|
|
110
|
+
export type { VariableDiffChange } from './components/Chat/VariableDiffCard';
|
|
111
|
+
export { SubWorkflowStatusCard } from './components/Chat/SubWorkflowStatusCard';
|
|
112
|
+
export { PptPreviewCard } from './components/Chat/PptPreviewCard';
|
|
113
|
+
export type { PptSlide, PptMetadata } from './components/Chat/PptPreviewCard';
|
|
114
|
+
export { SchemaFormPreview } from './components/Chat/SchemaFormPreview';
|
|
115
|
+
export type { SchemaFormPreviewField } from './components/Chat/SchemaFormPreview';
|
|
116
|
+
export { WorkflowRunTimeline } from './components/Chat/WorkflowRunTimeline';
|
|
117
|
+
export type { WorkflowRunStep } from './components/Chat/WorkflowRunTimeline';
|
|
107
118
|
export { AssistantPicker } from './components/Chat/AssistantPicker';
|
|
108
119
|
export type { AssistantPickerItem } from './components/Chat/AssistantPicker';
|
|
109
120
|
export { ModelPicker } from './components/Chat/ModelPicker';
|
package/package.json
CHANGED
package/src/docs/index.ts
CHANGED
|
@@ -35,6 +35,12 @@ export { QuestionnaireCardDoc } from '../components/Chat/QuestionnaireCard/doc'
|
|
|
35
35
|
export { ChecklistProposalCardDoc } from '../components/Chat/ChecklistProposalCard/doc'
|
|
36
36
|
export { RequirementAnalysisCardDoc } from '../components/Chat/RequirementAnalysisCard/doc'
|
|
37
37
|
export { DocumentDetailSummaryCardDoc } from '../components/Chat/DocumentDetailSummaryCard/doc'
|
|
38
|
+
export { ErrorRecoveryCardDoc } from '../components/Chat/ErrorRecoveryCard/doc'
|
|
39
|
+
export { VariableDiffCardDoc } from '../components/Chat/VariableDiffCard/doc'
|
|
40
|
+
export { SubWorkflowStatusCardDoc } from '../components/Chat/SubWorkflowStatusCard/doc'
|
|
41
|
+
export { PptPreviewCardDoc } from '../components/Chat/PptPreviewCard/doc'
|
|
42
|
+
export { SchemaFormPreviewDoc } from '../components/Chat/SchemaFormPreview/doc'
|
|
43
|
+
export { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/doc'
|
|
38
44
|
export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
|
|
39
45
|
export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
|
|
40
46
|
export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
|
|
@@ -115,6 +121,12 @@ import { QuestionnaireCardDoc } from '../components/Chat/QuestionnaireCard/doc'
|
|
|
115
121
|
import { ChecklistProposalCardDoc } from '../components/Chat/ChecklistProposalCard/doc'
|
|
116
122
|
import { RequirementAnalysisCardDoc } from '../components/Chat/RequirementAnalysisCard/doc'
|
|
117
123
|
import { DocumentDetailSummaryCardDoc } from '../components/Chat/DocumentDetailSummaryCard/doc'
|
|
124
|
+
import { ErrorRecoveryCardDoc } from '../components/Chat/ErrorRecoveryCard/doc'
|
|
125
|
+
import { VariableDiffCardDoc } from '../components/Chat/VariableDiffCard/doc'
|
|
126
|
+
import { SubWorkflowStatusCardDoc } from '../components/Chat/SubWorkflowStatusCard/doc'
|
|
127
|
+
import { PptPreviewCardDoc } from '../components/Chat/PptPreviewCard/doc'
|
|
128
|
+
import { SchemaFormPreviewDoc } from '../components/Chat/SchemaFormPreview/doc'
|
|
129
|
+
import { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/doc'
|
|
118
130
|
import { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
|
|
119
131
|
import { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
|
|
120
132
|
import { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
|
|
@@ -196,6 +208,12 @@ export const componentDocs: Record<string, ComponentDoc> = {
|
|
|
196
208
|
ChecklistProposalCard: ChecklistProposalCardDoc,
|
|
197
209
|
RequirementAnalysisCard: RequirementAnalysisCardDoc,
|
|
198
210
|
DocumentDetailSummaryCard: DocumentDetailSummaryCardDoc,
|
|
211
|
+
ErrorRecoveryCard: ErrorRecoveryCardDoc,
|
|
212
|
+
VariableDiffCard: VariableDiffCardDoc,
|
|
213
|
+
SubWorkflowStatusCard: SubWorkflowStatusCardDoc,
|
|
214
|
+
PptPreviewCard: PptPreviewCardDoc,
|
|
215
|
+
SchemaFormPreview: SchemaFormPreviewDoc,
|
|
216
|
+
WorkflowRunTimeline: WorkflowRunTimelineDoc,
|
|
199
217
|
AttachmentPreviewModal: AttachmentPreviewModalDoc,
|
|
200
218
|
DocumentSummaryList: DocumentSummaryListDoc,
|
|
201
219
|
MessageAttachmentList: MessageAttachmentListDoc,
|