@riil-frontend/component-topology 2.15.42 → 2.15.45
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/index.css +1 -1
- package/build/index.js +2 -2
- package/es/common/components/ColorPicker/ColorPicker.js +5 -2
- package/es/components/Drawer/index.js +8 -2
- package/es/components/TemplateButton/index.module.scss +1 -0
- package/es/core/common/hooks/ht/useDataModelDataPropertyChange.js +13 -4
- package/es/core/common/icons/icon.js +1 -1
- package/es/core/common/icons/useIcons.js +1 -1
- package/es/core/components/TopoView/topoView.js +8 -18
- package/es/core/{models/createTopoApp.js → createTopoApp.js} +1 -1
- package/es/core/editor/components/BackgroundView/index.js +80 -44
- package/es/core/editor/components/BackgroundView/index.module.scss +1 -0
- package/es/core/editor/components/{iconManage/IconManage.js → CustomIconPlugin/CustomIconPlugin.js} +3 -3
- package/es/core/editor/components/{iconManage → CustomIconPlugin}/RenameDialog.js +1 -1
- package/es/core/editor/components/{iconManage → CustomIconPlugin}/UploadIconDialog.js +16 -2
- package/es/core/editor/components/{iconManage → CustomIconPlugin}/UploadIconDialog.module.scss +0 -0
- package/es/core/editor/components/{iconManage → CustomIconPlugin}/UploadIconDialog.scss +0 -0
- package/es/core/editor/components/{iconManage → CustomIconPlugin}/UploadIconDialogWrapper.js +1 -1
- package/es/core/editor/components/CustomIconPlugin/index.js +2 -0
- package/es/core/editor/components/{iconManage → CustomIconPlugin}/utils/svgToShape.js +0 -0
- package/es/core/editor/components/EditorPlugin.js +2 -2
- package/es/core/editor/components/settings/propertyViews/group/SettingTab/Setting.js +2 -0
- package/es/core/editor/components/settings/propertyViews/node/NodePropertyView.js +2 -2
- package/es/core/models/TopoApp.js +9 -5
- package/es/core/services/background.js +26 -1
- package/es/core/store/coreModels.js +32 -26
- package/es/core/store/createStore.js +1 -1
- package/es/core/test/Test.js +3 -1
- package/es/core/viewer/contextmenu/buildNodeContextmenu.js +65 -64
- package/es/createTopo.js +1 -1
- package/es/hooks/useAlarm.js +3 -6
- package/es/hooks/useResourceConfig.js +1 -1
- package/es/hooks/useTopoEdit.js +4 -8
- package/es/models/{iconManage.js → customIcon.js} +1 -1
- package/es/models/topoBizMod.js +22 -52
- package/es/models/{topoCreateMod.js → topoConfig.js} +8 -4
- package/es/models/topoMod.js +32 -69
- package/es/{components → topoCenter/components}/Link/form.js +0 -0
- package/es/{components → topoCenter/components}/Link/hook.js +0 -0
- package/es/{components → topoCenter/components}/Link/index copy.js +1 -1
- package/es/{components → topoCenter/components}/Link/index.js +1 -1
- package/es/{components → topoCenter/components}/Link/index.module.scss +0 -0
- package/es/{components → topoCenter/components}/Link/setting.js +0 -0
- package/es/topoCenter/components/TopoView.js +16 -3
- package/es/topoCenter/components/Topology.js +0 -5
- package/es/{core/editor/components → topoCenter/components/editor}/LinkDynamicStyleSettingDrawer/RuleSetting.js +0 -0
- package/es/{core/editor/components → topoCenter/components/editor}/LinkDynamicStyleSettingDrawer/RuleSetting.module.scss +0 -0
- package/es/{core/editor/components → topoCenter/components/editor}/LinkDynamicStyleSettingDrawer/index.js +0 -0
- package/es/{core/editor/components → topoCenter/components/editor}/LinkDynamicStyleSettingDrawer/rule/Rule.js +0 -0
- package/es/{core/editor/components → topoCenter/components/editor}/LinkDynamicStyleSettingDrawer/rule/Rule.module.scss +0 -0
- package/es/{core/editor/components → topoCenter/components/editor}/LinkDynamicStyleSettingDrawer/rule/RuleCondition.js +0 -0
- package/es/{core/editor/components → topoCenter/components/editor}/LinkDynamicStyleSettingDrawer/rule/RuleCondition.module.scss +0 -0
- package/es/{core/editor/components → topoCenter/components/editor}/LinkDynamicStyleSettingDrawer/rule/RuleCondition.scss +0 -0
- package/es/{core/editor/components → topoCenter/components/editor}/LinkDynamicStyleSettingDrawer/rule/RuleStyle.js +0 -0
- package/es/{core/editor/components → topoCenter/components/editor}/LinkDynamicStyleSettingDrawer/rule/RuleStyle.module.scss +0 -0
- package/es/topoCenter/components/editor/propertyViews/edge/EdgeGroupPropertyView.js +1 -1
- package/es/topoCenter/components/editor/propertyViews/edge/LinkPropertyView/Data/index.js +3 -3
- package/es/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/AddLinkDrawer.js +1 -1
- package/es/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/components/editLinkInfo.js +1 -1
- package/es/topoCenter/components/editor/propertyViews/edge/link/{LindInfoPreview.js → LinkInfoPreview.js} +1 -1
- package/es/topoCenter/components/editor/propertyViews/edge/link/{LindInfoPreview.module.scss → LinkInfoPreview.module.scss} +0 -0
- package/es/{hooks → topoCenter/hooks/viewer}/useRelateTopo.js +2 -2
- package/es/{models → topoCenter/store}/linkDynamicStyle.js +3 -3
- package/es/{models → topoCenter/store}/linkDynamicStyleConfig.js +2 -1
- package/es/{models → topoCenter/store}/linkManager.js +0 -0
- package/lib/common/components/ColorPicker/ColorPicker.js +5 -2
- package/lib/components/Drawer/index.js +7 -2
- package/lib/components/TemplateButton/index.module.scss +1 -0
- package/lib/core/common/hooks/ht/useDataModelDataPropertyChange.js +13 -4
- package/lib/core/common/icons/icon.js +1 -1
- package/lib/core/common/icons/useIcons.js +1 -1
- package/lib/core/components/TopoView/topoView.js +9 -20
- package/lib/core/{models/createTopoApp.js → createTopoApp.js} +1 -1
- package/lib/core/editor/components/BackgroundView/index.js +80 -44
- package/lib/core/editor/components/BackgroundView/index.module.scss +1 -0
- package/lib/core/editor/components/{iconManage/IconManage.js → CustomIconPlugin/CustomIconPlugin.js} +3 -3
- package/lib/core/editor/components/{iconManage → CustomIconPlugin}/RenameDialog.js +1 -1
- package/lib/core/editor/components/{iconManage → CustomIconPlugin}/UploadIconDialog.js +17 -2
- package/lib/core/editor/components/{iconManage → CustomIconPlugin}/UploadIconDialog.module.scss +0 -0
- package/lib/core/editor/components/{iconManage → CustomIconPlugin}/UploadIconDialog.scss +0 -0
- package/lib/core/editor/components/{iconManage → CustomIconPlugin}/UploadIconDialogWrapper.js +1 -1
- package/lib/core/editor/components/CustomIconPlugin/index.js +11 -0
- package/lib/core/editor/components/{iconManage → CustomIconPlugin}/utils/svgToShape.js +0 -0
- package/lib/core/editor/components/EditorPlugin.js +2 -2
- package/lib/core/editor/components/settings/propertyViews/group/SettingTab/Setting.js +2 -0
- package/lib/core/editor/components/settings/propertyViews/node/NodePropertyView.js +1 -1
- package/lib/core/models/TopoApp.js +9 -5
- package/lib/core/services/background.js +26 -1
- package/lib/core/store/coreModels.js +35 -26
- package/lib/core/store/createStore.js +2 -2
- package/lib/core/test/Test.js +3 -1
- package/lib/core/viewer/contextmenu/buildNodeContextmenu.js +65 -64
- package/lib/createTopo.js +1 -1
- package/lib/hooks/useAlarm.js +3 -6
- package/lib/hooks/useResourceConfig.js +1 -1
- package/lib/hooks/useTopoEdit.js +4 -8
- package/lib/models/{iconManage.js → customIcon.js} +1 -1
- package/lib/models/topoBizMod.js +22 -52
- package/lib/models/{topoCreateMod.js → topoConfig.js} +7 -4
- package/lib/models/topoMod.js +32 -69
- package/lib/{components → topoCenter/components}/Link/form.js +0 -0
- package/lib/{components → topoCenter/components}/Link/hook.js +0 -0
- package/lib/{components → topoCenter/components}/Link/index copy.js +1 -1
- package/lib/{components → topoCenter/components}/Link/index.js +1 -1
- package/lib/{components → topoCenter/components}/Link/index.module.scss +0 -0
- package/lib/{components → topoCenter/components}/Link/setting.js +0 -0
- package/lib/topoCenter/components/TopoView.js +19 -3
- package/lib/topoCenter/components/Topology.js +0 -7
- package/lib/{core/editor/components → topoCenter/components/editor}/LinkDynamicStyleSettingDrawer/RuleSetting.js +0 -0
- package/lib/{core/editor/components → topoCenter/components/editor}/LinkDynamicStyleSettingDrawer/RuleSetting.module.scss +0 -0
- package/lib/{core/editor/components → topoCenter/components/editor}/LinkDynamicStyleSettingDrawer/index.js +0 -0
- package/lib/{core/editor/components → topoCenter/components/editor}/LinkDynamicStyleSettingDrawer/rule/Rule.js +0 -0
- package/lib/{core/editor/components → topoCenter/components/editor}/LinkDynamicStyleSettingDrawer/rule/Rule.module.scss +0 -0
- package/lib/{core/editor/components → topoCenter/components/editor}/LinkDynamicStyleSettingDrawer/rule/RuleCondition.js +0 -0
- package/lib/{core/editor/components → topoCenter/components/editor}/LinkDynamicStyleSettingDrawer/rule/RuleCondition.module.scss +0 -0
- package/lib/{core/editor/components → topoCenter/components/editor}/LinkDynamicStyleSettingDrawer/rule/RuleCondition.scss +0 -0
- package/lib/{core/editor/components → topoCenter/components/editor}/LinkDynamicStyleSettingDrawer/rule/RuleStyle.js +0 -0
- package/lib/{core/editor/components → topoCenter/components/editor}/LinkDynamicStyleSettingDrawer/rule/RuleStyle.module.scss +0 -0
- package/lib/topoCenter/components/editor/propertyViews/edge/EdgeGroupPropertyView.js +2 -2
- package/lib/topoCenter/components/editor/propertyViews/edge/LinkPropertyView/Data/index.js +8 -8
- package/lib/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/AddLinkDrawer.js +1 -1
- package/lib/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/components/editLinkInfo.js +1 -1
- package/lib/topoCenter/components/editor/propertyViews/edge/link/{LindInfoPreview.js → LinkInfoPreview.js} +4 -4
- package/lib/topoCenter/components/editor/propertyViews/edge/link/{LindInfoPreview.module.scss → LinkInfoPreview.module.scss} +0 -0
- package/lib/{hooks → topoCenter/hooks/viewer}/useRelateTopo.js +2 -2
- package/lib/{models → topoCenter/store}/linkDynamicStyle.js +3 -3
- package/lib/{models → topoCenter/store}/linkDynamicStyleConfig.js +2 -1
- package/lib/{models → topoCenter/store}/linkManager.js +0 -0
- package/package.json +2 -2
- package/es/core/editor/LinkDynamicStyleConfig.js +0 -16
- package/es/core/store/getStoreModels.js +0 -40
- package/lib/core/editor/LinkDynamicStyleConfig.js +0 -21
- package/lib/core/store/getStoreModels.js +0 -67
|
@@ -27,6 +27,10 @@ var _indexModule = _interopRequireDefault(require("../../components/index.module
|
|
|
27
27
|
|
|
28
28
|
var _AlarmListPanel = _interopRequireDefault(require("../../core/components/AlarmListPanel"));
|
|
29
29
|
|
|
30
|
+
var _useLinkDynamicStyle = _interopRequireDefault(require("../hooks/useLinkDynamicStyle"));
|
|
31
|
+
|
|
32
|
+
var _useRelateTopo = _interopRequireDefault(require("../hooks/viewer/useRelateTopo"));
|
|
33
|
+
|
|
30
34
|
var _excluded = ["topo", "titleBar", "onEnterEdit"];
|
|
31
35
|
|
|
32
36
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -36,7 +40,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
36
40
|
/**
|
|
37
41
|
* 拓扑组件。变化无权限、无数据显示
|
|
38
42
|
*/
|
|
39
|
-
function
|
|
43
|
+
function NetworkTopologyCore(props) {
|
|
40
44
|
var topo = props.topo,
|
|
41
45
|
titleBar = props.titleBar,
|
|
42
46
|
onEnterEdit = props.onEnterEdit,
|
|
@@ -46,6 +50,12 @@ function NetworkTopology(props) {
|
|
|
46
50
|
topoId = topoState.topoId,
|
|
47
51
|
topoData = topoState.topoData,
|
|
48
52
|
topoPermission = topoState.topoPermission;
|
|
53
|
+
(0, _useLinkDynamicStyle["default"])({
|
|
54
|
+
topo: topo
|
|
55
|
+
});
|
|
56
|
+
var relateTopo = (0, _useRelateTopo["default"])({
|
|
57
|
+
topo: topo
|
|
58
|
+
});
|
|
49
59
|
|
|
50
60
|
var renderTopoView = function renderTopoView() {
|
|
51
61
|
var viewerProps = (0, _extends2["default"])({}, props.viewerProps, {
|
|
@@ -54,11 +64,17 @@ function NetworkTopology(props) {
|
|
|
54
64
|
AlarmListPanel: _AlarmListPanel["default"],
|
|
55
65
|
plugins: []
|
|
56
66
|
});
|
|
67
|
+
|
|
68
|
+
var handleEvent = function handleEvent(event) {
|
|
69
|
+
relateTopo.onEvent(event);
|
|
70
|
+
};
|
|
71
|
+
|
|
57
72
|
return /*#__PURE__*/_react["default"].createElement(_TopoView["default"], (0, _extends2["default"])({}, otherProps, {
|
|
58
73
|
topo: topo,
|
|
59
74
|
viewerProps: viewerProps,
|
|
60
75
|
titleBar: titleBar,
|
|
61
|
-
onEnterEdit: onEnterEdit
|
|
76
|
+
onEnterEdit: onEnterEdit,
|
|
77
|
+
onEvent: handleEvent
|
|
62
78
|
}));
|
|
63
79
|
};
|
|
64
80
|
|
|
@@ -97,5 +113,5 @@ function NetworkTopology(props) {
|
|
|
97
113
|
}, renderContent()));
|
|
98
114
|
}
|
|
99
115
|
|
|
100
|
-
var _default =
|
|
116
|
+
var _default = NetworkTopologyCore;
|
|
101
117
|
exports["default"] = _default;
|
|
@@ -9,8 +9,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var _componentTopologyGraph = require("@riil-frontend/component-topology-graph");
|
|
13
|
-
|
|
14
12
|
var _TopoView = _interopRequireDefault(require("./TopoView"));
|
|
15
13
|
|
|
16
14
|
var _LayerRelatedResourceList = _interopRequireDefault(require("./editor/propertyViews/LayerRelatedResourceList"));
|
|
@@ -21,8 +19,6 @@ var _EdgeGroupPropertyView = _interopRequireDefault(require("./editor/propertyVi
|
|
|
21
19
|
|
|
22
20
|
var _LinkPropertyView = _interopRequireDefault(require("./editor/propertyViews/edge/LinkPropertyView"));
|
|
23
21
|
|
|
24
|
-
var _useLinkDynamicStyle = _interopRequireDefault(require("../hooks/useLinkDynamicStyle"));
|
|
25
|
-
|
|
26
22
|
var _AddLinkDrawer = _interopRequireDefault(require("./editor/propertyViews/edge/addLinkDrawer/AddLinkDrawer"));
|
|
27
23
|
|
|
28
24
|
var _useTopoEdit = _interopRequireDefault(require("../hooks/useTopoEdit"));
|
|
@@ -34,9 +30,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
34
30
|
function NetworkTopologyFull(props) {
|
|
35
31
|
var topo = props.topo,
|
|
36
32
|
customEditorProps = props.editorProps;
|
|
37
|
-
(0, _useLinkDynamicStyle["default"])({
|
|
38
|
-
topo: topo
|
|
39
|
-
});
|
|
40
33
|
var topoEdit = (0, _useTopoEdit["default"])({
|
|
41
34
|
topo: topo
|
|
42
35
|
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -13,7 +13,7 @@ var _TabView = _interopRequireDefault(require("../../../../../core/editor/compon
|
|
|
13
13
|
|
|
14
14
|
var _EdgeGroupSetting = _interopRequireDefault(require("../../../../../core/editor/components/settings/propertyViews/edge/edgeGroup/EdgeGroupSetting"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _LinkInfoPreview = _interopRequireDefault(require("./link/LinkInfoPreview"));
|
|
17
17
|
|
|
18
18
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
19
|
|
|
@@ -37,7 +37,7 @@ function EdgeGroupPropertyView(props) {
|
|
|
37
37
|
return /*#__PURE__*/_react["default"].createElement(_TabView["default"], null, /*#__PURE__*/_react["default"].createElement(_tab["default"].Item, {
|
|
38
38
|
title: "\u6570\u636E",
|
|
39
39
|
key: "1"
|
|
40
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
40
|
+
}, /*#__PURE__*/_react["default"].createElement(_LinkInfoPreview["default"], {
|
|
41
41
|
data: aggLink,
|
|
42
42
|
topo: topo
|
|
43
43
|
})), /*#__PURE__*/_react["default"].createElement(_tab["default"].Item, {
|
|
@@ -9,9 +9,9 @@ var _button = _interopRequireDefault(require("@alifd/next/lib/button"));
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _LinkInfoPreview = _interopRequireDefault(require("../../link/LinkInfoPreview"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _LinkInfoPreviewModule = _interopRequireDefault(require("../../link/LinkInfoPreview.module.scss"));
|
|
15
15
|
|
|
16
16
|
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
|
17
17
|
|
|
@@ -35,7 +35,7 @@ function LinkDataTab(props) {
|
|
|
35
35
|
return item.id === edge.getTag();
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
var _topo$store$useModel = topo.store.useModel("
|
|
38
|
+
var _topo$store$useModel = topo.store.useModel("topoConfig"),
|
|
39
39
|
editState = _topo$store$useModel[0],
|
|
40
40
|
editDispatchers = _topo$store$useModel[1];
|
|
41
41
|
|
|
@@ -47,15 +47,15 @@ function LinkDataTab(props) {
|
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
50
|
-
className:
|
|
51
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
52
|
-
className:
|
|
50
|
+
className: _LinkInfoPreviewModule["default"].panelFullHeight
|
|
51
|
+
}, /*#__PURE__*/_react["default"].createElement(_LinkInfoPreview["default"], {
|
|
52
|
+
className: _LinkInfoPreviewModule["default"].lindInfoPreview,
|
|
53
53
|
data: link,
|
|
54
54
|
topo: topo
|
|
55
55
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
56
|
-
className:
|
|
56
|
+
className: _LinkInfoPreviewModule["default"].footer
|
|
57
57
|
}, /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
58
|
-
className:
|
|
58
|
+
className: _LinkInfoPreviewModule["default"].button,
|
|
59
59
|
type: "primary",
|
|
60
60
|
disabled: !permission.writeable,
|
|
61
61
|
onClick: openEditLinkDrawer
|
|
@@ -49,7 +49,7 @@ function AddLinkDrawer(props) {
|
|
|
49
49
|
lineData = props.lineData;
|
|
50
50
|
var store = topo.store;
|
|
51
51
|
|
|
52
|
-
var _store$useModel = store.useModel("
|
|
52
|
+
var _store$useModel = store.useModel("topoConfig"),
|
|
53
53
|
editState = _store$useModel[0],
|
|
54
54
|
editDispatchers = _store$useModel[1];
|
|
55
55
|
|
package/lib/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/components/editLinkInfo.js
CHANGED
|
@@ -102,7 +102,7 @@ function EditLinkInfo(props) {
|
|
|
102
102
|
setSource(source);
|
|
103
103
|
setTarget(target);
|
|
104
104
|
field.setValues(attributes);
|
|
105
|
-
}, [source, target, field, attributes]); // const [editState, editDispatchers] = store.useModel("
|
|
105
|
+
}, [source, target, field, attributes]); // const [editState, editDispatchers] = store.useModel("topoConfig");
|
|
106
106
|
|
|
107
107
|
var labelAlign = "top";
|
|
108
108
|
var formItemLayout = {
|
|
@@ -11,7 +11,7 @@ var _collapse = _interopRequireDefault(require("@alifd/next/lib/collapse"));
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _LinkInfoPreviewModule = _interopRequireDefault(require("./LinkInfoPreview.module.scss"));
|
|
15
15
|
|
|
16
16
|
var _attributeFormatter = require("../../../../../../core/models/attributeFormatter");
|
|
17
17
|
|
|
@@ -73,11 +73,11 @@ function LindInfoPreview(props) {
|
|
|
73
73
|
key: field.name,
|
|
74
74
|
direction: "row",
|
|
75
75
|
spacing: 8,
|
|
76
|
-
className:
|
|
76
|
+
className: _LinkInfoPreviewModule["default"].row
|
|
77
77
|
}, /*#__PURE__*/_react["default"].createElement(_box["default"], {
|
|
78
|
-
className:
|
|
78
|
+
className: _LinkInfoPreviewModule["default"].label
|
|
79
79
|
}, field.label), /*#__PURE__*/_react["default"].createElement(_box["default"], {
|
|
80
|
-
className: field.name === "use" ?
|
|
80
|
+
className: field.name === "use" ? _LinkInfoPreviewModule["default"].uselabelValue : _LinkInfoPreviewModule["default"].labelValue,
|
|
81
81
|
flex: 1
|
|
82
82
|
}, getValue(field.name)));
|
|
83
83
|
}); // <Collapse
|
|
File without changes
|
|
@@ -13,10 +13,10 @@ var _componentTopologyGraph = require("@riil-frontend/component-topology-graph")
|
|
|
13
13
|
|
|
14
14
|
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
|
15
15
|
|
|
16
|
-
var _tree = require("
|
|
16
|
+
var _tree = require("../../../utils/tree");
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* 关联拓扑:FIXME 移到拓扑中心
|
|
20
20
|
*
|
|
21
21
|
* 双击容器打开关联拓扑图
|
|
22
22
|
* 双击缩略图返回原拓扑图
|
|
@@ -16,7 +16,7 @@ var _lodash = _interopRequireDefault(require("lodash"));
|
|
|
16
16
|
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* 动态设置链路样式 Model
|
|
19
|
+
* 动态设置链路样式 Model。-- 功能已废弃
|
|
20
20
|
*/
|
|
21
21
|
var defaultConfig = {
|
|
22
22
|
networkLink: {
|
|
@@ -220,12 +220,12 @@ function _default(engine) {
|
|
|
220
220
|
|
|
221
221
|
links = [];
|
|
222
222
|
|
|
223
|
-
if (!(isEdit && rootState.
|
|
223
|
+
if (!(isEdit && rootState.topoConfig.topoData.links.length)) {
|
|
224
224
|
_context3.next = 10;
|
|
225
225
|
break;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
links = rootState.
|
|
228
|
+
links = rootState.topoConfig.topoData.links;
|
|
229
229
|
_context3.next = 13;
|
|
230
230
|
break;
|
|
231
231
|
|
|
@@ -15,7 +15,8 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
15
15
|
|
|
16
16
|
var _cloneDeep = _interopRequireDefault(require("lodash/cloneDeep"));
|
|
17
17
|
|
|
18
|
-
var ruleKey = 0;
|
|
18
|
+
var ruleKey = 0; // -- 功能已废弃
|
|
19
|
+
|
|
19
20
|
var _default = {
|
|
20
21
|
// 定义 model 的初始 state
|
|
21
22
|
state: {
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riil-frontend/component-topology",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.45",
|
|
4
4
|
"description": "拓扑",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "build-scripts start",
|
|
@@ -110,6 +110,6 @@
|
|
|
110
110
|
"access": "public"
|
|
111
111
|
},
|
|
112
112
|
"license": "MIT",
|
|
113
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@2.15.
|
|
113
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@2.15.45/build/index.html",
|
|
114
114
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
|
115
115
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
var LinkDynamicStyleConfig = /*#__PURE__*/function () {
|
|
2
|
-
function LinkDynamicStyleConfig(topo) {
|
|
3
|
-
this.topo = void 0;
|
|
4
|
-
this.topo = topo;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
var _proto = LinkDynamicStyleConfig.prototype;
|
|
8
|
-
|
|
9
|
-
_proto.getDispatchers = function getDispatchers() {
|
|
10
|
-
this.topo.store.getModelDispatchers('linkDynamicStyle');
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
return LinkDynamicStyleConfig;
|
|
14
|
-
}();
|
|
15
|
-
|
|
16
|
-
export { LinkDynamicStyleConfig as default };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import topoMod from "../../models/topoMod";
|
|
2
|
-
import iconManage from "../../models/iconManage";
|
|
3
|
-
import ciModel from "../../models/ciModel";
|
|
4
|
-
import functionAuth from "../../topoCenter/store/functionAuth";
|
|
5
|
-
import selection from "../../models/selection";
|
|
6
|
-
import topoBizMod from "../../models/topoBizMod";
|
|
7
|
-
import topoCreateMod from "../../models/topoCreateMod";
|
|
8
|
-
import topoEdit from "../../models/topoEdit";
|
|
9
|
-
import topoView from "../../models/topoView";
|
|
10
|
-
import topoAlarm from "../../models/topoAlarm";
|
|
11
|
-
import topoGraphView from "../../models/topoGraphView";
|
|
12
|
-
import background from "../../models/background";
|
|
13
|
-
import displayConfig from "../../models/displayConfig";
|
|
14
|
-
import resourceWebControllUrlSetting from "../../models/resourceWebControllUrlSetting";
|
|
15
|
-
import topoBaseInfoOverview from "../../models/topoBaseInfoOverview";
|
|
16
|
-
import linkManager from "../../models/linkManager";
|
|
17
|
-
import topoLinkMod from "../../topoCenter/store/topoLinkMod";
|
|
18
|
-
import topoCenter from "../../topoCenter/store/topoCenter";
|
|
19
|
-
import topoTreeMod from "../../topoCenter/store/topoTreeMod";
|
|
20
|
-
export default {
|
|
21
|
-
topoMod: topoMod,
|
|
22
|
-
iconManage: iconManage,
|
|
23
|
-
ciModel: ciModel,
|
|
24
|
-
functionAuth: functionAuth,
|
|
25
|
-
selection: selection,
|
|
26
|
-
resourceWebControllUrlSetting: resourceWebControllUrlSetting,
|
|
27
|
-
topoBizMod: topoBizMod,
|
|
28
|
-
topoCreateMod: topoCreateMod,
|
|
29
|
-
topoLinkMod: topoLinkMod,
|
|
30
|
-
topoView: topoView,
|
|
31
|
-
background: background,
|
|
32
|
-
topoGraphView: topoGraphView,
|
|
33
|
-
topoAlarm: topoAlarm,
|
|
34
|
-
displayConfig: displayConfig,
|
|
35
|
-
topoBaseInfoOverview: topoBaseInfoOverview,
|
|
36
|
-
topoEdit: topoEdit,
|
|
37
|
-
topoCenter: topoCenter,
|
|
38
|
-
topoTreeMod: topoTreeMod,
|
|
39
|
-
linkManager: linkManager
|
|
40
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports["default"] = void 0;
|
|
5
|
-
|
|
6
|
-
var LinkDynamicStyleConfig = /*#__PURE__*/function () {
|
|
7
|
-
function LinkDynamicStyleConfig(topo) {
|
|
8
|
-
this.topo = void 0;
|
|
9
|
-
this.topo = topo;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
var _proto = LinkDynamicStyleConfig.prototype;
|
|
13
|
-
|
|
14
|
-
_proto.getDispatchers = function getDispatchers() {
|
|
15
|
-
this.topo.store.getModelDispatchers('linkDynamicStyle');
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
return LinkDynamicStyleConfig;
|
|
19
|
-
}();
|
|
20
|
-
|
|
21
|
-
exports["default"] = LinkDynamicStyleConfig;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
exports.__esModule = true;
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _topoMod = _interopRequireDefault(require("../../models/topoMod"));
|
|
9
|
-
|
|
10
|
-
var _iconManage = _interopRequireDefault(require("../../models/iconManage"));
|
|
11
|
-
|
|
12
|
-
var _ciModel = _interopRequireDefault(require("../../models/ciModel"));
|
|
13
|
-
|
|
14
|
-
var _functionAuth = _interopRequireDefault(require("../../topoCenter/store/functionAuth"));
|
|
15
|
-
|
|
16
|
-
var _selection = _interopRequireDefault(require("../../models/selection"));
|
|
17
|
-
|
|
18
|
-
var _topoBizMod = _interopRequireDefault(require("../../models/topoBizMod"));
|
|
19
|
-
|
|
20
|
-
var _topoCreateMod = _interopRequireDefault(require("../../models/topoCreateMod"));
|
|
21
|
-
|
|
22
|
-
var _topoEdit = _interopRequireDefault(require("../../models/topoEdit"));
|
|
23
|
-
|
|
24
|
-
var _topoView = _interopRequireDefault(require("../../models/topoView"));
|
|
25
|
-
|
|
26
|
-
var _topoAlarm = _interopRequireDefault(require("../../models/topoAlarm"));
|
|
27
|
-
|
|
28
|
-
var _topoGraphView = _interopRequireDefault(require("../../models/topoGraphView"));
|
|
29
|
-
|
|
30
|
-
var _background = _interopRequireDefault(require("../../models/background"));
|
|
31
|
-
|
|
32
|
-
var _displayConfig = _interopRequireDefault(require("../../models/displayConfig"));
|
|
33
|
-
|
|
34
|
-
var _resourceWebControllUrlSetting = _interopRequireDefault(require("../../models/resourceWebControllUrlSetting"));
|
|
35
|
-
|
|
36
|
-
var _topoBaseInfoOverview = _interopRequireDefault(require("../../models/topoBaseInfoOverview"));
|
|
37
|
-
|
|
38
|
-
var _linkManager = _interopRequireDefault(require("../../models/linkManager"));
|
|
39
|
-
|
|
40
|
-
var _topoLinkMod = _interopRequireDefault(require("../../topoCenter/store/topoLinkMod"));
|
|
41
|
-
|
|
42
|
-
var _topoCenter = _interopRequireDefault(require("../../topoCenter/store/topoCenter"));
|
|
43
|
-
|
|
44
|
-
var _topoTreeMod = _interopRequireDefault(require("../../topoCenter/store/topoTreeMod"));
|
|
45
|
-
|
|
46
|
-
var _default = {
|
|
47
|
-
topoMod: _topoMod["default"],
|
|
48
|
-
iconManage: _iconManage["default"],
|
|
49
|
-
ciModel: _ciModel["default"],
|
|
50
|
-
functionAuth: _functionAuth["default"],
|
|
51
|
-
selection: _selection["default"],
|
|
52
|
-
resourceWebControllUrlSetting: _resourceWebControllUrlSetting["default"],
|
|
53
|
-
topoBizMod: _topoBizMod["default"],
|
|
54
|
-
topoCreateMod: _topoCreateMod["default"],
|
|
55
|
-
topoLinkMod: _topoLinkMod["default"],
|
|
56
|
-
topoView: _topoView["default"],
|
|
57
|
-
background: _background["default"],
|
|
58
|
-
topoGraphView: _topoGraphView["default"],
|
|
59
|
-
topoAlarm: _topoAlarm["default"],
|
|
60
|
-
displayConfig: _displayConfig["default"],
|
|
61
|
-
topoBaseInfoOverview: _topoBaseInfoOverview["default"],
|
|
62
|
-
topoEdit: _topoEdit["default"],
|
|
63
|
-
topoCenter: _topoCenter["default"],
|
|
64
|
-
topoTreeMod: _topoTreeMod["default"],
|
|
65
|
-
linkManager: _linkManager["default"]
|
|
66
|
-
};
|
|
67
|
-
exports["default"] = _default;
|