ronds-metadata 1.3.84 → 1.3.86

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. package/README.md +25 -25
  2. package/es/api/index.js +5 -7
  3. package/es/comps/CodeEdit/index.d.ts +2 -2
  4. package/es/comps/CodeEdit/index.js +3 -2
  5. package/es/comps/CodeEdit/index.less +6 -6
  6. package/es/comps/DataMine/Line.d.ts +1 -2
  7. package/es/comps/DataMine/Line.js +1 -0
  8. package/es/comps/DataMine/index.d.ts +1 -2
  9. package/es/comps/DynamicPorts/comps/ContextMenu.less +8 -8
  10. package/es/comps/DynamicPorts/comps/DragNode.d.ts +1 -1
  11. package/es/comps/DynamicPorts/comps/GraphHandler/index.less +39 -39
  12. package/es/comps/DynamicPorts/comps/NodeElementForm.d.ts +1 -2
  13. package/es/comps/DynamicPorts/comps/NodeElementNormal.d.ts +1 -2
  14. package/es/comps/DynamicPorts/comps/contextMenu/EdgeContextMenu/index.less +5 -5
  15. package/es/comps/DynamicPorts/comps/contextMenu/GraphContextMenu/index.less +40 -40
  16. package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.d.ts +1 -2
  17. package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.less +42 -42
  18. package/es/comps/DynamicPorts/comps/shape/edge.js +7 -7
  19. package/es/comps/DynamicPorts/comps/shape/edge.less +8 -8
  20. package/es/comps/DynamicPorts/comps/shape/node.js +9 -8
  21. package/es/comps/DynamicPorts/graph.js +4 -5
  22. package/es/comps/DynamicPorts/index.d.ts +1 -2
  23. package/es/comps/DynamicPorts/index.less +307 -307
  24. package/es/comps/Editable/DataCell/ButtonCell.d.ts +1 -1
  25. package/es/comps/Editable/DataCell/ColorPicker.d.ts +1 -1
  26. package/es/comps/Editable/DataCell/Input.d.ts +1 -1
  27. package/es/comps/Editable/DataCell/Number.d.ts +1 -1
  28. package/es/comps/Editable/DataCell/Select.d.ts +1 -1
  29. package/es/comps/Editable/DataCell/Switch.d.ts +1 -1
  30. package/es/comps/Editable/DataCell/TreeSelect.d.ts +1 -1
  31. package/es/comps/Editable/comps/EditableAction.d.ts +1 -2
  32. package/es/comps/Editable/comps/Texty.d.ts +1 -1
  33. package/es/comps/Editable/comps/Texty.js +4 -5
  34. package/es/comps/Editable/comps/Texty.less +43 -43
  35. package/es/comps/Editable/comps/index.less +38 -38
  36. package/es/comps/Editable/index.d.ts +1 -2
  37. package/es/comps/Editable/index.less +97 -97
  38. package/es/comps/Editable/utils.d.ts +1 -2
  39. package/es/comps/FileView/index.d.ts +1 -2
  40. package/es/comps/FileView/index.js +3 -2
  41. package/es/comps/FormGenerator/comps/Canvas/Preview.d.ts +1 -2
  42. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Checkbox.d.ts +1 -2
  43. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Color.d.ts +1 -1
  44. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Date.d.ts +1 -1
  45. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Input.d.ts +1 -1
  46. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/List.d.ts +1 -2
  47. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/MutiSelect.d.ts +1 -2
  48. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Number.d.ts +1 -1
  49. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/NumberRange.d.ts +1 -1
  50. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Obj.d.ts +1 -2
  51. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Password.d.ts +1 -1
  52. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Radio.d.ts +1 -2
  53. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Select.d.ts +1 -2
  54. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Switch.d.ts +1 -1
  55. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Table.d.ts +1 -2
  56. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/TextArea.d.ts +1 -1
  57. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Upload.d.ts +1 -1
  58. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/HOC/index.d.ts +1 -2
  59. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/index.d.ts +1 -2
  60. package/es/comps/FormGenerator/comps/Canvas/core/index.d.ts +1 -1
  61. package/es/comps/FormGenerator/comps/Canvas/core/index.less +23 -23
  62. package/es/comps/FormGenerator/comps/Canvas/index.d.ts +1 -2
  63. package/es/comps/FormGenerator/comps/Settings/index.d.ts +1 -2
  64. package/es/comps/FormGenerator/comps/Settings/index.js +2 -1
  65. package/es/comps/FormGenerator/comps/Sidebar/Elements.d.ts +1 -1
  66. package/es/comps/FormGenerator/comps/Sidebar/JsonSchema.d.ts +1 -1
  67. package/es/comps/FormGenerator/comps/Sidebar/index.d.ts +1 -2
  68. package/es/comps/FormGenerator/comps/Sidebar/index.less +21 -21
  69. package/es/comps/FormGenerator/index.d.ts +1 -2
  70. package/es/comps/FormGenerator/index.less +20 -20
  71. package/es/comps/JsonEdit/index.d.ts +1 -2
  72. package/es/comps/JsonEdit/index.js +1 -0
  73. package/es/comps/JsonEdit/index.less +64 -64
  74. package/es/comps/JsonView/index.d.ts +1 -2
  75. package/es/comps/JsonView/index.less +41 -41
  76. package/es/comps/MdEdit/index.d.ts +1 -2
  77. package/es/comps/MdEdit/index.less +6 -6
  78. package/es/comps/MdEditPro/index.d.ts +1 -2
  79. package/es/comps/MdEditPro/index.less +166 -166
  80. package/es/comps/MdEditPro/index2.d.ts +1 -1
  81. package/es/comps/MdNavbar/index.d.ts +1 -2
  82. package/es/comps/MdNavbar/index.less +77 -77
  83. package/es/comps/MdView/index.d.ts +1 -1
  84. package/es/comps/MdView/index.less +376 -376
  85. package/es/comps/MetadataEdit/components/MetaFieldsEdit.d.ts +1 -2
  86. package/es/comps/MetadataEdit/components/MetaPropsEdit.d.ts +1 -2
  87. package/es/comps/MetadataEdit/constant/index.js +2 -0
  88. package/es/comps/MetadataEdit/index.d.ts +1 -2
  89. package/es/comps/MetadataEdit/index.less +10 -10
  90. package/es/comps/MetadataEdit/type.d.ts +20 -20
  91. package/es/comps/MetadataForm/DataCell/Array.d.ts +1 -1
  92. package/es/comps/MetadataForm/DataCell/Input.d.ts +1 -1
  93. package/es/comps/MetadataForm/DataCell/Input.js +8 -4
  94. package/es/comps/MetadataForm/DataCell/Number.d.ts +1 -1
  95. package/es/comps/MetadataForm/DataCell/Ref.d.ts +1 -1
  96. package/es/comps/MetadataForm/DataCell/Select.d.ts +1 -1
  97. package/es/comps/MetadataForm/DataCell/Switch.d.ts +1 -1
  98. package/es/comps/MetadataForm/DataCell/business/index.d.ts +1 -2
  99. package/es/comps/MetadataForm/DataCell/business/index.js +1 -0
  100. package/es/comps/MetadataForm/DataCell/layout/TableArray.d.ts +1 -2
  101. package/es/comps/MetadataForm/DataCell/plugin/Datasource/Cassandra.d.ts +2 -2
  102. package/es/comps/MetadataForm/DataCell/plugin/Datasource/Cassandra.js +10 -5
  103. package/es/comps/MetadataForm/DataCell/plugin/Datasource/Kafka.d.ts +2 -2
  104. package/es/comps/MetadataForm/DataCell/plugin/Datasource/Kafka.js +8 -4
  105. package/es/comps/MetadataForm/DataCell/plugin/Datasource/PostgreSQL.d.ts +2 -2
  106. package/es/comps/MetadataForm/DataCell/plugin/Datasource/PostgreSQL.js +12 -6
  107. package/es/comps/MetadataForm/DataCell/plugin/Datasource/SqlServer.d.ts +2 -2
  108. package/es/comps/MetadataForm/DataCell/plugin/Datasource/SqlServer.js +12 -6
  109. package/es/comps/MetadataForm/DataCell/plugin/Datasource/index.d.ts +1 -2
  110. package/es/comps/MetadataForm/DataCell/plugin/Datasource/index.js +24 -7
  111. package/es/comps/MetadataForm/DataCell/plugin/MapTable.d.ts +2 -2
  112. package/es/comps/MetadataForm/DataCell/plugin/MapTable.js +12 -16
  113. package/es/comps/MetadataForm/DataCell/plugin/NumberRange.d.ts +1 -2
  114. package/es/comps/MetadataForm/DataCell/plugin/NumberRange.js +2 -1
  115. package/es/comps/MetadataForm/DataCell/plugin/RefreshSelect.d.ts +1 -2
  116. package/es/comps/MetadataForm/DataCell/plugin/SparkSqlTable.d.ts +2 -2
  117. package/es/comps/MetadataForm/DataCell/plugin/SparkSqlTable.js +12 -6
  118. package/es/comps/MetadataForm/HOC/index.d.ts +1 -2
  119. package/es/comps/MetadataForm/HOC/index.less +41 -41
  120. package/es/comps/MetadataForm/index.d.ts +1 -2
  121. package/es/comps/MetadataForm/utils.d.ts +2 -3
  122. package/es/comps/Split/index.d.ts +1 -1
  123. package/es/comps/Split/index.less +29 -29
  124. package/es/framework/RxStore/demo/index.d.ts +1 -2
  125. package/es/framework/graph/index.less +15 -15
  126. package/es/framework/http/msgpack5/lib/helpers.js +1 -0
  127. package/es/framework/libs/jquery.min.js +4 -4
  128. package/es/framework/locale/dil8/di18n.js +3 -5
  129. package/es/framework/metadata/MetadataService.js +14 -14
  130. package/es/framework/metadata/index.js +15 -14
  131. package/es/framework/metadata/types.d.ts +103 -103
  132. package/es/theme.less +81 -81
  133. package/package.json +116 -116
