@riil-frontend/component-topology 11.0.20 → 11.0.22

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.
@@ -66,6 +66,6 @@
66
66
  line-height: 12px;
67
67
  font-size: 12px;
68
68
  margin-top: 8px;
69
- color: $color-text1-3;
69
+ color: $color-text1-4;
70
70
  outline: none;
71
71
  }
@@ -1,6 +1,7 @@
1
1
  .leftInput{
2
2
  width: 106px !important;
3
3
  margin: 0px 9px 10px 9px;
4
+ color:$color-text1-4;
4
5
  :global{
5
6
  input{
6
7
  background: url('/img/topo/editor/toolbar/对齐/水平间距_normal.svg')no-repeat 5px center !important;
@@ -17,6 +18,7 @@
17
18
  }
18
19
  .rightInput{
19
20
  width: 106px !important;
21
+ color:$color-text1-4;
20
22
  :global{
21
23
  input{
22
24
  background: url('/img/topo/editor/toolbar/对齐/垂直间距 _normal.svg')no-repeat 5px center !important;
@@ -4,6 +4,7 @@ import _Icon from "@alifd/next/es/icon";
4
4
  import _Divider from "@alifd/next/es/divider";
5
5
  import React, { useState } from 'react';
6
6
  import styles from "./AlignSetting.module.scss";
7
+ import variables from '@alifd/theme-19926/variables.js';
7
8
  var TREE_LAYOUT_OPTIONS = [{
8
9
  value: 'left',
9
10
  label: '左对齐',
@@ -83,7 +84,10 @@ var AlignTypeList = function AlignTypeList(props) {
83
84
  ,
84
85
  disabled: (item.value === 'distributeHorizontal' || item.value === 'distributeVertical') && distributionDisabled
85
86
  }, /*#__PURE__*/React.createElement(_Icon, {
86
- type: item.icon
87
+ type: item.icon,
88
+ style: {
89
+ color: variables['$color-text1-4']
90
+ }
87
91
  })),
88
92
  align: "b"
89
93
  }, item.label);
@@ -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.20" === 'string' ? "11.0.20" : null;
27
+ var version = typeof "11.0.22" === 'string' ? "11.0.22" : null;
28
28
  console.info("\u62D3\u6251\u7248\u672C: " + version);
29
29
  /**
30
30
  * 拓扑显示和编辑
@@ -2,9 +2,9 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import { request } from '@riil-frontend/component-topology-utils';
4
4
  import rlog from '@riil-frontend/component-topology-utils/es/rlog';
5
- import { formatMetric } from "../../../../../../../../../models/attributeFormatter";
6
5
  import ciTypeCache from "../../../../../../../../../models/cache/CiTypeCache";
7
6
  import { INTERFACE_METRIC_CODES } from "../constants";
7
+ import { formatMetric } from "../../../../../../../../../utils/metricUtil";
8
8
  export function queryAssetModel(_x) {
9
9
  return _queryAssetModel.apply(this, arguments);
10
10
  }
@@ -66,6 +66,6 @@
66
66
  line-height: 12px;
67
67
  font-size: 12px;
68
68
  margin-top: 8px;
69
- color: $color-text1-3;
69
+ color: $color-text1-4;
70
70
  outline: none;
71
71
  }
@@ -1,6 +1,7 @@
1
1
  .leftInput{
2
2
  width: 106px !important;
3
3
  margin: 0px 9px 10px 9px;
4
+ color:$color-text1-4;
4
5
  :global{
5
6
  input{
6
7
  background: url('/img/topo/editor/toolbar/对齐/水平间距_normal.svg')no-repeat 5px center !important;
@@ -17,6 +18,7 @@
17
18
  }
18
19
  .rightInput{
19
20
  width: 106px !important;
21
+ color:$color-text1-4;
20
22
  :global{
21
23
  input{
22
24
  background: url('/img/topo/editor/toolbar/对齐/垂直间距 _normal.svg')no-repeat 5px center !important;
@@ -17,6 +17,8 @@ var _react = _interopRequireWildcard(require("react"));
17
17
 
18
18
  var _AlignSettingModule = _interopRequireDefault(require("./AlignSetting.module.scss"));
19
19
 
20
+ var _variables = _interopRequireDefault(require("@alifd/theme-19926/variables.js"));
21
+
20
22
  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); }
21
23
 
22
24
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -100,7 +102,10 @@ var AlignTypeList = function AlignTypeList(props) {
100
102
  ,
101
103
  disabled: (item.value === 'distributeHorizontal' || item.value === 'distributeVertical') && distributionDisabled
102
104
  }, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
103
- type: item.icon
105
+ type: item.icon,
106
+ style: {
107
+ color: _variables["default"]['$color-text1-4']
108
+ }
104
109
  })),
105
110
  align: "b"
106
111
  }, item.label);
@@ -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.20" === 'string' ? "11.0.20" : null;
59
+ var version = typeof "11.0.22" === 'string' ? "11.0.22" : null;
60
60
  console.info("\u62D3\u6251\u7248\u672C: " + version);
61
61
  /**
62
62
  * 拓扑显示和编辑
@@ -20,12 +20,12 @@ var _componentTopologyUtils = require("@riil-frontend/component-topology-utils")
20
20
 
21
21
  var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
22
22
 
23
- var _attributeFormatter = require("../../../../../../../../../models/attributeFormatter");
24
-
25
23
  var _CiTypeCache = _interopRequireDefault(require("../../../../../../../../../models/cache/CiTypeCache"));
26
24
 
27
25
  var _constants = require("../constants");
28
26
 
27
+ var _metricUtil = require("../../../../../../../../../utils/metricUtil");
28
+
29
29
  function queryAssetModel(_x) {
30
30
  return _queryAssetModel.apply(this, arguments);
31
31
  }
@@ -134,7 +134,7 @@ function _queryLinkLatestMetrics() {
134
134
  return {
135
135
  code: code,
136
136
  name: metricDef.name,
137
- value: (0, _attributeFormatter.formatMetric)(value, metricDef) || '',
137
+ value: (0, _metricUtil.formatMetric)(value, metricDef) || '',
138
138
  ts: metric === null || metric === void 0 ? void 0 : metric.ts
139
139
  };
140
140
  });
@@ -181,7 +181,7 @@ function _queryLinkInterfacesLatestMetrics() {
181
181
 
182
182
  var metricDef = _CiTypeCache["default"].getMetric(linkCi.ciType || linkCi.typeCode, code);
183
183
 
184
- var formatValue = (0, _attributeFormatter.formatMetric)(value, metricDef);
184
+ var formatValue = (0, _metricUtil.formatMetric)(value, metricDef);
185
185
  res[code] = formatValue === 'undefined' ? '-' : formatValue;
186
186
  return res;
187
187
  }, {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riil-frontend/component-topology",
3
- "version": "11.0.20",
3
+ "version": "11.0.22",
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.20/build/index.html",
121
+ "homepage": "https://unpkg.com/@riil-frontend/component-topology@11.0.22/build/index.html",
122
122
  "gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
123
123
  }