@riil-frontend/component-topology 2.5.6 → 2.7.1

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 (463) hide show
  1. package/build/1.js +2 -2
  2. package/build/2.js +1 -1
  3. package/build/index.css +2 -3
  4. package/build/index.js +32 -32
  5. package/es/components/BatchAttrMetric/setting.js +2 -2
  6. package/es/components/FormTable/index.js +1 -1
  7. package/es/components/IndexSettingDrawer/IndexList.js +2 -2
  8. package/es/components/Link/hook.js +1 -1
  9. package/es/components/Link/index.js +1 -1
  10. package/es/components/MultiResourceDrawer/Dynamic.js +1 -1
  11. package/es/components/MultiResourceDrawer/index.js +1 -1
  12. package/es/components/ResourceList/ResourceSelect.js +3 -3
  13. package/es/core/components/TopoView/Topo404.js +1 -1
  14. package/es/core/components/TopoView/TopoContent.js +1 -1
  15. package/es/core/components/TopoView/TopoNoPermission.js +1 -1
  16. package/es/core/components/TopoView/topoView.js +1 -1
  17. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/index.js +1 -1
  18. package/es/core/editor/components/ResourceViewAttributeSetting/Setting.js +1 -1
  19. package/es/core/editor/components/iconManage/UploadIconDialog.js +1 -1
  20. package/es/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.js +2 -2
  21. package/es/core/editor/components/settings/common/NodeSizeInput/img/icon_/350/247/243/351/224/201.svg +15 -15
  22. package/es/core/editor/components/settings/common/NodeSizeInput/img/icon_/351/224/201.svg +14 -14
  23. package/es/core/editor/components/settings/common/text/TextStyle.js +6 -0
  24. package/es/core/editor/components/settings/common/text/img/bold.svg +11 -11
  25. package/es/core/editor/components/settings/common/text/img/italics.svg +9 -9
  26. package/es/core/editor/components/settings/common/text/img/underline.svg +11 -11
  27. package/es/core/editor/components/settings/text/TextPropertyView.js +19 -15
  28. package/es/core/models/TopoApp.js +3 -3
  29. package/es/core/models/attrAndMetric.js +1 -1
  30. package/es/core/models/cache/CiTyeCache.js +1 -1
  31. package/es/core/models/cache/DictCache.js +1 -1
  32. package/es/core/models/common/Alarm.js +2 -2
  33. package/es/core/models/plugins/resourceWebControllUrl.js +2 -2
  34. package/es/core/models/utils/linkUtils.js +1 -1
  35. package/es/core/utils/showMessage.js +1 -1
  36. package/es/core/viewer/components/plugins/ResourceDetail/topoDrawer.js +2 -2
  37. package/es/hooks/useAlarm.js +1 -1
  38. package/es/hooks/useContainerLinkTopo.js +1 -1
  39. package/es/hooks/usePolling.js +1 -1
  40. package/es/hooks/useTopoEdit.js +2 -2
  41. package/es/models/ciModel.js +1 -1
  42. package/es/models/iconManage.js +2 -2
  43. package/es/models/linkDynamicStyle.js +1 -1
  44. package/es/models/linkManager.js +2 -2
  45. package/es/models/resourceWebControllUrlSetting.js +2 -2
  46. package/es/models/topoAlarm.js +1 -2
  47. package/es/models/topoBizMod.js +4 -4
  48. package/es/models/topoCreateMod.js +2 -2
  49. package/es/models/topoEdit.js +2 -2
  50. package/es/models/topoGraphView.js +2 -2
  51. package/es/models/topoMod.js +3 -3
  52. package/es/models/topoView.js +2 -2
  53. package/es/style.js +1 -0
  54. package/es/topoCenter/components/Topology.js +1 -1
  55. package/es/topoCenter/getTopoData.js +1 -1
  56. package/es/topoCenter/store/functionAuth.js +3 -3
  57. package/es/topoCenter/store/topoCenter.js +2 -2
  58. package/es/topoCenter/store/topoTreeMod.js +2 -2
  59. package/es/utils/format.js +1 -1
  60. package/es/utils/topoData.js +1 -1
  61. package/es/utils/tree.js +0 -1
  62. package/lib/components/BatchAttrMetric/setting.js +2 -2
  63. package/lib/components/FormTable/index.js +1 -1
  64. package/lib/components/IndexSettingDrawer/IndexList.js +2 -2
  65. package/lib/components/Link/hook.js +1 -1
  66. package/lib/components/Link/index.js +1 -1
  67. package/lib/components/MultiResourceDrawer/Dynamic.js +1 -1
  68. package/lib/components/MultiResourceDrawer/index.js +1 -1
  69. package/lib/components/ResourceList/ResourceSelect.js +3 -3
  70. package/lib/core/components/TopoView/Topo404.js +1 -1
  71. package/lib/core/components/TopoView/TopoContent.js +1 -1
  72. package/lib/core/components/TopoView/TopoNoPermission.js +1 -1
  73. package/lib/core/components/TopoView/topoView.js +1 -1
  74. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/index.js +1 -1
  75. package/lib/core/editor/components/ResourceViewAttributeSetting/Setting.js +1 -1
  76. package/lib/core/editor/components/iconManage/UploadIconDialog.js +1 -1
  77. package/lib/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.js +2 -2
  78. package/lib/core/editor/components/settings/common/NodeSizeInput/img/icon_/350/247/243/351/224/201.svg +15 -15
  79. package/lib/core/editor/components/settings/common/NodeSizeInput/img/icon_/351/224/201.svg +14 -14
  80. package/lib/core/editor/components/settings/common/text/TextStyle.js +6 -0
  81. package/lib/core/editor/components/settings/common/text/img/bold.svg +11 -11
  82. package/lib/core/editor/components/settings/common/text/img/italics.svg +9 -9
  83. package/lib/core/editor/components/settings/common/text/img/underline.svg +11 -11
  84. package/lib/core/editor/components/settings/text/TextPropertyView.js +19 -15
  85. package/lib/core/models/TopoApp.js +4 -4
  86. package/lib/core/models/attrAndMetric.js +1 -1
  87. package/lib/core/models/cache/CiTyeCache.js +1 -1
  88. package/lib/core/models/cache/DictCache.js +1 -1
  89. package/lib/core/models/common/Alarm.js +2 -2
  90. package/lib/core/models/plugins/resourceWebControllUrl.js +2 -2
  91. package/lib/core/models/utils/linkUtils.js +1 -1
  92. package/lib/core/utils/showMessage.js +1 -1
  93. package/lib/core/viewer/components/plugins/ResourceDetail/topoDrawer.js +2 -2
  94. package/lib/hooks/useAlarm.js +1 -1
  95. package/lib/hooks/useContainerLinkTopo.js +1 -1
  96. package/lib/hooks/usePolling.js +1 -1
  97. package/lib/hooks/useTopoEdit.js +2 -2
  98. package/lib/models/ciModel.js +1 -1
  99. package/lib/models/iconManage.js +2 -2
  100. package/lib/models/linkDynamicStyle.js +1 -1
  101. package/lib/models/linkManager.js +2 -2
  102. package/lib/models/resourceWebControllUrlSetting.js +2 -2
  103. package/lib/models/topoAlarm.js +1 -3
  104. package/lib/models/topoBizMod.js +4 -4
  105. package/lib/models/topoCreateMod.js +2 -2
  106. package/lib/models/topoEdit.js +2 -2
  107. package/lib/models/topoGraphView.js +2 -2
  108. package/lib/models/topoMod.js +3 -3
  109. package/lib/models/topoView.js +2 -2
  110. package/lib/style.js +1 -0
  111. package/lib/topoCenter/components/Topology.js +1 -1
  112. package/lib/topoCenter/getTopoData.js +1 -1
  113. package/lib/topoCenter/store/functionAuth.js +3 -3
  114. package/lib/topoCenter/store/topoCenter.js +2 -2
  115. package/lib/topoCenter/store/topoTreeMod.js +2 -2
  116. package/lib/utils/format.js +1 -1
  117. package/lib/utils/topoData.js +1 -1
  118. package/lib/utils/tree.js +0 -1
  119. package/package.json +22 -21
  120. package/es/common/components/ResourceTable/ResourceTable.d.ts +0 -2
  121. package/es/common/plugins/useSelectionPlugin.d.ts +0 -23
  122. package/es/components/BatchAttrMetric/constant.d.ts +0 -30
  123. package/es/components/BatchAttrMetric/index.d.ts +0 -5
  124. package/es/components/BatchAttrMetric/setting.d.ts +0 -6
  125. package/es/components/BatchAttrMetric/utils.d.ts +0 -35
  126. package/es/components/Drawer/index.d.ts +0 -2
  127. package/es/components/FormTable/index.d.ts +0 -2
  128. package/es/components/IndexSettingDrawer/CiList.d.ts +0 -2
  129. package/es/components/IndexSettingDrawer/CiListItem.d.ts +0 -2
  130. package/es/components/IndexSettingDrawer/IndexList.d.ts +0 -2
  131. package/es/components/IndexSettingDrawer/index.d.ts +0 -2
  132. package/es/components/Link/form.d.ts +0 -2
  133. package/es/components/Link/hook.d.ts +0 -26
  134. package/es/components/Link/index.d.ts +0 -6
  135. package/es/components/Link/setting.d.ts +0 -8
  136. package/es/components/MultiResourceDrawer/Content.d.ts +0 -2
  137. package/es/components/MultiResourceDrawer/Dynamic.d.ts +0 -2
  138. package/es/components/MultiResourceDrawer/ResourceCard/index.d.ts +0 -2
  139. package/es/components/MultiResourceDrawer/ResourceSelect.d.ts +0 -2
  140. package/es/components/MultiResourceDrawer/Static.d.ts +0 -2
  141. package/es/components/MultiResourceDrawer/index.d.ts +0 -2
  142. package/es/components/ResourceList/ResourceSelect.d.ts +0 -2
  143. package/es/components/ResourceList/ResourceSelectConnect.d.ts +0 -2
  144. package/es/components/ResourceList/index.d.ts +0 -1
  145. package/es/components/ResourceSelect/DefaultResourceSelectDrawer.d.ts +0 -1
  146. package/es/components/ResourceSelect/ResourceSelectDrawer.d.ts +0 -1
  147. package/es/components/SingleResourceDrawer/index.d.ts +0 -2
  148. package/es/components/TemplateButton/Icon.d.ts +0 -2
  149. package/es/components/TemplateButton/assets/index.d.ts +0 -8
  150. package/es/components/TemplateButton/index.d.ts +0 -2
  151. package/es/components/TemplateGroup/index.d.ts +0 -2
  152. package/es/components/TemplateSelect/index.d.ts +0 -2
  153. package/es/constants/ResDetailContants.d.ts +0 -1
  154. package/es/constants/constant.d.ts +0 -36
  155. package/es/constants/defaultCiTypeIcon.d.ts +0 -8
  156. package/es/contextmenu/createMenuCommands.d.ts +0 -5
  157. package/es/core/common/contextmenu/mergeContextmenu.d.ts +0 -1
  158. package/es/core/common/icons/defaultIcons.d.ts +0 -84
  159. package/es/core/components/TopoApp.d.ts +0 -1
  160. package/es/core/components/TopoAppProvider.d.ts +0 -1
  161. package/es/core/components/TopoAppView.d.ts +0 -14
  162. package/es/core/components/TopoView/Topo.d.ts +0 -5
  163. package/es/core/components/TopoView/Topo404.d.ts +0 -1
  164. package/es/core/components/TopoView/TopoContent.d.ts +0 -5
  165. package/es/core/components/TopoView/TopoNoPermission.d.ts +0 -1
  166. package/es/core/components/TopoView/topoView.d.ts +0 -19
  167. package/es/core/components/buildProvider.d.ts +0 -1
  168. package/es/core/components/titlebar/TitleBar.d.ts +0 -9
  169. package/es/core/components/titlebar/index.d.ts +0 -1
  170. package/es/core/components/titlebar/widgets/TitleWidget.d.ts +0 -1
  171. package/es/core/editor/LinkDynamicStyleConfig.d.ts +0 -5
  172. package/es/core/editor/components/EditorPlugin.d.ts +0 -1
  173. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/RuleSetting.d.ts +0 -1
  174. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/index.d.ts +0 -1
  175. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/ColorPicker.d.ts +0 -6
  176. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/Rule.d.ts +0 -1
  177. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleCondition.d.ts +0 -1
  178. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleStyle.d.ts +0 -1
  179. package/es/core/editor/components/ResourceViewAttributeSetting/ResourceViewAttributeSettingPlugin.d.ts +0 -4
  180. package/es/core/editor/components/ResourceViewAttributeSetting/Setting.d.ts +0 -5
  181. package/es/core/editor/components/iconManage/IconManage.d.ts +0 -1
  182. package/es/core/editor/components/iconManage/RenameDialog.d.ts +0 -1
  183. package/es/core/editor/components/iconManage/UploadIconDialog.d.ts +0 -30
  184. package/es/core/editor/components/iconManage/UploadIconDialogWrapper.d.ts +0 -1
  185. package/es/core/editor/components/iconManage/utils/svgToShape.d.ts +0 -1
  186. package/es/core/editor/components/settings/Settings.d.ts +0 -1
  187. package/es/core/editor/components/settings/SettingsForm.d.ts +0 -1
  188. package/es/core/editor/components/settings/Style.d.ts +0 -1
  189. package/es/core/editor/components/settings/common/LayoutSettings.d.ts +0 -2
  190. package/es/core/editor/components/settings/common/LineType.d.ts +0 -1
  191. package/es/core/editor/components/settings/common/NodeAlignType.d.ts +0 -1
  192. package/es/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.d.ts +0 -12
  193. package/es/core/editor/components/settings/common/NodeSizeInput/NodeSizeNumberPicker.d.ts +0 -7
  194. package/es/core/editor/components/settings/common/tab/TabView.d.ts +0 -1
  195. package/es/core/editor/components/settings/common/text/FontStyleCheckbox.d.ts +0 -1
  196. package/es/core/editor/components/settings/common/text/TextStyle.d.ts +0 -1
  197. package/es/core/editor/components/settings/common/text/fontStyleUtil.d.ts +0 -19
  198. package/es/core/editor/components/settings/group/GroupNodeList/GroupNodeList.d.ts +0 -1
  199. package/es/core/editor/components/settings/group/GroupNodeList/ResourceList.d.ts +0 -2
  200. package/es/core/editor/components/settings/group/GroupNodeList/ResourceSelectButton.d.ts +0 -1
  201. package/es/core/editor/components/settings/group/GroupNodeList/icon.d.ts +0 -87
  202. package/es/core/editor/components/settings/layer/LayerSettingsForm.d.ts +0 -1
  203. package/es/core/editor/components/settings/link/LinkPropertyView.d.ts +0 -1
  204. package/es/core/editor/components/settings/node/NodeIconSelect.d.ts +0 -1
  205. package/es/core/editor/components/settings/node/NodeIconSelectTest.d.ts +0 -1
  206. package/es/core/editor/components/settings/node/NodePropertyView.d.ts +0 -1
  207. package/es/core/editor/components/settings/node/NodeRelateResourceButton.d.ts +0 -4
  208. package/es/core/editor/components/settings/node/TopoTreeSelect.d.ts +0 -1
  209. package/es/core/editor/components/settings/text/TextPropertyView.d.ts +0 -1
  210. package/es/core/editor/components/settings/useSettingRuntimeState.d.ts +0 -5
  211. package/es/core/editor/components/settings/view/BatchSetNodeSize.d.ts +0 -1
  212. package/es/core/editor/components/settings/view/ViewPropertyView.d.ts +0 -1
  213. package/es/core/editor/components/titlebar/TopoEditorTitleBar.d.ts +0 -1
  214. package/es/core/editor/components/titlebar/widgets/SaveButton.d.ts +0 -1
  215. package/es/core/editor/contextmenu/buildContextmenu.d.ts +0 -6
  216. package/es/core/index.d.ts +0 -1
  217. package/es/core/models/AttributeMetricDisplay.d.ts +0 -8
  218. package/es/core/models/TopoGraphView.d.ts +0 -42
  219. package/es/core/models/TopoViewer.d.ts +0 -9
  220. package/es/core/models/attrAndMetric.d.ts +0 -1
  221. package/es/core/models/cache/CiTyeCache.d.ts +0 -12
  222. package/es/core/models/cache/DictCache.d.ts +0 -11
  223. package/es/core/models/common/Alarm.d.ts +0 -52
  224. package/es/core/models/common/ContextMenu.d.ts +0 -8
  225. package/es/core/models/createTopoApp.d.ts +0 -13
  226. package/es/core/models/plugins/resourceWebControllUrl.d.ts +0 -11
  227. package/es/core/models/utils/getRelationDetailByIds.d.ts +0 -1
  228. package/es/core/models/utils/linkUtils.d.ts +0 -3
  229. package/es/core/store/coreModels.d.ts +0 -18
  230. package/es/core/store/createStore.d.ts +0 -1
  231. package/es/core/test/Test.d.ts +0 -9
  232. package/es/core/utils/resourceUtil.d.ts +0 -5
  233. package/es/core/utils/showMessage.d.ts +0 -1
  234. package/es/core/viewer/components/plugins/ResourceDetail/ResourceDetailDrawerPlugin.d.ts +0 -1
  235. package/es/core/viewer/components/plugins/ResourceDetail/topoDrawer.d.ts +0 -2
  236. package/es/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.d.ts +0 -1
  237. package/es/core/viewer/components/plugins/ViewerPlugin.d.ts +0 -1
  238. package/es/core/viewer/components/titlebar/TopoViewerTitleBar.d.ts +0 -1
  239. package/es/core/viewer/components/titlebar/ViewerTools.d.ts +0 -1
  240. package/es/core/viewer/components/titlebar/widgets/EditButton.d.ts +0 -4
  241. package/es/core/viewer/components/titlebar/widgets/SearchWidget.d.ts +0 -8
  242. package/es/core/viewer/contextmenu/buildContextmenu.d.ts +0 -42
  243. package/es/core/viewer/contextmenu/buildLinkContextmenu.d.ts +0 -9
  244. package/es/core/viewer/contextmenu/buildNodeContextmenu.d.ts +0 -24
  245. package/es/core/viewer/contextmenu/buildViewContextmenu.d.ts +0 -7
  246. package/es/createTopo.d.ts +0 -2
  247. package/es/getStoreModels.d.ts +0 -35
  248. package/es/hooks/useAlarm.d.ts +0 -1
  249. package/es/hooks/useContainerLinkTopo.d.ts +0 -8
  250. package/es/hooks/usePolling.d.ts +0 -9
  251. package/es/hooks/useSelection.d.ts +0 -9
  252. package/es/hooks/useTopoEdit.d.ts +0 -83
  253. package/es/index.d.ts +0 -3
  254. package/es/mock/mock.d.ts +0 -187
  255. package/es/models/ciModel.d.ts +0 -15
  256. package/es/models/iconManage.d.ts +0 -39
  257. package/es/models/linkDynamicStyle.d.ts +0 -47
  258. package/es/models/linkDynamicStyleConfig.d.ts +0 -37
  259. package/es/models/linkManager.d.ts +0 -11
  260. package/es/models/resourceWebControllUrlSetting.d.ts +0 -13
  261. package/es/models/topoAlarm.d.ts +0 -15
  262. package/es/models/topoBizMod.d.ts +0 -42
  263. package/es/models/topoCreateMod.d.ts +0 -108
  264. package/es/models/topoEdit.d.ts +0 -13
  265. package/es/models/topoGraphView.d.ts +0 -11
  266. package/es/models/topoMod.d.ts +0 -86
  267. package/es/models/topoView.d.ts +0 -11
  268. package/es/topoCenter/components/Topology.d.ts +0 -1
  269. package/es/topoCenter/createTopo.d.ts +0 -3
  270. package/es/topoCenter/getTopoData.d.ts +0 -1
  271. package/es/topoCenter/index.d.ts +0 -3
  272. package/es/topoCenter/models/TopoCenter.d.ts +0 -11
  273. package/es/topoCenter/store/functionAuth.d.ts +0 -20
  274. package/es/topoCenter/store/topoCenter.d.ts +0 -32
  275. package/es/topoCenter/store/topoTreeMod.d.ts +0 -83
  276. package/es/topoCenter/viewer/components/TitleBar.d.ts +0 -1
  277. package/es/topoCenter/viewer/components/TopologyViewer.d.ts +0 -1
  278. package/es/topoCenter/viewer/createTopoViewer.d.ts +0 -3
  279. package/es/topoCenter/viewer/index.d.ts +0 -2
  280. package/es/utils/ciType.d.ts +0 -1
  281. package/es/utils/format.d.ts +0 -28
  282. package/es/utils/htElementDataUtil.d.ts +0 -5
  283. package/es/utils/htElementUtils.d.ts +0 -5
  284. package/es/utils/listToTree.d.ts +0 -1
  285. package/es/utils/resourceElementUtil.d.ts +0 -1
  286. package/es/utils/template.d.ts +0 -50
  287. package/es/utils/topoData.d.ts +0 -54
  288. package/es/utils/topoIconUtil.d.ts +0 -6
  289. package/es/utils/topoMocks.d.ts +0 -172
  290. package/es/utils/topoPermissionUtil.d.ts +0 -9
  291. package/es/utils/tree.d.ts +0 -15
  292. package/lib/common/components/ResourceTable/ResourceTable.d.ts +0 -2
  293. package/lib/common/plugins/useSelectionPlugin.d.ts +0 -23
  294. package/lib/components/BatchAttrMetric/constant.d.ts +0 -30
  295. package/lib/components/BatchAttrMetric/index.d.ts +0 -5
  296. package/lib/components/BatchAttrMetric/setting.d.ts +0 -6
  297. package/lib/components/BatchAttrMetric/utils.d.ts +0 -35
  298. package/lib/components/Drawer/index.d.ts +0 -2
  299. package/lib/components/FormTable/index.d.ts +0 -2
  300. package/lib/components/IndexSettingDrawer/CiList.d.ts +0 -2
  301. package/lib/components/IndexSettingDrawer/CiListItem.d.ts +0 -2
  302. package/lib/components/IndexSettingDrawer/IndexList.d.ts +0 -2
  303. package/lib/components/IndexSettingDrawer/index.d.ts +0 -2
  304. package/lib/components/Link/form.d.ts +0 -2
  305. package/lib/components/Link/hook.d.ts +0 -26
  306. package/lib/components/Link/index.d.ts +0 -6
  307. package/lib/components/Link/setting.d.ts +0 -8
  308. package/lib/components/MultiResourceDrawer/Content.d.ts +0 -2
  309. package/lib/components/MultiResourceDrawer/Dynamic.d.ts +0 -2
  310. package/lib/components/MultiResourceDrawer/ResourceCard/index.d.ts +0 -2
  311. package/lib/components/MultiResourceDrawer/ResourceSelect.d.ts +0 -2
  312. package/lib/components/MultiResourceDrawer/Static.d.ts +0 -2
  313. package/lib/components/MultiResourceDrawer/index.d.ts +0 -2
  314. package/lib/components/ResourceList/ResourceSelect.d.ts +0 -2
  315. package/lib/components/ResourceList/ResourceSelectConnect.d.ts +0 -2
  316. package/lib/components/ResourceList/index.d.ts +0 -1
  317. package/lib/components/ResourceSelect/DefaultResourceSelectDrawer.d.ts +0 -1
  318. package/lib/components/ResourceSelect/ResourceSelectDrawer.d.ts +0 -1
  319. package/lib/components/SingleResourceDrawer/index.d.ts +0 -2
  320. package/lib/components/TemplateButton/Icon.d.ts +0 -2
  321. package/lib/components/TemplateButton/assets/index.d.ts +0 -8
  322. package/lib/components/TemplateButton/index.d.ts +0 -2
  323. package/lib/components/TemplateGroup/index.d.ts +0 -2
  324. package/lib/components/TemplateSelect/index.d.ts +0 -2
  325. package/lib/constants/ResDetailContants.d.ts +0 -1
  326. package/lib/constants/constant.d.ts +0 -36
  327. package/lib/constants/defaultCiTypeIcon.d.ts +0 -8
  328. package/lib/contextmenu/createMenuCommands.d.ts +0 -5
  329. package/lib/core/common/contextmenu/mergeContextmenu.d.ts +0 -1
  330. package/lib/core/common/icons/defaultIcons.d.ts +0 -84
  331. package/lib/core/components/TopoApp.d.ts +0 -1
  332. package/lib/core/components/TopoAppProvider.d.ts +0 -1
  333. package/lib/core/components/TopoAppView.d.ts +0 -14
  334. package/lib/core/components/TopoView/Topo.d.ts +0 -5
  335. package/lib/core/components/TopoView/Topo404.d.ts +0 -1
  336. package/lib/core/components/TopoView/TopoContent.d.ts +0 -5
  337. package/lib/core/components/TopoView/TopoNoPermission.d.ts +0 -1
  338. package/lib/core/components/TopoView/topoView.d.ts +0 -19
  339. package/lib/core/components/buildProvider.d.ts +0 -1
  340. package/lib/core/components/titlebar/TitleBar.d.ts +0 -9
  341. package/lib/core/components/titlebar/index.d.ts +0 -1
  342. package/lib/core/components/titlebar/widgets/TitleWidget.d.ts +0 -1
  343. package/lib/core/editor/LinkDynamicStyleConfig.d.ts +0 -5
  344. package/lib/core/editor/components/EditorPlugin.d.ts +0 -1
  345. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/RuleSetting.d.ts +0 -1
  346. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/index.d.ts +0 -1
  347. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/ColorPicker.d.ts +0 -6
  348. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/Rule.d.ts +0 -1
  349. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleCondition.d.ts +0 -1
  350. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleStyle.d.ts +0 -1
  351. package/lib/core/editor/components/ResourceViewAttributeSetting/ResourceViewAttributeSettingPlugin.d.ts +0 -4
  352. package/lib/core/editor/components/ResourceViewAttributeSetting/Setting.d.ts +0 -5
  353. package/lib/core/editor/components/iconManage/IconManage.d.ts +0 -1
  354. package/lib/core/editor/components/iconManage/RenameDialog.d.ts +0 -1
  355. package/lib/core/editor/components/iconManage/UploadIconDialog.d.ts +0 -30
  356. package/lib/core/editor/components/iconManage/UploadIconDialogWrapper.d.ts +0 -1
  357. package/lib/core/editor/components/iconManage/utils/svgToShape.d.ts +0 -1
  358. package/lib/core/editor/components/settings/Settings.d.ts +0 -1
  359. package/lib/core/editor/components/settings/SettingsForm.d.ts +0 -1
  360. package/lib/core/editor/components/settings/Style.d.ts +0 -1
  361. package/lib/core/editor/components/settings/common/LayoutSettings.d.ts +0 -2
  362. package/lib/core/editor/components/settings/common/LineType.d.ts +0 -1
  363. package/lib/core/editor/components/settings/common/NodeAlignType.d.ts +0 -1
  364. package/lib/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.d.ts +0 -12
  365. package/lib/core/editor/components/settings/common/NodeSizeInput/NodeSizeNumberPicker.d.ts +0 -7
  366. package/lib/core/editor/components/settings/common/tab/TabView.d.ts +0 -1
  367. package/lib/core/editor/components/settings/common/text/FontStyleCheckbox.d.ts +0 -1
  368. package/lib/core/editor/components/settings/common/text/TextStyle.d.ts +0 -1
  369. package/lib/core/editor/components/settings/common/text/fontStyleUtil.d.ts +0 -19
  370. package/lib/core/editor/components/settings/group/GroupNodeList/GroupNodeList.d.ts +0 -1
  371. package/lib/core/editor/components/settings/group/GroupNodeList/ResourceList.d.ts +0 -2
  372. package/lib/core/editor/components/settings/group/GroupNodeList/ResourceSelectButton.d.ts +0 -1
  373. package/lib/core/editor/components/settings/group/GroupNodeList/icon.d.ts +0 -87
  374. package/lib/core/editor/components/settings/layer/LayerSettingsForm.d.ts +0 -1
  375. package/lib/core/editor/components/settings/link/LinkPropertyView.d.ts +0 -1
  376. package/lib/core/editor/components/settings/node/NodeIconSelect.d.ts +0 -1
  377. package/lib/core/editor/components/settings/node/NodeIconSelectTest.d.ts +0 -1
  378. package/lib/core/editor/components/settings/node/NodePropertyView.d.ts +0 -1
  379. package/lib/core/editor/components/settings/node/NodeRelateResourceButton.d.ts +0 -4
  380. package/lib/core/editor/components/settings/node/TopoTreeSelect.d.ts +0 -1
  381. package/lib/core/editor/components/settings/text/TextPropertyView.d.ts +0 -1
  382. package/lib/core/editor/components/settings/useSettingRuntimeState.d.ts +0 -5
  383. package/lib/core/editor/components/settings/view/BatchSetNodeSize.d.ts +0 -1
  384. package/lib/core/editor/components/settings/view/ViewPropertyView.d.ts +0 -1
  385. package/lib/core/editor/components/titlebar/TopoEditorTitleBar.d.ts +0 -1
  386. package/lib/core/editor/components/titlebar/widgets/SaveButton.d.ts +0 -1
  387. package/lib/core/editor/contextmenu/buildContextmenu.d.ts +0 -6
  388. package/lib/core/index.d.ts +0 -1
  389. package/lib/core/models/AttributeMetricDisplay.d.ts +0 -8
  390. package/lib/core/models/TopoGraphView.d.ts +0 -42
  391. package/lib/core/models/TopoViewer.d.ts +0 -9
  392. package/lib/core/models/attrAndMetric.d.ts +0 -1
  393. package/lib/core/models/cache/CiTyeCache.d.ts +0 -12
  394. package/lib/core/models/cache/DictCache.d.ts +0 -11
  395. package/lib/core/models/common/Alarm.d.ts +0 -52
  396. package/lib/core/models/common/ContextMenu.d.ts +0 -8
  397. package/lib/core/models/createTopoApp.d.ts +0 -13
  398. package/lib/core/models/plugins/resourceWebControllUrl.d.ts +0 -11
  399. package/lib/core/models/utils/getRelationDetailByIds.d.ts +0 -1
  400. package/lib/core/models/utils/linkUtils.d.ts +0 -3
  401. package/lib/core/store/coreModels.d.ts +0 -18
  402. package/lib/core/store/createStore.d.ts +0 -1
  403. package/lib/core/test/Test.d.ts +0 -9
  404. package/lib/core/utils/resourceUtil.d.ts +0 -5
  405. package/lib/core/utils/showMessage.d.ts +0 -1
  406. package/lib/core/viewer/components/plugins/ResourceDetail/ResourceDetailDrawerPlugin.d.ts +0 -1
  407. package/lib/core/viewer/components/plugins/ResourceDetail/topoDrawer.d.ts +0 -2
  408. package/lib/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.d.ts +0 -1
  409. package/lib/core/viewer/components/plugins/ViewerPlugin.d.ts +0 -1
  410. package/lib/core/viewer/components/titlebar/TopoViewerTitleBar.d.ts +0 -1
  411. package/lib/core/viewer/components/titlebar/ViewerTools.d.ts +0 -1
  412. package/lib/core/viewer/components/titlebar/widgets/EditButton.d.ts +0 -4
  413. package/lib/core/viewer/components/titlebar/widgets/SearchWidget.d.ts +0 -8
  414. package/lib/core/viewer/contextmenu/buildContextmenu.d.ts +0 -42
  415. package/lib/core/viewer/contextmenu/buildLinkContextmenu.d.ts +0 -9
  416. package/lib/core/viewer/contextmenu/buildNodeContextmenu.d.ts +0 -24
  417. package/lib/core/viewer/contextmenu/buildViewContextmenu.d.ts +0 -7
  418. package/lib/createTopo.d.ts +0 -2
  419. package/lib/getStoreModels.d.ts +0 -35
  420. package/lib/hooks/useAlarm.d.ts +0 -1
  421. package/lib/hooks/useContainerLinkTopo.d.ts +0 -8
  422. package/lib/hooks/usePolling.d.ts +0 -9
  423. package/lib/hooks/useSelection.d.ts +0 -9
  424. package/lib/hooks/useTopoEdit.d.ts +0 -83
  425. package/lib/index.d.ts +0 -3
  426. package/lib/mock/mock.d.ts +0 -187
  427. package/lib/models/ciModel.d.ts +0 -15
  428. package/lib/models/iconManage.d.ts +0 -39
  429. package/lib/models/linkDynamicStyle.d.ts +0 -47
  430. package/lib/models/linkDynamicStyleConfig.d.ts +0 -37
  431. package/lib/models/linkManager.d.ts +0 -11
  432. package/lib/models/resourceWebControllUrlSetting.d.ts +0 -13
  433. package/lib/models/topoAlarm.d.ts +0 -15
  434. package/lib/models/topoBizMod.d.ts +0 -42
  435. package/lib/models/topoCreateMod.d.ts +0 -108
  436. package/lib/models/topoEdit.d.ts +0 -13
  437. package/lib/models/topoGraphView.d.ts +0 -11
  438. package/lib/models/topoMod.d.ts +0 -86
  439. package/lib/models/topoView.d.ts +0 -11
  440. package/lib/topoCenter/components/Topology.d.ts +0 -1
  441. package/lib/topoCenter/createTopo.d.ts +0 -3
  442. package/lib/topoCenter/getTopoData.d.ts +0 -1
  443. package/lib/topoCenter/index.d.ts +0 -3
  444. package/lib/topoCenter/models/TopoCenter.d.ts +0 -11
  445. package/lib/topoCenter/store/functionAuth.d.ts +0 -20
  446. package/lib/topoCenter/store/topoCenter.d.ts +0 -32
  447. package/lib/topoCenter/store/topoTreeMod.d.ts +0 -83
  448. package/lib/topoCenter/viewer/components/TitleBar.d.ts +0 -1
  449. package/lib/topoCenter/viewer/components/TopologyViewer.d.ts +0 -1
  450. package/lib/topoCenter/viewer/createTopoViewer.d.ts +0 -3
  451. package/lib/topoCenter/viewer/index.d.ts +0 -2
  452. package/lib/utils/ciType.d.ts +0 -1
  453. package/lib/utils/format.d.ts +0 -28
  454. package/lib/utils/htElementDataUtil.d.ts +0 -5
  455. package/lib/utils/htElementUtils.d.ts +0 -5
  456. package/lib/utils/listToTree.d.ts +0 -1
  457. package/lib/utils/resourceElementUtil.d.ts +0 -1
  458. package/lib/utils/template.d.ts +0 -50
  459. package/lib/utils/topoData.d.ts +0 -54
  460. package/lib/utils/topoIconUtil.d.ts +0 -6
  461. package/lib/utils/topoMocks.d.ts +0 -172
  462. package/lib/utils/topoPermissionUtil.d.ts +0 -9
  463. package/lib/utils/tree.d.ts +0 -15
