@riil-frontend/component-topology 10.0.46 → 10.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/1.js +2 -2
- package/build/2.js +1 -1
- package/build/index.css +1 -1
- package/build/index.js +18 -18
- package/es/components/ColorPanel/index.js +1 -1
- package/es/components/VerticalIconTab/VerticalIconTab.js +3 -1
- package/es/core/components/AlarmListPanel/components/index.module.scss +12 -2
- package/es/core/components/AlarmListPanel/index.module.scss +3 -3
- package/es/core/components/DisplaySettingDrawer/LineExpandAllRadioGroup.js +9 -12
- package/es/core/components/titlebar/TitleBar.module.scss +2 -1
- package/es/core/editor/components/Toolbar/widgets/FontColorButton.module.scss +4 -4
- package/es/core/editor/components/Toolbar/widgets/FontStyleButton.js +4 -3
- package/es/core/editor/components/Toolbar/widgets/Layout/components/LayoutSettings.module.scss +2 -1
- package/es/core/editor/components/Toolbar/widgets/WidgetBox.module.scss +5 -4
- package/es/core/editor/components/settings/propertyViews/node/data/Data.js +25 -23
- package/es/core/models/TopoApp.js +1 -1
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/BlockBox.module.scss +2 -2
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/index.module.scss +2 -1
- package/es/core/viewer/components/plugins/ResourceDetail/index.module.scss +1 -1
- package/es/style.js +1 -0
- package/lib/components/ColorPanel/index.js +1 -1
- package/lib/components/VerticalIconTab/VerticalIconTab.js +4 -1
- package/lib/core/components/AlarmListPanel/components/index.module.scss +12 -2
- package/lib/core/components/AlarmListPanel/index.module.scss +3 -3
- package/lib/core/components/DisplaySettingDrawer/LineExpandAllRadioGroup.js +10 -12
- package/lib/core/components/titlebar/TitleBar.module.scss +2 -1
- package/lib/core/editor/components/Toolbar/widgets/FontColorButton.module.scss +4 -4
- package/lib/core/editor/components/Toolbar/widgets/FontStyleButton.js +5 -3
- package/lib/core/editor/components/Toolbar/widgets/Layout/components/LayoutSettings.module.scss +2 -1
- package/lib/core/editor/components/Toolbar/widgets/WidgetBox.module.scss +5 -4
- package/lib/core/editor/components/settings/propertyViews/node/data/Data.js +25 -22
- package/lib/core/models/TopoApp.js +1 -1
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/BlockBox.module.scss +2 -2
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/index.module.scss +2 -1
- package/lib/core/viewer/components/plugins/ResourceDetail/index.module.scss +1 -1
- package/lib/style.js +1 -0
- package/package.json +2 -2
@@ -7,6 +7,8 @@ exports["default"] = void 0;
|
|
7
7
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
9
9
|
|
10
|
+
var _variables = _interopRequireDefault(require("@alifd/theme-19926/variables.js"));
|
11
|
+
|
10
12
|
var _htElementUtils = require("../../../../../utils/htElementUtils");
|
11
13
|
|
12
14
|
var _DropdownMenu = _interopRequireDefault(require("./components/DropdownMenu"));
|
@@ -86,8 +88,8 @@ function FontStyleButton(props) {
|
|
86
88
|
setDisabled(getDisabled(fieldDisabled));
|
87
89
|
}, [fieldDisabled]);
|
88
90
|
/**
|
89
|
-
*
|
90
|
-
* @param {Array} selectedKeys
|
91
|
+
*
|
92
|
+
* @param {Array} selectedKeys
|
91
93
|
*/
|
92
94
|
|
93
95
|
var handleSelect = function handleSelect(selectedKeys, item, extra) {
|
@@ -131,7 +133,7 @@ function FontStyleButton(props) {
|
|
131
133
|
alt: ""
|
132
134
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
133
135
|
style: fieldDisabled[item.key] ? {} : {
|
134
|
-
color: '
|
136
|
+
color: _variables["default"]['$color-text1-4']
|
135
137
|
}
|
136
138
|
}, item.label)),
|
137
139
|
align: "r",
|
@@ -1,3 +1,4 @@
|
|
1
|
+
@import '~@alifd/next/variables.scss';
|
1
2
|
.container {
|
2
3
|
margin: 0 6px;
|
3
4
|
display: flex;
|
@@ -39,8 +40,8 @@
|
|
39
40
|
margin-top: 4px;
|
40
41
|
font-size: 10px;
|
41
42
|
font-family: Helvetica;
|
42
|
-
color
|
43
|
-
line-height:
|
43
|
+
color:$color-text1-6;
|
44
|
+
line-height: 14px;
|
44
45
|
text-align: center;
|
45
46
|
}
|
46
47
|
|
@@ -49,7 +50,7 @@
|
|
49
50
|
}
|
50
51
|
|
51
52
|
.normalLabel {
|
52
|
-
color:
|
53
|
+
color: $color-text1-6;
|
53
54
|
}
|
54
55
|
|
55
56
|
.ButtonBox {
|
@@ -71,4 +72,4 @@
|
|
71
72
|
cursor: not-allowed;
|
72
73
|
}
|
73
74
|
|
74
|
-
}
|
75
|
+
}
|
@@ -21,6 +21,8 @@ var _select = _interopRequireDefault(require("@alifd/next/lib/select"));
|
|
21
21
|
|
22
22
|
var _react = _interopRequireWildcard(require("react"));
|
23
23
|
|
24
|
+
var _variables = _interopRequireDefault(require("@alifd/theme-19926/variables.js"));
|
25
|
+
|
24
26
|
var _textModule = _interopRequireDefault(require("../../../../../../common/text.module.scss"));
|
25
27
|
|
26
28
|
var _NodeRelateResourceButton = _interopRequireDefault(require("./NodeRelateResourceButton"));
|
@@ -40,10 +42,10 @@ var CollapsePanel = _collapse["default"].Panel;
|
|
40
42
|
|
41
43
|
function parseValues(values) {
|
42
44
|
return (0, _extends2["default"])({}, values, {
|
43
|
-
|
44
|
-
|
45
|
+
'attrObject.customName': values['attrObject.customName'] || values['attrObject.name'],
|
46
|
+
'attrObject.bindTopo': values['attrObject.bindTopo'] || '',
|
45
47
|
// 解决切换节点时关联拓扑选项未重置
|
46
|
-
|
48
|
+
'attrObject.bindIp': values['attrObject.bindIp'] || ''
|
47
49
|
});
|
48
50
|
}
|
49
51
|
|
@@ -52,11 +54,11 @@ function getBindType(values) {
|
|
52
54
|
return values.attrObject.bindType;
|
53
55
|
}
|
54
56
|
|
55
|
-
if (values.tag && !values.tag.startsWith(
|
56
|
-
return
|
57
|
+
if (values.tag && !values.tag.startsWith('ip:')) {
|
58
|
+
return 'resource';
|
57
59
|
}
|
58
60
|
|
59
|
-
return
|
61
|
+
return 'none';
|
60
62
|
}
|
61
63
|
|
62
64
|
function Data(props) {
|
@@ -90,11 +92,11 @@ function Data(props) {
|
|
90
92
|
var setBindType = function setBindType(newBindType) {
|
91
93
|
topo.historyManager.beginTransaction();
|
92
94
|
|
93
|
-
_onChange(
|
95
|
+
_onChange('attrObject.bindType', newBindType);
|
94
96
|
|
95
97
|
topo.historyManager.endTransaction();
|
96
98
|
|
97
|
-
if (newBindType ===
|
99
|
+
if (newBindType === 'topo') {//
|
98
100
|
}
|
99
101
|
};
|
100
102
|
|
@@ -106,8 +108,8 @@ function Data(props) {
|
|
106
108
|
case 0:
|
107
109
|
topo.historyManager.beginTransaction(); // 设置名称为拓扑名称,清空自定义名称
|
108
110
|
|
109
|
-
node.a(
|
110
|
-
node.a(
|
111
|
+
node.a('name', data.label);
|
112
|
+
node.a('customName', null);
|
111
113
|
_context.next = 5;
|
112
114
|
return topoEditApi.deleteExLink(node);
|
113
115
|
|
@@ -129,9 +131,9 @@ function Data(props) {
|
|
129
131
|
|
130
132
|
var RelateTopoTree = editorProps === null || editorProps === void 0 ? void 0 : editorProps.relateTopoTree;
|
131
133
|
return /*#__PURE__*/_react["default"].createElement(_collapse["default"], {
|
132
|
-
defaultExpandedKeys: [
|
134
|
+
defaultExpandedKeys: ['相关资源'],
|
133
135
|
style: {
|
134
|
-
border:
|
136
|
+
border: 'none'
|
135
137
|
}
|
136
138
|
}, /*#__PURE__*/_react["default"].createElement(CollapsePanel, {
|
137
139
|
key: "\u76F8\u5173\u8D44\u6E90",
|
@@ -139,13 +141,13 @@ function Data(props) {
|
|
139
141
|
}, /*#__PURE__*/_react["default"].createElement(_form["default"], {
|
140
142
|
field: field,
|
141
143
|
labelAlign: "top"
|
142
|
-
}, (!values.tag || bindType ===
|
144
|
+
}, (!values.tag || bindType === 'ip') && /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
|
143
145
|
label: "\u5173\u8054\u7C7B\u578B"
|
144
146
|
}, /*#__PURE__*/_react["default"].createElement(_select["default"], {
|
145
147
|
name: "bindType",
|
146
148
|
value: bindType,
|
147
149
|
style: {
|
148
|
-
width:
|
150
|
+
width: '100%',
|
149
151
|
marginRight: 8
|
150
152
|
},
|
151
153
|
onChange: setBindType
|
@@ -157,28 +159,29 @@ function Data(props) {
|
|
157
159
|
value: "ip"
|
158
160
|
}, "\u5173\u8054IP"), RelateTopoTree && /*#__PURE__*/_react["default"].createElement(Option, {
|
159
161
|
value: "topo"
|
160
|
-
}, "\u5173\u8054\u62D3\u6251"))), bindType ===
|
162
|
+
}, "\u5173\u8054\u62D3\u6251"))), bindType === 'resource' && /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
|
161
163
|
label: "\u5173\u8054\u8D44\u6E90"
|
162
164
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
163
165
|
style: {
|
164
|
-
display:
|
166
|
+
display: 'flex'
|
165
167
|
}
|
166
168
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
167
169
|
className: _textModule["default"].textEllipsis,
|
168
170
|
style: {
|
169
171
|
flex: 1,
|
170
172
|
paddingRight: 16,
|
171
|
-
color: "
|
172
|
-
|
173
|
+
color: _variables["default"]['$color-text1-4'],
|
174
|
+
// color: '#4D6277',
|
175
|
+
lineHeight: '20px'
|
173
176
|
},
|
174
177
|
title: values.tag ? values.name : null
|
175
|
-
}, values.tag ? values.name :
|
178
|
+
}, values.tag ? values.name : '—'), /*#__PURE__*/_react["default"].createElement(_NodeRelateResourceButton["default"], {
|
176
179
|
nodeElement: node,
|
177
180
|
node: values,
|
178
181
|
topo: topo,
|
179
182
|
topoEditApi: topoEditApi,
|
180
183
|
nodeBindResourceDrawerComponent: editorProps.nodeBindResourceDrawerComponent
|
181
|
-
}))), bindType ===
|
184
|
+
}))), bindType === 'ip' &&
|
182
185
|
/*#__PURE__*/
|
183
186
|
// <Form.Item
|
184
187
|
// label="关联IP"
|
@@ -200,13 +203,13 @@ function Data(props) {
|
|
200
203
|
onChange: _onChange,
|
201
204
|
maxLength: 128
|
202
205
|
}) // </Form.Item>
|
203
|
-
, bindType ===
|
206
|
+
, bindType === 'topo' && RelateTopoTree && /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
|
204
207
|
label: "\u5173\u8054\u62D3\u6251"
|
205
208
|
}, /*#__PURE__*/_react["default"].createElement(RelateTopoTree, {
|
206
209
|
name: "attrObject.bindTopo",
|
207
210
|
topo: topo,
|
208
211
|
onChange: handleBindTopoChange
|
209
|
-
})), (editorProps === null || editorProps === void 0 ? void 0 : editorProps.topoType) ===
|
212
|
+
})), (editorProps === null || editorProps === void 0 ? void 0 : editorProps.topoType) === 'cmpTopo' && node.getTag() && /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
|
210
213
|
label: "\u6240\u5C5E\u5E73\u53F0"
|
211
214
|
}, /*#__PURE__*/_react["default"].createElement(_PlatformDisplay["default"], props)))));
|
212
215
|
}
|
@@ -56,7 +56,7 @@ var _SelectionModel = _interopRequireDefault(require("./SelectionModel"));
|
|
56
56
|
var _CiCache = _interopRequireDefault(require("./cache/CiCache"));
|
57
57
|
|
58
58
|
// eslint-disable-next-line no-undef
|
59
|
-
var version = typeof "10.0.
|
59
|
+
var version = typeof "10.0.48" === 'string' ? "10.0.48" : null;
|
60
60
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
61
61
|
/**
|
62
62
|
* 拓扑显示和编辑
|
@@ -21,13 +21,14 @@
|
|
21
21
|
line-height: 22px;
|
22
22
|
.label {
|
23
23
|
white-space: nowrap;
|
24
|
+
color:$color-text1-6;
|
24
25
|
}
|
25
26
|
.content {
|
26
27
|
flex: 1;
|
27
28
|
overflow: hidden;
|
28
29
|
text-overflow: ellipsis;
|
29
30
|
white-space: nowrap;
|
30
|
-
color:
|
31
|
+
color: $color-text1-4;
|
31
32
|
.link {
|
32
33
|
width: 100%;
|
33
34
|
display: block;
|
package/lib/style.js
CHANGED
@@ -31,6 +31,7 @@ require('@riil-frontend/component-common-res-list/lib/style');
|
|
31
31
|
require('@alifd/next/lib/balloon/style');
|
32
32
|
require('@alifd/next/lib/menu/style');
|
33
33
|
require('@alifd/next/lib/dropdown/style');
|
34
|
+
|
34
35
|
require('@alifd/next/lib/range/style');
|
35
36
|
require('@alifd/next/lib/radio/style');
|
36
37
|
require('@alifd/next/lib/tag/style');
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@riil-frontend/component-topology",
|
3
|
-
"version": "10.0.
|
3
|
+
"version": "10.0.48",
|
4
4
|
"description": "拓扑",
|
5
5
|
"scripts": {
|
6
6
|
"start": "build-scripts start",
|
@@ -116,6 +116,6 @@
|
|
116
116
|
"access": "public"
|
117
117
|
},
|
118
118
|
"license": "MIT",
|
119
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@10.0.
|
119
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@10.0.48/build/index.html",
|
120
120
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
121
121
|
}
|