@riil-frontend/component-topology 11.0.5 → 11.0.6

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.
@@ -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 "11.0.5" === 'string' ? "11.0.5" : null;
27
+ var version = typeof "11.0.6" === 'string' ? "11.0.6" : null;
28
28
  console.info("\u62D3\u6251\u7248\u672C: " + version);
29
29
  /**
30
30
  * 拓扑显示和编辑
@@ -115,7 +115,18 @@ var ElementTagTipConfig = /*#__PURE__*/function () {
115
115
  // ]
116
116
  };
117
117
 
118
- _proto.getFiedldMapByType = function getFiedldMapByType(ciType, type) {
118
+ _proto.getFiedldMapByMtCodes = function getFiedldMapByMtCodes(mtCodes, type) {
119
+ var _this = this;
120
+
121
+ var map = {};
122
+ mtCodes.forEach(function (mtCode) {
123
+ var ciType = _this.mtCiTypeMap[mtCode];
124
+ map[mtCode] = _this.getFiedldMapByType(ciType, type, mtCode);
125
+ });
126
+ return map;
127
+ };
128
+
129
+ _proto.getFiedldMapByType = function getFiedldMapByType(ciType, type, mtCode) {
119
130
  var attributes = this.topo.ciTyeCache.getCiType(ciType).attributes.filter(function (attr) {
120
131
  return !!attr.userVisible;
121
132
  });
@@ -148,17 +159,6 @@ var ElementTagTipConfig = /*#__PURE__*/function () {
148
159
  }));
149
160
  };
150
161
 
151
- _proto.getFiedldMapByMtCodes = function getFiedldMapByMtCodes(mtCodes, type) {
152
- var _this = this;
153
-
154
- var map = {};
155
- mtCodes.forEach(function (mtCode) {
156
- var ciType = _this.mtCiTypeMap[mtCode];
157
- map[mtCode] = _this.getFiedldMapByType(ciType, type);
158
- });
159
- return map;
160
- };
161
-
162
162
  _proto.getMtMetricModels = function getMtMetricModels(mtCode) {
163
163
  var _this2 = this;
164
164
 
@@ -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 "11.0.5" === 'string' ? "11.0.5" : null;
59
+ var version = typeof "11.0.6" === 'string' ? "11.0.6" : null;
60
60
  console.info("\u62D3\u6251\u7248\u672C: " + version);
61
61
  /**
62
62
  * 拓扑显示和编辑
@@ -128,7 +128,18 @@ var ElementTagTipConfig = /*#__PURE__*/function () {
128
128
  // ]
129
129
  };
130
130
 
131
- _proto.getFiedldMapByType = function getFiedldMapByType(ciType, type) {
131
+ _proto.getFiedldMapByMtCodes = function getFiedldMapByMtCodes(mtCodes, type) {
132
+ var _this = this;
133
+
134
+ var map = {};
135
+ mtCodes.forEach(function (mtCode) {
136
+ var ciType = _this.mtCiTypeMap[mtCode];
137
+ map[mtCode] = _this.getFiedldMapByType(ciType, type, mtCode);
138
+ });
139
+ return map;
140
+ };
141
+
142
+ _proto.getFiedldMapByType = function getFiedldMapByType(ciType, type, mtCode) {
132
143
  var attributes = this.topo.ciTyeCache.getCiType(ciType).attributes.filter(function (attr) {
133
144
  return !!attr.userVisible;
134
145
  });
@@ -161,17 +172,6 @@ var ElementTagTipConfig = /*#__PURE__*/function () {
161
172
  }));
162
173
  };
163
174
 
164
- _proto.getFiedldMapByMtCodes = function getFiedldMapByMtCodes(mtCodes, type) {
165
- var _this = this;
166
-
167
- var map = {};
168
- mtCodes.forEach(function (mtCode) {
169
- var ciType = _this.mtCiTypeMap[mtCode];
170
- map[mtCode] = _this.getFiedldMapByType(ciType, type);
171
- });
172
- return map;
173
- };
174
-
175
175
  _proto.getMtMetricModels = function getMtMetricModels(mtCode) {
176
176
  var _this2 = this;
177
177
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riil-frontend/component-topology",
3
- "version": "11.0.5",
3
+ "version": "11.0.6",
4
4
  "description": "拓扑",
5
5
  "scripts": {
6
6
  "start": "build-scripts start",
@@ -118,6 +118,6 @@
118
118
  "access": "public"
119
119
  },
120
120
  "license": "MIT",
121
- "homepage": "https://unpkg.com/@riil-frontend/component-topology@11.0.5/build/index.html",
121
+ "homepage": "https://unpkg.com/@riil-frontend/component-topology@11.0.6/build/index.html",
122
122
  "gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
123
123
  }