@riil-frontend/component-topology 12.0.0-dev.7 → 12.0.0-dev.9
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 +1 -1
- package/build/index.js +14 -14
- package/es/components/BatchAttrMetric/setting.js +1 -1
- package/es/components/ModelAttrSelectDrawer/components/MultipleTypeAttributeSelectDrawer.js +1 -1
- package/es/components/ResourceSelectDrawer/ResourceSelectDrawer.js +1 -1
- package/es/core/components/AlarmListPanel/index.js +1 -1
- package/es/core/components/DisplaySettingDrawer/DisplaySetting.js +1 -1
- package/es/core/components/DisplaySettingDrawer/DisplaySettingDrawer.js +1 -1
- package/es/core/components/DisplaySettingDrawer/ResourceDisplay/BasicConfig.js +1 -1
- package/es/core/components/DisplaySettingDrawer/components/NodeAttrSettingDrawer.js +1 -1
- package/es/core/components/ResourceViewAttributeSetting/Setting.js +1 -1
- package/es/core/components/TopoView/topoView.js +1 -1
- package/es/core/editor/components/BackgroundView/index.js +1 -1
- package/es/core/editor/components/CustomIconPlugin/UploadIconDialog.js +1 -1
- package/es/core/editor/components/EditorPlugin.js +1 -1
- package/es/core/editor/components/Sidebar/views/ComponentPanel.js +1 -1
- package/es/core/editor/components/Sidebar/views/ImagePanel/CiTypeImagePanel.js +1 -1
- package/es/core/editor/components/Sidebar/views/ImagePanel/CustomImagePanel.js +1 -1
- package/es/core/editor/components/Sidebar/views/ImagePanel/HtCustomImagePanel.js +1 -1
- package/es/core/editor/components/Sidebar/views/ImagePanel/HtImagePalette.js +1 -1
- package/es/core/editor/components/Sidebar/views/ImagePanel/ImagePalette.js +1 -1
- package/es/core/editor/components/Sidebar/views/LinkPanel.js +1 -1
- package/es/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.js +1 -1
- package/es/core/editor/components/settings/common/SizeInput/NodeSizeInput.js +1 -1
- package/es/core/editor/components/settings/propertyViews/layer/BasicSetting.js +1 -1
- package/es/core/editor/components/settings/propertyViews/layer/SettingTab/Setting.js +1 -1
- package/es/core/editor/components/settings/propertyViews/view/hooks/useBackgroundSizeConfig.js +1 -1
- package/es/core/editor/store/background.js +1 -1
- package/es/core/editor/store/historyManager.js +1 -1
- package/es/core/editor/store/topoEdit.js +1 -1
- package/es/core/hooks/ht/useHtDataPropertyChangeListener.js +1 -1
- package/es/core/hooks/useCiAttributeChange.js +1 -1
- package/es/core/hooks/useManageStatus.js +1 -1
- package/es/core/hooks/usePolling.js +1 -1
- package/es/core/hooks/useTopoEdit.js +21 -16
- package/es/core/models/Alarm.js +1 -1
- package/es/core/models/AttributeMetricDisplay.js +6 -3
- package/es/core/models/HistoryManager.js +1 -1
- package/es/core/models/SelectionModel.js +1 -1
- package/es/core/models/TopoApp.js +2 -2
- package/es/core/models/attributeFormatter/formatter/graphTransform.js +1 -1
- package/es/core/models/attributeFormatter/index.js +1 -1
- package/es/core/models/cache/CiTypeCache.js +5 -1
- package/es/core/models/cache/DictCache.js +1 -1
- package/es/core/models/plugins/resourceWebControllUrl.js +1 -1
- package/es/core/models/tagstips/ElementTagTipConfig.js +1 -1
- package/es/core/services/alarm.js +1 -1
- package/es/core/services/index.js +1 -1
- package/es/core/store/models/customIcon.js +1 -1
- package/es/core/store/models/displayConfig.js +1 -1
- package/es/core/store/models/selection.js +1 -1
- package/es/core/store/models/topoBaseInfoOverview.js +1 -1
- package/es/core/store/models/topoBizMod.js +1 -1
- package/es/core/store/models/topoGraphView.js +1 -1
- package/es/core/store/models/topoMod.js +1 -1
- package/es/core/store/models/viewer/lock.js +1 -1
- package/es/core/store/models/viewer/resourceDetail.js +1 -1
- package/es/core/store/models/viewer/resourceWebControllUrlSetting.js +1 -1
- package/es/core/utils/showMessage.js +1 -1
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/EventsCard.js +12 -13
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/hooks/useMetricPolling.js +1 -1
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/services/index.js +1 -1
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useAlarmAndRiskData.js +20 -18
- package/es/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/hooks/useWebConsole.js +1 -1
- package/es/networkTopo/components/Link/index.js +1 -1
- package/es/networkTopo/hooks/viewer/useRelateTopo.js +1 -1
- package/es/networkTopo/models/LinkDynamicStyleExecutor.js +1 -1
- package/es/networkTopo/models/LinkTagsTipsBuilder.js +1 -1
- package/es/networkTopo/models/TopoCenter.js +1 -1
- package/es/networkTopo/services/model.js +1 -1
- package/es/networkTopo/services/topo/basic.js +1 -1
- package/es/networkTopo/services/topo/ciInfo.js +1 -1
- package/es/networkTopo/store/functionAuth.js +1 -1
- package/es/networkTopo/store/topoCenter.js +1 -1
- package/es/networkTopo/store/topoTreeMod.js +1 -1
- package/es/networkTopo/utils/exportData.js +1 -1
- package/es/style.js +1 -1
- package/es/utils/ResourceConfigUtil.js +1 -1
- package/es/utils/ciRefAttributeTranslateUtil.d.ts +12 -0
- package/es/utils/ciRefAttributeTranslateUtil.js +156 -0
- package/es/utils/format.js +1 -1
- package/es/utils/topoData.js +4 -2
- package/lib/components/BatchAttrMetric/setting.js +2 -2
- package/lib/components/ModelAttrSelectDrawer/components/MultipleTypeAttributeSelectDrawer.js +2 -2
- package/lib/components/ResourceSelectDrawer/ResourceSelectDrawer.js +2 -2
- package/lib/core/components/AlarmListPanel/index.js +1 -1
- package/lib/core/components/DisplaySettingDrawer/DisplaySetting.js +2 -2
- package/lib/core/components/DisplaySettingDrawer/DisplaySettingDrawer.js +2 -2
- package/lib/core/components/DisplaySettingDrawer/ResourceDisplay/BasicConfig.js +3 -3
- package/lib/core/components/DisplaySettingDrawer/components/NodeAttrSettingDrawer.js +2 -2
- package/lib/core/components/ResourceViewAttributeSetting/Setting.js +2 -2
- package/lib/core/components/TopoView/topoView.js +9 -9
- package/lib/core/editor/components/BackgroundView/index.js +3 -3
- package/lib/core/editor/components/CustomIconPlugin/UploadIconDialog.js +2 -2
- package/lib/core/editor/components/EditorPlugin.js +3 -3
- package/lib/core/editor/components/Sidebar/views/ComponentPanel.js +2 -4
- package/lib/core/editor/components/Sidebar/views/ImagePanel/CiTypeImagePanel.js +1 -1
- package/lib/core/editor/components/Sidebar/views/ImagePanel/CustomImagePanel.js +1 -1
- package/lib/core/editor/components/Sidebar/views/ImagePanel/HtCustomImagePanel.js +2 -2
- package/lib/core/editor/components/Sidebar/views/ImagePanel/HtImagePalette.js +2 -2
- package/lib/core/editor/components/Sidebar/views/ImagePanel/ImagePalette.js +2 -4
- package/lib/core/editor/components/Sidebar/views/LinkPanel.js +2 -4
- package/lib/core/editor/components/settings/common/NodeSizeInput/NodeSizeInput.js +5 -5
- package/lib/core/editor/components/settings/common/SizeInput/NodeSizeInput.js +1 -1
- package/lib/core/editor/components/settings/propertyViews/layer/BasicSetting.js +1 -1
- package/lib/core/editor/components/settings/propertyViews/layer/SettingTab/Setting.js +3 -3
- package/lib/core/editor/components/settings/propertyViews/view/hooks/useBackgroundSizeConfig.js +2 -2
- package/lib/core/editor/store/background.js +1 -1
- package/lib/core/editor/store/historyManager.js +1 -1
- package/lib/core/editor/store/topoEdit.js +1 -1
- package/lib/core/hooks/ht/useHtDataPropertyChangeListener.js +1 -3
- package/lib/core/hooks/useCiAttributeChange.js +1 -1
- package/lib/core/hooks/useManageStatus.js +1 -1
- package/lib/core/hooks/usePolling.js +3 -3
- package/lib/core/hooks/useTopoEdit.js +21 -16
- package/lib/core/models/Alarm.js +10 -10
- package/lib/core/models/AttributeMetricDisplay.js +8 -4
- package/lib/core/models/HistoryManager.js +8 -8
- package/lib/core/models/SelectionModel.js +5 -5
- package/lib/core/models/TopoApp.js +4 -6
- package/lib/core/models/attributeFormatter/formatter/graphTransform.js +2 -4
- package/lib/core/models/attributeFormatter/index.js +1 -1
- package/lib/core/models/cache/CiTypeCache.js +6 -2
- package/lib/core/models/cache/DictCache.js +2 -2
- package/lib/core/models/plugins/resourceWebControllUrl.js +2 -2
- package/lib/core/models/tagstips/ElementTagTipConfig.js +2 -2
- package/lib/core/services/alarm.js +2 -2
- package/lib/core/services/index.js +1 -1
- package/lib/core/store/models/customIcon.js +3 -3
- package/lib/core/store/models/displayConfig.js +1 -1
- package/lib/core/store/models/selection.js +1 -1
- package/lib/core/store/models/topoBaseInfoOverview.js +1 -1
- package/lib/core/store/models/topoBizMod.js +1 -1
- package/lib/core/store/models/topoGraphView.js +1 -1
- package/lib/core/store/models/topoMod.js +9 -9
- package/lib/core/store/models/viewer/lock.js +1 -1
- package/lib/core/store/models/viewer/resourceDetail.js +1 -1
- package/lib/core/store/models/viewer/resourceWebControllUrlSetting.js +1 -1
- package/lib/core/utils/showMessage.js +2 -2
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/EventsCard.js +12 -13
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/hooks/useMetricPolling.js +6 -6
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/components/LinkTopo/services/index.js +3 -5
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/hooks/useAlarmAndRiskData.js +20 -18
- package/lib/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/hooks/useWebConsole.js +2 -2
- package/lib/networkTopo/components/Link/index.js +2 -2
- package/lib/networkTopo/hooks/viewer/useRelateTopo.js +4 -4
- package/lib/networkTopo/models/LinkDynamicStyleExecutor.js +3 -5
- package/lib/networkTopo/models/LinkTagsTipsBuilder.js +3 -3
- package/lib/networkTopo/models/TopoCenter.js +1 -1
- package/lib/networkTopo/services/model.js +1 -3
- package/lib/networkTopo/services/topo/basic.js +1 -3
- package/lib/networkTopo/services/topo/ciInfo.js +0 -2
- package/lib/networkTopo/store/functionAuth.js +1 -1
- package/lib/networkTopo/store/topoCenter.js +1 -1
- package/lib/networkTopo/store/topoTreeMod.js +5 -5
- package/lib/networkTopo/utils/exportData.js +1 -3
- package/lib/style.js +1 -1
- package/lib/utils/ResourceConfigUtil.js +2 -2
- package/lib/utils/ciRefAttributeTranslateUtil.d.ts +12 -0
- package/lib/utils/ciRefAttributeTranslateUtil.js +169 -0
- package/lib/utils/format.js +1 -1
- package/lib/utils/topoData.js +4 -2
- package/package.json +3 -3
@@ -7,7 +7,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
7
7
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
8
8
|
var _excluded = ["value", "defaultSet", "dataSource"];
|
9
9
|
import React, { useState, useMemo, useEffect } from 'react';
|
10
|
-
import rlog from '@riil-frontend/component-topology-utils
|
10
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
11
11
|
import ActionTree from '@riil-frontend/component-action-tree';
|
12
12
|
import NoDataPage from '@riil-frontend/component-topology-common/es/components/NoDataPage';
|
13
13
|
import TableLayout from '@riil-frontend/component-table-layout';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React, { useState, useEffect, useRef, useImperativeHandle, forwardRef } from 'react';
|
2
|
-
import rlog from '@riil-frontend/component-topology-utils
|
2
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
3
3
|
import ModelAttrSelectDrawer from "./ModelAttrSelectDrawer";
|
4
4
|
|
5
5
|
function parseValue(value) {
|
@@ -2,7 +2,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
3
3
|
import React, { useState, useEffect, useRef, useCallback } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
5
|
-
import rlog from '@riil-frontend/component-topology-utils
|
5
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
6
6
|
import Drawer from "../Drawer";
|
7
7
|
import ResourceSelectList from "./ResourceSelectList";
|
8
8
|
import styles from "./ResourceSelectDrawer.module.scss";
|
@@ -3,7 +3,7 @@ import _Button from "@alifd/next/es/button";
|
|
3
3
|
import _Card from "@alifd/next/es/card";
|
4
4
|
import React, { useState, useEffect } from 'react';
|
5
5
|
import NoDataPage from '@riil-frontend/component-no-data-page';
|
6
|
-
import rlog from '@riil-frontend/component-topology-utils
|
6
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
7
7
|
import AlarmListItem from "./components/AlarmListItem";
|
8
8
|
import styles from "./index.module.scss";
|
9
9
|
import { alarmListDemo } from "./mocks";
|
@@ -3,7 +3,7 @@ import _Form from "@alifd/next/es/form";
|
|
3
3
|
import _extends from "@babel/runtime/helpers/extends";
|
4
4
|
import _Field from "@alifd/next/es/field";
|
5
5
|
import React, { useEffect, useImperativeHandle, useState } from 'react';
|
6
|
-
import rlog from '@riil-frontend/component-topology-utils
|
6
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
7
7
|
import NodeTag from "./NodeTag";
|
8
8
|
import EdgeFlow from "./EdgeFlow";
|
9
9
|
import NodeTip from "./NodeTip";
|
@@ -3,7 +3,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import _extends from "@babel/runtime/helpers/extends";
|
4
4
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
5
5
|
import React, { useRef, useState } from 'react';
|
6
|
-
import { rlog } from '@riil-frontend/component-topology-utils
|
6
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
7
7
|
import Drawer from "../../../components/Drawer";
|
8
8
|
import DisplaySetting from "./DisplaySetting";
|
9
9
|
import useDisplaySetting from "./hooks/useDisplaySetting";
|
@@ -2,7 +2,7 @@ import _Button from "@alifd/next/es/button";
|
|
2
2
|
import _Box from "@alifd/next/es/box";
|
3
3
|
import _Radio from "@alifd/next/es/radio";
|
4
4
|
import React, { useImperativeHandle, useRef } from 'react';
|
5
|
-
import rlog from '@riil-frontend/component-topology-utils
|
5
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
6
6
|
import { DEFAULT_CUSTOM_CONFIG } from "../../../../constants/ResourceInfoDisplay";
|
7
7
|
import CommonCheckboxGroup from "./CommonCheckboxGroup";
|
8
8
|
import ResourceDiplayInfoSetting from "../../ResourceViewAttributeSetting/Setting";
|
@@ -3,7 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutP
|
|
3
3
|
var _excluded = ["topo", "showType", "value"];
|
4
4
|
import React, { forwardRef, useEffect, useState } from 'react';
|
5
5
|
import PropTypes from 'prop-types';
|
6
|
-
import rlog from '@riil-frontend/component-topology-utils
|
6
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
7
7
|
import ModelAttrSelectDrawer from "../../../../components/ModelAttrSelectDrawer";
|
8
8
|
import { getNodeModels } from "../../ResourceViewAttributeSetting/nodeCiTypeAttrUtil";
|
9
9
|
/**
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
3
3
|
var _excluded = ["topo", "elementType", "showType", "value"];
|
4
4
|
import React, { forwardRef, useState } from 'react';
|
5
|
-
import rlog from '@riil-frontend/component-topology-utils
|
5
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
6
6
|
import { getNodeModels } from "./nodeCiTypeAttrUtil";
|
7
7
|
import ModelAttrSelectDrawer from "../../../components/ModelAttrSelectDrawer";
|
8
8
|
/**
|
@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
|
|
5
5
|
import classnames from 'classnames';
|
6
6
|
import TopoGraph, { TopoEvent } from '@riil-frontend/component-topology-graph';
|
7
7
|
import PortalContainer from '@riil-frontend/component-topology-graph/es/components/PortalContainer';
|
8
|
-
import rlog from '@riil-frontend/component-topology-utils
|
8
|
+
import { rlog } from '@riil-frontend/component-topology-utils'; // 通用
|
9
9
|
|
10
10
|
import showMessage from "../../utils/showMessage";
|
11
11
|
import { TPL_TREE } from "../../../utils/template";
|
@@ -13,7 +13,7 @@ import UploadDialog from "./UploadDialog";
|
|
13
13
|
import api from "../../../services/background";
|
14
14
|
import { getBackgroundImageUrl, getBackgroundThumbnailImageUrl } from "../../../utils/backgroundUtil";
|
15
15
|
import { getImageSize } from "../../../utils/imageUtil";
|
16
|
-
import rlog from '@riil-frontend/component-topology-utils
|
16
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
17
17
|
|
18
18
|
function List(props) {
|
19
19
|
var selected = props.selected,
|
@@ -11,7 +11,7 @@ import React from 'react';
|
|
11
11
|
import topoServer from '@riil-frontend/component-topology-common/es/services/topo/index';
|
12
12
|
import _ from 'lodash';
|
13
13
|
import { getToken } from '@riil-frontend/utils';
|
14
|
-
import rlog from '@riil-frontend/component-topology-utils
|
14
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
15
15
|
import { validateSpecialCharacter } from "../../../../utils/SpecialCharacterValidateUtil";
|
16
16
|
import "./UploadIconDialog.scss";
|
17
17
|
import styles from "./UploadIconDialog.module.scss";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
2
|
import React, { useEffect } from 'react';
|
3
|
-
import rlog from '@riil-frontend/component-topology-utils
|
3
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
4
4
|
import CustomIconPlugin from "./CustomIconPlugin";
|
5
5
|
import SaveLoading from "./plugins/SaveLoading";
|
6
6
|
import GroupAddResourceDrawerPlugin from "./GroupAddResourceDrawerPlugin";
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React, { useEffect, useRef, useMemo } from 'react';
|
2
|
-
import rlog from '@riil-frontend/component-topology-utils
|
2
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
3
3
|
import { getUserCustomIconsForHt } from "../../../../../common/icons/icon";
|
4
4
|
import HtCustomImagePanel from "./HtCustomImagePanel";
|
5
5
|
/**
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React, { useEffect, useRef } from 'react';
|
2
2
|
import ResizeObserver from 'resize-observer-polyfill';
|
3
|
-
import rlog from '@riil-frontend/component-topology-utils
|
3
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
4
4
|
import styles from "./HtImagePalette.module.scss";
|
5
5
|
/**
|
6
6
|
* 组件面板
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React, { useEffect, useRef } from 'react';
|
2
|
-
import rlog from '@riil-frontend/component-topology-utils
|
2
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
3
3
|
import ResizeObserver from 'resize-observer-polyfill';
|
4
4
|
import styles from "./HtImagePalette.module.scss";
|
5
5
|
/**
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
2
|
import React, { useState } from 'react';
|
3
3
|
import PropTypes from 'prop-types';
|
4
|
-
import rlog from '@riil-frontend/component-topology-utils
|
4
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
5
5
|
import SizeInput from "../SizeInput";
|
6
6
|
var NODE_SIZE_LOCK = 'NODE_SIZE_LOCK';
|
7
7
|
/**
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
import _Form from "@alifd/next/es/form";
|
5
5
|
import React, { useState } from 'react';
|
6
6
|
import PropTypes from 'prop-types';
|
7
|
-
import rlog from '@riil-frontend/component-topology-utils
|
7
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
8
8
|
import NodeSizeNumberPicker from "./NodeSizeNumberPicker";
|
9
9
|
import styles from "./NodeSizeInput.module.scss";
|
10
10
|
var FormItem = _Form.Item;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _Form from "@alifd/next/es/form";
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
3
3
|
import _Field from "@alifd/next/es/field";
|
4
|
-
import rlog from '@riil-frontend/component-topology-utils
|
4
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
5
5
|
import React, { useEffect } from 'react';
|
6
6
|
import { SPECIAL_CHARACTER_FORM_ITEM_VALIDATE_PROPS, validateSpecialCharacter } from "../../../../../../utils/SpecialCharacterValidateUtil";
|
7
7
|
import NameInput from "../../common/NameInput";
|
@@ -5,7 +5,7 @@ import _Input from "@alifd/next/es/input";
|
|
5
5
|
import _Field from "@alifd/next/es/field";
|
6
6
|
import _Collapse from "@alifd/next/es/collapse";
|
7
7
|
import React, { useState, useEffect } from 'react';
|
8
|
-
import rlog from '@riil-frontend/component-topology-utils
|
8
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
9
9
|
import AlignSetting from "../../../common/AlignSetting"; // import BatchSetNodeSize from '../../view/BatchSetNodeSize';
|
10
10
|
|
11
11
|
import { SPECIAL_CHARACTER_FORM_ITEM_VALIDATE_PROPS, validateSpecialCharacter } from "../../../../../../../utils/SpecialCharacterValidateUtil"; // import LineType from '../../../common/LineType';
|
package/es/core/editor/components/settings/propertyViews/view/hooks/useBackgroundSizeConfig.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import rlog from '@riil-frontend/component-topology-utils
|
1
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
2
2
|
import { useEffect, useState } from 'react';
|
3
3
|
import useDataModelDataPropertyChange from "../../../../../../common/hooks/ht/useDataModelDataPropertyChange";
|
4
4
|
export default (function (props) {
|
@@ -5,7 +5,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
5
|
/**
|
6
6
|
* 背景图
|
7
7
|
*/
|
8
|
-
import rlog from '@riil-frontend/component-topology-utils
|
8
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
9
9
|
export default {
|
10
10
|
// 定义 model 的初始 state
|
11
11
|
state: {
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
* 动态设置链路样式 Model
|
5
5
|
*/
|
6
6
|
// import _ from 'lodash';
|
7
|
-
import rlog from '@riil-frontend/component-topology-utils
|
7
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
8
8
|
var defaultState = {
|
9
9
|
undoable: false,
|
10
10
|
redoable: false
|
@@ -5,7 +5,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
5
|
/**
|
6
6
|
* 拓扑编辑 Model
|
7
7
|
*/
|
8
|
-
import rlog from '@riil-frontend/component-topology-utils
|
8
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
9
9
|
var initState = {
|
10
10
|
// 是否就绪
|
11
11
|
ready: false,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
|
-
import rlog from '@riil-frontend/component-topology-utils
|
2
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
3
3
|
import CiCache from "../models/cache/CiCache";
|
4
4
|
import useTopoEventListener from "./useTopoEventListener";
|
5
5
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import rlog from '@riil-frontend/component-topology-utils
|
1
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
2
2
|
import { useEffect } from 'react';
|
3
3
|
import useTopoEventListener from "./useTopoEventListener";
|
4
4
|
ht.Default.setImage('resource.subIcon.unMoniter', '/img/topo/alarmStatusIcon/未监控.svg');
|
@@ -4,7 +4,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
4
|
import { useEffect } from 'react';
|
5
5
|
import { useRequest } from 'ahooks';
|
6
6
|
import _ from 'lodash';
|
7
|
-
import rlog from '@riil-frontend/component-topology-utils
|
7
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
8
8
|
import { useCbbEventListener } from '@riil-frontend/component-riil-event-emitter';
|
9
9
|
import DictCache from "../models/cache/DictCache";
|
10
10
|
import useCiAttributeChange from "./useCiAttributeChange";
|
@@ -554,7 +554,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
554
554
|
|
555
555
|
function _bindViewResources() {
|
556
556
|
_bindViewResources = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12(data) {
|
557
|
-
var config,
|
557
|
+
var config, result, _elements;
|
558
558
|
|
559
559
|
return _regeneratorRuntime.wrap(function _callee12$(_context12) {
|
560
560
|
while (1) switch (_context12.prev = _context12.next) {
|
@@ -570,15 +570,19 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
570
570
|
return editDispatchers.fetchDataByConfig();
|
571
571
|
|
572
572
|
case 6:
|
573
|
-
|
574
|
-
|
575
|
-
saveBind(TopoEvent.DATA_TYPE_RESOURCE_COMBO, elements); // 临时放这里,仅拓扑中心有
|
573
|
+
result = _context12.sent;
|
574
|
+
console.log("fetchDataByConfig", result);
|
576
575
|
|
577
|
-
if (
|
578
|
-
|
576
|
+
if (result) {
|
577
|
+
_elements = result.elements;
|
578
|
+
saveBind(TopoEvent.DATA_TYPE_RESOURCE_COMBO, _elements); // 临时放这里,仅拓扑中心有
|
579
|
+
|
580
|
+
if (topo.linkDynamicStyleExecutor) {
|
581
|
+
topo.linkDynamicStyleExecutor.execute();
|
582
|
+
}
|
579
583
|
}
|
580
584
|
|
581
|
-
case
|
585
|
+
case 9:
|
582
586
|
case "end":
|
583
587
|
return _context12.stop();
|
584
588
|
}
|
@@ -593,7 +597,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
593
597
|
|
594
598
|
function _addLayerResources() {
|
595
599
|
_addLayerResources = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13(group, newResourceIds) {
|
596
|
-
var _yield$
|
600
|
+
var _yield$editDispatcher3, elements, newElements;
|
597
601
|
|
598
602
|
return _regeneratorRuntime.wrap(function _callee13$(_context13) {
|
599
603
|
while (1) switch (_context13.prev = _context13.next) {
|
@@ -608,8 +612,8 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
608
612
|
return editDispatchers.fetchDataByConfig();
|
609
613
|
|
610
614
|
case 5:
|
611
|
-
_yield$
|
612
|
-
elements = _yield$
|
615
|
+
_yield$editDispatcher3 = _context13.sent;
|
616
|
+
elements = _yield$editDispatcher3.elements;
|
613
617
|
// 2022-11-10 修复 添加资源后分层重新布局问题,仅布局新增资源。替换api topo.updateElements(data)
|
614
618
|
newElements = findUNExistedElements(elements);
|
615
619
|
rlog.debug("添加分层资源", {
|
@@ -1001,7 +1005,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
1001
1005
|
|
1002
1006
|
function _relateNodeIp() {
|
1003
1007
|
_relateNodeIp = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(txtValue, nodeElement) {
|
1004
|
-
var dm, isUnique, ip, configObj, configData,
|
1008
|
+
var dm, isUnique, ip, configObj, configData, _elements2, newLinkElements, newLink, newLinkGroup, createElementsData, _htTopo;
|
1005
1009
|
|
1006
1010
|
return _regeneratorRuntime.wrap(function _callee15$(_context15) {
|
1007
1011
|
while (1) switch (_context15.prev = _context15.next) {
|
@@ -1023,7 +1027,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
1023
1027
|
isUnique = isUniqueIp(dm, txtValue, nodeElement); // 获取关联链路
|
1024
1028
|
|
1025
1029
|
if (!isUnique) {
|
1026
|
-
_context15.next =
|
1030
|
+
_context15.next = 24;
|
1027
1031
|
break;
|
1028
1032
|
}
|
1029
1033
|
|
@@ -1047,8 +1051,8 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
1047
1051
|
case 16:
|
1048
1052
|
configData = _context15.sent;
|
1049
1053
|
// console.log("configData",configObj, configData);
|
1050
|
-
|
1051
|
-
newLinkElements = findUNExistedLinkElements(
|
1054
|
+
_elements2 = configData.elements;
|
1055
|
+
newLinkElements = findUNExistedLinkElements(_elements2); // console.log("configData", configData, newLinkElements);
|
1052
1056
|
|
1053
1057
|
newLink = newLinkElements.filter(function (item) {
|
1054
1058
|
return item.type === "link";
|
@@ -1063,7 +1067,8 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
1063
1067
|
nodes: [],
|
1064
1068
|
links: newLink,
|
1065
1069
|
linkGroups: newLinkGroup
|
1066
|
-
};
|
1070
|
+
};
|
1071
|
+
console.log("createElementsData", createElementsData);
|
1067
1072
|
|
1068
1073
|
if ([].concat(newLink, newLinkGroup).length > 0) {
|
1069
1074
|
_htTopo = topo.getHtTopo();
|
@@ -1071,7 +1076,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
1071
1076
|
_htTopo.createElements(createElementsData);
|
1072
1077
|
}
|
1073
1078
|
|
1074
|
-
case
|
1079
|
+
case 24:
|
1075
1080
|
case "end":
|
1076
1081
|
return _context15.stop();
|
1077
1082
|
}
|
package/es/core/models/Alarm.js
CHANGED
@@ -2,7 +2,7 @@ import _Dialog from "@alifd/next/es/dialog";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
4
4
|
import topoService from '@riil-frontend/component-topology-common/es/services/topo';
|
5
|
-
import rlog from '@riil-frontend/component-topology-utils
|
5
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
6
6
|
import { isAvailableArray } from '@riil-frontend/utils';
|
7
7
|
|
8
8
|
var Alarm = /*#__PURE__*/function () {
|
@@ -1,12 +1,13 @@
|
|
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 rlog from '@riil-frontend/component-topology-utils
|
4
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
5
5
|
import { DEFAULT_NODE_TAG_COMMON_CONFIG, DEFAULT_TIP_COMMON_CONFIG } from "../../constants/ResourceInfoDisplay";
|
6
6
|
import { isMonitoring } from "../utils/manageStatusUtil";
|
7
7
|
import AttributeFormatter from "./attributeFormatter";
|
8
8
|
import DictCache from "./cache/DictCache";
|
9
9
|
import { getNodesNameVisible as _getNodesNameVisible, updateNodesNameVisible as _updateNodesNameVisible } from "./utils/nodeNameVisibleUtil";
|
10
|
+
import { translateCisRefAttributeName } from "../../utils/ciRefAttributeTranslateUtil";
|
10
11
|
|
11
12
|
function isGraphField(item) {
|
12
13
|
return item.type === 'graph';
|
@@ -331,7 +332,7 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
331
332
|
}); // 翻译引用属性
|
332
333
|
|
333
334
|
_context.next = 4;
|
334
|
-
return
|
335
|
+
return translateCisRefAttributeName(ciDatas);
|
335
336
|
|
336
337
|
case 4:
|
337
338
|
ciDatas = _context.sent;
|
@@ -461,8 +462,10 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
461
462
|
var refCi = refCiMap[refAttrs.id];
|
462
463
|
|
463
464
|
if (refCi) {
|
465
|
+
// 引用ci名称获取规则:如果ci是树形结构(例如区域),取 tree_name_path;非树形,取display_name
|
466
|
+
var displayName = refCi.attributes.tree_name_path || refCi.attributes.display_name;
|
464
467
|
attributeMap[refAttrs.attrCode + "_object"] = {
|
465
|
-
displayName:
|
468
|
+
displayName: displayName
|
466
469
|
};
|
467
470
|
}
|
468
471
|
});
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
|
-
import rlog from '@riil-frontend/component-topology-utils
|
2
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
3
3
|
import useHtElements from "../common/hooks/useHtElements";
|
4
4
|
import ignoreList from "./selection/ignoreList";
|
5
5
|
|
@@ -2,7 +2,7 @@ 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
4
|
import { setRequest } from '@riil-frontend/component-topology-utils';
|
5
|
-
import rlog from '@riil-frontend/component-topology-utils
|
5
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
6
6
|
import { cloneDeep } from 'lodash';
|
7
7
|
import topoService from "../services/topo";
|
8
8
|
import CiTypeCache from "./cache/CiTypeCache";
|
@@ -24,7 +24,7 @@ import ElementTagTipConfig from "./tagstips/ElementTagTipConfig";
|
|
24
24
|
import SelectionModel from "./SelectionModel";
|
25
25
|
import CiCache from "./cache/CiCache"; // eslint-disable-next-line no-undef
|
26
26
|
|
27
|
-
var version = typeof "12.0.0-dev.
|
27
|
+
var version = typeof "12.0.0-dev.9" === 'string' ? "12.0.0-dev.9" : null;
|
28
28
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
29
29
|
/**
|
30
30
|
* 拓扑显示和编辑
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import rlog from '@riil-frontend/component-topology-utils
|
1
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
2
2
|
import attributeTransform from "./formatter/attributeTransform";
|
3
3
|
import metricTransform from "./formatter/metricTransform";
|
4
4
|
import ciTypeAttrTransform from "./formatter/ciTypeAttrTransform";
|
@@ -3,7 +3,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
4
4
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
5
5
|
import topoService from '@riil-frontend/component-topology-common/es/services/topo';
|
6
|
-
import rlog from '@riil-frontend/component-topology-utils
|
6
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
7
7
|
import keyBy from 'lodash/keyBy';
|
8
8
|
/**
|
9
9
|
* Ci类型属性、指标缓存
|
@@ -106,6 +106,10 @@ var CiTypeCache = /*#__PURE__*/function () {
|
|
106
106
|
this.ciTypeMap = cache;
|
107
107
|
};
|
108
108
|
|
109
|
+
_proto.getCiTypeMap = function getCiTypeMap() {
|
110
|
+
return this.ciTypeMap;
|
111
|
+
};
|
112
|
+
|
109
113
|
_proto.getCiType = function getCiType(typeCode) {
|
110
114
|
return this.ciTypeMap[typeCode];
|
111
115
|
};
|
@@ -2,7 +2,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
3
3
|
import { dictFormat } from '@riil-frontend/utils';
|
4
4
|
import * as modelService from '@riil-frontend/component-topology-common/es/services/model';
|
5
|
-
import rlog from '@riil-frontend/component-topology-utils
|
5
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
6
6
|
/**
|
7
7
|
* 数据字典缓存
|
8
8
|
*/
|
@@ -2,7 +2,7 @@ import _Message from "@alifd/next/es/message";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
4
4
|
import topoService from '@riil-frontend/component-topology-common/es/services/topo';
|
5
|
-
import rlog from '@riil-frontend/component-topology-utils
|
5
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
6
6
|
export default function (topo) {
|
7
7
|
var resourceUrlMap = {};
|
8
8
|
var currentId = null;
|
@@ -2,7 +2,7 @@ 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
4
|
import keyBy from 'lodash/keyBy';
|
5
|
-
import rlog from '@riil-frontend/component-topology-utils
|
5
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
6
6
|
import { getLinkMtCodes, getMtCodeCiTypeMap, getNodeMtCodes } from "./utils";
|
7
7
|
import { getMetricsByMonitorTemplateCodes } from "../../services/topo/tagtip";
|
8
8
|
/**
|
@@ -2,7 +2,7 @@ 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
4
|
import topoService from '@riil-frontend/component-topology-common/es/services/topo';
|
5
|
-
import rlog from '@riil-frontend/component-topology-utils
|
5
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
6
6
|
export default {
|
7
7
|
/**
|
8
8
|
* 查询告警列表,包含主资源和子组件告警
|
@@ -7,7 +7,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
7
|
/**
|
8
8
|
* 图标管理 Model
|
9
9
|
*/
|
10
|
-
import rlog from '@riil-frontend/component-topology-utils
|
10
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
11
11
|
import topoService from '@riil-frontend/component-topology-common/es/services/topo';
|
12
12
|
import { iconFactory } from '@riil-frontend/component-topology-graph';
|
13
13
|
import { getCustomIconHtId, getCustomIconIdFromHtId, getEditorIcons, transformCustomIcon2HtIcon, transformCustomIcons2HtIcons } from "../../common/icons/icon";
|
@@ -6,7 +6,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
6
|
* 动态设置链路样式 Model
|
7
7
|
*/
|
8
8
|
// import _ from 'lodash';
|
9
|
-
import rlog from '@riil-frontend/component-topology-utils
|
9
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
10
10
|
export default function (topo) {
|
11
11
|
return {
|
12
12
|
// 定义 model 的初始 state
|
@@ -5,7 +5,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
5
|
/**
|
6
6
|
* 拓扑图 Model
|
7
7
|
*/
|
8
|
-
import rlog from '@riil-frontend/component-topology-utils
|
8
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
9
9
|
export default {
|
10
10
|
// 定义 model 的初始 state
|
11
11
|
state: {
|
@@ -5,7 +5,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
5
|
/**
|
6
6
|
* 拓扑图 基本信息-概览
|
7
7
|
*/
|
8
|
-
import rlog from '@riil-frontend/component-topology-utils
|
8
|
+
import { rlog } from '@riil-frontend/component-topology-utils';
|
9
9
|
import topoService from '@riil-frontend/component-topology-common/es/services/topo';
|
10
10
|
export default {
|
11
11
|
// 定义 model 的初始 state
|