@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
|
@@ -17,9 +17,9 @@ var _utils = require("@riil-frontend/utils");
|
|
|
17
17
|
|
|
18
18
|
var _utils2 = require("@riil-frontend/component-topology-graph/es/utils");
|
|
19
19
|
|
|
20
|
-
var _topo = _interopRequireWildcard(require("@riil-frontend/component-topology-
|
|
20
|
+
var _topo = _interopRequireWildcard(require("@riil-frontend/component-topology-common/es/services/topo"));
|
|
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 _format = require("../utils/format");
|
|
25
25
|
|
|
@@ -278,68 +278,27 @@ function _default(topoApp) {
|
|
|
278
278
|
},
|
|
279
279
|
effects: function effects(dispatch) {
|
|
280
280
|
return {
|
|
281
|
-
|
|
281
|
+
getConditions: function getConditions() {
|
|
282
282
|
var _this = this;
|
|
283
283
|
|
|
284
284
|
return (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
285
|
-
var
|
|
286
|
-
|
|
285
|
+
var data, groupTopo, resources, groups;
|
|
287
286
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
288
287
|
while (1) {
|
|
289
288
|
switch (_context.prev = _context.next) {
|
|
290
289
|
case 0:
|
|
291
|
-
|
|
292
|
-
conditions = resToConditions(resources) || {};
|
|
293
|
-
|
|
294
|
-
if (!(conditions.dynamic || conditions["static"])) {
|
|
295
|
-
_context.next = 7;
|
|
296
|
-
break;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
_context.next = 5;
|
|
300
|
-
return _topo["default"].getResourceList(conditions);
|
|
301
|
-
|
|
302
|
-
case 5:
|
|
303
|
-
data = _context.sent;
|
|
304
|
-
|
|
305
|
-
if (index < 0) {
|
|
306
|
-
_this.updateResList(data);
|
|
307
|
-
} else {
|
|
308
|
-
_this.updateGroupResList({
|
|
309
|
-
index: index,
|
|
310
|
-
data: data
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
case 7:
|
|
315
|
-
case "end":
|
|
316
|
-
return _context.stop();
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
}, _callee);
|
|
320
|
-
}))();
|
|
321
|
-
},
|
|
322
|
-
getConditions: function getConditions() {
|
|
323
|
-
var _this2 = this;
|
|
324
|
-
|
|
325
|
-
return (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
326
|
-
var data, groupTopo, resources, groups;
|
|
327
|
-
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
328
|
-
while (1) {
|
|
329
|
-
switch (_context2.prev = _context2.next) {
|
|
330
|
-
case 0:
|
|
331
|
-
_context2.next = 2;
|
|
290
|
+
_context.next = 2;
|
|
332
291
|
return _topo["default"].getConditions(topoApp.id);
|
|
333
292
|
|
|
334
293
|
case 2:
|
|
335
|
-
data =
|
|
294
|
+
data = _context.sent;
|
|
336
295
|
|
|
337
296
|
if ((0, _utils.isAvailableArray)(data)) {
|
|
338
|
-
|
|
297
|
+
_context.next = 5;
|
|
339
298
|
break;
|
|
340
299
|
}
|
|
341
300
|
|
|
342
|
-
return
|
|
301
|
+
return _context.abrupt("return");
|
|
343
302
|
|
|
344
303
|
case 5:
|
|
345
304
|
// 视图
|
|
@@ -372,28 +331,28 @@ function _default(topoApp) {
|
|
|
372
331
|
};
|
|
373
332
|
});
|
|
374
333
|
|
|
375
|
-
|
|
334
|
+
_this.update({
|
|
376
335
|
resources: resources,
|
|
377
336
|
groups: groups
|
|
378
337
|
});
|
|
379
338
|
|
|
380
339
|
case 9:
|
|
381
340
|
case "end":
|
|
382
|
-
return
|
|
341
|
+
return _context.stop();
|
|
383
342
|
}
|
|
384
343
|
}
|
|
385
|
-
},
|
|
344
|
+
}, _callee);
|
|
386
345
|
}))();
|
|
387
346
|
},
|
|
388
347
|
fetchData: function fetchData(params, rootState) {
|
|
389
|
-
var
|
|
348
|
+
var _this2 = this;
|
|
390
349
|
|
|
391
|
-
return (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
|
350
|
+
return (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
392
351
|
var editState, resources, _editState$groups, groups, query, data;
|
|
393
352
|
|
|
394
|
-
return _regenerator["default"].wrap(function
|
|
353
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
395
354
|
while (1) {
|
|
396
|
-
switch (
|
|
355
|
+
switch (_context2.prev = _context2.next) {
|
|
397
356
|
case 0:
|
|
398
357
|
editState = rootState.topoCreateMod;
|
|
399
358
|
resources = editState.resources, _editState$groups = editState.groups, groups = _editState$groups === void 0 ? [] : _editState$groups;
|
|
@@ -402,30 +361,30 @@ function _default(topoApp) {
|
|
|
402
361
|
resources: resources,
|
|
403
362
|
groups: groups
|
|
404
363
|
};
|
|
405
|
-
|
|
406
|
-
return
|
|
364
|
+
_context2.next = 5;
|
|
365
|
+
return _this2.getTopoByConditions(query);
|
|
407
366
|
|
|
408
367
|
case 5:
|
|
409
|
-
data =
|
|
410
|
-
return
|
|
368
|
+
data = _context2.sent;
|
|
369
|
+
return _context2.abrupt("return", data);
|
|
411
370
|
|
|
412
371
|
case 7:
|
|
413
372
|
case "end":
|
|
414
|
-
return
|
|
373
|
+
return _context2.stop();
|
|
415
374
|
}
|
|
416
375
|
}
|
|
417
|
-
},
|
|
376
|
+
}, _callee2);
|
|
418
377
|
}))();
|
|
419
378
|
},
|
|
420
379
|
getTopoByConditions: function getTopoByConditions(params, state) {
|
|
421
|
-
var
|
|
380
|
+
var _this3 = this;
|
|
422
381
|
|
|
423
|
-
return (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
|
382
|
+
return (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
|
424
383
|
var topoId, resources, groups, conditions, groupInfo, data, _yield$Promise$all, ciTypeMap, links, _combTopoData, topoData, resAndMetrics, topoDataTrans;
|
|
425
384
|
|
|
426
|
-
return _regenerator["default"].wrap(function
|
|
385
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
427
386
|
while (1) {
|
|
428
|
-
switch (
|
|
387
|
+
switch (_context3.prev = _context3.next) {
|
|
429
388
|
case 0:
|
|
430
389
|
_rlog["default"].debug('getTopoByConditions--------', params);
|
|
431
390
|
|
|
@@ -437,19 +396,19 @@ function _default(topoApp) {
|
|
|
437
396
|
resources: resToConditions(group.resources)
|
|
438
397
|
});
|
|
439
398
|
});
|
|
440
|
-
|
|
399
|
+
_context3.next = 6;
|
|
441
400
|
return _topo["default"].getTopoDataByResource(topoId, conditions, groupInfo);
|
|
442
401
|
|
|
443
402
|
case 6:
|
|
444
|
-
data =
|
|
403
|
+
data = _context3.sent;
|
|
445
404
|
|
|
446
405
|
_rlog["default"].debug('getTopoByConditions--------', data, groupInfo);
|
|
447
406
|
|
|
448
|
-
|
|
407
|
+
_context3.next = 10;
|
|
449
408
|
return Promise.all([topoApp.ciTyeCache.getCiTypeMap((0, _topoData.getCiTypes)(data)), (0, _linkUtils.getLinksDetail)(data.links), dispatch.iconManage.getIcons()]);
|
|
450
409
|
|
|
451
410
|
case 10:
|
|
452
|
-
_yield$Promise$all =
|
|
411
|
+
_yield$Promise$all = _context3.sent;
|
|
453
412
|
ciTypeMap = _yield$Promise$all[0];
|
|
454
413
|
links = _yield$Promise$all[1];
|
|
455
414
|
_combTopoData = (0, _topoData.combTopoData)({
|
|
@@ -462,13 +421,13 @@ function _default(topoApp) {
|
|
|
462
421
|
ciTypeMap: ciTypeMap
|
|
463
422
|
}), topoData = _combTopoData.topoData, resAndMetrics = _combTopoData.resAndMetrics;
|
|
464
423
|
|
|
465
|
-
|
|
424
|
+
_this3.update({
|
|
466
425
|
elements: topoData
|
|
467
426
|
});
|
|
468
427
|
|
|
469
428
|
topoDataTrans = (0, _utils2.transformTopoElements)(topoData);
|
|
470
429
|
|
|
471
|
-
|
|
430
|
+
_this3.updateTopo(topoDataTrans); // const allCiSet = state.topoBizMod.allCiSet;
|
|
472
431
|
// rlog.debug(
|
|
473
432
|
// '新添加资源什么情况-topoData-resAndMetrics-allCiSet',
|
|
474
433
|
// topoData,
|
|
@@ -483,41 +442,41 @@ function _default(topoApp) {
|
|
|
483
442
|
// });
|
|
484
443
|
// 返回查询后的数据,便于外部获取到数据后像HT通知更新
|
|
485
444
|
|
|
486
|
-
return
|
|
445
|
+
return _context3.abrupt("return", topoDataTrans);
|
|
487
446
|
|
|
488
447
|
case 19:
|
|
489
448
|
case "end":
|
|
490
|
-
return
|
|
449
|
+
return _context3.stop();
|
|
491
450
|
}
|
|
492
451
|
}
|
|
493
|
-
},
|
|
452
|
+
}, _callee3);
|
|
494
453
|
}))();
|
|
495
454
|
},
|
|
496
455
|
saveTopo: function saveTopo(data, state) {
|
|
497
|
-
return (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
|
456
|
+
return (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
498
457
|
var topoId, template, layout, global, resources, groups, serialize, layoutId, conditions, groupInfo;
|
|
499
|
-
return _regenerator["default"].wrap(function
|
|
458
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
500
459
|
while (1) {
|
|
501
|
-
switch (
|
|
460
|
+
switch (_context4.prev = _context4.next) {
|
|
502
461
|
case 0:
|
|
503
462
|
topoId = data.id, template = data.template, layout = data.layout, global = data.global, resources = data.resources, groups = data.groups, serialize = data.serialize; // 保存布局
|
|
504
463
|
|
|
505
464
|
if (!(template && layout)) {
|
|
506
|
-
|
|
465
|
+
_context4.next = 5;
|
|
507
466
|
break;
|
|
508
467
|
}
|
|
509
468
|
|
|
510
469
|
layoutId = getLayoutId(layout);
|
|
511
|
-
|
|
470
|
+
_context4.next = 5;
|
|
512
471
|
return _topo["default"].changeLayout(topoId, template, layoutId);
|
|
513
472
|
|
|
514
473
|
case 5:
|
|
515
474
|
if (!global) {
|
|
516
|
-
|
|
475
|
+
_context4.next = 8;
|
|
517
476
|
break;
|
|
518
477
|
}
|
|
519
478
|
|
|
520
|
-
|
|
479
|
+
_context4.next = 8;
|
|
521
480
|
return _topo["default"].saveTopoSettings(topoId, (0, _topoData.combSaveTopoData)({
|
|
522
481
|
global: global,
|
|
523
482
|
ciSetDoc: state.topoBizMod.ciSetDoc,
|
|
@@ -526,16 +485,16 @@ function _default(topoApp) {
|
|
|
526
485
|
|
|
527
486
|
case 8:
|
|
528
487
|
if (!serialize) {
|
|
529
|
-
|
|
488
|
+
_context4.next = 11;
|
|
530
489
|
break;
|
|
531
490
|
}
|
|
532
491
|
|
|
533
|
-
|
|
492
|
+
_context4.next = 11;
|
|
534
493
|
return _topo["default"].saveSerializeData(topoId, serialize);
|
|
535
494
|
|
|
536
495
|
case 11:
|
|
537
496
|
if (!(resources || groups)) {
|
|
538
|
-
|
|
497
|
+
_context4.next = 16;
|
|
539
498
|
break;
|
|
540
499
|
}
|
|
541
500
|
|
|
@@ -546,34 +505,34 @@ function _default(topoApp) {
|
|
|
546
505
|
resources: resToConditions(group.resources, true)
|
|
547
506
|
});
|
|
548
507
|
});
|
|
549
|
-
|
|
508
|
+
_context4.next = 16;
|
|
550
509
|
return _topo["default"].bindResourceToTopo(topoId, conditions, groupInfo);
|
|
551
510
|
|
|
552
511
|
case 16:
|
|
553
512
|
case "end":
|
|
554
|
-
return
|
|
513
|
+
return _context4.stop();
|
|
555
514
|
}
|
|
556
515
|
}
|
|
557
|
-
},
|
|
516
|
+
}, _callee4);
|
|
558
517
|
}))();
|
|
559
518
|
},
|
|
560
519
|
addToBlockList: function addToBlockList(data) {
|
|
561
|
-
return (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
|
520
|
+
return (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5() {
|
|
562
521
|
var topoId, ciIdList;
|
|
563
|
-
return _regenerator["default"].wrap(function
|
|
522
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
564
523
|
while (1) {
|
|
565
|
-
switch (
|
|
524
|
+
switch (_context5.prev = _context5.next) {
|
|
566
525
|
case 0:
|
|
567
526
|
topoId = data.id, ciIdList = data.ciIdList;
|
|
568
|
-
|
|
527
|
+
_context5.next = 3;
|
|
569
528
|
return _topo["default"].addToBlocklist(topoId, ciIdList);
|
|
570
529
|
|
|
571
530
|
case 3:
|
|
572
531
|
case "end":
|
|
573
|
-
return
|
|
532
|
+
return _context5.stop();
|
|
574
533
|
}
|
|
575
534
|
}
|
|
576
|
-
},
|
|
535
|
+
}, _callee5);
|
|
577
536
|
}))();
|
|
578
537
|
},
|
|
579
538
|
switchToEditMode: function switchToEditMode() {},
|
package/lib/models/topoEdit.js
CHANGED
|
@@ -11,9 +11,9 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
11
11
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
|
|
14
|
-
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/
|
|
14
|
+
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
|
15
15
|
|
|
16
|
-
var _topo = _interopRequireDefault(require("@riil-frontend/component-topology-
|
|
16
|
+
var _topo = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/services/topo"));
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* 拓扑编辑 Model
|
|
@@ -11,9 +11,9 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
11
11
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
|
|
14
|
-
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/
|
|
14
|
+
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
|
15
15
|
|
|
16
|
-
var _topo = _interopRequireDefault(require("@riil-frontend/component-topology-
|
|
16
|
+
var _topo = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/services/topo"));
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* 拓扑图 Model
|
package/lib/models/topoMod.js
CHANGED
|
@@ -11,13 +11,13 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
11
11
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
|
|
14
|
-
var _topo = _interopRequireDefault(require("@riil-frontend/component-topology-
|
|
14
|
+
var _topo = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/services/topo"));
|
|
15
15
|
|
|
16
|
-
var _model = require("@riil-frontend/component-topology-
|
|
16
|
+
var _model = require("@riil-frontend/component-topology-common/es/services/model");
|
|
17
17
|
|
|
18
18
|
var _moment = _interopRequireDefault(require("moment"));
|
|
19
19
|
|
|
20
|
-
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/
|
|
20
|
+
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
|
21
21
|
|
|
22
22
|
var _topoData = require("../utils/topoData");
|
|
23
23
|
|
package/lib/models/topoView.js
CHANGED
|
@@ -11,9 +11,9 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
11
11
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
|
|
14
|
-
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/
|
|
14
|
+
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
|
15
15
|
|
|
16
|
-
var _topo = _interopRequireDefault(require("@riil-frontend/component-topology-
|
|
16
|
+
var _topo = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/services/topo"));
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* 拓扑图 Model
|
package/lib/style.js
CHANGED
|
@@ -21,7 +21,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
21
21
|
|
|
22
22
|
var _Topo = _interopRequireDefault(require("../../core/components/TopoView/Topo"));
|
|
23
23
|
|
|
24
|
-
var cmdbService = _interopRequireWildcard(require("@riil-frontend/component-topology-
|
|
24
|
+
var cmdbService = _interopRequireWildcard(require("@riil-frontend/component-topology-common/es/services/cmdb"));
|
|
25
25
|
|
|
26
26
|
var _componentTopologyGraph = require("@riil-frontend/component-topology-graph");
|
|
27
27
|
|
|
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
|
|
12
12
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
13
|
|
|
14
|
-
var _topo = _interopRequireDefault(require("@riil-frontend/component-topology-
|
|
14
|
+
var _topo = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/services/topo"));
|
|
15
15
|
|
|
16
16
|
var _linkUtils = require("../core/models/utils/linkUtils");
|
|
17
17
|
|
|
@@ -11,11 +11,11 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
11
11
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
|
|
14
|
-
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/
|
|
14
|
+
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
|
15
15
|
|
|
16
|
-
var _topo = _interopRequireDefault(require("@riil-frontend/component-topology-
|
|
16
|
+
var _topo = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/services/topo"));
|
|
17
17
|
|
|
18
|
-
var _authorization = _interopRequireDefault(require("@riil-frontend/component-topology-
|
|
18
|
+
var _authorization = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/services/authorization"));
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* 功能权限 Model
|
|
@@ -11,9 +11,9 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
11
11
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
|
|
14
|
-
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/
|
|
14
|
+
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
|
15
15
|
|
|
16
|
-
var _topo = _interopRequireDefault(require("@riil-frontend/component-topology-
|
|
16
|
+
var _topo = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/services/topo"));
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* 拓扑中心 Model
|
|
@@ -11,9 +11,9 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
11
11
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
|
|
14
|
-
var _topo = _interopRequireDefault(require("@riil-frontend/component-topology-
|
|
14
|
+
var _topo = _interopRequireDefault(require("@riil-frontend/component-topology-common/es/services/topo"));
|
|
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 _topoMocks = require("../../utils/topoMocks");
|
|
19
19
|
|
package/lib/utils/format.js
CHANGED
|
@@ -15,7 +15,7 @@ exports.sortData = sortData;
|
|
|
15
15
|
|
|
16
16
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
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 _utils = require("@riil-frontend/utils");
|
|
21
21
|
|
package/lib/utils/topoData.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.updateCiDoc = exports.updateAllCiDoc = exports.sortList = void 0;
|
|
|
12
12
|
|
|
13
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
14
14
|
|
|
15
|
-
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/
|
|
15
|
+
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
|
16
16
|
|
|
17
17
|
var _utils = require("@riil-frontend/utils");
|
|
18
18
|
|
package/lib/utils/tree.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riil-frontend/component-topology",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.2",
|
|
4
4
|
"description": "拓扑",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "build-scripts start",
|
|
@@ -41,9 +41,22 @@
|
|
|
41
41
|
"@ahooksjs/use-sortable-plugin": "^0.2.1",
|
|
42
42
|
"@ahooksjs/use-tree-plugin": "^0.2.1",
|
|
43
43
|
"@alifd/biz-anchor": "^1.1.7",
|
|
44
|
+
"@ice/store": "^1.4.2",
|
|
45
|
+
"@riil-frontend/component-topo-icon-select": "^1.0.2",
|
|
46
|
+
"@riil-frontend/component-topology-common": "^1.0.0",
|
|
47
|
+
"@riil-frontend/component-topology-graph": "^2.2.1",
|
|
48
|
+
"@riil-frontend/component-topology-utils": "^2.0.18",
|
|
49
|
+
"classnames": "^2.2.3",
|
|
50
|
+
"prop-types": "^15.5.8",
|
|
51
|
+
"react-color": "^2.19.3",
|
|
52
|
+
"styled-components": "^4.4.1"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@alifd/next": "^1.21.16",
|
|
56
|
+
"@alifd/theme-19926": "^0.19.4",
|
|
44
57
|
"@formily/next": "1.3.13",
|
|
45
58
|
"@formily/next-components": "1.3.13",
|
|
46
|
-
"@
|
|
59
|
+
"@iceworks/spec": "^1.0.0",
|
|
47
60
|
"@riil-frontend/component-action-tree": "^1.0.8",
|
|
48
61
|
"@riil-frontend/component-extra-title": "^1.0.3",
|
|
49
62
|
"@riil-frontend/component-more-buttons-menu": "^1.0.1-a.15",
|
|
@@ -54,35 +67,23 @@
|
|
|
54
67
|
"@riil-frontend/component-riil-rule-tree": "^1.0.4",
|
|
55
68
|
"@riil-frontend/component-row-delete-ballon": "^1.0.2",
|
|
56
69
|
"@riil-frontend/component-table-filter-tags": "latest",
|
|
57
|
-
"@riil-frontend/component-table-layout": "^2.0.
|
|
58
|
-
"@riil-frontend/component-topo-icon-select": "^1.0.1",
|
|
59
|
-
"@riil-frontend/component-topology-graph": "^2.1.14",
|
|
60
|
-
"@riil-frontend/component-topology-utils": "^2.0.15",
|
|
70
|
+
"@riil-frontend/component-table-layout": "^2.0.2",
|
|
61
71
|
"@riil-frontend/css": "^2.0.2",
|
|
62
72
|
"@riil-frontend/hooks": "latest",
|
|
63
73
|
"@riil-frontend/next-collapse": "^1.0.1-a.0",
|
|
64
74
|
"@riil-frontend/utils": "^1.0.20",
|
|
65
|
-
"classnames": "^2.2.3",
|
|
66
|
-
"echarts": "^5.1.2",
|
|
67
|
-
"echarts-for-react": "^3.0.1",
|
|
68
|
-
"html2canvas": "^1.3.2",
|
|
69
|
-
"jspdf": "^2.3.1",
|
|
70
|
-
"prop-types": "^15.5.8",
|
|
71
|
-
"react-color": "^2.19.3",
|
|
72
|
-
"styled-components": "^4.4.1"
|
|
73
|
-
},
|
|
74
|
-
"devDependencies": {
|
|
75
|
-
"@alifd/next": "^1.21.16",
|
|
76
|
-
"@alifd/theme-19926": "^0.17.0",
|
|
77
|
-
"@iceworks/spec": "^1.0.0",
|
|
78
75
|
"axios": "^0.21.1",
|
|
79
76
|
"build-plugin-component": "^1.0.0",
|
|
80
77
|
"build-plugin-fusion": "^0.1.0",
|
|
81
78
|
"build-plugin-moment-locales": "^0.1.0",
|
|
82
79
|
"build-scripts": "^1.1.1",
|
|
80
|
+
"echarts": "^5.1.2",
|
|
81
|
+
"echarts-for-react": "^3.0.1",
|
|
83
82
|
"enzyme": "^3.10.0",
|
|
84
83
|
"enzyme-adapter-react-16": "^1.14.0",
|
|
85
84
|
"eslint": "^6.0.1",
|
|
85
|
+
"html2canvas": "^1.3.2",
|
|
86
|
+
"jspdf": "^2.3.1",
|
|
86
87
|
"react": "^17.0.2",
|
|
87
88
|
"react-dom": "^17.0.2",
|
|
88
89
|
"stylelint": "^13.7.2"
|
|
@@ -100,6 +101,6 @@
|
|
|
100
101
|
"access": "public"
|
|
101
102
|
},
|
|
102
103
|
"license": "MIT",
|
|
103
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@2.
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@2.7.2/build/index.html",
|
|
105
|
+
"gitHead": "62eadeca07c85ed047f2e933676f62015eff98cc"
|
|
105
106
|
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export default useTableSelectionPlugin;
|
|
2
|
-
/**
|
|
3
|
-
* Modified version of @ahooksjs/use-selection-plugin.
|
|
4
|
-
* Selected keys can be persistent across page changes, if not be reset.
|
|
5
|
-
*/
|
|
6
|
-
declare function useTableSelectionPlugin(options?: {}): {
|
|
7
|
-
middlewares: (ctx: any, next: any) => any;
|
|
8
|
-
props: () => {
|
|
9
|
-
tableProps: {
|
|
10
|
-
rowSelection: {
|
|
11
|
-
onChange: (selectedRowKeys: any, records: any) => void;
|
|
12
|
-
selectedRowKeys: any;
|
|
13
|
-
mode: any;
|
|
14
|
-
getProps: (record: any) => {
|
|
15
|
-
disabled: any;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
primaryKey: any;
|
|
19
|
-
};
|
|
20
|
-
getSelectedRowKeys: () => any;
|
|
21
|
-
setSelectedRowKeys: (selectedRowKeys: any) => void;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export namespace SELECT_TYPE {
|
|
2
|
-
export namespace single {
|
|
3
|
-
export const showTree: boolean;
|
|
4
|
-
export const showCiNum: boolean;
|
|
5
|
-
export const drawerWidth: string;
|
|
6
|
-
}
|
|
7
|
-
export namespace batch {
|
|
8
|
-
const showTree_1: boolean;
|
|
9
|
-
export { showTree_1 as showTree };
|
|
10
|
-
const showCiNum_1: boolean;
|
|
11
|
-
export { showCiNum_1 as showCiNum };
|
|
12
|
-
const drawerWidth_1: string;
|
|
13
|
-
export { drawerWidth_1 as drawerWidth };
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export namespace DATA_TYPE {
|
|
17
|
-
export namespace tag {
|
|
18
|
-
export const drawerTitle: string;
|
|
19
|
-
export const maxSelect: number;
|
|
20
|
-
export const message: string;
|
|
21
|
-
}
|
|
22
|
-
export namespace tip {
|
|
23
|
-
const drawerTitle_1: string;
|
|
24
|
-
export { drawerTitle_1 as drawerTitle };
|
|
25
|
-
const maxSelect_1: number;
|
|
26
|
-
export { maxSelect_1 as maxSelect };
|
|
27
|
-
const message_1: string;
|
|
28
|
-
export { message_1 as message };
|
|
29
|
-
}
|
|
30
|
-
}
|