liteflow-editor-process 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 (281) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1020 -0
  3. package/dist/LiteFlowEditor/assets/and-icon.svg +20 -0
  4. package/dist/LiteFlowEditor/assets/catch-icon.svg +14 -0
  5. package/dist/LiteFlowEditor/assets/chain-icon.svg +11 -0
  6. package/dist/LiteFlowEditor/assets/common-icon.svg +18 -0
  7. package/dist/LiteFlowEditor/assets/end-icon.svg +14 -0
  8. package/dist/LiteFlowEditor/assets/for-icon.svg +20 -0
  9. package/dist/LiteFlowEditor/assets/if-icon.svg +14 -0
  10. package/dist/LiteFlowEditor/assets/indicator-icons.svg +16 -0
  11. package/dist/LiteFlowEditor/assets/intermediate-end-icon.svg +20 -0
  12. package/dist/LiteFlowEditor/assets/intermediate-event-catch-error.svg +40 -0
  13. package/dist/LiteFlowEditor/assets/iterator-icon.svg +7 -0
  14. package/dist/LiteFlowEditor/assets/little-warning-icon.svg +1 -0
  15. package/dist/LiteFlowEditor/assets/not-icon.svg +20 -0
  16. package/dist/LiteFlowEditor/assets/or-icon.svg +20 -0
  17. package/dist/LiteFlowEditor/assets/start-icon.svg +16 -0
  18. package/dist/LiteFlowEditor/assets/switch-icon.svg +15 -0
  19. package/dist/LiteFlowEditor/assets/then-icon.svg +23 -0
  20. package/dist/LiteFlowEditor/assets/virtual-icon.svg +21 -0
  21. package/dist/LiteFlowEditor/assets/warning-icon.svg +1 -0
  22. package/dist/LiteFlowEditor/assets/when-icon.svg +21 -0
  23. package/dist/LiteFlowEditor/assets/while-icon.svg +24 -0
  24. package/dist/LiteFlowEditor/cells/and.d.ts +2 -0
  25. package/dist/LiteFlowEditor/cells/and.js +8 -0
  26. package/dist/LiteFlowEditor/cells/catch.d.ts +2 -0
  27. package/dist/LiteFlowEditor/cells/catch.js +8 -0
  28. package/dist/LiteFlowEditor/cells/chain.d.ts +2 -0
  29. package/dist/LiteFlowEditor/cells/chain.js +8 -0
  30. package/dist/LiteFlowEditor/cells/common.d.ts +2 -0
  31. package/dist/LiteFlowEditor/cells/common.js +8 -0
  32. package/dist/LiteFlowEditor/cells/end.d.ts +2 -0
  33. package/dist/LiteFlowEditor/cells/end.js +11 -0
  34. package/dist/LiteFlowEditor/cells/for.d.ts +2 -0
  35. package/dist/LiteFlowEditor/cells/for.js +8 -0
  36. package/dist/LiteFlowEditor/cells/if.d.ts +2 -0
  37. package/dist/LiteFlowEditor/cells/if.js +9 -0
  38. package/dist/LiteFlowEditor/cells/index.d.ts +25 -0
  39. package/dist/LiteFlowEditor/cells/index.js +219 -0
  40. package/dist/LiteFlowEditor/cells/intermediate-end.d.ts +2 -0
  41. package/dist/LiteFlowEditor/cells/intermediate-end.js +11 -0
  42. package/dist/LiteFlowEditor/cells/iterator.d.ts +2 -0
  43. package/dist/LiteFlowEditor/cells/iterator.js +8 -0
  44. package/dist/LiteFlowEditor/cells/not.d.ts +2 -0
  45. package/dist/LiteFlowEditor/cells/not.js +8 -0
  46. package/dist/LiteFlowEditor/cells/or.d.ts +2 -0
  47. package/dist/LiteFlowEditor/cells/or.js +8 -0
  48. package/dist/LiteFlowEditor/cells/start.d.ts +2 -0
  49. package/dist/LiteFlowEditor/cells/start.js +11 -0
  50. package/dist/LiteFlowEditor/cells/switch.d.ts +2 -0
  51. package/dist/LiteFlowEditor/cells/switch.js +9 -0
  52. package/dist/LiteFlowEditor/cells/then.d.ts +2 -0
  53. package/dist/LiteFlowEditor/cells/then.js +11 -0
  54. package/dist/LiteFlowEditor/cells/virtual.d.ts +2 -0
  55. package/dist/LiteFlowEditor/cells/virtual.js +8 -0
  56. package/dist/LiteFlowEditor/cells/when.d.ts +2 -0
  57. package/dist/LiteFlowEditor/cells/when.js +11 -0
  58. package/dist/LiteFlowEditor/cells/while.d.ts +2 -0
  59. package/dist/LiteFlowEditor/cells/while.js +8 -0
  60. package/dist/LiteFlowEditor/common/anchor.d.ts +2 -0
  61. package/dist/LiteFlowEditor/common/anchor.js +10 -0
  62. package/dist/LiteFlowEditor/common/connector.d.ts +2 -0
  63. package/dist/LiteFlowEditor/common/connector.js +20 -0
  64. package/dist/LiteFlowEditor/common/edge.d.ts +61 -0
  65. package/dist/LiteFlowEditor/common/edge.js +57 -0
  66. package/dist/LiteFlowEditor/common/events.d.ts +4 -0
  67. package/dist/LiteFlowEditor/common/events.js +97 -0
  68. package/dist/LiteFlowEditor/common/index.d.ts +4 -0
  69. package/dist/LiteFlowEditor/common/index.js +11 -0
  70. package/dist/LiteFlowEditor/common/layout.d.ts +12 -0
  71. package/dist/LiteFlowEditor/common/layout.js +308 -0
  72. package/dist/LiteFlowEditor/common/router.d.ts +2 -0
  73. package/dist/LiteFlowEditor/common/router.js +40 -0
  74. package/dist/LiteFlowEditor/common/shortcuts.d.ts +10 -0
  75. package/dist/LiteFlowEditor/common/shortcuts.js +183 -0
  76. package/dist/LiteFlowEditor/components/NodeBadge/index.d.ts +6 -0
  77. package/dist/LiteFlowEditor/components/NodeBadge/index.js +24 -0
  78. package/dist/LiteFlowEditor/components/NodeBadge/index.module.less +10 -0
  79. package/dist/LiteFlowEditor/components/NodeToolBar/index.d.ts +6 -0
  80. package/dist/LiteFlowEditor/components/NodeToolBar/index.js +121 -0
  81. package/dist/LiteFlowEditor/components/NodeToolBar/index.module.less +133 -0
  82. package/dist/LiteFlowEditor/components/NodeView/index.d.ts +7 -0
  83. package/dist/LiteFlowEditor/components/NodeView/index.js +14 -0
  84. package/dist/LiteFlowEditor/components/NodeView/index.module.less +14 -0
  85. package/dist/LiteFlowEditor/components/index.d.ts +3 -0
  86. package/dist/LiteFlowEditor/components/index.js +3 -0
  87. package/dist/LiteFlowEditor/constant/index.d.ts +79 -0
  88. package/dist/LiteFlowEditor/constant/index.js +215 -0
  89. package/dist/LiteFlowEditor/context/GraphContext.d.ts +13 -0
  90. package/dist/LiteFlowEditor/context/GraphContext.js +10 -0
  91. package/dist/LiteFlowEditor/context/ScriptContext.d.ts +37 -0
  92. package/dist/LiteFlowEditor/context/ScriptContext.js +15 -0
  93. package/dist/LiteFlowEditor/hooks/index.d.ts +5 -0
  94. package/dist/LiteFlowEditor/hooks/index.js +5 -0
  95. package/dist/LiteFlowEditor/hooks/useClickAway.d.ts +5 -0
  96. package/dist/LiteFlowEditor/hooks/useClickAway.js +38 -0
  97. package/dist/LiteFlowEditor/hooks/useGraph.d.ts +1 -0
  98. package/dist/LiteFlowEditor/hooks/useGraph.js +7 -0
  99. package/dist/LiteFlowEditor/hooks/useGraphWrapper.d.ts +2 -0
  100. package/dist/LiteFlowEditor/hooks/useGraphWrapper.js +7 -0
  101. package/dist/LiteFlowEditor/hooks/useHistory.d.ts +2 -0
  102. package/dist/LiteFlowEditor/hooks/useHistory.js +69 -0
  103. package/dist/LiteFlowEditor/hooks/useModel.d.ts +3 -0
  104. package/dist/LiteFlowEditor/hooks/useModel.js +7 -0
  105. package/dist/LiteFlowEditor/hooks/useUpdateEffect.d.ts +7 -0
  106. package/dist/LiteFlowEditor/hooks/useUpdateEffect.js +17 -0
  107. package/dist/LiteFlowEditor/i18n/en_US/translation.json +138 -0
  108. package/dist/LiteFlowEditor/i18n/index.d.ts +2 -0
  109. package/dist/LiteFlowEditor/i18n/index.js +28 -0
  110. package/dist/LiteFlowEditor/i18n/zh_CN/translation.json +139 -0
  111. package/dist/LiteFlowEditor/i18n/zh_TW/translation.json +139 -0
  112. package/dist/LiteFlowEditor/index.d.ts +37 -0
  113. package/dist/LiteFlowEditor/index.js +299 -0
  114. package/dist/LiteFlowEditor/index.module.less +127 -0
  115. package/dist/LiteFlowEditor/mock/index.d.ts +2 -0
  116. package/dist/LiteFlowEditor/mock/index.js +272 -0
  117. package/dist/LiteFlowEditor/model/builder.d.ts +43 -0
  118. package/dist/LiteFlowEditor/model/builder.js +239 -0
  119. package/dist/LiteFlowEditor/model/chain.d.ts +83 -0
  120. package/dist/LiteFlowEditor/model/chain.js +278 -0
  121. package/dist/LiteFlowEditor/model/el/and-operator.d.ts +53 -0
  122. package/dist/LiteFlowEditor/model/el/and-operator.js +178 -0
  123. package/dist/LiteFlowEditor/model/el/catch-operator.d.ts +81 -0
  124. package/dist/LiteFlowEditor/model/el/catch-operator.js +338 -0
  125. package/dist/LiteFlowEditor/model/el/chain-operator.d.ts +53 -0
  126. package/dist/LiteFlowEditor/model/el/chain-operator.js +170 -0
  127. package/dist/LiteFlowEditor/model/el/for-operator.d.ts +56 -0
  128. package/dist/LiteFlowEditor/model/el/for-operator.js +171 -0
  129. package/dist/LiteFlowEditor/model/el/if-operator.d.ts +64 -0
  130. package/dist/LiteFlowEditor/model/el/if-operator.js +265 -0
  131. package/dist/LiteFlowEditor/model/el/index.d.ts +40 -0
  132. package/dist/LiteFlowEditor/model/el/index.js +47 -0
  133. package/dist/LiteFlowEditor/model/el/iterator-operator.d.ts +56 -0
  134. package/dist/LiteFlowEditor/model/el/iterator-operator.js +183 -0
  135. package/dist/LiteFlowEditor/model/el/node-operator.d.ts +62 -0
  136. package/dist/LiteFlowEditor/model/el/node-operator.js +136 -0
  137. package/dist/LiteFlowEditor/model/el/not-operator.d.ts +68 -0
  138. package/dist/LiteFlowEditor/model/el/not-operator.js +231 -0
  139. package/dist/LiteFlowEditor/model/el/or-operator.d.ts +53 -0
  140. package/dist/LiteFlowEditor/model/el/or-operator.js +178 -0
  141. package/dist/LiteFlowEditor/model/el/switch-operator.d.ts +56 -0
  142. package/dist/LiteFlowEditor/model/el/switch-operator.js +173 -0
  143. package/dist/LiteFlowEditor/model/el/then-operator.d.ts +66 -0
  144. package/dist/LiteFlowEditor/model/el/then-operator.js +159 -0
  145. package/dist/LiteFlowEditor/model/el/when-operator.d.ts +58 -0
  146. package/dist/LiteFlowEditor/model/el/when-operator.js +181 -0
  147. package/dist/LiteFlowEditor/model/el/while-operator.d.ts +56 -0
  148. package/dist/LiteFlowEditor/model/el/while-operator.js +171 -0
  149. package/dist/LiteFlowEditor/model/node.d.ts +182 -0
  150. package/dist/LiteFlowEditor/model/node.js +463 -0
  151. package/dist/LiteFlowEditor/model/utils/createTag.d.ts +1 -0
  152. package/dist/LiteFlowEditor/model/utils/createTag.js +5 -0
  153. package/dist/LiteFlowEditor/model/utils/end.d.ts +87 -0
  154. package/dist/LiteFlowEditor/model/utils/end.js +185 -0
  155. package/dist/LiteFlowEditor/model/utils/index.d.ts +7 -0
  156. package/dist/LiteFlowEditor/model/utils/index.js +10 -0
  157. package/dist/LiteFlowEditor/model/utils/start.d.ts +87 -0
  158. package/dist/LiteFlowEditor/model/utils/start.js +185 -0
  159. package/dist/LiteFlowEditor/model/utils/virtual.d.ts +78 -0
  160. package/dist/LiteFlowEditor/model/utils/virtual.js +167 -0
  161. package/dist/LiteFlowEditor/model-checker/checkers/AnalysisNodeChecker.d.ts +7 -0
  162. package/dist/LiteFlowEditor/model-checker/checkers/AnalysisNodeChecker.js +44 -0
  163. package/dist/LiteFlowEditor/model-checker/checkers/CurScheduleSetChecker.d.ts +7 -0
  164. package/dist/LiteFlowEditor/model-checker/checkers/CurScheduleSetChecker.js +26 -0
  165. package/dist/LiteFlowEditor/model-checker/checkers/InputListChecker.d.ts +7 -0
  166. package/dist/LiteFlowEditor/model-checker/checkers/InputListChecker.js +39 -0
  167. package/dist/LiteFlowEditor/model-checker/checkers/InputListValueChecker.d.ts +7 -0
  168. package/dist/LiteFlowEditor/model-checker/checkers/InputListValueChecker.js +154 -0
  169. package/dist/LiteFlowEditor/model-checker/checkers/IteratorBindChecker.d.ts +7 -0
  170. package/dist/LiteFlowEditor/model-checker/checkers/IteratorBindChecker.js +27 -0
  171. package/dist/LiteFlowEditor/model-checker/checkers/QueryDimensionChecker.d.ts +7 -0
  172. package/dist/LiteFlowEditor/model-checker/checkers/QueryDimensionChecker.js +33 -0
  173. package/dist/LiteFlowEditor/model-checker/checkers/QueryLogChecker.d.ts +7 -0
  174. package/dist/LiteFlowEditor/model-checker/checkers/QueryLogChecker.js +27 -0
  175. package/dist/LiteFlowEditor/model-checker/checkers/ReportTemplateChecker.d.ts +7 -0
  176. package/dist/LiteFlowEditor/model-checker/checkers/ReportTemplateChecker.js +27 -0
  177. package/dist/LiteFlowEditor/model-checker/checkers/UnconfiguredComponentChecker.d.ts +7 -0
  178. package/dist/LiteFlowEditor/model-checker/checkers/UnconfiguredComponentChecker.js +27 -0
  179. package/dist/LiteFlowEditor/model-checker/checkers/index.d.ts +14 -0
  180. package/dist/LiteFlowEditor/model-checker/checkers/index.js +38 -0
  181. package/dist/LiteFlowEditor/model-checker/index.d.ts +22 -0
  182. package/dist/LiteFlowEditor/model-checker/index.js +43 -0
  183. package/dist/LiteFlowEditor/model-checker/types.d.ts +11 -0
  184. package/dist/LiteFlowEditor/model-checker/types.js +1 -0
  185. package/dist/LiteFlowEditor/panels/breadcrumb/index.d.ts +7 -0
  186. package/dist/LiteFlowEditor/panels/breadcrumb/index.js +67 -0
  187. package/dist/LiteFlowEditor/panels/breadcrumb/index.module.less +23 -0
  188. package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/index.d.ts +11 -0
  189. package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/index.js +98 -0
  190. package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/index.module.less +7 -0
  191. package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/menuConfig/blank.d.ts +8 -0
  192. package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/menuConfig/blank.js +18 -0
  193. package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/menuConfig/index.d.ts +3 -0
  194. package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/menuConfig/index.js +3 -0
  195. package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/menuConfig/node.d.ts +9 -0
  196. package/dist/LiteFlowEditor/panels/flowGraph/contextMenu/menuConfig/node.js +10 -0
  197. package/dist/LiteFlowEditor/panels/flowGraph/contextPad/index.d.ts +14 -0
  198. package/dist/LiteFlowEditor/panels/flowGraph/contextPad/index.js +108 -0
  199. package/dist/LiteFlowEditor/panels/flowGraph/contextPad/index.module.less +81 -0
  200. package/dist/LiteFlowEditor/panels/flowGraph/createFlowGraph.d.ts +3 -0
  201. package/dist/LiteFlowEditor/panels/flowGraph/createFlowGraph.js +199 -0
  202. package/dist/LiteFlowEditor/panels/flowGraph/miniMapSimpleNode/index.d.ts +7 -0
  203. package/dist/LiteFlowEditor/panels/flowGraph/miniMapSimpleNode/index.js +42 -0
  204. package/dist/LiteFlowEditor/panels/flowGraph/nodeEditorModal/index.d.ts +8 -0
  205. package/dist/LiteFlowEditor/panels/flowGraph/nodeEditorModal/index.js +110 -0
  206. package/dist/LiteFlowEditor/panels/flowGraph/nodeEditorModal/index.module.less +11 -0
  207. package/dist/LiteFlowEditor/panels/layout/index.d.ts +16 -0
  208. package/dist/LiteFlowEditor/panels/layout/index.js +117 -0
  209. package/dist/LiteFlowEditor/panels/layout/index.module.less +30 -0
  210. package/dist/LiteFlowEditor/panels/settingBar/basic/index.d.ts +7 -0
  211. package/dist/LiteFlowEditor/panels/settingBar/basic/index.js +50 -0
  212. package/dist/LiteFlowEditor/panels/settingBar/basic/index.module.less +17 -0
  213. package/dist/LiteFlowEditor/panels/settingBar/index.d.ts +7 -0
  214. package/dist/LiteFlowEditor/panels/settingBar/index.js +219 -0
  215. package/dist/LiteFlowEditor/panels/settingBar/index.module.less +45 -0
  216. package/dist/LiteFlowEditor/panels/settingBar/outline/index.d.ts +7 -0
  217. package/dist/LiteFlowEditor/panels/settingBar/outline/index.js +124 -0
  218. package/dist/LiteFlowEditor/panels/settingBar/outline/index.module.less +39 -0
  219. package/dist/LiteFlowEditor/panels/settingBar/parameters/index.d.ts +6 -0
  220. package/dist/LiteFlowEditor/panels/settingBar/parameters/index.js +415 -0
  221. package/dist/LiteFlowEditor/panels/settingBar/parameters/index.module.less +4 -0
  222. package/dist/LiteFlowEditor/panels/settingBar/properties/CustomDropdown.d.ts +13 -0
  223. package/dist/LiteFlowEditor/panels/settingBar/properties/CustomDropdown.js +62 -0
  224. package/dist/LiteFlowEditor/panels/settingBar/properties/DraggableWrapper.d.ts +48 -0
  225. package/dist/LiteFlowEditor/panels/settingBar/properties/DraggableWrapper.js +94 -0
  226. package/dist/LiteFlowEditor/panels/settingBar/properties/RichParamEditor-new.d.ts +33 -0
  227. package/dist/LiteFlowEditor/panels/settingBar/properties/RichParamEditor-new.js +433 -0
  228. package/dist/LiteFlowEditor/panels/settingBar/properties/RichParamEditor.d.ts +33 -0
  229. package/dist/LiteFlowEditor/panels/settingBar/properties/RichParamEditor.js +195 -0
  230. package/dist/LiteFlowEditor/panels/settingBar/properties/component.d.ts +10 -0
  231. package/dist/LiteFlowEditor/panels/settingBar/properties/component.js +2780 -0
  232. package/dist/LiteFlowEditor/panels/settingBar/properties/condition.d.ts +7 -0
  233. package/dist/LiteFlowEditor/panels/settingBar/properties/condition.js +54 -0
  234. package/dist/LiteFlowEditor/panels/settingBar/properties/index.d.ts +2 -0
  235. package/dist/LiteFlowEditor/panels/settingBar/properties/index.js +2 -0
  236. package/dist/LiteFlowEditor/panels/settingBar/properties/index.module.less +149 -0
  237. package/dist/LiteFlowEditor/panels/sideBar/index.d.ts +7 -0
  238. package/dist/LiteFlowEditor/panels/sideBar/index.js +153 -0
  239. package/dist/LiteFlowEditor/panels/sideBar/index.module.less +48 -0
  240. package/dist/LiteFlowEditor/panels/toolBar/index.d.ts +8 -0
  241. package/dist/LiteFlowEditor/panels/toolBar/index.js +42 -0
  242. package/dist/LiteFlowEditor/panels/toolBar/index.module.less +19 -0
  243. package/dist/LiteFlowEditor/panels/toolBar/widgets/check.d.ts +7 -0
  244. package/dist/LiteFlowEditor/panels/toolBar/widgets/check.js +40 -0
  245. package/dist/LiteFlowEditor/panels/toolBar/widgets/common/badge.d.ts +12 -0
  246. package/dist/LiteFlowEditor/panels/toolBar/widgets/common/badge.js +46 -0
  247. package/dist/LiteFlowEditor/panels/toolBar/widgets/common/makeBtnWidget.d.ts +15 -0
  248. package/dist/LiteFlowEditor/panels/toolBar/widgets/common/makeBtnWidget.js +133 -0
  249. package/dist/LiteFlowEditor/panels/toolBar/widgets/common/makeDropdownWidget.d.ts +14 -0
  250. package/dist/LiteFlowEditor/panels/toolBar/widgets/common/makeDropdownWidget.js +38 -0
  251. package/dist/LiteFlowEditor/panels/toolBar/widgets/fitWindow.d.ts +7 -0
  252. package/dist/LiteFlowEditor/panels/toolBar/widgets/fitWindow.js +17 -0
  253. package/dist/LiteFlowEditor/panels/toolBar/widgets/fullscreen.d.ts +4 -0
  254. package/dist/LiteFlowEditor/panels/toolBar/widgets/fullscreen.js +104 -0
  255. package/dist/LiteFlowEditor/panels/toolBar/widgets/global.less +6 -0
  256. package/dist/LiteFlowEditor/panels/toolBar/widgets/index.d.ts +7 -0
  257. package/dist/LiteFlowEditor/panels/toolBar/widgets/index.js +12 -0
  258. package/dist/LiteFlowEditor/panels/toolBar/widgets/index.module.less +169 -0
  259. package/dist/LiteFlowEditor/panels/toolBar/widgets/mock.d.ts +7 -0
  260. package/dist/LiteFlowEditor/panels/toolBar/widgets/mock.js +83 -0
  261. package/dist/LiteFlowEditor/panels/toolBar/widgets/redo.d.ts +7 -0
  262. package/dist/LiteFlowEditor/panels/toolBar/widgets/redo.js +16 -0
  263. package/dist/LiteFlowEditor/panels/toolBar/widgets/save.d.ts +7 -0
  264. package/dist/LiteFlowEditor/panels/toolBar/widgets/save.js +12 -0
  265. package/dist/LiteFlowEditor/panels/toolBar/widgets/selection.d.ts +7 -0
  266. package/dist/LiteFlowEditor/panels/toolBar/widgets/selection.js +23 -0
  267. package/dist/LiteFlowEditor/panels/toolBar/widgets/undo.d.ts +7 -0
  268. package/dist/LiteFlowEditor/panels/toolBar/widgets/undo.js +16 -0
  269. package/dist/LiteFlowEditor/panels/toolBar/widgets/view.d.ts +7 -0
  270. package/dist/LiteFlowEditor/panels/toolBar/widgets/view.js +37 -0
  271. package/dist/LiteFlowEditor/panels/toolBar/widgets/zoom.d.ts +7 -0
  272. package/dist/LiteFlowEditor/panels/toolBar/widgets/zoom.js +67 -0
  273. package/dist/LiteFlowEditor/utils/eventBus.d.ts +34 -0
  274. package/dist/LiteFlowEditor/utils/eventBus.js +86 -0
  275. package/dist/LiteFlowEditor/utils/flowChartUtils.d.ts +9 -0
  276. package/dist/LiteFlowEditor/utils/flowChartUtils.js +34 -0
  277. package/dist/LiteFlowEditor/utils/index.d.ts +33 -0
  278. package/dist/LiteFlowEditor/utils/index.js +245 -0
  279. package/dist/index.d.ts +4 -0
  280. package/dist/index.js +4 -0
  281. package/package.json +97 -0
