@riil-frontend/component-topology 10.0.11 → 10.0.15

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.
Files changed (23) hide show
  1. package/build/1.js +2 -2
  2. package/build/2.js +1 -1
  3. package/build/index.css +1 -1
  4. package/build/index.js +18 -18
  5. package/es/core/editor/components/Toolbar/widgets/EdgeTypeButton/EdgeType.js +1 -1
  6. package/es/core/editor/components/Toolbar/widgets/FontSizeWidget.js +1 -1
  7. package/es/core/editor/components/Toolbar/widgets/IconSelect/IconSelect.js +1 -1
  8. package/es/core/editor/components/Toolbar/widgets/IconSelect/index.module.scss +12 -11
  9. package/es/core/editor/components/settings/common/AlignSetting/AlignTypeList.js +13 -16
  10. package/es/core/editor/components/settings/propertyViews/node/NodeIconSelect.js +2 -1
  11. package/es/core/editor/components/settings/propertyViews/node/Setting/BasicSetting.js +8 -2
  12. package/es/core/editor/utils/edgeTypeStyleUtil.js +0 -1
  13. package/es/core/models/TopoApp.js +1 -1
  14. package/lib/core/editor/components/Toolbar/widgets/EdgeTypeButton/EdgeType.js +1 -1
  15. package/lib/core/editor/components/Toolbar/widgets/FontSizeWidget.js +1 -1
  16. package/lib/core/editor/components/Toolbar/widgets/IconSelect/IconSelect.js +1 -1
  17. package/lib/core/editor/components/Toolbar/widgets/IconSelect/index.module.scss +12 -11
  18. package/lib/core/editor/components/settings/common/AlignSetting/AlignTypeList.js +13 -17
  19. package/lib/core/editor/components/settings/propertyViews/node/NodeIconSelect.js +1 -0
  20. package/lib/core/editor/components/settings/propertyViews/node/Setting/BasicSetting.js +8 -2
  21. package/lib/core/editor/utils/edgeTypeStyleUtil.js +0 -1
  22. package/lib/core/models/TopoApp.js +1 -1
  23. package/package.json +2 -2
