@riil-frontend/component-topology 2.5.7 → 2.7.2
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 +2 -3
- package/build/index.js +32 -32
- package/es/components/BatchAttrMetric/setting.js +2 -2
- package/es/components/FormTable/index.js +1 -1
- package/es/components/IndexSettingDrawer/IndexList.js +2 -2
- package/es/components/Link/hook.js +1 -1
- package/es/components/Link/index.js +1 -1
- package/es/components/MultiResourceDrawer/Dynamic.js +1 -1
- package/es/components/MultiResourceDrawer/index.js +1 -1
- package/es/components/ResourceList/ResourceSelect.js +3 -3
- package/es/core/components/TopoView/Topo404.js +1 -1
- package/es/core/components/TopoView/TopoContent.js +1 -1
- package/es/core/components/TopoView/TopoNoPermission.js +1 -1
- package/es/core/components/TopoView/topoView.js +1 -1
- package/es/core/editor/components/LinkDynamicStyleSettingDrawer/index.js +1 -1
- package/es/core/editor/components/ResourceViewAttributeSetting/Setting.js +1 -1
- package/es/core/editor/components/iconManage/UploadIconDialog.js +1 -1
- package/es/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.js +2 -2
- package/es/core/editor/components/settings/common/NodeSizeInput/img/icon_/350/247/243/351/224/201.svg +15 -15
- package/es/core/editor/components/settings/common/NodeSizeInput/img/icon_/351/224/201.svg +14 -14
- package/es/core/editor/components/settings/common/text/img/bold.svg +11 -11
- package/es/core/editor/components/settings/common/text/img/italics.svg +9 -9
- package/es/core/editor/components/settings/common/text/img/underline.svg +11 -11
- package/es/core/editor/components/settings/text/TextPropertyView.js +9 -1
- package/es/core/models/TopoApp.js +3 -3
- package/es/core/models/attrAndMetric.js +1 -1
- package/es/core/models/cache/CiTyeCache.js +1 -1
- package/es/core/models/cache/DictCache.js +1 -1
- package/es/core/models/common/Alarm.js +2 -2
- package/es/core/models/plugins/resourceWebControllUrl.js +2 -2
- package/es/core/models/utils/linkUtils.js +1 -1
- package/es/core/utils/showMessage.js +1 -1
- package/es/core/viewer/components/plugins/ResourceDetail/topoDrawer.js +2 -2
- package/es/hooks/useAlarm.js +1 -1
- package/es/hooks/useContainerLinkTopo.js +1 -1
- package/es/hooks/usePolling.js +1 -1
- package/es/hooks/useTopoEdit.js +2 -2
- package/es/models/ciModel.js +1 -1
- package/es/models/iconManage.js +2 -2
- package/es/models/linkDynamicStyle.js +1 -1
- package/es/models/linkManager.js +2 -2
- package/es/models/resourceWebControllUrlSetting.js +2 -2
- package/es/models/topoAlarm.js +1 -2
- package/es/models/topoBizMod.js +4 -4
- package/es/models/topoCreateMod.js +53 -94
- package/es/models/topoEdit.js +2 -2
- package/es/models/topoGraphView.js +2 -2
- package/es/models/topoMod.js +3 -3
- package/es/models/topoView.js +2 -2
- package/es/style.js +1 -0
- package/es/topoCenter/components/Topology.js +1 -1
- package/es/topoCenter/getTopoData.js +1 -1
- package/es/topoCenter/store/functionAuth.js +3 -3
- package/es/topoCenter/store/topoCenter.js +2 -2
- package/es/topoCenter/store/topoTreeMod.js +2 -2
- package/es/utils/format.js +1 -1
- package/es/utils/topoData.js +1 -1
- package/es/utils/tree.js +0 -1
- package/lib/components/BatchAttrMetric/setting.js +2 -2
- package/lib/components/FormTable/index.js +1 -1
- package/lib/components/IndexSettingDrawer/IndexList.js +2 -2
- package/lib/components/Link/hook.js +1 -1
- package/lib/components/Link/index.js +1 -1
- package/lib/components/MultiResourceDrawer/Dynamic.js +1 -1
- package/lib/components/MultiResourceDrawer/index.js +1 -1
- package/lib/components/ResourceList/ResourceSelect.js +3 -3
- package/lib/core/components/TopoView/Topo404.js +1 -1
- package/lib/core/components/TopoView/TopoContent.js +1 -1
- package/lib/core/components/TopoView/TopoNoPermission.js +1 -1
- package/lib/core/components/TopoView/topoView.js +1 -1
- package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/index.js +1 -1
- package/lib/core/editor/components/ResourceViewAttributeSetting/Setting.js +1 -1
- package/lib/core/editor/components/iconManage/UploadIconDialog.js +1 -1
- package/lib/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.js +2 -2
- package/lib/core/editor/components/settings/common/NodeSizeInput/img/icon_/350/247/243/351/224/201.svg +15 -15
- package/lib/core/editor/components/settings/common/NodeSizeInput/img/icon_/351/224/201.svg +14 -14
- package/lib/core/editor/components/settings/common/text/img/bold.svg +11 -11
- package/lib/core/editor/components/settings/common/text/img/italics.svg +9 -9
- package/lib/core/editor/components/settings/common/text/img/underline.svg +11 -11
- package/lib/core/editor/components/settings/text/TextPropertyView.js +9 -1
- package/lib/core/models/TopoApp.js +4 -4
- package/lib/core/models/attrAndMetric.js +1 -1
- package/lib/core/models/cache/CiTyeCache.js +1 -1
- package/lib/core/models/cache/DictCache.js +1 -1
- package/lib/core/models/common/Alarm.js +2 -2
- package/lib/core/models/plugins/resourceWebControllUrl.js +2 -2
- package/lib/core/models/utils/linkUtils.js +1 -1
- package/lib/core/utils/showMessage.js +1 -1
- package/lib/core/viewer/components/plugins/ResourceDetail/topoDrawer.js +2 -2
- package/lib/hooks/useAlarm.js +1 -1
- package/lib/hooks/useContainerLinkTopo.js +1 -1
- package/lib/hooks/usePolling.js +1 -1
- package/lib/hooks/useTopoEdit.js +2 -2
- package/lib/models/ciModel.js +1 -1
- package/lib/models/iconManage.js +2 -2
- package/lib/models/linkDynamicStyle.js +1 -1
- package/lib/models/linkManager.js +2 -2
- package/lib/models/resourceWebControllUrlSetting.js +2 -2
- package/lib/models/topoAlarm.js +1 -3
- package/lib/models/topoBizMod.js +4 -4
- package/lib/models/topoCreateMod.js +53 -94
- package/lib/models/topoEdit.js +2 -2
- package/lib/models/topoGraphView.js +2 -2
- package/lib/models/topoMod.js +3 -3
- package/lib/models/topoView.js +2 -2
- package/lib/style.js +1 -0
- package/lib/topoCenter/components/Topology.js +1 -1
- package/lib/topoCenter/getTopoData.js +1 -1
- package/lib/topoCenter/store/functionAuth.js +3 -3
- package/lib/topoCenter/store/topoCenter.js +2 -2
- package/lib/topoCenter/store/topoTreeMod.js +2 -2
- package/lib/utils/format.js +1 -1
- package/lib/utils/topoData.js +1 -1
- package/lib/utils/tree.js +0 -1
- package/package.json +22 -21
- package/es/common/components/ResourceTable/ResourceTable.d.ts +0 -2
- package/es/common/plugins/useSelectionPlugin.d.ts +0 -23
- package/es/components/BatchAttrMetric/constant.d.ts +0 -30
- package/es/components/BatchAttrMetric/index.d.ts +0 -5
- package/es/components/BatchAttrMetric/setting.d.ts +0 -6
- package/es/components/BatchAttrMetric/utils.d.ts +0 -35
- package/es/components/Drawer/index.d.ts +0 -2
- package/es/components/FormTable/index.d.ts +0 -2
- package/es/components/IndexSettingDrawer/CiList.d.ts +0 -2
- package/es/components/IndexSettingDrawer/CiListItem.d.ts +0 -2
- package/es/components/IndexSettingDrawer/IndexList.d.ts +0 -2
- package/es/components/IndexSettingDrawer/index.d.ts +0 -2
- package/es/components/Link/form.d.ts +0 -2
- package/es/components/Link/hook.d.ts +0 -26
- package/es/components/Link/index.d.ts +0 -6
- package/es/components/Link/setting.d.ts +0 -8
- package/es/components/MultiResourceDrawer/Content.d.ts +0 -2
- package/es/components/MultiResourceDrawer/Dynamic.d.ts +0 -2
- package/es/components/MultiResourceDrawer/ResourceCard/index.d.ts +0 -2
- package/es/components/MultiResourceDrawer/ResourceSelect.d.ts +0 -2
- package/es/components/MultiResourceDrawer/Static.d.ts +0 -2
- package/es/components/MultiResourceDrawer/index.d.ts +0 -2
- package/es/components/ResourceList/ResourceSelect.d.ts +0 -2
- package/es/components/ResourceList/ResourceSelectConnect.d.ts +0 -2
- package/es/components/ResourceList/index.d.ts +0 -1
- package/es/components/ResourceSelect/DefaultResourceSelectDrawer.d.ts +0 -1
- package/es/components/ResourceSelect/ResourceSelectDrawer.d.ts +0 -1
- package/es/components/SingleResourceDrawer/index.d.ts +0 -2
- package/es/components/TemplateButton/Icon.d.ts +0 -2
- package/es/components/TemplateButton/assets/index.d.ts +0 -8
- package/es/components/TemplateButton/index.d.ts +0 -2
- package/es/components/TemplateGroup/index.d.ts +0 -2
- package/es/components/TemplateSelect/index.d.ts +0 -2
- package/es/constants/ResDetailContants.d.ts +0 -1
- package/es/constants/constant.d.ts +0 -36
- package/es/constants/defaultCiTypeIcon.d.ts +0 -8
- package/es/contextmenu/createMenuCommands.d.ts +0 -5
- package/es/core/common/contextmenu/mergeContextmenu.d.ts +0 -1
- package/es/core/common/icons/defaultIcons.d.ts +0 -84
- package/es/core/components/TopoApp.d.ts +0 -1
- package/es/core/components/TopoAppProvider.d.ts +0 -1
- package/es/core/components/TopoAppView.d.ts +0 -14
- package/es/core/components/TopoView/Topo.d.ts +0 -5
- package/es/core/components/TopoView/Topo404.d.ts +0 -1
- package/es/core/components/TopoView/TopoContent.d.ts +0 -5
- package/es/core/components/TopoView/TopoNoPermission.d.ts +0 -1
- package/es/core/components/TopoView/topoView.d.ts +0 -19
- package/es/core/components/buildProvider.d.ts +0 -1
- package/es/core/components/titlebar/TitleBar.d.ts +0 -9
- package/es/core/components/titlebar/index.d.ts +0 -1
- package/es/core/components/titlebar/widgets/TitleWidget.d.ts +0 -1
- package/es/core/editor/LinkDynamicStyleConfig.d.ts +0 -5
- package/es/core/editor/components/EditorPlugin.d.ts +0 -1
- package/es/core/editor/components/LinkDynamicStyleSettingDrawer/RuleSetting.d.ts +0 -1
- package/es/core/editor/components/LinkDynamicStyleSettingDrawer/index.d.ts +0 -1
- package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/ColorPicker.d.ts +0 -6
- package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/Rule.d.ts +0 -1
- package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleCondition.d.ts +0 -1
- package/es/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleStyle.d.ts +0 -1
- package/es/core/editor/components/ResourceViewAttributeSetting/ResourceViewAttributeSettingPlugin.d.ts +0 -4
- package/es/core/editor/components/ResourceViewAttributeSetting/Setting.d.ts +0 -5
- package/es/core/editor/components/iconManage/IconManage.d.ts +0 -1
- package/es/core/editor/components/iconManage/RenameDialog.d.ts +0 -1
- package/es/core/editor/components/iconManage/UploadIconDialog.d.ts +0 -30
- package/es/core/editor/components/iconManage/UploadIconDialogWrapper.d.ts +0 -1
- package/es/core/editor/components/iconManage/utils/svgToShape.d.ts +0 -1
- package/es/core/editor/components/settings/Settings.d.ts +0 -1
- package/es/core/editor/components/settings/SettingsForm.d.ts +0 -1
- package/es/core/editor/components/settings/Style.d.ts +0 -1
- package/es/core/editor/components/settings/common/LayoutSettings.d.ts +0 -2
- package/es/core/editor/components/settings/common/LineType.d.ts +0 -1
- package/es/core/editor/components/settings/common/NodeAlignType.d.ts +0 -1
- package/es/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.d.ts +0 -12
- package/es/core/editor/components/settings/common/NodeSizeInput/NodeSizeNumberPicker.d.ts +0 -7
- package/es/core/editor/components/settings/common/tab/TabView.d.ts +0 -1
- package/es/core/editor/components/settings/common/text/FontStyleCheckbox.d.ts +0 -1
- package/es/core/editor/components/settings/common/text/TextStyle.d.ts +0 -1
- package/es/core/editor/components/settings/common/text/fontStyleUtil.d.ts +0 -19
- package/es/core/editor/components/settings/group/GroupNodeList/GroupNodeList.d.ts +0 -1
- package/es/core/editor/components/settings/group/GroupNodeList/ResourceList.d.ts +0 -2
- package/es/core/editor/components/settings/group/GroupNodeList/ResourceSelectButton.d.ts +0 -1
- package/es/core/editor/components/settings/group/GroupNodeList/icon.d.ts +0 -87
- package/es/core/editor/components/settings/layer/LayerSettingsForm.d.ts +0 -1
- package/es/core/editor/components/settings/link/LinkPropertyView.d.ts +0 -1
- package/es/core/editor/components/settings/node/NodeIconSelect.d.ts +0 -1
- package/es/core/editor/components/settings/node/NodeIconSelectTest.d.ts +0 -1
- package/es/core/editor/components/settings/node/NodePropertyView.d.ts +0 -1
- package/es/core/editor/components/settings/node/NodeRelateResourceButton.d.ts +0 -4
- package/es/core/editor/components/settings/node/TopoTreeSelect.d.ts +0 -1
- package/es/core/editor/components/settings/text/TextPropertyView.d.ts +0 -1
- package/es/core/editor/components/settings/useSettingRuntimeState.d.ts +0 -5
- package/es/core/editor/components/settings/view/BatchSetNodeSize.d.ts +0 -1
- package/es/core/editor/components/settings/view/ViewPropertyView.d.ts +0 -1
- package/es/core/editor/components/titlebar/TopoEditorTitleBar.d.ts +0 -1
- package/es/core/editor/components/titlebar/widgets/SaveButton.d.ts +0 -1
- package/es/core/editor/contextmenu/buildContextmenu.d.ts +0 -6
- package/es/core/index.d.ts +0 -1
- package/es/core/models/AttributeMetricDisplay.d.ts +0 -8
- package/es/core/models/TopoGraphView.d.ts +0 -42
- package/es/core/models/TopoViewer.d.ts +0 -9
- package/es/core/models/attrAndMetric.d.ts +0 -1
- package/es/core/models/cache/CiTyeCache.d.ts +0 -12
- package/es/core/models/cache/DictCache.d.ts +0 -11
- package/es/core/models/common/Alarm.d.ts +0 -52
- package/es/core/models/common/ContextMenu.d.ts +0 -8
- package/es/core/models/createTopoApp.d.ts +0 -13
- package/es/core/models/plugins/resourceWebControllUrl.d.ts +0 -11
- package/es/core/models/utils/getRelationDetailByIds.d.ts +0 -1
- package/es/core/models/utils/linkUtils.d.ts +0 -3
- package/es/core/store/coreModels.d.ts +0 -18
- package/es/core/store/createStore.d.ts +0 -1
- package/es/core/test/Test.d.ts +0 -9
- package/es/core/utils/resourceUtil.d.ts +0 -5
- package/es/core/utils/showMessage.d.ts +0 -1
- package/es/core/viewer/components/plugins/ResourceDetail/ResourceDetailDrawerPlugin.d.ts +0 -1
- package/es/core/viewer/components/plugins/ResourceDetail/topoDrawer.d.ts +0 -2
- package/es/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.d.ts +0 -1
- package/es/core/viewer/components/plugins/ViewerPlugin.d.ts +0 -1
- package/es/core/viewer/components/titlebar/TopoViewerTitleBar.d.ts +0 -1
- package/es/core/viewer/components/titlebar/ViewerTools.d.ts +0 -1
- package/es/core/viewer/components/titlebar/widgets/EditButton.d.ts +0 -4
- package/es/core/viewer/components/titlebar/widgets/SearchWidget.d.ts +0 -8
- package/es/core/viewer/contextmenu/buildContextmenu.d.ts +0 -42
- package/es/core/viewer/contextmenu/buildLinkContextmenu.d.ts +0 -9
- package/es/core/viewer/contextmenu/buildNodeContextmenu.d.ts +0 -24
- package/es/core/viewer/contextmenu/buildViewContextmenu.d.ts +0 -7
- package/es/createTopo.d.ts +0 -2
- package/es/getStoreModels.d.ts +0 -35
- package/es/hooks/useAlarm.d.ts +0 -1
- package/es/hooks/useContainerLinkTopo.d.ts +0 -8
- package/es/hooks/usePolling.d.ts +0 -9
- package/es/hooks/useSelection.d.ts +0 -9
- package/es/hooks/useTopoEdit.d.ts +0 -83
- package/es/index.d.ts +0 -3
- package/es/mock/mock.d.ts +0 -187
- package/es/models/ciModel.d.ts +0 -15
- package/es/models/iconManage.d.ts +0 -39
- package/es/models/linkDynamicStyle.d.ts +0 -47
- package/es/models/linkDynamicStyleConfig.d.ts +0 -37
- package/es/models/linkManager.d.ts +0 -11
- package/es/models/resourceWebControllUrlSetting.d.ts +0 -13
- package/es/models/topoAlarm.d.ts +0 -15
- package/es/models/topoBizMod.d.ts +0 -42
- package/es/models/topoCreateMod.d.ts +0 -108
- package/es/models/topoEdit.d.ts +0 -13
- package/es/models/topoGraphView.d.ts +0 -11
- package/es/models/topoMod.d.ts +0 -86
- package/es/models/topoView.d.ts +0 -11
- package/es/topoCenter/components/Topology.d.ts +0 -1
- package/es/topoCenter/createTopo.d.ts +0 -3
- package/es/topoCenter/getTopoData.d.ts +0 -1
- package/es/topoCenter/index.d.ts +0 -3
- package/es/topoCenter/models/TopoCenter.d.ts +0 -11
- package/es/topoCenter/store/functionAuth.d.ts +0 -20
- package/es/topoCenter/store/topoCenter.d.ts +0 -32
- package/es/topoCenter/store/topoTreeMod.d.ts +0 -83
- package/es/topoCenter/viewer/components/TitleBar.d.ts +0 -1
- package/es/topoCenter/viewer/components/TopologyViewer.d.ts +0 -1
- package/es/topoCenter/viewer/createTopoViewer.d.ts +0 -3
- package/es/topoCenter/viewer/index.d.ts +0 -2
- package/es/utils/ciType.d.ts +0 -1
- package/es/utils/format.d.ts +0 -28
- package/es/utils/htElementDataUtil.d.ts +0 -5
- package/es/utils/htElementUtils.d.ts +0 -5
- package/es/utils/listToTree.d.ts +0 -1
- package/es/utils/resourceElementUtil.d.ts +0 -1
- package/es/utils/template.d.ts +0 -50
- package/es/utils/topoData.d.ts +0 -54
- package/es/utils/topoIconUtil.d.ts +0 -6
- package/es/utils/topoMocks.d.ts +0 -172
- package/es/utils/topoPermissionUtil.d.ts +0 -9
- package/es/utils/tree.d.ts +0 -15
- package/lib/common/components/ResourceTable/ResourceTable.d.ts +0 -2
- package/lib/common/plugins/useSelectionPlugin.d.ts +0 -23
- package/lib/components/BatchAttrMetric/constant.d.ts +0 -30
- package/lib/components/BatchAttrMetric/index.d.ts +0 -5
- package/lib/components/BatchAttrMetric/setting.d.ts +0 -6
- package/lib/components/BatchAttrMetric/utils.d.ts +0 -35
- package/lib/components/Drawer/index.d.ts +0 -2
- package/lib/components/FormTable/index.d.ts +0 -2
- package/lib/components/IndexSettingDrawer/CiList.d.ts +0 -2
- package/lib/components/IndexSettingDrawer/CiListItem.d.ts +0 -2
- package/lib/components/IndexSettingDrawer/IndexList.d.ts +0 -2
- package/lib/components/IndexSettingDrawer/index.d.ts +0 -2
- package/lib/components/Link/form.d.ts +0 -2
- package/lib/components/Link/hook.d.ts +0 -26
- package/lib/components/Link/index.d.ts +0 -6
- package/lib/components/Link/setting.d.ts +0 -8
- package/lib/components/MultiResourceDrawer/Content.d.ts +0 -2
- package/lib/components/MultiResourceDrawer/Dynamic.d.ts +0 -2
- package/lib/components/MultiResourceDrawer/ResourceCard/index.d.ts +0 -2
- package/lib/components/MultiResourceDrawer/ResourceSelect.d.ts +0 -2
- package/lib/components/MultiResourceDrawer/Static.d.ts +0 -2
- package/lib/components/MultiResourceDrawer/index.d.ts +0 -2
- package/lib/components/ResourceList/ResourceSelect.d.ts +0 -2
- package/lib/components/ResourceList/ResourceSelectConnect.d.ts +0 -2
- package/lib/components/ResourceList/index.d.ts +0 -1
- package/lib/components/ResourceSelect/DefaultResourceSelectDrawer.d.ts +0 -1
- package/lib/components/ResourceSelect/ResourceSelectDrawer.d.ts +0 -1
- package/lib/components/SingleResourceDrawer/index.d.ts +0 -2
- package/lib/components/TemplateButton/Icon.d.ts +0 -2
- package/lib/components/TemplateButton/assets/index.d.ts +0 -8
- package/lib/components/TemplateButton/index.d.ts +0 -2
- package/lib/components/TemplateGroup/index.d.ts +0 -2
- package/lib/components/TemplateSelect/index.d.ts +0 -2
- package/lib/constants/ResDetailContants.d.ts +0 -1
- package/lib/constants/constant.d.ts +0 -36
- package/lib/constants/defaultCiTypeIcon.d.ts +0 -8
- package/lib/contextmenu/createMenuCommands.d.ts +0 -5
- package/lib/core/common/contextmenu/mergeContextmenu.d.ts +0 -1
- package/lib/core/common/icons/defaultIcons.d.ts +0 -84
- package/lib/core/components/TopoApp.d.ts +0 -1
- package/lib/core/components/TopoAppProvider.d.ts +0 -1
- package/lib/core/components/TopoAppView.d.ts +0 -14
- package/lib/core/components/TopoView/Topo.d.ts +0 -5
- package/lib/core/components/TopoView/Topo404.d.ts +0 -1
- package/lib/core/components/TopoView/TopoContent.d.ts +0 -5
- package/lib/core/components/TopoView/TopoNoPermission.d.ts +0 -1
- package/lib/core/components/TopoView/topoView.d.ts +0 -19
- package/lib/core/components/buildProvider.d.ts +0 -1
- package/lib/core/components/titlebar/TitleBar.d.ts +0 -9
- package/lib/core/components/titlebar/index.d.ts +0 -1
- package/lib/core/components/titlebar/widgets/TitleWidget.d.ts +0 -1
- package/lib/core/editor/LinkDynamicStyleConfig.d.ts +0 -5
- package/lib/core/editor/components/EditorPlugin.d.ts +0 -1
- package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/RuleSetting.d.ts +0 -1
- package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/index.d.ts +0 -1
- package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/ColorPicker.d.ts +0 -6
- package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/Rule.d.ts +0 -1
- package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleCondition.d.ts +0 -1
- package/lib/core/editor/components/LinkDynamicStyleSettingDrawer/rule/RuleStyle.d.ts +0 -1
- package/lib/core/editor/components/ResourceViewAttributeSetting/ResourceViewAttributeSettingPlugin.d.ts +0 -4
- package/lib/core/editor/components/ResourceViewAttributeSetting/Setting.d.ts +0 -5
- package/lib/core/editor/components/iconManage/IconManage.d.ts +0 -1
- package/lib/core/editor/components/iconManage/RenameDialog.d.ts +0 -1
- package/lib/core/editor/components/iconManage/UploadIconDialog.d.ts +0 -30
- package/lib/core/editor/components/iconManage/UploadIconDialogWrapper.d.ts +0 -1
- package/lib/core/editor/components/iconManage/utils/svgToShape.d.ts +0 -1
- package/lib/core/editor/components/settings/Settings.d.ts +0 -1
- package/lib/core/editor/components/settings/SettingsForm.d.ts +0 -1
- package/lib/core/editor/components/settings/Style.d.ts +0 -1
- package/lib/core/editor/components/settings/common/LayoutSettings.d.ts +0 -2
- package/lib/core/editor/components/settings/common/LineType.d.ts +0 -1
- package/lib/core/editor/components/settings/common/NodeAlignType.d.ts +0 -1
- package/lib/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.d.ts +0 -12
- package/lib/core/editor/components/settings/common/NodeSizeInput/NodeSizeNumberPicker.d.ts +0 -7
- package/lib/core/editor/components/settings/common/tab/TabView.d.ts +0 -1
- package/lib/core/editor/components/settings/common/text/FontStyleCheckbox.d.ts +0 -1
- package/lib/core/editor/components/settings/common/text/TextStyle.d.ts +0 -1
- package/lib/core/editor/components/settings/common/text/fontStyleUtil.d.ts +0 -19
- package/lib/core/editor/components/settings/group/GroupNodeList/GroupNodeList.d.ts +0 -1
- package/lib/core/editor/components/settings/group/GroupNodeList/ResourceList.d.ts +0 -2
- package/lib/core/editor/components/settings/group/GroupNodeList/ResourceSelectButton.d.ts +0 -1
- package/lib/core/editor/components/settings/group/GroupNodeList/icon.d.ts +0 -87
- package/lib/core/editor/components/settings/layer/LayerSettingsForm.d.ts +0 -1
- package/lib/core/editor/components/settings/link/LinkPropertyView.d.ts +0 -1
- package/lib/core/editor/components/settings/node/NodeIconSelect.d.ts +0 -1
- package/lib/core/editor/components/settings/node/NodeIconSelectTest.d.ts +0 -1
- package/lib/core/editor/components/settings/node/NodePropertyView.d.ts +0 -1
- package/lib/core/editor/components/settings/node/NodeRelateResourceButton.d.ts +0 -4
- package/lib/core/editor/components/settings/node/TopoTreeSelect.d.ts +0 -1
- package/lib/core/editor/components/settings/text/TextPropertyView.d.ts +0 -1
- package/lib/core/editor/components/settings/useSettingRuntimeState.d.ts +0 -5
- package/lib/core/editor/components/settings/view/BatchSetNodeSize.d.ts +0 -1
- package/lib/core/editor/components/settings/view/ViewPropertyView.d.ts +0 -1
- package/lib/core/editor/components/titlebar/TopoEditorTitleBar.d.ts +0 -1
- package/lib/core/editor/components/titlebar/widgets/SaveButton.d.ts +0 -1
- package/lib/core/editor/contextmenu/buildContextmenu.d.ts +0 -6
- package/lib/core/index.d.ts +0 -1
- package/lib/core/models/AttributeMetricDisplay.d.ts +0 -8
- package/lib/core/models/TopoGraphView.d.ts +0 -42
- package/lib/core/models/TopoViewer.d.ts +0 -9
- package/lib/core/models/attrAndMetric.d.ts +0 -1
- package/lib/core/models/cache/CiTyeCache.d.ts +0 -12
- package/lib/core/models/cache/DictCache.d.ts +0 -11
- package/lib/core/models/common/Alarm.d.ts +0 -52
- package/lib/core/models/common/ContextMenu.d.ts +0 -8
- package/lib/core/models/createTopoApp.d.ts +0 -13
- package/lib/core/models/plugins/resourceWebControllUrl.d.ts +0 -11
- package/lib/core/models/utils/getRelationDetailByIds.d.ts +0 -1
- package/lib/core/models/utils/linkUtils.d.ts +0 -3
- package/lib/core/store/coreModels.d.ts +0 -18
- package/lib/core/store/createStore.d.ts +0 -1
- package/lib/core/test/Test.d.ts +0 -9
- package/lib/core/utils/resourceUtil.d.ts +0 -5
- package/lib/core/utils/showMessage.d.ts +0 -1
- package/lib/core/viewer/components/plugins/ResourceDetail/ResourceDetailDrawerPlugin.d.ts +0 -1
- package/lib/core/viewer/components/plugins/ResourceDetail/topoDrawer.d.ts +0 -2
- package/lib/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.d.ts +0 -1
- package/lib/core/viewer/components/plugins/ViewerPlugin.d.ts +0 -1
- package/lib/core/viewer/components/titlebar/TopoViewerTitleBar.d.ts +0 -1
- package/lib/core/viewer/components/titlebar/ViewerTools.d.ts +0 -1
- package/lib/core/viewer/components/titlebar/widgets/EditButton.d.ts +0 -4
- package/lib/core/viewer/components/titlebar/widgets/SearchWidget.d.ts +0 -8
- package/lib/core/viewer/contextmenu/buildContextmenu.d.ts +0 -42
- package/lib/core/viewer/contextmenu/buildLinkContextmenu.d.ts +0 -9
- package/lib/core/viewer/contextmenu/buildNodeContextmenu.d.ts +0 -24
- package/lib/core/viewer/contextmenu/buildViewContextmenu.d.ts +0 -7
- package/lib/createTopo.d.ts +0 -2
- package/lib/getStoreModels.d.ts +0 -35
- package/lib/hooks/useAlarm.d.ts +0 -1
- package/lib/hooks/useContainerLinkTopo.d.ts +0 -8
- package/lib/hooks/usePolling.d.ts +0 -9
- package/lib/hooks/useSelection.d.ts +0 -9
- package/lib/hooks/useTopoEdit.d.ts +0 -83
- package/lib/index.d.ts +0 -3
- package/lib/mock/mock.d.ts +0 -187
- package/lib/models/ciModel.d.ts +0 -15
- package/lib/models/iconManage.d.ts +0 -39
- package/lib/models/linkDynamicStyle.d.ts +0 -47
- package/lib/models/linkDynamicStyleConfig.d.ts +0 -37
- package/lib/models/linkManager.d.ts +0 -11
- package/lib/models/resourceWebControllUrlSetting.d.ts +0 -13
- package/lib/models/topoAlarm.d.ts +0 -15
- package/lib/models/topoBizMod.d.ts +0 -42
- package/lib/models/topoCreateMod.d.ts +0 -108
- package/lib/models/topoEdit.d.ts +0 -13
- package/lib/models/topoGraphView.d.ts +0 -11
- package/lib/models/topoMod.d.ts +0 -86
- package/lib/models/topoView.d.ts +0 -11
- package/lib/topoCenter/components/Topology.d.ts +0 -1
- package/lib/topoCenter/createTopo.d.ts +0 -3
- package/lib/topoCenter/getTopoData.d.ts +0 -1
- package/lib/topoCenter/index.d.ts +0 -3
- package/lib/topoCenter/models/TopoCenter.d.ts +0 -11
- package/lib/topoCenter/store/functionAuth.d.ts +0 -20
- package/lib/topoCenter/store/topoCenter.d.ts +0 -32
- package/lib/topoCenter/store/topoTreeMod.d.ts +0 -83
- package/lib/topoCenter/viewer/components/TitleBar.d.ts +0 -1
- package/lib/topoCenter/viewer/components/TopologyViewer.d.ts +0 -1
- package/lib/topoCenter/viewer/createTopoViewer.d.ts +0 -3
- package/lib/topoCenter/viewer/index.d.ts +0 -2
- package/lib/utils/ciType.d.ts +0 -1
- package/lib/utils/format.d.ts +0 -28
- package/lib/utils/htElementDataUtil.d.ts +0 -5
- package/lib/utils/htElementUtils.d.ts +0 -5
- package/lib/utils/listToTree.d.ts +0 -1
- package/lib/utils/resourceElementUtil.d.ts +0 -1
- package/lib/utils/template.d.ts +0 -50
- package/lib/utils/topoData.d.ts +0 -54
- package/lib/utils/topoIconUtil.d.ts +0 -6
- package/lib/utils/topoMocks.d.ts +0 -172
- package/lib/utils/topoPermissionUtil.d.ts +0 -9
- package/lib/utils/tree.d.ts +0 -15
|
@@ -6,8 +6,8 @@ var _stateMapping;
|
|
|
6
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
7
|
import { isAvailableArray, getUUID } from '@riil-frontend/utils';
|
|
8
8
|
import { transformTopoElements } from '@riil-frontend/component-topology-graph/es/utils';
|
|
9
|
-
import topoService, { TOPO_GROUP_ID, TOPO_PARENT_ID } from '@riil-frontend/component-topology-
|
|
10
|
-
import rlog from '@riil-frontend/component-topology-utils/es/
|
|
9
|
+
import topoService, { TOPO_GROUP_ID, TOPO_PARENT_ID } from '@riil-frontend/component-topology-common/es/services/topo';
|
|
10
|
+
import rlog from '@riil-frontend/component-topology-utils/es/rlog';
|
|
11
11
|
import { removeFromArray } from "../utils/format";
|
|
12
12
|
import { TPL_BLANK, TPL_TREE, TPL_REGION, INIT_DYNAMIC_STATE, INIT_STATIC_STATE, DEFAULT_LAYOUT, DEFAULT_GROUP } from "../utils/template";
|
|
13
13
|
import { combTopoData, combSaveTopoData, findItem, getCiTypes } from "../utils/topoData";
|
|
@@ -264,68 +264,27 @@ export default function (topoApp) {
|
|
|
264
264
|
},
|
|
265
265
|
effects: function effects(dispatch) {
|
|
266
266
|
return {
|
|
267
|
-
|
|
267
|
+
getConditions: function getConditions() {
|
|
268
268
|
var _this = this;
|
|
269
269
|
|
|
270
270
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
271
|
-
var
|
|
272
|
-
|
|
271
|
+
var data, groupTopo, resources, groups;
|
|
273
272
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
274
273
|
while (1) {
|
|
275
274
|
switch (_context.prev = _context.next) {
|
|
276
275
|
case 0:
|
|
277
|
-
|
|
278
|
-
conditions = resToConditions(resources) || {};
|
|
279
|
-
|
|
280
|
-
if (!(conditions.dynamic || conditions["static"])) {
|
|
281
|
-
_context.next = 7;
|
|
282
|
-
break;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
_context.next = 5;
|
|
286
|
-
return topoService.getResourceList(conditions);
|
|
287
|
-
|
|
288
|
-
case 5:
|
|
289
|
-
data = _context.sent;
|
|
290
|
-
|
|
291
|
-
if (index < 0) {
|
|
292
|
-
_this.updateResList(data);
|
|
293
|
-
} else {
|
|
294
|
-
_this.updateGroupResList({
|
|
295
|
-
index: index,
|
|
296
|
-
data: data
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
case 7:
|
|
301
|
-
case "end":
|
|
302
|
-
return _context.stop();
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}, _callee);
|
|
306
|
-
}))();
|
|
307
|
-
},
|
|
308
|
-
getConditions: function getConditions() {
|
|
309
|
-
var _this2 = this;
|
|
310
|
-
|
|
311
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
312
|
-
var data, groupTopo, resources, groups;
|
|
313
|
-
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
314
|
-
while (1) {
|
|
315
|
-
switch (_context2.prev = _context2.next) {
|
|
316
|
-
case 0:
|
|
317
|
-
_context2.next = 2;
|
|
276
|
+
_context.next = 2;
|
|
318
277
|
return topoService.getConditions(topoApp.id);
|
|
319
278
|
|
|
320
279
|
case 2:
|
|
321
|
-
data =
|
|
280
|
+
data = _context.sent;
|
|
322
281
|
|
|
323
282
|
if (isAvailableArray(data)) {
|
|
324
|
-
|
|
283
|
+
_context.next = 5;
|
|
325
284
|
break;
|
|
326
285
|
}
|
|
327
286
|
|
|
328
|
-
return
|
|
287
|
+
return _context.abrupt("return");
|
|
329
288
|
|
|
330
289
|
case 5:
|
|
331
290
|
// 视图
|
|
@@ -358,28 +317,28 @@ export default function (topoApp) {
|
|
|
358
317
|
};
|
|
359
318
|
});
|
|
360
319
|
|
|
361
|
-
|
|
320
|
+
_this.update({
|
|
362
321
|
resources: resources,
|
|
363
322
|
groups: groups
|
|
364
323
|
});
|
|
365
324
|
|
|
366
325
|
case 9:
|
|
367
326
|
case "end":
|
|
368
|
-
return
|
|
327
|
+
return _context.stop();
|
|
369
328
|
}
|
|
370
329
|
}
|
|
371
|
-
},
|
|
330
|
+
}, _callee);
|
|
372
331
|
}))();
|
|
373
332
|
},
|
|
374
333
|
fetchData: function fetchData(params, rootState) {
|
|
375
|
-
var
|
|
334
|
+
var _this2 = this;
|
|
376
335
|
|
|
377
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
336
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
378
337
|
var editState, resources, _editState$groups, groups, query, data;
|
|
379
338
|
|
|
380
|
-
return _regeneratorRuntime.wrap(function
|
|
339
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
381
340
|
while (1) {
|
|
382
|
-
switch (
|
|
341
|
+
switch (_context2.prev = _context2.next) {
|
|
383
342
|
case 0:
|
|
384
343
|
editState = rootState.topoCreateMod;
|
|
385
344
|
resources = editState.resources, _editState$groups = editState.groups, groups = _editState$groups === void 0 ? [] : _editState$groups;
|
|
@@ -388,30 +347,30 @@ export default function (topoApp) {
|
|
|
388
347
|
resources: resources,
|
|
389
348
|
groups: groups
|
|
390
349
|
};
|
|
391
|
-
|
|
392
|
-
return
|
|
350
|
+
_context2.next = 5;
|
|
351
|
+
return _this2.getTopoByConditions(query);
|
|
393
352
|
|
|
394
353
|
case 5:
|
|
395
|
-
data =
|
|
396
|
-
return
|
|
354
|
+
data = _context2.sent;
|
|
355
|
+
return _context2.abrupt("return", data);
|
|
397
356
|
|
|
398
357
|
case 7:
|
|
399
358
|
case "end":
|
|
400
|
-
return
|
|
359
|
+
return _context2.stop();
|
|
401
360
|
}
|
|
402
361
|
}
|
|
403
|
-
},
|
|
362
|
+
}, _callee2);
|
|
404
363
|
}))();
|
|
405
364
|
},
|
|
406
365
|
getTopoByConditions: function getTopoByConditions(params, state) {
|
|
407
|
-
var
|
|
366
|
+
var _this3 = this;
|
|
408
367
|
|
|
409
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
368
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
410
369
|
var topoId, resources, groups, conditions, groupInfo, data, _yield$Promise$all, ciTypeMap, links, _combTopoData, topoData, resAndMetrics, topoDataTrans;
|
|
411
370
|
|
|
412
|
-
return _regeneratorRuntime.wrap(function
|
|
371
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
413
372
|
while (1) {
|
|
414
|
-
switch (
|
|
373
|
+
switch (_context3.prev = _context3.next) {
|
|
415
374
|
case 0:
|
|
416
375
|
rlog.debug('getTopoByConditions--------', params);
|
|
417
376
|
topoId = params.id, resources = params.resources, groups = params.groups;
|
|
@@ -422,17 +381,17 @@ export default function (topoApp) {
|
|
|
422
381
|
resources: resToConditions(group.resources)
|
|
423
382
|
});
|
|
424
383
|
});
|
|
425
|
-
|
|
384
|
+
_context3.next = 6;
|
|
426
385
|
return topoService.getTopoDataByResource(topoId, conditions, groupInfo);
|
|
427
386
|
|
|
428
387
|
case 6:
|
|
429
|
-
data =
|
|
388
|
+
data = _context3.sent;
|
|
430
389
|
rlog.debug('getTopoByConditions--------', data, groupInfo);
|
|
431
|
-
|
|
390
|
+
_context3.next = 10;
|
|
432
391
|
return Promise.all([topoApp.ciTyeCache.getCiTypeMap(getCiTypes(data)), getLinksDetail(data.links), dispatch.iconManage.getIcons()]);
|
|
433
392
|
|
|
434
393
|
case 10:
|
|
435
|
-
_yield$Promise$all =
|
|
394
|
+
_yield$Promise$all = _context3.sent;
|
|
436
395
|
ciTypeMap = _yield$Promise$all[0];
|
|
437
396
|
links = _yield$Promise$all[1];
|
|
438
397
|
_combTopoData = combTopoData({
|
|
@@ -445,13 +404,13 @@ export default function (topoApp) {
|
|
|
445
404
|
ciTypeMap: ciTypeMap
|
|
446
405
|
}), topoData = _combTopoData.topoData, resAndMetrics = _combTopoData.resAndMetrics;
|
|
447
406
|
|
|
448
|
-
|
|
407
|
+
_this3.update({
|
|
449
408
|
elements: topoData
|
|
450
409
|
});
|
|
451
410
|
|
|
452
411
|
topoDataTrans = transformTopoElements(topoData);
|
|
453
412
|
|
|
454
|
-
|
|
413
|
+
_this3.updateTopo(topoDataTrans); // const allCiSet = state.topoBizMod.allCiSet;
|
|
455
414
|
// rlog.debug(
|
|
456
415
|
// '新添加资源什么情况-topoData-resAndMetrics-allCiSet',
|
|
457
416
|
// topoData,
|
|
@@ -466,41 +425,41 @@ export default function (topoApp) {
|
|
|
466
425
|
// });
|
|
467
426
|
// 返回查询后的数据,便于外部获取到数据后像HT通知更新
|
|
468
427
|
|
|
469
|
-
return
|
|
428
|
+
return _context3.abrupt("return", topoDataTrans);
|
|
470
429
|
|
|
471
430
|
case 19:
|
|
472
431
|
case "end":
|
|
473
|
-
return
|
|
432
|
+
return _context3.stop();
|
|
474
433
|
}
|
|
475
434
|
}
|
|
476
|
-
},
|
|
435
|
+
}, _callee3);
|
|
477
436
|
}))();
|
|
478
437
|
},
|
|
479
438
|
saveTopo: function saveTopo(data, state) {
|
|
480
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
439
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
481
440
|
var topoId, template, layout, global, resources, groups, serialize, layoutId, conditions, groupInfo;
|
|
482
|
-
return _regeneratorRuntime.wrap(function
|
|
441
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
483
442
|
while (1) {
|
|
484
|
-
switch (
|
|
443
|
+
switch (_context4.prev = _context4.next) {
|
|
485
444
|
case 0:
|
|
486
445
|
topoId = data.id, template = data.template, layout = data.layout, global = data.global, resources = data.resources, groups = data.groups, serialize = data.serialize; // 保存布局
|
|
487
446
|
|
|
488
447
|
if (!(template && layout)) {
|
|
489
|
-
|
|
448
|
+
_context4.next = 5;
|
|
490
449
|
break;
|
|
491
450
|
}
|
|
492
451
|
|
|
493
452
|
layoutId = getLayoutId(layout);
|
|
494
|
-
|
|
453
|
+
_context4.next = 5;
|
|
495
454
|
return topoService.changeLayout(topoId, template, layoutId);
|
|
496
455
|
|
|
497
456
|
case 5:
|
|
498
457
|
if (!global) {
|
|
499
|
-
|
|
458
|
+
_context4.next = 8;
|
|
500
459
|
break;
|
|
501
460
|
}
|
|
502
461
|
|
|
503
|
-
|
|
462
|
+
_context4.next = 8;
|
|
504
463
|
return topoService.saveTopoSettings(topoId, combSaveTopoData({
|
|
505
464
|
global: global,
|
|
506
465
|
ciSetDoc: state.topoBizMod.ciSetDoc,
|
|
@@ -509,16 +468,16 @@ export default function (topoApp) {
|
|
|
509
468
|
|
|
510
469
|
case 8:
|
|
511
470
|
if (!serialize) {
|
|
512
|
-
|
|
471
|
+
_context4.next = 11;
|
|
513
472
|
break;
|
|
514
473
|
}
|
|
515
474
|
|
|
516
|
-
|
|
475
|
+
_context4.next = 11;
|
|
517
476
|
return topoService.saveSerializeData(topoId, serialize);
|
|
518
477
|
|
|
519
478
|
case 11:
|
|
520
479
|
if (!(resources || groups)) {
|
|
521
|
-
|
|
480
|
+
_context4.next = 16;
|
|
522
481
|
break;
|
|
523
482
|
}
|
|
524
483
|
|
|
@@ -529,34 +488,34 @@ export default function (topoApp) {
|
|
|
529
488
|
resources: resToConditions(group.resources, true)
|
|
530
489
|
});
|
|
531
490
|
});
|
|
532
|
-
|
|
491
|
+
_context4.next = 16;
|
|
533
492
|
return topoService.bindResourceToTopo(topoId, conditions, groupInfo);
|
|
534
493
|
|
|
535
494
|
case 16:
|
|
536
495
|
case "end":
|
|
537
|
-
return
|
|
496
|
+
return _context4.stop();
|
|
538
497
|
}
|
|
539
498
|
}
|
|
540
|
-
},
|
|
499
|
+
}, _callee4);
|
|
541
500
|
}))();
|
|
542
501
|
},
|
|
543
502
|
addToBlockList: function addToBlockList(data) {
|
|
544
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
503
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
|
|
545
504
|
var topoId, ciIdList;
|
|
546
|
-
return _regeneratorRuntime.wrap(function
|
|
505
|
+
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
547
506
|
while (1) {
|
|
548
|
-
switch (
|
|
507
|
+
switch (_context5.prev = _context5.next) {
|
|
549
508
|
case 0:
|
|
550
509
|
topoId = data.id, ciIdList = data.ciIdList;
|
|
551
|
-
|
|
510
|
+
_context5.next = 3;
|
|
552
511
|
return topoService.addToBlocklist(topoId, ciIdList);
|
|
553
512
|
|
|
554
513
|
case 3:
|
|
555
514
|
case "end":
|
|
556
|
-
return
|
|
515
|
+
return _context5.stop();
|
|
557
516
|
}
|
|
558
517
|
}
|
|
559
|
-
},
|
|
518
|
+
}, _callee5);
|
|
560
519
|
}))();
|
|
561
520
|
},
|
|
562
521
|
switchToEditMode: function switchToEditMode() {},
|
package/es/models/topoEdit.js
CHANGED
|
@@ -5,8 +5,8 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
5
5
|
/**
|
|
6
6
|
* 拓扑编辑 Model
|
|
7
7
|
*/
|
|
8
|
-
import rlog from '@riil-frontend/component-topology-utils/es/
|
|
9
|
-
import topoService from '@riil-frontend/component-topology-
|
|
8
|
+
import rlog from '@riil-frontend/component-topology-utils/es/rlog';
|
|
9
|
+
import topoService from '@riil-frontend/component-topology-common/es/services/topo';
|
|
10
10
|
export default {
|
|
11
11
|
// 定义 model 的初始 state
|
|
12
12
|
state: {
|
|
@@ -5,8 +5,8 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
5
5
|
/**
|
|
6
6
|
* 拓扑图 Model
|
|
7
7
|
*/
|
|
8
|
-
import rlog from '@riil-frontend/component-topology-utils/es/
|
|
9
|
-
import topoService from '@riil-frontend/component-topology-
|
|
8
|
+
import rlog from '@riil-frontend/component-topology-utils/es/rlog';
|
|
9
|
+
import topoService from '@riil-frontend/component-topology-common/es/services/topo';
|
|
10
10
|
export default {
|
|
11
11
|
// 定义 model 的初始 state
|
|
12
12
|
state: {},
|
package/es/models/topoMod.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
|
-
import topoService from '@riil-frontend/component-topology-
|
|
5
|
-
import { getCiMeta } from '@riil-frontend/component-topology-
|
|
4
|
+
import topoService from '@riil-frontend/component-topology-common/es/services/topo';
|
|
5
|
+
import { getCiMeta } from '@riil-frontend/component-topology-common/es/services/model';
|
|
6
6
|
import moment from 'moment';
|
|
7
|
-
import rlog from '@riil-frontend/component-topology-utils/es/
|
|
7
|
+
import rlog from '@riil-frontend/component-topology-utils/es/rlog';
|
|
8
8
|
import { combTopoData, getAlarmSwitch, getCiTypes } from "../utils/topoData";
|
|
9
9
|
import { loopTreeByKey } from "../utils/tree";
|
|
10
10
|
import topoPermissonUtil from "../utils/topoPermissionUtil";
|
package/es/models/topoView.js
CHANGED
|
@@ -5,8 +5,8 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
5
5
|
/**
|
|
6
6
|
* 拓扑图 Model
|
|
7
7
|
*/
|
|
8
|
-
import rlog from '@riil-frontend/component-topology-utils/es/
|
|
9
|
-
import topoService from '@riil-frontend/component-topology-
|
|
8
|
+
import rlog from '@riil-frontend/component-topology-utils/es/rlog';
|
|
9
|
+
import topoService from '@riil-frontend/component-topology-common/es/services/topo';
|
|
10
10
|
export default {
|
|
11
11
|
// 定义 model 的初始 state
|
|
12
12
|
state: {},
|
package/es/style.js
CHANGED
|
@@ -5,7 +5,7 @@ import _Dialog from "@alifd/next/lib/dialog";
|
|
|
5
5
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
6
|
import React, { useState, useEffect, useRef, useCallback } from 'react';
|
|
7
7
|
import Topo from "../../core/components/TopoView/Topo";
|
|
8
|
-
import * as cmdbService from "@riil-frontend/component-topology-
|
|
8
|
+
import * as cmdbService from "@riil-frontend/component-topology-common/es/services/cmdb";
|
|
9
9
|
import { TopoEvent } from "@riil-frontend/component-topology-graph";
|
|
10
10
|
export default function Topology(props) {
|
|
11
11
|
var engine = props.engine,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
|
-
import topoService from "@riil-frontend/component-topology-
|
|
4
|
+
import topoService from "@riil-frontend/component-topology-common/es/services/topo";
|
|
5
5
|
import { getLinksDetail } from "../core/models/utils/linkUtils";
|
|
6
6
|
export default function getTopoData(_x) {
|
|
7
7
|
return _getTopoData.apply(this, arguments);
|
|
@@ -5,9 +5,9 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
5
5
|
/**
|
|
6
6
|
* 功能权限 Model
|
|
7
7
|
*/
|
|
8
|
-
import rlog from '@riil-frontend/component-topology-utils/es/
|
|
9
|
-
import topoService from '@riil-frontend/component-topology-
|
|
10
|
-
import authServices from '@riil-frontend/component-topology-
|
|
8
|
+
import rlog from '@riil-frontend/component-topology-utils/es/rlog';
|
|
9
|
+
import topoService from '@riil-frontend/component-topology-common/es/services/topo';
|
|
10
|
+
import authServices from '@riil-frontend/component-topology-common/es/services/authorization';
|
|
11
11
|
export default {
|
|
12
12
|
// 定义 model 的初始 state
|
|
13
13
|
state: {
|
|
@@ -7,8 +7,8 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
7
7
|
*
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
import rlog from '@riil-frontend/component-topology-utils/es/
|
|
11
|
-
import topoService from '@riil-frontend/component-topology-
|
|
10
|
+
import rlog from '@riil-frontend/component-topology-utils/es/rlog';
|
|
11
|
+
import topoService from '@riil-frontend/component-topology-common/es/services/topo';
|
|
12
12
|
export default {
|
|
13
13
|
// 定义 model 的初始 state
|
|
14
14
|
state: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
|
-
import topoServer from '@riil-frontend/component-topology-
|
|
5
|
-
import rlog from '@riil-frontend/component-topology-utils/es/
|
|
4
|
+
import topoServer from '@riil-frontend/component-topology-common/es/services/topo';
|
|
5
|
+
import rlog from '@riil-frontend/component-topology-utils/es/rlog';
|
|
6
6
|
import { treeMockData, topoInteData } from "../../utils/topoMocks";
|
|
7
7
|
import { formatTree, loopTree, loopTreeFun, iconImg, treeNodeCount } from "../../utils/tree";
|
|
8
8
|
|
package/es/utils/format.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import rlog from '@riil-frontend/component-topology-utils/es/
|
|
2
|
+
import rlog from '@riil-frontend/component-topology-utils/es/rlog';
|
|
3
3
|
import { isAvailableArray, isNull } from '@riil-frontend/utils';
|
|
4
4
|
export function formatDataForTable(dataSource, total, currentPage, pageSize) {
|
|
5
5
|
// 权限过滤 (无权限时:ip地址,类型,厂家为'未知')
|
package/es/utils/topoData.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import rlog from '@riil-frontend/component-topology-utils/es/
|
|
2
|
+
import rlog from '@riil-frontend/component-topology-utils/es/rlog';
|
|
3
3
|
import { isAvailableArray } from '@riil-frontend/utils';
|
|
4
4
|
import _ from 'lodash';
|
|
5
5
|
import topoPermissionUtil from "./topoPermissionUtil";
|
package/es/utils/tree.js
CHANGED
|
@@ -21,11 +21,11 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
|
|
|
21
21
|
|
|
22
22
|
var _react = _interopRequireWildcard(require("react"));
|
|
23
23
|
|
|
24
|
-
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/
|
|
24
|
+
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
|
25
25
|
|
|
26
26
|
var _componentActionTree = _interopRequireDefault(require("@riil-frontend/component-action-tree"));
|
|
27
27
|
|
|
28
|
-
var _NoDataPage = _interopRequireDefault(require("@riil-frontend/component-topology-
|
|
28
|
+
var _NoDataPage = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/components/NoDataPage"));
|
|
29
29
|
|
|
30
30
|
var _componentTableLayout = _interopRequireDefault(require("@riil-frontend/component-table-layout"));
|
|
31
31
|
|
|
@@ -27,7 +27,7 @@ var _componentTableFilterTags = _interopRequireDefault(require("@riil-frontend/c
|
|
|
27
27
|
|
|
28
28
|
var _componentTableLayout = _interopRequireDefault(require("@riil-frontend/component-table-layout"));
|
|
29
29
|
|
|
30
|
-
var _NoDataPage = _interopRequireDefault(require("@riil-frontend/component-topology-
|
|
30
|
+
var _NoDataPage = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/components/NoDataPage"));
|
|
31
31
|
|
|
32
32
|
var FormTable = function FormTable(props) {
|
|
33
33
|
var _tableProps$filterPar;
|
|
@@ -13,9 +13,9 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
|
|
16
|
-
var _NoDataPage = _interopRequireDefault(require("@riil-frontend/component-topology-
|
|
16
|
+
var _NoDataPage = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/components/NoDataPage"));
|
|
17
17
|
|
|
18
|
-
var _table2 = require("@riil-frontend/component-topology-
|
|
18
|
+
var _table2 = require("@riil-frontend/component-topology-common/es/utils/table");
|
|
19
19
|
|
|
20
20
|
// import styles from './index.module.scss';
|
|
21
21
|
var TYPES_NAME = {
|
|
@@ -19,7 +19,7 @@ var _react = require("react");
|
|
|
19
19
|
|
|
20
20
|
var _ahooks = require("ahooks");
|
|
21
21
|
|
|
22
|
-
var cmdbService = _interopRequireWildcard(require("@riil-frontend/component-topology-
|
|
22
|
+
var cmdbService = _interopRequireWildcard(require("@riil-frontend/component-topology-common/es/services/cmdb"));
|
|
23
23
|
|
|
24
24
|
var _utils = require("@riil-frontend/utils");
|
|
25
25
|
|
|
@@ -19,7 +19,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
19
19
|
|
|
20
20
|
var _ahooks = require("ahooks");
|
|
21
21
|
|
|
22
|
-
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/
|
|
22
|
+
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
|
23
23
|
|
|
24
24
|
var _componentTopologyGraph = require("@riil-frontend/component-topology-graph");
|
|
25
25
|
|
|
@@ -7,7 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _request = require("@riil-frontend/component-topology-
|
|
10
|
+
var _request = require("@riil-frontend/component-topology-common/es/utils/request");
|
|
11
11
|
|
|
12
12
|
var _componentResAdvancedSearch = _interopRequireDefault(require("@riil-frontend/component-res-advanced-search"));
|
|
13
13
|
|
|
@@ -9,7 +9,7 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/
|
|
12
|
+
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
|
13
13
|
|
|
14
14
|
var _Drawer = _interopRequireDefault(require("../Drawer"));
|
|
15
15
|
|
|
@@ -23,11 +23,11 @@ var _useSortablePlugin = _interopRequireDefault(require("@ahooksjs/use-sortable-
|
|
|
23
23
|
|
|
24
24
|
var _useSelectionPlugin = _interopRequireDefault(require("../../common/plugins/useSelectionPlugin"));
|
|
25
25
|
|
|
26
|
-
var _cmdb = require("@riil-frontend/component-topology-
|
|
26
|
+
var _cmdb = require("@riil-frontend/component-topology-common/es/services/cmdb");
|
|
27
27
|
|
|
28
|
-
var _table = require("@riil-frontend/component-topology-
|
|
28
|
+
var _table = require("@riil-frontend/component-topology-common/es/utils/table");
|
|
29
29
|
|
|
30
|
-
var _storage = require("@riil-frontend/component-topology-
|
|
30
|
+
var _storage = require("@riil-frontend/component-topology-common/es/utils/storage");
|
|
31
31
|
|
|
32
32
|
var _format = require("../../utils/format");
|
|
33
33
|
|
|
@@ -9,7 +9,7 @@ exports["default"] = Topo404;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var _index = _interopRequireDefault(require("@riil-frontend/component-topology-
|
|
12
|
+
var _index = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/components/NoDataPage/index"));
|
|
13
13
|
|
|
14
14
|
var _indexModule = _interopRequireDefault(require("../../../components/index.module.scss"));
|
|
15
15
|
|
|
@@ -16,7 +16,7 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
|
|
|
16
16
|
|
|
17
17
|
var _react = _interopRequireWildcard(require("react"));
|
|
18
18
|
|
|
19
|
-
var _index = _interopRequireDefault(require("@riil-frontend/component-topology-
|
|
19
|
+
var _index = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/components/NoDataPage/index"));
|
|
20
20
|
|
|
21
21
|
var _topoView = _interopRequireDefault(require("./topoView"));
|
|
22
22
|
|
|
@@ -9,7 +9,7 @@ exports["default"] = TopoNoPermission;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var _index = _interopRequireDefault(require("@riil-frontend/component-topology-
|
|
12
|
+
var _index = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/components/NoDataPage/index"));
|
|
13
13
|
|
|
14
14
|
var _indexModule = _interopRequireDefault(require("../../../components/index.module.scss"));
|
|
15
15
|
|
|
@@ -15,7 +15,7 @@ var _classnames2 = _interopRequireDefault(require("classnames"));
|
|
|
15
15
|
|
|
16
16
|
var _componentTopologyGraph = _interopRequireWildcard(require("@riil-frontend/component-topology-graph"));
|
|
17
17
|
|
|
18
|
-
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/
|
|
18
|
+
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
|
19
19
|
|
|
20
20
|
var _useTopoEdit = _interopRequireDefault(require("../../../hooks/useTopoEdit"));
|
|
21
21
|
|
|
@@ -9,7 +9,7 @@ exports["default"] = LinkDynamicStyleSettingDrawer;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/
|
|
12
|
+
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
|
13
13
|
|
|
14
14
|
var _RuleSetting = _interopRequireDefault(require("./RuleSetting"));
|
|
15
15
|
|
|
@@ -13,7 +13,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
13
13
|
|
|
14
14
|
var _componentTopologyGraph = require("@riil-frontend/component-topology-graph");
|
|
15
15
|
|
|
16
|
-
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/
|
|
16
|
+
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
|
17
17
|
|
|
18
18
|
var _BatchAttrMetric = _interopRequireDefault(require("../../../../components/BatchAttrMetric"));
|
|
19
19
|
|
|
@@ -19,7 +19,7 @@ var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inh
|
|
|
19
19
|
|
|
20
20
|
var _react = _interopRequireDefault(require("react"));
|
|
21
21
|
|
|
22
|
-
var _index = _interopRequireDefault(require("@riil-frontend/component-topology-
|
|
22
|
+
var _index = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/services/topo/index"));
|
|
23
23
|
|
|
24
24
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
25
25
|
|