@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.
Files changed (153) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +359 -193
  3. package/dist/index.d.ts +3 -0
  4. package/dist/scada-engine.css +1 -1
  5. package/dist/scada-engine.es.js +42794 -21383
  6. package/dist/scada-engine.umd.js +3751 -156
  7. package/dist/src/components/canvas/composables/index.d.ts +12 -0
  8. package/dist/src/components/canvas/composables/useAutoSave.d.ts +9 -0
  9. package/dist/src/components/canvas/composables/useCanvasScale.d.ts +12 -0
  10. package/dist/src/components/canvas/composables/useDataSource.d.ts +87 -0
  11. package/dist/src/components/canvas/composables/useFileOperations.d.ts +37 -0
  12. package/dist/src/components/canvas/composables/useGraphEvents.d.ts +22 -0
  13. package/dist/src/components/canvas/composables/useNodeOperations.d.ts +35 -0
  14. package/dist/src/components/canvas/config/graphConfig.d.ts +64 -0
  15. package/dist/src/components/canvas/config/pluginConfig.d.ts +5 -0
  16. package/dist/src/components/canvas/config/scadaEdgeShape.d.ts +14 -0
  17. package/dist/src/components/canvas/config/scadaEdgeView.d.ts +4 -0
  18. package/dist/src/components/canvas/types/canvas.d.ts +41 -0
  19. package/dist/src/components/configurators/BindingCard.d.ts +24 -0
  20. package/dist/src/components/configurators/ComponentPointSelector.d.ts +16 -0
  21. package/dist/src/components/{EventCard.d.ts → configurators/EventCard.d.ts} +13 -26
  22. package/dist/src/components/configurators/MappingConfigurator.d.ts +15 -0
  23. package/dist/src/components/dialogs/AttributeConfigDialog.d.ts +28 -0
  24. package/dist/src/components/dialogs/CustomCodeDialog.d.ts +20 -0
  25. package/dist/src/components/dialogs/DataSourceDialog.d.ts +16 -0
  26. package/dist/src/components/dialogs/ScadaModal.d.ts +37 -0
  27. package/dist/src/components/{WorkflowSelectorDialog.d.ts → dialogs/WorkflowSelectorDialog.d.ts} +3 -3
  28. package/dist/src/components/layout/Footer.d.ts +16 -0
  29. package/dist/src/components/layout/Header.d.ts +56 -0
  30. package/dist/src/components/panels/CanvasConfigPanel.d.ts +4 -0
  31. package/dist/src/components/panels/ComponentLibrary.d.ts +6 -0
  32. package/dist/src/components/panels/ContextMenu.d.ts +26 -0
  33. package/dist/src/components/panels/PropertyPanel.d.ts +22 -0
  34. package/dist/src/components/property-tabs/BasicPropertiesTab.d.ts +37 -0
  35. package/dist/src/components/property-tabs/DataPropertiesTab.d.ts +14 -0
  36. package/dist/src/components/property-tabs/EdgePropertiesTab.d.ts +16 -0
  37. package/dist/src/constants/animation.d.ts +5 -0
  38. package/dist/src/constants/index.d.ts +3 -0
  39. package/dist/src/constants/layout.d.ts +16 -0
  40. package/dist/src/constants/theme.d.ts +17 -0
  41. package/dist/src/index.d.ts +16 -15
  42. package/dist/src/main.d.ts +0 -1
  43. package/dist/src/scada-components/basic/circle.d.ts +0 -1
  44. package/dist/src/scada-components/basic/rect.d.ts +0 -1
  45. package/dist/src/scada-components/basic/text.d.ts +0 -1
  46. package/dist/src/scada-components/canvas/config.d.ts +0 -1
  47. package/dist/src/scada-components/canvas/manager.d.ts +0 -1
  48. package/dist/src/scada-components/iot/echarts-gauge/EChartsGauge.d.ts +7 -0
  49. package/dist/src/scada-components/iot/{echarts-gauge.d.ts → echarts-gauge/index.d.ts} +1 -2
  50. package/dist/src/scada-components/iot/echarts-line/EChartsLine.d.ts +7 -0
  51. package/dist/src/scada-components/iot/{echarts-line.d.ts → echarts-line/index.d.ts} +1 -2
  52. package/dist/src/scada-components/iot/index.d.ts +0 -5
  53. package/dist/src/scada-components/registry.d.ts +1 -2
  54. package/dist/src/scada-components/svg/core/index.d.ts +7 -0
  55. package/dist/src/scada-components/svg/core/loader.d.ts +71 -0
  56. package/dist/src/scada-components/svg/core/parser.d.ts +40 -0
  57. package/dist/src/scada-components/svg/core/types.d.ts +297 -0
  58. package/dist/src/scada-components/svg/helpers/demo.d.ts +20 -0
  59. package/dist/src/scada-components/svg/helpers/index.d.ts +5 -0
  60. package/dist/src/scada-components/svg/helpers/utils.d.ts +24 -0
  61. package/dist/src/scada-components/svg/index.d.ts +9 -0
  62. package/dist/src/scada-components/svg/rendering/SVGRenderer.d.ts +14 -0
  63. package/dist/src/scada-components/svg/rendering/animationTemplates.d.ts +81 -0
  64. package/dist/src/scada-components/svg/rendering/index.d.ts +6 -0
  65. package/dist/src/scada-components/types.d.ts +0 -1
  66. package/dist/src/types/context-menu.d.ts +13 -0
  67. package/dist/src/types/model3d.d.ts +106 -0
  68. package/dist/src/types/zone.d.ts +54 -0
  69. package/dist/src/utils/animation/index.d.ts +6 -0
  70. package/dist/src/utils/{canvasConfigWatcher.d.ts → canvas/config-watcher.d.ts} +19 -9
  71. package/dist/src/utils/{canvasDataHandler.d.ts → canvas/data-handler.d.ts} +0 -29
  72. package/dist/src/utils/{edgeOperations.d.ts → canvas/edge-operations.d.ts} +6 -3
  73. package/dist/src/utils/{graphOperations.d.ts → canvas/graph-operations.d.ts} +0 -1
  74. package/dist/src/utils/canvas/index.d.ts +10 -0
  75. package/dist/src/utils/{canvasLayerManager.d.ts → canvas/layer-manager.d.ts} +0 -1
  76. package/dist/src/utils/{nodeOperations.d.ts → canvas/node-operations.d.ts} +0 -1
  77. package/dist/src/utils/core/index.d.ts +8 -0
  78. package/dist/src/utils/{dataBindingService.d.ts → data/binding-service.d.ts} +1 -2
  79. package/dist/src/utils/data/index.d.ts +6 -0
  80. package/dist/src/utils/{contextMenuManager.d.ts → events/context-menu.d.ts} +1 -2
  81. package/dist/src/utils/{eventManager.d.ts → events/event-manager.d.ts} +1 -2
  82. package/dist/src/utils/events/index.d.ts +7 -0
  83. package/dist/src/utils/index.d.ts +30 -19
  84. package/dist/src/utils/integrations/draco-loader.d.ts +2 -0
  85. package/dist/src/utils/integrations/index.d.ts +6 -0
  86. package/dist/src/utils/performance/index.d.ts +6 -0
  87. package/dist/src/utils/{viewportCulling.d.ts → performance/viewport-culling.d.ts} +0 -1
  88. package/dist/src/views/Preview.d.ts +4 -0
  89. package/dist/src/views/workflow/WorkflowDialog.d.ts +10 -30
  90. package/dist/src/views/workflow/components/AddNodeMenu.d.ts +5 -14
  91. package/dist/src/views/workflow/components/ElementSelector.d.ts +5 -27
  92. package/dist/src/views/workflow/components/PropertyPanel.d.ts +8 -15
  93. package/dist/src/views/workflow/components/node-configs/ClearTimerConfig.d.ts +4 -14
  94. package/dist/src/views/workflow/components/node-configs/ConditionConfig.d.ts +4 -14
  95. package/dist/src/views/workflow/components/node-configs/CustomCodeConfig.d.ts +4 -14
  96. package/dist/src/views/workflow/components/node-configs/GetPropertyConfig.d.ts +4 -14
  97. package/dist/src/views/workflow/components/node-configs/HttpRequestConfig.d.ts +4 -14
  98. package/dist/src/views/workflow/components/node-configs/SetPropertyConfig.d.ts +4 -14
  99. package/dist/src/views/workflow/components/node-configs/TimerConfig.d.ts +4 -14
  100. package/dist/src/views/workflow/config/nodeConfigRegistry.d.ts +0 -1
  101. package/dist/src/views/workflow/services/canvasElementService.d.ts +0 -1
  102. package/package.json +86 -82
  103. package/dist/src/components/AttributeConfigDialog.d.ts +0 -39
  104. package/dist/src/components/BasicPropertiesTab.d.ts +0 -51
  105. package/dist/src/components/BindingCard.d.ts +0 -39
  106. package/dist/src/components/CanvasArea.d.ts +0 -4
  107. package/dist/src/components/ComponentLibrary.d.ts +0 -34
  108. package/dist/src/components/ComponentPointSelector.d.ts +0 -29
  109. package/dist/src/components/ContextMenu.d.ts +0 -63
  110. package/dist/src/components/CustomCodeDialog.d.ts +0 -30
  111. package/dist/src/components/DataPropertiesTab.d.ts +0 -24
  112. package/dist/src/components/DataSourceDialog.d.ts +0 -26
  113. package/dist/src/components/EdgePropertiesTab.d.ts +0 -22
  114. package/dist/src/components/Footer.d.ts +0 -41
  115. package/dist/src/components/Header.d.ts +0 -73
  116. package/dist/src/components/MappingConfigurator.d.ts +0 -27
  117. package/dist/src/components/PropertyPanel.d.ts +0 -45
  118. package/dist/src/scada-components/iot/AlarmLight3D.d.ts +0 -14
  119. package/dist/src/scada-components/iot/Conveyor3D.d.ts +0 -14
  120. package/dist/src/scada-components/iot/Cylinder3D.d.ts +0 -14
  121. package/dist/src/scada-components/iot/EChartsGauge.d.ts +0 -14
  122. package/dist/src/scada-components/iot/EChartsLine.d.ts +0 -14
  123. package/dist/src/scada-components/iot/Filter3D.d.ts +0 -14
  124. package/dist/src/scada-components/iot/HeatExchanger3D.d.ts +0 -14
  125. package/dist/src/scada-components/iot/Light3D.d.ts +0 -14
  126. package/dist/src/scada-components/iot/Motor3D.d.ts +0 -14
  127. package/dist/src/scada-components/iot/Pipe3D.d.ts +0 -14
  128. package/dist/src/scada-components/iot/Pump3D.d.ts +0 -14
  129. package/dist/src/scada-components/iot/Switch3D.d.ts +0 -14
  130. package/dist/src/scada-components/iot/Tank3D.d.ts +0 -14
  131. package/dist/src/scada-components/iot/Tee3D.d.ts +0 -14
  132. package/dist/src/scada-components/iot/TemperatureSensor3D.d.ts +0 -14
  133. package/dist/src/scada-components/iot/Valve3D.d.ts +0 -14
  134. package/dist/src/scada-components/iot/industrial-3d-extended.d.ts +0 -18
  135. package/dist/src/scada-components/iot/industrial-3d-fluid.d.ts +0 -18
  136. package/dist/src/scada-components/iot/industrial-3d.d.ts +0 -18
  137. package/dist/src/scada-components/iot/light.d.ts +0 -6
  138. package/dist/src/scada-components/iot/switch.d.ts +0 -6
  139. package/dist/src/views/workflow/WorkflowEditor.d.ts +0 -38
  140. package/dist/src/views/workflow/components/WorkflowToolbar.d.ts +0 -24
  141. /package/dist/src/{components/CanvasConfigPanel.d.ts → App.d.ts} +0 -0
  142. /package/dist/src/scada-components/iot/{echarts-gauge-presets.d.ts → echarts-gauge/presets.d.ts} +0 -0
  143. /package/dist/src/scada-components/iot/{echarts-line-presets.d.ts → echarts-line/presets.d.ts} +0 -0
  144. /package/dist/src/utils/{animationEngine.d.ts → animation/animation-engine.d.ts} +0 -0
  145. /package/dist/src/utils/{animationScheduler.d.ts → animation/animation-scheduler.d.ts} +0 -0
  146. /package/dist/src/utils/{commonUtils.d.ts → core/common.d.ts} +0 -0
  147. /package/dist/src/utils/{fileUtils.d.ts → core/file.d.ts} +0 -0
  148. /package/dist/src/utils/{messageUtils.d.ts → core/message.d.ts} +0 -0
  149. /package/dist/src/utils/{storageUtils.d.ts → core/storage.d.ts} +0 -0
  150. /package/dist/src/utils/{nodePropertyUtils.d.ts → data/node-property.d.ts} +0 -0
  151. /package/dist/src/utils/{eventUtils.d.ts → events/event-utils.d.ts} +0 -0
  152. /package/dist/src/utils/{authCrypto.d.ts → integrations/auth-crypto.d.ts} +0 -0
  153. /package/dist/src/utils/{workerManager.d.ts → performance/worker-manager.d.ts} +0 -0