@@ -82,7 +82,7 @@ function getValuesByEdges(topo) {
82
82
  edgeValues.push({
83
83
  baseAgreement: false,
84
84
  //,
85
- lineButton: edge.a('edge.type.name') || edge.s('edge.type'),
85
+ lineButton: edge.s('edge.type'),
86
86
  startPoint: getStartPoint(edge),
87
87
  endPoint: getEndPoint(edge),
88
88
  lineMold: edge.a('lineMode') || 'solidLine'
@@ -7,7 +7,7 @@ function FontSizeSelect(props) {
7
7
  var value = props.value,
8
8
  disabled = props.disabled,
9
9
  onChange = props.onChange;
10
- var items = [9, 10, 11, 12, 14, 16, 18, 20, 24, 30, 36];
10
+ var items = [12, 14, 16, 18, 20, 24, 30, 36, 48, 60, 80];
11
11
  return /*#__PURE__*/React.createElement(DropdownMenu, {
12
12
  value: "" + (value || ''),
13
13
  valueRender: function valueRender(val) {
@@ -93,7 +93,7 @@ var TopoIconSelect = function TopoIconSelect(props, ref) {
93
93
  return /*#__PURE__*/React.createElement("div", {
94
94
  className: styles.TopoIconSelect
95
95
  }, /*#__PURE__*/React.createElement(_Select, {
96
- placeholder: "\u8BF7\u9009\u62E9",
96
+ placeholder: "\u8BF7\u9009\u62E92",
97
97
  visible: visible,
98
98
  className: styles.iconSelect,
99
99
  onVisibleChange: onVisibleChange,
@@ -10,8 +10,9 @@
10
10
  }
11
11
 
12
12
  .iconCollapse {
13
- width: 240px;
14
- max-height: 218px;
13
+ width: 292px;
14
+ height: 365px;
15
+ max-height: 365px;
15
16
  overflow-y: auto;
16
17
  border: none;
17
18
 
@@ -55,9 +56,9 @@
55
56
 
56
57
  .iconImgWrapper {
57
58
  display: inline-block;
58
- width: 18px;
59
- height: 18px;
60
- line-height: 18px;
59
+ width: 32px;
60
+ height: 32px;
61
+ line-height: 32px;
61
62
  text-align: center;
62
63
  // vertical-align: middle;
63
64
  }
@@ -66,8 +67,8 @@
66
67
  display: inline-block;
67
68
  width: auto;
68
69
  height: auto;
69
- max-width: 18px;
70
- max-height: 18px;
70
+ max-width: 32px;
71
+ max-height: 32px;
71
72
  vertical-align: middle;
72
73
  }
73
74
 
@@ -102,7 +103,7 @@
102
103
 
103
104
 
104
105
  .iconli {
105
- width: 52px;
106
+ width: 64px;
106
107
  height: 68px;
107
108
  text-align: center;
108
109
  //border: 2px solid #FFF;
@@ -114,7 +115,7 @@
114
115
  height: 32px;
115
116
  line-height: 32px;
116
117
  text-align: center;
117
- margin: 5px 8px 5px 8px;
118
+ margin: 5px 16px 5px 16px;
118
119
  }
119
120
 
120
121
  .iconImg {
@@ -127,8 +128,8 @@
127
128
  }
128
129
 
129
130
  .icontitle {
130
- width: 48px;
131
- max-width: 50px;
131
+ width: 64px;
132
+ max-width: 64px;
132
133
  text-align: center;
133
134
  font-size: 12px;
134
135
  -webkit-text-size-adjust: none;
@@ -1,4 +1,3 @@
1
- import _Balloon from "@alifd/next/es/balloon";
2
1
  import _Button from "@alifd/next/es/button";
3
2
  import _Icon from "@alifd/next/es/icon";
4
3
  import _Divider from "@alifd/next/es/divider";
@@ -62,21 +61,19 @@ var AlignTypeList = function AlignTypeList(props) {
62
61
  return item.value === 'divide' ? /*#__PURE__*/React.createElement(_Divider, {
63
62
  key: index,
64
63
  direction: "ver"
65
- }) : /*#__PURE__*/React.createElement(_Balloon.Tooltip, {
66
- trigger: /*#__PURE__*/React.createElement(_Button, {
67
- key: index,
68
- className: "" + styles.redioBtn,
69
- text: true,
70
- onClick: function onClick() {
71
- handleChange(item);
72
- } // eslint-disable-next-line no-unneeded-ternary
73
- ,
74
- disabled: (item.value === 'distributeHorizontal' || item.value === 'distributeVertical') && distributionDisabled
75
- }, /*#__PURE__*/React.createElement(_Icon, {
76
- type: item.icon
77
- })),
78
- align: "b"
79
- }, item.label);
64
+ }) : /*#__PURE__*/React.createElement(_Button, {
65
+ key: index,
66
+ className: "" + styles.redioBtn,
67
+ text: true,
68
+ onClick: function onClick() {
69
+ handleChange(item);
70
+ },
71
+ title: item.label // eslint-disable-next-line no-unneeded-ternary
72
+ ,
73
+ disabled: (item.value === 'distributeHorizontal' || item.value === 'distributeVertical') && distributionDisabled
74
+ }, /*#__PURE__*/React.createElement(_Icon, {
75
+ type: item.icon
76
+ }));
80
77
  }));
81
78
  };
82
79
 
@@ -1,5 +1,6 @@
1
1
  import React, { forwardRef, useImperativeHandle } from 'react';
2
- import IconSelect from '@riil-frontend/component-topo-icon-select';
2
+ import IconSelect from '@riil-frontend/component-topo-icon-select'; // import IconSelect from '@/core/editor/components/Toolbar/widgets/IconSelect;
3
+
3
4
  import { useNodeIcons } from "../../../../../common/icons/useIcons";
4
5
 
5
6
  function NodeIconSelect(props, ref) {
@@ -38,12 +38,18 @@ export default function BasicSetting(props) {
38
38
  field: field,
39
39
  labelAlign: "top",
40
40
  style: {
41
- margin: '12px 16px 0 32px'
41
+ margin: "12px 16px 0 32px"
42
42
  }
43
43
  }, /*#__PURE__*/React.createElement(_Form.Item, {
44
44
  label: "\u56FE\u7247\u540D\u79F0"
45
45
  }, /*#__PURE__*/React.createElement(NameInput, {
46
46
  name: "attrObject.customName",
47
47
  topo: topo
48
- })));
48
+ }), /*#__PURE__*/React.createElement("span", {
49
+ style: {
50
+ color: "#638DB7",
51
+ marginTop: '2px',
52
+ display: 'block'
53
+ }
54
+ }, "\u70B9\u51FB\u56DE\u8F66\u952E\u53EF\u624B\u52A8\u6298\u884C")));
49
55
  }
@@ -129,6 +129,5 @@ export function setEdgesType(edges, type, topo) {
129
129
  htTopo.setGraphLinear(edge, {
130
130
  type: type
131
131
  });
132
- edge.a('edge.type.name', type);
133
132
  });
