scada-engine 1.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.
Files changed (120) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +193 -0
  3. package/dist/draco/gltf/draco_decoder.js +33 -0
  4. package/dist/draco/gltf/draco_decoder.wasm +0 -0
  5. package/dist/draco/gltf/draco_encoder.js +33 -0
  6. package/dist/draco/gltf/draco_wasm_wrapper.js +116 -0
  7. package/dist/index.d.ts +3 -0
  8. package/dist/scada-engine.css +1 -0
  9. package/dist/scada-engine.es.js +22936 -0
  10. package/dist/scada-engine.umd.js +1356 -0
  11. package/dist/src/features/canvas/components/CanvasArea.d.ts +4 -0
  12. package/dist/src/features/canvas/components/CanvasConfigPanel.d.ts +2 -0
  13. package/dist/src/features/canvas/index.d.ts +9 -0
  14. package/dist/src/features/canvas/managers/configWatcher.d.ts +49 -0
  15. package/dist/src/features/canvas/managers/dataHandler.d.ts +70 -0
  16. package/dist/src/features/canvas/managers/layerManager.d.ts +88 -0
  17. package/dist/src/features/canvas/operations/edgeOperations.d.ts +52 -0
  18. package/dist/src/features/canvas/operations/graphOperations.d.ts +85 -0
  19. package/dist/src/features/canvas/operations/nodeOperations.d.ts +77 -0
  20. package/dist/src/features/data-source/components/DataSourceDialog.d.ts +26 -0
  21. package/dist/src/features/data-source/components/MappingConfigurator.d.ts +27 -0
  22. package/dist/src/features/data-source/index.d.ts +14 -0
  23. package/dist/src/features/data-source/services/dataBindingService.d.ts +86 -0
  24. package/dist/src/features/data-source/services/dataParser.d.ts +110 -0
  25. package/dist/src/features/data-source/services/dataSourceManager.d.ts +127 -0
  26. package/dist/src/features/data-source/services/httpService.d.ts +73 -0
  27. package/dist/src/features/data-source/services/mqttService.d.ts +110 -0
  28. package/dist/src/features/data-source/services/sseService.d.ts +75 -0
  29. package/dist/src/features/data-source/services/websocketService.d.ts +67 -0
  30. package/dist/src/features/data-source/types/dataAdapter.d.ts +184 -0
  31. package/dist/src/features/data-source/types/device.d.ts +131 -0
  32. package/dist/src/features/preview/Preview.d.ts +2 -0
  33. package/dist/src/features/preview/components/NodeTooltip.d.ts +62 -0
  34. package/dist/src/features/preview/index.d.ts +1 -0
  35. package/dist/src/features/property-panel/PropertyPanel.d.ts +45 -0
  36. package/dist/src/features/property-panel/cards/BindingCard.d.ts +39 -0
  37. package/dist/src/features/property-panel/cards/EventCard.d.ts +63 -0
  38. package/dist/src/features/property-panel/index.d.ts +6 -0
  39. package/dist/src/features/property-panel/tabs/BasicPropertiesTab.d.ts +51 -0
  40. package/dist/src/features/property-panel/tabs/DataPropertiesTab.d.ts +24 -0
  41. package/dist/src/features/property-panel/tabs/EdgePropertiesTab.d.ts +22 -0
  42. package/dist/src/features/workflow/WorkflowDialog.d.ts +37 -0
  43. package/dist/src/features/workflow/WorkflowEditor.d.ts +38 -0
  44. package/dist/src/features/workflow/components/AddNodeMenu.d.ts +32 -0
  45. package/dist/src/features/workflow/components/ElementSelector.d.ts +37 -0
  46. package/dist/src/features/workflow/components/PropertyPanel.d.ts +27 -0
  47. package/dist/src/features/workflow/components/WorkflowToolbar.d.ts +24 -0
  48. package/dist/src/features/workflow/components/node-configs/ClearTimerConfig.d.ts +20 -0
  49. package/dist/src/features/workflow/components/node-configs/ConditionConfig.d.ts +20 -0
  50. package/dist/src/features/workflow/components/node-configs/CustomCodeConfig.d.ts +20 -0
  51. package/dist/src/features/workflow/components/node-configs/GetPropertyConfig.d.ts +20 -0
  52. package/dist/src/features/workflow/components/node-configs/HttpRequestConfig.d.ts +20 -0
  53. package/dist/src/features/workflow/components/node-configs/SetPropertyConfig.d.ts +20 -0
  54. package/dist/src/features/workflow/components/node-configs/TimerConfig.d.ts +20 -0
  55. package/dist/src/features/workflow/config/nodeConfigRegistry.d.ts +5 -0
  56. package/dist/src/features/workflow/index.d.ts +6 -0
  57. package/dist/src/features/workflow/services/canvasElementService.d.ts +31 -0
  58. package/dist/src/features/workflow/types/element.d.ts +16 -0
  59. package/dist/src/features/workflow/types/node.d.ts +70 -0
  60. package/dist/src/index.d.ts +161 -0
  61. package/dist/src/main.d.ts +1 -0
  62. package/dist/src/scada-components/canvas/config.d.ts +17 -0
  63. package/dist/src/scada-components/canvas/index.d.ts +6 -0
  64. package/dist/src/scada-components/canvas/manager.d.ts +95 -0
  65. package/dist/src/scada-components/canvas/types.d.ts +77 -0
  66. package/dist/src/scada-components/chart/echarts-gauge/EChartsGauge.d.ts +14 -0
  67. package/dist/src/scada-components/chart/echarts-gauge/index.d.ts +6 -0
  68. package/dist/src/scada-components/chart/echarts-gauge/presets.d.ts +18 -0
  69. package/dist/src/scada-components/chart/echarts-line/EChartsLine.d.ts +14 -0
  70. package/dist/src/scada-components/chart/echarts-line/index.d.ts +6 -0
  71. package/dist/src/scada-components/chart/echarts-line/presets.d.ts +13 -0
  72. package/dist/src/scada-components/chart/index.d.ts +5 -0
  73. package/dist/src/scada-components/index.d.ts +7 -0
  74. package/dist/src/scada-components/registry.d.ts +117 -0
  75. package/dist/src/scada-components/types.d.ts +108 -0
  76. package/dist/src/shared/animation/animationEngine.d.ts +68 -0
  77. package/dist/src/shared/animation/animationScheduler.d.ts +85 -0
  78. package/dist/src/shared/animation/index.d.ts +2 -0
  79. package/dist/src/shared/components/ComponentLibrary.d.ts +34 -0
  80. package/dist/src/shared/components/ContextMenu.d.ts +63 -0
  81. package/dist/src/shared/components/Footer.d.ts +41 -0
  82. package/dist/src/shared/components/Header.d.ts +73 -0
  83. package/dist/src/shared/components/dialogs/AttributeConfigDialog.d.ts +39 -0
  84. package/dist/src/shared/components/dialogs/CustomCodeDialog.d.ts +30 -0
  85. package/dist/src/shared/components/dialogs/WorkflowSelectorDialog.d.ts +15 -0
  86. package/dist/src/shared/components/index.d.ts +8 -0
  87. package/dist/src/shared/components/selectors/ComponentPointSelector.d.ts +29 -0
  88. package/dist/src/shared/managers/contextMenuManager.d.ts +27 -0
  89. package/dist/src/shared/managers/eventManager.d.ts +62 -0
  90. package/dist/src/shared/managers/index.d.ts +3 -0
  91. package/dist/src/shared/managers/workerManager.d.ts +57 -0
  92. package/dist/src/shared/types/binding.d.ts +75 -0
  93. package/dist/src/shared/types/index.d.ts +2 -0
  94. package/dist/src/shared/types/workflow.d.ts +195 -0
  95. package/dist/src/shared/utils/commonUtils.d.ts +83 -0
  96. package/dist/src/shared/utils/edgeAnimationUtils.d.ts +16 -0
  97. package/dist/src/shared/utils/eventUtils.d.ts +43 -0
  98. package/dist/src/shared/utils/fileUtils.d.ts +43 -0
  99. package/dist/src/shared/utils/index.d.ts +7 -0
  100. package/dist/src/shared/utils/messageUtils.d.ts +56 -0
  101. package/dist/src/shared/utils/nodePropertyUtils.d.ts +33 -0
  102. package/dist/src/shared/utils/storageUtils.d.ts +32 -0
  103. package/dist/src/svg/core/index.d.ts +7 -0
  104. package/dist/src/svg/core/loader.d.ts +71 -0
  105. package/dist/src/svg/core/parser.d.ts +41 -0
  106. package/dist/src/svg/core/types.d.ts +297 -0
  107. package/dist/src/svg/helpers/demo.d.ts +20 -0
  108. package/dist/src/svg/helpers/index.d.ts +5 -0
  109. package/dist/src/svg/helpers/utils.d.ts +25 -0
  110. package/dist/src/svg/index.d.ts +9 -0
  111. package/dist/src/svg/rendering/SVGRenderer.d.ts +22 -0
  112. package/dist/src/svg/rendering/animationTemplates.d.ts +82 -0
  113. package/dist/src/svg/rendering/index.d.ts +6 -0
  114. package/dist/src/utils/authCrypto.d.ts +16 -0
  115. package/dist/src/utils/dracoLoader.d.ts +3 -0
  116. package/dist/src/utils/index.d.ts +29 -0
  117. package/dist/src/utils/viewportCulling.d.ts +63 -0
  118. package/dist/src/workers/dataProcessor.worker.d.ts +21 -0
  119. package/dist/utils-Ncgt7Dqu.js +1057 -0
  120. package/package.json +85 -0