@@ -0,0 +1,7 @@
1
+ import { IModelCheckContext, IModelChecker, ICheckListInfo } from '../types';
2
+ /**
3
+ * 根因分析节点检查器
4
+ */
5
+ export declare class AnalysisNodeChecker implements IModelChecker {
6
+ check({ model }: IModelCheckContext): ICheckListInfo[];
7
+ }
@@ -0,0 +1,44 @@
1
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import i18n from "../../i18n";
4
+ /**
5
+ * 根因分析节点检查器
6
+ */
7
+ export var AnalysisNodeChecker = /*#__PURE__*/function () {
8
+ function AnalysisNodeChecker() {
9
+ _classCallCheck(this, AnalysisNodeChecker);
10
+ }
11
+ _createClass(AnalysisNodeChecker, [{
12
+ key: "check",
13
+ value: function check(_ref) {
14
+ var model = _ref.model;
15
+ var props = model === null || model === void 0 ? void 0 : model.properties;
16
+ if ((props === null || props === void 0 ? void 0 : props.modelType) === 8 && !props.rootCauseNode) {
17
+ return [{
18
+ message: "\u201C".concat(props === null || props === void 0 ? void 0 : props.scriptName, "\u201D").concat(i18n.t('root_cause_node_not_selected')),
19
+ model: model
20
+ }];
21
+ }
22
+ if ((props === null || props === void 0 ? void 0 : props.modelType) === 8 && (!props.rootCauseParam || props.rootCauseParam.length === 0)) {
23
+ return [{
24
+ message: "\u201C".concat(props === null || props === void 0 ? void 0 : props.scriptName, "\u201D").concat(i18n.t('analysis_agg_not_selected')),
25
+ model: model
26
+ }];
27
+ }
28
+ if ((props === null || props === void 0 ? void 0 : props.modelType) === 8 && Object.keys(props === null || props === void 0 ? void 0 : props.simpleQueryModel).length === 0) {
29
+ return [{
30
+ message: "\u201C".concat(props.scriptName, "\u201D").concat(i18n.t('analysis_field_not_selected')),
31
+ model: model
32
+ }];
33
+ }
34
+ if ((props === null || props === void 0 ? void 0 : props.modelType) === 8 && Object.keys(props === null || props === void 0 ? void 0 : props.simpleQueryModel).length > 0 && props.simpleQueryModel.selections.length === 0) {
35
+ return [{
36
+ message: "\u201C".concat(props.scriptName, "\u201D").concat(i18n.t('analysis_field_not_selected')),
37
+ model: model
38
+ }];
39
+ }
40
+ return [];
41
+ }
42
+ }]);
43
+ return AnalysisNodeChecker;
44
+ }();
@@ -0,0 +1,7 @@
1
+ import { IModelCheckContext, IModelChecker, ICheckListInfo } from '../types';
2
+ /**
3
+ * 预测模板检查器
4
+ */
5
+ export declare class CurScheduleSetChecker implements IModelChecker {
6
+ check({ model }: IModelCheckContext): ICheckListInfo[];
7
+ }
@@ -0,0 +1,26 @@
1
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import i18n from "../../i18n";
4
+ /**
5
+ * 预测模板检查器
6
+ */
7
+ export var CurScheduleSetChecker = /*#__PURE__*/function () {
8
+ function CurScheduleSetChecker() {
9
+ _classCallCheck(this, CurScheduleSetChecker);
10
+ }
11
+ _createClass(CurScheduleSetChecker, [{
12
+ key: "check",
13
+ value: function check(_ref) {
14
+ var model = _ref.model;
15
+ var props = model === null || model === void 0 ? void 0 : model.properties;
16
+ if (props !== null && props !== void 0 && props.logId && (props === null || props === void 0 ? void 0 : props.modelType) == 7 && !(props !== null && props !== void 0 && props.forecastId)) {
17
+ return [{
18
+ message: "\u201C".concat(props === null || props === void 0 ? void 0 : props.scriptName, "\u201D").concat(i18n.t('predict_template_not_selected')),
19
+ model: model
20
+ }];
21
+ }
22
+ return [];
23
+ }
24
+ }]);
25
+ return CurScheduleSetChecker;
26
+ }();
@@ -0,0 +1,7 @@
1
+ import { IModelCheckContext, IModelChecker, ICheckListInfo } from '../types';
2
+ /**
3
+ * 输入变量检查器
4
+ */
5
+ export declare class InputListChecker implements IModelChecker {
6
+ check({ model }: IModelCheckContext): ICheckListInfo[];
7
+ }
@@ -0,0 +1,39 @@
1
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import i18n from "../../i18n";
4
+ /**
5
+ * 输入变量检查器
6
+ */
7
+ export var InputListChecker = /*#__PURE__*/function () {
8
+ function InputListChecker() {
9
+ _classCallCheck(this, InputListChecker);
10
+ }
11
+ _createClass(InputListChecker, [{
12
+ key: "check",
13
+ value: function check(_ref) {
14
+ var model = _ref.model;
15
+ var props = model === null || model === void 0 ? void 0 : model.properties;
16
+ if (props !== null && props !== void 0 && props.inputList && (props === null || props === void 0 ? void 0 : props.inputList.length) > 0) {
17
+ var checkList = [];
18
+ props === null || props === void 0 || props.inputList.forEach(function (input) {
19
+ // console.log(input)
20
+ if (input.label && !input.value) {
21
+ checkList.push({
22
+ message: "".concat(i18n.t('input_variable'), "\u201C").concat(input.label, "\u201D").concat(i18n.t('input_variable_not_configured')),
23
+ model: model
24
+ });
25
+ }
26
+ if (!input.label && input.value) {
27
+ checkList.push({
28
+ message: "".concat(i18n.t('input_variable_value'), "\u201C").concat(input.value.split('~~~')[1], "\u201D").concat(i18n.t('input_variable_value_not_configured')),
29
+ model: model
30
+ });
31
+ }
32
+ });
33
+ return checkList;
34
+ }
35
+ return [];
36
+ }
37
+ }]);
38
+ return InputListChecker;
39
+ }();
@@ -0,0 +1,7 @@
1
+ import { IModelCheckContext, IModelChecker, ICheckListInfo } from '../types';
2
+ /**
3
+ * 输入变量值检查器
4
+ */
5
+ export declare class InputListValueChecker implements IModelChecker {
6
+ check({ model }: IModelCheckContext): ICheckListInfo[];
7
+ }
@@ -0,0 +1,154 @@
1
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import { useTagGetModel } from "../../utils/index";
4
+ import { useModel } from "../../hooks/useModel";
5
+ import i18n from "../../i18n";
6
+ /**
7
+ * 输入变量值检查器
8
+ */
9
+ export var InputListValueChecker = /*#__PURE__*/function () {
10
+ function InputListValueChecker() {
11
+ _classCallCheck(this, InputListValueChecker);
12
+ }
13
+ _createClass(InputListValueChecker, [{
14
+ key: "check",
15
+ value: function check(_ref) {
16
+ var model = _ref.model;
17
+ var props = model === null || model === void 0 ? void 0 : model.properties;
18
+ if (props !== null && props !== void 0 && props.inputList && (props === null || props === void 0 ? void 0 : props.inputList.length) > 0) {
19
+ var checkList = [];
20
+ var language = i18n.language;
21
+ props === null || props === void 0 || props.inputList.forEach(function (input) {
22
+ switch (props.modelType) {
23
+ case 1:
24
+ case 4:
25
+ case 5:
26
+ if (input.richValue && input.richValue.length) {
27
+ input.richValue[0].children.forEach(function (item) {
28
+ if (item.type === 'variable') {
29
+ var tagModel = useTagGetModel(item.value.split('~~~')[0], useModel);
30
+ if (!tagModel) {
31
+ if (item.value.split('~~~')[0] !== 'work') {
32
+ var message = '';
33
+ if (language == 'zh_CN') {
34
+ message = "\u201C".concat(props === null || props === void 0 ? void 0 : props.scriptName, "\u201D\u7684\u8F93\u5165\u53D8\u91CF\u201C").concat(input.label, "\u201D\u7684\u53D8\u91CF\u201C").concat(item.value.split('~~~')[1], "\u201D\u4E0D\u5B58\u5728");
35
+ } else if (language == 'zh_TW') {
36
+ message = "\u201C".concat(props === null || props === void 0 ? void 0 : props.scriptName, "\u201D\u7684\u8F38\u5165\u8B8A\u91CF\u201C").concat(input.label, "\u201D\u7684\u8B8A\u91CF\u201C").concat(item.value.split('~~~')[1], "\u201D\u4E0D\u5B58\u5728");
37
+ } else {
38
+ message = "The input variable \"".concat(input.label, "\" of \"").concat(props === null || props === void 0 ? void 0 : props.scriptName, "\" does not have a variable named \"").concat(item.value.split('~~~')[1], "\"");
39
+ }
40
+ checkList.push({
41
+ message: message,
42
+ model: model
43
+ });
44
+ }
45
+ } else {
46
+ var _tagProps$outputParam;
47
+ var tagProps = tagModel.properties;
48
+ if (!(tagProps !== null && tagProps !== void 0 && (_tagProps$outputParam = tagProps.outputParams) !== null && _tagProps$outputParam !== void 0 && _tagProps$outputParam.find(function (i) {
49
+ return i.asColumn === item.value.split('~~~')[1];
50
+ })) && item.value.split('~~~')[1] !== '*') {
51
+ var _message = '';
52
+ if (language == 'zh_CN') {
53
+ _message = "\u201C".concat(props === null || props === void 0 ? void 0 : props.scriptName, "\u201D\u7684\u8F93\u5165\u53D8\u91CF\u201C").concat(input.label, "\u201D\u7684\u53D8\u91CF\u201C").concat(item.value.split('~~~')[1], "\u201D\u4E0D\u5B58\u5728");
54
+ } else if (language == 'zh_TW') {
55
+ _message = "\u201C".concat(props === null || props === void 0 ? void 0 : props.scriptName, "\u201D\u7684\u8F38\u5165\u8B8A\u91CF\u201C").concat(input.label, "\u201D\u7684\u8B8A\u91CF\u201C").concat(item.value.split('~~~')[1], "\u201D\u4E0D\u5B58\u5728");
56
+ } else {
57
+ _message = "The input variable \"".concat(input.label, "\" of \"").concat(props === null || props === void 0 ? void 0 : props.scriptName, "\" does not have a variable named \"").concat(item.value.split('~~~')[1], "\"");
58
+ }
59
+ checkList.push({
60
+ message: _message,
61
+ model: model
62
+ });
63
+ }
64
+ }
65
+ }
66
+ });
67
+ } else {
68
+ if (input.label && input.value && input.value.split('~~~')[0] !== 'work') {
69
+ var tagModel = useTagGetModel(input.value.split('~~~')[0], useModel);
70
+ if (!tagModel) {
71
+ var message = '';
72
+ if (language == 'zh_CN') {
73
+ message = "\u201C".concat(props === null || props === void 0 ? void 0 : props.scriptName, "\u201D\u7684\u8F93\u5165\u53D8\u91CF\u201C").concat(input.label, "\u201D\u7684\u53D8\u91CF\u201C").concat(input.value.split('~~~')[1], "\u201D\u4E0D\u5B58\u5728");
74
+ } else if (language == 'zh_TW') {
75
+ message = "\u201C".concat(props === null || props === void 0 ? void 0 : props.scriptName, "\u201D\u7684\u8F38\u5165\u8B8A\u91CF\u201C").concat(input.label, "\u201D\u7684\u8B8A\u91CF\u201C").concat(input.value.split('~~~')[1], "\u201D\u4E0D\u5B58\u5728");
76
+ } else {
77
+ message = "The input variable \"".concat(input.label, "\" of \"").concat(props === null || props === void 0 ? void 0 : props.scriptName, "\" does not have a variable named \"").concat(input.value.split('~~~')[1], "\"");
78
+ }
79
+ checkList.push({
80
+ message: message,
81
+ model: model
82
+ });
83
+ } else {
84
+ var _tagProps$outputParam2;
85
+ var tagProps = tagModel.properties;
86
+ if (!(tagProps !== null && tagProps !== void 0 && (_tagProps$outputParam2 = tagProps.outputParams) !== null && _tagProps$outputParam2 !== void 0 && _tagProps$outputParam2.find(function (i) {
87
+ return i.asColumn === input.value.split('~~~')[1];
88
+ })) && input.value.split('~~~')[1] !== '*') {
89
+ var _message2 = '';
90
+ if (language == 'zh_CN') {
91
+ _message2 = "\u201C".concat(props === null || props === void 0 ? void 0 : props.scriptName, "\u201D\u7684\u8F93\u5165\u53D8\u91CF\u201C").concat(input.label, "\u201D\u7684\u53D8\u91CF\u201C").concat(input.value.split('~~~')[1], "\u201D\u4E0D\u5B58\u5728");
92
+ } else if (language == 'zh_TW') {
93
+ _message2 = "\u201C".concat(props === null || props === void 0 ? void 0 : props.scriptName, "\u201D\u7684\u8F38\u5165\u8B8A\u91CF\u201C").concat(input.label, "\u201D\u7684\u8B8A\u91CF\u201C").concat(input.value.split('~~~')[1], "\u201D\u4E0D\u5B58\u5728");
94
+ } else {
95
+ _message2 = "The input variable \"".concat(input.label, "\" of \"").concat(props === null || props === void 0 ? void 0 : props.scriptName, "\" does not have a variable named \"").concat(input.value.split('~~~')[1], "\"");
96
+ }
97
+ checkList.push({
98
+ message: _message2,
99
+ model: model
100
+ });
101
+ }
102
+ }
103
+ }
104
+ }
105
+ break;
106
+ case 2:
107
+ if (input.label && input.value && input.value.split('~~~')[0] !== 'work') {
108
+ var _tagModel = useTagGetModel(input.value.split('~~~')[0], useModel);
109
+ if (!_tagModel) {
110
+ var _message3 = '';
111
+ if (language == 'zh_CN') {
112
+ _message3 = "\u201C".concat(props === null || props === void 0 ? void 0 : props.scriptName, "\u201D\u7684\u8F93\u5165\u53D8\u91CF\u201C").concat(input.label, "\u201D\u7684\u53D8\u91CF\u201C").concat(input.value.split('~~~')[1], "\u201D\u4E0D\u5B58\u5728");
113
+ } else if (language == 'zh_TW') {
114
+ _message3 = "\u201C".concat(props === null || props === void 0 ? void 0 : props.scriptName, "\u201D\u7684\u8F38\u5165\u8B8A\u91CF\u201C").concat(input.label, "\u201D\u7684\u8B8A\u91CF\u201C").concat(input.value.split('~~~')[1], "\u201D\u4E0D\u5B58\u5728");
115
+ } else {
116
+ _message3 = "The input variable \"".concat(input.label, "\" of \"").concat(props === null || props === void 0 ? void 0 : props.scriptName, "\" does not have a variable named \"").concat(input.value.split('~~~')[1], "\"");
117
+ }
118
+ checkList.push({
119
+ message: _message3,
120
+ model: model
121
+ });
122
+ } else {
123
+ var _tagProps$outputParam3;
124
+ var _tagProps = _tagModel.properties;
125
+ if (!(_tagProps !== null && _tagProps !== void 0 && (_tagProps$outputParam3 = _tagProps.outputParams) !== null && _tagProps$outputParam3 !== void 0 && _tagProps$outputParam3.find(function (item) {
126
+ return item.asColumn === input.value.split('~~~')[1];
127
+ }))) {
128
+ var _message4 = '';
129
+ if (language == 'zh_CN') {
130
+ _message4 = "\u201C".concat(props === null || props === void 0 ? void 0 : props.scriptName, "\u201D\u7684\u8F93\u5165\u53D8\u91CF\u201C").concat(input.label, "\u201D\u7684\u53D8\u91CF\u201C").concat(input.value.split('~~~')[1], "\u201D\u4E0D\u5B58\u5728");
131
+ } else if (language == 'zh_TW') {
132
+ _message4 = "\u201C".concat(props === null || props === void 0 ? void 0 : props.scriptName, "\u201D\u7684\u8F38\u5165\u8B8A\u91CF\u201C").concat(input.label, "\u201D\u7684\u8B8A\u91CF\u201C").concat(input.value.split('~~~')[1], "\u201D\u4E0D\u5B58\u5728");
133
+ } else {
134
+ _message4 = "The input variable \"".concat(input.label, "\" of \"").concat(props === null || props === void 0 ? void 0 : props.scriptName, "\" does not have a variable named \"").concat(input.value.split('~~~')[1], "\"");
135
+ }
136
+ checkList.push({
137
+ message: _message4,
138
+ model: model
139
+ });
140
+ }
141
+ }
142
+ }
143
+ break;
144
+ default:
145
+ break;
146
+ }
147
+ });
148
+ return checkList;
149
+ }
150
+ return [];
151
+ }
152
+ }]);
153
+ return InputListValueChecker;
154
+ }();
@@ -0,0 +1,7 @@
1
+ import { IModelCheckContext, IModelChecker, ICheckListInfo } from '../types';
2
+ /**
3
+ * 循环组件绑定检查器
4
+ */
5
+ export declare class IteratorBindChecker implements IModelChecker {
6
+ check({ model }: IModelCheckContext): ICheckListInfo[];
7
+ }
@@ -0,0 +1,27 @@
1
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import i18n from "../../i18n";
4
+
5
+ /**
6
+ * 循环组件绑定检查器
7
+ */
8
+ export var IteratorBindChecker = /*#__PURE__*/function () {
9
+ function IteratorBindChecker() {
10
+ _classCallCheck(this, IteratorBindChecker);
11
+ }
12
+ _createClass(IteratorBindChecker, [{
13
+ key: "check",
14
+ value: function check(_ref) {
15
+ var _model$properties;
16
+ var model = _ref.model;
17
+ if ((model === null || model === void 0 ? void 0 : model.type) === 'NodeIteratorComponent' && !((_model$properties = model.properties) !== null && _model$properties !== void 0 && _model$properties.bind)) {
18
+ return [{
19
+ message: i18n.t('loop_node_not_selected'),
20
+ model: model
21
+ }];
22
+ }
23
+ return [];
24
+ }
25
+ }]);
26
+ return IteratorBindChecker;
27
+ }();
@@ -0,0 +1,7 @@
1
+ import { IModelCheckContext, IModelChecker, ICheckListInfo } from '../types';
2
+ /**
3
+ * 查询维度检查器
4
+ */
5
+ export declare class QueryDimensionChecker implements IModelChecker {
6
+ check({ model }: IModelCheckContext): ICheckListInfo[];
7
+ }
@@ -0,0 +1,33 @@
1
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import i18n from "../../i18n";
4
+
5
+ /**
6
+ * 查询维度检查器
7
+ */
8
+ export var QueryDimensionChecker = /*#__PURE__*/function () {
9
+ function QueryDimensionChecker() {
10
+ _classCallCheck(this, QueryDimensionChecker);
11
+ }
12
+ _createClass(QueryDimensionChecker, [{
13
+ key: "check",
14
+ value: function check(_ref) {
15
+ var model = _ref.model;
16
+ var props = model === null || model === void 0 ? void 0 : model.properties;
17
+ if ((props === null || props === void 0 ? void 0 : props.modelType) === 2 && Object.keys(props === null || props === void 0 ? void 0 : props.simpleQueryModel).length === 0) {
18
+ return [{
19
+ message: "\u201C".concat(props.scriptName, "\u201D").concat(i18n.t('query_dimension_not_selected')),
20
+ model: model
21
+ }];
22
+ }
23
+ if ((props === null || props === void 0 ? void 0 : props.modelType) === 2 && Object.keys(props === null || props === void 0 ? void 0 : props.simpleQueryModel).length > 0 && props.simpleQueryModel.selections.length === 0) {
24
+ return [{
25
+ message: "\u201C".concat(props.scriptName, "\u201D").concat(i18n.t('query_dimension_not_selected')),
26
+ model: model
27
+ }];
28
+ }
29
+ return [];
30
+ }
31
+ }]);
32
+ return QueryDimensionChecker;
33
+ }();
@@ -0,0 +1,7 @@
1
+ import { IModelCheckContext, IModelChecker, ICheckListInfo } from '../types';
2
+ /**
3
+ * 查询日志检查器
4
+ */
5
+ export declare class QueryLogChecker implements IModelChecker {
6
+ check({ model }: IModelCheckContext): ICheckListInfo[];
7
+ }
@@ -0,0 +1,27 @@
1
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import i18n from "../../i18n";
4
+
5
+ /**
6
+ * 查询日志检查器
7
+ */
8
+ export var QueryLogChecker = /*#__PURE__*/function () {
9
+ function QueryLogChecker() {
10
+ _classCallCheck(this, QueryLogChecker);
11
+ }
12
+ _createClass(QueryLogChecker, [{
13
+ key: "check",
14
+ value: function check(_ref) {
15
+ var model = _ref.model;
16
+ var props = model === null || model === void 0 ? void 0 : model.properties;
17
+ if (((props === null || props === void 0 ? void 0 : props.modelType) === 2 || (props === null || props === void 0 ? void 0 : props.modelType) === 6 || (props === null || props === void 0 ? void 0 : props.modelType) === 7) && !props.logId) {
18
+ return [{
19
+ message: "\u201C".concat(props.scriptName, "\u201D").concat(i18n.t('query_log_not_selected')),
20
+ model: model
21
+ }];
22
+ }
23
+ return [];
24
+ }
25
+ }]);
26
+ return QueryLogChecker;
27
+ }();
@@ -0,0 +1,7 @@
1
+ import { IModelCheckContext, IModelChecker, ICheckListInfo } from '../types';
2
+ /**
3
+ * 报告模板检查器
4
+ */
5
+ export declare class ReportTemplateChecker implements IModelChecker {
6
+ check({ model }: IModelCheckContext): ICheckListInfo[];
7
+ }
@@ -0,0 +1,27 @@
1
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import i18n from "../../i18n";
4
+
5
+ /**
6
+ * 报告模板检查器
7
+ */
8
+ export var ReportTemplateChecker = /*#__PURE__*/function () {
9
+ function ReportTemplateChecker() {
10
+ _classCallCheck(this, ReportTemplateChecker);
11
+ }
12
+ _createClass(ReportTemplateChecker, [{
13
+ key: "check",
14
+ value: function check(_ref) {
15
+ var model = _ref.model;
16
+ var props = model === null || model === void 0 ? void 0 : model.properties;
17
+ if ((props === null || props === void 0 ? void 0 : props.modelType) == 5 && !(props !== null && props !== void 0 && props.reportMinioName)) {
18
+ return [{
19
+ message: "\u201C".concat(props === null || props === void 0 ? void 0 : props.scriptName, "\u201D").concat(i18n.t('report_template_not_selected')),
20
+ model: model
21
+ }];
22
+ }
23
+ return [];
24
+ }
25
+ }]);
26
+ return ReportTemplateChecker;
27
+ }();
@@ -0,0 +1,7 @@
1
+ import { IModelCheckContext, IModelChecker, ICheckListInfo } from '../types';
2
+ /**
3
+ * 未配置组件检查器
4
+ */
5
+ export declare class UnconfiguredComponentChecker implements IModelChecker {
6
+ check(ctx: IModelCheckContext): ICheckListInfo[];
7
+ }
@@ -0,0 +1,27 @@
1
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import i18n from "../../i18n";
4
+
5
+ /**
6
+ * 未配置组件检查器
7
+ */
8
+ export var UnconfiguredComponentChecker = /*#__PURE__*/function () {
9
+ function UnconfiguredComponentChecker() {
10
+ _classCallCheck(this, UnconfiguredComponentChecker);
11
+ }
12
+ _createClass(UnconfiguredComponentChecker, [{
13
+ key: "check",
14
+ value: function check(ctx) {
15
+ var _ctx$model;
16
+ var result = [];
17
+ if (((_ctx$model = ctx.model) === null || _ctx$model === void 0 ? void 0 : _ctx$model.id) === i18n.t('empty_node')) {
18
+ result.push({
19
+ message: i18n.t('node_empty_tips'),
20
+ model: ctx.model
21
+ });
22
+ }
23
+ return result;
24
+ }
25
+ }]);
26
+ return UnconfiguredComponentChecker;
27
+ }();
@@ -0,0 +1,14 @@
1
+ import { UnconfiguredComponentChecker } from "./UnconfiguredComponentChecker";
2
+ import { IteratorBindChecker } from "./IteratorBindChecker";
3
+ import { QueryLogChecker } from "./QueryLogChecker";
4
+ import { ReportTemplateChecker } from "./ReportTemplateChecker";
5
+ import { InputListChecker } from "./InputListChecker";
6
+ import { QueryDimensionChecker } from "./QueryDimensionChecker";
7
+ import { InputListValueChecker } from "./InputListValueChecker";
8
+ import { CurScheduleSetChecker } from "./CurScheduleSetChecker";
9
+ import { AnalysisNodeChecker } from "./AnalysisNodeChecker";
10
+ export { UnconfiguredComponentChecker, IteratorBindChecker, QueryLogChecker, ReportTemplateChecker, InputListChecker, QueryDimensionChecker, InputListValueChecker, CurScheduleSetChecker, AnalysisNodeChecker };
11
+ export declare const checkerList: {
12
+ checker: typeof UnconfiguredComponentChecker;
13
+ isActive: boolean;
14
+ }[];
@@ -0,0 +1,38 @@
1
+ import { UnconfiguredComponentChecker } from "./UnconfiguredComponentChecker";
2
+ import { IteratorBindChecker } from "./IteratorBindChecker";
3
+ import { QueryLogChecker } from "./QueryLogChecker";
4
+ import { ReportTemplateChecker } from "./ReportTemplateChecker";
5
+ import { InputListChecker } from "./InputListChecker";
6
+ import { QueryDimensionChecker } from "./QueryDimensionChecker";
7
+ import { InputListValueChecker } from "./InputListValueChecker";
8
+ import { CurScheduleSetChecker } from "./CurScheduleSetChecker";
9
+ import { AnalysisNodeChecker } from "./AnalysisNodeChecker";
10
+ export { UnconfiguredComponentChecker, IteratorBindChecker, QueryLogChecker, ReportTemplateChecker, InputListChecker, QueryDimensionChecker, InputListValueChecker, CurScheduleSetChecker, AnalysisNodeChecker };
11
+ export var checkerList = [{
12
+ checker: UnconfiguredComponentChecker,
13
+ isActive: true
14
+ }, {
15
+ checker: IteratorBindChecker,
16
+ isActive: true
17
+ }, {
18
+ checker: QueryLogChecker,
19
+ isActive: true
20
+ }, {
21
+ checker: ReportTemplateChecker,
22
+ isActive: true
23
+ }, {
24
+ checker: InputListChecker,
25
+ isActive: true
26
+ }, {
27
+ checker: QueryDimensionChecker,
28
+ isActive: true
29
+ }, {
30
+ checker: InputListValueChecker,
31
+ isActive: true
32
+ }, {
33
+ checker: CurScheduleSetChecker,
34
+ isActive: true
35
+ }, {
36
+ checker: AnalysisNodeChecker,
37
+ isActive: true
38
+ }];
@@ -0,0 +1,22 @@
1
+ import { IModelCheckContext, IModelChecker, ICheckListInfo } from './types';
2
+ /**
3
+ * @name 节点检查引擎
4
+ * @class ModelCheckEngine
5
+ * @description 节点检查引擎,用于检查节点是否完善
6
+ */
7
+ export declare class ModelCheckEngine {
8
+ /**
9
+ * 检查器列表
10
+ */
11
+ private checkers;
12
+ /**
13
+ * 注册检查器
14
+ * @param checker 检查器
15
+ * @param isActive 是否激活
16
+ */
17
+ register(checker: IModelChecker, isActive?: Boolean): void;
18
+ /**
19
+ * 运行检查
20
+ */
21
+ runChecks(ctx: IModelCheckContext): ICheckListInfo[];
22
+ }
@@ -0,0 +1,43 @@
1
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
4
+ /**
5
+ * @name 节点检查引擎
6
+ * @class ModelCheckEngine
7
+ * @description 节点检查引擎,用于检查节点是否完善
8
+ */
9
+ export var ModelCheckEngine = /*#__PURE__*/function () {
10
+ function ModelCheckEngine() {
11
+ _classCallCheck(this, ModelCheckEngine);
12
+ /**
13
+ * 检查器列表
14
+ */
15
+ _defineProperty(this, "checkers", []);
16
+ }
17
+ _createClass(ModelCheckEngine, [{
18
+ key: "register",
19
+ value:
20
+ /**
21
+ * 注册检查器
22
+ * @param checker 检查器
23
+ * @param isActive 是否激活
24
+ */
25
+ function register(checker) {
26
+ var isActive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
27
+ if (isActive) {
28
+ this.checkers.push(checker);
29
+ }
30
+ }
31
+ /**
32
+ * 运行检查
33
+ */
34
+ }, {
35
+ key: "runChecks",
36
+ value: function runChecks(ctx) {
37
+ return this.checkers.flatMap(function (checker) {
38
+ return checker.check(ctx);
39
+ });
40
+ }
41
+ }]);
42
+ return ModelCheckEngine;
43
+ }();
@@ -0,0 +1,11 @@
1
+ export interface ICheckListInfo {
2
+ message: string;
3
+ model: object;
4
+ }
5
+ export interface IModelCheckContext {
6
+ model: any;
7
+ dslData: any;
8
+ }
9
+ export interface IModelChecker {
10
+ check(ctx: IModelCheckContext): ICheckListInfo[];
11
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { Graph } from '@antv/x6';
3
+ interface IProps {
4
+ flowGraph: Graph;
5
+ }
6
+ declare const BreadcrumbPath: React.FC<IProps>;
7
+ export default BreadcrumbPath;