134
133
  }
@@ -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 "10.0.11" === 'string' ? "10.0.11" : null;
27
+ var version = typeof "10.0.15" === 'string' ? "10.0.15" : null;
28
28
  console.info("\u62D3\u6251\u7248\u672C: " + version);
29
29
  /**
30
30
  * 拓扑显示和编辑
@@ -100,7 +100,7 @@ function getValuesByEdges(topo) {
100
100
  edgeValues.push({
101
101
  baseAgreement: false,
102
102
  //,
103
- lineButton: edge.a('edge.type.name') || edge.s('edge.type'),
103
+ lineButton: edge.s('edge.type'),
104
104
  startPoint: getStartPoint(edge),
105
105
  endPoint: getEndPoint(edge),
106
106
  lineMold: edge.a('lineMode') || 'solidLine'
@@ -21,7 +21,7 @@ function FontSizeSelect(props) {
21
21
  var value = props.value,
22
22
  disabled = props.disabled,
23
23
  onChange = props.onChange;
24
- var items = [9, 10, 11, 12, 14, 16, 18, 20, 24, 30, 36];
24
+ var items = [12, 14, 16, 18, 20, 24, 30, 36, 48, 60, 80];
25
25
  return /*#__PURE__*/_react["default"].createElement(_DropdownMenu["default"], {
26
26
  value: "" + (value || ''),
27
27
  valueRender: function valueRender(val) {
@@ -108,7 +108,7 @@ var TopoIconSelect = function TopoIconSelect(props, ref) {
108
108
  return /*#__PURE__*/_react["default"].createElement("div", {
109
109
  className: _indexModule["default"].TopoIconSelect
110
110
  }, /*#__PURE__*/_react["default"].createElement(_select["default"], {
111
- placeholder: "\u8BF7\u9009\u62E9",
111
+ placeholder: "\u8BF7\u9009\u62E92",
112
112
  visible: visible,
113
113
  className: _indexModule["default"].iconSelect,
114
114
  onVisibleChange: onVisibleChange,
@@ -10,8 +10,9 @@
10
10
  }
11
11
 
12
12
  .iconCollapse {
13
- width: 240px;
14
- max-height: 218px;
13
+ width: 292px;
14
+ height: 365px;
15
+ max-height: 365px;
15
16
  overflow-y: auto;
16
17
  border: none;
17
18
 
@@ -55,9 +56,9 @@
55
56
 
56
57
  .iconImgWrapper {
57
58
  display: inline-block;
58
- width: 18px;
59
- height: 18px;
60
- line-height: 18px;
59
+ width: 32px;
60
+ height: 32px;
61
+ line-height: 32px;
61
62
  text-align: center;
62
63
  // vertical-align: middle;
63
64
  }
@@ -66,8 +67,8 @@
66
67
  display: inline-block;
67
68
  width: auto;
68
69
  height: auto;
69
- max-width: 18px;
70
- max-height: 18px;
70
+ max-width: 32px;
71
+ max-height: 32px;
71
72
  vertical-align: middle;
72
73
  }
73
74
 
@@ -102,7 +103,7 @@
102
103
 
103
104
 
104
105
  .iconli {
105
- width: 52px;
106
+ width: 64px;
106
107
  height: 68px;
107
108
  text-align: center;
108
109
  //border: 2px solid #FFF;
@@ -114,7 +115,7 @@
114
115
  height: 32px;
115
116
  line-height: 32px;
116
117
  text-align: center;
117
- margin: 5px 8px 5px 8px;
118
+ margin: 5px 16px 5px 16px;
118
119
  }
119
120
 
120
121
  .iconImg {
@@ -127,8 +128,8 @@
127
128
  }
128
129
 
129
130
  .icontitle {
130
- width: 48px;
131
- max-width: 50px;
131
+ width: 64px;
132
+ max-width: 64px;
132
133
  text-align: center;
133
134
  font-size: 12px;
134
135
  -webkit-text-size-adjust: none;
@@ -5,8 +5,6 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  exports.__esModule = true;
6
6
  exports["default"] = void 0;
7
7
 
8
- var _balloon = _interopRequireDefault(require("@alifd/next/lib/balloon"));
9
-
10
8
  var _button = _interopRequireDefault(require("@alifd/next/lib/button"));
11
9
 
12
10
  var _icon = _interopRequireDefault(require("@alifd/next/lib/icon"));
@@ -79,21 +77,19 @@ var AlignTypeList = function AlignTypeList(props) {
79
77
  return item.value === 'divide' ? /*#__PURE__*/_react["default"].createElement(_divider["default"], {
80
78
  key: index,
81
79
  direction: "ver"
82
- }) : /*#__PURE__*/_react["default"].createElement(_balloon["default"].Tooltip, {
83
- trigger: /*#__PURE__*/_react["default"].createElement(_button["default"], {
84
- key: index,
85
- className: "" + _AlignSettingModule["default"].redioBtn,
86
- text: true,
87
- onClick: function onClick() {
88
- handleChange(item);
89
- } // eslint-disable-next-line no-unneeded-ternary
90
- ,
91
- disabled: (item.value === 'distributeHorizontal' || item.value === 'distributeVertical') && distributionDisabled
92
- }, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
93
- type: item.icon
94
- })),
95
- align: "b"
96
- }, item.label);
80
+ }) : /*#__PURE__*/_react["default"].createElement(_button["default"], {
81
+ key: index,
82
+ className: "" + _AlignSettingModule["default"].redioBtn,
83
+ text: true,
84
+ onClick: function onClick() {
85
+ handleChange(item);
86
+ },
87
+ title: item.label // eslint-disable-next-line no-unneeded-ternary
88
+ ,
89
+ disabled: (item.value === 'distributeHorizontal' || item.value === 'distributeVertical') && distributionDisabled
90
+ }, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
91
+ type: item.icon
92
+ }));
97
93
  }));