@@ -0,0 +1,184 @@
1
+ /**
2
+ * 组件数据适配器类型定义
3
+ * 负责将原始数据转换为组件需要的格式
4
+ */
5
+ /**
6
+ * 数据提取器函数类型
7
+ * 用于从原始数据中提取需要的值
8
+ */
9
+ export type DataExtractor = (rawData: any) => any;
10
+ /**
11
+ * 数据转换器函数类型
12
+ * 用于将提取的数据转换为组件需要的格式
13
+ */
14
+ export type DataTransformer = (value: any, componentConfig?: any) => any;
15
+ /**
16
+ * 数据验证器函数类型
17
+ * 用于验证数据格式是否符合组件要求
18
+ */
19
+ export type DataValidator = (value: any) => boolean;
20
+ /**
21
+ * 组件数据适配器配置
22
+ */
23
+ export interface ComponentDataAdapter {
24
+ /**
25
+ * 数据转换函数(必需)
26
+ * 将提取的数据转换为组件需要的格式
27
+ *
28
+ * @param value - 从原始数据中提取的值
29
+ * @param componentConfig - 组件的配置(可选)
30
+ * @returns 组件需要的数据格式
31
+ *
32
+ * @example
33
+ * // 数值转仪表盘格式
34
+ * transform: (value, config) => ({
35
+ * value: Number(value),
36
+ * min: config.min || 0,
37
+ * max: config.max || 100
38
+ * })
39
+ */
40
+ transform: DataTransformer;
41
+ /**
42
+ * 数据验证函数(可选)
43
+ * 验证数据是否符合要求
44
+ *
45
+ * @param value - 需要验证的值
46
+ * @returns 验证是否通过
47
+ *
48
+ * @example
49
+ * validate: (value) => typeof value === 'number'
50
+ */
51
+ validate?: DataValidator;
52
+ /**
53
+ * 默认值(可选)
54
+ * 当数据为空或验证失败时使用
55
+ */
56
+ defaultValue?: any;
57
+ /**
58
+ * 错误处理函数(可选)
59
+ * 当转换失败时调用
60
+ */
61
+ onError?: (error: Error, value: any) => any;
62
+ }
63
+ /**
64
+ * 数据绑定配置(增强版)
65
+ */
66
+ export interface DataBindingConfig {
67
+ /**
68
+ * 数据源 ID
69
+ */
70
+ dataSourceId: string;
71
+ /**
72
+ * 目标属性(组件的哪个属性)
73
+ */
74
+ targetProperty: string;
75
+ /**
76
+ * 数据路径(JSONPath 或点分隔路径)
77
+ * 用于从原始数据中提取值
78
+ *
79
+ * @example
80
+ * 'temperature'
81
+ * 'sensors[0].data.temp'
82
+ * 'payload.devices.find(d => d.id === "001").value'
83
+ */
84
+ dataPath?: string;
85
+ /**
86
+ * 自定义数据提取器
87
+ * 当 dataPath 不够灵活时使用
88
+ */
89
+ extractor?: DataExtractor;
90
+ /**
91
+ * 映射配置(保留向后兼容)
92
+ */
93
+ mapping?: MappingConfig;
94
+ /**
95
+ * 是否启用
96
+ */
97
+ enabled?: boolean;
98
+ }
99
+ /**
100
+ * 映射配置(保留向后兼容)
101
+ */
102
+ export interface MappingConfig {
103
+ type: 'direct' | 'boolean' | 'range' | 'enum' | 'custom';
104
+ trueValue?: any;
105
+ falseValue?: any;
106
+ rangeRules?: Array<{
107
+ min: number;
108
+ max: number;
109
+ value: any;
110
+ }>;
111
+ enumMappings?: Record<string, any>;
112
+ customFunction?: string;
113
+ }
114
+ /**
115
+ * 数据适配器工具类
116
+ */
117
+ export declare class DataAdapterUtils {
118
+ /**
119
+ * 从原始数据中提取值(使用数据路径)
120
+ *
121
+ * @param rawData - 原始数据
122
+ * @param dataPath - 数据路径(点分隔或数组索引)
123
+ * @returns 提取的值
124
+ *
125
+ * @example
126
+ * extractByPath({ a: { b: { c: 1 } } }, 'a.b.c') // 返回 1
127
+ * extractByPath({ arr: [1, 2, 3] }, 'arr[1]') // 返回 2
128
+ */
129
+ static extractByPath(rawData: any, dataPath: string): any;
130
+ /**
131
+ * 使用提取器从原始数据中提取值
132
+ *
133
+ * @param rawData - 原始数据
134
+ * @param extractor - 提取器函数
135
+ * @returns 提取的值
136
+ */
137
+ static extractByFunction(rawData: any, extractor: DataExtractor): any;
138
+ /**
139
+ * 应用数据适配器
140
+ *
141
+ * @param value - 提取的值
142
+ * @param adapter - 数据适配器
143
+ * @param componentConfig - 组件配置
144
+ * @returns 转换后的值
145
+ */
146
+ static applyAdapter(value: any, adapter: ComponentDataAdapter | undefined, componentConfig?: any): any;
147
+ /**
148
+ * 应用旧版映射配置(向后兼容)
149
+ */
150
+ static applyMapping(value: any, mapping: MappingConfig | undefined): any;
151
+ }
152
+ /**
153
+ * 预设的数据适配器
154
+ */
155
+ export declare const PresetDataAdapters: {
156
+ /**
157
+ * 直传适配器(不做任何转换)
158
+ */
159
+ passthrough: ComponentDataAdapter;
160
+ /**
161
+ * 数值适配器(转换为数字)
162
+ */
163
+ number: ComponentDataAdapter;
164
+ /**
165
+ * 字符串适配器
166
+ */
167
+ string: ComponentDataAdapter;
168
+ /**
169
+ * 布尔适配器
170
+ */
171
+ boolean: ComponentDataAdapter;
172
+ /**
173
+ * 百分比适配器(0-1 转换为 0-100)
174
+ */
175
+ percentage: ComponentDataAdapter;
176
+ /**
177
+ * 仪表盘适配器
178
+ */
179
+ gauge: ComponentDataAdapter;
180
+ /**
181
+ * 颜色映射适配器
182
+ */
183
+ colorMap: ComponentDataAdapter;
184
+ };
@@ -0,0 +1,131 @@
1
+ /**
2
+ * 设备点位数据结构定义
3
+ */
4
+ /**
5
+ * 点位数据类型
6
+ */
7
+ export declare enum PointDataType {
8
+ BOOLEAN = "boolean",// 布尔值
9
+ NUMBER = "number",// 数值
10
+ STRING = "string"
11
+ }
12
+ /**
13
+ * 点位访问权限
14
+ */
15
+ export declare enum PointAccessMode {
16
+ READ = "read",// 只读
17
+ WRITE = "write",// 只写
18
+ READ_WRITE = "readWrite"
19
+ }
20
+ /**
21
+ * 设备点位
22
+ */
23
+ export interface DevicePoint {
24
+ /** 点位ID */
25
+ id: string;
26
+ /** 点位名称 */
27
+ name: string;
28
+ /** 点位编码(设备内部地址) */
29
+ code: string;
30
+ /** 点位描述 */
31
+ description?: string;
32
+ /** 数据类型 */
33
+ dataType: PointDataType;
34
+ /** 访问权限 */
35
+ accessMode: PointAccessMode;
36
+ /** 当前值 */
37
+ value?: any;
38
+ /** 单位 */
39
+ unit?: string;
40
+ /** 最小值 */
41
+ minValue?: number;
42
+ /** 最大值 */
43
+ maxValue?: number;
44
+ /** 精度(小数位数) */
45
+ precision?: number;
46
+ /** 是否启用 */
47
+ enabled?: boolean;
48
+ /** 更新时间 */
49
+ updateTime?: string;
50
+ /** 质量戳(good/bad/uncertain) */
51
+ quality?: 'good' | 'bad' | 'uncertain';
52
+ }
53
+ /**
54
+ * 设备状态
55
+ */
56
+ export declare enum DeviceStatus {
57
+ ONLINE = "online",// 在线
58
+ OFFLINE = "offline",// 离线
59
+ ERROR = "error",// 故障
60
+ MAINTENANCE = "maintenance"
61
+ }
62
+ /**
63
+ * 设备类型
64
+ */
65
+ export declare enum DeviceType {
66
+ PLC = "plc",// PLC设备
67
+ SENSOR = "sensor",// 传感器
68
+ ACTUATOR = "actuator",// 执行器
69
+ METER = "meter",// 仪表
70
+ CAMERA = "camera",// 摄像头
71
+ OTHER = "other"
72
+ }
73
+ /**
74
+ * 设备
75
+ */
76
+ export interface Device {
77
+ /** 设备ID */
78
+ id: string;
79
+ /** 设备名称 */
80
+ name: string;
81
+ /** 设备编码 */
82
+ code: string;
83
+ /** 设备类型 */
84
+ type: DeviceType;
85
+ /** 设备描述 */
86
+ description?: string;
87
+ /** 设备状态 */
88
+ status: DeviceStatus;
89
+ /** 设备IP地址 */
90
+ ipAddress?: string;
91
+ /** 设备端口 */
92
+ port?: number;
93
+ /** 通信协议 */
94
+ protocol?: string;
95
+ /** 点位列表 */
96
+ points: DevicePoint[];
97
+ /** 是否启用 */
98
+ enabled?: boolean;
99
+ /** 创建时间 */
100
+ createTime?: string;
101
+ /** 更新时间 */
102
+ updateTime?: string;
103
+ /** 标签 */
104
+ tags?: string[];
105
+ /** 扩展属性 */
106
+ properties?: Record<string, any>;
107
+ }
108
+ /**
109
+ * 设备列表
110
+ */
111
+ export interface DeviceList {
112
+ /** 设备列表 */
113
+ devices: Device[];
114
+ /** 总数 */
115
+ total: number;
116
+ }
117
+ /**
118
+ * 点位值更新事件
119
+ */
120
+ export interface PointValueUpdate {
121
+ /** 设备ID */
122
+ deviceId: string;
123
+ /** 点位ID */
124
+ pointId: string;
125
+ /** 新值 */
126
+ value: any;
127
+ /** 更新时间 */
128
+ timestamp: string;
129
+ /** 质量戳 */
130
+ quality: 'good' | 'bad' | 'uncertain';
131
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,62 @@
1
+ import { Node } from '@antv/x6';
2
+
3
+ interface Props {
4
+ visible: boolean;
5
+ node: Node | null;
6
+ x: number;
7
+ y: number;
8
+ offset?: {
9
+ x: number;
10
+ y: number;
11
+ };
12
+ }
13
+ declare function __VLS_template(): {
14
+ default?(_: {
15
+ node: Node<Node.Properties> | null;
16
+ data: any;
17
+ properties: {
18
+ label: string;
19
+ value: any;
20
+ }[];
21
+ }): any;
22
+ };
23
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
24
+ offset: () => {
25
+ x: number;
26
+ y: number;
27
+ };
28
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
29
+ offset: () => {
30
+ x: number;
31
+ y: number;
32
+ };
33
+ }>>> & Readonly<{}>, {
34
+ offset: {
35
+ x: number;
36
+ y: number;
37
+ };
38
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
39
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
40
+ export default _default;
41
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
42
+ type __VLS_TypePropsToRuntimeProps<T> = {
43
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
44
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
45
+ } : {
46
+ type: import('vue').PropType<T[K]>;
47
+ required: true;
48
+ };
49
+ };
50
+ type __VLS_WithDefaults<P, D> = {
51
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
52
+ default: D[K];
53
+ }> : P[K];
54
+ };
55
+ type __VLS_Prettify<T> = {
56
+ [K in keyof T]: T[K];
57
+ } & {};
58
+ type __VLS_WithTemplateSlots<T, S> = T & {
59
+ new (): {
60
+ $slots: S;
61
+ };
62
+ };
@@ -0,0 +1 @@
1
+ export { default as Preview } from './Preview';
@@ -0,0 +1,45 @@
1
+ import { Node, Edge } from '@antv/x6';
2
+
3
+ interface Props {
4
+ selectedNode: Node | null;
5
+ selectedEdge: Edge | null;
6
+ deviceData?: any;
7
+ isCollapsed?: boolean;
8
+ }
9
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
+ isCollapsed: boolean;
11
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ "update:collapsed": (value: boolean) => void;
13
+ updateEdge: (data: any) => void;
14
+ deleteEdge: () => void;
15
+ updateNode: (data: any) => void;
16
+ deleteNode: () => void;
17
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
18
+ isCollapsed: boolean;
19
+ }>>> & Readonly<{
20
+ "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
21
+ onUpdateEdge?: ((data: any) => any) | undefined;
22
+ onDeleteEdge?: (() => any) | undefined;
23
+ onUpdateNode?: ((data: any) => any) | undefined;
24
+ onDeleteNode?: (() => any) | undefined;
25
+ }>, {
26
+ isCollapsed: boolean;
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
28
+ export default _default;
29
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
+ type __VLS_TypePropsToRuntimeProps<T> = {
31
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
32
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
33
+ } : {
34
+ type: import('vue').PropType<T[K]>;
35
+ required: true;
36
+ };
37
+ };
38
+ type __VLS_WithDefaults<P, D> = {
39
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
40
+ default: D[K];
41
+ }> : P[K];
42
+ };
43
+ type __VLS_Prettify<T> = {
44
+ [K in keyof T]: T[K];
45
+ } & {};
@@ -0,0 +1,39 @@
1
+ import { ComponentPoint } from '../../../scada-components/types';
2
+ import { BindingConfig } from '../../../shared/types/binding';
3
+
4
+ interface NodeProperty {
5
+ key: string;
6
+ label: string;
7
+ type: string;
8
+ }
9
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
10
+ binding: BindingConfig;
11
+ index: number;
12
+ isCollapsed: boolean;
13
+ nodeProperties: NodeProperty[];
14
+ componentPoints: ComponentPoint[];
15
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ "toggle-collapse": () => void;
17
+ remove: () => void;
18
+ "update-field": (field: string, event: Event) => void;
19
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
20
+ binding: BindingConfig;
21
+ index: number;
22
+ isCollapsed: boolean;
23
+ nodeProperties: NodeProperty[];
24
+ componentPoints: ComponentPoint[];
25
+ }>>> & Readonly<{
26
+ "onToggle-collapse"?: (() => any) | undefined;
27
+ onRemove?: (() => any) | undefined;
28
+ "onUpdate-field"?: ((field: string, event: Event) => any) | undefined;
29
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
30
+ export default _default;
31
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
32
+ type __VLS_TypePropsToRuntimeProps<T> = {
33
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
34
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
35
+ } : {
36
+ type: import('vue').PropType<T[K]>;
37
+ required: true;
38
+ };
39
+ };
@@ -0,0 +1,63 @@
1
+ interface EventConfig {
2
+ name?: string;
3
+ type: string;
4
+ conditionType: string;
5
+ triggerRule?: string;
6
+ condition?: {
7
+ attribute?: string;
8
+ operator?: string;
9
+ value?: string;
10
+ [key: string]: any;
11
+ };
12
+ action: string;
13
+ params?: {
14
+ processId?: string;
15
+ processName?: string;
16
+ processParams?: string;
17
+ [key: string]: any;
18
+ };
19
+ }
20
+ interface NodeProperty {
21
+ key: string;
22
+ label: string;
23
+ type: string;
24
+ }
25
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
26
+ event: EventConfig;
27
+ index: number;
28
+ isCollapsed: boolean;
29
+ nodeProperties: NodeProperty[];
30
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
31
+ "toggle-collapse": () => void;
32
+ remove: () => void;
33
+ "update-field": (field: string, event: Event) => void;
34
+ "update-condition": (field: string, event: Event) => void;
35
+ "update-params": (field: string, event: Event) => void;
36
+ "open-attribute-config": () => void;
37
+ "open-custom-code": () => void;
38
+ "open-workflow-selector": () => void;
39
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
40
+ event: EventConfig;
41
+ index: number;
42
+ isCollapsed: boolean;
43
+ nodeProperties: NodeProperty[];
44
+ }>>> & Readonly<{
45
+ "onToggle-collapse"?: (() => any) | undefined;
46
+ onRemove?: (() => any) | undefined;
47
+ "onUpdate-field"?: ((field: string, event: Event) => any) | undefined;
48
+ "onUpdate-condition"?: ((field: string, event: Event) => any) | undefined;
49
+ "onUpdate-params"?: ((field: string, event: Event) => any) | undefined;
50
+ "onOpen-attribute-config"?: (() => any) | undefined;
51
+ "onOpen-custom-code"?: (() => any) | undefined;
52
+ "onOpen-workflow-selector"?: (() => any) | undefined;
53
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
54
+ export default _default;
55
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
56
+ type __VLS_TypePropsToRuntimeProps<T> = {
57
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
58
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
59
+ } : {
60
+ type: import('vue').PropType<T[K]>;
61
+ required: true;
62
+ };
63
+ };
@@ -0,0 +1,6 @@
1
+ export { default as PropertyPanel } from './PropertyPanel';
2
+ export { default as BasicPropertiesTab } from './tabs/BasicPropertiesTab';
3
+ export { default as DataPropertiesTab } from './tabs/DataPropertiesTab';
4
+ export { default as EdgePropertiesTab } from './tabs/EdgePropertiesTab';
5
+ export { default as BindingCard } from './cards/BindingCard';
6
+ export { default as EventCard } from './cards/EventCard';
@@ -0,0 +1,51 @@
1
+ import { Node } from '@antv/x6';
2
+
3
+ interface NodePosition {
4
+ x: number;
5
+ y: number;
6
+ }
7
+ interface NodeSize {
8
+ width: number;
9
+ height: number;
10
+ }
11
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
12
+ selectedNode: Node;
13
+ nodePosition: NodePosition;
14
+ nodeSize: NodeSize;
15
+ nodeAttrs: any;
16
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ "update-position": (axis: "x" | "y", event: Event) => void;
18
+ "update-size": (dimension: "height" | "width", event: Event) => void;
19
+ "update-label": (event: Event) => void;
20
+ "update-fill": (event: Event) => void;
21
+ "update-stroke": (event: Event) => void;
22
+ "update-stroke-width": (event: Event) => void;
23
+ "update-opacity": (event: Event) => void;
24
+ "update-component-name": (event: Event) => void;
25
+ "update-dynamic-prop": (path: string, value: any) => void;
26
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
27
+ selectedNode: Node;
28
+ nodePosition: NodePosition;
29
+ nodeSize: NodeSize;
30
+ nodeAttrs: any;
31
+ }>>> & Readonly<{
32
+ "onUpdate-position"?: ((axis: "x" | "y", event: Event) => any) | undefined;
33
+ "onUpdate-size"?: ((dimension: "height" | "width", event: Event) => any) | undefined;
34
+ "onUpdate-label"?: ((event: Event) => any) | undefined;
35
+ "onUpdate-fill"?: ((event: Event) => any) | undefined;
36
+ "onUpdate-stroke"?: ((event: Event) => any) | undefined;
37
+ "onUpdate-stroke-width"?: ((event: Event) => any) | undefined;
38
+ "onUpdate-opacity"?: ((event: Event) => any) | undefined;
39
+ "onUpdate-component-name"?: ((event: Event) => any) | undefined;
40
+ "onUpdate-dynamic-prop"?: ((path: string, value: any) => any) | undefined;
41
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
42
+ export default _default;
43
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
44
+ type __VLS_TypePropsToRuntimeProps<T> = {
45
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
46
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
47
+ } : {
48
+ type: import('vue').PropType<T[K]>;
49
+ required: true;
50
+ };
51
+ };
@@ -0,0 +1,24 @@
1
+ import { Node } from '@antv/x6';
2
+
3
+ interface Props {
4
+ selectedNode: Node;
5
+ }
6
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "update-data-source": (config: {
8
+ dataSourceId: string;
9
+ }) => void;
10
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
11
+ "onUpdate-data-source"?: ((config: {
12
+ dataSourceId: string;
13
+ }) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
15
+ export default _default;
16
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
+ type __VLS_TypePropsToRuntimeProps<T> = {
18
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
19
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
20
+ } : {
21
+ type: import('vue').PropType<T[K]>;
22
+ required: true;
23
+ };
24
+ };
@@ -0,0 +1,22 @@
1
+ import { Edge } from '@antv/x6';
2
+
3
+ interface Props {
4
+ selectedEdge: Edge | null;
5
+ }
6
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ updateEdge: (updates: any) => void;
8
+ deleteEdge: () => void;
9
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
10
+ onUpdateEdge?: ((updates: any) => any) | undefined;
11
+ onDeleteEdge?: (() => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
13
+ export default _default;
14
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ type __VLS_TypePropsToRuntimeProps<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: import('vue').PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };
@@ -0,0 +1,37 @@
1
+ import { Graph } from '@antv/x6';
2
+
3
+ interface Props {
4
+ visible: boolean;
5
+ scadaGraph?: Graph | null;
6
+ }
7
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
8
+ scadaGraph: null;
9
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ "update:visible": (value: boolean) => void;
11
+ close: () => void;
12
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
13
+ scadaGraph: null;
14
+ }>>> & Readonly<{
15
+ onClose?: (() => any) | undefined;
16
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
17
+ }>, {
18
+ scadaGraph: Graph | null;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
+ 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
+ } & {};