@riil-frontend/component-topology 6.0.0-alpha.9 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/1.js +2 -2
- package/build/2.js +1 -1
- package/build/index.css +1 -1
- package/build/index.js +35 -35
- package/demo/CHANGELOG/CHANGELOG.md +5 -0
- package/es/components/ColorPanel/components/ColorBlock/index.js +37 -0
- package/es/components/ColorPanel/components/ColorBlock/index.module.scss +9 -0
- package/es/components/ColorPanel/components/FontColorRange/index.js +35 -0
- package/es/components/ColorPanel/components/FontColorRange/index.module.scss +25 -0
- package/es/components/ColorPanel/index.js +259 -0
- package/es/components/ColorPanel/index.module.scss +35 -0
- package/es/components/VerticalIconTab/VerticalIconTab.js +11 -1
- package/es/components/VerticalIconTab/VerticalIconTab.module.scss +2 -0
- package/es/components/collapse/Collapse.js +22 -3
- package/es/components/collapse/Collapse.module.scss +24 -0
- package/es/components/collapse/index.js +2 -0
- package/es/core/common/hooks/useHtElements.js +21 -0
- package/es/core/common/icons/icon.js +40 -0
- package/es/core/common/icons/useIcons.js +5 -19
- package/es/core/components/AlarmListPanel/components/AlarmListItem.js +14 -13
- package/es/core/components/AlarmListPanel/components/index.module.scss +5 -5
- package/es/core/components/DisplaySettingDrawer/DisplaySetting.js +2 -1
- package/es/core/components/DisplaySettingDrawer/DisplaySettingDrawer.js +9 -3
- package/es/core/components/DisplaySettingDrawer/EditorDisplaySetting.js +122 -0
- package/es/core/components/DisplaySettingDrawer/LineExpandAllRadioGroup.js +0 -3
- package/es/core/components/DisplaySettingDrawer/hooks/useDisplaySetting.js +84 -22
- package/es/core/components/TopoView/GraphViewPanel.js +22 -0
- package/es/core/components/TopoView/editor.module.scss +1 -0
- package/es/core/components/TopoView/topoView.js +30 -60
- package/es/core/components/titlebar/TitleBar.module.scss +1 -1
- package/es/core/editor/components/EditorPlugin.js +18 -2
- package/es/core/editor/components/Sidebar/Sidebar.js +29 -7
- package/es/core/editor/components/Sidebar/panes.js +10 -5
- package/es/core/editor/components/Sidebar/views/CanvasPanel/CanvasPanel.js +11 -30
- package/es/core/editor/components/Sidebar/views/CanvasPanel/hooks/useCanvasThemeConfig.js +109 -0
- package/es/core/editor/components/Sidebar/views/CanvasPanel/hooks/useUpdateHtTopoDefaultTagStyle.js +27 -0
- package/es/core/editor/components/Sidebar/views/CanvasPanel/utils/elementThemeUtil.js +0 -0
- package/es/core/editor/components/Sidebar/views/ImagePanel/CiTypeImagePanel.js +3 -3
- package/es/core/editor/components/Sidebar/views/ImagePanel/HtCustomImagePanel.js +12 -1
- package/es/core/editor/components/Sidebar/views/ImagePanel/HtImagePalette.js +12 -1
- package/es/core/editor/components/Sidebar/views/ImagePanel/HtImagePalette.module.scss +3 -3
- package/es/core/editor/components/Sidebar/views/ImagePanel/ImagePanel.js +27 -8
- package/es/core/editor/components/Toolbar/buttons.js +2 -2
- package/es/core/editor/components/Toolbar/widgets/AddResourceButton.js +1 -1
- package/es/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxBackgroundButton.js +3 -3
- package/es/core/editor/components/Toolbar/widgets/EdgeColorButton/Content.js +46 -2
- package/es/core/editor/components/Toolbar/widgets/EdgeColorButton/EdgeColorButton.js +98 -6
- package/es/core/editor/components/Toolbar/widgets/EdgeTypeButton/EdgeType.js +59 -25
- package/es/core/editor/components/Toolbar/widgets/EdgeTypeButton/LineType.js +3 -5
- package/es/core/editor/components/Toolbar/widgets/EdgeTypeButton/constants.js +77 -0
- package/es/core/editor/components/Toolbar/widgets/EdgeTypeButton/index.js +52 -5
- package/es/core/editor/components/Toolbar/widgets/FontColorButton.js +166 -16
- package/es/core/editor/components/Toolbar/widgets/FontColorButton.module.scss +42 -0
- package/es/core/editor/components/Toolbar/widgets/FontFamilyWidget.js +26 -12
- package/es/core/editor/components/Toolbar/widgets/FontSizeWidget.js +37 -12
- package/es/core/editor/components/Toolbar/widgets/FontStyleButton.js +92 -39
- package/es/core/editor/components/Toolbar/widgets/IconSelect/index.module.scss +4 -2
- package/es/core/editor/components/Toolbar/widgets/IconSelect/popUpContent.js +1 -2
- package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutSettings.js +99 -0
- package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutSettings.module.scss +70 -0
- package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTagImageSelect/index.js +42 -0
- package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTagImageSelect/index.module.scss +7 -0
- package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTagSelect/index.js +75 -0
- package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTagSelect/index.scss +32 -0
- package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/Icon.js +23 -0
- package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/assets/index.js +10 -0
- package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/assets/topo_layout_circular.svg +10 -0
- package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/assets/topo_layout_hierarchical.svg +10 -0
- package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/assets/topo_layout_rectangle.svg +12 -0
- package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/assets/topo_layout_toward.svg +16 -0
- package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/index.js +31 -0
- package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/index.module.scss +53 -0
- package/es/core/editor/components/Toolbar/widgets/Layout/index.js +130 -15
- package/es/core/editor/components/Toolbar/widgets/NodeAlignWidget.js +107 -23
- package/es/core/editor/components/Toolbar/widgets/NodeAlignWidget.module.scss +33 -0
- package/es/core/editor/components/Toolbar/widgets/NodeImageButton/BoxBackgroundSetting.js +2 -2
- package/es/core/editor/components/Toolbar/widgets/NodeImageButton/NodeImageButton.js +20 -7
- package/es/core/editor/components/Toolbar/widgets/NodeSizeButton/NodeSizeButton.js +40 -35
- package/es/core/editor/components/Toolbar/widgets/NodeSizeButton/NodeSizeButton.module.scss +28 -0
- package/es/core/editor/components/Toolbar/widgets/WidgetBox.js +10 -4
- package/es/core/editor/components/Toolbar/widgets/WidgetBox.module.scss +10 -1
- package/es/core/editor/components/Toolbar/widgets/components/ButtonBox.js +2 -2
- package/es/core/editor/components/Toolbar/widgets/components/ButtonBox.module.scss +4 -0
- package/es/core/editor/components/Toolbar/widgets/components/DropdownButton.js +19 -8
- package/es/core/editor/components/Toolbar/widgets/components/DropdownMenu.js +21 -7
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/ElementTextStyleSetting.js +52 -0
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/colorUtil.js +67 -0
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/box.js +41 -0
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/edgeTag.js +65 -0
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/groupTitle.js +65 -0
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/index.js +14 -0
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/layerTitle.js +73 -0
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/nodeTag.js +69 -0
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/text.js +37 -0
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/textStyleUtil.js +124 -0
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/GlobalTagStyleSetting/GlobalTagStyleSetting.js +31 -0
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/GlobalTagStyleSetting/globalTag.js +98 -0
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/textStyleSettingRouter.js +20 -0
- package/es/core/editor/components/plugins/AddElementThemePlugin.js +11 -0
- package/es/core/editor/components/settings/CloseablePanel.js +33 -0
- package/es/core/editor/components/settings/CloseablePanel.module.scss +21 -0
- package/es/core/editor/components/settings/PropertyView.js +50 -11
- package/es/core/editor/components/settings/Settings.js +37 -122
- package/es/core/editor/components/settings/Settings.module.scss +7 -11
- package/es/core/editor/components/settings/common/AlignSetting/AlignSetting.module.scss +3 -3
- package/es/core/editor/components/settings/common/AlignSetting/AlignTypeList.js +80 -0
- package/es/core/editor/components/settings/common/AlignSetting/index.js +20 -72
- package/es/core/editor/components/settings/common/GroupNodeList/ResourceList.module.scss +1 -0
- package/es/core/editor/components/settings/common/LineType/index.js +11 -102
- package/es/core/editor/components/settings/common/NameInput.js +24 -0
- package/es/core/editor/components/settings/common/SizeInput/NodeSizeInput.js +21 -18
- package/es/core/editor/components/settings/common/text/fontStyleUtil.js +21 -19
- package/es/core/editor/components/settings/core/PropertyViewManager.js +81 -0
- package/es/core/editor/components/settings/core/edgePropertyViewAdapter.js +22 -0
- package/es/core/editor/components/settings/core/getPropertyViewType.js +34 -0
- package/es/core/editor/components/settings/core/updateElementProperty.js +21 -0
- package/es/core/editor/components/settings/propertyViews/box/BoxPropertyView.js +6 -13
- package/es/core/editor/components/settings/propertyViews/box/BoxPropertyViewV1.js +58 -0
- package/es/core/editor/components/settings/propertyViews/box/NameInput.js +5 -4
- package/es/core/editor/components/settings/propertyViews/edge/CommonEdgePropertyView.js +12 -3
- package/es/core/editor/components/settings/propertyViews/edge/EdgeGroupPropertyView.js +7 -8
- package/es/core/editor/components/settings/propertyViews/edge/EdgePropertyView.js +9 -23
- package/es/core/editor/components/settings/propertyViews/edge/addEdgeProps.js +10 -0
- package/es/core/editor/components/settings/propertyViews/edge/edgeGroup/EdgeGroupSetting.js +1 -6
- package/es/core/editor/components/settings/propertyViews/group/GroupPropertyView.js +13 -21
- package/es/core/editor/components/settings/propertyViews/group/GroupPropertyView.module.scss +8 -1
- package/es/core/editor/components/settings/propertyViews/group/GroupPropertyViewV1.js +28 -0
- package/es/core/editor/components/settings/propertyViews/group/SettingTab/GroupBasicSetting.js +75 -0
- package/es/core/editor/components/settings/propertyViews/group/SettingTab/GroupExpandSetting.js +9 -15
- package/es/core/editor/components/settings/propertyViews/group/cluster/ClusterGroupRelateData.js +8 -6
- package/es/core/editor/components/settings/propertyViews/index.js +4 -6
- package/es/core/editor/components/settings/propertyViews/layer/BasicSetting.js +57 -0
- package/es/core/editor/components/settings/propertyViews/layer/LayerPropertyView.js +11 -17
- package/es/core/editor/components/settings/propertyViews/layer/LayerPropertyView.module.scss +10 -0
- package/es/core/editor/components/settings/propertyViews/layer/LayerPropertyViewV1.js +27 -0
- package/es/core/editor/components/settings/propertyViews/multipleElements/MultipleElementLineType.js +5 -7
- package/es/core/editor/components/settings/propertyViews/multipleElements/MultipleElementPropertyView.js +2 -15
- package/es/core/editor/components/settings/propertyViews/node/NodePropertyView.js +8 -32
- package/es/core/editor/components/settings/propertyViews/node/NodePropertyViewV1.js +53 -0
- package/es/core/editor/components/settings/propertyViews/node/Setting/BasicSetting.js +49 -0
- package/es/core/editor/components/settings/propertyViews/node/Setting/NameInput.js +5 -4
- package/es/core/editor/components/settings/propertyViews/node/data/Data.js +2 -1
- package/es/core/editor/components/settings/propertyViews/node/data/NodeRelateResourceButton.js +1 -0
- package/es/core/editor/components/settings/propertyViews/text/TextPropertyView.js +5 -20
- package/es/core/editor/components/titlebar/TopoEditorTitleBar.js +8 -4
- package/es/core/editor/config/themes.js +105 -0
- package/es/core/editor/hooks/useKeyboardShortcut.js +39 -0
- package/es/core/editor/hooks/useNewElementTheme.js +46 -0
- package/es/core/editor/store/topoEdit.js +44 -37
- package/es/core/editor/utils/edgeTypeStyleUtil.js +34 -11
- package/es/core/editor/utils/textStyleUtil.js +0 -0
- package/es/core/editor/utils/themeUtil.js +32 -0
- package/es/core/hooks/useCanvasTheme.js +54 -0
- package/es/core/hooks/useManageStatus.js +1 -9
- package/es/core/hooks/usePolling.js +2 -5
- package/es/core/hooks/useTopoEdit.js +15 -8
- package/es/core/models/Alarm.js +2 -2
- package/es/core/models/AttributeMetricDisplay.js +4 -0
- package/es/core/models/HistoryManager.js +13 -8
- package/es/core/models/{SelectionManager.js → SelectionModel.js} +55 -22
- package/es/core/models/TopoApp.js +6 -5
- package/es/core/models/selection/ignoreList.js +1 -0
- package/es/core/models/utils/linkUtils.js +5 -6
- package/es/core/store/models/customIcon.js +1 -3
- package/es/core/store/models/selection.js +2 -1
- package/es/core/store/models/topoBizMod.js +0 -3
- package/es/core/store/models/topoConfig.js +10 -12
- package/es/core/store/models/topoMod.js +26 -28
- package/es/core/utils/edgeUtil.js +6 -0
- package/es/core/utils/showGraphManageStatusUtil.js +7 -1
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/hooks/useMetricPolling.js +18 -13
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/services/index.js +38 -19
- package/es/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/WebConsoleForm.js +13 -29
- package/es/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/hooks/useWebConsole.js +6 -5
- package/es/core/viewer/components/plugins/ViewerPlugin.js +10 -4
- package/es/core/viewer/components/titlebar/widgets/SettingButton.js +3 -1
- package/es/core/viewer/components/titlebar/widgets/SettingButtonWidget.js +4 -2
- package/es/networkTopo/components/editor/propertyViews/edge/EdgeGroupPropertyView.js +2 -1
- package/es/networkTopo/components/editor/propertyViews/edge/EdgePropertyView.js +39 -6
- package/es/networkTopo/components/editor/propertyViews/edge/LinkPropertyView/LinkPropertyView.js +10 -16
- package/es/networkTopo/components/editor/propertyViews/edge/LinkPropertyView/LinkPropertyViewV1.js +37 -0
- package/es/networkTopo/components/editor/propertyViews/edge/link/LinkInfoPreview.module.scss +1 -1
- package/es/networkTopo/components/editor/useEditorProps.js +1 -3
- package/es/networkTopo/createTopo.js +2 -0
- package/es/networkTopo/models/LinkDynamicStyleExecutor.js +2 -2
- package/es/networkTopo/services/link.js +2 -2
- package/es/networkTopo/store/topoTreeMod.js +6 -7
- package/es/style.js +28 -27
- package/es/utils/htElementUtils.js +3 -0
- package/es/utils/topoData.js +1 -0
- package/lib/components/ColorPanel/components/ColorBlock/index.js +47 -0
- package/lib/components/ColorPanel/components/ColorBlock/index.module.scss +9 -0
- package/lib/components/ColorPanel/components/FontColorRange/index.js +49 -0
- package/lib/components/ColorPanel/components/FontColorRange/index.module.scss +25 -0
- package/lib/components/ColorPanel/index.js +278 -0
- package/lib/components/ColorPanel/index.module.scss +35 -0
- package/lib/components/VerticalIconTab/VerticalIconTab.js +14 -1
- package/lib/components/VerticalIconTab/VerticalIconTab.module.scss +2 -0
- package/lib/components/collapse/Collapse.js +28 -3
- package/lib/components/collapse/Collapse.module.scss +24 -0
- package/lib/components/collapse/index.js +11 -0
- package/lib/core/common/hooks/useHtElements.js +27 -0
- package/lib/core/common/icons/icon.js +47 -0
- package/lib/core/common/icons/useIcons.js +7 -18
- package/lib/core/components/AlarmListPanel/components/AlarmListItem.js +14 -13
- package/lib/core/components/AlarmListPanel/components/index.module.scss +5 -5
- package/lib/core/components/DisplaySettingDrawer/DisplaySetting.js +2 -1
- package/lib/core/components/DisplaySettingDrawer/DisplaySettingDrawer.js +10 -3
- package/lib/core/components/DisplaySettingDrawer/EditorDisplaySetting.js +147 -0
- package/lib/core/components/DisplaySettingDrawer/LineExpandAllRadioGroup.js +0 -3
- package/lib/core/components/DisplaySettingDrawer/hooks/useDisplaySetting.js +84 -22
- package/lib/core/components/TopoView/GraphViewPanel.js +32 -0
- package/lib/core/components/TopoView/editor.module.scss +1 -0
- package/lib/core/components/TopoView/topoView.js +36 -67
- package/lib/core/components/titlebar/TitleBar.module.scss +1 -1
- package/lib/core/editor/components/EditorPlugin.js +26 -2
- package/lib/core/editor/components/Sidebar/Sidebar.js +28 -6
- package/lib/core/editor/components/Sidebar/panes.js +10 -5
- package/lib/core/editor/components/Sidebar/views/CanvasPanel/CanvasPanel.js +12 -31
- package/lib/core/editor/components/Sidebar/views/CanvasPanel/hooks/useCanvasThemeConfig.js +123 -0
- package/lib/core/editor/components/Sidebar/views/CanvasPanel/hooks/useUpdateHtTopoDefaultTagStyle.js +37 -0
- package/lib/core/editor/components/Sidebar/views/CanvasPanel/utils/elementThemeUtil.js +1 -0
- package/lib/core/editor/components/Sidebar/views/ImagePanel/CiTypeImagePanel.js +1 -1
- package/lib/core/editor/components/Sidebar/views/ImagePanel/HtCustomImagePanel.js +13 -1
- package/lib/core/editor/components/Sidebar/views/ImagePanel/HtImagePalette.js +13 -1
- package/lib/core/editor/components/Sidebar/views/ImagePanel/HtImagePalette.module.scss +3 -3
- package/lib/core/editor/components/Sidebar/views/ImagePanel/ImagePanel.js +36 -12
- package/lib/core/editor/components/Toolbar/buttons.js +2 -2
- package/lib/core/editor/components/Toolbar/widgets/AddResourceButton.js +1 -1
- package/lib/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxBackgroundButton.js +3 -3
- package/lib/core/editor/components/Toolbar/widgets/EdgeColorButton/Content.js +48 -2
- package/lib/core/editor/components/Toolbar/widgets/EdgeColorButton/EdgeColorButton.js +100 -6
- package/lib/core/editor/components/Toolbar/widgets/EdgeTypeButton/EdgeType.js +58 -24
- package/lib/core/editor/components/Toolbar/widgets/EdgeTypeButton/LineType.js +3 -3
- package/lib/core/editor/components/Toolbar/widgets/EdgeTypeButton/constants.js +83 -0
- package/lib/core/editor/components/Toolbar/widgets/EdgeTypeButton/index.js +53 -4
- package/lib/core/editor/components/Toolbar/widgets/FontColorButton.js +172 -16
- package/lib/core/editor/components/Toolbar/widgets/FontColorButton.module.scss +42 -0
- package/lib/core/editor/components/Toolbar/widgets/FontFamilyWidget.js +27 -11
- package/lib/core/editor/components/Toolbar/widgets/FontSizeWidget.js +38 -11
- package/lib/core/editor/components/Toolbar/widgets/FontStyleButton.js +96 -39
- package/lib/core/editor/components/Toolbar/widgets/IconSelect/index.module.scss +4 -2
- package/lib/core/editor/components/Toolbar/widgets/IconSelect/popUpContent.js +1 -2
- package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutSettings.js +116 -0
- package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutSettings.module.scss +70 -0
- package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTagImageSelect/index.js +55 -0
- package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTagImageSelect/index.module.scss +7 -0
- package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTagSelect/index.js +93 -0
- package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTagSelect/index.scss +32 -0
- package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/Icon.js +32 -0
- package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/assets/index.js +22 -0
- package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/assets/topo_layout_circular.svg +10 -0
- package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/assets/topo_layout_hierarchical.svg +10 -0
- package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/assets/topo_layout_rectangle.svg +12 -0
- package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/assets/topo_layout_toward.svg +16 -0
- package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/index.js +44 -0
- package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutTemplateButton/index.module.scss +53 -0
- package/lib/core/editor/components/Toolbar/widgets/Layout/index.js +135 -16
- package/lib/core/editor/components/Toolbar/widgets/NodeAlignWidget.js +110 -23
- package/lib/core/editor/components/Toolbar/widgets/NodeAlignWidget.module.scss +33 -0
- package/lib/core/editor/components/Toolbar/widgets/NodeImageButton/BoxBackgroundSetting.js +2 -2
- package/lib/core/editor/components/Toolbar/widgets/NodeImageButton/NodeImageButton.js +21 -7
- package/lib/core/editor/components/Toolbar/widgets/NodeSizeButton/NodeSizeButton.js +40 -34
- package/lib/core/editor/components/Toolbar/widgets/NodeSizeButton/NodeSizeButton.module.scss +28 -0
- package/lib/core/editor/components/Toolbar/widgets/WidgetBox.js +13 -4
- package/lib/core/editor/components/Toolbar/widgets/WidgetBox.module.scss +10 -1
- package/lib/core/editor/components/Toolbar/widgets/components/ButtonBox.js +2 -2
- package/lib/core/editor/components/Toolbar/widgets/components/ButtonBox.module.scss +4 -0
- package/lib/core/editor/components/Toolbar/widgets/components/DropdownButton.js +19 -8
- package/lib/core/editor/components/Toolbar/widgets/components/DropdownMenu.js +22 -7
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/ElementTextStyleSetting.js +66 -0
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/colorUtil.js +82 -0
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/box.js +58 -0
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/edgeTag.js +86 -0
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/groupTitle.js +88 -0
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/index.js +28 -0
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/layerTitle.js +90 -0
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/nodeTag.js +90 -0
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/elements/text.js +54 -0
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/textStyleUtil.js +141 -0
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/GlobalTagStyleSetting/GlobalTagStyleSetting.js +46 -0
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/GlobalTagStyleSetting/globalTag.js +111 -0
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/textStyleSettingRouter.js +31 -0
- package/lib/core/editor/components/plugins/AddElementThemePlugin.js +20 -0
- package/lib/core/editor/components/settings/CloseablePanel.js +46 -0
- package/lib/core/editor/components/settings/CloseablePanel.module.scss +21 -0
- package/lib/core/editor/components/settings/PropertyView.js +59 -12
- package/lib/core/editor/components/settings/Settings.js +40 -122
- package/lib/core/editor/components/settings/Settings.module.scss +7 -11
- package/lib/core/editor/components/settings/common/AlignSetting/AlignSetting.module.scss +3 -3
- package/lib/core/editor/components/settings/common/AlignSetting/AlignTypeList.js +97 -0
- package/lib/core/editor/components/settings/common/AlignSetting/index.js +21 -80
- package/lib/core/editor/components/settings/common/GroupNodeList/ResourceList.module.scss +1 -0
- package/lib/core/editor/components/settings/common/LineType/index.js +11 -109
- package/lib/core/editor/components/settings/common/NameInput.js +38 -0
- package/lib/core/editor/components/settings/common/SizeInput/NodeSizeInput.js +21 -19
- package/lib/core/editor/components/settings/common/text/fontStyleUtil.js +25 -20
- package/lib/core/editor/components/settings/core/PropertyViewManager.js +91 -0
- package/lib/core/editor/components/settings/core/edgePropertyViewAdapter.js +33 -0
- package/lib/core/editor/components/settings/core/getPropertyViewType.js +40 -0
- package/lib/core/editor/components/settings/core/updateElementProperty.js +27 -0
- package/lib/core/editor/components/settings/propertyViews/box/BoxPropertyView.js +6 -13
- package/lib/core/editor/components/settings/propertyViews/box/BoxPropertyViewV1.js +76 -0
- package/lib/core/editor/components/settings/propertyViews/box/NameInput.js +6 -5
- package/lib/core/editor/components/settings/propertyViews/edge/CommonEdgePropertyView.js +15 -3
- package/lib/core/editor/components/settings/propertyViews/edge/EdgeGroupPropertyView.js +9 -12
- package/lib/core/editor/components/settings/propertyViews/edge/EdgePropertyView.js +7 -23
- package/lib/core/editor/components/settings/propertyViews/edge/addEdgeProps.js +19 -0
- package/lib/core/editor/components/settings/propertyViews/edge/edgeGroup/EdgeGroupSetting.js +1 -6
- package/lib/core/editor/components/settings/propertyViews/group/GroupPropertyView.js +14 -25
- package/lib/core/editor/components/settings/propertyViews/group/GroupPropertyView.module.scss +8 -1
- package/lib/core/editor/components/settings/propertyViews/group/GroupPropertyViewV1.js +43 -0
- package/lib/core/editor/components/settings/propertyViews/group/SettingTab/GroupBasicSetting.js +98 -0
- package/lib/core/editor/components/settings/propertyViews/group/SettingTab/GroupExpandSetting.js +8 -14
- package/lib/core/editor/components/settings/propertyViews/group/cluster/ClusterGroupRelateData.js +9 -7
- package/lib/core/editor/components/settings/propertyViews/index.js +4 -9
- package/lib/core/editor/components/settings/propertyViews/layer/BasicSetting.js +75 -0
- package/lib/core/editor/components/settings/propertyViews/layer/LayerPropertyView.js +12 -20
- package/lib/core/editor/components/settings/propertyViews/layer/LayerPropertyView.module.scss +10 -0
- package/lib/core/editor/components/settings/propertyViews/layer/LayerPropertyViewV1.js +40 -0
- package/lib/core/editor/components/settings/propertyViews/multipleElements/MultipleElementLineType.js +4 -6
- package/lib/core/editor/components/settings/propertyViews/multipleElements/MultipleElementPropertyView.js +2 -15
- package/lib/core/editor/components/settings/propertyViews/node/NodePropertyView.js +8 -35
- package/lib/core/editor/components/settings/propertyViews/node/NodePropertyViewV1.js +68 -0
- package/lib/core/editor/components/settings/propertyViews/node/Setting/BasicSetting.js +64 -0
- package/lib/core/editor/components/settings/propertyViews/node/Setting/NameInput.js +6 -5
- package/lib/core/editor/components/settings/propertyViews/node/data/Data.js +2 -1
- package/lib/core/editor/components/settings/propertyViews/node/data/NodeRelateResourceButton.js +1 -0
- package/lib/core/editor/components/settings/propertyViews/text/TextPropertyView.js +5 -20
- package/lib/core/editor/components/titlebar/TopoEditorTitleBar.js +9 -1
- package/lib/core/editor/config/themes.js +114 -0
- package/lib/core/editor/hooks/useKeyboardShortcut.js +49 -0
- package/lib/core/editor/hooks/useNewElementTheme.js +57 -0
- package/lib/core/editor/store/topoEdit.js +46 -40
- package/lib/core/editor/utils/edgeTypeStyleUtil.js +38 -11
- package/lib/core/editor/utils/textStyleUtil.js +1 -0
- package/lib/core/editor/utils/themeUtil.js +39 -0
- package/lib/core/hooks/useCanvasTheme.js +68 -0
- package/lib/core/hooks/useManageStatus.js +1 -9
- package/lib/core/hooks/usePolling.js +2 -5
- package/lib/core/hooks/useTopoEdit.js +16 -8
- package/lib/core/models/Alarm.js +2 -2
- package/lib/core/models/AttributeMetricDisplay.js +4 -0
- package/lib/core/models/HistoryManager.js +13 -8
- package/lib/core/models/{SelectionManager.js → SelectionModel.js} +57 -22
- package/lib/core/models/TopoApp.js +7 -5
- package/lib/core/models/selection/ignoreList.js +6 -0
- package/lib/core/models/utils/linkUtils.js +5 -6
- package/lib/core/store/models/customIcon.js +1 -3
- package/lib/core/store/models/selection.js +2 -1
- package/lib/core/store/models/topoBizMod.js +0 -3
- package/lib/core/store/models/topoConfig.js +9 -18
- package/lib/core/store/models/topoMod.js +27 -29
- package/lib/core/utils/edgeUtil.js +6 -0
- package/lib/core/utils/showGraphManageStatusUtil.js +7 -1
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/hooks/useMetricPolling.js +18 -13
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/services/index.js +38 -19
- package/lib/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/WebConsoleForm.js +13 -29
- package/lib/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/hooks/useWebConsole.js +6 -5
- package/lib/core/viewer/components/plugins/ViewerPlugin.js +11 -3
- package/lib/core/viewer/components/titlebar/widgets/SettingButton.js +3 -1
- package/lib/core/viewer/components/titlebar/widgets/SettingButtonWidget.js +4 -2
- package/lib/networkTopo/components/editor/propertyViews/edge/EdgeGroupPropertyView.js +1 -0
- package/lib/networkTopo/components/editor/propertyViews/edge/EdgePropertyView.js +45 -7
- package/lib/networkTopo/components/editor/propertyViews/edge/LinkPropertyView/LinkPropertyView.js +10 -18
- package/lib/networkTopo/components/editor/propertyViews/edge/LinkPropertyView/LinkPropertyViewV1.js +50 -0
- package/lib/networkTopo/components/editor/propertyViews/edge/link/LinkInfoPreview.module.scss +1 -1
- package/lib/networkTopo/components/editor/useEditorProps.js +1 -4
- package/lib/networkTopo/createTopo.js +3 -0
- package/lib/networkTopo/models/LinkDynamicStyleExecutor.js +2 -2
- package/lib/networkTopo/services/link.js +2 -2
- package/lib/networkTopo/store/topoTreeMod.js +6 -8
- package/lib/style.js +28 -27
- package/lib/utils/htElementUtils.js +5 -0
- package/lib/utils/topoData.js +1 -0
- package/package.json +5 -4
@@ -19,41 +19,37 @@ var _componentTopologyGraph = _interopRequireWildcard(require("@riil-frontend/co
|
|
19
19
|
|
20
20
|
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
21
21
|
|
22
|
-
var _useTopoEdit = _interopRequireDefault(require("../../hooks/useTopoEdit"));
|
23
|
-
|
24
22
|
var _showMessage = _interopRequireDefault(require("../../utils/showMessage"));
|
25
23
|
|
26
|
-
var _EditorPlugin = _interopRequireDefault(require("../../editor/components/EditorPlugin"));
|
27
|
-
|
28
|
-
var _ViewerPlugin = _interopRequireDefault(require("../../viewer/components/plugins/ViewerPlugin"));
|
29
|
-
|
30
24
|
var _TitleBar = _interopRequireDefault(require("../titlebar/TitleBar"));
|
31
25
|
|
32
26
|
var _template = require("../../../utils/template");
|
33
27
|
|
34
|
-
var _PropertyView = _interopRequireDefault(require("../../editor/components/settings/PropertyView"));
|
35
|
-
|
36
|
-
var _BackgroundView = _interopRequireDefault(require("../../editor/components/BackgroundView"));
|
37
|
-
|
38
28
|
var _edgeUtil = require("../../utils/edgeUtil");
|
39
29
|
|
40
|
-
var _useManageStatus = _interopRequireDefault(require("../../hooks/useManageStatus"));
|
41
|
-
|
42
|
-
var _useAlarm = _interopRequireDefault(require("../../hooks/useAlarm"));
|
43
|
-
|
44
30
|
var _useRouterAdapter = _interopRequireDefault(require("../../hooks/useRouterAdapter"));
|
45
31
|
|
46
32
|
var _graphLinkUtil = require("../../utils/graphLinkUtil");
|
47
33
|
|
48
34
|
var _clusterUtil = require("../../../utils/clusterUtil");
|
49
35
|
|
36
|
+
var _GraphViewPanel = _interopRequireDefault(require("./GraphViewPanel"));
|
37
|
+
|
38
|
+
var _TopoViewModule = _interopRequireDefault(require("./TopoView.module.scss"));
|
39
|
+
|
40
|
+
var _ViewerPlugin = _interopRequireDefault(require("../../viewer/components/plugins/ViewerPlugin"));
|
41
|
+
|
42
|
+
var _useTopoEdit = _interopRequireDefault(require("../../hooks/useTopoEdit"));
|
43
|
+
|
44
|
+
var _EditorPlugin = _interopRequireDefault(require("../../editor/components/EditorPlugin"));
|
45
|
+
|
50
46
|
var _EditorToolbar = _interopRequireDefault(require("../../editor/components/Toolbar/EditorToolbar"));
|
51
47
|
|
52
48
|
var _Sidebar = _interopRequireDefault(require("../../editor/components/Sidebar/Sidebar"));
|
53
49
|
|
54
|
-
var
|
50
|
+
var _PropertyView = _interopRequireDefault(require("../../editor/components/settings/PropertyView"));
|
55
51
|
|
56
|
-
var
|
52
|
+
var _HistoryManager = _interopRequireDefault(require("../../models/HistoryManager"));
|
57
53
|
|
58
54
|
var _editorModule = _interopRequireDefault(require("./editor.module.scss"));
|
59
55
|
|
@@ -61,6 +57,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
61
57
|
|
62
58
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
63
59
|
|
60
|
+
// 通用
|
61
|
+
// 显示模式
|
62
|
+
// 编辑模式
|
64
63
|
var Topology = function Topology(props) {
|
65
64
|
var _classnames;
|
66
65
|
|
@@ -92,9 +91,9 @@ var Topology = function Topology(props) {
|
|
92
91
|
topoState = _store$useModel[0],
|
93
92
|
topoDispatchers = _store$useModel[1];
|
94
93
|
|
95
|
-
var bizDispatchers = store.useModelDispatchers('topoBizMod');
|
96
94
|
var topoId = topoState.topoId,
|
97
95
|
viewState = topoState.viewState,
|
96
|
+
graphLoaded = topoState.graphLoaded,
|
98
97
|
topoData = topoState.topoData,
|
99
98
|
urlParams = topoState.urlParams;
|
100
99
|
var isEditMode = viewState === 'edit';
|
@@ -103,11 +102,10 @@ var Topology = function Topology(props) {
|
|
103
102
|
|
104
103
|
var _useState = (0, _react.useState)(buildLoadOptions ? buildLoadOptions(topoData) : topoData),
|
105
104
|
tData = _useState[0],
|
106
|
-
setTData = _useState[1];
|
105
|
+
setTData = _useState[1];
|
107
106
|
|
107
|
+
(0, _useRouterAdapter["default"])(props); // 编辑模式----
|
108
108
|
|
109
|
-
var selectionManager = topo.selectionManager;
|
110
|
-
(0, _useRouterAdapter["default"])(props);
|
111
109
|
var topoEdit = (0, _useTopoEdit["default"])({
|
112
110
|
topo: topo,
|
113
111
|
topoId: topoId,
|
@@ -120,25 +118,11 @@ var Topology = function Topology(props) {
|
|
120
118
|
isLayerTopo: isLayerTopo
|
121
119
|
});
|
122
120
|
topo.topoEdit = topoEdit;
|
123
|
-
var onExitEdit = topoEdit.onExitEdit,
|
124
|
-
onBindData = topoEdit.onBindData,
|
125
|
-
onDeleteElement = topoEdit.onDeleteElement,
|
126
|
-
onSaveTopo = topoEdit.onSaveTopo;
|
127
|
-
var titleBarRef = (0, _react.useRef)();
|
128
|
-
(0, _useAlarm["default"])({
|
129
|
-
topo: topo
|
130
|
-
});
|
131
|
-
(0, _useManageStatus["default"])({
|
132
|
-
topo: topo
|
133
|
-
});
|
134
121
|
(0, _react.useEffect)(function () {
|
135
122
|
if (viewState === 'view' && topoId) {
|
136
123
|
// TODO 移到模型中
|
137
124
|
// rlog.debug('useEffect-viewState', topoId, viewState);
|
138
125
|
setTData(null);
|
139
|
-
bizDispatchers.update({
|
140
|
-
setConfig: null
|
141
|
-
});
|
142
126
|
}
|
143
127
|
}, [topoId, viewState]);
|
144
128
|
(0, _react.useEffect)(function () {
|
@@ -148,7 +132,9 @@ var Topology = function Topology(props) {
|
|
148
132
|
(0, _react.useEffect)(function () {
|
149
133
|
// 拓扑退出注销
|
150
134
|
return function () {
|
151
|
-
|
135
|
+
_rlog["default"].info('TopoView 退出');
|
136
|
+
|
137
|
+
topo.selectionModel.destroy();
|
152
138
|
topoDispatchers.reset();
|
153
139
|
};
|
154
140
|
}, []);
|
@@ -178,7 +164,7 @@ var Topology = function Topology(props) {
|
|
178
164
|
topo.historyManager = new _HistoryManager["default"](topo, htHistoryManager);
|
179
165
|
}
|
180
166
|
|
181
|
-
|
167
|
+
topo.selectionModel.init();
|
182
168
|
topoDispatchers.update({
|
183
169
|
graphLoaded2: true
|
184
170
|
});
|
@@ -198,7 +184,7 @@ var Topology = function Topology(props) {
|
|
198
184
|
(0, _graphLinkUtil.fixLink)(topo);
|
199
185
|
(0, _clusterUtil.handleClusterNoPermission)(topo);
|
200
186
|
(0, _edgeUtil.updateEdgeExpanded)(topo);
|
201
|
-
|
187
|
+
topo.selectionModel.init();
|
202
188
|
topoDispatchers.update({
|
203
189
|
graphLoaded: true
|
204
190
|
});
|
@@ -210,7 +196,7 @@ var Topology = function Topology(props) {
|
|
210
196
|
if (onLoad) {
|
211
197
|
onLoad();
|
212
198
|
}
|
213
|
-
}, [topoData]);
|
199
|
+
}, [topoData]);
|
214
200
|
|
215
201
|
var rightEventHandle = function rightEventHandle(event) {
|
216
202
|
_rlog["default"].debug('右键事件', event);
|
@@ -249,16 +235,16 @@ var Topology = function Topology(props) {
|
|
249
235
|
break;
|
250
236
|
|
251
237
|
case _componentTopologyGraph.TopoEvent.EVENT_DATA_PICK:
|
252
|
-
onBindData(event.data);
|
238
|
+
topoEdit.onBindData(event.data);
|
253
239
|
break;
|
254
240
|
|
255
241
|
case _componentTopologyGraph.TopoEvent.EVENT_DATA_DELETE:
|
256
|
-
onDeleteElement(event.data);
|
242
|
+
topoEdit.onDeleteElement(event.data);
|
257
243
|
break;
|
258
244
|
// FIXME 保存逻辑优化
|
259
245
|
|
260
246
|
case _componentTopologyGraph.TopoEvent.EVENT_SAVE_TOPO:
|
261
|
-
onSaveTopo(event.data);
|
247
|
+
topoEdit.onSaveTopo(event.data);
|
262
248
|
break;
|
263
249
|
|
264
250
|
case _componentTopologyGraph.TopoEvent.EVENT_REFRESH:
|
@@ -266,7 +252,7 @@ var Topology = function Topology(props) {
|
|
266
252
|
break;
|
267
253
|
|
268
254
|
case _componentTopologyGraph.TopoEvent.EVENT_EDIT_EXIT:
|
269
|
-
onExitEdit(event.data);
|
255
|
+
topoEdit.onExitEdit(event.data);
|
270
256
|
break;
|
271
257
|
|
272
258
|
case _componentTopologyGraph.TopoEvent.EVENT_CONTEXT_TOOL:
|
@@ -279,36 +265,17 @@ var Topology = function Topology(props) {
|
|
279
265
|
}
|
280
266
|
};
|
281
267
|
|
282
|
-
var renderPropertyView = function renderPropertyView() {
|
283
|
-
return isEditMode && /*#__PURE__*/_react["default"].createElement(_PropertyView["default"], {
|
284
|
-
topo: topo,
|
285
|
-
editorProps: editorProps
|
286
|
-
});
|
287
|
-
};
|
288
|
-
|
289
|
-
var renderBackgroundView = function renderBackgroundView() {
|
290
|
-
return isEditMode && /*#__PURE__*/_react["default"].createElement(_BackgroundView["default"], {
|
291
|
-
topo: topo,
|
292
|
-
editorProps: editorProps
|
293
|
-
});
|
294
|
-
};
|
295
|
-
|
296
268
|
var renderCanvas = function renderCanvas() {
|
297
269
|
var _graphViewProps$creat;
|
298
270
|
|
299
|
-
return /*#__PURE__*/_react["default"].createElement("
|
300
|
-
|
301
|
-
|
302
|
-
topo.historyManager && topo.historyManager.handleKeyDown(e);
|
303
|
-
}
|
304
|
-
}, /*#__PURE__*/_react["default"].createElement(_componentTopologyGraph["default"], (0, _extends2["default"])({}, graphViewProps, {
|
271
|
+
return /*#__PURE__*/_react["default"].createElement(_GraphViewPanel["default"], (0, _extends2["default"])({
|
272
|
+
topo: topo
|
273
|
+
}, props), /*#__PURE__*/_react["default"].createElement(_componentTopologyGraph["default"], (0, _extends2["default"])({}, graphViewProps, {
|
305
274
|
createHtTopoProps: (0, _extends2["default"])({}, graphViewProps.createHtTopoProps, {
|
306
275
|
editor: (0, _extends2["default"])({}, ((_graphViewProps$creat = graphViewProps.createHtTopoProps) === null || _graphViewProps$creat === void 0 ? void 0 : _graphViewProps$creat.editor) || {})
|
307
276
|
}),
|
308
277
|
data: tData,
|
309
278
|
defaultEnterEditMode: defaultEnterEditMode,
|
310
|
-
renderPropertyView: renderPropertyView,
|
311
|
-
renderBackgroundView: renderBackgroundView,
|
312
279
|
onCreate: onGraphCreated,
|
313
280
|
onLoaded: handleGraphLoaded,
|
314
281
|
onDataLoaded: handleGraphDataLoaded,
|
@@ -343,21 +310,23 @@ var Topology = function Topology(props) {
|
|
343
310
|
direction: "row",
|
344
311
|
flex: 1,
|
345
312
|
className: (0, _classnames2["default"])((_classnames = {}, _classnames[_editorModule["default"].borderLine] = isEditMode, _classnames))
|
346
|
-
}, isEditMode && /*#__PURE__*/_react["default"].createElement(_Sidebar["default"], {
|
313
|
+
}, isEditMode && /*#__PURE__*/_react["default"].createElement(_Sidebar["default"], (0, _extends2["default"])({
|
347
314
|
topo: topo,
|
348
315
|
topoEdit: topoEdit,
|
349
316
|
topoContext: {
|
350
317
|
urlParams: urlParams
|
351
318
|
},
|
352
319
|
editorProps: editorProps
|
353
|
-
}), renderCanvas()
|
320
|
+
}, editorProps === null || editorProps === void 0 ? void 0 : editorProps.sidebarProps)), renderCanvas(), isEditMode && graphLoaded && /*#__PURE__*/_react["default"].createElement(_PropertyView["default"], {
|
321
|
+
topo: topo,
|
322
|
+
editorProps: editorProps
|
323
|
+
})), !isEditMode && /*#__PURE__*/_react["default"].createElement(_ViewerPlugin["default"], {
|
354
324
|
topo: topo,
|
355
325
|
viewerProps: viewerProps,
|
356
326
|
topoContext: topoContext
|
357
327
|
}), isEditMode && /*#__PURE__*/_react["default"].createElement(_EditorPlugin["default"], {
|
358
328
|
topo: topo,
|
359
329
|
topoEdit: topoEdit,
|
360
|
-
titleBarRef: titleBarRef,
|
361
330
|
topoContext: {
|
362
331
|
urlParams: urlParams
|
363
332
|
},
|
@@ -7,7 +7,7 @@ exports["default"] = TopoEditorPlugin;
|
|
7
7
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
9
9
|
|
10
|
-
var _react =
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
11
11
|
|
12
12
|
var _CustomIconPlugin = _interopRequireDefault(require("./CustomIconPlugin"));
|
13
13
|
|
@@ -17,13 +17,37 @@ var _MultipleResourceSelectPlugin = _interopRequireDefault(require("./plugins/Mu
|
|
17
17
|
|
18
18
|
var _GroupAddResourceDrawerPlugin = _interopRequireDefault(require("./GroupAddResourceDrawerPlugin"));
|
19
19
|
|
20
|
+
var _MetricPollingPlugin = _interopRequireDefault(require("../../viewer/components/plugins/MetricPollingPlugin"));
|
21
|
+
|
22
|
+
var _AddElementThemePlugin = _interopRequireDefault(require("./plugins/AddElementThemePlugin"));
|
23
|
+
|
24
|
+
var _useKeyboardShortcut = _interopRequireDefault(require("../hooks/useKeyboardShortcut"));
|
25
|
+
|
26
|
+
var _useUpdateHtTopoDefaultTagStyle = _interopRequireDefault(require("./Sidebar/views/CanvasPanel/hooks/useUpdateHtTopoDefaultTagStyle"));
|
27
|
+
|
28
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
29
|
+
|
30
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
31
|
+
|
20
32
|
function TopoEditorPlugin(props) {
|
21
33
|
var topo = props.topo,
|
22
34
|
topoContext = props.topoContext,
|
23
35
|
topoEdit = props.topoEdit,
|
24
36
|
editorProps = props.editorProps;
|
25
37
|
var store = topo.store;
|
26
|
-
|
38
|
+
(0, _react.useEffect)(function () {
|
39
|
+
return function () {
|
40
|
+
topoEdit.reset();
|
41
|
+
};
|
42
|
+
}, []);
|
43
|
+
(0, _useKeyboardShortcut["default"])({
|
44
|
+
topo: topo,
|
45
|
+
topoEdit: topoEdit
|
46
|
+
});
|
47
|
+
(0, _useUpdateHtTopoDefaultTagStyle["default"])({
|
48
|
+
topo: topo
|
49
|
+
});
|
50
|
+
var plugins = [_SaveLoading["default"], _GroupAddResourceDrawerPlugin["default"], _MultipleResourceSelectPlugin["default"], _AddElementThemePlugin["default"], _CustomIconPlugin["default"], _MetricPollingPlugin["default"]].concat((editorProps === null || editorProps === void 0 ? void 0 : editorProps.plugins) || []);
|
27
51
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, plugins.map(function (Plugin, index) {
|
28
52
|
return /*#__PURE__*/_react["default"].createElement(Plugin, (0, _extends2["default"])({
|
29
53
|
key: index,
|
@@ -24,21 +24,43 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
24
24
|
function Sidebar(props) {
|
25
25
|
var _classNames;
|
26
26
|
|
27
|
-
var topo = props.topo
|
27
|
+
var topo = props.topo,
|
28
|
+
getPanels = props.getPanels;
|
28
29
|
|
29
30
|
var _topo$store$useModel = topo.store.useModel('topoEdit'),
|
30
31
|
topoEditState = _topo$store$useModel[0],
|
31
32
|
topoEditDispatchers = _topo$store$useModel[1];
|
32
33
|
|
33
|
-
var activeKey = topoEditState.
|
34
|
+
var activeKey = topoEditState.resourceTabActiveKey; // 拓扑图是否加载
|
35
|
+
|
36
|
+
var _topo$store$useModelS = topo.store.useModelState('topoMod'),
|
37
|
+
graphLoaded = _topo$store$useModelS.graphLoaded;
|
38
|
+
|
39
|
+
var visiblePanels = (0, _react.useMemo)(function () {
|
40
|
+
return getPanels ? getPanels(_panes["default"]) : _panes["default"];
|
41
|
+
}, [getPanels]);
|
34
42
|
(0, _react.useEffect)(function () {
|
35
43
|
return function () {
|
36
44
|
// 退出编辑模式,关闭资源面板状态
|
37
45
|
topoEditDispatchers.update({
|
38
|
-
|
46
|
+
resourceTabActiveKey: null
|
39
47
|
});
|
40
48
|
};
|
41
|
-
}, []);
|
49
|
+
}, []); // 通过url参数打开对应面板
|
50
|
+
|
51
|
+
(0, _react.useEffect)(function () {
|
52
|
+
var _topo$viewProps$urlPa;
|
53
|
+
|
54
|
+
if (graphLoaded && (_topo$viewProps$urlPa = topo.viewProps.urlParams) !== null && _topo$viewProps$urlPa !== void 0 && _topo$viewProps$urlPa.resourceTabActiveKey) {
|
55
|
+
setTimeout(function () {
|
56
|
+
var _topo$viewProps$urlPa2;
|
57
|
+
|
58
|
+
topoEditDispatchers.update({
|
59
|
+
resourceTabActiveKey: ((_topo$viewProps$urlPa2 = topo.viewProps.urlParams) === null || _topo$viewProps$urlPa2 === void 0 ? void 0 : _topo$viewProps$urlPa2.resourceTabActiveKey) || null
|
60
|
+
});
|
61
|
+
}, 2000);
|
62
|
+
}
|
63
|
+
}, [graphLoaded]);
|
42
64
|
|
43
65
|
var renderTabItem = function renderTabItem(pane) {
|
44
66
|
var View = pane.content;
|
@@ -58,10 +80,10 @@ function Sidebar(props) {
|
|
58
80
|
activeKey: activeKey,
|
59
81
|
onChange: function onChange(key) {
|
60
82
|
return topoEditDispatchers.update({
|
61
|
-
|
83
|
+
resourceTabActiveKey: key
|
62
84
|
});
|
63
85
|
}
|
64
|
-
},
|
86
|
+
}, visiblePanels.map(renderTabItem))));
|
65
87
|
}
|
66
88
|
|
67
89
|
var _default = Sidebar;
|
@@ -16,28 +16,33 @@ var _ImagePanel = _interopRequireDefault(require("./views/ImagePanel"));
|
|
16
16
|
var _LinkPanel = _interopRequireDefault(require("./views/LinkPanel"));
|
17
17
|
|
18
18
|
var panes = [{
|
19
|
+
key: 'link',
|
19
20
|
title: '链路',
|
20
|
-
|
21
|
+
titleTootip: '在两个节点之间添加链路&线',
|
21
22
|
icon: '/img/topo/editor/sidebar/icon/链路.svg',
|
22
23
|
content: _LinkPanel["default"]
|
23
24
|
}, {
|
24
25
|
title: '组件',
|
25
|
-
key: '
|
26
|
+
key: 'basicComponent',
|
27
|
+
titleTootip: '基础组件',
|
26
28
|
icon: '/img/topo/editor/sidebar/icon/组件.svg',
|
27
29
|
content: _ComponentPanel["default"]
|
28
30
|
}, {
|
29
31
|
title: '图片',
|
30
|
-
key: '
|
32
|
+
key: 'image',
|
33
|
+
titleTootip: '图片素材',
|
31
34
|
icon: '/img/topo/editor/sidebar/icon/图片.svg',
|
32
35
|
content: _ImagePanel["default"]
|
33
36
|
}, {
|
34
37
|
title: '背景',
|
35
|
-
key: '
|
38
|
+
key: 'background',
|
39
|
+
titleTootip: '背景素材',
|
36
40
|
icon: '/img/topo/editor/sidebar/icon/背景.svg',
|
37
41
|
content: _BackgroundPanel["default"]
|
38
42
|
}, {
|
39
43
|
title: '画布',
|
40
|
-
key: '
|
44
|
+
key: 'canvas',
|
45
|
+
titleTootip: '拓扑图画布底图',
|
41
46
|
icon: '/img/topo/editor/sidebar/icon/画布.svg',
|
42
47
|
content: _CanvasPanel["default"]
|
43
48
|
}];
|
@@ -11,43 +11,25 @@ var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
12
12
|
var _CanvasPanelModule = _interopRequireDefault(require("./CanvasPanel.module.scss"));
|
13
13
|
|
14
|
+
var _useCanvasThemeConfig2 = _interopRequireDefault(require("./hooks/useCanvasThemeConfig"));
|
15
|
+
|
14
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
15
17
|
|
16
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
17
19
|
|
18
|
-
var CANVAS_TOGGLE = [{
|
19
|
-
value: 'white',
|
20
|
-
label: '白色',
|
21
|
-
color: '#FFFFFF'
|
22
|
-
}, {
|
23
|
-
value: 'blue',
|
24
|
-
label: '蓝色',
|
25
|
-
color: '#F9FBFF'
|
26
|
-
}, {
|
27
|
-
value: 'yellow',
|
28
|
-
label: '黄色',
|
29
|
-
color: '#FFFDE6'
|
30
|
-
}, {
|
31
|
-
value: 'green',
|
32
|
-
label: '绿色',
|
33
|
-
color: '#EAFFE8'
|
34
|
-
}, {
|
35
|
-
value: 'dark',
|
36
|
-
label: '深色',
|
37
|
-
color: '#031425'
|
38
|
-
}];
|
39
|
-
|
40
20
|
function CanvasPanel(props) {
|
41
|
-
var
|
42
|
-
onSelect = props.onSelect;
|
21
|
+
var topo = props.topo;
|
43
22
|
|
44
|
-
var
|
45
|
-
|
46
|
-
|
23
|
+
var _useCanvasThemeConfig = (0, _useCanvasThemeConfig2["default"])({
|
24
|
+
topo: topo
|
25
|
+
}),
|
26
|
+
themes = _useCanvasThemeConfig.themes,
|
27
|
+
canvasThemeName = _useCanvasThemeConfig.canvasThemeName,
|
28
|
+
setCanvasTheme = _useCanvasThemeConfig.setCanvasTheme;
|
47
29
|
|
48
30
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
49
31
|
className: _CanvasPanelModule["default"].canvasToggle
|
50
|
-
},
|
32
|
+
}, themes.map(function (item, index) {
|
51
33
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
52
34
|
className: _CanvasPanelModule["default"].canvas,
|
53
35
|
key: index
|
@@ -56,10 +38,9 @@ function CanvasPanel(props) {
|
|
56
38
|
style: {
|
57
39
|
background: item.color
|
58
40
|
},
|
59
|
-
checked:
|
41
|
+
checked: item.name === canvasThemeName,
|
60
42
|
onChange: function onChange(checked) {
|
61
|
-
|
62
|
-
onSelect && onSelect(item);
|
43
|
+
setCanvasTheme(item.name);
|
63
44
|
}
|
64
45
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
65
46
|
className: _CanvasPanelModule["default"].box
|
@@ -0,0 +1,123 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
exports.__esModule = true;
|
6
|
+
exports["default"] = void 0;
|
7
|
+
|
8
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
9
|
+
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
11
|
+
|
12
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
13
|
+
|
14
|
+
var _clusterUtil = require("../../../../../../../utils/clusterUtil");
|
15
|
+
|
16
|
+
var _htElementUtils = require("../../../../../../../utils/htElementUtils");
|
17
|
+
|
18
|
+
var _themes = _interopRequireDefault(require("../../../../../config/themes"));
|
19
|
+
|
20
|
+
var _themeUtil = _interopRequireDefault(require("../../../../../utils/themeUtil"));
|
21
|
+
|
22
|
+
function useCanvasThemeConfig(props) {
|
23
|
+
var topo = props.topo;
|
24
|
+
|
25
|
+
var _topo$store$useModel = topo.store.useModel('displayConfig'),
|
26
|
+
displayConfig = _topo$store$useModel[0],
|
27
|
+
displayConfigDispatchers = _topo$store$useModel[1];
|
28
|
+
|
29
|
+
var canvasThemeName = displayConfig.canvasTheme || 'white';
|
30
|
+
|
31
|
+
var setCanvasTheme = /*#__PURE__*/function () {
|
32
|
+
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(themeName) {
|
33
|
+
var themeConfig;
|
34
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
35
|
+
while (1) {
|
36
|
+
switch (_context.prev = _context.next) {
|
37
|
+
case 0:
|
38
|
+
themeConfig = _themes["default"].find(function (item) {
|
39
|
+
return item.name === themeName;
|
40
|
+
});
|
41
|
+
topo.historyManager.beginTransaction();
|
42
|
+
_context.next = 4;
|
43
|
+
return displayConfigDispatchers.update({
|
44
|
+
canvasTheme: themeName
|
45
|
+
});
|
46
|
+
|
47
|
+
case 4:
|
48
|
+
_context.next = 6;
|
49
|
+
return setGlobalTagTheme(themeConfig);
|
50
|
+
|
51
|
+
case 6:
|
52
|
+
setElementsTheme(themeConfig);
|
53
|
+
topo.historyManager.endTransaction();
|
54
|
+
|
55
|
+
case 8:
|
56
|
+
case "end":
|
57
|
+
return _context.stop();
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}, _callee);
|
61
|
+
}));
|
62
|
+
|
63
|
+
return function setCanvasTheme(_x) {
|
64
|
+
return _ref.apply(this, arguments);
|
65
|
+
};
|
66
|
+
}(); // 设置资源/链路标注样式
|
67
|
+
|
68
|
+
|
69
|
+
function setGlobalTagTheme(_x2) {
|
70
|
+
return _setGlobalTagTheme.apply(this, arguments);
|
71
|
+
}
|
72
|
+
|
73
|
+
function _setGlobalTagTheme() {
|
74
|
+
_setGlobalTagTheme = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(themeConfig) {
|
75
|
+
var _topo$store$getModelS, nodeLabelStyle, defaultEdgeLabelStyle;
|
76
|
+
|
77
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
78
|
+
while (1) {
|
79
|
+
switch (_context2.prev = _context2.next) {
|
80
|
+
case 0:
|
81
|
+
topo.getHtTopo().setGlobalNodeLabelStyle(themeConfig.globalNodeLabelStyle);
|
82
|
+
topo.getHtTopo().setGlobalEdgeTagStyle(themeConfig.globalEdgeTagStyle); // 更新默认配置
|
83
|
+
|
84
|
+
_topo$store$getModelS = topo.store.getModelState('displayConfig'), nodeLabelStyle = _topo$store$getModelS.nodeLabelStyle, defaultEdgeLabelStyle = _topo$store$getModelS.defaultEdgeLabelStyle;
|
85
|
+
_context2.next = 5;
|
86
|
+
return displayConfigDispatchers.update({
|
87
|
+
nodeLabelStyle: (0, _extends2["default"])({}, nodeLabelStyle, themeConfig.globalNodeLabelStyle),
|
88
|
+
defaultEdgeLabelStyle: (0, _extends2["default"])({}, defaultEdgeLabelStyle, themeConfig.globalEdgeTagStyle)
|
89
|
+
});
|
90
|
+
|
91
|
+
case 5:
|
92
|
+
case "end":
|
93
|
+
return _context2.stop();
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}, _callee2);
|
97
|
+
}));
|
98
|
+
return _setGlobalTagTheme.apply(this, arguments);
|
99
|
+
}
|
100
|
+
|
101
|
+
function setElementsTheme(themeConfig) {
|
102
|
+
var dm = topo.getHtTopo().getGraphView().dm();
|
103
|
+
var elements = (0, _htElementUtils.getElements)(dm);
|
104
|
+
|
105
|
+
var _ThemeUtil = (0, _themeUtil["default"])({
|
106
|
+
topo: topo
|
107
|
+
}),
|
108
|
+
setElementTheme = _ThemeUtil.setElementTheme;
|
109
|
+
|
110
|
+
elements.forEach(function (element) {
|
111
|
+
setElementTheme(element, themeConfig);
|
112
|
+
});
|
113
|
+
}
|
114
|
+
|
115
|
+
return {
|
116
|
+
themes: _themes["default"],
|
117
|
+
canvasThemeName: canvasThemeName,
|
118
|
+
setCanvasTheme: setCanvasTheme
|
119
|
+
};
|
120
|
+
}
|
121
|
+
|
122
|
+
var _default = useCanvasThemeConfig;
|
123
|
+
exports["default"] = _default;
|
package/lib/core/editor/components/Sidebar/views/CanvasPanel/hooks/useUpdateHtTopoDefaultTagStyle.js
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
exports.__esModule = true;
|
4
|
+
exports["default"] = void 0;
|
5
|
+
|
6
|
+
var _react = _interopRequireWildcard(require("react"));
|
7
|
+
|
8
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
9
|
+
|
10
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
11
|
+
|
12
|
+
/**
|
13
|
+
* 用于标注样式配置变化后通知ht更新。新增元素按改标注样式显示
|
14
|
+
* 场景1:设置标注样式,新增元素按改标注样式显示
|
15
|
+
* 场景1:设置标注样式(工具栏、主题切换),回退,新增元素按改标注样式显示
|
16
|
+
*
|
17
|
+
* @param {*} props
|
18
|
+
*/
|
19
|
+
function useUpdateHtTopoDefaultTagStyle(props) {
|
20
|
+
var topo = props.topo;
|
21
|
+
var displayConfig = topo.store.useModelState('displayConfig');
|
22
|
+
var nodeLabelStyle = displayConfig.nodeLabelStyle,
|
23
|
+
defaultEdgeLabelStyle = displayConfig.defaultEdgeLabelStyle;
|
24
|
+
(0, _react.useEffect)(function () {
|
25
|
+
if (nodeLabelStyle) {
|
26
|
+
topo.getHtTopo().setDefaultNodeLabelStyle(nodeLabelStyle);
|
27
|
+
}
|
28
|
+
}, [nodeLabelStyle]);
|
29
|
+
(0, _react.useEffect)(function () {
|
30
|
+
if (defaultEdgeLabelStyle) {
|
31
|
+
topo.getHtTopo().setDefaultEdgeTagStyle(defaultEdgeLabelStyle);
|
32
|
+
}
|
33
|
+
}, [defaultEdgeLabelStyle]);
|
34
|
+
}
|
35
|
+
|
36
|
+
var _default = useUpdateHtTopoDefaultTagStyle;
|
37
|
+
exports["default"] = _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";
|
@@ -25,7 +25,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
25
25
|
function CiTypeImagePanel(props) {
|
26
26
|
var topo = props.topo;
|
27
27
|
var icons = (0, _react.useMemo)(function () {
|
28
|
-
return (0, _icon.
|
28
|
+
return (0, _icon.getResourceIcons)(topo);
|
29
29
|
}, []);
|
30
30
|
return /*#__PURE__*/_react["default"].createElement(_HtImagePalette["default"], {
|
31
31
|
icons: icons,
|