98
94
  };
99
95
 
@@ -15,6 +15,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
15
15
 
16
16
  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; }
17
17
 
18
+ // import IconSelect from '@/core/editor/components/Toolbar/widgets/IconSelect;
18
19
  function NodeIconSelect(props, ref) {
19
20
  var value = props.value,
20
21
  onChange = props.onChange,
@@ -53,12 +53,18 @@ function BasicSetting(props) {
53
53
  field: field,
54
54
  labelAlign: "top",
55
55
  style: {
56
- margin: '12px 16px 0 32px'
56
+ margin: "12px 16px 0 32px"
57
57
  }
58
58
  }, /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
59
59
  label: "\u56FE\u7247\u540D\u79F0"
60
60
  }, /*#__PURE__*/_react["default"].createElement(_NameInput["default"], {
61
61
  name: "attrObject.customName",
62
62
  topo: topo
63
- })));
63
+ }), /*#__PURE__*/_react["default"].createElement("span", {
64
+ style: {
65
+ color: "#638DB7",
66
+ marginTop: '2px',
67
+ display: 'block'
68
+ }
69
+ }, "\u70B9\u51FB\u56DE\u8F66\u952E\u53EF\u624B\u52A8\u6298\u884C")));
64
70
  }
@@ -143,6 +143,5 @@ function setEdgesType(edges, type, topo) {
143
143
  htTopo.setGraphLinear(edge, {
144
144
  type: type
145
145
  });
146
- edge.a('edge.type.name', type);
147
146
  });
148
147
  }
@@ -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.11" === 'string' ? "10.0.11" : null;
59
+ var version = typeof "10.0.15" === 'string' ? "10.0.15" : null;
60
60
  console.info("\u62D3\u6251\u7248\u672C: " + version);
61
61
  /**
62
62
  * 拓扑显示和编辑
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riil-frontend/component-topology",
3
- "version": "10.0.11",
3
+ "version": "10.0.15",
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.11/build/index.html",
119
+ "homepage": "https://unpkg.com/@riil-frontend/component-topology@10.0.15/build/index.html",
120
120
  "gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
121
121
  }