@riil-frontend/component-topology 2.5.5 → 2.7.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 (451) 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/text/TextStyle.js +6 -0
  22. package/es/core/editor/components/settings/text/TextPropertyView.js +11 -1
  23. package/es/core/models/TopoApp.js +3 -3
  24. package/es/core/models/attrAndMetric.js +1 -1
  25. package/es/core/models/cache/CiTyeCache.js +1 -1
  26. package/es/core/models/cache/DictCache.js +1 -1
  27. package/es/core/models/common/Alarm.js +2 -2
  28. package/es/core/models/plugins/resourceWebControllUrl.js +2 -2
  29. package/es/core/models/utils/linkUtils.js +1 -1
  30. package/es/core/utils/showMessage.js +1 -1
  31. package/es/core/viewer/components/plugins/ResourceDetail/topoDrawer.js +2 -2
  32. package/es/hooks/useAlarm.js +1 -1
  33. package/es/hooks/useContainerLinkTopo.js +1 -1
  34. package/es/hooks/usePolling.js +1 -1
  35. package/es/hooks/useTopoEdit.js +2 -2
  36. package/es/models/ciModel.js +1 -1
  37. package/es/models/iconManage.js +2 -2
  38. package/es/models/linkDynamicStyle.js +1 -1
  39. package/es/models/linkManager.js +2 -2
  40. package/es/models/resourceWebControllUrlSetting.js +2 -2
  41. package/es/models/topoAlarm.js +1 -2
  42. package/es/models/topoBizMod.js +4 -4
  43. package/es/models/topoCreateMod.js +2 -2
  44. package/es/models/topoEdit.js +2 -2
  45. package/es/models/topoGraphView.js +2 -2
  46. package/es/models/topoMod.js +3 -3
  47. package/es/models/topoView.js +2 -2
  48. package/es/topoCenter/components/Topology.js +1 -1
  49. package/es/topoCenter/getTopoData.js +1 -1
  50. package/es/topoCenter/store/functionAuth.js +3 -3
  51. package/es/topoCenter/store/topoCenter.js +2 -2
  52. package/es/topoCenter/store/topoTreeMod.js +2 -2
  53. package/es/utils/format.js +1 -1
  54. package/es/utils/topoData.js +1 -1
  55. package/es/utils/tree.js +0 -1
  56. package/lib/components/BatchAttrMetric/setting.js +2 -2
  57. package/lib/components/FormTable/index.js +1 -1
  58. package/lib/components/IndexSettingDrawer/IndexList.js +2 -2
  59. package/lib/components/Link/hook.js +1 -1
  60. package/lib/components/Link/index.js +1 -1
  61. package/lib/components/MultiResourceDrawer/Dynamic.js +1 -1
  62. package/lib/components/MultiResourceDrawer/index.js +1 -1
  63. package/lib/components/ResourceList/ResourceSelect.js +3 -3
  64. package/lib/core/components/TopoView/Topo404.js +1 -1
  65. package/lib/core/components/TopoView/TopoContent.js +1 -1
  66. package/lib/core/components/TopoView/TopoNoPermission.js +1 -1
  67. package/lib/core/components/TopoView/topoView.js +1 -1
  68. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/index.js +1 -1
  69. package/lib/core/editor/components/ResourceViewAttributeSetting/Setting.js +1 -1
  70. package/lib/core/editor/components/iconManage/UploadIconDialog.js +1 -1
  71. package/lib/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.js +2 -2
  72. package/lib/core/editor/components/settings/common/text/TextStyle.js +6 -0
  73. package/lib/core/editor/components/settings/text/TextPropertyView.js +12 -1
  74. package/lib/core/models/TopoApp.js +4 -4
  75. package/lib/core/models/attrAndMetric.js +1 -1
  76. package/lib/core/models/cache/CiTyeCache.js +1 -1
  77. package/lib/core/models/cache/DictCache.js +1 -1
  78. package/lib/core/models/common/Alarm.js +2 -2
  79. package/lib/core/models/plugins/resourceWebControllUrl.js +2 -2
  80. package/lib/core/models/utils/linkUtils.js +1 -1
  81. package/lib/core/utils/showMessage.js +1 -1
  82. package/lib/core/viewer/components/plugins/ResourceDetail/topoDrawer.js +2 -2
  83. package/lib/hooks/useAlarm.js +1 -1
  84. package/lib/hooks/useContainerLinkTopo.js +1 -1
  85. package/lib/hooks/usePolling.js +1 -1
  86. package/lib/hooks/useTopoEdit.js +2 -2
  87. package/lib/models/ciModel.js +1 -1
  88. package/lib/models/iconManage.js +2 -2
  89. package/lib/models/linkDynamicStyle.js +1 -1
  90. package/lib/models/linkManager.js +2 -2
  91. package/lib/models/resourceWebControllUrlSetting.js +2 -2
  92. package/lib/models/topoAlarm.js +1 -3
  93. package/lib/models/topoBizMod.js +4 -4
  94. package/lib/models/topoCreateMod.js +2 -2
  95. package/lib/models/topoEdit.js +2 -2
  96. package/lib/models/topoGraphView.js +2 -2
  97. package/lib/models/topoMod.js +3 -3
  98. package/lib/models/topoView.js +2 -2
  99. package/lib/topoCenter/components/Topology.js +1 -1
  100. package/lib/topoCenter/getTopoData.js +1 -1
  101. package/lib/topoCenter/store/functionAuth.js +3 -3
  102. package/lib/topoCenter/store/topoCenter.js +2 -2
  103. package/lib/topoCenter/store/topoTreeMod.js +2 -2
  104. package/lib/utils/format.js +1 -1
  105. package/lib/utils/topoData.js +1 -1
  106. package/lib/utils/tree.js +0 -1
  107. package/package.json +22 -21
  108. package/es/common/components/ResourceTable/ResourceTable.d.ts +0 -2
  109. package/es/common/plugins/useSelectionPlugin.d.ts +0 -23
  110. package/es/components/BatchAttrMetric/constant.d.ts +0 -30
  111. package/es/components/BatchAttrMetric/index.d.ts +0 -5
  112. package/es/components/BatchAttrMetric/setting.d.ts +0 -6
  113. package/es/components/BatchAttrMetric/utils.d.ts +0 -35
  114. package/es/components/Drawer/index.d.ts +0 -2
  115. package/es/components/FormTable/index.d.ts +0 -2
  116. package/es/components/IndexSettingDrawer/CiList.d.ts +0 -2
  117. package/es/components/IndexSettingDrawer/CiListItem.d.ts +0 -2
  118. package/es/components/IndexSettingDrawer/IndexList.d.ts +0 -2
  119. package/es/components/IndexSettingDrawer/index.d.ts +0 -2
  120. package/es/components/Link/form.d.ts +0 -2
  121. package/es/components/Link/hook.d.ts +0 -26
  122. package/es/components/Link/index.d.ts +0 -6
  123. package/es/components/Link/setting.d.ts +0 -8
  124. package/es/components/MultiResourceDrawer/Content.d.ts +0 -2
  125. package/es/components/MultiResourceDrawer/Dynamic.d.ts +0 -2
  126. package/es/components/MultiResourceDrawer/ResourceCard/index.d.ts +0 -2
  127. package/es/components/MultiResourceDrawer/ResourceSelect.d.ts +0 -2
  128. package/es/components/MultiResourceDrawer/Static.d.ts +0 -2
  129. package/es/components/MultiResourceDrawer/index.d.ts +0 -2
  130. package/es/components/ResourceList/ResourceSelect.d.ts +0 -2
  131. package/es/components/ResourceList/ResourceSelectConnect.d.ts +0 -2
  132. package/es/components/ResourceList/index.d.ts +0 -1
  133. package/es/components/ResourceSelect/DefaultResourceSelectDrawer.d.ts +0 -1
  134. package/es/components/ResourceSelect/ResourceSelectDrawer.d.ts +0 -1
  135. package/es/components/SingleResourceDrawer/index.d.ts +0 -2
  136. package/es/components/TemplateButton/Icon.d.ts +0 -2
  137. package/es/components/TemplateButton/assets/index.d.ts +0 -8
  138. package/es/components/TemplateButton/index.d.ts +0 -2
  139. package/es/components/TemplateGroup/index.d.ts +0 -2
  140. package/es/components/TemplateSelect/index.d.ts +0 -2
  141. package/es/constants/ResDetailContants.d.ts +0 -1
  142. package/es/constants/constant.d.ts +0 -36
  143. package/es/constants/defaultCiTypeIcon.d.ts +0 -8
  144. package/es/contextmenu/createMenuCommands.d.ts +0 -5
  145. package/es/core/common/contextmenu/mergeContextmenu.d.ts +0 -1
  146. package/es/core/common/icons/defaultIcons.d.ts +0 -84
  147. package/es/core/components/TopoApp.d.ts +0 -1
  148. package/es/core/components/TopoAppProvider.d.ts +0 -1
  149. package/es/core/components/TopoAppView.d.ts +0 -14
  150. package/es/core/components/TopoView/Topo.d.ts +0 -5
  151. package/es/core/components/TopoView/Topo404.d.ts +0 -1
  152. package/es/core/components/TopoView/TopoContent.d.ts +0 -5
  153. package/es/core/components/TopoView/TopoNoPermission.d.ts +0 -1
  154. package/es/core/components/TopoView/topoView.d.ts +0 -19
  155. package/es/core/components/buildProvider.d.ts +0 -1
  156. package/es/core/components/titlebar/TitleBar.d.ts +0 -9
  157. package/es/core/components/titlebar/index.d.ts +0 -1
  158. package/es/core/components/titlebar/widgets/TitleWidget.d.ts +0 -1
  159. package/es/core/editor/LinkDynamicStyleConfig.d.ts +0 -5
  160. package/es/core/editor/components/EditorPlugin.d.ts +0 -1
  161. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/RuleSetting.d.ts +0 -1
  162. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/index.d.ts +0 -1
  163. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/ColorPicker.d.ts +0 -6
  164. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/Rule.d.ts +0 -1
  165. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleCondition.d.ts +0 -1
  166. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleStyle.d.ts +0 -1
  167. package/es/core/editor/components/ResourceViewAttributeSetting/ResourceViewAttributeSettingPlugin.d.ts +0 -4
  168. package/es/core/editor/components/ResourceViewAttributeSetting/Setting.d.ts +0 -5
  169. package/es/core/editor/components/iconManage/IconManage.d.ts +0 -1
  170. package/es/core/editor/components/iconManage/RenameDialog.d.ts +0 -1
  171. package/es/core/editor/components/iconManage/UploadIconDialog.d.ts +0 -30
  172. package/es/core/editor/components/iconManage/UploadIconDialogWrapper.d.ts +0 -1
  173. package/es/core/editor/components/iconManage/utils/svgToShape.d.ts +0 -1
  174. package/es/core/editor/components/settings/Settings.d.ts +0 -1
  175. package/es/core/editor/components/settings/SettingsForm.d.ts +0 -1
  176. package/es/core/editor/components/settings/Style.d.ts +0 -1
  177. package/es/core/editor/components/settings/common/LayoutSettings.d.ts +0 -2
  178. package/es/core/editor/components/settings/common/LineType.d.ts +0 -1
  179. package/es/core/editor/components/settings/common/NodeAlignType.d.ts +0 -1
  180. package/es/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.d.ts +0 -12
  181. package/es/core/editor/components/settings/common/NodeSizeInput/NodeSizeNumberPicker.d.ts +0 -7
  182. package/es/core/editor/components/settings/common/tab/TabView.d.ts +0 -1
  183. package/es/core/editor/components/settings/common/text/FontStyleCheckbox.d.ts +0 -1
  184. package/es/core/editor/components/settings/common/text/TextStyle.d.ts +0 -1
  185. package/es/core/editor/components/settings/common/text/fontStyleUtil.d.ts +0 -19
  186. package/es/core/editor/components/settings/group/GroupNodeList/GroupNodeList.d.ts +0 -1
  187. package/es/core/editor/components/settings/group/GroupNodeList/ResourceList.d.ts +0 -2
  188. package/es/core/editor/components/settings/group/GroupNodeList/ResourceSelectButton.d.ts +0 -1
  189. package/es/core/editor/components/settings/group/GroupNodeList/icon.d.ts +0 -87
  190. package/es/core/editor/components/settings/layer/LayerSettingsForm.d.ts +0 -1
  191. package/es/core/editor/components/settings/link/LinkPropertyView.d.ts +0 -1
  192. package/es/core/editor/components/settings/node/NodeIconSelect.d.ts +0 -1
  193. package/es/core/editor/components/settings/node/NodeIconSelectTest.d.ts +0 -1
  194. package/es/core/editor/components/settings/node/NodePropertyView.d.ts +0 -1
  195. package/es/core/editor/components/settings/node/NodeRelateResourceButton.d.ts +0 -4
  196. package/es/core/editor/components/settings/node/TopoTreeSelect.d.ts +0 -1
  197. package/es/core/editor/components/settings/text/TextPropertyView.d.ts +0 -1
  198. package/es/core/editor/components/settings/useSettingRuntimeState.d.ts +0 -5
  199. package/es/core/editor/components/settings/view/BatchSetNodeSize.d.ts +0 -1
  200. package/es/core/editor/components/settings/view/ViewPropertyView.d.ts +0 -1
  201. package/es/core/editor/components/titlebar/TopoEditorTitleBar.d.ts +0 -1
  202. package/es/core/editor/components/titlebar/widgets/SaveButton.d.ts +0 -1
  203. package/es/core/editor/contextmenu/buildContextmenu.d.ts +0 -6
  204. package/es/core/index.d.ts +0 -1
  205. package/es/core/models/AttributeMetricDisplay.d.ts +0 -8
  206. package/es/core/models/TopoGraphView.d.ts +0 -42
  207. package/es/core/models/TopoViewer.d.ts +0 -9
  208. package/es/core/models/attrAndMetric.d.ts +0 -1
  209. package/es/core/models/cache/CiTyeCache.d.ts +0 -12
  210. package/es/core/models/cache/DictCache.d.ts +0 -11
  211. package/es/core/models/common/Alarm.d.ts +0 -52
  212. package/es/core/models/common/ContextMenu.d.ts +0 -8
  213. package/es/core/models/createTopoApp.d.ts +0 -13
  214. package/es/core/models/plugins/resourceWebControllUrl.d.ts +0 -11
  215. package/es/core/models/utils/getRelationDetailByIds.d.ts +0 -1
  216. package/es/core/models/utils/linkUtils.d.ts +0 -3
  217. package/es/core/store/coreModels.d.ts +0 -18
  218. package/es/core/store/createStore.d.ts +0 -1
  219. package/es/core/test/Test.d.ts +0 -9
  220. package/es/core/utils/resourceUtil.d.ts +0 -5
  221. package/es/core/utils/showMessage.d.ts +0 -1
  222. package/es/core/viewer/components/plugins/ResourceDetail/ResourceDetailDrawerPlugin.d.ts +0 -1
  223. package/es/core/viewer/components/plugins/ResourceDetail/topoDrawer.d.ts +0 -2
  224. package/es/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.d.ts +0 -1
  225. package/es/core/viewer/components/plugins/ViewerPlugin.d.ts +0 -1
  226. package/es/core/viewer/components/titlebar/TopoViewerTitleBar.d.ts +0 -1
  227. package/es/core/viewer/components/titlebar/ViewerTools.d.ts +0 -1
  228. package/es/core/viewer/components/titlebar/widgets/EditButton.d.ts +0 -4
  229. package/es/core/viewer/components/titlebar/widgets/SearchWidget.d.ts +0 -8
  230. package/es/core/viewer/contextmenu/buildContextmenu.d.ts +0 -42
  231. package/es/core/viewer/contextmenu/buildLinkContextmenu.d.ts +0 -9
  232. package/es/core/viewer/contextmenu/buildNodeContextmenu.d.ts +0 -24
  233. package/es/core/viewer/contextmenu/buildViewContextmenu.d.ts +0 -7
  234. package/es/createTopo.d.ts +0 -2
  235. package/es/getStoreModels.d.ts +0 -35
  236. package/es/hooks/useAlarm.d.ts +0 -1
  237. package/es/hooks/useContainerLinkTopo.d.ts +0 -8
  238. package/es/hooks/usePolling.d.ts +0 -9
  239. package/es/hooks/useSelection.d.ts +0 -9
  240. package/es/hooks/useTopoEdit.d.ts +0 -83
  241. package/es/index.d.ts +0 -3
  242. package/es/mock/mock.d.ts +0 -187
  243. package/es/models/ciModel.d.ts +0 -15
  244. package/es/models/iconManage.d.ts +0 -39
  245. package/es/models/linkDynamicStyle.d.ts +0 -47
  246. package/es/models/linkDynamicStyleConfig.d.ts +0 -37
  247. package/es/models/linkManager.d.ts +0 -11
  248. package/es/models/resourceWebControllUrlSetting.d.ts +0 -13
  249. package/es/models/topoAlarm.d.ts +0 -15
  250. package/es/models/topoBizMod.d.ts +0 -42
  251. package/es/models/topoCreateMod.d.ts +0 -108
  252. package/es/models/topoEdit.d.ts +0 -13
  253. package/es/models/topoGraphView.d.ts +0 -11
  254. package/es/models/topoMod.d.ts +0 -86
  255. package/es/models/topoView.d.ts +0 -11
  256. package/es/topoCenter/components/Topology.d.ts +0 -1
  257. package/es/topoCenter/createTopo.d.ts +0 -3
  258. package/es/topoCenter/getTopoData.d.ts +0 -1
  259. package/es/topoCenter/index.d.ts +0 -3
  260. package/es/topoCenter/models/TopoCenter.d.ts +0 -11
  261. package/es/topoCenter/store/functionAuth.d.ts +0 -20
  262. package/es/topoCenter/store/topoCenter.d.ts +0 -32
  263. package/es/topoCenter/store/topoTreeMod.d.ts +0 -83
  264. package/es/topoCenter/viewer/components/TitleBar.d.ts +0 -1
  265. package/es/topoCenter/viewer/components/TopologyViewer.d.ts +0 -1
  266. package/es/topoCenter/viewer/createTopoViewer.d.ts +0 -3
  267. package/es/topoCenter/viewer/index.d.ts +0 -2
  268. package/es/utils/ciType.d.ts +0 -1
  269. package/es/utils/format.d.ts +0 -28
  270. package/es/utils/htElementDataUtil.d.ts +0 -5
  271. package/es/utils/htElementUtils.d.ts +0 -5
  272. package/es/utils/listToTree.d.ts +0 -1
  273. package/es/utils/resourceElementUtil.d.ts +0 -1
  274. package/es/utils/template.d.ts +0 -50
  275. package/es/utils/topoData.d.ts +0 -54
  276. package/es/utils/topoIconUtil.d.ts +0 -6
  277. package/es/utils/topoMocks.d.ts +0 -172
  278. package/es/utils/topoPermissionUtil.d.ts +0 -9
  279. package/es/utils/tree.d.ts +0 -15
  280. package/lib/common/components/ResourceTable/ResourceTable.d.ts +0 -2
  281. package/lib/common/plugins/useSelectionPlugin.d.ts +0 -23
  282. package/lib/components/BatchAttrMetric/constant.d.ts +0 -30
  283. package/lib/components/BatchAttrMetric/index.d.ts +0 -5
  284. package/lib/components/BatchAttrMetric/setting.d.ts +0 -6
  285. package/lib/components/BatchAttrMetric/utils.d.ts +0 -35
  286. package/lib/components/Drawer/index.d.ts +0 -2
  287. package/lib/components/FormTable/index.d.ts +0 -2
  288. package/lib/components/IndexSettingDrawer/CiList.d.ts +0 -2
  289. package/lib/components/IndexSettingDrawer/CiListItem.d.ts +0 -2
  290. package/lib/components/IndexSettingDrawer/IndexList.d.ts +0 -2
  291. package/lib/components/IndexSettingDrawer/index.d.ts +0 -2
  292. package/lib/components/Link/form.d.ts +0 -2
  293. package/lib/components/Link/hook.d.ts +0 -26
  294. package/lib/components/Link/index.d.ts +0 -6
  295. package/lib/components/Link/setting.d.ts +0 -8
  296. package/lib/components/MultiResourceDrawer/Content.d.ts +0 -2
  297. package/lib/components/MultiResourceDrawer/Dynamic.d.ts +0 -2
  298. package/lib/components/MultiResourceDrawer/ResourceCard/index.d.ts +0 -2
  299. package/lib/components/MultiResourceDrawer/ResourceSelect.d.ts +0 -2
  300. package/lib/components/MultiResourceDrawer/Static.d.ts +0 -2
  301. package/lib/components/MultiResourceDrawer/index.d.ts +0 -2
  302. package/lib/components/ResourceList/ResourceSelect.d.ts +0 -2
  303. package/lib/components/ResourceList/ResourceSelectConnect.d.ts +0 -2
  304. package/lib/components/ResourceList/index.d.ts +0 -1
  305. package/lib/components/ResourceSelect/DefaultResourceSelectDrawer.d.ts +0 -1
  306. package/lib/components/ResourceSelect/ResourceSelectDrawer.d.ts +0 -1
  307. package/lib/components/SingleResourceDrawer/index.d.ts +0 -2
  308. package/lib/components/TemplateButton/Icon.d.ts +0 -2
  309. package/lib/components/TemplateButton/assets/index.d.ts +0 -8
  310. package/lib/components/TemplateButton/index.d.ts +0 -2
  311. package/lib/components/TemplateGroup/index.d.ts +0 -2
  312. package/lib/components/TemplateSelect/index.d.ts +0 -2
  313. package/lib/constants/ResDetailContants.d.ts +0 -1
  314. package/lib/constants/constant.d.ts +0 -36
  315. package/lib/constants/defaultCiTypeIcon.d.ts +0 -8
  316. package/lib/contextmenu/createMenuCommands.d.ts +0 -5
  317. package/lib/core/common/contextmenu/mergeContextmenu.d.ts +0 -1
  318. package/lib/core/common/icons/defaultIcons.d.ts +0 -84
  319. package/lib/core/components/TopoApp.d.ts +0 -1
  320. package/lib/core/components/TopoAppProvider.d.ts +0 -1
  321. package/lib/core/components/TopoAppView.d.ts +0 -14
  322. package/lib/core/components/TopoView/Topo.d.ts +0 -5
  323. package/lib/core/components/TopoView/Topo404.d.ts +0 -1
  324. package/lib/core/components/TopoView/TopoContent.d.ts +0 -5
  325. package/lib/core/components/TopoView/TopoNoPermission.d.ts +0 -1
  326. package/lib/core/components/TopoView/topoView.d.ts +0 -19
  327. package/lib/core/components/buildProvider.d.ts +0 -1
  328. package/lib/core/components/titlebar/TitleBar.d.ts +0 -9
  329. package/lib/core/components/titlebar/index.d.ts +0 -1
  330. package/lib/core/components/titlebar/widgets/TitleWidget.d.ts +0 -1
  331. package/lib/core/editor/LinkDynamicStyleConfig.d.ts +0 -5
  332. package/lib/core/editor/components/EditorPlugin.d.ts +0 -1
  333. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/RuleSetting.d.ts +0 -1
  334. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/index.d.ts +0 -1
  335. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/ColorPicker.d.ts +0 -6
  336. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/Rule.d.ts +0 -1
  337. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleCondition.d.ts +0 -1
  338. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleStyle.d.ts +0 -1
  339. package/lib/core/editor/components/ResourceViewAttributeSetting/ResourceViewAttributeSettingPlugin.d.ts +0 -4
  340. package/lib/core/editor/components/ResourceViewAttributeSetting/Setting.d.ts +0 -5
  341. package/lib/core/editor/components/iconManage/IconManage.d.ts +0 -1
  342. package/lib/core/editor/components/iconManage/RenameDialog.d.ts +0 -1
  343. package/lib/core/editor/components/iconManage/UploadIconDialog.d.ts +0 -30
  344. package/lib/core/editor/components/iconManage/UploadIconDialogWrapper.d.ts +0 -1
  345. package/lib/core/editor/components/iconManage/utils/svgToShape.d.ts +0 -1
  346. package/lib/core/editor/components/settings/Settings.d.ts +0 -1
  347. package/lib/core/editor/components/settings/SettingsForm.d.ts +0 -1
  348. package/lib/core/editor/components/settings/Style.d.ts +0 -1
  349. package/lib/core/editor/components/settings/common/LayoutSettings.d.ts +0 -2
  350. package/lib/core/editor/components/settings/common/LineType.d.ts +0 -1
  351. package/lib/core/editor/components/settings/common/NodeAlignType.d.ts +0 -1
  352. package/lib/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.d.ts +0 -12
  353. package/lib/core/editor/components/settings/common/NodeSizeInput/NodeSizeNumberPicker.d.ts +0 -7
  354. package/lib/core/editor/components/settings/common/tab/TabView.d.ts +0 -1
  355. package/lib/core/editor/components/settings/common/text/FontStyleCheckbox.d.ts +0 -1
  356. package/lib/core/editor/components/settings/common/text/TextStyle.d.ts +0 -1
  357. package/lib/core/editor/components/settings/common/text/fontStyleUtil.d.ts +0 -19
  358. package/lib/core/editor/components/settings/group/GroupNodeList/GroupNodeList.d.ts +0 -1
  359. package/lib/core/editor/components/settings/group/GroupNodeList/ResourceList.d.ts +0 -2
  360. package/lib/core/editor/components/settings/group/GroupNodeList/ResourceSelectButton.d.ts +0 -1
  361. package/lib/core/editor/components/settings/group/GroupNodeList/icon.d.ts +0 -87
  362. package/lib/core/editor/components/settings/layer/LayerSettingsForm.d.ts +0 -1
  363. package/lib/core/editor/components/settings/link/LinkPropertyView.d.ts +0 -1
  364. package/lib/core/editor/components/settings/node/NodeIconSelect.d.ts +0 -1
  365. package/lib/core/editor/components/settings/node/NodeIconSelectTest.d.ts +0 -1
  366. package/lib/core/editor/components/settings/node/NodePropertyView.d.ts +0 -1
  367. package/lib/core/editor/components/settings/node/NodeRelateResourceButton.d.ts +0 -4
  368. package/lib/core/editor/components/settings/node/TopoTreeSelect.d.ts +0 -1
  369. package/lib/core/editor/components/settings/text/TextPropertyView.d.ts +0 -1
  370. package/lib/core/editor/components/settings/useSettingRuntimeState.d.ts +0 -5
  371. package/lib/core/editor/components/settings/view/BatchSetNodeSize.d.ts +0 -1
  372. package/lib/core/editor/components/settings/view/ViewPropertyView.d.ts +0 -1
  373. package/lib/core/editor/components/titlebar/TopoEditorTitleBar.d.ts +0 -1
  374. package/lib/core/editor/components/titlebar/widgets/SaveButton.d.ts +0 -1
  375. package/lib/core/editor/contextmenu/buildContextmenu.d.ts +0 -6
  376. package/lib/core/index.d.ts +0 -1
  377. package/lib/core/models/AttributeMetricDisplay.d.ts +0 -8
  378. package/lib/core/models/TopoGraphView.d.ts +0 -42
  379. package/lib/core/models/TopoViewer.d.ts +0 -9
  380. package/lib/core/models/attrAndMetric.d.ts +0 -1
  381. package/lib/core/models/cache/CiTyeCache.d.ts +0 -12
  382. package/lib/core/models/cache/DictCache.d.ts +0 -11
  383. package/lib/core/models/common/Alarm.d.ts +0 -52
  384. package/lib/core/models/common/ContextMenu.d.ts +0 -8
  385. package/lib/core/models/createTopoApp.d.ts +0 -13
  386. package/lib/core/models/plugins/resourceWebControllUrl.d.ts +0 -11
  387. package/lib/core/models/utils/getRelationDetailByIds.d.ts +0 -1
  388. package/lib/core/models/utils/linkUtils.d.ts +0 -3
  389. package/lib/core/store/coreModels.d.ts +0 -18
  390. package/lib/core/store/createStore.d.ts +0 -1
  391. package/lib/core/test/Test.d.ts +0 -9
  392. package/lib/core/utils/resourceUtil.d.ts +0 -5
  393. package/lib/core/utils/showMessage.d.ts +0 -1
  394. package/lib/core/viewer/components/plugins/ResourceDetail/ResourceDetailDrawerPlugin.d.ts +0 -1
  395. package/lib/core/viewer/components/plugins/ResourceDetail/topoDrawer.d.ts +0 -2
  396. package/lib/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.d.ts +0 -1
  397. package/lib/core/viewer/components/plugins/ViewerPlugin.d.ts +0 -1
  398. package/lib/core/viewer/components/titlebar/TopoViewerTitleBar.d.ts +0 -1
  399. package/lib/core/viewer/components/titlebar/ViewerTools.d.ts +0 -1
  400. package/lib/core/viewer/components/titlebar/widgets/EditButton.d.ts +0 -4
  401. package/lib/core/viewer/components/titlebar/widgets/SearchWidget.d.ts +0 -8
  402. package/lib/core/viewer/contextmenu/buildContextmenu.d.ts +0 -42
  403. package/lib/core/viewer/contextmenu/buildLinkContextmenu.d.ts +0 -9
  404. package/lib/core/viewer/contextmenu/buildNodeContextmenu.d.ts +0 -24
  405. package/lib/core/viewer/contextmenu/buildViewContextmenu.d.ts +0 -7
  406. package/lib/createTopo.d.ts +0 -2
  407. package/lib/getStoreModels.d.ts +0 -35
  408. package/lib/hooks/useAlarm.d.ts +0 -1
  409. package/lib/hooks/useContainerLinkTopo.d.ts +0 -8
  410. package/lib/hooks/usePolling.d.ts +0 -9
  411. package/lib/hooks/useSelection.d.ts +0 -9
  412. package/lib/hooks/useTopoEdit.d.ts +0 -83
  413. package/lib/index.d.ts +0 -3
  414. package/lib/mock/mock.d.ts +0 -187
  415. package/lib/models/ciModel.d.ts +0 -15
  416. package/lib/models/iconManage.d.ts +0 -39
  417. package/lib/models/linkDynamicStyle.d.ts +0 -47
  418. package/lib/models/linkDynamicStyleConfig.d.ts +0 -37
  419. package/lib/models/linkManager.d.ts +0 -11
  420. package/lib/models/resourceWebControllUrlSetting.d.ts +0 -13
  421. package/lib/models/topoAlarm.d.ts +0 -15
  422. package/lib/models/topoBizMod.d.ts +0 -42
  423. package/lib/models/topoCreateMod.d.ts +0 -108
  424. package/lib/models/topoEdit.d.ts +0 -13
  425. package/lib/models/topoGraphView.d.ts +0 -11
  426. package/lib/models/topoMod.d.ts +0 -86
  427. package/lib/models/topoView.d.ts +0 -11
  428. package/lib/topoCenter/components/Topology.d.ts +0 -1
  429. package/lib/topoCenter/createTopo.d.ts +0 -3
  430. package/lib/topoCenter/getTopoData.d.ts +0 -1
  431. package/lib/topoCenter/index.d.ts +0 -3
  432. package/lib/topoCenter/models/TopoCenter.d.ts +0 -11
  433. package/lib/topoCenter/store/functionAuth.d.ts +0 -20
  434. package/lib/topoCenter/store/topoCenter.d.ts +0 -32
  435. package/lib/topoCenter/store/topoTreeMod.d.ts +0 -83
  436. package/lib/topoCenter/viewer/components/TitleBar.d.ts +0 -1
  437. package/lib/topoCenter/viewer/components/TopologyViewer.d.ts +0 -1
  438. package/lib/topoCenter/viewer/createTopoViewer.d.ts +0 -3
  439. package/lib/topoCenter/viewer/index.d.ts +0 -2
  440. package/lib/utils/ciType.d.ts +0 -1
  441. package/lib/utils/format.d.ts +0 -28
  442. package/lib/utils/htElementDataUtil.d.ts +0 -5
  443. package/lib/utils/htElementUtils.d.ts +0 -5
  444. package/lib/utils/listToTree.d.ts +0 -1
  445. package/lib/utils/resourceElementUtil.d.ts +0 -1
  446. package/lib/utils/template.d.ts +0 -50
  447. package/lib/utils/topoData.d.ts +0 -54
  448. package/lib/utils/topoIconUtil.d.ts +0 -6
  449. package/lib/utils/topoMocks.d.ts +0 -172
  450. package/lib/utils/topoPermissionUtil.d.ts +0 -9
  451. package/lib/utils/tree.d.ts +0 -15
