@riil-frontend/component-topology 6.0.0-alpha.2 → 6.0.0-alpha.21

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 (257) hide show
  1. package/build/1.js +2 -2
  2. package/build/2.js +1 -1
  3. package/build/index.css +1 -1
  4. package/build/index.js +28 -28
  5. package/es/components/ColorPanel/components/ColorBlock/index.js +37 -0
  6. package/es/components/ColorPanel/components/ColorBlock/index.module.scss +8 -0
  7. package/es/components/ColorPanel/components/FontColorRange/index.js +35 -0
  8. package/es/components/ColorPanel/components/FontColorRange/index.module.scss +22 -0
  9. package/es/components/ColorPanel/index.js +199 -0
  10. package/es/components/ColorPanel/index.module.scss +37 -0
  11. package/es/components/VerticalIconTab/VerticalIconTab.module.scss +7 -2
  12. package/es/components/collapse/Collapse.module.scss +12 -1
  13. package/es/core/common/hooks/useHtElements.js +21 -0
  14. package/es/core/common/icons/useIcons.js +7 -1
  15. package/es/core/components/AlarmListPanel/components/AlarmListItem.js +15 -13
  16. package/es/core/components/AlarmListPanel/components/index.module.scss +5 -5
  17. package/es/core/components/DisplaySettingDrawer/DisplaySetting.js +2 -1
  18. package/es/core/components/DisplaySettingDrawer/DisplaySettingDrawer.js +6 -2
  19. package/es/core/components/DisplaySettingDrawer/EditorDisplaySetting.js +122 -0
  20. package/es/core/components/DisplaySettingDrawer/hooks/useDisplaySetting.js +74 -20
  21. package/es/core/components/TopoView/TopoGraphViewPanel.js +20 -0
  22. package/es/core/components/TopoView/editor.module.scss +1 -0
  23. package/es/core/components/TopoView/topoView.js +39 -18
  24. package/es/core/editor/components/Sidebar/Sidebar.js +26 -50
  25. package/es/core/editor/components/Sidebar/Sidebar.module.scss +5 -1
  26. package/es/core/editor/components/Sidebar/panes.js +32 -0
  27. package/es/core/editor/components/Sidebar/views/BackgroundPanel/BackgroundPanel.js +1 -2
  28. package/es/core/editor/components/Sidebar/views/CanvasPanel/CanvasPanel.js +96 -0
  29. package/es/core/editor/components/Sidebar/views/CanvasPanel/CanvasPanel.module.scss +74 -0
  30. package/es/core/editor/components/Sidebar/views/CanvasPanel/index.js +1 -1
  31. package/es/core/editor/components/Sidebar/views/ImagePanel/CiTypeImagePanel.js +1 -1
  32. package/es/core/editor/components/Sidebar/views/ImagePanel/CustomImagePanel.js +8 -33
  33. package/es/core/editor/components/Sidebar/views/ImagePanel/HtCustomImagePanel.js +42 -0
  34. package/es/core/editor/components/Sidebar/views/ImagePanel/HtImagePalette.js +42 -0
  35. package/es/core/editor/components/Sidebar/views/ImagePanel/HtImagePalette.module.scss +5 -0
  36. package/es/core/editor/components/Sidebar/views/ImagePanel/ImagePanel.js +2 -1
  37. package/es/core/editor/components/Toolbar/EditorToolbar.js +23 -13
  38. package/es/core/editor/components/Toolbar/Toolbar.js +1 -1
  39. package/es/core/editor/components/Toolbar/Toolbar.module.scss +14 -3
  40. package/es/core/editor/components/Toolbar/buttons.js +20 -18
  41. package/es/core/editor/components/Toolbar/hooks/useFontStyleSetting.js +35 -0
  42. package/es/core/editor/components/Toolbar/widgets/AddResourceButton.js +56 -7
  43. package/es/core/editor/components/Toolbar/widgets/CanvasMoveWidget.js +13 -2
  44. package/es/core/editor/components/Toolbar/widgets/CanvasSelectWidget.js +11 -2
  45. package/es/core/editor/components/Toolbar/widgets/EdgeColorButton/Content.js +10 -1
  46. package/es/core/editor/components/Toolbar/widgets/EdgeColorButton/EdgeWidthRange.js +33 -0
  47. package/es/core/editor/components/Toolbar/widgets/EdgeColorButton/EdgeWidthRange.module.scss +26 -0
  48. package/es/core/editor/components/Toolbar/widgets/EdgeTypeButton/EdgeType.js +184 -3
  49. package/es/core/editor/components/Toolbar/widgets/EdgeTypeButton/EdgeType.module.scss +44 -0
  50. package/es/core/editor/components/Toolbar/widgets/EdgeTypeButton/LineType.js +53 -0
  51. package/es/core/editor/components/Toolbar/widgets/EdgeTypeButton/LineType.module.scss +31 -0
  52. package/es/core/editor/components/Toolbar/widgets/EdgeTypeButton/constants.js +77 -0
  53. package/es/core/editor/components/Toolbar/widgets/EdgeTypeButton/index.js +59 -6
  54. package/es/core/editor/components/Toolbar/widgets/FontColorButton.js +36 -4
  55. package/es/core/editor/components/Toolbar/widgets/FontColorButton.module.scss +35 -0
  56. package/es/core/editor/components/Toolbar/widgets/FontFamilyWidget.js +12 -2
  57. package/es/core/editor/components/Toolbar/widgets/FontSizeWidget.js +12 -2
  58. package/es/core/editor/components/Toolbar/widgets/HistoryRedoButton.js +3 -2
  59. package/es/core/editor/components/Toolbar/widgets/HistoryUndoButton.js +5 -4
  60. package/es/core/editor/components/Toolbar/widgets/IconSelect/IconSelect.js +109 -0
  61. package/es/core/editor/components/Toolbar/widgets/IconSelect/constant.js +64 -0
  62. package/es/core/editor/components/Toolbar/widgets/IconSelect/index.js +101 -0
  63. package/es/core/editor/components/Toolbar/widgets/IconSelect/index.module.scss +153 -0
  64. package/es/core/editor/components/Toolbar/widgets/IconSelect/popUpContent.js +49 -0
  65. package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutSettings.js +99 -0
  66. package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutSettings.module.scss +70 -0
  67. package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTagImageSelect/index.js +42 -0
  68. package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTagImageSelect/index.module.scss +7 -0
  69. package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTagSelect/index.js +75 -0
  70. package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTagSelect/index.scss +32 -0
  71. package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/Icon.js +23 -0
  72. package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/assets/index.js +10 -0
  73. package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/assets/topo_layout_circular.svg +10 -0
  74. package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/assets/topo_layout_hierarchical.svg +10 -0
  75. package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/assets/topo_layout_rectangle.svg +12 -0
  76. package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/assets/topo_layout_toward.svg +16 -0
  77. package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/index.js +31 -0
  78. package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/index.module.scss +53 -0
  79. package/es/core/editor/components/Toolbar/widgets/Layout/index.js +127 -14
  80. package/es/core/editor/components/Toolbar/widgets/NodeAlignWidget.js +28 -22
  81. package/es/core/editor/components/Toolbar/widgets/NodeImageButton/BoxBackgroundSetting.js +14 -4
  82. package/es/core/editor/components/Toolbar/widgets/NodeImageButton/NodeImageButton.js +37 -6
  83. package/es/core/editor/components/Toolbar/widgets/NodeSizeButton/NodeSizeButton.js +90 -12
  84. package/es/core/editor/components/Toolbar/widgets/NodeSizeButton/NodeSizeButton.module.scss +28 -0
  85. package/es/core/editor/components/Toolbar/widgets/WidgetBox.js +9 -21
  86. package/es/core/editor/components/Toolbar/widgets/WidgetBox.module.scss +11 -1
  87. package/es/core/editor/components/Toolbar/widgets/components/ButtonBox.js +4 -2
  88. package/es/core/editor/components/Toolbar/widgets/components/DropdownButton.js +8 -5
  89. package/es/core/editor/components/settings/Settings.js +0 -23
  90. package/es/core/editor/components/settings/Settings.module.scss +1 -2
  91. package/es/core/editor/components/settings/common/AlignSetting/AlignTypeList.js +76 -0
  92. package/es/core/editor/components/settings/common/AlignSetting/index.js +18 -72
  93. package/es/core/editor/components/settings/common/LineType/index.js +12 -119
  94. package/es/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.js +3 -3
  95. package/es/core/editor/components/settings/common/SizeInput/NodeSizeInput.js +31 -21
  96. package/es/core/editor/components/settings/common/SizeInput/NodeSizeNumberPicker.js +7 -6
  97. package/es/core/editor/components/settings/propertyViews/group/SettingTab/GroupExpandSetting.js +0 -8
  98. package/es/core/editor/components/settings/propertyViews/layer/DataTab/DefaultLayerAddResourceDrawer.js +48 -0
  99. package/es/core/editor/components/settings/propertyViews/layer/DataTab/LayerAddResourceButton.js +12 -18
  100. package/es/core/editor/components/settings/propertyViews/layer/DataTab/LayerAddResourceDrawer.js +13 -46
  101. package/es/core/editor/components/settings/propertyViews/layer/DataTab/RelateData.js +2 -1
  102. package/es/core/editor/components/settings/propertyViews/multipleElements/BatchSetNodeSize/BatchSetNodeSize.js +8 -9
  103. package/es/core/editor/components/settings/propertyViews/multipleElements/MultipleElementLineType.js +5 -42
  104. package/es/core/editor/components/settings/propertyViews/multipleElements/MultipleElementPropertyView.js +2 -15
  105. package/es/core/editor/components/settings/propertyViews/view/BatchSetNodeSize.js +9 -6
  106. package/es/core/editor/components/titlebar/TopoEditorTitleBar.js +8 -4
  107. package/es/core/editor/hooks/useLayerAddResource.js +28 -0
  108. package/es/core/{store/models → editor/store}/background.js +0 -0
  109. package/es/core/{store/models → editor/store}/historyManager.js +0 -0
  110. package/es/core/{store/models → editor/store}/topoEdit.js +8 -1
  111. package/es/core/editor/utils/edgeTypeStyleUtil.js +96 -0
  112. package/es/core/hooks/useCanvasTheme.js +35 -0
  113. package/es/core/hooks/useTopoEdit.js +36 -58
  114. package/es/core/models/HistoryManager.js +10 -3
  115. package/es/core/models/SelectionManager.js +16 -1
  116. package/es/core/models/TopoApp.js +1 -1
  117. package/es/core/models/TopoGraphView.js +8 -2
  118. package/es/core/models/utils/linkUtils.js +1 -1
  119. package/es/core/store/coreModels.js +6 -7
  120. package/es/core/store/models/selection.js +2 -1
  121. package/es/core/viewer/components/titlebar/widgets/SettingButton.js +3 -1
  122. package/es/core/viewer/components/titlebar/widgets/SettingButtonWidget.js +4 -2
  123. package/es/networkTopo/createTopo.js +2 -0
  124. package/es/networkTopo/services/link.js +2 -2
  125. package/es/networkTopo/store/topoTreeMod.js +6 -7
  126. package/es/style.js +1 -0
  127. package/es/utils/topoData.js +1 -0
  128. package/lib/components/ColorPanel/components/ColorBlock/index.js +47 -0
  129. package/lib/components/ColorPanel/components/ColorBlock/index.module.scss +8 -0
  130. package/lib/components/ColorPanel/components/FontColorRange/index.js +49 -0
  131. package/lib/components/ColorPanel/components/FontColorRange/index.module.scss +22 -0
  132. package/lib/components/ColorPanel/index.js +217 -0
  133. package/lib/components/ColorPanel/index.module.scss +37 -0
  134. package/lib/components/VerticalIconTab/VerticalIconTab.module.scss +7 -2
  135. package/lib/components/collapse/Collapse.module.scss +12 -1
  136. package/lib/core/common/hooks/useHtElements.js +27 -0
  137. package/lib/core/common/icons/useIcons.js +7 -1
  138. package/lib/core/components/AlarmListPanel/components/AlarmListItem.js +15 -13
  139. package/lib/core/components/AlarmListPanel/components/index.module.scss +5 -5
  140. package/lib/core/components/DisplaySettingDrawer/DisplaySetting.js +2 -1
  141. package/lib/core/components/DisplaySettingDrawer/DisplaySettingDrawer.js +7 -2
  142. package/lib/core/components/DisplaySettingDrawer/EditorDisplaySetting.js +147 -0
  143. package/lib/core/components/DisplaySettingDrawer/hooks/useDisplaySetting.js +74 -20
  144. package/lib/core/components/TopoView/TopoGraphViewPanel.js +30 -0
  145. package/lib/core/components/TopoView/editor.module.scss +1 -0
  146. package/lib/core/components/TopoView/topoView.js +41 -19
  147. package/lib/core/editor/components/Sidebar/Sidebar.js +25 -52
  148. package/lib/core/editor/components/Sidebar/Sidebar.module.scss +5 -1
  149. package/lib/core/editor/components/Sidebar/panes.js +45 -0
  150. package/lib/core/editor/components/Sidebar/views/BackgroundPanel/BackgroundPanel.js +1 -2
  151. package/lib/core/editor/components/Sidebar/views/CanvasPanel/CanvasPanel.js +109 -0
  152. package/lib/core/editor/components/Sidebar/views/CanvasPanel/CanvasPanel.module.scss +74 -0
  153. package/lib/core/editor/components/Sidebar/views/CanvasPanel/index.js +2 -2
  154. package/lib/core/editor/components/Sidebar/views/ImagePanel/CiTypeImagePanel.js +2 -2
  155. package/lib/core/editor/components/Sidebar/views/ImagePanel/CustomImagePanel.js +8 -32
  156. package/lib/core/editor/components/Sidebar/views/ImagePanel/HtCustomImagePanel.js +55 -0
  157. package/lib/core/editor/components/Sidebar/views/ImagePanel/HtImagePalette.js +55 -0
  158. package/lib/core/editor/components/Sidebar/views/ImagePanel/HtImagePalette.module.scss +5 -0
  159. package/lib/core/editor/components/Sidebar/views/ImagePanel/ImagePanel.js +3 -1
  160. package/lib/core/editor/components/Toolbar/EditorToolbar.js +22 -11
  161. package/lib/core/editor/components/Toolbar/Toolbar.js +1 -1
  162. package/lib/core/editor/components/Toolbar/Toolbar.module.scss +14 -3
  163. package/lib/core/editor/components/Toolbar/buttons.js +21 -20
  164. package/lib/core/editor/components/Toolbar/hooks/useFontStyleSetting.js +50 -0
  165. package/lib/core/editor/components/Toolbar/widgets/AddResourceButton.js +63 -7
  166. package/lib/core/editor/components/Toolbar/widgets/CanvasMoveWidget.js +13 -2
  167. package/lib/core/editor/components/Toolbar/widgets/CanvasSelectWidget.js +11 -2
  168. package/lib/core/editor/components/Toolbar/widgets/EdgeColorButton/Content.js +11 -1
  169. package/lib/core/editor/components/Toolbar/widgets/EdgeColorButton/EdgeWidthRange.js +47 -0
  170. package/lib/core/editor/components/Toolbar/widgets/EdgeColorButton/EdgeWidthRange.module.scss +26 -0
  171. package/lib/core/editor/components/Toolbar/widgets/EdgeTypeButton/EdgeType.js +194 -3
  172. package/lib/core/editor/components/Toolbar/widgets/EdgeTypeButton/EdgeType.module.scss +44 -0
  173. package/lib/core/editor/components/Toolbar/widgets/EdgeTypeButton/LineType.js +71 -0
  174. package/lib/core/editor/components/Toolbar/widgets/EdgeTypeButton/LineType.module.scss +31 -0
  175. package/lib/core/editor/components/Toolbar/widgets/EdgeTypeButton/constants.js +83 -0
  176. package/lib/core/editor/components/Toolbar/widgets/EdgeTypeButton/index.js +61 -5
  177. package/lib/core/editor/components/Toolbar/widgets/FontColorButton.js +39 -4
  178. package/lib/core/editor/components/Toolbar/widgets/FontColorButton.module.scss +35 -0
  179. package/lib/core/editor/components/Toolbar/widgets/FontFamilyWidget.js +13 -2
  180. package/lib/core/editor/components/Toolbar/widgets/FontSizeWidget.js +13 -2
  181. package/lib/core/editor/components/Toolbar/widgets/HistoryRedoButton.js +4 -2
  182. package/lib/core/editor/components/Toolbar/widgets/HistoryUndoButton.js +5 -3
  183. package/lib/core/editor/components/Toolbar/widgets/IconSelect/IconSelect.js +126 -0
  184. package/lib/core/editor/components/Toolbar/widgets/IconSelect/constant.js +69 -0
  185. package/lib/core/editor/components/Toolbar/widgets/IconSelect/index.js +117 -0
  186. package/lib/core/editor/components/Toolbar/widgets/IconSelect/index.module.scss +153 -0
  187. package/lib/core/editor/components/Toolbar/widgets/IconSelect/popUpContent.js +61 -0
  188. package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutSettings.js +116 -0
  189. package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutSettings.module.scss +70 -0
  190. package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTagImageSelect/index.js +55 -0
  191. package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTagImageSelect/index.module.scss +7 -0
  192. package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTagSelect/index.js +93 -0
  193. package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTagSelect/index.scss +32 -0
  194. package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/Icon.js +32 -0
  195. package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/assets/index.js +22 -0
  196. package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/assets/topo_layout_circular.svg +10 -0
  197. package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/assets/topo_layout_hierarchical.svg +10 -0
  198. package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/assets/topo_layout_rectangle.svg +12 -0
  199. package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/assets/topo_layout_toward.svg +16 -0
  200. package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/index.js +44 -0
  201. package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/index.module.scss +53 -0
  202. package/lib/core/editor/components/Toolbar/widgets/Layout/index.js +132 -15
  203. package/lib/core/editor/components/Toolbar/widgets/NodeAlignWidget.js +30 -23
  204. package/lib/core/editor/components/Toolbar/widgets/NodeImageButton/BoxBackgroundSetting.js +20 -4
  205. package/lib/core/editor/components/Toolbar/widgets/NodeImageButton/NodeImageButton.js +36 -5
  206. package/lib/core/editor/components/Toolbar/widgets/NodeSizeButton/NodeSizeButton.js +91 -11
  207. package/lib/core/editor/components/Toolbar/widgets/NodeSizeButton/NodeSizeButton.module.scss +28 -0
  208. package/lib/core/editor/components/Toolbar/widgets/WidgetBox.js +11 -24
  209. package/lib/core/editor/components/Toolbar/widgets/WidgetBox.module.scss +11 -1
  210. package/lib/core/editor/components/Toolbar/widgets/components/ButtonBox.js +4 -2
  211. package/lib/core/editor/components/Toolbar/widgets/components/DropdownButton.js +8 -5
  212. package/lib/core/editor/components/settings/Settings.js +0 -23
  213. package/lib/core/editor/components/settings/Settings.module.scss +1 -2
  214. package/lib/core/editor/components/settings/common/AlignSetting/AlignTypeList.js +93 -0
  215. package/lib/core/editor/components/settings/common/AlignSetting/index.js +19 -80
  216. package/lib/core/editor/components/settings/common/LineType/index.js +13 -126
  217. package/lib/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.js +2 -2
  218. package/lib/core/editor/components/settings/common/SizeInput/NodeSizeInput.js +32 -23
  219. package/lib/core/editor/components/settings/common/SizeInput/NodeSizeNumberPicker.js +6 -6
  220. package/lib/core/editor/components/settings/propertyViews/group/SettingTab/GroupExpandSetting.js +0 -8
  221. package/lib/core/editor/components/settings/propertyViews/layer/DataTab/DefaultLayerAddResourceDrawer.js +63 -0
  222. package/lib/core/editor/components/settings/propertyViews/layer/DataTab/LayerAddResourceButton.js +13 -22
  223. package/lib/core/editor/components/settings/propertyViews/layer/DataTab/LayerAddResourceDrawer.js +12 -50
  224. package/lib/core/editor/components/settings/propertyViews/layer/DataTab/RelateData.js +2 -1
  225. package/lib/core/editor/components/settings/propertyViews/multipleElements/BatchSetNodeSize/BatchSetNodeSize.js +6 -8
  226. package/lib/core/editor/components/settings/propertyViews/multipleElements/MultipleElementLineType.js +5 -42
  227. package/lib/core/editor/components/settings/propertyViews/multipleElements/MultipleElementPropertyView.js +2 -15
  228. package/lib/core/editor/components/settings/propertyViews/view/BatchSetNodeSize.js +7 -5
  229. package/lib/core/editor/components/titlebar/TopoEditorTitleBar.js +9 -1
  230. package/lib/core/editor/hooks/useLayerAddResource.js +34 -0
  231. package/lib/core/{store/models → editor/store}/background.js +0 -0
  232. package/lib/core/{store/models → editor/store}/historyManager.js +0 -0
  233. package/lib/core/{store/models → editor/store}/topoEdit.js +8 -1
  234. package/lib/core/editor/utils/edgeTypeStyleUtil.js +109 -0
  235. package/lib/core/hooks/useCanvasTheme.js +49 -0
  236. package/lib/core/hooks/useTopoEdit.js +36 -60
  237. package/lib/core/models/HistoryManager.js +10 -3
  238. package/lib/core/models/SelectionManager.js +17 -1
  239. package/lib/core/models/TopoApp.js +1 -1
  240. package/lib/core/models/TopoGraphView.js +8 -2
  241. package/lib/core/models/utils/linkUtils.js +1 -1
  242. package/lib/core/store/coreModels.js +5 -7
  243. package/lib/core/store/models/selection.js +2 -1
  244. package/lib/core/viewer/components/titlebar/widgets/SettingButton.js +3 -1
  245. package/lib/core/viewer/components/titlebar/widgets/SettingButtonWidget.js +4 -2
  246. package/lib/networkTopo/createTopo.js +3 -0
  247. package/lib/networkTopo/services/link.js +2 -2
  248. package/lib/networkTopo/store/topoTreeMod.js +6 -8
  249. package/lib/style.js +1 -0
  250. package/lib/utils/topoData.js +1 -0
  251. package/package.json +2 -2
  252. package/es/core/editor/components/Sidebar/views/CanvasPanel/ImagePanel.js +0 -4
  253. package/es/core/editor/components/Toolbar/widgets/AddResourceWidget.js +0 -17
  254. package/es/core/store/models/topoView.js +0 -36
  255. package/lib/core/editor/components/Sidebar/views/CanvasPanel/ImagePanel.js +0 -12
  256. package/lib/core/editor/components/Toolbar/widgets/AddResourceWidget.js +0 -27
  257. package/lib/core/store/models/topoView.js +0 -47
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import styles from "./index.module.scss";
4
+ /**
5
+ * 颜色选择
6
+ *
7
+ * @param props
8
+ * @return {*}
9
+ * @constructor
10
+ */
11
+
12
+ function ColorBlock(props) {
13
+ var color = props.color,
14
+ onChange = props.onChange,
15
+ index = props.index;
16
+ return /*#__PURE__*/React.createElement("div", {
17
+ style: {
18
+ background: color.color,
19
+ borderColor: color.borderColor
20
+ },
21
+ className: styles.content,
22
+ onClick: function onClick() {
23
+ onChange(color.color, 'select', index);
24
+ }
25
+ }, "\xA0");
26
+ }
27
+
28
+ ColorBlock.propTypes = {
29
+ color: PropTypes.object,
30
+ // eslint-disable-next-line react/no-unused-prop-types
31
+ onChange: PropTypes.func
32
+ };
33
+ ColorBlock.defaultProps = {
34
+ color: {},
35
+ onChange: function onChange() {}
36
+ };
37
+ export default ColorBlock;
@@ -0,0 +1,8 @@
1
+ @import '~@alifd/next/variables.scss';
2
+
3
+ .content{
4
+ width: 25px;
5
+ height: 25px;
6
+ border-radius: 50%;
7
+ border: 1px solid;
8
+ }
@@ -0,0 +1,35 @@
1
+ import _Range from "@alifd/next/es/range";
2
+ import React, { useState } from 'react';
3
+ import styles from "./index.module.scss";
4
+
5
+ function FontColorRange(props) {
6
+ var onChange = props.onChange,
7
+ _props$unit = props.unit,
8
+ unit = _props$unit === void 0 ? 'px' : _props$unit,
9
+ list = props.list,
10
+ max = props.max,
11
+ min = props.min,
12
+ defaultValue = props.defaultValue;
13
+
14
+ var _useState = useState(defaultValue),
15
+ value = _useState[0],
16
+ setValue = _useState[1];
17
+
18
+ return /*#__PURE__*/React.createElement("div", {
19
+ className: styles.content
20
+ }, /*#__PURE__*/React.createElement("div", {
21
+ className: styles.range
22
+ }, /*#__PURE__*/React.createElement(_Range, {
23
+ defaultValue: value,
24
+ min: min,
25
+ max: max,
26
+ marks: list,
27
+ hasTip: false,
28
+ onChange: onChange,
29
+ onProcess: setValue
30
+ })), /*#__PURE__*/React.createElement("div", {
31
+ className: styles.unit
32
+ }, value, unit));
33
+ }
34
+
35
+ export default FontColorRange;
@@ -0,0 +1,22 @@
1
+ @import '~@alifd/next/variables.scss';
2
+
3
+
4
+ .content {
5
+ display: flex;
6
+ flex-direction: row;
7
+ width: 81%;
8
+ margin-left: 6%;
9
+ .range {
10
+ flex: 1;
11
+ }
12
+
13
+ .unit {
14
+ margin-left: 10px;
15
+ }
16
+
17
+ :global {
18
+ .#{$css-prefix}range .#{$css-prefix}range-mark {
19
+ display: none;
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,199 @@
1
+ import _Balloon from "@alifd/next/es/balloon";
2
+
3
+ /* eslint-disable eqeqeq */
4
+
5
+ /* eslint-disable jsx-a11y/alt-text */
6
+ import React, { useState, useEffect, useRef, useCallback } from 'react';
7
+ import classnames from 'classnames';
8
+ import { SketchPicker } from 'react-color';
9
+ import ColorBlock from "./components/ColorBlock";
10
+ import styles from "./index.module.scss";
11
+ /**
12
+ * 颜色选择
13
+ *
14
+ * @param props
15
+ * @return {*}
16
+ * @constructor
17
+ */
18
+
19
+ function ColorPanel(props) {
20
+ var _classnames2, _classnames3;
21
+
22
+ var value = props.value,
23
+ showClear = props.showClear,
24
+ dataSource = props.dataSource,
25
+ onChange = props.onChange,
26
+ onPickerFocus = props.onPickerFocus,
27
+ onPickerBlur = props.onPickerBlur;
28
+
29
+ var _useState = useState(value),
30
+ data = _useState[0],
31
+ setData = _useState[1];
32
+
33
+ var _useState2 = useState(),
34
+ active = _useState2[0],
35
+ setActive = _useState2[1];
36
+
37
+ var colorChange = function colorChange(value, type, key) {
38
+ setActive(key);
39
+ onChange(value, type);
40
+ };
41
+
42
+ var changClick = function changClick(key) {
43
+ setActive(key);
44
+ };
45
+
46
+ var setColors = function setColors() {
47
+ // eslint-disable-next-line array-callback-return
48
+ return dataSource.map(function (item, index) {
49
+ // eslint-disable-next-line eqeqeq
50
+ if (showClear && index != 1 || !showClear) {
51
+ var _classnames;
52
+
53
+ // eslint-disable-next-line eqeqeq
54
+ return /*#__PURE__*/React.createElement("li", {
55
+ key: index,
56
+ className: classnames(styles.li, (_classnames = {}, _classnames[styles.marginTop] = index == 6 || index == 12, _classnames[styles.active] = index == active, _classnames))
57
+ }, /*#__PURE__*/React.createElement("div", {
58
+ className: styles.liBox
59
+ }, /*#__PURE__*/React.createElement(ColorBlock, {
60
+ color: item,
61
+ onChange: colorChange,
62
+ index: index
63
+ })));
64
+ }
65
+ });
66
+ };
67
+
68
+ var handleChange = function handleChange(color) {
69
+ var prevValue = color.hex;
70
+ var rgb = color.rgb;
71
+ var rgba = "rgba(" + rgb.r + "," + rgb.g + "," + rgb.b + "," + rgb.a + ")";
72
+
73
+ if (data !== prevValue) {
74
+ setData(rgba);
75
+ onChange(rgba, 'change');
76
+ }
77
+ };
78
+
79
+ var defaultTrigger = /*#__PURE__*/React.createElement("div", {
80
+ className: styles.swatch,
81
+ style: {
82
+ background: value
83
+ }
84
+ }, /*#__PURE__*/React.createElement("img", {
85
+ src: "/img/topo/editor/toolbar/\u6587\u5B57\u989C\u8272\u53CA\u586B\u5145/\u66F4\u591A\u989C\u8272.svg",
86
+ alt: ""
87
+ }));
88
+ return /*#__PURE__*/React.createElement("div", {
89
+ className: styles.content
90
+ }, /*#__PURE__*/React.createElement("ul", {
91
+ className: styles.ul
92
+ }, showClear && /*#__PURE__*/React.createElement("li", {
93
+ className: classnames(styles.li, (_classnames2 = {}, _classnames2[styles.active] = active == '-1', _classnames2))
94
+ }, /*#__PURE__*/React.createElement("div", {
95
+ className: styles.liBox
96
+ }, /*#__PURE__*/React.createElement("div", {
97
+ className: styles.swatch,
98
+ onClick: function onClick() {
99
+ colorChange('noColor', 'select', '-1');
100
+ }
101
+ }, /*#__PURE__*/React.createElement("img", {
102
+ src: "/img/topo/editor/toolbar/\u6587\u5B57\u989C\u8272\u53CA\u586B\u5145/\u80CC\u666F\u900F\u660E.svg",
103
+ alt: ""
104
+ })))), setColors(), /*#__PURE__*/React.createElement("li", {
105
+ className: classnames(styles.li, (_classnames3 = {}, _classnames3[styles.active] = active == '17', _classnames3))
106
+ }, /*#__PURE__*/React.createElement("div", {
107
+ className: styles.liBox,
108
+ onClick: function onClick() {
109
+ changClick('17');
110
+ }
111
+ }, /*#__PURE__*/React.createElement(_Balloon, {
112
+ trigger: defaultTrigger,
113
+ closable: false,
114
+ triggerType: "click",
115
+ animation: false,
116
+ followTrigger: true,
117
+ align: "rt",
118
+ alignEdge: true,
119
+ style: {
120
+ paddingBottom: 0
121
+ },
122
+ onBlur: onPickerBlur,
123
+ onFocus: onPickerFocus
124
+ }, /*#__PURE__*/React.createElement(SketchPicker, {
125
+ color: data // width={230}
126
+ ,
127
+ disableAlpha: true,
128
+ styles: {
129
+ 'default': {
130
+ picker: {
131
+ boxShadow: 'none',
132
+ padding: 0
133
+ }
134
+ }
135
+ },
136
+ onChange: handleChange
137
+ }))))));
138
+ }
139
+
140
+ ColorPanel.defaultProps = {
141
+ value: undefined,
142
+ showClear: false,
143
+ dataSource: [{
144
+ color: 'rgba(255, 255, 255, 1)',
145
+ borderColor: 'rgba(219, 219, 219, 1)'
146
+ }, {
147
+ color: 'rgba(245, 245, 245, 1)',
148
+ borderColor: 'rgba(208, 208, 208, 1)'
149
+ }, {
150
+ color: 'rgba(230, 230, 230, 1)',
151
+ borderColor: 'rgba(196, 196, 196, 1)'
152
+ }, {
153
+ color: 'rgba(168, 168, 168, 1)',
154
+ borderColor: 'rgba(146, 146, 146, 1)'
155
+ }, {
156
+ color: 'rgba(97, 97, 97, 1)',
157
+ borderColor: 'rgba(85, 85, 85, 1)'
158
+ }, {
159
+ color: 'rgba(49, 49, 49, 1)',
160
+ borderColor: 'rgba(43, 43, 43, 1)'
161
+ }, {
162
+ color: 'rgba(251, 115, 80, 1)',
163
+ borderColor: 'rgba(213, 98, 69, 1)'
164
+ }, {
165
+ color: 'rgba(255, 166, 41, 1)',
166
+ borderColor: 'rgba(219, 144, 45, 1)'
167
+ }, {
168
+ color: 'rgba(255, 205, 42, 1)',
169
+ borderColor: 'rgba(216, 175, 37, 1)'
170
+ }, {
171
+ color: 'rgba(18, 174, 92, 1)',
172
+ borderColor: 'rgba(23, 148, 79, 1)'
173
+ }, {
174
+ color: 'rgba(83, 184, 255, 1)',
175
+ borderColor: 'rgba(74, 156, 217, 1)'
176
+ }, {
177
+ color: 'rgba(183, 128, 255, 1)',
178
+ borderColor: 'rgba(155, 109, 216, 1)'
179
+ }, {
180
+ color: 'rgba(254, 192, 174, 1)',
181
+ borderColor: 'rgba(217, 163, 148, 1)'
182
+ }, {
183
+ color: 'rgba(252, 209, 156, 1)',
184
+ borderColor: 'rgba(215, 178, 133, 1)'
185
+ }, {
186
+ color: 'rgba(255, 232, 163, 1)',
187
+ borderColor: 'rgba(217, 198, 139, 1)'
188
+ }, {
189
+ color: 'rgba(176, 244, 197, 1)',
190
+ borderColor: 'rgba(153, 209, 171, 1)'
191
+ }, {
192
+ color: 'rgba(189, 227, 255, 1)',
193
+ borderColor: 'rgba(161, 193, 217, 1)'
194
+ }],
195
+ onChange: function onChange() {},
196
+ onPickerFocus: function onPickerFocus() {},
197
+ onPickerBlur: function onPickerBlur() {}
198
+ };
199
+ export default ColorPanel;
@@ -0,0 +1,37 @@
1
+ @import '~@alifd/next/variables.scss';
2
+
3
+ .content{
4
+ padding: 9px;
5
+ padding-top: 8px;
6
+ width: 226px;
7
+ .ul{
8
+ width: 100%;
9
+ margin-left: 6px;
10
+ .li{
11
+ display: inline-block;
12
+ width: 34.6px;
13
+ line-height: 40px;
14
+ .liBox{
15
+ width: 31px;
16
+ height: 31px;
17
+ border-radius: 50%;
18
+ padding: 1px;
19
+ border: 2px solid #fff;
20
+ }
21
+ }
22
+ .li.active{
23
+ .liBox{
24
+ border-color: #4C89FF;
25
+ }
26
+ }
27
+ .marginTop{
28
+ margin-top: 6px;
29
+ }
30
+ }
31
+ }
32
+ .swatch{
33
+ width: 25px;
34
+ height: 25px;
35
+ border-radius: 50%;
36
+ overflow: hidden;
37
+ }
@@ -11,7 +11,7 @@
11
11
  width: 60px;
12
12
  height: 100%;
13
13
  padding-top: 4px;
14
- // border-right: 1px solid #E6E7EB;
14
+ border-right: 1px solid var(--tab-wrapped-border-line-color);
15
15
  background: none !important;
16
16
 
17
17
  :global {
@@ -37,6 +37,10 @@
37
37
  &:hover {
38
38
  background-color: rgba(76, 137, 255, 0.1);
39
39
  }
40
+
41
+ .tab-title {
42
+ margin-top: 3px;
43
+ }
40
44
  }
41
45
  }
42
46
  }
