@apform-ui/core 1.10.21 → 1.10.23

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,21 @@
1
+ import { BpmnPreviewEdge, BpmnPreviewNode } from './types';
2
+ type __VLS_Props = {
3
+ nodes: BpmnPreviewNode[];
4
+ edges: BpmnPreviewEdge[];
5
+ /** VueFlow 实例 id;不传则自动生成(组件生命周期内稳定) */
6
+ flowId?: string;
7
+ };
8
+ /**
9
+ * 适配视口
10
+ */
11
+ declare function handleFitView(): void;
12
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
13
+ fitView: typeof handleFitView;
14
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ "fit-view": () => any;
16
+ "node-click": (nodeId: string, data: import('./types').BpmnPreviewNodeData) => any;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ "onFit-view"?: (() => any) | undefined;
19
+ "onNode-click"?: ((nodeId: string, data: import('./types').BpmnPreviewNodeData) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ export default _default;
@@ -0,0 +1,7 @@
1
+ export { default as BpmnFlowPreviewCanvas } from './BpmnFlowPreviewCanvas.vue';
2
+ export { default as BpmnPreviewStartEvent } from './nodes/PreviewStartEvent.vue';
3
+ export { default as BpmnPreviewEndEvent } from './nodes/PreviewEndEvent.vue';
4
+ export { default as BpmnPreviewTask } from './nodes/PreviewTask.vue';
5
+ export { default as BpmnPreviewGateway } from './nodes/PreviewGateway.vue';
6
+ export { BPMN_TO_PREVIEW_VF_TYPE, resolveBpmnPreviewNodeType, } from './types';
7
+ export type { BpmnPreviewNode, BpmnPreviewEdge, BpmnPreviewNodeData, } from './types';
@@ -0,0 +1,6 @@
1
+ import { BpmnPreviewNodeData } from '../types';
2
+ type __VLS_Props = {
3
+ data: BpmnPreviewNodeData;
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,6 @@
1
+ import { BpmnPreviewNodeData } from '../types';
2
+ type __VLS_Props = {
3
+ data: BpmnPreviewNodeData;
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,6 @@
1
+ import { BpmnPreviewNodeData } from '../types';
2
+ type __VLS_Props = {
3
+ data: BpmnPreviewNodeData;
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,6 @@
1
+ import { BpmnPreviewNodeData } from '../types';
2
+ type __VLS_Props = {
3
+ data: BpmnPreviewNodeData;
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,29 @@
1
+ /** BPMN 预览画布节点(与 VueFlow node.data 对齐) */
2
+ export interface BpmnPreviewNodeData {
3
+ label: string;
4
+ bpmnType: string;
5
+ }
6
+ /** 通用预览节点 */
7
+ export interface BpmnPreviewNode {
8
+ id: string;
9
+ /** VueFlow 节点类型:start-event | end-event | task | gateway */
10
+ type: string;
11
+ position: {
12
+ x: number;
13
+ y: number;
14
+ };
15
+ data: BpmnPreviewNodeData;
16
+ }
17
+ /** 通用预览边 */
18
+ export interface BpmnPreviewEdge {
19
+ id: string;
20
+ source: string;
21
+ target: string;
22
+ label?: string;
23
+ }
24
+ /** BPMN 类型 → VueFlow 预览节点类型 */
25
+ export declare const BPMN_TO_PREVIEW_VF_TYPE: Record<string, string>;
26
+ /**
27
+ * @param bpmnType - BPMN 元素类型
28
+ */
29
+ export declare function resolveBpmnPreviewNodeType(bpmnType: string): string;
@@ -0,0 +1,34 @@
1
+ import { RagContextItem } from './types';
2
+ type __VLS_Props = {
3
+ results: RagContextItem[];
4
+ selected: RagContextItem[];
5
+ loading?: boolean;
6
+ query?: string;
7
+ placeholder?: string;
8
+ emptyHint?: string;
9
+ idleHint?: string;
10
+ footerHint?: string;
11
+ selectedFooterHint?: string;
12
+ };
13
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ close: () => any;
15
+ select: (item: RagContextItem) => any;
16
+ search: (query: string) => any;
17
+ remove: (id: string) => any;
18
+ "update:query": (value: string) => any;
19
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
20
+ onClose?: (() => any) | undefined;
21
+ onSelect?: ((item: RagContextItem) => any) | undefined;
22
+ onSearch?: ((query: string) => any) | undefined;
23
+ onRemove?: ((id: string) => any) | undefined;
24
+ "onUpdate:query"?: ((value: string) => any) | undefined;
25
+ }>, {
26
+ loading: boolean;
27
+ placeholder: string;
28
+ query: string;
29
+ emptyHint: string;
30
+ idleHint: string;
31
+ footerHint: string;
32
+ selectedFooterHint: string;
33
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
34
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as RagContextPanel } from './RagContextPanel.vue';
2
+ export type { RagContextItem } from './types';
@@ -0,0 +1,9 @@
1
+ /** RAG / Schema 检索结果项(纯展示) */
2
+ export interface RagContextItem {
3
+ id: string;
4
+ name: string;
5
+ score: number;
6
+ description?: string;
7
+ /** 标签(如 widgetTypes) */
8
+ tags?: string[];
9
+ }
@@ -0,0 +1,11 @@
1
+ import { TaskChainStepItem } from './types';
2
+ type __VLS_Props = {
3
+ steps: TaskChainStepItem[];
4
+ currentIndex: number;
5
+ /** 左侧标签文案 */
6
+ label?: string;
7
+ };
8
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ label: string;
10
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as TaskChainBar } from './TaskChainBar.vue';
2
+ export type { TaskChainStepItem, TaskChainStepStatus } from './types';
@@ -0,0 +1,11 @@
1
+ /** 任务链步骤状态 */
2
+ export type TaskChainStepStatus = 'pending' | 'running' | 'done' | 'error' | 'skipped';
3
+ /** 任务链步骤(纯展示) */
4
+ export interface TaskChainStepItem {
5
+ /** 代理/角色标识(如 editor / flow / page) */
6
+ agent: string;
7
+ /** 步骤说明 */
8
+ description: string;
9
+ /** 步骤状态 */
10
+ status?: TaskChainStepStatus;
11
+ }
package/dist/index.d.ts CHANGED
@@ -113,6 +113,9 @@ export { PptPreviewCard } from './components/Chat/PptPreviewCard';
113
113
  export type { PptSlide, PptMetadata } from './components/Chat/PptPreviewCard';
114
114
  export { FlowPreviewShell } from './components/Chat/FlowPreviewShell';
115
115
  export type { FlowPreviewShellProps } from './components/Chat/FlowPreviewShell';
116
+ export { BpmnFlowPreviewCanvas } from './components/Chat/BpmnFlowPreviewCanvas';
117
+ export { BpmnPreviewStartEvent, BpmnPreviewEndEvent, BpmnPreviewTask, BpmnPreviewGateway, BPMN_TO_PREVIEW_VF_TYPE, resolveBpmnPreviewNodeType, } from './components/Chat/BpmnFlowPreviewCanvas';
118
+ export type { BpmnPreviewNode, BpmnPreviewEdge, BpmnPreviewNodeData, } from './components/Chat/BpmnFlowPreviewCanvas';
116
119
  export { Model3dPreviewCard } from './components/Chat/Model3dPreviewCard';
117
120
  export type { Model3dPreviewCardProps } from './components/Chat/Model3dPreviewCard';
118
121
  export { ImageGenerateCard } from './components/Chat/ImageGenerateCard';
@@ -125,6 +128,10 @@ export { SuggestionCard } from './components/Chat/SuggestionCard';
125
128
  export type { SuggestionItem } from './components/Chat/SuggestionCard';
126
129
  export { ConversationSearchBar } from './components/Chat/ConversationSearchBar';
127
130
  export type { ConversationSearchResult, ConversationSearchSourceOption, } from './components/Chat/ConversationSearchBar';
131
+ export { TaskChainBar } from './components/Chat/TaskChainBar';
132
+ export type { TaskChainStepItem, TaskChainStepStatus, } from './components/Chat/TaskChainBar';
133
+ export { RagContextPanel } from './components/Chat/RagContextPanel';
134
+ export type { RagContextItem } from './components/Chat/RagContextPanel';
128
135
  export { AssistantPicker } from './components/Chat/AssistantPicker';
129
136
  export type { AssistantPickerItem } from './components/Chat/AssistantPicker';
130
137
  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.21",
3
+ "version": "1.10.23",
4
4
  "type": "module",
5
5
  "author": "yangdongnan",
6
6
  "license": "MIT",
@@ -51,6 +51,9 @@
51
51
  "README.md"
52
52
  ],
53
53
  "peerDependencies": {
54
+ "@vue-flow/background": ">=1.3.0",
55
+ "@vue-flow/controls": ">=1.1.0",
56
+ "@vue-flow/core": ">=1.48.0",
54
57
  "echarts": ">=5.0.0",
55
58
  "element-plus": "2.14.2",
56
59
  "pdfjs-dist": ">=4.0.0",
@@ -58,6 +61,15 @@
58
61
  "xlsx": ">=0.18.0"
59
62
  },
60
63
  "peerDependenciesMeta": {
64
+ "@vue-flow/background": {
65
+ "optional": true
66
+ },
67
+ "@vue-flow/controls": {
68
+ "optional": true
69
+ },
70
+ "@vue-flow/core": {
71
+ "optional": true
72
+ },
61
73
  "echarts": {
62
74
  "optional": true
63
75
  },