@@ -1,35 +0,0 @@
1
- declare namespace _default {
2
- export { topoMod };
3
- export { iconManage };
4
- export { ciModel };
5
- export { functionAuth };
6
- export { linkManager };
7
- export { linkDynamicStyle };
8
- export { linkDynamicStyleConfig };
9
- export { resourceWebControllUrlSetting };
10
- export { topoBizMod };
11
- export { topoCenter };
12
- export { topoCreateMod };
13
- export { topoEdit };
14
- export { topoTreeMod };
15
- export { topoView };
16
- export { topoGraphView };
17
- export { topoAlarm };
18
- }
19
- export default _default;
20
- import topoMod from "./models/topoMod";
21
- import iconManage from "./models/iconManage";
22
- import ciModel from "./models/ciModel";
23
- import functionAuth from "./topoCenter/store/functionAuth";
24
- import linkManager from "./models/linkManager";
25
- import linkDynamicStyle from "./models/linkDynamicStyle";
26
- import linkDynamicStyleConfig from "./models/linkDynamicStyleConfig";
27
- import resourceWebControllUrlSetting from "./models/resourceWebControllUrlSetting";
28
- import topoBizMod from "./models/topoBizMod";
29
- import topoCenter from "./topoCenter/store/topoCenter";
30
- import topoCreateMod from "./models/topoCreateMod";
31
- import topoEdit from "./models/topoEdit";
32
- import topoTreeMod from "./topoCenter/store/topoTreeMod";
33
- import topoView from "./models/topoView";
34
- import topoGraphView from "./models/topoGraphView";
35
- import topoAlarm from "./models/topoAlarm";
@@ -1 +0,0 @@
1
- export default function useAlarm(options: any): void;
@@ -1,8 +0,0 @@
1
- /**
2
- * 关联拓扑
3
- *
4
- * 双击容器打开关联拓扑图,双击缩略图返回原拓扑图
5
- */
6
- export default function useContainerLinkTopo(params: any): {
7
- onEvent: (event: any) => void;
8
- };
@@ -1,9 +0,0 @@
1
- export default usePolling;
2
- /**
3
- * 轮询获取指标hooks
4
- * @param {*} props
5
- */
6
- declare function usePolling(props: any): {
7
- startPoll: () => Promise<any>;
8
- stopPoll: import("@ahooksjs/use-request/lib/types").noop;
9
- };
@@ -1,9 +0,0 @@
1
- /**
2
- * Selection
3
- */
4
- export default function _default(props: any): {
5
- selection: any[];
6
- initSelection: () => void;
7
- clearSelection: (data: any) => void;
8
- updateSelection: (data: any) => void;
9
- };
@@ -1,83 +0,0 @@
1
- export default useTopoEdit;
2
- declare function useTopoEdit(params: any): {
3
- /**
4
- * 拓扑结构加载中状态
5
- */
6
- topoLoading: any;
7
- /**
8
- * 资源绑定(单选)抽屉显示状态
9
- */
10
- showSingleResDrawer: boolean;
11
- /**
12
- * 资源绑定(单选)已选择资源
13
- */
14
- initialSingleRes: any;
15
- /**
16
- * 资源绑定(多选)抽屉显示状态
17
- */
18
- showComboResDrawer: boolean;
19
- /**
20
- * 资源绑定(多选)已选择资源(动态+固定)
21
- */
22
- initialComboRes: any;
23
- /**
24
- * 当前资源对应的拓扑结构(点+线+容器)
25
- */
26
- topo: any;
27
- /**
28
- * 拓扑图全局已选固定资源
29
- */
30
- resSelections: any;
31
- /**
32
- * 进入编辑模式回调
33
- */
34
- onEnterEdit: () => Promise<void>;
35
- /**
36
- * 退出编辑模式回调
37
- */
38
- onExitEdit: () => void;
39
- /**
40
- * 发起业务数据(资源、链路)绑定回调
41
- */
42
- onBindData: (eventData: any) => void;
43
- /**
44
- * 增加资源到视图
45
- */
46
- addResourceToView: () => void;
47
- /**
48
- * 关联/重新关联资源
49
- */
50
- bindNodeResource: (node: any) => void;
51
- /**
52
- * 增加资源到容器
53
- */
54
- addResourceToGroup: (group: any) => void;
55
- /**
56
- * 资源绑定(单选)保存选择
57
- */
58
- onSaveSingleRes: (resource: any) => boolean;
59
- /**
60
- * 关闭资源绑定(单选)抽屉
61
- */
62
- onCloseSigleResDrawer: () => void;
63
- /**
64
- * 资源绑定(多选)保存选择
65
- */
66
- onSaveComboRes: (data: any) => any;
67
- /**
68
- * 关闭资源绑定(多选)抽屉
69
- */
70
- onCloseComboResDrawer: () => void;
71
- /**
72
- * 拓扑图元素(节点、连线、容器)删除回调
73
- */
74
- onDeleteElement: (data: any) => void;
75
- /**
76
- * 拓扑图保存回调
77
- */
78
- onSaveTopo: (data: any) => Promise<void>;
79
- /**
80
- * 从关联资源切换关联拓扑图事件
81
- */
82
- onTopoRelatedImage: (eventData: any) => void;
83
- };
package/es/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from "./createTopo";
2
- export * from "./core/components/titlebar";
3
- export { Topology };
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;