@@ -45,8 +49,9 @@
45
49
  .content {
46
50
  width: 260px;
47
51
  height: 100%;
48
- transition: all .1s linear;
52
+ border-left: none !important;
49
53
  border-right: 1px solid var(--tab-wrapped-border-line-color);
54
+ transition: width .1s linear;
50
55
 
51
56
  :global {
52
57
  .#{$css-prefix}tabs-tabpane {
@@ -26,8 +26,19 @@
26
26
 
27
27
  .#{$css-prefix}collapse-panel-content,
28
28
  .#{$css-prefix}collapse-panel-expanded>.#{$css-prefix}collapse-panel-content {
29
- padding-left: 32px;
29
+ // padding-left: 32px;
30
30
  padding-top: 8px;
31
31
  }
32
32
  }
33
+
34
+ &.contentNoPadding {
35
+
36
+ :global {
37
+
38
+ .#{$css-prefix}collapse-panel-content,
39
+ .#{$css-prefix}collapse-panel-expanded>.#{$css-prefix}collapse-panel-content {
40
+ padding: 8px 0;
41
+ }
42
+ }
43
+ }
33
44
  }
@@ -0,0 +1,21 @@
1
+ import { useEffect, useMemo, useState } from "react";
2
+ export default function useHtElements(props) {
3
+ var topo = props.topo,
4
+ ids = props.ids;
5
+
6
+ var _useState = useState(ids),
7
+ idList = _useState[0],
8
+ setIdList = _useState[1];
9
+
10
+ useEffect(function () {
11
+ if (ids.join(',') !== idList.join(',')) {
12
+ setIdList(ids);
13
+ }
14
+ }, [ids, idList]);
15
+ var elements = useMemo(function () {
16
+ return idList.map(function (id) {
17
+ return topo.getDataModel().getDataById(id);
18
+ });
19
+ }, [topo, idList]);
20
+ return elements;
21
+ }
@@ -11,8 +11,11 @@ function useCustomIcons(topo) {
11
11
  export function useNodeIcons(topo) {
12
12
  var customIcons = useCustomIcons(topo);
13
13
  var groups = [{
14
- name: '默认',
14
+ name: '资源图片',
15
15
  icons: getNodeDefaultIcons(topo)
16
+ }, {
17
+ name: '基础图片',
18
+ icons: []
16
19
  }];
17
20
 
18
21
  if (customIcons.length) {
@@ -27,6 +30,9 @@ export function useNodeIcons(topo) {
27
30
  export function useGroupIcons(topo) {
28
31
  var customIcons = useCustomIcons(topo);
29
32
  var groups = [{
33
+ name: '资源图片',
34
+ icons: []
35
+ }, {
30
36
  name: '默认',
31
37
  icons: getGroupDefaultIcons(topo)
32
38
  }];
@@ -13,19 +13,17 @@ var alarmLink = function alarmLink(alarmInfo) {
13
13
  var getNode = function getNode(topo, alarmInfo) {
14
14
  var id = alarmInfo.resourceId || alarmInfo.ciId;
15
15
  var node = topo.getHtTopo().getGraphView().dm().getDataByTag(id);
16
+ var ele = getNodeParents(node);
17
+ topo.getHtTopo().getGraphView().fitData(ele, true, 20, true);
18
+ topo.getHtTopo().getGraphView().dm().getSelectionModel().setSelection(ele);
19
+ topo.getHtTopo().getGraphView().setZoom(1.5);
20
+ };
16
21
 
17
- if (node.getParent()) {
18
- var data = node.getParent();
19
- topo.getHtTopo().getGraphView().fitData(data, true, 20, true); // eslint-disable-next-line no-underscore-dangle, eqeqeq
20
-
21
- if (data._animation.start[0] != 'hide') {
22
- topo.getHtTopo().getGraphView().dm().getSelectionModel().setSelection(node);
23
- } else {
24
- topo.getHtTopo().getGraphView().dm().getSelectionModel().setSelection(data);
25
- }
22
+ var getNodeParents = function getNodeParents(node) {
23
+ if (node.getParent() && node.getParent().isExpanded && !node.getParent().isExpanded()) {
24
+ return getNodeParents(node.getParent());
26
25
  } else {
27
- topo.getHtTopo().getGraphView().fitData(node, true, 20, true);
28
- topo.getHtTopo().getGraphView().dm().getSelectionModel().setSelection(node);
26
+ return node;
29
27
  }
30
28
  };
31
29
 
@@ -41,7 +39,9 @@ function AlarmListItem(props) {
41
39
  size: "xs",
42
40
  className: styles['alarm-color-icon'] + " alarm-color-icon-lv" + alarmInfo.alertLevel
43
41
  })
44
- }, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("div", {
42
+ }, /*#__PURE__*/React.createElement("span", {
43
+ className: styles.content
44
+ }, /*#__PURE__*/React.createElement("div", {
45
45
  className: styles.list,
46
46
  onClick: function onClick() {
47
47
  getNode(topo, alarmInfo);
@@ -71,7 +71,9 @@ function RiskListItem(props) {
71
71
  size: "xs",
72
72
  className: styles['alarm-color-icon'] + " alarm-color-icon-lv2"
73
73
  })
74
- }, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("div", {
74
+ }, /*#__PURE__*/React.createElement("span", {
75
+ className: styles.content
76
+ }, /*#__PURE__*/React.createElement("div", {
75
77
  className: styles.list,
76
78
  onClick: function onClick() {
77
79
  getNode(topo, alarmInfo);
@@ -12,13 +12,13 @@
12
12
  }
13
13
 
14
14
  }
15
- .list{
16
- width: 81%;
17
- float: left;
15
+ .content{
16
+ display: flex;
17
+ }
18
+ .list{
19
+ flex: 1;
18
20
  }
19
21
  .listLink{
20
- float: right;
21
- width: 17%;
22
22
  font-size: 12px;
23
23
  color: #4C89FF;
24
24
  height: 100%;
@@ -19,7 +19,8 @@ import BooleanRadio from "../../../components/BooleanRadio";
19
19
 
20
20
  function DisplaySetting(props, ref) {
21
21
  var topo = props.topo,
22
- displaySettingProps = props.displaySettingProps;
22
+ displaySettingProps = props.displaySettingProps,
23
+ isEditor = props.isEditor;
23
24
  var displayConfig = topo.store.getModelState('displayConfig');
24
25
 
25
26
  var _ref = displaySettingProps || {},
@@ -7,10 +7,12 @@ import rlog from '@riil-frontend/component-topology-utils/lib/rlog';
7
7
  import Drawer from "../../../components/Drawer";
8
8
  import DisplaySetting from "./DisplaySetting";
9
9
  import useDisplaySetting from "./hooks/useDisplaySetting";
10
+ import EditorDisplaySetting from "./EditorDisplaySetting";
10
11
  export default function DisplaySettingDrawer(props) {
11
12
  var visible = props.visible,
12
13
  topo = props.topo,
13
14
  displaySettingProps = props.displaySettingProps,
15
+ isEditor = props.isEditor,
14
16
  onClose = props.onClose;
15
17
  var settingRef = useRef();
16
18
 
@@ -19,7 +21,8 @@ export default function DisplaySettingDrawer(props) {
19
21
  setLoading = _useState[1];
20
22
 
21
23
  var displaySetting = useDisplaySetting(_extends({}, props, {
22
- settingRef: settingRef
24
+ settingRef: settingRef,
25
+ isEditor: isEditor
23
26
  }));
24
27
 
25
28
  var handleOk = /*#__PURE__*/function () {
@@ -63,6 +66,7 @@ export default function DisplaySettingDrawer(props) {
63
66
  };
64
67
  }();
65
68
 
69
+ var DisplaySettingWidget = isEditor ? EditorDisplaySetting : DisplaySetting;
66
70
  return /*#__PURE__*/React.createElement(Drawer, {
67
71
  title: "\u663E\u793A\u8BBE\u7F6E",
68
72
  visible: visible,
@@ -74,7 +78,7 @@ export default function DisplaySettingDrawer(props) {
74
78
 
75
79
  },
76
80
  buttons: ['保存', '取消']
77
- }, visible && /*#__PURE__*/React.createElement(DisplaySetting, {
81
+ }, visible && /*#__PURE__*/React.createElement(DisplaySettingWidget, {
78
82
  ref: settingRef,
79
83
  topo: topo,
80
84
  displaySettingProps: displaySettingProps
@@ -0,0 +1,122 @@
1
+ import _Box from "@alifd/next/es/box";
2
+ import _Form from "@alifd/next/es/form";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _Field from "@alifd/next/es/field";
5
+ import React, { useEffect, useImperativeHandle, useState } from 'react';
6
+ import rlog from '@riil-frontend/component-topology-utils/es/rlog';
7
+ import NodeTag from "./NodeTag";
8
+ import EdgeFlow from "./EdgeFlow";
9
+ import NodeTip from "./NodeTip";
10
+ import LineExpandAllRadioGroup from "./LineExpandAllRadioGroup";
11
+ import EdgeFlowDirection from "./EdgeFlowDirection";
12
+ import BooleanRadio from "../../../components/BooleanRadio";
13
+ /**
14
+ * 显示设置
15
+ *
16
+ * @param {*} props
17
+ * @returns
18
+ */
19
+
20
+ function EditorDisplaySetting(props, ref) {
21
+ var topo = props.topo,
22
+ displaySettingProps = props.displaySettingProps;
23
+ var displayConfig = topo.store.getModelState('displayConfig');
24
+
25
+ var _ref = displaySettingProps || {},
26
+ linkTagConfig = _ref.linkTagConfig,
27
+ linkTipConfig = _ref.linkTipConfig,
28
+ showEdgeExpandConfig = _ref.showEdgeExpandConfig,
29
+ extraConfig = _ref.extraConfig,
30
+ showLinkConfig = _ref.showLinkConfig,
31
+ nodeTagProps = _ref.nodeTagProps,
32
+ nodeTipProps = _ref.nodeTipProps,
33
+ isNetworkTopo = _ref.isNetworkTopo;
34
+
35
+ var field = _Field.useField({
36
+ autoUnmount: false,
37
+ values: {
38
+ alarmSwitch: displayConfig.alarmSwitch,
39
+ alarmListDefaultOpen: displayConfig.alarmListDefaultOpen,
40
+ nodeTag: displayConfig.nodeTag,
41
+ nodeTip: displayConfig.nodeTip,
42
+ linkTag: displayConfig.linkTag,
43
+ linkTip: displayConfig.linkTip,
44
+ expandAllEdges: displayConfig.expandAllEdges,
45
+ edgeFlow: displayConfig.edgeFlow,
46
+ edgeFlowDirection: displayConfig.edgeFlowDirection
47
+ },
48
+ onChange: function onChange(name, value) {
49
+ rlog.debug('DisplaySetting-onChange', name, value); // 告警静默设置
50
+
51
+ if (name === 'alarmSwitch') {
52
+ field.setValue('alarmListDefaultOpen', !!value);
53
+ }
54
+ }
55
+ });
56
+
57
+ useImperativeHandle(ref, function () {
58
+ return field;
59
+ });
60
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Form, {
61
+ field: field,
62
+ labelAlign: "top"
63
+ }, /*#__PURE__*/React.createElement(_Form.Item, {
64
+ label: /*#__PURE__*/React.createElement(Label, {
65
+ label: "\u8D44\u6E90\u6807\u6CE8",
66
+ helpText: "\u6700\u591A\u652F\u6301\u52FE\u90093\u9879"
67
+ })
68
+ }, /*#__PURE__*/React.createElement(NodeTag, _extends({}, nodeTagProps, {
69
+ name: "nodeTag",
70
+ topo: topo
71
+ }))), linkTagConfig && /*#__PURE__*/React.createElement(_Form.Item, {
72
+ label: /*#__PURE__*/React.createElement(Label, {
73
+ label: "\u94FE\u8DEF\u6807\u6CE8",
74
+ helpText: "\u6700\u591A\u652F\u6301\u52FE\u90092\u9879"
75
+ }),
76
+ patternTrigger: "onChange"
77
+ }, linkTagConfig({
78
+ name: "linkTag",
79
+ topo: topo
80
+ })), /*#__PURE__*/React.createElement(_Form.Item, {
81
+ label: /*#__PURE__*/React.createElement(Label, {
82
+ label: "\u8D44\u6E90\u60AC\u6D6E\u6846",
83
+ helpText: "\u6700\u591A\u652F\u6301\u52FE\u90094\u9879"
84
+ }),
85
+ patternTrigger: "onChange"
86
+ }, /*#__PURE__*/React.createElement(NodeTip, _extends({}, nodeTipProps, {
87
+ name: "nodeTip",
88
+ topo: topo
89
+ }))), linkTipConfig && /*#__PURE__*/React.createElement(_Form.Item, {
90
+ label: /*#__PURE__*/React.createElement(Label, {
91
+ label: "\u94FE\u8DEF\u60AC\u6D6E\u6846",
92
+ helpText: "\u6700\u591A\u652F\u6301\u52FE\u90094\u9879"
93
+ }),
94
+ patternTrigger: "onChange"
95
+ }, linkTipConfig({
96
+ name: "linkTip",
97
+ topo: topo
98
+ })), showEdgeExpandConfig && /*#__PURE__*/React.createElement(_Form.Item, {
99
+ label: /*#__PURE__*/React.createElement(LineExpandAllRadioGroup.Label, null),
100
+ patternTrigger: "onChange"
101
+ }, /*#__PURE__*/React.createElement(LineExpandAllRadioGroup, {
102
+ name: "expandAllEdges",
103
+ isNetworkTopo: isNetworkTopo
104
+ }))));
105
+ }
106
+
107
+ ;
108
+
109
+ function Label(props) {
110
+ var label = props.label,
111
+ helpText = props.helpText;
112
+ return /*#__PURE__*/React.createElement(_Box, {
113
+ direction: "row",
114
+ spacing: 12
115
+ }, /*#__PURE__*/React.createElement("div", null, label), /*#__PURE__*/React.createElement("div", {
116
+ style: {
117
+ color: '#638DB7'
118
+ }
119
+ }, helpText));
120
+ }
121
+
122
+ export default /*#__PURE__*/React.forwardRef(EditorDisplaySetting);