@@ -1,6 +1,5 @@
1
1
  import { Graph } from '@antv/x6';
2
2
  import { ElementInfo } from '../types/element';
3
-
4
3
  /**
5
4
  * 画布图元服务类
6
5
  */
package/package.json CHANGED
@@ -1,82 +1,86 @@
1
- {
2
- "name": "@nywqs/scada-engine",
3
- "version": "1.1.30",
4
- "description": "自研 SCADA 组态引擎 - 基于 AntV X6",
5
- "type": "module",
6
- "main": "./dist/scada-engine.umd.js",
7
- "module": "./dist/scada-engine.es.js",
8
- "types": "./dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "import": "./dist/scada-engine.es.js",
12
- "require": "./dist/scada-engine.umd.js",
13
- "types": "./dist/index.d.ts"
14
- },
15
- "./dist/style.css": "./dist/scada-engine.css",
16
- "./dist/scada-engine.css": "./dist/scada-engine.css"
17
- },
18
- "files": [
19
- "dist",
20
- "README.md"
21
- ],
22
- "scripts": {
23
- "dev": "vite",
24
- "build": "vite build",
25
- "build:lib": "vite build",
26
- "preview": "vite preview",
27
- "docs:dev": "cd docs && npx hexo server",
28
- "docs:build": "cd docs && npx hexo generate",
29
- "docs:clean": "cd docs && npx hexo clean",
30
- "docs:deploy": "cd docs && npx hexo deploy"
31
- },
32
- "dependencies": {
33
- "@antv/x6": "^2.18.0",
34
- "@antv/x6-plugin-dnd": "^2.1.1",
35
- "@antv/x6-plugin-selection": "^2.2.0",
36
- "@antv/x6-plugin-snapline": "^2.1.0",
37
- "@antv/x6-vue-shape": "^2.1.2",
38
- "@vicons/carbon": "^0.13.0",
39
- "@vueuse/core": "^10.0.0",
40
- "echarts": "^5.5.0",
41
- "lucide-vue-next": "^0.563.0",
42
- "mqtt": "^5.14.1",
43
- "pinia": "^2.1.0",
44
- "vue": "^3.4.0"
45
- },
46
- "devDependencies": {
47
- "@types/node": "^25.0.3",
48
- "@vitejs/plugin-vue": "^5.0.0",
49
- "less": "^4.2.0",
50
- "postcss-prefix-selector": "^2.1.1",
51
- "typescript": "^5.3.0",
52
- "vite": "^5.0.0",
53
- "vite-plugin-dts": "^3.9.1",
54
- "vue-tsc": "^1.8.27"
55
- },
56
- "peerDependencies": {
57
- "@antv/x6": "^2.18.0",
58
- "@antv/x6-plugin-selection": "^2.2.0",
59
- "@antv/x6-plugin-snapline": "^2.1.0",
60
- "@vueuse/core": "^10.0.0",
61
- "echarts": "^5.5.0",
62
- "pinia": "^2.1.0",
63
- "vue": "^3.4.0"
64
- },
65
- "keywords": [
66
- "scada",
67
- "visualization",
68
- "vue3",
69
- "x6",
70
- "antv",
71
- "iot",
72
- "dashboard",
73
- "组态",
74
- "可视化"
75
- ],
76
- "author": "wqs",
77
- "license": "MIT",
78
- "repository": {
79
- "type": "git",
80
- "url": "https://github.com/leoncheng2030/scada-engine.git"
81
- }
82
- }
1
+ {
2
+ "name": "@nywqs/scada-engine",
3
+ "version": "2.0.0",
4
+ "description": "自研 SCADA 组态引擎 - 基于 AntV X6",
5
+ "type": "module",
6
+ "main": "./dist/scada-engine.umd.js",
7
+ "module": "./dist/scada-engine.es.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/scada-engine.es.js",
12
+ "require": "./dist/scada-engine.umd.js",
13
+ "types": "./dist/index.d.ts"
14
+ },
15
+ "./dist/style.css": "./dist/scada-engine.css",
16
+ "./dist/scada-engine.css": "./dist/scada-engine.css"
17
+ },
18
+ "files": [
19
+ "dist",
20
+ "README.md",
21
+ "LICENSE"
22
+ ],
23
+ "scripts": {
24
+ "dev": "vite",
25
+ "build": "vite build",
26
+ "build:lib": "vite build",
27
+ "preview": "vite preview",
28
+ "prepublishOnly": "npm run build",
29
+ "docs:dev": "cd docs && npx hexo server",
30
+ "docs:build": "cd docs && npx hexo generate",
31
+ "docs:clean": "cd docs && npx hexo clean",
32
+ "docs:deploy": "cd docs && npx hexo deploy"
33
+ },
34
+ "dependencies": {
35
+ "@antv/x6": "^3.1.6",
36
+ "@antv/x6-vue-shape": "^3.0.2",
37
+ "@vicons/carbon": "^0.13.0",
38
+ "@vicons/ionicons5": "^0.13.0",
39
+ "@vueuse/core": "^10.0.0",
40
+ "echarts": "^5.5.0",
41
+ "mqtt": "^5.14.1",
42
+ "pinia": "^2.1.0",
43
+ "three": "^0.160.1",
44
+ "vue": "^3.4.0"
45
+ },
46
+ "devDependencies": {
47
+ "@types/node": "^25.0.3",
48
+ "@types/three": "^0.182.0",
49
+ "@vitejs/plugin-vue": "^5.0.0",
50
+ "naive-ui": "^2.43.2",
51
+ "typescript": "^5.3.0",
52
+ "unplugin-auto-import": "^0.17.0",
53
+ "unplugin-vue-components": "^0.26.0",
54
+ "vite": "^5.0.0",
55
+ "vite-plugin-dts": "^4.5.4",
56
+ "vue-tsc": "^1.8.27"
57
+ },
58
+ "peerDependencies": {
59
+ "@antv/x6": "^3.1.6",
60
+ "@vueuse/core": "^10.0.0",
61
+ "echarts": "^5.5.0",
62
+ "pinia": "^2.1.0",
63
+ "vue": "^3.4.0"
64
+ },
65
+ "keywords": [
66
+ "scada",
67
+ "visualization",
68
+ "vue3",
69
+ "x6",
70
+ "antv",
71
+ "iot",
72
+ "dashboard",
73
+ "组态",
74
+ "可视化"
75
+ ],
76
+ "author": "wqs",
77
+ "license": "MIT",
78
+ "repository": {
79
+ "type": "git",
80
+ "url": "https://github.com/leoncheng2030/scada-engine.git"
81
+ },
82
+ "homepage": "https://github.com/leoncheng2030/scada-engine#readme",
83
+ "bugs": {
84
+ "url": "https://github.com/leoncheng2030/scada-engine/issues"
85
+ }
86
+ }
@@ -1,39 +0,0 @@
1
- interface AttributeGroup {
2
- target: string;
3
- property: string;
4
- value: string;
5
- }
6
- interface NodeProperty {
7
- key: string;
8
- label: string;
9
- type: string;
10
- }
11
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
12
- attributeGroups: AttributeGroup[];
13
- nodeProperties: NodeProperty[];
14
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
- save: () => void;
16
- close: () => void;
17
- "add-group": () => void;
18
- "remove-group": (index: number) => void;
19
- "update-group": (index: number, field: keyof AttributeGroup, value: string) => void;
20
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
21
- attributeGroups: AttributeGroup[];
22
- nodeProperties: NodeProperty[];
23
- }>>> & Readonly<{
24
- onSave?: (() => any) | undefined;
25
- onClose?: (() => any) | undefined;
26
- "onAdd-group"?: (() => any) | undefined;
27
- "onRemove-group"?: ((index: number) => any) | undefined;
28
- "onUpdate-group"?: ((index: number, field: keyof AttributeGroup, value: string) => 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
- };
@@ -1,51 +0,0 @@
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
- };
@@ -1,39 +0,0 @@
1
- import { ComponentPoint } from '../scada-components/types';
2
- import { BindingConfig } from '../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
- };
@@ -1,4 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {
2
- containerRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
3
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
- export default _default;
@@ -1,34 +0,0 @@
1
- interface Props {
2
- isCollapsed?: boolean;
3
- }
4
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
5
- isCollapsed: boolean;
6
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
- addComponent: (type: string) => void;
8
- "update:collapsed": (value: boolean) => void;
9
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
- isCollapsed: boolean;
11
- }>>> & Readonly<{
12
- onAddComponent?: ((type: string) => any) | undefined;
13
- "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
14
- }>, {
15
- isCollapsed: boolean;
16
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
17
- export default _default;
18
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
- type __VLS_TypePropsToRuntimeProps<T> = {
20
- [K in keyof T]-?: {} extends Pick<T, K> ? {
21
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
- } : {
23
- type: import('vue').PropType<T[K]>;
24
- required: true;
25
- };
26
- };
27
- type __VLS_WithDefaults<P, D> = {
28
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
- default: D[K];
30
- }> : P[K];
31
- };
32
- type __VLS_Prettify<T> = {
33
- [K in keyof T]: T[K];
34
- } & {};
@@ -1,29 +0,0 @@
1
- import { ComponentPoint } from '../scada-components/types';
2
-
3
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
- visible: boolean;
5
- modelValue?: string;
6
- componentPoints: ComponentPoint[];
7
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
- "update:visible": (value: boolean) => void;
9
- "update:modelValue": (value: string) => void;
10
- confirm: (pointId: string, point: ComponentPoint) => void;
11
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
12
- visible: boolean;
13
- modelValue?: string;
14
- componentPoints: ComponentPoint[];
15
- }>>> & Readonly<{
16
- "onUpdate:visible"?: ((value: boolean) => any) | undefined;
17
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
18
- onConfirm?: ((pointId: string, point: ComponentPoint) => any) | undefined;
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
- };
@@ -1,63 +0,0 @@
1
- export interface MenuItem {
2
- key: string;
3
- label?: string;
4
- icon?: string;
5
- hotkey?: string;
6
- disabled?: boolean;
7
- divider?: boolean;
8
- onClick?: () => void;
9
- }
10
- interface Props {
11
- visible: boolean;
12
- position: {
13
- x: number;
14
- y: number;
15
- };
16
- menuItems: MenuItem[];
17
- }
18
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
19
- visible: boolean;
20
- position: () => {
21
- x: number;
22
- y: number;
23
- };
24
- menuItems: () => never[];
25
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
- "update:visible": (value: boolean) => void;
27
- "menu-click": (key: string) => void;
28
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
29
- visible: boolean;
30
- position: () => {
31
- x: number;
32
- y: number;
33
- };
34
- menuItems: () => never[];
35
- }>>> & Readonly<{
36
- "onUpdate:visible"?: ((value: boolean) => any) | undefined;
37
- "onMenu-click"?: ((key: string) => any) | undefined;
38
- }>, {
39
- position: {
40
- x: number;
41
- y: number;
42
- };
43
- visible: boolean;
44
- menuItems: MenuItem[];
45
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
46
- export default _default;
47
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
48
- type __VLS_TypePropsToRuntimeProps<T> = {
49
- [K in keyof T]-?: {} extends Pick<T, K> ? {
50
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
51
- } : {
52
- type: import('vue').PropType<T[K]>;
53
- required: true;
54
- };
55
- };
56
- type __VLS_WithDefaults<P, D> = {
57
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
58
- default: D[K];
59
- }> : P[K];
60
- };
61
- type __VLS_Prettify<T> = {
62
- [K in keyof T]: T[K];
63
- } & {};
@@ -1,30 +0,0 @@
1
- import { Node } from '@antv/x6';
2
-
3
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
- code: string;
5
- selectedNode: Node | null;
6
- }>>, {
7
- previewContainer: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
8
- DEFAULT_CODE: string;
9
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
- save: () => void;
11
- close: () => void;
12
- "update:code": (value: string) => void;
13
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
14
- code: string;
15
- selectedNode: Node | null;
16
- }>>> & Readonly<{
17
- onSave?: (() => any) | undefined;
18
- onClose?: (() => any) | undefined;
19
- "onUpdate:code"?: ((value: string) => any) | undefined;
20
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
21
- export default _default;
22
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
- type __VLS_TypePropsToRuntimeProps<T> = {
24
- [K in keyof T]-?: {} extends Pick<T, K> ? {
25
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
- } : {
27
- type: import('vue').PropType<T[K]>;
28
- required: true;
29
- };
30
- };
@@ -1,24 +0,0 @@
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
- };
@@ -1,26 +0,0 @@
1
- import { DataSource } from '../services/dataSourceManager';
2
-
3
- interface Props {
4
- dataSources: DataSource[];
5
- }
6
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
- save: (dataSource: DataSource) => void;
8
- delete: (id: string) => void;
9
- add: (dataSource: Omit<DataSource, "id" | "status" | "devices">) => void;
10
- close: () => void;
11
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
12
- onSave?: ((dataSource: DataSource) => any) | undefined;
13
- onDelete?: ((id: string) => any) | undefined;
14
- onAdd?: ((dataSource: Omit<DataSource, "id" | "status" | "devices">) => any) | undefined;
15
- onClose?: (() => any) | undefined;
16
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
17
- export default _default;
18
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
- type __VLS_TypePropsToRuntimeProps<T> = {
20
- [K in keyof T]-?: {} extends Pick<T, K> ? {
21
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
- } : {
23
- type: import('vue').PropType<T[K]>;
24
- required: true;
25
- };
26
- };
@@ -1,22 +0,0 @@
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
- };
@@ -1,41 +0,0 @@
1
- interface CustomFooterConfig {
2
- copyright?: string;
3
- license?: string;
4
- contact?: string;
5
- }
6
- interface Props {
7
- authCode?: string;
8
- publicKeyPem?: string;
9
- customFooter?: CustomFooterConfig;
10
- }
11
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
12
- authCode: string;
13
- publicKeyPem: undefined;
14
- customFooter: undefined;
15
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
16
- authCode: string;
17
- publicKeyPem: undefined;
18
- customFooter: undefined;
19
- }>>> & Readonly<{}>, {
20
- authCode: string;
21
- publicKeyPem: string;
22
- customFooter: CustomFooterConfig;
23
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
24
- export default _default;
25
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
- type __VLS_TypePropsToRuntimeProps<T> = {
27
- [K in keyof T]-?: {} extends Pick<T, K> ? {
28
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
29
- } : {
30
- type: import('vue').PropType<T[K]>;
31
- required: true;
32
- };
33
- };
34
- type __VLS_WithDefaults<P, D> = {
35
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
36
- default: D[K];
37
- }> : P[K];
38
- };
39
- type __VLS_Prettify<T> = {
40
- [K in keyof T]: T[K];
41
- } & {};