package/README.md CHANGED
@@ -1,25 +1,25 @@
1
- # ronds-metadata
2
-
3
- # 使用前准备
4
-
5
- 在使用之前,推荐学习[容知的元数据规则](http://172.16.0.8:5000/oo/r/634418027609242111)
6
-
7
- # 安装及使用
8
-
9
- ## 安装
10
-
11
- ```
12
- yarn add ronds-metadata
13
- ```
14
-
15
- ## 使用
16
-
17
- ### 引入所需组件
18
-
19
- 在代码中 import 需要的组件并按照文档说明使用
20
-
21
- ```
22
- import { MetadataFrom, MetadataEdit, JsonView, JsonEdit } from 'ronds-metadata';
23
-
24
- import { JsonMetadataProvider } from 'ronds-metadata/es/framework/metadata/index';
25
- ```
1
+ # ronds-metadata
2
+
3
+ # 使用前准备
4
+
5
+ 在使用之前,推荐学习[容知的元数据规则](http://172.16.0.8:5000/oo/r/634418027609242111)
6
+
7
+ # 安装及使用
8
+
9
+ ## 安装
10
+
11
+ ```
12
+ yarn add ronds-metadata
13
+ ```
14
+
15
+ ## 使用
16
+
17
+ ### 引入所需组件
18
+
19
+ 在代码中 import 需要的组件并按照文档说明使用
20
+
21
+ ```
22
+ import { MetadataFrom, MetadataEdit, JsonView, JsonEdit } from 'ronds-metadata';
23
+
24
+ import { JsonMetadataProvider } from 'ronds-metadata/es/framework/metadata/index';
25
+ ```
package/es/api/index.js CHANGED
@@ -10,7 +10,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
  import { guid, md5 } from '../utils';
11
11
  import { addInterceptor, HttpHelper } from '../framework/http';
12
12
  var http = new HttpHelper();
13
- var token = 'Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IkMyMTJFMjI1NTcwNjRDQTE3M0U2NjkxRjM4QzFDOEEyIiwidHlwIjoiYXQrand0In0.eyJuYmYiOjE3MjQ0OTg5MjcsImV4cCI6MTcyNDc1ODEyNywiaXNzIjoiaHR0cDovL2ZhYmlvOjk5OTkvc3VwZXJjYXJlY29yZSIsImF1ZCI6ImVwbSIsImNsaWVudF9pZCI6ImVwbSIsInN1YiI6IjNhMTIxZDJiLWYwZDUtZDQ3OC0xN2Q3LWQwODEwZDgzZDViMSIsImF1dGhfdGltZSI6MTcyNDQ5ODkyNiwiaWRwIjoibG9jYWwiLCJuYW1lIjoicGhtIiwiZW1haWwiOiJwaG1AYWJwLmlvIiwicm9sZSI6WyJhZG1pbiIsInBobV9hZG1pbiJdLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9naXZlbm5hbWUiOiJwaG3ov5Dnu7TotKblj7ciLCJwaG9uZV9udW1iZXIiOiIxMzYwMDAwMDAwMCIsInBob25lX251bWJlcl92ZXJpZmllZCI6IlRydWUiLCJlbWFpbF92ZXJpZmllZCI6IlRydWUiLCJpYXQiOjE3MjQ0OTg5MjcsInNjb3BlIjpbImFkZHJlc3MiLCJlbWFpbCIsImVwbSIsIm9wZW5pZCIsInBob25lIiwicHJvZmlsZSIsInJvbGUiLCJvZmZsaW5lX2FjY2VzcyJdLCJhbXIiOlsicHdkIl19.PSiq8OLUndIOZq4kmZcFafJSE6T7J010sttx-b2uTWkhBEh2mV0H_MPujH6iyTjWk1D6bZPdWoE7TjEcKnenZzW28_eWuzNHbCWe0O0aw4XPTX57ibxvxrX0aFUvniMyfepZn88MSP3uQvzY4T3QnrQiK_Io2pV6w9NCsG-GJicboqBnb4pFwXHEVADTmyhyc7iowc_p9FNrlgGswU8VZPgIk3caUYiso_NCql3zuUX6JcTNFxip_6pkrt8PX4Da4BTHJCMcyssUDp_E9WEud50EDMnvXBqOydc6txXIwfFCRwtePK5WjAFHNGSDjhmH2-iGzyUC7fOIjXgWb2_pyw';
13
+ var token = 'Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IkMyMTJFMjI1NTcwNjRDQTE3M0U2NjkxRjM4QzFDOEEyIiwidHlwIjoiYXQrand0In0.eyJuYmYiOjE3MjQyMDkyNzMsImV4cCI6MTcyNDQ2ODQ3MywiaXNzIjoiaHR0cDovL2ZhYmlvOjk5OTkvc3VwZXJjYXJlY29yZSIsImF1ZCI6ImVwbSIsImNsaWVudF9pZCI6ImVwbSIsInN1YiI6IjNhMTIxZDJiLWYwZDUtZDQ3OC0xN2Q3LWQwODEwZDgzZDViMSIsImF1dGhfdGltZSI6MTcyNDIwOTI3MiwiaWRwIjoibG9jYWwiLCJuYW1lIjoicGhtIiwiZW1haWwiOiJwaG1AYWJwLmlvIiwicm9sZSI6WyJhZG1pbiIsInBobV9hZG1pbiJdLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9naXZlbm5hbWUiOiJwaG3ov5Dnu7TotKblj7ciLCJwaG9uZV9udW1iZXIiOiIxMzYwMDAwMDAwMCIsInBob25lX251bWJlcl92ZXJpZmllZCI6IlRydWUiLCJlbWFpbF92ZXJpZmllZCI6IlRydWUiLCJpYXQiOjE3MjQyMDkyNzMsInNjb3BlIjpbImFkZHJlc3MiLCJlbWFpbCIsImVwbSIsIm9wZW5pZCIsInBob25lIiwicHJvZmlsZSIsInJvbGUiLCJvZmZsaW5lX2FjY2VzcyJdLCJhbXIiOlsicHdkIl19.t-AeiGQDr2N4PgLGHI6HRjwhTlSAt7TjtDVQgMBCVJgf31L9lKzuiakfXukTNzeXz0qHTeJOBmJL8Q-Lhlz_Khd-pr4fsaBP6qI8NWcLan1hZPWgms5mbsJukLOIvUVWxZGxJ501yxdQLJIZPwX6CfvXzCWfIeF8SQJ8c4d_zXWrpdJBHfmX8vl4Ut7hOX5IC9Sn79uoe-0-96aI8Ltv07iHdTAJSH3Y4svh_jwEt34-oBmT3daZ0iWvfuNx0QFYGiW6lN-kALIbnEOpphA3mHtwtUpB2RtG6BGCTJZGraT-7Fmboks34y6C1ApJzO221x4-_VZGa5hwwvZttkxzlw';
14
14
  addInterceptor(function (httpClient) {
15
15
  httpClient.interceptors.request.use(function (_config) {
16
16
  if (!_config.headers) {
@@ -35,7 +35,7 @@ var Api = /*#__PURE__*/function () {
35
35
  }
36
36
  _createClass(Api, [{
37
37
  key: "GetMetadataList",
38
- value: (
38
+ value:
39
39
  /**
40
40
  * 获取元数据列表
41
41
  * @param keyWords
@@ -81,10 +81,9 @@ var Api = /*#__PURE__*/function () {
81
81
  * @param metadataId
82
82
  * @returns
83
83
  */
84
- )
85
84
  }, {
86
85
  key: "GetMetadataDetailById",
87
- value: (function () {
86
+ value: function () {
88
87
  var _GetMetadataDetailById = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(metadataId) {
89
88
  var url, res;
90
89
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
@@ -106,10 +105,10 @@ var Api = /*#__PURE__*/function () {
106
105
  return _GetMetadataDetailById.apply(this, arguments);
107
106
  }
108
107
  return GetMetadataDetailById;
109
- }() /** 添加元数据 */)
108
+ }() /** 添加元数据 */
110
109
  }, {
111
110
  key: "SaveMetadata",
112
- value: (function () {
111
+ value: function () {
113
112
  var _SaveMetadata = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(data, metadataTag) {
114
113
  var param, url, res;
115
114
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
@@ -138,7 +137,6 @@ var Api = /*#__PURE__*/function () {
138
137
  }
139
138
  return SaveMetadata;
140
139
  }() // 获取元数据的值
141
- )
142
140
  }, {
143
141
  key: "GetMetadataObjList",
144
142
  value: function () {
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import 'monaco-editor/esm/vs/basic-languages/pgsql/pgsql.contribution.js';
3
2
  import './index.less';
4
3
  interface ICodeEditProps {
@@ -15,6 +14,7 @@ interface ICodeEditProps {
15
14
  * 编辑框输入值改变回调
16
15
  */
17
16
  onChange?: (txt: string) => void;
17
+ readOnly?: boolean;
18
18
  }
19
- declare const CodeEdit: (props: ICodeEditProps) => React.JSX.Element;
19
+ declare const CodeEdit: (props: ICodeEditProps) => JSX.Element;
20
20
  export default CodeEdit;
@@ -19,7 +19,8 @@ var CodeEdit = function CodeEdit(props) {
19
19
  theme = _props$theme === void 0 ? 'light' : _props$theme,
20
20
  _props$mode = props.mode,
21
21
  mode = _props$mode === void 0 ? 'javascript' : _props$mode,
22
- onChange = props.onChange;
22
+ onChange = props.onChange,
23
+ readOnly = props.readOnly;
23
24
  var editorRef = React.useRef(null);
24
25
  var firstLoadRef = React.useRef(true);
25
26
  var monaco = useMonaco();
@@ -131,7 +132,7 @@ var CodeEdit = function CodeEdit(props) {
131
132
  editorRef.current = editor;
132
133
  },
133
134
  options: {
134
- readOnly: false,
135
+ readOnly: readOnly,
135
136
  automaticLayout: true,
136
137
  wordWrap: 'on',
137
138
  quickSuggestions: true,
@@ -1,6 +1,6 @@
1
- .my-code-editor {
2
- .suggest-widget {
3
- position: absolute !important;
4
- z-index: 1000 !important; /* 确保它在最顶层 */
5
- }
6
- }
1
+ .my-code-editor {
2
+ .suggest-widget {
3
+ position: absolute !important;
4
+ z-index: 1000 !important; /* 确保它在最顶层 */
5
+ }
6
+ }
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
1
  interface ILineChartProps {
3
2
  data: any[];
4
3
  }
5
- declare const LineChart: (props: ILineChartProps) => React.JSX.Element;
4
+ declare const LineChart: (props: ILineChartProps) => JSX.Element;
6
5
  export default LineChart;
@@ -52,6 +52,7 @@ var LineChart = function LineChart(props) {
52
52
 
53
53
  // 在这里处理选中的数据范围
54
54
  });
55
+
55
56
  line.render();
56
57
  }, []);
57
58
  React.useEffect(function () {
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  interface IDataMineProps {
3
2
  }
4
- declare const DataMine: (props: IDataMineProps) => React.JSX.Element;
3
+ declare const DataMine: (props: IDataMineProps) => JSX.Element;
5
4
  export default DataMine;
@@ -1,8 +1,8 @@
1
- .mask {
2
- position: absolute;
3
- top: 0;
4
- bottom: 0;
5
- right: 0;
6
- left: 0;
7
- z-index: 99999;
8
- }
1
+ .mask {
2
+ position: absolute;
3
+ top: 0;
4
+ bottom: 0;
5
+ right: 0;
6
+ left: 0;
7
+ z-index: 99999;
8
+ }
@@ -3,5 +3,5 @@ import '../index.less';
3
3
  interface IDragNodeProps {
4
4
  data: NDPGraph.Node;
5
5
  }
6
- declare const DragNode: (props: IDragNodeProps) => import("react").JSX.Element;
6
+ declare const DragNode: (props: IDragNodeProps) => JSX.Element;
7
7
  export default DragNode;
@@ -1,39 +1,39 @@
1
- .handler {
2
- position: absolute;
3
- top: 61px;
4
- right: 14px;
5
- z-index: 99;
6
- width: 32px;
7
- margin: 0;
8
- padding: 3px 0;
9
- color: rgba(0, 0, 0, 0.45);
10
- font-size: 16px;
11
- list-style-type: none;
12
- background-color: #fff;
13
- border: 1px solid rgba(0, 0, 0, 0.04);
14
- border-radius: 3px;
15
- box-shadow: 0 0 20px rgba(0, 0, 0, 0.01);
16
-
17
- .item {
18
- text-align: center;
19
- cursor: pointer;
20
-
21
- &:hover {
22
- color: #000;
23
- background-color: #e0e0e0;
24
- }
25
- }
26
-
27
- .tools-selected {
28
- color: #000;
29
- background-color: #e0e0e0;
30
- }
31
- }
32
-
33
- .popover {
34
- :global {
35
- .ant-popover-inner-content {
36
- padding: 3px 8px;
37
- }
38
- }
39
- }
1
+ .handler {
2
+ position: absolute;
3
+ top: 61px;
4
+ right: 14px;
5
+ z-index: 99;
6
+ width: 32px;
7
+ margin: 0;
8
+ padding: 3px 0;
9
+ color: rgba(0, 0, 0, 0.45);
10
+ font-size: 16px;
11
+ list-style-type: none;
12
+ background-color: #fff;
13
+ border: 1px solid rgba(0, 0, 0, 0.04);
14
+ border-radius: 3px;
15
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.01);
16
+
17
+ .item {
18
+ text-align: center;
19
+ cursor: pointer;
20
+
21
+ &:hover {
22
+ color: #000;
23
+ background-color: #e0e0e0;
24
+ }
25
+ }
26
+
27
+ .tools-selected {
28
+ color: #000;
29
+ background-color: #e0e0e0;
30
+ }
31
+ }
32
+
33
+ .popover {
34
+ :global {
35
+ .ant-popover-inner-content {
36
+ padding: 3px 8px;
37
+ }
38
+ }
39
+ }
@@ -1,7 +1,6 @@
1
1
  import '../index.less';
2
- import React from 'react';
3
2
  interface NodeElementProps {
4
3
  node?: Node;
5
4
  }
6
- declare const NodeElementForm: (props: NodeElementProps) => React.JSX.Element;
5
+ declare const NodeElementForm: (props: NodeElementProps) => JSX.Element;
7
6
  export default NodeElementForm;
@@ -1,7 +1,6 @@
1
1
  import '../index.less';
2
- import React from 'react';
3
2
  interface NodeElementProps {
4
3
  node?: Node;
5
4
  }
6
- declare const NodeElementNormal: (props: NodeElementProps) => React.JSX.Element;
5
+ declare const NodeElementNormal: (props: NodeElementProps) => JSX.Element;
7
6
  export default NodeElementNormal;
@@ -1,5 +1,5 @@
1
- .edgeContextMenu {
2
- position: absolute;
3
- z-index: 1;
4
- background-color: #fff;
5
- }
1
+ .edgeContextMenu {
2
+ position: absolute;
3
+ z-index: 1;
4
+ background-color: #fff;
5
+ }
@@ -1,40 +1,40 @@
1
- .graphContextMenu {
2
- position: absolute;
3
- z-index: 1;
4
- background-color: #fff;
5
- }
6
-
7
- .loadExperimentModal {
8
- :global {
9
- .ant-modal-title {
10
- font-size: 14px;
11
- }
12
-
13
- .ant-btn {
14
- font-size: 12px;
15
- }
16
- }
17
-
18
- .versionTable {
19
- :global {
20
- .ant-table.ant-table-small {
21
- font-size: 12px;
22
- }
23
- }
24
-
25
- .operations {
26
- :global {
27
- .ant-btn {
28
- &:first-of-type {
29
- padding-left: 0;
30
- border-left: 0;
31
- }
32
-
33
- &.ant-btn-sm {
34
- font-size: 12px;
35
- }
36
- }
37
- }
38
- }
39
- }
40
- }
1
+ .graphContextMenu {
2
+ position: absolute;
3
+ z-index: 1;
4
+ background-color: #fff;
5
+ }
6
+
7
+ .loadExperimentModal {
8
+ :global {
9
+ .ant-modal-title {
10
+ font-size: 14px;
11
+ }
12
+
13
+ .ant-btn {
14
+ font-size: 12px;
15
+ }
16
+ }
17
+
18
+ .versionTable {
19
+ :global {
20
+ .ant-table.ant-table-small {
21
+ font-size: 12px;
22
+ }
23
+ }
24
+
25
+ .operations {
26
+ :global {
27
+ .ant-btn {
28
+ &:first-of-type {
29
+ padding-left: 0;
30
+ border-left: 0;
31
+ }
32
+
33
+ &.ant-btn-sm {
34
+ font-size: 12px;
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  import './index.less';
3
2
  interface INodeContextMenuProps {
4
3
  graph: any;
5
4
  data: any;
6
5
  }
7
- declare const NodeContextMenu: (props: INodeContextMenuProps) => React.JSX.Element;
6
+ declare const NodeContextMenu: (props: INodeContextMenuProps) => JSX.Element;
8
7
  export default NodeContextMenu;
@@ -1,42 +1,42 @@
1
- .graphContextMenu {
2
- position: absolute;
3
- z-index: 1;
4
- width: 100px;
5
- background-color: #fff;
6
- box-shadow: 0 2px 10px rgb(0 0 0 1);
7
- }
8
-
9
- .loadExperimentModal {
10
- :global {
11
- .ant-modal-title {
12
- font-size: 14px;
13
- }
14
-
15
- .ant-btn {
16
- font-size: 12px;
17
- }
18
- }
19
-
20
- .versionTable {
21
- :global {
22
- .ant-table.ant-table-small {
23
- font-size: 12px;
24
- }
25
- }
26
-
27
- .operations {
28
- :global {
29
- .ant-btn {
30
- &:first-of-type {
31
- padding-left: 0;
32
- border-left: 0;
33
- }
34
-
35
- &.ant-btn-sm {
36
- font-size: 12px;
37
- }
38
- }
39
- }
40
- }
41
- }
42
- }
1
+ .graphContextMenu {
2
+ position: absolute;
3
+ z-index: 1;
4
+ width: 100px;
5
+ background-color: #fff;
6
+ box-shadow: 0 2px 10px rgb(0 0 0 1);
7
+ }
8
+
9
+ .loadExperimentModal {
10
+ :global {
11
+ .ant-modal-title {
12
+ font-size: 14px;
13
+ }
14
+
15
+ .ant-btn {
16
+ font-size: 12px;
17
+ }
18
+ }
19
+
20
+ .versionTable {
21
+ :global {
22
+ .ant-table.ant-table-small {
23
+ font-size: 12px;
24
+ }
25
+ }
26
+
27
+ .operations {
28
+ :global {
29
+ .ant-btn {
30
+ &:first-of-type {
31
+ padding-left: 0;
32
+ border-left: 0;
33
+ }
34
+
35
+ &.ant-btn-sm {
36
+ font-size: 12px;
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
@@ -1,10 +1,7 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/esm/createClass";
3
- import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
4
- import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
5
- import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
6
3
  import _inherits from "@babel/runtime/helpers/esm/inherits";
7
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
4
+ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
8
5
  /*
9
6
  * @Author: wangxian
10
7
  * @Date: 2022-05-24 09:18:34
@@ -14,9 +11,10 @@ import { Shape, Edge } from '@antv/x6';
14
11
  import './edge.less';
15
12
  export var BaseEdge = /*#__PURE__*/function (_Shape$Edge) {
16
13
  _inherits(BaseEdge, _Shape$Edge);
14
+ var _super = _createSuper(BaseEdge);
17
15
  function BaseEdge() {
18
16
  _classCallCheck(this, BaseEdge);
19
- return _callSuper(this, BaseEdge, arguments);
17
+ return _super.apply(this, arguments);
20
18
  }
21
19
  _createClass(BaseEdge, [{
22
20
  key: "isGroupEdge",
@@ -30,9 +28,10 @@ export var BaseEdge = /*#__PURE__*/function (_Shape$Edge) {
30
28
  }(Shape.Edge);
31
29
  export var DPEdge = /*#__PURE__*/function (_BaseEdge) {
32
30
  _inherits(DPEdge, _BaseEdge);
31
+ var _super2 = _createSuper(DPEdge);
33
32
  function DPEdge() {
34
33
  _classCallCheck(this, DPEdge);
35
- return _callSuper(this, DPEdge, arguments);
34
+ return _super2.apply(this, arguments);
36
35
  }
37
36
  return _createClass(DPEdge);
38
37
  }(BaseEdge);
@@ -55,9 +54,10 @@ DPEdge.config({
55
54
  });
56
55
  export var DPGroupEdge = /*#__PURE__*/function (_DPEdge) {
57
56
  _inherits(DPGroupEdge, _DPEdge);
57
+ var _super3 = _createSuper(DPGroupEdge);
58
58
  function DPGroupEdge() {
59
59
  _classCallCheck(this, DPGroupEdge);
60
- return _callSuper(this, DPGroupEdge, arguments);
60
+ return _super3.apply(this, arguments);
61
61
  }
62
62
  _createClass(DPGroupEdge, [{
63
63
  key: "isGroupEdge",
@@ -1,8 +1,8 @@
1
- .x6-edge {
2
- &-selected,
3
- &:hover {
4
- path[stroke-width='1'] {
5
- stroke-width: 3px;
6
- }
7
- }
8
- }
1
+ .x6-edge {
2
+ &-selected,
3
+ &:hover {
4
+ path[stroke-width='1'] {
5
+ stroke-width: 3px;
6
+ }
7
+ }
8
+ }
@@ -1,18 +1,16 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/esm/createClass";
3
- import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
4
- import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
5
- import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
6
3
  import _inherits from "@babel/runtime/helpers/esm/inherits";
7
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
4
+ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
8
5
  import { Dom, Node } from '@antv/x6';
9
6
  import { ReactShape } from '@antv/x6-react-shape';
10
7
  import { NODE_WIDTH, NODE_HEIGHT } from '../../constant';
11
8
  export var BaseNode = /*#__PURE__*/function (_ReactShape) {
12
9
  _inherits(BaseNode, _ReactShape);
10
+ var _super = _createSuper(BaseNode);
13
11
  function BaseNode() {
14
12
  _classCallCheck(this, BaseNode);
15
- return _callSuper(this, BaseNode, arguments);
13
+ return _super.apply(this, arguments);
16
14
  }
17
15
  _createClass(BaseNode, [{
18
16
  key: "isGroup",
@@ -26,9 +24,10 @@ export var BaseNode = /*#__PURE__*/function (_ReactShape) {
26
24
  }(ReactShape);
27
25
  export var DPNode = /*#__PURE__*/function (_BaseNode) {
28
26
  _inherits(DPNode, _BaseNode);
27
+ var _super2 = _createSuper(DPNode);
29
28
  function DPNode() {
30
29
  _classCallCheck(this, DPNode);
31
- return _callSuper(this, DPNode, arguments);
30
+ return _super2.apply(this, arguments);
32
31
  }
33
32
  _createClass(DPNode, [{
34
33
  key: "getInPorts",
@@ -110,9 +109,10 @@ DPNode.config({
110
109
  });
111
110
  export var DPGroupNode = /*#__PURE__*/function (_BaseNode2) {
112
111
  _inherits(DPGroupNode, _BaseNode2);
112
+ var _super3 = _createSuper(DPGroupNode);
113
113
  function DPGroupNode() {
114
114
  _classCallCheck(this, DPGroupNode);
115
- return _callSuper(this, DPGroupNode, arguments);
115
+ return _super3.apply(this, arguments);
116
116
  }
117
117
  _createClass(DPGroupNode, [{
118
118
  key: "isGroup",
@@ -177,9 +177,10 @@ DPGroupNode.config({
177
177
  });
178
178
  export var DPNodeForm = /*#__PURE__*/function (_BaseNode3) {
179
179
  _inherits(DPNodeForm, _BaseNode3);
180
+ var _super4 = _createSuper(DPNodeForm);
180
181
  function DPNodeForm() {
181
182
  _classCallCheck(this, DPNodeForm);
182
- return _callSuper(this, DPNodeForm, arguments);
183
+ return _super4.apply(this, arguments);
183
184
  }
184
185
  _createClass(DPNodeForm, [{
185
186
  key: "getInPorts",
@@ -8,10 +8,9 @@ import "antd/es/tooltip/style";
8
8
  import _Tooltip from "antd/es/tooltip";
9
9
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
10
10
  import _createClass from "@babel/runtime/helpers/esm/createClass";
11
- import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
12
- import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
13
11
  import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
14
12
  import _inherits from "@babel/runtime/helpers/esm/inherits";
13
+ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
15
14
  import _get from "@babel/runtime/helpers/esm/get";
16
15
  import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
17
16
  /*
@@ -20,7 +19,6 @@ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
20
19
  * @LastEditTime: 2024-02-29 13:40:06
21
20
  */
22
21
  import _regeneratorRuntime from "@babel/runtime/regenerator";
23
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
24
22
  import produce from 'immer';
25
23
  import React from 'react';
26
24
  import ReactDOM from 'react-dom';
@@ -39,10 +37,11 @@ import { tr } from '../../framework/locale';
39
37
  import NodeElementForm from './comps/NodeElementForm';
40
38
  var DPGraph = /*#__PURE__*/function (_GraphCore) {
41
39
  _inherits(DPGraph, _GraphCore);
40
+ var _super = _createSuper(DPGraph);
42
41
  function DPGraph(_graphData, mode) {
43
42
  var _thisSuper, _this;
44
43
  _classCallCheck(this, DPGraph);
45
- _this = _callSuper(this, DPGraph, [{
44
+ _this = _super.call(this, {
46
45
  history: true,
47
46
  frozen: true,
48
47
  grid: true,
@@ -184,7 +183,7 @@ var DPGraph = /*#__PURE__*/function (_GraphCore) {
184
183
  })), container);
185
184
  }
186
185
  }
187
- }]);
186
+ });
188
187
  _this.factory$ = {
189
188
  loading: new BehaviorSubject(false),
190
189
  running: new BehaviorSubject(false),
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import './index.less';
3
2
  import './comps/shape/connector';
4
3
  import DPGraph from './graph';
@@ -45,5 +44,5 @@ interface IDynamicPortsProps {
45
44
  */
46
45
  getDPGraphInstance?: (data: DPGraph) => void;
47
46
  }
48
- declare const DynamicPorts: (props: IDynamicPortsProps) => React.JSX.Element;
47
+ declare const DynamicPorts: (props: IDynamicPortsProps) => JSX.Element;
49
48
  export default DynamicPorts;