@apform-ui/core 1.10.15 → 1.10.17

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,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,3 @@
1
+ import { ComponentDoc } from '../../../docs/types';
2
+ /** SchemaFormPreview 文档 */
3
+ export declare const SchemaFormPreviewDoc: ComponentDoc;
@@ -0,0 +1,2 @@
1
+ export { default as SchemaFormPreview } from './SchemaFormPreview.vue';
2
+ export type { SchemaFormPreviewField } from './types';
@@ -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,14 @@
1
+ import { SuggestionItem } from './types';
2
+ type __VLS_Props = {
3
+ suggestion: SuggestionItem;
4
+ accepted?: boolean;
5
+ dismissed?: boolean;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ accept: (id: string) => any;
9
+ dismiss: (id: string) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onAccept?: ((id: string) => any) | undefined;
12
+ onDismiss?: ((id: string) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../../../docs/types';
2
+ /** SuggestionCard 文档 */
3
+ export declare const SuggestionCardDoc: ComponentDoc;
@@ -0,0 +1,2 @@
1
+ export { default as SuggestionCard } from './SuggestionCard.vue';
2
+ export type { SuggestionItem } from './types';
@@ -0,0 +1,12 @@
1
+ /**
2
+ * 智能建议项
3
+ */
4
+ export interface SuggestionItem {
5
+ id: string;
6
+ type: 'action' | 'optimization' | 'reference' | (string & {});
7
+ title: string;
8
+ description: string;
9
+ priority: 'high' | 'medium' | 'low' | (string & {});
10
+ targetId?: string;
11
+ targetName?: string;
12
+ }
@@ -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
+ };
@@ -0,0 +1,3 @@
1
+ import { ComponentDoc } from '../../../docs/types';
2
+ /** WorkflowRunTimeline 文档 */
3
+ export declare const WorkflowRunTimelineDoc: ComponentDoc;
@@ -0,0 +1,2 @@
1
+ export { default as WorkflowRunTimeline } from './WorkflowRunTimeline.vue';
2
+ export type { WorkflowRunStep } from './types';
@@ -0,0 +1,9 @@
1
+ /** 工作流执行时间线条目 */
2
+ export type WorkflowRunStep = {
3
+ id: string;
4
+ label: string;
5
+ status: string;
6
+ hint?: string;
7
+ /** 是否为当前流式节点 */
8
+ streaming?: boolean;
9
+ };
@@ -39,6 +39,9 @@ export { ErrorRecoveryCardDoc } from '../components/Chat/ErrorRecoveryCard/doc';
39
39
  export { VariableDiffCardDoc } from '../components/Chat/VariableDiffCard/doc';
40
40
  export { SubWorkflowStatusCardDoc } from '../components/Chat/SubWorkflowStatusCard/doc';
41
41
  export { PptPreviewCardDoc } from '../components/Chat/PptPreviewCard/doc';
42
+ export { SchemaFormPreviewDoc } from '../components/Chat/SchemaFormPreview/doc';
43
+ export { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/doc';
44
+ export { SuggestionCardDoc } from '../components/Chat/SuggestionCard/doc';
42
45
  export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc';
43
46
  export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc';
44
47
  export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc';
package/dist/index.d.ts CHANGED
@@ -111,6 +111,12 @@ export type { VariableDiffChange } from './components/Chat/VariableDiffCard';
111
111
  export { SubWorkflowStatusCard } from './components/Chat/SubWorkflowStatusCard';
112
112
  export { PptPreviewCard } from './components/Chat/PptPreviewCard';
113
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';
118
+ export { SuggestionCard } from './components/Chat/SuggestionCard';
119
+ export type { SuggestionItem } from './components/Chat/SuggestionCard';
114
120
  export { AssistantPicker } from './components/Chat/AssistantPicker';
115
121
  export type { AssistantPickerItem } from './components/Chat/AssistantPicker';
116
122
  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.15",
3
+ "version": "1.10.17",
4
4
  "type": "module",
5
5
  "author": "yangdongnan",
6
6
  "license": "MIT",
package/src/docs/index.ts CHANGED
@@ -39,6 +39,9 @@ export { ErrorRecoveryCardDoc } from '../components/Chat/ErrorRecoveryCard/doc'
39
39
  export { VariableDiffCardDoc } from '../components/Chat/VariableDiffCard/doc'
40
40
  export { SubWorkflowStatusCardDoc } from '../components/Chat/SubWorkflowStatusCard/doc'
41
41
  export { PptPreviewCardDoc } from '../components/Chat/PptPreviewCard/doc'
42
+ export { SchemaFormPreviewDoc } from '../components/Chat/SchemaFormPreview/doc'
43
+ export { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/doc'
44
+ export { SuggestionCardDoc } from '../components/Chat/SuggestionCard/doc'
42
45
  export { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
43
46
  export { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
44
47
  export { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
@@ -123,6 +126,9 @@ import { ErrorRecoveryCardDoc } from '../components/Chat/ErrorRecoveryCard/doc'
123
126
  import { VariableDiffCardDoc } from '../components/Chat/VariableDiffCard/doc'
124
127
  import { SubWorkflowStatusCardDoc } from '../components/Chat/SubWorkflowStatusCard/doc'
125
128
  import { PptPreviewCardDoc } from '../components/Chat/PptPreviewCard/doc'
129
+ import { SchemaFormPreviewDoc } from '../components/Chat/SchemaFormPreview/doc'
130
+ import { WorkflowRunTimelineDoc } from '../components/Chat/WorkflowRunTimeline/doc'
131
+ import { SuggestionCardDoc } from '../components/Chat/SuggestionCard/doc'
126
132
  import { AttachmentPreviewModalDoc } from '../components/Chat/message/AttachmentPreviewModal.doc'
127
133
  import { DocumentSummaryListDoc } from '../components/Chat/message/DocumentSummaryList.doc'
128
134
  import { MessageAttachmentListDoc } from '../components/Chat/message/MessageAttachmentList.doc'
@@ -208,6 +214,9 @@ export const componentDocs: Record<string, ComponentDoc> = {
208
214
  VariableDiffCard: VariableDiffCardDoc,
209
215
  SubWorkflowStatusCard: SubWorkflowStatusCardDoc,
210
216
  PptPreviewCard: PptPreviewCardDoc,
217
+ SchemaFormPreview: SchemaFormPreviewDoc,
218
+ WorkflowRunTimeline: WorkflowRunTimelineDoc,
219
+ SuggestionCard: SuggestionCardDoc,
211
220
  AttachmentPreviewModal: AttachmentPreviewModalDoc,
212
221
  DocumentSummaryList: DocumentSummaryListDoc,
213
222
  MessageAttachmentList: MessageAttachmentListDoc,