@nywqs/scada-engine 1.1.30 → 2.0.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/LICENSE +21 -21
- package/README.md +359 -193
- package/dist/index.d.ts +3 -0
- package/dist/scada-engine.css +1 -1
- package/dist/scada-engine.es.js +42794 -21383
- package/dist/scada-engine.umd.js +3751 -156
- package/dist/src/components/canvas/composables/index.d.ts +12 -0
- package/dist/src/components/canvas/composables/useAutoSave.d.ts +9 -0
- package/dist/src/components/canvas/composables/useCanvasScale.d.ts +12 -0
- package/dist/src/components/canvas/composables/useDataSource.d.ts +87 -0
- package/dist/src/components/canvas/composables/useFileOperations.d.ts +37 -0
- package/dist/src/components/canvas/composables/useGraphEvents.d.ts +22 -0
- package/dist/src/components/canvas/composables/useNodeOperations.d.ts +35 -0
- package/dist/src/components/canvas/config/graphConfig.d.ts +64 -0
- package/dist/src/components/canvas/config/pluginConfig.d.ts +5 -0
- package/dist/src/components/canvas/config/scadaEdgeShape.d.ts +14 -0
- package/dist/src/components/canvas/config/scadaEdgeView.d.ts +4 -0
- package/dist/src/components/canvas/types/canvas.d.ts +41 -0
- package/dist/src/components/configurators/BindingCard.d.ts +24 -0
- package/dist/src/components/configurators/ComponentPointSelector.d.ts +16 -0
- package/dist/src/components/{EventCard.d.ts → configurators/EventCard.d.ts} +13 -26
- package/dist/src/components/configurators/MappingConfigurator.d.ts +15 -0
- package/dist/src/components/dialogs/AttributeConfigDialog.d.ts +28 -0
- package/dist/src/components/dialogs/CustomCodeDialog.d.ts +20 -0
- package/dist/src/components/dialogs/DataSourceDialog.d.ts +16 -0
- package/dist/src/components/dialogs/ScadaModal.d.ts +37 -0
- package/dist/src/components/{WorkflowSelectorDialog.d.ts → dialogs/WorkflowSelectorDialog.d.ts} +3 -3
- package/dist/src/components/layout/Footer.d.ts +16 -0
- package/dist/src/components/layout/Header.d.ts +56 -0
- package/dist/src/components/panels/CanvasConfigPanel.d.ts +4 -0
- package/dist/src/components/panels/ComponentLibrary.d.ts +6 -0
- package/dist/src/components/panels/ContextMenu.d.ts +26 -0
- package/dist/src/components/panels/PropertyPanel.d.ts +22 -0
- package/dist/src/components/property-tabs/BasicPropertiesTab.d.ts +37 -0
- package/dist/src/components/property-tabs/DataPropertiesTab.d.ts +14 -0
- package/dist/src/components/property-tabs/EdgePropertiesTab.d.ts +16 -0
- package/dist/src/constants/animation.d.ts +5 -0
- package/dist/src/constants/index.d.ts +3 -0
- package/dist/src/constants/layout.d.ts +16 -0
- package/dist/src/constants/theme.d.ts +17 -0
- package/dist/src/index.d.ts +16 -15
- package/dist/src/main.d.ts +0 -1
- package/dist/src/scada-components/basic/circle.d.ts +0 -1
- package/dist/src/scada-components/basic/rect.d.ts +0 -1
- package/dist/src/scada-components/basic/text.d.ts +0 -1
- package/dist/src/scada-components/canvas/config.d.ts +0 -1
- package/dist/src/scada-components/canvas/manager.d.ts +0 -1
- package/dist/src/scada-components/iot/echarts-gauge/EChartsGauge.d.ts +7 -0
- package/dist/src/scada-components/iot/{echarts-gauge.d.ts → echarts-gauge/index.d.ts} +1 -2
- package/dist/src/scada-components/iot/echarts-line/EChartsLine.d.ts +7 -0
- package/dist/src/scada-components/iot/{echarts-line.d.ts → echarts-line/index.d.ts} +1 -2
- package/dist/src/scada-components/iot/index.d.ts +0 -5
- package/dist/src/scada-components/registry.d.ts +1 -2
- package/dist/src/scada-components/svg/core/index.d.ts +7 -0
- package/dist/src/scada-components/svg/core/loader.d.ts +71 -0
- package/dist/src/scada-components/svg/core/parser.d.ts +40 -0
- package/dist/src/scada-components/svg/core/types.d.ts +297 -0
- package/dist/src/scada-components/svg/helpers/demo.d.ts +20 -0
- package/dist/src/scada-components/svg/helpers/index.d.ts +5 -0
- package/dist/src/scada-components/svg/helpers/utils.d.ts +24 -0
- package/dist/src/scada-components/svg/index.d.ts +9 -0
- package/dist/src/scada-components/svg/rendering/SVGRenderer.d.ts +14 -0
- package/dist/src/scada-components/svg/rendering/animationTemplates.d.ts +81 -0
- package/dist/src/scada-components/svg/rendering/index.d.ts +6 -0
- package/dist/src/scada-components/types.d.ts +0 -1
- package/dist/src/types/context-menu.d.ts +13 -0
- package/dist/src/types/model3d.d.ts +106 -0
- package/dist/src/types/zone.d.ts +54 -0
- package/dist/src/utils/animation/index.d.ts +6 -0
- package/dist/src/utils/{canvasConfigWatcher.d.ts → canvas/config-watcher.d.ts} +19 -9
- package/dist/src/utils/{canvasDataHandler.d.ts → canvas/data-handler.d.ts} +0 -29
- package/dist/src/utils/{edgeOperations.d.ts → canvas/edge-operations.d.ts} +6 -3
- package/dist/src/utils/{graphOperations.d.ts → canvas/graph-operations.d.ts} +0 -1
- package/dist/src/utils/canvas/index.d.ts +10 -0
- package/dist/src/utils/{canvasLayerManager.d.ts → canvas/layer-manager.d.ts} +0 -1
- package/dist/src/utils/{nodeOperations.d.ts → canvas/node-operations.d.ts} +0 -1
- package/dist/src/utils/core/index.d.ts +8 -0
- package/dist/src/utils/{dataBindingService.d.ts → data/binding-service.d.ts} +1 -2
- package/dist/src/utils/data/index.d.ts +6 -0
- package/dist/src/utils/{contextMenuManager.d.ts → events/context-menu.d.ts} +1 -2
- package/dist/src/utils/{eventManager.d.ts → events/event-manager.d.ts} +1 -2
- package/dist/src/utils/events/index.d.ts +7 -0
- package/dist/src/utils/index.d.ts +30 -19
- package/dist/src/utils/integrations/draco-loader.d.ts +2 -0
- package/dist/src/utils/integrations/index.d.ts +6 -0
- package/dist/src/utils/performance/index.d.ts +6 -0
- package/dist/src/utils/{viewportCulling.d.ts → performance/viewport-culling.d.ts} +0 -1
- package/dist/src/views/Preview.d.ts +4 -0
- package/dist/src/views/workflow/WorkflowDialog.d.ts +10 -30
- package/dist/src/views/workflow/components/AddNodeMenu.d.ts +5 -14
- package/dist/src/views/workflow/components/ElementSelector.d.ts +5 -27
- package/dist/src/views/workflow/components/PropertyPanel.d.ts +8 -15
- package/dist/src/views/workflow/components/node-configs/ClearTimerConfig.d.ts +4 -14
- package/dist/src/views/workflow/components/node-configs/ConditionConfig.d.ts +4 -14
- package/dist/src/views/workflow/components/node-configs/CustomCodeConfig.d.ts +4 -14
- package/dist/src/views/workflow/components/node-configs/GetPropertyConfig.d.ts +4 -14
- package/dist/src/views/workflow/components/node-configs/HttpRequestConfig.d.ts +4 -14
- package/dist/src/views/workflow/components/node-configs/SetPropertyConfig.d.ts +4 -14
- package/dist/src/views/workflow/components/node-configs/TimerConfig.d.ts +4 -14
- package/dist/src/views/workflow/config/nodeConfigRegistry.d.ts +0 -1
- package/dist/src/views/workflow/services/canvasElementService.d.ts +0 -1
- package/package.json +86 -82
- package/dist/src/components/AttributeConfigDialog.d.ts +0 -39
- package/dist/src/components/BasicPropertiesTab.d.ts +0 -51
- package/dist/src/components/BindingCard.d.ts +0 -39
- package/dist/src/components/CanvasArea.d.ts +0 -4
- package/dist/src/components/ComponentLibrary.d.ts +0 -34
- package/dist/src/components/ComponentPointSelector.d.ts +0 -29
- package/dist/src/components/ContextMenu.d.ts +0 -63
- package/dist/src/components/CustomCodeDialog.d.ts +0 -30
- package/dist/src/components/DataPropertiesTab.d.ts +0 -24
- package/dist/src/components/DataSourceDialog.d.ts +0 -26
- package/dist/src/components/EdgePropertiesTab.d.ts +0 -22
- package/dist/src/components/Footer.d.ts +0 -41
- package/dist/src/components/Header.d.ts +0 -73
- package/dist/src/components/MappingConfigurator.d.ts +0 -27
- package/dist/src/components/PropertyPanel.d.ts +0 -45
- package/dist/src/scada-components/iot/AlarmLight3D.d.ts +0 -14
- package/dist/src/scada-components/iot/Conveyor3D.d.ts +0 -14
- package/dist/src/scada-components/iot/Cylinder3D.d.ts +0 -14
- package/dist/src/scada-components/iot/EChartsGauge.d.ts +0 -14
- package/dist/src/scada-components/iot/EChartsLine.d.ts +0 -14
- package/dist/src/scada-components/iot/Filter3D.d.ts +0 -14
- package/dist/src/scada-components/iot/HeatExchanger3D.d.ts +0 -14
- package/dist/src/scada-components/iot/Light3D.d.ts +0 -14
- package/dist/src/scada-components/iot/Motor3D.d.ts +0 -14
- package/dist/src/scada-components/iot/Pipe3D.d.ts +0 -14
- package/dist/src/scada-components/iot/Pump3D.d.ts +0 -14
- package/dist/src/scada-components/iot/Switch3D.d.ts +0 -14
- package/dist/src/scada-components/iot/Tank3D.d.ts +0 -14
- package/dist/src/scada-components/iot/Tee3D.d.ts +0 -14
- package/dist/src/scada-components/iot/TemperatureSensor3D.d.ts +0 -14
- package/dist/src/scada-components/iot/Valve3D.d.ts +0 -14
- package/dist/src/scada-components/iot/industrial-3d-extended.d.ts +0 -18
- package/dist/src/scada-components/iot/industrial-3d-fluid.d.ts +0 -18
- package/dist/src/scada-components/iot/industrial-3d.d.ts +0 -18
- package/dist/src/scada-components/iot/light.d.ts +0 -6
- package/dist/src/scada-components/iot/switch.d.ts +0 -6
- package/dist/src/views/workflow/WorkflowEditor.d.ts +0 -38
- package/dist/src/views/workflow/components/WorkflowToolbar.d.ts +0 -24
- /package/dist/src/{components/CanvasConfigPanel.d.ts → App.d.ts} +0 -0
- /package/dist/src/scada-components/iot/{echarts-gauge-presets.d.ts → echarts-gauge/presets.d.ts} +0 -0
- /package/dist/src/scada-components/iot/{echarts-line-presets.d.ts → echarts-line/presets.d.ts} +0 -0
- /package/dist/src/utils/{animationEngine.d.ts → animation/animation-engine.d.ts} +0 -0
- /package/dist/src/utils/{animationScheduler.d.ts → animation/animation-scheduler.d.ts} +0 -0
- /package/dist/src/utils/{commonUtils.d.ts → core/common.d.ts} +0 -0
- /package/dist/src/utils/{fileUtils.d.ts → core/file.d.ts} +0 -0
- /package/dist/src/utils/{messageUtils.d.ts → core/message.d.ts} +0 -0
- /package/dist/src/utils/{storageUtils.d.ts → core/storage.d.ts} +0 -0
- /package/dist/src/utils/{nodePropertyUtils.d.ts → data/node-property.d.ts} +0 -0
- /package/dist/src/utils/{eventUtils.d.ts → events/event-utils.d.ts} +0 -0
- /package/dist/src/utils/{authCrypto.d.ts → integrations/auth-crypto.d.ts} +0 -0
- /package/dist/src/utils/{workerManager.d.ts → performance/worker-manager.d.ts} +0 -0
|
@@ -1,18 +1,32 @@
|
|
|
1
1
|
import { Graph } from '@antv/x6';
|
|
2
|
-
import { Ref } from 'vue';
|
|
3
|
-
|
|
4
2
|
/**
|
|
5
3
|
* 画布配置监听器类
|
|
6
4
|
*/
|
|
7
5
|
export declare class CanvasConfigWatcher {
|
|
8
6
|
private graph;
|
|
9
|
-
private containerRef;
|
|
10
7
|
private calculateFitScale;
|
|
11
|
-
private
|
|
8
|
+
private isUpdating;
|
|
9
|
+
private lastSize;
|
|
10
|
+
private isUserZooming;
|
|
11
|
+
private sizeObserver;
|
|
12
|
+
private lastSyncedSize;
|
|
13
|
+
private syncDebounceTimer;
|
|
12
14
|
/**
|
|
13
15
|
* 初始化配置监听器
|
|
14
16
|
*/
|
|
15
|
-
initialize(graph: Graph,
|
|
17
|
+
initialize(graph: Graph, calculateFitScale: () => number): void;
|
|
18
|
+
/**
|
|
19
|
+
* 启动 SVG 尺寸监听器,确保 SVG 属性正确
|
|
20
|
+
*/
|
|
21
|
+
private startSizeObserver;
|
|
22
|
+
/**
|
|
23
|
+
* 检查并同步 SVG 尺寸
|
|
24
|
+
*/
|
|
25
|
+
private checkAndSyncSVGSize;
|
|
26
|
+
/**
|
|
27
|
+
* 设置用户缩放状态
|
|
28
|
+
*/
|
|
29
|
+
setUserZooming(value: boolean): void;
|
|
16
30
|
/**
|
|
17
31
|
* 应用配置变化到 Graph
|
|
18
32
|
*/
|
|
@@ -21,10 +35,6 @@ export declare class CanvasConfigWatcher {
|
|
|
21
35
|
* 更新背景
|
|
22
36
|
*/
|
|
23
37
|
private updateBackground;
|
|
24
|
-
/**
|
|
25
|
-
* 更新尺寸和缩放
|
|
26
|
-
*/
|
|
27
|
-
private updateSizeAndScale;
|
|
28
38
|
/**
|
|
29
39
|
* 更新网格
|
|
30
40
|
*/
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Graph } from '@antv/x6';
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* 画布数据接口
|
|
5
4
|
*/
|
|
@@ -34,37 +33,9 @@ export declare class CanvasDataHandler {
|
|
|
34
33
|
* 清理单元格数据(修复损坏的数据)
|
|
35
34
|
*/
|
|
36
35
|
private cleanCellsData;
|
|
37
|
-
/**
|
|
38
|
-
* 导出完整的画布数据(包含配置、节点、边、数据源等)
|
|
39
|
-
*/
|
|
40
|
-
exportData(): CanvasData | null;
|
|
41
|
-
/**
|
|
42
|
-
* 收集所有被引用的流程
|
|
43
|
-
*/
|
|
44
|
-
private collectReferencedWorkflows;
|
|
45
|
-
/**
|
|
46
|
-
* 导入画布数据
|
|
47
|
-
*/
|
|
48
|
-
importData(importData: CanvasData, onEdgeAnimationRestore?: (edge: any) => void): boolean;
|
|
49
|
-
/**
|
|
50
|
-
* 导入数据源配置
|
|
51
|
-
*/
|
|
52
|
-
private importDataSources;
|
|
53
|
-
/**
|
|
54
|
-
* 导入流程数据
|
|
55
|
-
*/
|
|
56
|
-
private importWorkflows;
|
|
57
|
-
/**
|
|
58
|
-
* 导出为 JSON 文件
|
|
59
|
-
*/
|
|
60
|
-
exportToFile(filename?: string): string | null;
|
|
61
36
|
/**
|
|
62
37
|
* 清除画布数据缓存
|
|
63
38
|
*/
|
|
64
39
|
clearCache(): void;
|
|
65
|
-
/**
|
|
66
|
-
* 获取画布完整数据(不包含workflows)
|
|
67
|
-
*/
|
|
68
|
-
getCanvasData(): CanvasData | null;
|
|
69
40
|
}
|
|
70
41
|
export declare const canvasDataHandler: CanvasDataHandler;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Graph, Edge } from '@antv/x6';
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* 边动画配置
|
|
5
4
|
*/
|
|
@@ -21,9 +20,13 @@ export declare class EdgeOperations {
|
|
|
21
20
|
*/
|
|
22
21
|
applyEdgeAnimation(edge: Edge, animation: EdgeAnimationConfig): void;
|
|
23
22
|
/**
|
|
24
|
-
*
|
|
23
|
+
* 更新边属性。若因管道样式需要将边迁移为 scada-edge,会返回新边供调用方更新选中状态。
|
|
25
24
|
*/
|
|
26
|
-
updateEdge(edge: Edge, updates: any): void;
|
|
25
|
+
updateEdge(edge: Edge, updates: any): Edge | void;
|
|
26
|
+
/**
|
|
27
|
+
* 将普通 edge 替换为 scada-edge(保留 source、target、vertices、line 等),用于支持管道样式
|
|
28
|
+
*/
|
|
29
|
+
private replaceEdgeWithScadaEdge;
|
|
27
30
|
/**
|
|
28
31
|
* 删除边
|
|
29
32
|
*/
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 画布操作模块
|
|
3
|
+
* 包含画布、节点、边的操作,以及数据处理、分层管理、配置监听等功能
|
|
4
|
+
*/
|
|
5
|
+
export * from './graph-operations';
|
|
6
|
+
export * from './node-operations';
|
|
7
|
+
export * from './edge-operations';
|
|
8
|
+
export * from './data-handler';
|
|
9
|
+
export * from './layer-manager';
|
|
10
|
+
export * from './config-watcher';
|
|
@@ -1,22 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 工具函数统一导出
|
|
3
|
-
*
|
|
3
|
+
*
|
|
4
|
+
* 文件组织结构:
|
|
5
|
+
* - core/ 核心工具(通用、存储、消息、文件)
|
|
6
|
+
* - canvas/ 画布相关(图形操作、节点、边、分层等)
|
|
7
|
+
* - events/ 事件系统(事件管理、右键菜单)
|
|
8
|
+
* - animation/ 动画系统(引擎、调度器)
|
|
9
|
+
* - data/ 数据处理(绑定、节点属性)
|
|
10
|
+
* - performance/ 性能优化(视口裁剪、Worker)
|
|
11
|
+
* - integrations/ 第三方集成(Draco、加密)
|
|
4
12
|
*/
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
22
|
-
export * from './
|
|
13
|
+
export * from './core/common';
|
|
14
|
+
export * from './core/storage';
|
|
15
|
+
export * from './core/message';
|
|
16
|
+
export * from './core/file';
|
|
17
|
+
export * from './canvas/graph-operations';
|
|
18
|
+
export * from './canvas/node-operations';
|
|
19
|
+
export * from './canvas/edge-operations';
|
|
20
|
+
export * from './canvas/data-handler';
|
|
21
|
+
export * from './canvas/layer-manager';
|
|
22
|
+
export * from './canvas/config-watcher';
|
|
23
|
+
export * from './events/event-manager';
|
|
24
|
+
export * from './events/event-utils';
|
|
25
|
+
export * from './events/context-menu';
|
|
26
|
+
export * from './animation/animation-engine';
|
|
27
|
+
export * from './animation/animation-scheduler';
|
|
28
|
+
export * from './data/binding-service';
|
|
29
|
+
export * from './data/node-property';
|
|
30
|
+
export * from './performance/viewport-culling';
|
|
31
|
+
export * from './performance/worker-manager';
|
|
32
|
+
export * from './integrations/draco-loader';
|
|
33
|
+
export * from './integrations/auth-crypto';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
2
|
+
canvasContainer: HTMLDivElement;
|
|
3
|
+
}, any>;
|
|
4
|
+
export default _default;
|
|
@@ -1,37 +1,17 @@
|
|
|
1
|
-
import { Graph } from '@antv/x6';
|
|
2
|
-
|
|
1
|
+
import { Graph as X6Graph } from '@antv/x6';
|
|
3
2
|
interface Props {
|
|
4
3
|
visible: boolean;
|
|
5
|
-
scadaGraph?:
|
|
4
|
+
scadaGraph?: X6Graph | null;
|
|
6
5
|
}
|
|
7
|
-
declare const _default: import('vue').DefineComponent<import('vue').
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
close: () => void;
|
|
12
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
13
|
-
scadaGraph: null;
|
|
14
|
-
}>>> & Readonly<{
|
|
6
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
|
+
close: () => any;
|
|
8
|
+
"update:visible": (value: boolean) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
15
10
|
onClose?: (() => any) | undefined;
|
|
16
11
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
17
12
|
}>, {
|
|
18
|
-
scadaGraph:
|
|
19
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
13
|
+
scadaGraph: X6Graph | null;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
15
|
+
containerRef: HTMLDivElement;
|
|
16
|
+
}, any>;
|
|
20
17
|
export default _default;
|
|
21
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
23
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
-
} : {
|
|
26
|
-
type: import('vue').PropType<T[K]>;
|
|
27
|
-
required: true;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
type __VLS_WithDefaults<P, D> = {
|
|
31
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
32
|
-
default: D[K];
|
|
33
|
-
}> : P[K];
|
|
34
|
-
};
|
|
35
|
-
type __VLS_Prettify<T> = {
|
|
36
|
-
[K in keyof T]: T[K];
|
|
37
|
-
} & {};
|
|
@@ -13,20 +13,11 @@ interface Props {
|
|
|
13
13
|
};
|
|
14
14
|
nodeTypes: NodeType[];
|
|
15
15
|
}
|
|
16
|
-
declare const _default: import('vue').DefineComponent<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
16
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
17
|
+
select: (nodeType: NodeType) => any;
|
|
18
|
+
close: () => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
20
20
|
onSelect?: ((nodeType: NodeType) => any) | undefined;
|
|
21
21
|
onClose?: (() => any) | undefined;
|
|
22
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
22
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
23
23
|
export default _default;
|
|
24
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
26
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
-
} : {
|
|
29
|
-
type: import('vue').PropType<T[K]>;
|
|
30
|
-
required: true;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
@@ -1,37 +1,15 @@
|
|
|
1
1
|
import { ElementInfo } from '../types/element';
|
|
2
|
-
|
|
3
2
|
interface Props {
|
|
4
3
|
visible: boolean;
|
|
5
4
|
elements?: ElementInfo[];
|
|
6
5
|
}
|
|
7
|
-
declare const _default: import('vue').DefineComponent<import('vue').
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
select: (element: ElementInfo) => void;
|
|
12
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
13
|
-
elements: () => never[];
|
|
14
|
-
}>>> & Readonly<{
|
|
6
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
|
+
select: (element: ElementInfo) => any;
|
|
8
|
+
close: () => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
15
10
|
onSelect?: ((element: ElementInfo) => any) | undefined;
|
|
16
11
|
onClose?: (() => any) | undefined;
|
|
17
12
|
}>, {
|
|
18
13
|
elements: ElementInfo[];
|
|
19
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
15
|
export default _default;
|
|
21
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
23
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
-
} : {
|
|
26
|
-
type: import('vue').PropType<T[K]>;
|
|
27
|
-
required: true;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
type __VLS_WithDefaults<P, D> = {
|
|
31
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
32
|
-
default: D[K];
|
|
33
|
-
}> : P[K];
|
|
34
|
-
};
|
|
35
|
-
type __VLS_Prettify<T> = {
|
|
36
|
-
[K in keyof T]: T[K];
|
|
37
|
-
} & {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { NodeConfig } from '../types/node';
|
|
2
|
-
|
|
3
2
|
interface SelectedCell {
|
|
4
3
|
label: string;
|
|
5
4
|
nodeType: string;
|
|
@@ -7,21 +6,15 @@ interface SelectedCell {
|
|
|
7
6
|
}
|
|
8
7
|
interface Props {
|
|
9
8
|
selectedCell: SelectedCell | null;
|
|
9
|
+
selectedEdge?: any;
|
|
10
10
|
}
|
|
11
|
-
declare const _default: import('vue').DefineComponent<
|
|
12
|
-
"
|
|
13
|
-
"update:
|
|
14
|
-
|
|
11
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
12
|
+
"delete-edge": () => any;
|
|
13
|
+
"update:label": (value: string) => any;
|
|
14
|
+
"update:config": (value: Partial<NodeConfig>) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
16
|
+
"onDelete-edge"?: (() => any) | undefined;
|
|
15
17
|
"onUpdate:label"?: ((value: string) => any) | undefined;
|
|
16
18
|
"onUpdate:config"?: ((value: Partial<NodeConfig>) => any) | undefined;
|
|
17
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
19
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
20
|
export default _default;
|
|
19
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
-
} : {
|
|
24
|
-
type: import('vue').PropType<T[K]>;
|
|
25
|
-
required: true;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
import { ClearTimerNodeConfig } from '../../types/node';
|
|
2
|
-
|
|
3
2
|
interface Props {
|
|
4
3
|
modelValue: Partial<ClearTimerNodeConfig>;
|
|
5
4
|
}
|
|
6
|
-
declare const _default: import('vue').DefineComponent<
|
|
7
|
-
"update:modelValue": (value: Partial<ClearTimerNodeConfig>) =>
|
|
8
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
5
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
"update:modelValue": (value: Partial<ClearTimerNodeConfig>) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
9
8
|
"onUpdate:modelValue"?: ((value: Partial<ClearTimerNodeConfig>) => any) | undefined;
|
|
10
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
10
|
export default _default;
|
|
12
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
-
} : {
|
|
17
|
-
type: import('vue').PropType<T[K]>;
|
|
18
|
-
required: true;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
import { ConditionNodeConfig } from '../../types/node';
|
|
2
|
-
|
|
3
2
|
interface Props {
|
|
4
3
|
modelValue: Partial<ConditionNodeConfig>;
|
|
5
4
|
}
|
|
6
|
-
declare const _default: import('vue').DefineComponent<
|
|
7
|
-
"update:modelValue": (value: Partial<ConditionNodeConfig>) =>
|
|
8
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
5
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
"update:modelValue": (value: Partial<ConditionNodeConfig>) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
9
8
|
"onUpdate:modelValue"?: ((value: Partial<ConditionNodeConfig>) => any) | undefined;
|
|
10
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
10
|
export default _default;
|
|
12
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
-
} : {
|
|
17
|
-
type: import('vue').PropType<T[K]>;
|
|
18
|
-
required: true;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
import { CustomCodeNodeConfig } from '../../types/node';
|
|
2
|
-
|
|
3
2
|
interface Props {
|
|
4
3
|
modelValue: Partial<CustomCodeNodeConfig>;
|
|
5
4
|
}
|
|
6
|
-
declare const _default: import('vue').DefineComponent<
|
|
7
|
-
"update:modelValue": (value: Partial<CustomCodeNodeConfig>) =>
|
|
8
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
5
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
"update:modelValue": (value: Partial<CustomCodeNodeConfig>) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
9
8
|
"onUpdate:modelValue"?: ((value: Partial<CustomCodeNodeConfig>) => any) | undefined;
|
|
10
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
10
|
export default _default;
|
|
12
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
-
} : {
|
|
17
|
-
type: import('vue').PropType<T[K]>;
|
|
18
|
-
required: true;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
import { GetPropertyNodeConfig } from '../../types/node';
|
|
2
|
-
|
|
3
2
|
interface Props {
|
|
4
3
|
modelValue: Partial<GetPropertyNodeConfig>;
|
|
5
4
|
}
|
|
6
|
-
declare const _default: import('vue').DefineComponent<
|
|
7
|
-
"update:modelValue": (value: Partial<GetPropertyNodeConfig>) =>
|
|
8
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
5
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
"update:modelValue": (value: Partial<GetPropertyNodeConfig>) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
9
8
|
"onUpdate:modelValue"?: ((value: Partial<GetPropertyNodeConfig>) => any) | undefined;
|
|
10
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
10
|
export default _default;
|
|
12
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
-
} : {
|
|
17
|
-
type: import('vue').PropType<T[K]>;
|
|
18
|
-
required: true;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
import { HttpRequestNodeConfig } from '../../types/node';
|
|
2
|
-
|
|
3
2
|
interface Props {
|
|
4
3
|
modelValue: Partial<HttpRequestNodeConfig>;
|
|
5
4
|
}
|
|
6
|
-
declare const _default: import('vue').DefineComponent<
|
|
7
|
-
"update:modelValue": (value: Partial<HttpRequestNodeConfig>) =>
|
|
8
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
5
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
"update:modelValue": (value: Partial<HttpRequestNodeConfig>) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
9
8
|
"onUpdate:modelValue"?: ((value: Partial<HttpRequestNodeConfig>) => any) | undefined;
|
|
10
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
10
|
export default _default;
|
|
12
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
-
} : {
|
|
17
|
-
type: import('vue').PropType<T[K]>;
|
|
18
|
-
required: true;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
import { SetPropertyNodeConfig } from '../../types/node';
|
|
2
|
-
|
|
3
2
|
interface Props {
|
|
4
3
|
modelValue: Partial<SetPropertyNodeConfig>;
|
|
5
4
|
}
|
|
6
|
-
declare const _default: import('vue').DefineComponent<
|
|
7
|
-
"update:modelValue": (value: Partial<SetPropertyNodeConfig>) =>
|
|
8
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
5
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
"update:modelValue": (value: Partial<SetPropertyNodeConfig>) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
9
8
|
"onUpdate:modelValue"?: ((value: Partial<SetPropertyNodeConfig>) => any) | undefined;
|
|
10
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
10
|
export default _default;
|
|
12
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
-
} : {
|
|
17
|
-
type: import('vue').PropType<T[K]>;
|
|
18
|
-
required: true;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
import { TimerNodeConfig } from '../../types/node';
|
|
2
|
-
|
|
3
2
|
interface Props {
|
|
4
3
|
modelValue: Partial<TimerNodeConfig>;
|
|
5
4
|
}
|
|
6
|
-
declare const _default: import('vue').DefineComponent<
|
|
7
|
-
"update:modelValue": (value: Partial<TimerNodeConfig>) =>
|
|
8
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
5
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
"update:modelValue": (value: Partial<TimerNodeConfig>) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
9
8
|
"onUpdate:modelValue"?: ((value: Partial<TimerNodeConfig>) => any) | undefined;
|
|
10
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
10
|
export default _default;
|
|
12
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
-
} : {
|
|
17
|
-
type: import('vue').PropType<T[K]>;
|
|
18
|
-
required: true;
|
|
19
|
-
};
|
|
20
|
-
};
|