package/es/mock/mock.d.ts DELETED
@@ -1,187 +0,0 @@
1
- export namespace topoData {
2
- export namespace config {
3
- export const id: string;
4
- export const name: string;
5
- export const topoType: string;
6
- export const layout: string;
7
- }
8
- export const layouts: {
9
- index: number;
10
- name: string;
11
- }[];
12
- export const nodes: ({
13
- id: string;
14
- type: string;
15
- name: string;
16
- layout: number;
17
- groupId: number;
18
- attribute: {
19
- ciType: string;
20
- ciName: string;
21
- };
22
- width?: undefined;
23
- height?: undefined;
24
- x?: undefined;
25
- y?: undefined;
26
- } | {
27
- id: string;
28
- type: string;
29
- name: string;
30
- groupId: number;
31
- attribute: {
32
- ciType: string;
33
- ciName: string;
34
- };
35
- layout?: undefined;
36
- width?: undefined;
37
- height?: undefined;
38
- x?: undefined;
39
- y?: undefined;
40
- } | {
41
- id: string;
42
- type: string;
43
- name: string;
44
- groupId: number;
45
- width: number;
46
- height: number;
47
- x: number;
48
- y: number;
49
- attribute: {
50
- ciType: string;
51
- ciName: string;
52
- };
53
- layout?: undefined;
54
- })[];
55
- export const links: {
56
- id: string;
57
- source: string;
58
- target: string;
59
- attribute: {
60
- reltype: string;
61
- };
62
- }[];
63
- export const serialize: string;
64
- }
65
- export namespace topoCiInfo {
66
- export const data: {
67
- code: string;
68
- name: string;
69
- icon: string;
70
- id: string;
71
- extend: string;
72
- domain: string;
73
- parent: any;
74
- enable: boolean;
75
- source: string;
76
- displayName: string;
77
- vendor: string;
78
- version: string;
79
- category: string;
80
- type: any;
81
- attributes: ({
82
- code: string;
83
- dataRange: string;
84
- dataLength: string;
85
- defaultValue: string;
86
- dataType: string;
87
- description: string;
88
- source: string;
89
- type: string;
90
- metricCode: string;
91
- required: string;
92
- unit: string;
93
- userVisible: string;
94
- name: string;
95
- changeValue: string;
96
- modifiable: string;
97
- dataSource: string;
98
- initValue: string;
99
- extendable: string;
100
- templateCode?: undefined;
101
- ifPublic?: undefined;
102
- } | {
103
- code: string;
104
- dataRange: string;
105
- dataLength: string;
106
- defaultValue: string;
107
- dataType: string;
108
- description: string;
109
- source: string;
110
- type: string;
111
- metricCode: string;
112
- required: string;
113
- unit: string;
114
- userVisible: string;
115
- name: string;
116
- changeValue: string;
117
- modifiable: string;
118
- dataSource: string;
119
- initValue: string;
120
- templateCode: string;
121
- extendable: string;
122
- ifPublic?: undefined;
123
- } | {
124
- code: string;
125
- dataRange: string;
126
- dataLength: string;
127
- defaultValue: string;
128
- dataType: string;
129
- description: string;
130
- source: string;
131
- type: string;
132
- metricCode: string;
133
- required: string;
134
- unit: string;
135
- userVisible: string;
136
- name: string;
137
- changeValue: string;
138
- modifiable: string;
139
- dataSource: string;
140
- initValue: string;
141
- extendable: string;
142
- ifPublic: string;
143
- templateCode?: undefined;
144
- })[];
145
- metrics: {
146
- code: string;
147
- name: string;
148
- metricType: string;
149
- dataType: string;
150
- unit: string;
151
- category: string;
152
- attributes: {};
153
- }[];
154
- }[];
155
- }
156
- export namespace topoAM {
157
- const data_1: {
158
- attributes: {
159
- minMacAddress: string;
160
- serialNum: string;
161
- ipv6Address: string;
162
- displayName: string;
163
- ipAddress: string;
164
- assetState: string;
165
- ipAddressList: string;
166
- macAddress: string;
167
- poeSupported: boolean;
168
- systemOID: string;
169
- name: string;
170
- company: string;
171
- connection: {
172
- SNMP: {
173
- id: string;
174
- params: string;
175
- };
176
- };
177
- model: string;
178
- distanceToOutlet: number;
179
- maxMacAddress: string;
180
- };
181
- id: string;
182
- operation: string;
183
- typeCode: string;
184
- manageStatus: number;
185
- }[];
186
- export { data_1 as data };
187
- }
@@ -1,15 +0,0 @@
1
- declare namespace _default {
2
- export namespace state {
3
- export const typeDicts: any;
4
- export const currentCi: any;
5
- }
6
- export namespace reducers {
7
- export function update(prevState: any, payload: any): any;
8
- export function update(prevState: any, payload: any): any;
9
- }
10
- export function effects(dispatch: any): {
11
- getTypeDicts(): Promise<void>;
12
- getCiMeta(ciCode: any, rootState: any): Promise<void>;
13
- };
14
- }
15
- export default _default;
@@ -1,39 +0,0 @@
1
- export default function _default(engine: any): {
2
- state: {
3
- icons: {
4
- node: any[];
5
- container: any[];
6
- };
7
- visible: boolean;
8
- type: any;
9
- rename: {
10
- visible: boolean;
11
- icon: any;
12
- };
13
- };
14
- reducers: {
15
- update(prevState: any, payload: any): any;
16
- };
17
- effects: (dispatch: any) => {
18
- open({ type }: {
19
- type: any;
20
- }, rootState: any): void;
21
- close(payload: any, rootState: any): void;
22
- loadIcons(payload: any, rootState: any): Promise<void>;
23
- getIcons(): Promise<{
24
- node: any[];
25
- container: any[];
26
- }>;
27
- /**
28
- * @param payload {{type: string, data: []}}
29
- */
30
- uploadSuccess(payload: {
31
- type: string;
32
- data: [];
33
- }, rootState: any): void;
34
- deleteIcon(id: any, rootState: any): void;
35
- openRenameDialog(icon: any, rootState: any): void;
36
- closeRenameDialog(payload: any, rootState: any): void;
37
- renameIcon(payload: any, rootState: any): Promise<void>;
38
- };
39
- };
@@ -1,47 +0,0 @@
1
- export default function _default(engine: any): {
2
- state: {
3
- /**
4
- * 格式见 https://shimo.im/docs/VKt3HCKHYgJ9kvGP#anchor-75ld
5
- * @type {{networkLink: {}, networkAggLink: {}}}
6
- */
7
- config: {
8
- networkLink: {};
9
- networkAggLink: {};
10
- };
11
- };
12
- reducers: {
13
- setConfig(prevState: any, payload: any): any;
14
- update(prevState: any, payload: any): any;
15
- /**
16
- * 更新链路的配置
17
- *
18
- * @param prevState
19
- * @param payload {{type: string, config: object}}
20
- */
21
- updateLinkConfig(prevState: any, payload: {
22
- type: string;
23
- config: object;
24
- }): any;
25
- };
26
- effects: (dispatch: any) => {
27
- getConfig(payload: any, rootState: any): Promise<any>;
28
- /**
29
- * 获取链路需要查询的属性/指标
30
- *
31
- * @return {Promise<*>}
32
- */
33
- getFields(payload: any, rootState: any): Promise<any>;
34
- /**
35
- * 执行动态样式显示.
36
- *
37
- * 样式优先级:告警>开启自定义>动态(如果命中)>默认(未命中动态)。
38
- * 不包含有告警的链路。
39
- * 链路开启动态未命中规则时,使用默认样式。值为null,ht设置为默认
40
- *
41
- * @param payload
42
- * @param rootState
43
- * @returns {Promise<void>}
44
- */
45
- execute(payload: any, rootState: any): Promise<void>;
46
- };
47
- };
@@ -1,37 +0,0 @@
1
- declare namespace _default {
2
- export namespace state {
3
- export const drawerVisible: boolean;
4
- export const currentLinkType: any;
5
- export const currentLinkConfig: any;
6
- }
7
- export namespace reducers {
8
- export function update(prevState: any, payload: any): any;
9
- export function update(prevState: any, payload: any): any;
10
- export function addRule(prevState: any, payload: any): any;
11
- export function addRule(prevState: any, payload: any): any;
12
- export function deleteRule(prevState: any, index: any): any;
13
- export function deleteRule(prevState: any, index: any): any;
14
- export function updateRuleByIndex(prevState: any, { index, rule }: {
15
- index: any;
16
- rule: any;
17
- }): any;
18
- export function updateRuleByIndex(prevState: any, { index, rule }: {
19
- index: any;
20
- rule: any;
21
- }): any;
22
- export function updateRules(prevState: any, rules: any): any;
23
- export function updateRules(prevState: any, rules: any): any;
24
- }
25
- export function effects(dispatch: any): {
26
- /**
27
- * 打开配置
28
- *
29
- * @param payload {type}
30
- * @param rootState
31
- */
32
- open(payload: any, rootState: any): void;
33
- close(): void;
34
- saveLinkConfig(payload: any, rootState: any): Promise<void>;
35
- };
36
- }
37
- export default _default;
@@ -1,11 +0,0 @@
1
- export default function _default(topoApp: any): {
2
- state: {
3
- drawerVisible: boolean;
4
- };
5
- reducers: {
6
- update(prevState: any, payload: any): any;
7
- };
8
- effects: (dispatch: any) => {
9
- show(payload: any, rootState: any): Promise<void>;
10
- };
11
- };
@@ -1,13 +0,0 @@
1
- declare namespace _default {
2
- export namespace state {
3
- export const visible: boolean;
4
- export const url: any;
5
- export const saving: boolean;
6
- }
7
- export namespace reducers {
8
- export function update(prevState: any, payload: any): any;
9
- export function update(prevState: any, payload: any): any;
10
- }
11
- export function effects(dispatch: any): {};
12
- }
13
- export default _default;
@@ -1,15 +0,0 @@
1
- declare namespace _default {
2
- export namespace state {
3
- export const currentTopoId: any;
4
- export const alarmOpening: boolean;
5
- export const alarmIsOpened: boolean;
6
- }
7
- export namespace reducers {
8
- export function update(prevState: any, payload: any): any;
9
- export function update(prevState: any, payload: any): any;
10
- }
11
- export function effects(dispatch: any): {
12
- init(payload: any, rootState: any): Promise<void>;
13
- };
14
- }
15
- export default _default;
@@ -1,42 +0,0 @@
1
- export default function _default(engine: any): {
2
- state: {
3
- defaultSet: any;
4
- resAndMetrics: {};
5
- metricDoc: {};
6
- attrDoc: {};
7
- allCiSet: {};
8
- ciSetDoc: {};
9
- pollingSwitch: boolean;
10
- alarmDoc: {};
11
- alarmRecord: any[];
12
- setConfig: any;
13
- /**
14
- * 资源和链路的属性、指标,格式见:https://shimo.im/docs/VKt3HCKHYgJ9kvGP#anchor-PFq4
15
- * @type {[{id, attributes:[], metrics: []}]}
16
- */
17
- attrsAndMetrics: [{
18
- id;
19
- attributes: [];
20
- metrics: [];
21
- }];
22
- };
23
- reducers: {
24
- update(prevState: any, payload: any): any;
25
- };
26
- effects: (dispatch: any) => {
27
- combBatchCiInfo(conditions: any, state: any): Promise<{}>;
28
- getCiInfo(conditions: any, state: any): Promise<void>;
29
- getMetricsByIds(conditions: any, state: any): Promise<any>;
30
- getCiArrByIds(conditions: any, state: any): Promise<any>;
31
- getCiBizByIds(conditions: any, state: any): Promise<{
32
- metricResult: any[];
33
- arrResult: any;
34
- }>;
35
- combAlarmData(conditions: any, state: any): Promise<any>;
36
- /**
37
- * 设置属性和指标
38
- * @param attrsAndMetrics
39
- */
40
- setAttrsAndMetrics(attrsAndMetrics: any): void;
41
- };
42
- };
@@ -1,108 +0,0 @@
1
- export default function _default(topoApp: any): {
2
- state: {
3
- name: string;
4
- layout: {
5
- id: string;
6
- };
7
- resources: {
8
- dynamic: {
9
- selected: boolean;
10
- condition: string;
11
- data: {
12
- relation: string;
13
- children: {
14
- key: number;
15
- type: {
16
- rootCi: string;
17
- };
18
- }[];
19
- }[];
20
- };
21
- static: {
22
- selected: boolean;
23
- data: any[];
24
- };
25
- };
26
- expanded: boolean;
27
- resList: any[];
28
- template: string;
29
- topo: any[];
30
- elements: {
31
- nodes: any[];
32
- links: any[];
33
- groups: any[];
34
- };
35
- };
36
- reducers: {
37
- reset(): {
38
- name: string;
39
- layout: {
40
- id: string;
41
- };
42
- resources: {
43
- dynamic: {
44
- selected: boolean;
45
- condition: string;
46
- data: {
47
- relation: string;
48
- children: {
49
- key: number;
50
- type: {
51
- rootCi: string;
52
- };
53
- }[];
54
- }[];
55
- };
56
- static: {
57
- selected: boolean;
58
- data: any[];
59
- };
60
- };
61
- expanded: boolean;
62
- resList: any[];
63
- template: string;
64
- topo: any[];
65
- elements: {
66
- nodes: any[];
67
- links: any[];
68
- groups: any[];
69
- };
70
- };
71
- update(prevState: any, payload: any): any;
72
- updateTopo(prevState: any, topo: any): any;
73
- updateTpl(prevState: any, template?: string): any;
74
- updateLayout(prevState: any, layout: any): any;
75
- /**
76
- * 更新视图的资源配置
77
- * @param prevState
78
- * @param resources
79
- */
80
- updateViewResources(prevState: any, resources: any): any;
81
- updateResources(prevState: any, resources: any): any;
82
- updateResList(prevState: any, list: any): any;
83
- updateGroup(prevState: any, payload: any): void;
84
- updateGroupResList(prevState: any, payload: any): void;
85
- addGroup(prevState: any, group: any): any;
86
- deleteGroup(prevState: any, index: any): any;
87
- /**
88
- * 更新指定索引分组的资源配置
89
- * @param prevState
90
- * @param index
91
- * @param resources
92
- */
93
- updateGroupResourcesByIndex(prevState: any, { index, resources }: {
94
- index: any;
95
- resources: any;
96
- }): any;
97
- };
98
- effects: (dispatch: any) => {
99
- getResourceList(payload: any): Promise<void>;
100
- getConditions(): Promise<void>;
101
- fetchData(params: any, rootState: any): Promise<any[]>;
102
- getTopoByConditions(params: any, state: any): Promise<any[]>;
103
- saveTopo(data: any, state: any): Promise<void>;
104
- addToBlockList(data: any): Promise<void>;
105
- switchToEditMode(): void;
106
- switchToViewMode(): void;
107
- };
108
- };
@@ -1,13 +0,0 @@
1
- declare namespace _default {
2
- export namespace state {
3
- export const saving: boolean;
4
- }
5
- export namespace reducers {
6
- export function update(prevState: any, payload: any): any;
7
- export function update(prevState: any, payload: any): any;
8
- }
9
- export function effects(dispatch: any): {
10
- init(payload: any, rootState: any): Promise<void>;
11
- };
12
- }
13
- export default _default;
@@ -1,11 +0,0 @@
1
- declare namespace _default {
2
- export const state: {};
3
- export namespace reducers {
4
- export function update(prevState: any, payload: any): any;
5
- export function update(prevState: any, payload: any): any;
6
- }
7
- export function effects(dispatch: any): {
8
- init(payload: any, rootState: any): Promise<void>;
9
- };
10
- }
11
- export default _default;
@@ -1,86 +0,0 @@
1
- export default function _default(topoApp: any): {
2
- state: {
3
- loading: boolean;
4
- urlParams: {};
5
- topoLoading: boolean;
6
- topoLoadError: boolean;
7
- topoId: string;
8
- topoName: string;
9
- topoPermission: any;
10
- viewState: string;
11
- topoData: any;
12
- currentTopo: any;
13
- currentNode: {
14
- id: string;
15
- name: string;
16
- };
17
- drawVisible: boolean;
18
- selectNodeId: string;
19
- topoAlarmIsOpen: boolean;
20
- alarmData: any;
21
- currentCiInfo: any;
22
- resAndMetrics: {
23
- res: any[];
24
- metrics: any[];
25
- metricsDoc: any;
26
- };
27
- linkTo: any;
28
- };
29
- reducers: {
30
- update(prevState: any, payload: any): any;
31
- };
32
- effects: (dispatch: any) => {
33
- /**
34
- * 初始化。
35
- */
36
- initData(playload: {}, rootState: any): Promise<void>;
37
- exit(): void;
38
- /**
39
- *
40
- * @param playload {object}
41
- * @param playload.id {string?}
42
- * @param playload.data {object?}
43
- * @param playload.mode {string?}
44
- * @param playload.viewState {string?}
45
- */
46
- openTopoPage(playload: {
47
- id: string | null;
48
- data: object | null;
49
- mode: string | null;
50
- viewState: string | null;
51
- }, rootState: any): Promise<void>;
52
- clearData(): void;
53
- switchToViewMode(playload: any, rootState: any): void;
54
- enterEditMode(playload: any, rootState: any): void;
55
- openDefaultTopoPage(conditions: {}, rootState: any): Promise<void>;
56
- refreshPermission(): Promise<void>;
57
- refreshTopoTree(): Promise<void>;
58
- /**
59
- * 加载拓扑图数据。
60
- * 场景:首次打开、导航树切换、点刷新按钮、编辑进入显示
61
- *
62
- * @param props {{topoId}}
63
- * @param props.linkTo {?} 关联拓扑
64
- * @param props.refresh {?boolean} 是否刷新
65
- * @return {Promise<void>}
66
- */
67
- initTopoData(props: {
68
- topoId: any;
69
- }, state: any): Promise<void>;
70
- /**
71
- * 刷新拓扑图
72
- */
73
- refreshTopo(payload: any, rootState: any): Promise<void>;
74
- operationTopoPage(conditions: {}, state: any): Promise<void>;
75
- openPermissionSetting(payload: any, rootState: any): Promise<void>;
76
- updateDelId(conditions: string, state: any): Promise<void>;
77
- /**
78
- * 查询最近一个月的告警
79
- *
80
- * TODO 迁移
81
- */
82
- getAlarmById(conditions: any, state: any): Promise<void>;
83
- getCiInfo(conditions: any, state: any): Promise<void>;
84
- getTopoPermission(playload: any, rootState: any): Promise<any>;
85
- };
86
- };
@@ -1,11 +0,0 @@
1
- declare namespace _default {
2
- export const state: {};
3
- export namespace reducers {
4
- export function update(prevState: any, payload: any): any;
5
- export function update(prevState: any, payload: any): any;
6
- }
7
- export function effects(dispatch: any): {
8
- init(payload: any, rootState: any): Promise<void>;
9
- };
10
- }
11
- export default _default;
@@ -1 +0,0 @@
1
- export default function Topology(props: any): JSX.Element;
@@ -1,3 +0,0 @@
1
- export function createTopo(options: any): TopoCenter;
2
- export default createTopo;
3
- import TopoCenter from "./models/TopoCenter";
@@ -1 +0,0 @@
1
- export default function getTopoData(id: any): Promise<any>;
@@ -1,3 +0,0 @@
1
- import TopoCenter from "./models/TopoCenter";
2
- import createTopo from "./createTopo";
3
- export { TopoCenter, createTopo, Topology };
@@ -1,11 +0,0 @@
1
- export default class TopoCenter extends TopoApp {
2
- constructor(options: any);
3
- /**
4
- * TODO 移除
5
- * @param params
6
- * @return {Promise<void>}
7
- */
8
- initData(params: any): Promise<void>;
9
- openTopo(params: any): void;
10
- }
11
- import TopoApp from "../../core/models/TopoApp";