@flowgram.ai/free-layout-core 0.1.0
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/esm/chunk-CGOMTQ3G.js +1 -0
- package/dist/esm/chunk-CGOMTQ3G.js.map +1 -0
- package/dist/esm/chunk-DDJTYHXN.js +1 -0
- package/dist/esm/chunk-DDJTYHXN.js.map +1 -0
- package/dist/esm/chunk-DE4324TR.js +7 -0
- package/dist/esm/chunk-DE4324TR.js.map +1 -0
- package/dist/esm/chunk-EUXUH3YW.js +15 -0
- package/dist/esm/chunk-EUXUH3YW.js.map +1 -0
- package/dist/esm/chunk-J5FVRRUV.js +16 -0
- package/dist/esm/chunk-J5FVRRUV.js.map +1 -0
- package/dist/esm/chunk-KAL7YCC2.js +20 -0
- package/dist/esm/chunk-KAL7YCC2.js.map +1 -0
- package/dist/esm/chunk-KNYZRMIO.js +1 -0
- package/dist/esm/chunk-KNYZRMIO.js.map +1 -0
- package/dist/esm/chunk-NU6G5HF4.js +1 -0
- package/dist/esm/chunk-NU6G5HF4.js.map +1 -0
- package/dist/esm/index.js +3432 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/typings/index.js +22 -0
- package/dist/esm/typings/index.js.map +1 -0
- package/dist/esm/typings/workflow-edge.js +2 -0
- package/dist/esm/typings/workflow-edge.js.map +1 -0
- package/dist/esm/typings/workflow-json.js +8 -0
- package/dist/esm/typings/workflow-json.js.map +1 -0
- package/dist/esm/typings/workflow-line.js +10 -0
- package/dist/esm/typings/workflow-line.js.map +1 -0
- package/dist/esm/typings/workflow-node.js +2 -0
- package/dist/esm/typings/workflow-node.js.map +1 -0
- package/dist/esm/typings/workflow-registry.js +2 -0
- package/dist/esm/typings/workflow-registry.js.map +1 -0
- package/dist/esm/typings/workflow-sub-canvas.js +2 -0
- package/dist/esm/typings/workflow-sub-canvas.js.map +1 -0
- package/dist/index.d.mts +463 -0
- package/dist/index.d.ts +463 -0
- package/dist/index.js +3483 -0
- package/dist/index.js.map +1 -0
- package/dist/typings/index.d.mts +18 -0
- package/dist/typings/index.d.ts +18 -0
- package/dist/typings/index.js +66 -0
- package/dist/typings/index.js.map +1 -0
- package/dist/typings/workflow-edge.d.mts +11 -0
- package/dist/typings/workflow-edge.d.ts +11 -0
- package/dist/typings/workflow-edge.js +19 -0
- package/dist/typings/workflow-edge.js.map +1 -0
- package/dist/typings/workflow-json.d.mts +9 -0
- package/dist/typings/workflow-json.d.ts +9 -0
- package/dist/typings/workflow-json.js +40 -0
- package/dist/typings/workflow-json.js.map +1 -0
- package/dist/typings/workflow-line.d.mts +27 -0
- package/dist/typings/workflow-line.d.ts +27 -0
- package/dist/typings/workflow-line.js +45 -0
- package/dist/typings/workflow-line.js.map +1 -0
- package/dist/typings/workflow-node.d.mts +9 -0
- package/dist/typings/workflow-node.d.ts +9 -0
- package/dist/typings/workflow-node.js +19 -0
- package/dist/typings/workflow-node.js.map +1 -0
- package/dist/typings/workflow-registry.d.mts +26 -0
- package/dist/typings/workflow-registry.d.ts +26 -0
- package/dist/typings/workflow-registry.js +19 -0
- package/dist/typings/workflow-registry.js.map +1 -0
- package/dist/typings/workflow-sub-canvas.d.mts +2 -0
- package/dist/typings/workflow-sub-canvas.d.ts +2 -0
- package/dist/typings/workflow-sub-canvas.js +19 -0
- package/dist/typings/workflow-sub-canvas.js.map +1 -0
- package/dist/workflow-line-entity-1qT4aXVU.d.mts +619 -0
- package/dist/workflow-line-entity-CG_8mknJ.d.ts +619 -0
- package/dist/workflow-sub-canvas-DOVla1mw.d.mts +15 -0
- package/dist/workflow-sub-canvas-DOVla1mw.d.ts +15 -0
- package/package.json +72 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/typings/index.ts
|
|
21
|
+
var typings_exports = {};
|
|
22
|
+
__export(typings_exports, {
|
|
23
|
+
LineColors: () => LineColors,
|
|
24
|
+
LineType: () => LineType,
|
|
25
|
+
URLParams: () => URLParams,
|
|
26
|
+
WorkflowContentChangeType: () => WorkflowContentChangeType
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(typings_exports);
|
|
29
|
+
|
|
30
|
+
// src/typings/workflow-json.ts
|
|
31
|
+
var WorkflowContentChangeType = /* @__PURE__ */ ((WorkflowContentChangeType2) => {
|
|
32
|
+
WorkflowContentChangeType2["ADD_NODE"] = "ADD_NODE";
|
|
33
|
+
WorkflowContentChangeType2["DELETE_NODE"] = "DELETE_NODE";
|
|
34
|
+
WorkflowContentChangeType2["MOVE_NODE"] = "MOVE_NODE";
|
|
35
|
+
WorkflowContentChangeType2["NODE_DATA_CHANGE"] = "NODE_DATA_CHANGE";
|
|
36
|
+
WorkflowContentChangeType2["ADD_LINE"] = "ADD_LINE";
|
|
37
|
+
WorkflowContentChangeType2["DELETE_LINE"] = "DELETE_LINE";
|
|
38
|
+
WorkflowContentChangeType2["META_CHANGE"] = "META_CHANGE";
|
|
39
|
+
return WorkflowContentChangeType2;
|
|
40
|
+
})(WorkflowContentChangeType || {});
|
|
41
|
+
|
|
42
|
+
// src/typings/workflow-line.ts
|
|
43
|
+
var LineType = /* @__PURE__ */ ((LineType2) => {
|
|
44
|
+
LineType2[LineType2["BEZIER"] = 0] = "BEZIER";
|
|
45
|
+
LineType2[LineType2["LINE_CHART"] = 1] = "LINE_CHART";
|
|
46
|
+
return LineType2;
|
|
47
|
+
})(LineType || {});
|
|
48
|
+
var LineColors = /* @__PURE__ */ ((LineColors2) => {
|
|
49
|
+
LineColors2["HIDDEN"] = "transparent";
|
|
50
|
+
LineColors2["DEFUALT"] = "#4d53e8";
|
|
51
|
+
LineColors2["DRAWING"] = "#5DD6E3";
|
|
52
|
+
LineColors2["HOVER"] = "#37d0ff";
|
|
53
|
+
LineColors2["ERROR"] = "red";
|
|
54
|
+
return LineColors2;
|
|
55
|
+
})(LineColors || {});
|
|
56
|
+
|
|
57
|
+
// src/typings/index.ts
|
|
58
|
+
var URLParams = Symbol("");
|
|
59
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
60
|
+
0 && (module.exports = {
|
|
61
|
+
LineColors,
|
|
62
|
+
LineType,
|
|
63
|
+
URLParams,
|
|
64
|
+
WorkflowContentChangeType
|
|
65
|
+
});
|
|
66
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/typings/index.ts","../../src/typings/workflow-json.ts","../../src/typings/workflow-line.ts"],"sourcesContent":["export * from './workflow-json';\nexport * from './workflow-edge';\nexport * from './workflow-node';\nexport * from './workflow-registry';\nexport * from './workflow-line';\nexport * from './workflow-sub-canvas';\n\nexport const URLParams = Symbol('');\n\nexport interface URLParams {\n [key: string]: string;\n}\n","import { type WorkflowLineEntity, type WorkflowNodeEntity } from '../entities';\nimport { type WorkflowNodeJSON } from './workflow-node';\nimport { type WorkflowEdgeJSON } from './workflow-edge';\n\nexport interface WorkflowJSON {\n nodes: WorkflowNodeJSON[];\n edges: WorkflowEdgeJSON[];\n}\n\nexport enum WorkflowContentChangeType {\n /**\n * 添加节点\n */\n ADD_NODE = 'ADD_NODE',\n /**\n * 删除节点\n */\n DELETE_NODE = 'DELETE_NODE',\n /**\n * 移动节点\n */\n MOVE_NODE = 'MOVE_NODE',\n /**\n * 节点数据更新 (表单引擎数据 或者 extInfo 数据)\n */\n NODE_DATA_CHANGE = 'NODE_DATA_CHANGE',\n /**\n * 添加线条\n */\n ADD_LINE = 'ADD_LINE',\n /**\n * 删除线条\n */\n DELETE_LINE = 'DELETE_LINE',\n /**\n * 节点Meta信息变更\n */\n META_CHANGE = 'META_CHANGE',\n}\n\nexport interface WorkflowContentChangeEvent {\n type: WorkflowContentChangeType;\n /**\n * 当前触发的元素的json数据,toJSON 需要主动触发\n */\n toJSON: () => any;\n /*\n * 当前的事件的 entity\n */\n entity: WorkflowNodeEntity | WorkflowLineEntity;\n}\n","import { type IPoint } from '@flowgram.ai/utils';\n\nexport enum LineType {\n BEZIER, // 贝塞尔曲线\n LINE_CHART, // 折叠线\n}\n\nexport interface LinePosition {\n from: IPoint;\n to: IPoint;\n}\n\nexport interface LineColor {\n hidden: string;\n default: string;\n drawing: string;\n hovered: string;\n selected: string;\n error: string;\n}\n\nexport enum LineColors {\n HIDDEN = 'transparent', // 隐藏线条\n DEFUALT = '#4d53e8',\n DRAWING = '#5DD6E3', // '#b5bbf8', // '#9197F1',\n HOVER = '#37d0ff',\n ERROR = 'red',\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACSO,IAAK,4BAAL,kBAAKA,+BAAL;AAIL,EAAAA,2BAAA,cAAW;AAIX,EAAAA,2BAAA,iBAAc;AAId,EAAAA,2BAAA,eAAY;AAIZ,EAAAA,2BAAA,sBAAmB;AAInB,EAAAA,2BAAA,cAAW;AAIX,EAAAA,2BAAA,iBAAc;AAId,EAAAA,2BAAA,iBAAc;AA5BJ,SAAAA;AAAA,GAAA;;;ACPL,IAAK,WAAL,kBAAKC,cAAL;AACL,EAAAA,oBAAA;AACA,EAAAA,oBAAA;AAFU,SAAAA;AAAA,GAAA;AAmBL,IAAK,aAAL,kBAAKC,gBAAL;AACL,EAAAA,YAAA,YAAS;AACT,EAAAA,YAAA,aAAU;AACV,EAAAA,YAAA,aAAU;AACV,EAAAA,YAAA,WAAQ;AACR,EAAAA,YAAA,WAAQ;AALE,SAAAA;AAAA,GAAA;;;AFdL,IAAM,YAAY,OAAO,EAAE;","names":["WorkflowContentChangeType","LineType","LineColors"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/typings/workflow-edge.ts
|
|
17
|
+
var workflow_edge_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(workflow_edge_exports);
|
|
19
|
+
//# sourceMappingURL=workflow-edge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/typings/workflow-edge.ts"],"sourcesContent":["/**\n * 边数据\n */\nexport interface WorkflowEdgeJSON {\n sourceNodeID: string;\n targetNodeID: string;\n sourcePortID?: string | number;\n targetPortID?: string | number;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '../workflow-sub-canvas-DOVla1mw.mjs';
|
|
2
|
+
export { o as WorkflowContentChangeEvent, n as WorkflowContentChangeType, m as WorkflowJSON } from '../workflow-line-entity-1qT4aXVU.mjs';
|
|
3
|
+
import './workflow-edge.mjs';
|
|
4
|
+
import '@flowgram.ai/document';
|
|
5
|
+
import 'bezier-js';
|
|
6
|
+
import '@flowgram.ai/utils';
|
|
7
|
+
import '@flowgram.ai/core';
|
|
8
|
+
import '@flowgram.ai/form-core';
|
|
9
|
+
import './workflow-line.mjs';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '../workflow-sub-canvas-DOVla1mw.js';
|
|
2
|
+
export { o as WorkflowContentChangeEvent, n as WorkflowContentChangeType, m as WorkflowJSON } from '../workflow-line-entity-CG_8mknJ.js';
|
|
3
|
+
import './workflow-edge.js';
|
|
4
|
+
import '@flowgram.ai/document';
|
|
5
|
+
import 'bezier-js';
|
|
6
|
+
import '@flowgram.ai/utils';
|
|
7
|
+
import '@flowgram.ai/core';
|
|
8
|
+
import '@flowgram.ai/form-core';
|
|
9
|
+
import './workflow-line.js';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/typings/workflow-json.ts
|
|
21
|
+
var workflow_json_exports = {};
|
|
22
|
+
__export(workflow_json_exports, {
|
|
23
|
+
WorkflowContentChangeType: () => WorkflowContentChangeType
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(workflow_json_exports);
|
|
26
|
+
var WorkflowContentChangeType = /* @__PURE__ */ ((WorkflowContentChangeType2) => {
|
|
27
|
+
WorkflowContentChangeType2["ADD_NODE"] = "ADD_NODE";
|
|
28
|
+
WorkflowContentChangeType2["DELETE_NODE"] = "DELETE_NODE";
|
|
29
|
+
WorkflowContentChangeType2["MOVE_NODE"] = "MOVE_NODE";
|
|
30
|
+
WorkflowContentChangeType2["NODE_DATA_CHANGE"] = "NODE_DATA_CHANGE";
|
|
31
|
+
WorkflowContentChangeType2["ADD_LINE"] = "ADD_LINE";
|
|
32
|
+
WorkflowContentChangeType2["DELETE_LINE"] = "DELETE_LINE";
|
|
33
|
+
WorkflowContentChangeType2["META_CHANGE"] = "META_CHANGE";
|
|
34
|
+
return WorkflowContentChangeType2;
|
|
35
|
+
})(WorkflowContentChangeType || {});
|
|
36
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
+
0 && (module.exports = {
|
|
38
|
+
WorkflowContentChangeType
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=workflow-json.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/typings/workflow-json.ts"],"sourcesContent":["import { type WorkflowLineEntity, type WorkflowNodeEntity } from '../entities';\nimport { type WorkflowNodeJSON } from './workflow-node';\nimport { type WorkflowEdgeJSON } from './workflow-edge';\n\nexport interface WorkflowJSON {\n nodes: WorkflowNodeJSON[];\n edges: WorkflowEdgeJSON[];\n}\n\nexport enum WorkflowContentChangeType {\n /**\n * 添加节点\n */\n ADD_NODE = 'ADD_NODE',\n /**\n * 删除节点\n */\n DELETE_NODE = 'DELETE_NODE',\n /**\n * 移动节点\n */\n MOVE_NODE = 'MOVE_NODE',\n /**\n * 节点数据更新 (表单引擎数据 或者 extInfo 数据)\n */\n NODE_DATA_CHANGE = 'NODE_DATA_CHANGE',\n /**\n * 添加线条\n */\n ADD_LINE = 'ADD_LINE',\n /**\n * 删除线条\n */\n DELETE_LINE = 'DELETE_LINE',\n /**\n * 节点Meta信息变更\n */\n META_CHANGE = 'META_CHANGE',\n}\n\nexport interface WorkflowContentChangeEvent {\n type: WorkflowContentChangeType;\n /**\n * 当前触发的元素的json数据,toJSON 需要主动触发\n */\n toJSON: () => any;\n /*\n * 当前的事件的 entity\n */\n entity: WorkflowNodeEntity | WorkflowLineEntity;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASO,IAAK,4BAAL,kBAAKA,+BAAL;AAIL,EAAAA,2BAAA,cAAW;AAIX,EAAAA,2BAAA,iBAAc;AAId,EAAAA,2BAAA,eAAY;AAIZ,EAAAA,2BAAA,sBAAmB;AAInB,EAAAA,2BAAA,cAAW;AAIX,EAAAA,2BAAA,iBAAc;AAId,EAAAA,2BAAA,iBAAc;AA5BJ,SAAAA;AAAA,GAAA;","names":["WorkflowContentChangeType"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IPoint } from '@flowgram.ai/utils';
|
|
2
|
+
|
|
3
|
+
declare enum LineType {
|
|
4
|
+
BEZIER = 0,
|
|
5
|
+
LINE_CHART = 1
|
|
6
|
+
}
|
|
7
|
+
interface LinePosition {
|
|
8
|
+
from: IPoint;
|
|
9
|
+
to: IPoint;
|
|
10
|
+
}
|
|
11
|
+
interface LineColor {
|
|
12
|
+
hidden: string;
|
|
13
|
+
default: string;
|
|
14
|
+
drawing: string;
|
|
15
|
+
hovered: string;
|
|
16
|
+
selected: string;
|
|
17
|
+
error: string;
|
|
18
|
+
}
|
|
19
|
+
declare enum LineColors {
|
|
20
|
+
HIDDEN = "transparent",
|
|
21
|
+
DEFUALT = "#4d53e8",
|
|
22
|
+
DRAWING = "#5DD6E3",
|
|
23
|
+
HOVER = "#37d0ff",
|
|
24
|
+
ERROR = "red"
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { type LineColor, LineColors, type LinePosition, LineType };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IPoint } from '@flowgram.ai/utils';
|
|
2
|
+
|
|
3
|
+
declare enum LineType {
|
|
4
|
+
BEZIER = 0,
|
|
5
|
+
LINE_CHART = 1
|
|
6
|
+
}
|
|
7
|
+
interface LinePosition {
|
|
8
|
+
from: IPoint;
|
|
9
|
+
to: IPoint;
|
|
10
|
+
}
|
|
11
|
+
interface LineColor {
|
|
12
|
+
hidden: string;
|
|
13
|
+
default: string;
|
|
14
|
+
drawing: string;
|
|
15
|
+
hovered: string;
|
|
16
|
+
selected: string;
|
|
17
|
+
error: string;
|
|
18
|
+
}
|
|
19
|
+
declare enum LineColors {
|
|
20
|
+
HIDDEN = "transparent",
|
|
21
|
+
DEFUALT = "#4d53e8",
|
|
22
|
+
DRAWING = "#5DD6E3",
|
|
23
|
+
HOVER = "#37d0ff",
|
|
24
|
+
ERROR = "red"
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { type LineColor, LineColors, type LinePosition, LineType };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/typings/workflow-line.ts
|
|
21
|
+
var workflow_line_exports = {};
|
|
22
|
+
__export(workflow_line_exports, {
|
|
23
|
+
LineColors: () => LineColors,
|
|
24
|
+
LineType: () => LineType
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(workflow_line_exports);
|
|
27
|
+
var LineType = /* @__PURE__ */ ((LineType2) => {
|
|
28
|
+
LineType2[LineType2["BEZIER"] = 0] = "BEZIER";
|
|
29
|
+
LineType2[LineType2["LINE_CHART"] = 1] = "LINE_CHART";
|
|
30
|
+
return LineType2;
|
|
31
|
+
})(LineType || {});
|
|
32
|
+
var LineColors = /* @__PURE__ */ ((LineColors2) => {
|
|
33
|
+
LineColors2["HIDDEN"] = "transparent";
|
|
34
|
+
LineColors2["DEFUALT"] = "#4d53e8";
|
|
35
|
+
LineColors2["DRAWING"] = "#5DD6E3";
|
|
36
|
+
LineColors2["HOVER"] = "#37d0ff";
|
|
37
|
+
LineColors2["ERROR"] = "red";
|
|
38
|
+
return LineColors2;
|
|
39
|
+
})(LineColors || {});
|
|
40
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
+
0 && (module.exports = {
|
|
42
|
+
LineColors,
|
|
43
|
+
LineType
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=workflow-line.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/typings/workflow-line.ts"],"sourcesContent":["import { type IPoint } from '@flowgram.ai/utils';\n\nexport enum LineType {\n BEZIER, // 贝塞尔曲线\n LINE_CHART, // 折叠线\n}\n\nexport interface LinePosition {\n from: IPoint;\n to: IPoint;\n}\n\nexport interface LineColor {\n hidden: string;\n default: string;\n drawing: string;\n hovered: string;\n selected: string;\n error: string;\n}\n\nexport enum LineColors {\n HIDDEN = 'transparent', // 隐藏线条\n DEFUALT = '#4d53e8',\n DRAWING = '#5DD6E3', // '#b5bbf8', // '#9197F1',\n HOVER = '#37d0ff',\n ERROR = 'red',\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,IAAK,WAAL,kBAAKA,cAAL;AACL,EAAAA,oBAAA;AACA,EAAAA,oBAAA;AAFU,SAAAA;AAAA,GAAA;AAmBL,IAAK,aAAL,kBAAKC,gBAAL;AACL,EAAAA,YAAA,YAAS;AACT,EAAAA,YAAA,aAAU;AACV,EAAAA,YAAA,aAAU;AACV,EAAAA,YAAA,WAAQ;AACR,EAAAA,YAAA,WAAQ;AALE,SAAAA;AAAA,GAAA;","names":["LineType","LineColors"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '@flowgram.ai/utils';
|
|
2
|
+
import '@flowgram.ai/document';
|
|
3
|
+
import '../workflow-sub-canvas-DOVla1mw.mjs';
|
|
4
|
+
export { d as WorkflowNodeJSON, p as WorkflowNodeMeta } from '../workflow-line-entity-1qT4aXVU.mjs';
|
|
5
|
+
import './workflow-edge.mjs';
|
|
6
|
+
import 'bezier-js';
|
|
7
|
+
import '@flowgram.ai/core';
|
|
8
|
+
import '@flowgram.ai/form-core';
|
|
9
|
+
import './workflow-line.mjs';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '@flowgram.ai/utils';
|
|
2
|
+
import '@flowgram.ai/document';
|
|
3
|
+
import '../workflow-sub-canvas-DOVla1mw.js';
|
|
4
|
+
export { d as WorkflowNodeJSON, p as WorkflowNodeMeta } from '../workflow-line-entity-CG_8mknJ.js';
|
|
5
|
+
import './workflow-edge.js';
|
|
6
|
+
import 'bezier-js';
|
|
7
|
+
import '@flowgram.ai/core';
|
|
8
|
+
import '@flowgram.ai/form-core';
|
|
9
|
+
import './workflow-line.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/typings/workflow-node.ts
|
|
17
|
+
var workflow_node_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(workflow_node_exports);
|
|
19
|
+
//# sourceMappingURL=workflow-node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/typings/workflow-node.ts"],"sourcesContent":["import type { IPoint } from '@flowgram.ai/utils';\nimport type { FlowNodeJSON, FlowNodeMeta } from '@flowgram.ai/document';\n\nimport type { WorkflowNodeEntity, WorkflowPorts } from '../entities';\nimport type { WorkflowSubCanvas } from './workflow-sub-canvas';\nimport type { WorkflowEdgeJSON } from './workflow-edge';\n\n/**\n * 节点 meta 信息\n */\nexport interface WorkflowNodeMeta extends FlowNodeMeta {\n position?: IPoint;\n canvasPosition?: IPoint; // 子画布位置\n deleteDisable?: boolean; // 是否禁用删除\n copyDisable?: boolean; // 禁用复制\n inputDisable?: boolean; // 禁用输入点\n outputDisable?: boolean; // 禁用输出点\n defaultPorts?: WorkflowPorts; // 默认点位\n useDynamicPort?: boolean; // 使用动态点位,会计算 data-port-key\n subCanvas?: (node: WorkflowNodeEntity) => WorkflowSubCanvas | undefined;\n}\n\n/**\n * 节点数据\n */\nexport interface WorkflowNodeJSON extends FlowNodeJSON {\n id: string;\n type: string | number;\n /**\n * ui 数据\n */\n meta?: WorkflowNodeMeta;\n /**\n * 表单数据\n */\n\n data?: any;\n /**\n * 子节点\n */\n blocks?: WorkflowNodeJSON[];\n /**\n * 子节点间连线\n */\n edges?: WorkflowEdgeJSON[];\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FormMeta } from '@flowgram.ai/node';
|
|
2
|
+
import { FormMetaOrFormMetaGenerator } from '@flowgram.ai/form-core';
|
|
3
|
+
import { FlowNodeRegistry } from '@flowgram.ai/document';
|
|
4
|
+
import { W as WorkflowNodeEntity } from '../workflow-sub-canvas-DOVla1mw.mjs';
|
|
5
|
+
import { p as WorkflowNodeMeta } from '../workflow-line-entity-1qT4aXVU.mjs';
|
|
6
|
+
import 'bezier-js';
|
|
7
|
+
import '@flowgram.ai/utils';
|
|
8
|
+
import '@flowgram.ai/core';
|
|
9
|
+
import './workflow-edge.mjs';
|
|
10
|
+
import './workflow-line.mjs';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* 节点表单引擎配置
|
|
14
|
+
*/
|
|
15
|
+
type WorkflowNodeFormMeta = FormMetaOrFormMetaGenerator | FormMeta;
|
|
16
|
+
/**
|
|
17
|
+
* 节点注册
|
|
18
|
+
*/
|
|
19
|
+
interface WorkflowNodeRegistry extends FlowNodeRegistry<WorkflowNodeMeta> {
|
|
20
|
+
formMeta?: WorkflowNodeFormMeta;
|
|
21
|
+
}
|
|
22
|
+
interface WorkflowNodeRenderProps {
|
|
23
|
+
node: WorkflowNodeEntity;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type { WorkflowNodeFormMeta, WorkflowNodeRegistry, WorkflowNodeRenderProps };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FormMeta } from '@flowgram.ai/node';
|
|
2
|
+
import { FormMetaOrFormMetaGenerator } from '@flowgram.ai/form-core';
|
|
3
|
+
import { FlowNodeRegistry } from '@flowgram.ai/document';
|
|
4
|
+
import { W as WorkflowNodeEntity } from '../workflow-sub-canvas-DOVla1mw.js';
|
|
5
|
+
import { p as WorkflowNodeMeta } from '../workflow-line-entity-CG_8mknJ.js';
|
|
6
|
+
import 'bezier-js';
|
|
7
|
+
import '@flowgram.ai/utils';
|
|
8
|
+
import '@flowgram.ai/core';
|
|
9
|
+
import './workflow-edge.js';
|
|
10
|
+
import './workflow-line.js';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* 节点表单引擎配置
|
|
14
|
+
*/
|
|
15
|
+
type WorkflowNodeFormMeta = FormMetaOrFormMetaGenerator | FormMeta;
|
|
16
|
+
/**
|
|
17
|
+
* 节点注册
|
|
18
|
+
*/
|
|
19
|
+
interface WorkflowNodeRegistry extends FlowNodeRegistry<WorkflowNodeMeta> {
|
|
20
|
+
formMeta?: WorkflowNodeFormMeta;
|
|
21
|
+
}
|
|
22
|
+
interface WorkflowNodeRenderProps {
|
|
23
|
+
node: WorkflowNodeEntity;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type { WorkflowNodeFormMeta, WorkflowNodeRegistry, WorkflowNodeRenderProps };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/typings/workflow-registry.ts
|
|
17
|
+
var workflow_registry_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(workflow_registry_exports);
|
|
19
|
+
//# sourceMappingURL=workflow-registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/typings/workflow-registry.ts"],"sourcesContent":["import type { FormMeta } from '@flowgram.ai/node';\nimport type { FormMetaOrFormMetaGenerator } from '@flowgram.ai/form-core';\nimport type { FlowNodeRegistry } from '@flowgram.ai/document';\n\nimport type { WorkflowNodeEntity } from '../entities';\nimport type { WorkflowNodeMeta } from './workflow-node';\n\n/**\n * 节点表单引擎配置\n */\nexport type WorkflowNodeFormMeta = FormMetaOrFormMetaGenerator | FormMeta;\n\n/**\n * 节点注册\n */\nexport interface WorkflowNodeRegistry extends FlowNodeRegistry<WorkflowNodeMeta> {\n formMeta?: WorkflowNodeFormMeta;\n}\n\nexport interface WorkflowNodeRenderProps {\n node: WorkflowNodeEntity;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/typings/workflow-sub-canvas.ts
|
|
17
|
+
var workflow_sub_canvas_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(workflow_sub_canvas_exports);
|
|
19
|
+
//# sourceMappingURL=workflow-sub-canvas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/typings/workflow-sub-canvas.ts"],"sourcesContent":["import type { WorkflowNodeEntity } from '../entities';\n\n/**\n * 子画布配置\n */\nexport type WorkflowSubCanvas = {\n isCanvas: boolean; // 是否画布节点\n parentNode: WorkflowNodeEntity; // 父节点\n canvasNode: WorkflowNodeEntity; // 画布节点\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|