@apform-ui/core 1.10.22 → 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;
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apform-ui/core",
3
- "version": "1.10.22",
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
  },