@riil-frontend/component-topology 4.0.0-beta.3 → 4.0.0-beta.32

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 (511) hide show
  1. package/README.md +14 -14
  2. package/build/1.js +2 -2
  3. package/build/2.js +1 -1
  4. package/build/index.css +1 -1
  5. package/build/index.js +21 -21
  6. package/demo/1/345/237/272/346/234/254/usage.md +11 -11
  7. package/demo/1/345/237/272/346/234/254//345/210/207/346/215/242/345/233/276/346/240/207.md +11 -11
  8. package/demo/1/345/237/272/346/234/254//345/221/212/350/255/246/346/216/250/351/200/201.md +15 -15
  9. package/demo/1/345/237/272/346/234/254//345/256/232/345/210/266/345/214/226/350/265/204/346/272/220/346/246/202/350/247/210.md +11 -11
  10. package/demo/1/345/237/272/346/234/254//346/230/276/347/244/272/346/250/241/345/274/217/345/217/263/351/224/256/350/217/234/345/215/225.md +16 -16
  11. package/demo/1/345/237/272/346/234/254//350/207/252/345/256/232/344/271/211/345/233/276/346/240/207.md +13 -13
  12. package/demo/1/345/237/272/346/234/254//350/207/252/345/256/232/344/271/211/346/240/207/346/263/250/345/222/214/346/202/254/346/265/256/346/241/206.md +11 -11
  13. package/demo/2/347/274/226/350/276/221/346/250/241/345/274/217//345/210/206/345/261/202/344/277/256/346/224/271/346/225/260/346/215/256.md +11 -11
  14. package/demo/2/347/274/226/350/276/221/346/250/241/345/274/217//345/210/206/345/261/202/346/267/273/345/212/240/350/265/204/346/272/220.md +11 -11
  15. package/demo/2/347/274/226/350/276/221/346/250/241/345/274/217//345/261/236/346/200/247/351/235/242/346/235/277.md +11 -11
  16. package/demo/2/347/274/226/350/276/221/346/250/241/345/274/217//346/226/260/345/273/272/350/277/233/345/205/245/347/274/226/350/276/221/346/250/241/345/274/217.md +11 -11
  17. package/demo/2/347/274/226/350/276/221/346/250/241/345/274/217//346/233/277/346/215/242/350/212/202/347/202/271.md +14 -14
  18. package/demo/2/347/274/226/350/276/221/346/250/241/345/274/217//347/246/201/347/224/250/345/205/263/350/201/224/350/265/204/346/272/220.md +17 -17
  19. package/demo/2/347/274/226/350/276/221/346/250/241/345/274/217//347/274/226/350/276/221/346/250/241/345/274/217/345/217/263/351/224/256/350/217/234/345/215/225.md +16 -16
  20. package/demo/2/347/274/226/350/276/221/346/250/241/345/274/217//350/207/252/345/256/232/344/271/211/345/210/206/345/261/202/346/267/273/345/212/240/350/265/204/346/272/220.md +11 -11
  21. package/demo/3/346/213/223/346/211/221/344/270/255/345/277/203/js/TopoFull.jsx +74 -74
  22. package/demo/3/346/213/223/346/211/221/344/270/255/345/277/203/js/TopoViewer.jsx +97 -97
  23. package/demo/3/346/213/223/346/211/221/344/270/255/345/277/203/js/mock/authorization/v1/api/authority/check/checkFuncAuthentication +13 -13
  24. package/demo/3/346/213/223/346/211/221/344/270/255/345/277/203/js/mock/authorization/v1/api/authority/check/checkFuncAuthentication.json +13 -13
  25. package/demo/3/346/213/223/346/211/221/344/270/255/345/277/203/js/mock/model/v1/api/getAllDict +1028 -1028
  26. package/demo/3/346/213/223/346/211/221/344/270/255/345/277/203/js/mock/topo/v1/api/attributes/once +2595 -2595
  27. package/demo/3/346/213/223/346/211/221/344/270/255/345/277/203/js/mock/topo/v1/api/attributes/once.json +2595 -2595
  28. package/demo/3/346/213/223/346/211/221/344/270/255/345/277/203/js/mock/topo/v1/api/attributes/polling +2292 -2292
  29. package/demo/3/346/213/223/346/211/221/344/270/255/345/277/203/js/mock/topo/v1/api/attributes/polling.json +2292 -2292
  30. package/demo/3/346/213/223/346/211/221/344/270/255/345/277/203/js/mock/topo/v1/api/menu +47 -47
  31. package/demo/3/346/213/223/346/211/221/344/270/255/345/277/203/js/mock/topo/v1/api/menu.json +47 -47
  32. package/demo/3/346/213/223/346/211/221/344/270/255/345/277/203/js/mock/topo/v1/api/structure/both/2 +618 -618
  33. package/demo/3/346/213/223/346/211/221/344/270/255/345/277/203/js/mock/topo/v1/api/structure/both/2.json +617 -617
  34. package/demo/3/346/213/223/346/211/221/344/270/255/345/277/203/js/mock/topo/v1/api/structure/both/4 +617 -617
  35. package/demo/3/346/213/223/346/211/221/344/270/255/345/277/203/js/mock/topo/v1/api/structure/relationList +191 -191
  36. package/demo/3/346/213/223/346/211/221/344/270/255/345/277/203/js/mock/topo/v1/api/structure/relationList.json +191 -191
  37. package/demo/3/346/213/223/346/211/221/344/270/255/345/277/203/js/request.js +7 -7
  38. package/demo/3/346/213/223/346/211/221/344/270/255/345/277/203//345/256/214/346/225/264/346/250/241/345/274/217.md +10 -10
  39. package/demo/3/346/213/223/346/211/221/344/270/255/345/277/203//346/230/276/347/244/272/346/250/241/345/274/217.md +10 -10
  40. package/demo/4/344/270/232/345/212/241/347/233/221/346/216/247/346/213/223/346/211/221//345/206/205/347/275/256/345/221/212/350/255/246/345/210/227/350/241/250.md +13 -13
  41. package/demo/4/344/270/232/345/212/241/347/233/221/346/216/247/346/213/223/346/211/221//345/272/224/347/224/250/351/203/250/347/275/262/346/213/223/346/211/221.md +11 -11
  42. package/demo/4/344/270/232/345/212/241/347/233/221/346/216/247/346/213/223/346/211/221//346/225/260/346/215/256/346/265/201/346/213/223/346/211/221.md +18 -18
  43. package/demo/5/345/205/266/344/273/226/347/273/204/344/273/266//345/233/276/346/240/207/351/200/211/346/213/251.md +31 -31
  44. package/demo/5/345/205/266/344/273/226/347/273/204/344/273/266//346/240/221/345/270/203/345/261/200/346/226/271/345/220/221.md +12 -12
  45. package/demo/5/345/205/266/344/273/226/347/273/204/344/273/266//350/265/204/346/272/220/346/246/202/350/247/210/347/273/204/344/273/266.md +9 -9
  46. package/demo/5/345/205/266/344/273/226/347/273/204/344/273/266//351/200/211/346/213/251/350/265/204/346/272/220/347/273/204/344/273/266.md +12 -12
  47. package/demo/API//345/210/233/345/273/272/346/213/223/346/211/221/346/250/241/345/236/213.md +42 -42
  48. package/demo/API//345/270/203/345/261/200.md +16 -16
  49. package/demo/API//346/250/241/345/236/213.md +110 -110
  50. package/demo/API//347/273/204/344/273/266.md +66 -66
  51. package/demo/CHANGELOG/CHANGELOG.md +49 -49
  52. package/demo//346/240/207/346/263/250/345/222/214/346/202/254/346/265/256/346/241/206//350/207/252/345/256/232/344/271/211/345/261/236/346/200/247/345/222/214/346/214/207/346/240/207.md +16 -16
  53. package/demo-mock/1.json +1 -1
  54. package/demo-mock/basic/cmdb/v1/api/authority/ci/commonQuery +739 -739
  55. package/demo-mock/basic/mdc/v1/api/.DS_Store +0 -0
  56. package/demo-mock/basic/mdc/v1/api/cmdb/.DS_Store +0 -0
  57. package/demo-mock/basic/mdc/v1/api/cmdb/authority/commonQueryCiData +739 -739
  58. package/demo-mock/basic/mdc/v1/api/model-dict/list +508 -508
  59. package/demo-mock/basic/model/v1/api/getAllDict +1028 -1028
  60. package/demo-mock/basic/model/v1/api/modelTree +3888 -3888
  61. package/demo-mock/basic/topo/v1/api/attributes/once +10294 -10294
  62. package/demo-mock/basic/topo/v1/api/attributes/once.json +10294 -10294
  63. package/demo-mock/basic/topo/v1/api/attributes/polling +2293 -2293
  64. package/demo-mock/basic/topo/v1/api/attributes/polling.json +2293 -2293
  65. package/demo-mock/basic/topo/v1/api/menu +47 -47
  66. package/demo-mock/basic/topo/v1/api/menu.json +47 -47
  67. package/demo-mock/basic/topo/v1/api/structure/both/1 +2 -2
  68. package/demo-mock/basic/topo/v1/api/structure/both/2 +2 -2
  69. package/demo-mock/basic/topo/v1/api/structure/both/3 +2 -2
  70. package/demo-mock/basic/topo/v1/api/structure/byCondition/2 +1 -1
  71. package/demo-mock/basic/topo/v1/api/structure/relationList +1 -1
  72. package/es/common/components/ColorPicker/ColorPicker.module.scss +15 -15
  73. package/es/common/components/ColorPicker/ColorPicker.scss +11 -11
  74. package/es/common/components/ResourceTable/ResourceTable.module.scss +7 -7
  75. package/es/common/plugins/useSelectionPlugin.js +3 -3
  76. package/es/components/BatchAttrMetric/index.js +7 -7
  77. package/es/components/BatchAttrMetric/index.module.scss +76 -76
  78. package/es/components/BatchAttrMetric/utils.js +33 -33
  79. package/es/components/Drawer/Drawer.js +60 -0
  80. package/es/components/Drawer/index.js +1 -59
  81. package/es/components/Drawer/index.module.scss +41 -41
  82. package/es/components/FullheightTab/FullheightTab.module.scss +19 -19
  83. package/es/components/IndexSettingDrawer/index.module.scss +44 -44
  84. package/es/components/LayoutDirectionSelect/Item.module.scss +8 -8
  85. package/es/components/LayoutDirectionSelect/LayoutDirectionSelect.module.scss +5 -5
  86. package/es/components/LayoutSelect/LayoutSelect.module.scss +4 -4
  87. package/es/components/LayoutSelect/README.md +1 -1
  88. package/es/components/MultiResourceDrawer/Content.js +3 -3
  89. package/es/components/MultiResourceDrawer/ResourceCard/index.module.scss +14 -14
  90. package/es/components/MultiResourceDrawer/index.module.scss +3 -3
  91. package/es/components/ResourceList/ResourceSelect.module.scss +7 -7
  92. package/es/components/ResourceSelect/ResourceSelectDrawer.js +6 -6
  93. package/es/components/ResourceSelect/ResourceSelectDrawer.module.scss +13 -13
  94. package/es/components/ResourceSelectDrawer/ResourceSelectDrawer.js +6 -6
  95. package/es/components/ResourceSelectDrawer/ResourceSelectDrawer.module.scss +5 -5
  96. package/es/components/SingleResourceDrawer/SingleResourceDrawer.js +5 -5
  97. package/es/components/TagImageSelect/index.module.scss +7 -7
  98. package/es/components/TagSelect/index.scss +28 -28
  99. package/es/components/TemplateButton/assets/topo_layout_circular.svg +9 -9
  100. package/es/components/TemplateButton/assets/topo_layout_hierarchical.svg +9 -9
  101. package/es/components/TemplateButton/assets/topo_layout_toward.svg +15 -15
  102. package/es/components/TemplateButton/index.module.scss +53 -53
  103. package/es/components/collapse/Panel.js +14 -14
  104. package/es/components/collapse/Panel.module.scss +11 -11
  105. package/es/components/index.module.scss +31 -31
  106. package/es/constants/ResourceInfoDisplay.js +15 -18
  107. package/es/contextmenu/createMenuCommands.js +5 -5
  108. package/es/core/common/icons/icon.js +11 -11
  109. package/es/core/common/text.module.scss +5 -5
  110. package/es/core/components/AlarmListPanel/components/AlarmListItem.js +31 -1
  111. package/es/core/components/AlarmListPanel/components/index.module.scss +7 -7
  112. package/es/core/components/AlarmListPanel/constants/uicbb.js +5 -5
  113. package/es/core/components/AlarmListPanel/hooks/useAlarmList.js +34 -0
  114. package/es/core/components/AlarmListPanel/index.js +27 -24
  115. package/es/core/components/AlarmListPanel/index.module.scss +142 -112
  116. package/es/core/components/DisplaySettingDrawer/DisplaySetting.js +5 -5
  117. package/es/core/components/DisplaySettingDrawer/LinkTag.js +4 -4
  118. package/es/core/components/DisplaySettingDrawer/LinkTip.js +4 -4
  119. package/es/core/components/DisplaySettingDrawer/NodeTag.js +4 -4
  120. package/es/core/components/DisplaySettingDrawer/NodeTip.js +4 -4
  121. package/es/core/components/DisplaySettingDrawer/ResourceDisplay/BasicConfig.js +7 -4
  122. package/es/core/components/DisplaySettingDrawer/ResourceDisplay/CommonCheckboxGroup.module.scss +22 -22
  123. package/es/core/components/DisplaySettingDrawer/ResourceDisplay/useElementTagTipConfig.js +2 -2
  124. package/es/core/components/DisplaySettingDrawer/tagtip/CustomSettingDrawer/CustomSetting.js +25 -0
  125. package/es/core/components/DisplaySettingDrawer/tagtip/CustomSettingDrawer/CustomSettingDrawer.js +8 -0
  126. package/es/core/components/ResourceViewAttributeSetting/Setting.js +4 -4
  127. package/es/core/components/TopoView/TopoView.module.scss +27 -27
  128. package/es/core/components/TopoView/topoView.js +5 -5
  129. package/es/core/components/titlebar/TitleBar.module.scss +37 -37
  130. package/es/core/createTopoApp.js +4 -4
  131. package/es/core/editor/components/BackgroundView/UploadDialog/index.js +2 -2
  132. package/es/core/editor/components/BackgroundView/UploadDialog/index.module.scss +8 -8
  133. package/es/core/editor/components/BackgroundView/index.module.scss +94 -94
  134. package/es/core/editor/components/CustomIconPlugin/UploadIconDialog.js +2 -2
  135. package/es/core/editor/components/CustomIconPlugin/UploadIconDialog.module.scss +3 -3
  136. package/es/core/editor/components/CustomIconPlugin/UploadIconDialog.scss +6 -6
  137. package/es/core/editor/components/GroupAddResourceDrawerPlugin/index.js +2 -2
  138. package/es/core/editor/components/settings/README.md +2 -2
  139. package/es/core/editor/components/settings/Settings.module.scss +80 -80
  140. package/es/core/editor/components/settings/common/AlignSetting/AlignSetting.module.scss +36 -36
  141. package/es/core/editor/components/settings/common/GroupNodeList/CollapseFullheight.module.scss +20 -20
  142. package/es/core/editor/components/settings/common/GroupNodeList/ResourceList.module.scss +49 -49
  143. package/es/core/editor/components/settings/common/LayoutSettings.module.scss +66 -66
  144. package/es/core/editor/components/settings/common/LineType/LineType.module.scss +33 -33
  145. package/es/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.js +4 -4
  146. package/es/core/editor/components/settings/common/SizeInput/NodeSizeInput.js +4 -4
  147. package/es/core/editor/components/settings/common/SizeInput/NodeSizeInput.module.scss +5 -5
  148. package/es/core/editor/components/settings/common/SizeInput/NodeSizeNumberPicker.js +5 -5
  149. package/es/core/editor/components/settings/common/SizeInput/img/icon_/350/247/243/351/224/201.svg +15 -15
  150. package/es/core/editor/components/settings/common/SizeInput/img/icon_/351/224/201.svg +14 -14
  151. package/es/core/editor/components/settings/common/tab/TabView.module.scss +29 -29
  152. package/es/core/editor/components/settings/common/text/FontStyleCheckbox.module.scss +31 -31
  153. package/es/core/editor/components/settings/common/text/img/bold.svg +11 -11
  154. package/es/core/editor/components/settings/common/text/img/italics.svg +9 -9
  155. package/es/core/editor/components/settings/common/text/img/underline.svg +11 -11
  156. package/es/core/editor/components/settings/propertyViews/edge/EdgePropertyView.js +2 -2
  157. package/es/core/editor/components/settings/propertyViews/group/DataTab/ClusterGroupRelateData/ClusterGroupRelateData.js +8 -2
  158. package/es/core/editor/components/settings/propertyViews/group/DataTab/GroupNodeList.js +7 -5
  159. package/es/core/editor/components/settings/propertyViews/group/DataTab/hoooks/useGroupRelateResource.js +13 -12
  160. package/es/core/editor/components/settings/propertyViews/group/GroupPropertyView.module.scss +3 -3
  161. package/es/core/editor/components/settings/propertyViews/group/SettingTab/GroupExpandStatus.js +6 -6
  162. package/es/core/editor/components/settings/propertyViews/layer/DataTab/NodeList.js +4 -7
  163. package/es/core/editor/components/settings/propertyViews/multipleElements/BatchSetNodeIcon.js +21 -0
  164. package/es/core/editor/components/settings/propertyViews/multipleElements/MultipleElementPropertyView.js +7 -2
  165. package/es/core/editor/components/settings/propertyViews/node/NodePropertyView.module.scss +3 -3
  166. package/es/core/editor/components/settings/propertyViews/node/data/BindResourceDrawer.js +5 -5
  167. package/es/core/editor/components/settings/propertyViews/node/data/NodeRelateResourceButton.js +2 -2
  168. package/es/core/editor/components/settings/propertyViews/view/GlobalEdgeToggle.js +5 -5
  169. package/es/core/editor/components/settings/propertyViews/view/GlobalLayout.js +2 -2
  170. package/es/core/editor/components/settings/propertyViews/view/GlobalTootipSetting.js +4 -4
  171. package/es/core/hooks/useRouterAdapter.js +3 -3
  172. package/es/core/models/Alarm.js +33 -33
  173. package/es/core/models/AttributeMetricDisplay.js +81 -67
  174. package/es/core/models/EdgeGroup.js +5 -5
  175. package/es/core/models/PluginManager.js +2 -2
  176. package/es/core/models/TopoApp.js +58 -53
  177. package/es/core/models/TopoGraphView.js +11 -11
  178. package/es/core/models/TopoViewer.js +2 -2
  179. package/es/core/models/attributeFormatter/index.js +9 -33
  180. package/es/core/models/cache/{CiTyeCache.js → CiTypeCache.js} +5 -3
  181. package/es/core/models/cache/DictCache.js +2 -2
  182. package/es/core/models/graph/Background.js +2 -2
  183. package/es/core/models/tagstips/ElementTagTipConfig.js +132 -0
  184. package/es/core/models/tagstips/utils.js +44 -0
  185. package/es/core/services/alarm.js +4 -4
  186. package/es/core/services/background.js +13 -13
  187. package/es/core/services/overview.js +43 -18
  188. package/es/core/services/topo.js +30 -0
  189. package/es/core/utils/backgroundUtil.js +10 -10
  190. package/es/core/utils/edgeUtil.js +4 -4
  191. package/es/core/utils/imageUtil.js +3 -3
  192. package/es/core/utils/resourceUtil.js +3 -3
  193. package/es/core/utils/saveSerialize.js +4 -4
  194. package/es/core/viewer/components/plugins/ResourceDetail/ResourceDetail.js +33 -13
  195. package/es/core/viewer/components/plugins/ResourceDetail/components/ClusterMemberTable.js +2 -2
  196. package/es/core/viewer/components/plugins/ResourceDetail/components/ClusterMemberTable.module.scss +9 -9
  197. package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/BaseInfo.js +5 -84
  198. package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/BaseInfoBlock.js +13 -3
  199. package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/BlockBox.module.scss +29 -29
  200. package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +238 -291
  201. package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverviewMetric.js +8 -5
  202. package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/SingleResourceStrategyLink.js +3 -2
  203. package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/Configurator/index.js +41 -27
  204. package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/Configurator/index.scss +91 -87
  205. package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useMetricModels.js +3 -3
  206. package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/index.module.scss +141 -135
  207. package/es/core/viewer/components/plugins/ResourceDetail/index.module.scss +36 -36
  208. package/es/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.module.scss +11 -11
  209. package/es/core/viewer/components/titlebar/BasicTools.js +5 -2
  210. package/es/core/viewer/components/titlebar/widgets/AlarmListShowButton.js +4 -4
  211. package/es/core/viewer/components/titlebar/widgets/EditButton.js +2 -2
  212. package/es/core/viewer/components/titlebar/widgets/NodesDragSwitch.js +8 -6
  213. package/es/core/viewer/components/titlebar/widgets/SettingButton.js +4 -4
  214. package/es/core/viewer/components/titlebar/widgets/SettingButtonWidget.js +4 -4
  215. package/es/hooks/useAlarm.js +63 -4
  216. package/es/hooks/useEventData.js +20 -0
  217. package/es/hooks/useGraphAlarmDisplay.js +34 -6
  218. package/es/hooks/useManageStatus.js +5 -5
  219. package/es/hooks/usePolling.js +6 -6
  220. package/es/hooks/useResourceConfig.js +28 -35
  221. package/es/hooks/useSelection.js +4 -6
  222. package/es/hooks/useTopoEdit.js +177 -122
  223. package/es/index.scss +4 -4
  224. package/es/models/background.js +7 -7
  225. package/es/models/customIcon.js +6 -6
  226. package/es/models/displayConfig.js +8 -8
  227. package/es/models/resourceWebControllUrlSetting.js +2 -2
  228. package/es/models/selection.js +2 -2
  229. package/es/models/topoAlarm.js +14 -10
  230. package/es/models/topoBaseInfoOverview.js +2 -2
  231. package/es/models/topoBizMod.js +6 -6
  232. package/es/models/topoConfig.js +11 -11
  233. package/es/models/topoEdit.js +2 -2
  234. package/es/models/topoGraphView.js +2 -2
  235. package/es/models/topoMod.js +32 -32
  236. package/es/models/topoView.js +2 -2
  237. package/es/models/viewer/lock.js +2 -2
  238. package/es/style.js +1 -0
  239. package/es/topoCenter/components/Link/hook.js +19 -19
  240. package/es/topoCenter/components/Link/index copy.js +3 -3
  241. package/es/topoCenter/components/Link/index.js +3 -3
  242. package/es/topoCenter/components/Link/index.module.scss +86 -86
  243. package/es/topoCenter/components/TopoView.js +4 -3
  244. package/es/topoCenter/components/Topology.js +4 -0
  245. package/es/topoCenter/components/editor/LinkDynamicStyleSettingDrawer/RuleSetting.module.scss +3 -3
  246. package/es/topoCenter/components/editor/LinkDynamicStyleSettingDrawer/rule/Rule.module.scss +36 -36
  247. package/es/topoCenter/components/editor/LinkDynamicStyleSettingDrawer/rule/RuleCondition.module.scss +5 -5
  248. package/es/topoCenter/components/editor/LinkDynamicStyleSettingDrawer/rule/RuleCondition.scss +10 -10
  249. package/es/topoCenter/components/editor/LinkDynamicStyleSettingDrawer/rule/RuleStyle.module.scss +3 -3
  250. package/es/topoCenter/components/editor/plugins/LayerConfigPlugin.js +4 -4
  251. package/es/topoCenter/components/editor/propertyViews/LayerRelatedResourceList.js +4 -4
  252. package/es/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/components/index.module.scss +34 -34
  253. package/es/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/index.module.scss +12 -12
  254. package/es/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/server.js +20 -20
  255. package/es/topoCenter/components/editor/propertyViews/edge/link/LinkInfoPreview.module.scss +65 -65
  256. package/es/topoCenter/components/viewer/displaySetting/LinkTagCommonRidioGroup.js +23 -0
  257. package/es/topoCenter/components/viewer/displaySetting/LinkTagCommonRidioGroup.module.scss +23 -0
  258. package/es/topoCenter/components/viewer/displaySetting/LinkTagV2.js +88 -0
  259. package/es/topoCenter/getTopoData.js +24 -25
  260. package/es/topoCenter/hooks/editor/useDeleteEdges.js +5 -5
  261. package/es/topoCenter/hooks/editor/useGroupSortResources.js +16 -0
  262. package/es/topoCenter/hooks/useLinkDynamicStyle.js +8 -4
  263. package/es/topoCenter/hooks/viewer/useEdgeFlow.js +4 -4
  264. package/es/topoCenter/hooks/viewer/useRelateTopo.js +12 -12
  265. package/es/topoCenter/models/LinkDynamicStyleExecutor.js +5 -5
  266. package/es/topoCenter/models/LinkTagsTipsBuilder.js +6 -6
  267. package/es/topoCenter/models/TopoCenter.js +8 -15
  268. package/es/topoCenter/services/link.js +20 -20
  269. package/es/topoCenter/store/functionAuth.js +2 -2
  270. package/es/topoCenter/store/linkDynamicStyle.js +30 -30
  271. package/es/topoCenter/store/linkDynamicStyleConfig.js +5 -5
  272. package/es/topoCenter/store/linkManager.js +2 -2
  273. package/es/topoCenter/store/topoCenter.js +11 -11
  274. package/es/topoCenter/store/topoLinkMod.js +2 -2
  275. package/es/topoCenter/store/topoTreeMod.js +14 -14
  276. package/es/topoCenter/utils/SortResourcesUtil.js +3 -3
  277. package/es/topoCenter/utils/exportData.js +13 -7
  278. package/es/topoCenter/utils/linPermissionUtil.js +7 -7
  279. package/es/topoCenter/utils/resourcePermissionUtil.js +14 -14
  280. package/es/utils/ResourceConfigUtil.js +9 -10
  281. package/es/utils/clusterUtil.js +16 -9
  282. package/es/utils/format.js +9 -9
  283. package/es/utils/htElementDataUtil.js +22 -1
  284. package/es/utils/htElementUtils.js +72 -35
  285. package/es/utils/resourceElementUtil.js +2 -2
  286. package/es/utils/template.js +4 -4
  287. package/es/utils/topoData.js +70 -62
  288. package/es/utils/topoPermissionUtil.js +2 -2
  289. package/es/utils/tree.js +20 -20
  290. package/lib/common/components/ColorPicker/ColorPicker.module.scss +15 -15
  291. package/lib/common/components/ColorPicker/ColorPicker.scss +11 -11
  292. package/lib/common/components/ResourceTable/ResourceTable.module.scss +7 -7
  293. package/lib/common/plugins/useSelectionPlugin.js +3 -3
  294. package/lib/components/BatchAttrMetric/index.js +7 -7
  295. package/lib/components/BatchAttrMetric/index.module.scss +76 -76
  296. package/lib/components/BatchAttrMetric/utils.js +33 -33
  297. package/lib/components/Drawer/Drawer.js +73 -0
  298. package/lib/components/Drawer/index.js +2 -64
  299. package/lib/components/Drawer/index.module.scss +41 -41
  300. package/lib/components/FullheightTab/FullheightTab.module.scss +19 -19
  301. package/lib/components/IndexSettingDrawer/index.module.scss +44 -44
  302. package/lib/components/LayoutDirectionSelect/Item.module.scss +8 -8
  303. package/lib/components/LayoutDirectionSelect/LayoutDirectionSelect.module.scss +5 -5
  304. package/lib/components/LayoutSelect/LayoutSelect.module.scss +4 -4
  305. package/lib/components/LayoutSelect/README.md +1 -1
  306. package/lib/components/MultiResourceDrawer/Content.js +3 -3
  307. package/lib/components/MultiResourceDrawer/ResourceCard/index.module.scss +14 -14
  308. package/lib/components/MultiResourceDrawer/index.module.scss +3 -3
  309. package/lib/components/ResourceList/ResourceSelect.module.scss +7 -7
  310. package/lib/components/ResourceSelect/ResourceSelectDrawer.js +6 -6
  311. package/lib/components/ResourceSelect/ResourceSelectDrawer.module.scss +13 -13
  312. package/lib/components/ResourceSelectDrawer/ResourceSelectDrawer.js +6 -6
  313. package/lib/components/ResourceSelectDrawer/ResourceSelectDrawer.module.scss +5 -5
  314. package/lib/components/SingleResourceDrawer/SingleResourceDrawer.js +5 -5
  315. package/lib/components/TagImageSelect/index.module.scss +7 -7
  316. package/lib/components/TagSelect/index.scss +28 -28
  317. package/lib/components/TemplateButton/assets/topo_layout_circular.svg +9 -9
  318. package/lib/components/TemplateButton/assets/topo_layout_hierarchical.svg +9 -9
  319. package/lib/components/TemplateButton/assets/topo_layout_toward.svg +15 -15
  320. package/lib/components/TemplateButton/index.module.scss +53 -53
  321. package/lib/components/collapse/Panel.js +14 -14
  322. package/lib/components/collapse/Panel.module.scss +11 -11
  323. package/lib/components/index.module.scss +31 -31
  324. package/lib/constants/ResourceInfoDisplay.js +15 -18
  325. package/lib/contextmenu/createMenuCommands.js +5 -5
  326. package/lib/core/common/icons/icon.js +11 -11
  327. package/lib/core/common/text.module.scss +5 -5
  328. package/lib/core/components/AlarmListPanel/components/AlarmListItem.js +31 -1
  329. package/lib/core/components/AlarmListPanel/components/index.module.scss +7 -7
  330. package/lib/core/components/AlarmListPanel/constants/uicbb.js +5 -5
  331. package/lib/core/components/AlarmListPanel/hooks/useAlarmList.js +40 -0
  332. package/lib/core/components/AlarmListPanel/index.js +30 -24
  333. package/lib/core/components/AlarmListPanel/index.module.scss +142 -112
  334. package/lib/core/components/DisplaySettingDrawer/DisplaySetting.js +5 -5
  335. package/lib/core/components/DisplaySettingDrawer/LinkTag.js +4 -4
  336. package/lib/core/components/DisplaySettingDrawer/LinkTip.js +4 -4
  337. package/lib/core/components/DisplaySettingDrawer/NodeTag.js +4 -4
  338. package/lib/core/components/DisplaySettingDrawer/NodeTip.js +4 -4
  339. package/lib/core/components/DisplaySettingDrawer/ResourceDisplay/BasicConfig.js +8 -4
  340. package/lib/core/components/DisplaySettingDrawer/ResourceDisplay/CommonCheckboxGroup.module.scss +22 -22
  341. package/lib/core/components/DisplaySettingDrawer/ResourceDisplay/useElementTagTipConfig.js +2 -2
  342. package/lib/core/components/DisplaySettingDrawer/tagtip/CustomSettingDrawer/CustomSetting.js +39 -0
  343. package/lib/core/components/DisplaySettingDrawer/tagtip/CustomSettingDrawer/CustomSettingDrawer.js +17 -0
  344. package/lib/core/components/ResourceViewAttributeSetting/Setting.js +4 -4
  345. package/lib/core/components/TopoView/TopoView.module.scss +27 -27
  346. package/lib/core/components/TopoView/topoView.js +5 -5
  347. package/lib/core/components/titlebar/TitleBar.module.scss +37 -37
  348. package/lib/core/createTopoApp.js +4 -4
  349. package/lib/core/editor/components/BackgroundView/UploadDialog/index.js +2 -2
  350. package/lib/core/editor/components/BackgroundView/UploadDialog/index.module.scss +8 -8
  351. package/lib/core/editor/components/BackgroundView/index.module.scss +94 -94
  352. package/lib/core/editor/components/CustomIconPlugin/UploadIconDialog.js +2 -2
  353. package/lib/core/editor/components/CustomIconPlugin/UploadIconDialog.module.scss +3 -3
  354. package/lib/core/editor/components/CustomIconPlugin/UploadIconDialog.scss +6 -6
  355. package/lib/core/editor/components/GroupAddResourceDrawerPlugin/index.js +2 -2
  356. package/lib/core/editor/components/settings/README.md +2 -2
  357. package/lib/core/editor/components/settings/Settings.module.scss +80 -80
  358. package/lib/core/editor/components/settings/common/AlignSetting/AlignSetting.module.scss +36 -36
  359. package/lib/core/editor/components/settings/common/GroupNodeList/CollapseFullheight.module.scss +20 -20
  360. package/lib/core/editor/components/settings/common/GroupNodeList/ResourceList.module.scss +49 -49
  361. package/lib/core/editor/components/settings/common/LayoutSettings.module.scss +66 -66
  362. package/lib/core/editor/components/settings/common/LineType/LineType.module.scss +33 -33
  363. package/lib/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.js +4 -4
  364. package/lib/core/editor/components/settings/common/SizeInput/NodeSizeInput.js +4 -4
  365. package/lib/core/editor/components/settings/common/SizeInput/NodeSizeInput.module.scss +5 -5
  366. package/lib/core/editor/components/settings/common/SizeInput/NodeSizeNumberPicker.js +5 -5
  367. package/lib/core/editor/components/settings/common/SizeInput/img/icon_/350/247/243/351/224/201.svg +15 -15
  368. package/lib/core/editor/components/settings/common/SizeInput/img/icon_/351/224/201.svg +14 -14
  369. package/lib/core/editor/components/settings/common/tab/TabView.module.scss +29 -29
  370. package/lib/core/editor/components/settings/common/text/FontStyleCheckbox.module.scss +31 -31
  371. package/lib/core/editor/components/settings/common/text/img/bold.svg +11 -11
  372. package/lib/core/editor/components/settings/common/text/img/italics.svg +9 -9
  373. package/lib/core/editor/components/settings/common/text/img/underline.svg +11 -11
  374. package/lib/core/editor/components/settings/propertyViews/edge/EdgePropertyView.js +2 -2
  375. package/lib/core/editor/components/settings/propertyViews/group/DataTab/ClusterGroupRelateData/ClusterGroupRelateData.js +8 -2
  376. package/lib/core/editor/components/settings/propertyViews/group/DataTab/GroupNodeList.js +7 -5
  377. package/lib/core/editor/components/settings/propertyViews/group/DataTab/hoooks/useGroupRelateResource.js +13 -13
  378. package/lib/core/editor/components/settings/propertyViews/group/GroupPropertyView.module.scss +3 -3
  379. package/lib/core/editor/components/settings/propertyViews/group/SettingTab/GroupExpandStatus.js +6 -6
  380. package/lib/core/editor/components/settings/propertyViews/layer/DataTab/NodeList.js +4 -7
  381. package/lib/core/editor/components/settings/propertyViews/multipleElements/BatchSetNodeIcon.js +31 -0
  382. package/lib/core/editor/components/settings/propertyViews/multipleElements/MultipleElementPropertyView.js +8 -2
  383. package/lib/core/editor/components/settings/propertyViews/node/NodePropertyView.module.scss +3 -3
  384. package/lib/core/editor/components/settings/propertyViews/node/data/BindResourceDrawer.js +5 -5
  385. package/lib/core/editor/components/settings/propertyViews/node/data/NodeRelateResourceButton.js +2 -2
  386. package/lib/core/editor/components/settings/propertyViews/view/GlobalEdgeToggle.js +5 -5
  387. package/lib/core/editor/components/settings/propertyViews/view/GlobalLayout.js +2 -2
  388. package/lib/core/editor/components/settings/propertyViews/view/GlobalTootipSetting.js +4 -4
  389. package/lib/core/hooks/useRouterAdapter.js +3 -3
  390. package/lib/core/models/Alarm.js +33 -33
  391. package/lib/core/models/AttributeMetricDisplay.js +81 -67
  392. package/lib/core/models/EdgeGroup.js +5 -5
  393. package/lib/core/models/PluginManager.js +2 -2
  394. package/lib/core/models/TopoApp.js +56 -51
  395. package/lib/core/models/TopoGraphView.js +11 -11
  396. package/lib/core/models/TopoViewer.js +2 -2
  397. package/lib/core/models/attributeFormatter/index.js +9 -33
  398. package/lib/core/models/cache/{CiTyeCache.js → CiTypeCache.js} +5 -3
  399. package/lib/core/models/cache/DictCache.js +2 -2
  400. package/lib/core/models/graph/Background.js +2 -2
  401. package/lib/core/models/tagstips/ElementTagTipConfig.js +142 -0
  402. package/lib/core/models/tagstips/utils.js +59 -0
  403. package/lib/core/services/alarm.js +4 -4
  404. package/lib/core/services/background.js +13 -13
  405. package/lib/core/services/overview.js +44 -18
  406. package/lib/core/services/topo.js +40 -0
  407. package/lib/core/utils/backgroundUtil.js +10 -10
  408. package/lib/core/utils/edgeUtil.js +4 -4
  409. package/lib/core/utils/imageUtil.js +3 -3
  410. package/lib/core/utils/resourceUtil.js +3 -3
  411. package/lib/core/utils/saveSerialize.js +4 -4
  412. package/lib/core/viewer/components/plugins/ResourceDetail/ResourceDetail.js +33 -13
  413. package/lib/core/viewer/components/plugins/ResourceDetail/components/ClusterMemberTable.js +2 -2
  414. package/lib/core/viewer/components/plugins/ResourceDetail/components/ClusterMemberTable.module.scss +9 -9
  415. package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/BaseInfo.js +4 -84
  416. package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/BaseInfoBlock.js +13 -3
  417. package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/BlockBox.module.scss +29 -29
  418. package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +237 -291
  419. package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverviewMetric.js +8 -5
  420. package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/SingleResourceStrategyLink.js +3 -2
  421. package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/Configurator/index.js +42 -27
  422. package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/Configurator/index.scss +91 -87
  423. package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useMetricModels.js +3 -3
  424. package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/index.module.scss +141 -135
  425. package/lib/core/viewer/components/plugins/ResourceDetail/index.module.scss +36 -36
  426. package/lib/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.module.scss +11 -11
  427. package/lib/core/viewer/components/titlebar/BasicTools.js +6 -2
  428. package/lib/core/viewer/components/titlebar/widgets/AlarmListShowButton.js +4 -4
  429. package/lib/core/viewer/components/titlebar/widgets/EditButton.js +2 -2
  430. package/lib/core/viewer/components/titlebar/widgets/NodesDragSwitch.js +8 -6
  431. package/lib/core/viewer/components/titlebar/widgets/SettingButton.js +4 -4
  432. package/lib/core/viewer/components/titlebar/widgets/SettingButtonWidget.js +4 -4
  433. package/lib/hooks/useAlarm.js +65 -4
  434. package/lib/hooks/useEventData.js +28 -0
  435. package/lib/hooks/useGraphAlarmDisplay.js +34 -6
  436. package/lib/hooks/useManageStatus.js +5 -5
  437. package/lib/hooks/usePolling.js +6 -6
  438. package/lib/hooks/useResourceConfig.js +28 -34
  439. package/lib/hooks/useSelection.js +3 -7
  440. package/lib/hooks/useTopoEdit.js +181 -121
  441. package/lib/index.scss +4 -4
  442. package/lib/models/background.js +7 -7
  443. package/lib/models/customIcon.js +6 -6
  444. package/lib/models/displayConfig.js +8 -8
  445. package/lib/models/resourceWebControllUrlSetting.js +2 -2
  446. package/lib/models/selection.js +2 -2
  447. package/lib/models/topoAlarm.js +14 -10
  448. package/lib/models/topoBaseInfoOverview.js +2 -2
  449. package/lib/models/topoBizMod.js +6 -6
  450. package/lib/models/topoConfig.js +11 -11
  451. package/lib/models/topoEdit.js +2 -2
  452. package/lib/models/topoGraphView.js +2 -2
  453. package/lib/models/topoMod.js +31 -32
  454. package/lib/models/topoView.js +2 -2
  455. package/lib/models/viewer/lock.js +2 -2
  456. package/lib/style.js +1 -0
  457. package/lib/topoCenter/components/Link/hook.js +19 -19
  458. package/lib/topoCenter/components/Link/index copy.js +3 -3
  459. package/lib/topoCenter/components/Link/index.js +3 -3
  460. package/lib/topoCenter/components/Link/index.module.scss +86 -86
  461. package/lib/topoCenter/components/TopoView.js +5 -3
  462. package/lib/topoCenter/components/Topology.js +5 -0
  463. package/lib/topoCenter/components/editor/LinkDynamicStyleSettingDrawer/RuleSetting.module.scss +3 -3
  464. package/lib/topoCenter/components/editor/LinkDynamicStyleSettingDrawer/rule/Rule.module.scss +36 -36
  465. package/lib/topoCenter/components/editor/LinkDynamicStyleSettingDrawer/rule/RuleCondition.module.scss +5 -5
  466. package/lib/topoCenter/components/editor/LinkDynamicStyleSettingDrawer/rule/RuleCondition.scss +10 -10
  467. package/lib/topoCenter/components/editor/LinkDynamicStyleSettingDrawer/rule/RuleStyle.module.scss +3 -3
  468. package/lib/topoCenter/components/editor/plugins/LayerConfigPlugin.js +4 -4
  469. package/lib/topoCenter/components/editor/propertyViews/LayerRelatedResourceList.js +3 -3
  470. package/lib/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/components/index.module.scss +34 -34
  471. package/lib/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/index.module.scss +12 -12
  472. package/lib/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/server.js +20 -20
  473. package/lib/topoCenter/components/editor/propertyViews/edge/link/LinkInfoPreview.module.scss +65 -65
  474. package/lib/topoCenter/components/viewer/displaySetting/LinkTagCommonRidioGroup.js +34 -0
  475. package/lib/topoCenter/components/viewer/displaySetting/LinkTagCommonRidioGroup.module.scss +23 -0
  476. package/lib/topoCenter/components/viewer/displaySetting/LinkTagV2.js +104 -0
  477. package/lib/topoCenter/getTopoData.js +24 -25
  478. package/lib/topoCenter/hooks/editor/useDeleteEdges.js +5 -5
  479. package/lib/topoCenter/hooks/editor/useGroupSortResources.js +21 -0
  480. package/lib/topoCenter/hooks/useLinkDynamicStyle.js +7 -4
  481. package/lib/topoCenter/hooks/viewer/useEdgeFlow.js +4 -4
  482. package/lib/topoCenter/hooks/viewer/useRelateTopo.js +12 -12
  483. package/lib/topoCenter/models/LinkDynamicStyleExecutor.js +5 -5
  484. package/lib/topoCenter/models/LinkTagsTipsBuilder.js +6 -6
  485. package/lib/topoCenter/models/TopoCenter.js +8 -16
  486. package/lib/topoCenter/services/link.js +20 -20
  487. package/lib/topoCenter/store/functionAuth.js +2 -2
  488. package/lib/topoCenter/store/linkDynamicStyle.js +30 -30
  489. package/lib/topoCenter/store/linkDynamicStyleConfig.js +5 -5
  490. package/lib/topoCenter/store/linkManager.js +2 -2
  491. package/lib/topoCenter/store/topoCenter.js +11 -11
  492. package/lib/topoCenter/store/topoLinkMod.js +2 -2
  493. package/lib/topoCenter/store/topoTreeMod.js +14 -14
  494. package/lib/topoCenter/utils/SortResourcesUtil.js +3 -3
  495. package/lib/topoCenter/utils/exportData.js +14 -7
  496. package/lib/topoCenter/utils/linPermissionUtil.js +7 -7
  497. package/lib/topoCenter/utils/resourcePermissionUtil.js +14 -14
  498. package/lib/utils/ResourceConfigUtil.js +9 -9
  499. package/lib/utils/clusterUtil.js +18 -9
  500. package/lib/utils/format.js +9 -9
  501. package/lib/utils/htElementDataUtil.js +38 -1
  502. package/lib/utils/htElementUtils.js +76 -35
  503. package/lib/utils/resourceElementUtil.js +2 -2
  504. package/lib/utils/template.js +4 -4
  505. package/lib/utils/topoData.js +74 -63
  506. package/lib/utils/topoPermissionUtil.js +2 -2
  507. package/lib/utils/tree.js +20 -20
  508. package/package.json +3 -3
  509. package/public/icons/c_b_firewall.svg +318 -318
  510. package/public/icons/c_b_hub.svg +88 -88
  511. package/public/icons/c_b_server.svg +52 -52
package/README.md CHANGED
@@ -1,15 +1,15 @@
1
- # Topology 拓扑
2
-
3
- - 图形基础能力
4
- - 内置告警、指标推送和配置,可自定义实现
5
- -
6
-
7
- ### 安装
8
-
9
- ```sh
10
- npm i @riil-frontend/component-topology --S
11
- ```
12
-
13
- ## 开发
14
-
1
+ # Topology 拓扑
2
+
3
+ - 图形基础能力
4
+ - 内置告警、指标推送和配置,可自定义实现
5
+ -
6
+
7
+ ### 安装
8
+
9
+ ```sh
10
+ npm i @riil-frontend/component-topology --S
11
+ ```
12
+
13
+ ## 开发
14
+
15
15
  - https://appworks.site/materials/guide/component.html#%E7%BB%84%E4%BB%B6%E5%B7%A5%E7%A8%8B%E9%85%8D%E7%BD%AE