@riil-frontend/component-topology 2.12.7-alpha.21 → 2.12.7-alpha.25
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 +9 -9
- package/es/core/components/AlarmListPanel/components/AlarmListItem.js +2 -3
- package/es/core/components/AlarmListPanel/index.js +16 -8
- package/es/core/editor/components/settings/common/LayoutSettings.module.scss +3 -3
- package/es/core/editor/components/settings/propertyViews/group/DataTab/hoooks/useGroupRelateResource.js +2 -2
- package/es/core/editor/components/settings/propertyViews/layer/DataTab/NodeList.js +1 -1
- package/es/core/editor/components/settings/propertyViews/layer/DataTab/RelateData.js +3 -3
- package/es/core/editor/components/settings/propertyViews/node/NodePropertyView.js +20 -5
- package/es/core/models/common/Alarm.js +89 -34
- package/es/core/models/common/mocks/index.js +39 -0
- package/es/hooks/useAlarm.js +33 -17
- package/es/hooks/useTopoEdit.js +2 -2
- package/es/models/topoAlarm.js +3 -2
- package/es/models/topoMod.js +2 -2
- package/es/topoCenter/components/editor/propertyViews/LayerRelatedResourceList.js +1 -1
- package/es/utils/htElementUtils.js +8 -7
- package/lib/core/components/AlarmListPanel/components/AlarmListItem.js +1 -2
- package/lib/core/components/AlarmListPanel/index.js +15 -7
- package/lib/core/editor/components/settings/common/LayoutSettings.module.scss +3 -3
- package/lib/core/editor/components/settings/propertyViews/group/DataTab/hoooks/useGroupRelateResource.js +1 -1
- package/lib/core/editor/components/settings/propertyViews/layer/DataTab/NodeList.js +1 -1
- package/lib/core/editor/components/settings/propertyViews/layer/DataTab/RelateData.js +3 -3
- package/lib/core/editor/components/settings/propertyViews/node/NodePropertyView.js +21 -5
- package/lib/core/models/common/Alarm.js +93 -32
- package/lib/core/models/common/mocks/index.js +44 -0
- package/lib/hooks/useAlarm.js +29 -13
- package/lib/hooks/useTopoEdit.js +1 -1
- package/lib/models/topoAlarm.js +2 -1
- package/lib/models/topoMod.js +2 -2
- package/lib/topoCenter/components/editor/propertyViews/LayerRelatedResourceList.js +1 -1
- package/lib/utils/htElementUtils.js +9 -8
- package/package.json +3 -3
|
@@ -7,7 +7,7 @@ exports.getEdges = getEdges;
|
|
|
7
7
|
exports.getElements = getElements;
|
|
8
8
|
exports.getGroupChildren = getGroupChildren;
|
|
9
9
|
exports.getGroupChildrenData = getGroupChildrenData;
|
|
10
|
-
exports.
|
|
10
|
+
exports.getGroupChildrenNodes = getGroupChildrenNodes;
|
|
11
11
|
exports.getGroupData = getGroupData;
|
|
12
12
|
exports.getGroupElementByTag = getGroupElementByTag;
|
|
13
13
|
exports.getGroupNodes = getGroupNodes;
|
|
@@ -141,16 +141,17 @@ function getGroupNodes(dataModel, groupIdOrTag) {
|
|
|
141
141
|
/**
|
|
142
142
|
* 获取分层里的节点列表
|
|
143
143
|
*
|
|
144
|
-
* @param
|
|
145
|
-
* @param layerId
|
|
144
|
+
* @param layer
|
|
146
145
|
* @return {*}
|
|
147
146
|
*/
|
|
148
147
|
|
|
149
148
|
|
|
150
|
-
function getLayerChildrenNodes(
|
|
151
|
-
|
|
152
|
-
return
|
|
153
|
-
}
|
|
149
|
+
function getLayerChildrenNodes(layer) {
|
|
150
|
+
if (!layer) {
|
|
151
|
+
return [];
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
return layer.getChildren().getArray().filter(isNode);
|
|
154
155
|
}
|
|
155
156
|
/**
|
|
156
157
|
* 获取容器里的子元素列表
|
|
@@ -178,7 +179,7 @@ function getGroupChildren(group) {
|
|
|
178
179
|
*/
|
|
179
180
|
|
|
180
181
|
|
|
181
|
-
function
|
|
182
|
+
function getGroupChildrenNodes(group) {
|
|
182
183
|
if (!group) {
|
|
183
184
|
return [];
|
|
184
185
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riil-frontend/component-topology",
|
|
3
|
-
"version": "2.12.7-alpha.
|
|
3
|
+
"version": "2.12.7-alpha.25",
|
|
4
4
|
"description": "拓扑",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "build-scripts start",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@alifd/biz-anchor": "^1.1.7",
|
|
44
44
|
"@ice/store": "^1.4.2",
|
|
45
45
|
"@riil-frontend/component-topo-icon-select": "^1.0.4",
|
|
46
|
-
"@riil-frontend/component-topology-common": "^1.0.5-alpha.
|
|
46
|
+
"@riil-frontend/component-topology-common": "^1.0.5-alpha.2",
|
|
47
47
|
"@riil-frontend/component-topology-utils": "^2.0.20-alpha.0",
|
|
48
48
|
"classnames": "^2.2.3",
|
|
49
49
|
"prop-types": "^15.5.8",
|
|
@@ -110,6 +110,6 @@
|
|
|
110
110
|
"access": "public"
|
|
111
111
|
},
|
|
112
112
|
"license": "MIT",
|
|
113
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@2.12.7-alpha.
|
|
113
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@2.12.7-alpha.25/build/index.html",
|
|
114
114
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
|
115
115
|
}
|