@riil-frontend/component-topology 2.12.6-alpha.0 → 2.12.7-alpha.12

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 (244) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/build/1.js +2 -2
  3. package/build/2.js +1 -1
  4. package/build/index.css +2 -2
  5. package/build/index.js +39 -39
  6. package/es/components/BatchAttrMetric/index.js +1 -1
  7. package/es/components/BatchAttrMetric/setting.js +4 -4
  8. package/es/components/BatchAttrMetric/utils.js +2 -2
  9. package/es/components/Drawer/index.js +2 -2
  10. package/es/components/FormTable/index.js +3 -3
  11. package/es/components/IndexSettingDrawer/CiList.js +1 -1
  12. package/es/components/IndexSettingDrawer/CiListItem.js +1 -1
  13. package/es/components/IndexSettingDrawer/IndexList.js +1 -1
  14. package/es/components/IndexSettingDrawer/index.js +1 -1
  15. package/es/components/Link/form.js +6 -6
  16. package/es/components/Link/index.js +2 -2
  17. package/es/components/Link/setting.js +4 -4
  18. package/es/components/MultiResourceDrawer/Content.js +1 -1
  19. package/es/components/MultiResourceDrawer/ResourceCard/index.js +2 -2
  20. package/es/components/SingleResourceDrawer/SelectDrawer.js +1 -1
  21. package/es/components/SingleResourceDrawer/SingleResourceDrawer.js +1 -1
  22. package/es/components/TagSelect/index.js +2 -2
  23. package/es/core/common/hooks/useHtElement.js +9 -0
  24. package/es/core/common/icons/defaultIcons.js +25 -95
  25. package/es/core/common/icons/htOldIcons.js +68 -0
  26. package/es/core/common/icons/networkTopoCiTypeIcons.js +8 -0
  27. package/es/core/components/TopoView/TopoContent.js +1 -1
  28. package/es/core/components/TopoView/topoView.js +12 -11
  29. package/es/core/components/titlebar/TitleBar.module.scss +0 -2
  30. package/es/core/editor/components/EditorPlugin.js +1 -1
  31. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/RuleSetting.js +2 -2
  32. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/ColorPicker.js +1 -1
  33. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/Rule.js +1 -1
  34. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleCondition.js +2 -2
  35. package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleStyle.js +4 -4
  36. package/es/core/editor/components/iconManage/RenameDialog.js +4 -4
  37. package/es/core/editor/components/iconManage/UploadIconDialog.js +4 -4
  38. package/es/core/editor/components/settings/Settings.js +15 -1
  39. package/es/core/editor/components/settings/SettingsForm.js +2 -2
  40. package/es/core/editor/components/settings/Style.js +7 -7
  41. package/es/core/editor/components/settings/common/AlignSetting/AlignSetting.module.scss +16 -0
  42. package/es/core/editor/components/settings/common/AlignSetting/index.js +69 -0
  43. package/es/core/editor/components/settings/common/GroupNodeList/ResourceList.js +1 -1
  44. package/es/core/editor/components/settings/common/GroupNodeList/ResourceSelectButton.js +1 -1
  45. package/es/core/editor/components/settings/common/GroupNodeList/icon.js +14 -6
  46. package/es/core/editor/components/settings/common/LayoutSettings.js +2 -2
  47. package/es/core/editor/components/settings/common/LineType.js +2 -2
  48. package/es/core/editor/components/settings/common/NodeAlignType.js +2 -2
  49. package/es/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.js +7 -50
  50. package/es/core/editor/components/settings/common/SizeInput/NodeSizeInput.js +101 -0
  51. package/es/core/editor/components/settings/common/{NodeSizeInput → SizeInput}/NodeSizeInput.module.scss +0 -0
  52. package/es/core/editor/components/settings/common/{NodeSizeInput → SizeInput}/NodeSizeNumberPicker.js +1 -1
  53. package/es/core/editor/components/settings/common/{NodeSizeInput → SizeInput}/img/icon_/350/247/243/351/224/201.svg +0 -0
  54. package/es/core/editor/components/settings/common/{NodeSizeInput → SizeInput}/img/icon_/351/224/201.svg +0 -0
  55. package/es/core/editor/components/settings/common/SizeInput/index.js +2 -0
  56. package/es/core/editor/components/settings/common/tab/TabView.js +1 -1
  57. package/es/core/editor/components/settings/common/text/FontStyleCheckbox.js +1 -1
  58. package/es/core/editor/components/settings/common/text/TextStyle.js +4 -4
  59. package/es/core/editor/components/settings/group/DataTab/GroupNodeList.js +5 -9
  60. package/es/core/editor/components/settings/group/DataTab/RelateData.js +1 -1
  61. package/es/core/editor/components/settings/group/DataTab/hoooks/useGroupRelateResource.js +32 -0
  62. package/es/core/editor/components/settings/group/GroupPropertyView.js +8 -19
  63. package/es/core/editor/components/settings/group/SettingTab/GroupExpandSetting.js +62 -24
  64. package/es/core/editor/components/settings/group/SettingTab/GroupExpandStatus.js +27 -0
  65. package/es/core/editor/components/settings/group/SettingTab/{NodeIconSelect.js → GroupIconSelect.js} +6 -14
  66. package/es/core/editor/components/settings/group/SettingTab/Setting.js +58 -44
  67. package/es/core/editor/components/settings/group/hooks/useGroup.js +2 -5
  68. package/es/core/editor/components/settings/layer/{NodeList.js → DataTab/NodeList.js} +3 -3
  69. package/es/core/editor/components/settings/layer/DataTab/RelateData.js +45 -0
  70. package/es/core/editor/components/settings/layer/LayerPropertyView.js +30 -0
  71. package/es/core/editor/components/settings/layer/LayerSettingsForm.js +52 -35
  72. package/es/core/editor/components/settings/layer/SettingTab/Setting.js +152 -0
  73. package/es/core/editor/components/settings/layer/SettingTab/Setting_bak.js +257 -0
  74. package/es/core/editor/components/settings/link/LinkPropertyView.js +8 -8
  75. package/es/core/editor/components/settings/node/NodeIconSelect.js +12 -9
  76. package/es/core/editor/components/settings/node/NodeIconSelectTest.js +2 -2
  77. package/es/core/editor/components/settings/node/NodePropertyView.js +10 -8
  78. package/es/core/editor/components/settings/node/TopoTreeSelect.js +1 -1
  79. package/es/core/editor/components/settings/node/data/BindResourceDrawer.js +1 -1
  80. package/es/core/editor/components/settings/node/data/NodeRelateResourceButton.js +2 -3
  81. package/es/core/editor/components/settings/propertyViews.js +2 -2
  82. package/es/core/editor/components/settings/text/TextPropertyView.js +4 -4
  83. package/es/core/editor/components/settings/view/BatchSetNodeSize.js +2 -2
  84. package/es/core/editor/components/settings/view/ViewPropertyView.js +3 -3
  85. package/es/core/editor/components/titlebar/TopoEditorTitleBar.js +6 -4
  86. package/es/core/models/plugins/resourceWebControllUrl.js +1 -1
  87. package/es/core/utils/showMessage.js +1 -1
  88. package/es/core/viewer/components/plugins/ResourceDetail/topoDrawer.js +3 -3
  89. package/es/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.js +5 -5
  90. package/es/core/viewer/components/titlebar/ViewerTools.js +12 -22
  91. package/es/core/viewer/components/titlebar/useSetDefaultTopo.js +1 -1
  92. package/es/core/viewer/components/titlebar/widgets/EditButton.js +5 -3
  93. package/es/core/viewer/components/titlebar/widgets/ElementMoveLockButton.js +55 -0
  94. package/es/core/viewer/components/titlebar/widgets/MoreButtonMenu.js +26 -0
  95. package/es/core/viewer/components/titlebar/widgets/SearchWidget.js +1 -1
  96. package/es/hooks/usePolling.js +1 -0
  97. package/es/hooks/useResourceConfig.js +92 -0
  98. package/es/hooks/useSelection.js +13 -3
  99. package/es/hooks/useTopoEdit.js +106 -145
  100. package/es/models/iconManage.js +2 -2
  101. package/es/models/linkDynamicStyleConfig.js +1 -1
  102. package/es/models/topoBizMod.js +1 -1
  103. package/es/models/topoCreateMod.js +19 -24
  104. package/es/style.js +41 -25
  105. package/es/topoCenter/components/Topology.js +2 -2
  106. package/es/topoCenter/getTopoData.js +12 -2
  107. package/es/topoCenter/models/TopoCenter.js +20 -0
  108. package/es/topoCenter/viewer/index.js +2 -2
  109. package/es/utils/htElementUtils.js +31 -8
  110. package/lib/common/components/ResourceTable/ResourceTable.js +4 -2
  111. package/lib/components/BatchAttrMetric/index.js +4 -2
  112. package/lib/components/BatchAttrMetric/setting.js +4 -2
  113. package/lib/components/FormTable/index.js +4 -2
  114. package/lib/components/IndexSettingDrawer/IndexList.js +4 -2
  115. package/lib/components/IndexSettingDrawer/index.js +4 -2
  116. package/lib/components/LayoutDirectionSelect/Item.js +4 -2
  117. package/lib/components/LayoutDirectionSelect/LayoutDirectionSelect.js +4 -2
  118. package/lib/components/LayoutSelect/LayoutSelect.js +4 -2
  119. package/lib/components/Link/form.js +4 -2
  120. package/lib/components/Link/hook.js +4 -2
  121. package/lib/components/Link/index.js +4 -2
  122. package/lib/components/Link/setting.js +4 -2
  123. package/lib/components/MultiResourceDrawer/Content.js +4 -2
  124. package/lib/components/MultiResourceDrawer/ResourceSelect.js +4 -2
  125. package/lib/components/MultiResourceDrawer/index.js +4 -2
  126. package/lib/components/ResourceList/ResourceSelect.js +4 -2
  127. package/lib/components/ResourceList/ResourceSelectConnect.js +4 -2
  128. package/lib/components/ResourceSelect/DefaultResourceSelectDrawer.js +4 -2
  129. package/lib/components/ResourceSelect/ResourceSelectDrawer.js +4 -2
  130. package/lib/components/ResourceSelectDrawer/ResourceSelectDrawer.js +4 -2
  131. package/lib/components/ResourceSelectDrawer/ResourceSelectList.js +4 -2
  132. package/lib/components/SingleResourceDrawer/SelectDrawer.js +4 -2
  133. package/lib/components/SingleResourceDrawer/SingleResourceDrawer.js +4 -2
  134. package/lib/components/TagSelect/index.js +4 -2
  135. package/lib/core/common/hooks/useHtElement.js +15 -0
  136. package/lib/core/common/icons/defaultIcons.js +29 -96
  137. package/lib/core/common/icons/htOldIcons.js +73 -0
  138. package/lib/core/common/icons/networkTopoCiTypeIcons.js +20 -0
  139. package/lib/core/components/TopoApp.js +4 -2
  140. package/lib/core/components/TopoAppProvider.js +4 -2
  141. package/lib/core/components/TopoAppView.js +4 -2
  142. package/lib/core/components/TopoView/Topo.js +4 -2
  143. package/lib/core/components/TopoView/Topo404.js +4 -2
  144. package/lib/core/components/TopoView/TopoContent.js +4 -2
  145. package/lib/core/components/TopoView/TopoNoPermission.js +4 -2
  146. package/lib/core/components/TopoView/topoView.js +17 -14
  147. package/lib/core/components/buildProvider.js +4 -2
  148. package/lib/core/components/titlebar/TitleBar.js +4 -2
  149. package/lib/core/components/titlebar/TitleBar.module.scss +0 -2
  150. package/lib/core/components/titlebar/widgets/TitleWidget.js +4 -2
  151. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/RuleSetting.js +4 -2
  152. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/index.js +4 -2
  153. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/ColorPicker.js +4 -2
  154. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleCondition.js +4 -2
  155. package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleStyle.js +4 -2
  156. package/lib/core/editor/components/ResourceViewAttributeSetting/ResourceViewAttributeSettingPlugin.js +4 -2
  157. package/lib/core/editor/components/ResourceViewAttributeSetting/Setting.js +4 -2
  158. package/lib/core/editor/components/iconManage/IconManage.js +4 -2
  159. package/lib/core/editor/components/iconManage/RenameDialog.js +4 -2
  160. package/lib/core/editor/components/iconManage/UploadIconDialogWrapper.js +4 -2
  161. package/lib/core/editor/components/settings/Settings.js +19 -3
  162. package/lib/core/editor/components/settings/SettingsForm.js +4 -2
  163. package/lib/core/editor/components/settings/Style.js +4 -2
  164. package/lib/core/editor/components/settings/common/AlignSetting/AlignSetting.module.scss +16 -0
  165. package/lib/core/editor/components/settings/common/AlignSetting/index.js +85 -0
  166. package/lib/core/editor/components/settings/common/GroupNodeList/ResourceSelectButton.js +4 -2
  167. package/lib/core/editor/components/settings/common/GroupNodeList/icon.js +18 -7
  168. package/lib/core/editor/components/settings/common/LayoutSettings.js +5 -3
  169. package/lib/core/editor/components/settings/common/LineType.js +4 -2
  170. package/lib/core/editor/components/settings/common/NodeAlignType.js +4 -2
  171. package/lib/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.js +11 -55
  172. package/lib/core/editor/components/settings/common/SizeInput/NodeSizeInput.js +120 -0
  173. package/lib/core/editor/components/settings/common/{NodeSizeInput → SizeInput}/NodeSizeInput.module.scss +0 -0
  174. package/lib/core/editor/components/settings/common/{NodeSizeInput → SizeInput}/NodeSizeNumberPicker.js +4 -2
  175. package/lib/core/editor/components/settings/common/{NodeSizeInput → SizeInput}/img/icon_/350/247/243/351/224/201.svg +0 -0
  176. package/lib/core/editor/components/settings/common/{NodeSizeInput → SizeInput}/img/icon_/351/224/201.svg +0 -0
  177. package/lib/core/editor/components/{resource/SingleResourceDrawer → settings/common/SizeInput}/index.js +2 -2
  178. package/lib/core/editor/components/settings/common/tab/TabView.js +4 -2
  179. package/lib/core/editor/components/settings/common/text/FontStyleCheckbox.js +4 -2
  180. package/lib/core/editor/components/settings/common/text/TextStyle.js +4 -2
  181. package/lib/core/editor/components/settings/group/DataTab/GroupNodeList.js +5 -12
  182. package/lib/core/editor/components/settings/group/DataTab/hoooks/useGroupRelateResource.js +45 -0
  183. package/lib/core/editor/components/settings/group/GroupPropertyView.js +8 -18
  184. package/lib/core/editor/components/settings/group/SettingTab/GroupExpandSetting.js +74 -25
  185. package/lib/core/editor/components/settings/group/SettingTab/GroupExpandStatus.js +37 -0
  186. package/lib/core/editor/components/settings/group/SettingTab/GroupIconSelect.js +40 -0
  187. package/lib/core/editor/components/settings/group/SettingTab/Setting.js +60 -44
  188. package/lib/core/editor/components/settings/group/hooks/useGroup.js +5 -5
  189. package/lib/core/editor/components/settings/layer/DataTab/NodeList.js +35 -0
  190. package/lib/core/editor/components/settings/layer/DataTab/RelateData.js +57 -0
  191. package/lib/core/editor/components/settings/layer/LayerPropertyView.js +44 -0
  192. package/lib/core/editor/components/settings/layer/LayerSettingsForm.js +48 -28
  193. package/lib/core/editor/components/settings/layer/SettingTab/Setting.js +176 -0
  194. package/lib/core/editor/components/settings/layer/SettingTab/Setting_bak.js +281 -0
  195. package/lib/core/editor/components/settings/link/LinkPropertyView.js +4 -2
  196. package/lib/core/editor/components/settings/node/NodeIconSelect.js +11 -8
  197. package/lib/core/editor/components/settings/node/NodePropertyView.js +8 -4
  198. package/lib/core/editor/components/settings/node/TopoTreeSelect.js +4 -2
  199. package/lib/core/editor/components/settings/node/data/BindResourceDrawer.js +4 -2
  200. package/lib/core/editor/components/settings/node/data/NodeRelateResourceButton.js +5 -4
  201. package/lib/core/editor/components/settings/propertyViews.js +2 -2
  202. package/lib/core/editor/components/settings/text/TextPropertyView.js +4 -2
  203. package/lib/core/editor/components/settings/view/BatchSetNodeSize.js +6 -4
  204. package/lib/core/editor/components/settings/view/ViewPropertyView.js +4 -2
  205. package/lib/core/editor/components/titlebar/TopoEditorTitleBar.js +6 -5
  206. package/lib/core/editor/components/titlebar/widgets/SaveButton.js +4 -2
  207. package/lib/core/models/cache/DictCache.js +4 -2
  208. package/lib/core/viewer/components/plugins/ResourceDetail/ResourceDetailDrawerPlugin.js +4 -2
  209. package/lib/core/viewer/components/plugins/ResourceDetail/topoDrawer.js +4 -2
  210. package/lib/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.js +4 -2
  211. package/lib/core/viewer/components/titlebar/TopoViewerTitleBar.js +4 -2
  212. package/lib/core/viewer/components/titlebar/ViewerTools.js +13 -28
  213. package/lib/core/viewer/components/titlebar/widgets/EditButton.js +4 -4
  214. package/lib/core/viewer/components/titlebar/widgets/ElementMoveLockButton.js +70 -0
  215. package/lib/core/viewer/components/titlebar/widgets/MoreButtonMenu.js +44 -0
  216. package/lib/core/viewer/components/titlebar/widgets/SearchWidget.js +4 -2
  217. package/lib/hooks/usePolling.js +1 -0
  218. package/lib/hooks/useResourceConfig.js +100 -0
  219. package/lib/hooks/useSelection.js +13 -3
  220. package/lib/hooks/useTopoEdit.js +106 -148
  221. package/lib/models/topoBizMod.js +1 -1
  222. package/lib/models/topoCreateMod.js +25 -28
  223. package/lib/style.js +16 -0
  224. package/lib/topoCenter/components/Topology.js +4 -2
  225. package/lib/topoCenter/getTopoData.js +12 -2
  226. package/lib/topoCenter/models/TopoCenter.js +20 -0
  227. package/lib/topoCenter/viewer/components/TopologyViewer.js +4 -2
  228. package/lib/utils/htElementUtils.js +42 -8
  229. package/package.json +11 -6
  230. package/es/core/editor/components/resource/SingleResourceDrawer/SelectDrawer.js +0 -54
  231. package/es/core/editor/components/resource/SingleResourceDrawer/SingleResourceDrawer.js +0 -58
  232. package/es/core/editor/components/resource/SingleResourceDrawer/index.js +0 -2
  233. package/es/core/editor/components/settings/group/hooks/useGroupExpand.js +0 -20
  234. package/es/hooks/useRelateTopo.js +0 -1
  235. package/es/hooks/useRelateTopoConfig.js +0 -0
  236. package/es/topoCenter/components/TopoTreeSelect.js +0 -5
  237. package/lib/core/editor/components/resource/SingleResourceDrawer/SelectDrawer.js +0 -68
  238. package/lib/core/editor/components/resource/SingleResourceDrawer/SingleResourceDrawer.js +0 -72
  239. package/lib/core/editor/components/settings/group/SettingTab/NodeIconSelect.js +0 -45
  240. package/lib/core/editor/components/settings/group/hooks/useGroupExpand.js +0 -26
  241. package/lib/core/editor/components/settings/layer/NodeList.js +0 -33
  242. package/lib/hooks/useRelateTopo.js +0 -6
  243. package/lib/hooks/useRelateTopoConfig.js +0 -1
  244. package/lib/topoCenter/components/TopoTreeSelect.js +0 -14
package/CHANGELOG.md ADDED
@@ -0,0 +1,26 @@
1
+ ## v2.1.8
2
+
3
+ - 支持自定义分层添加资源组件
4
+ - 支持添加节点、连线接口 `addElements(data)`
5
+
6
+ ## v2.1.4
7
+
8
+ - ht 新旧版本共存
9
+
10
+ ## v2.1.3
11
+
12
+ - 自定义图标
13
+
14
+
15
+ ## v2.0.2
16
+
17
+ - 支持编辑模式右键菜单
18
+
19
+ ## v2.0.1
20
+
21
+ 新增功能
22
+ - 拓扑图全量更新数据接口,更新时保留元素样式
23
+ - 编辑模式右键菜单
24
+
25
+ 阻断变更
26
+ - 暂时恢复页面加载ht topo-client.js