ronds-metadata 1.3.54 → 1.3.56

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. package/README.md +25 -25
  2. package/es/api/index.js +8 -6
  3. package/es/comps/CodeEdit/index.d.ts +2 -1
  4. package/es/comps/DataMine/Line.d.ts +2 -1
  5. package/es/comps/DataMine/Line.js +0 -1
  6. package/es/comps/DataMine/index.d.ts +2 -1
  7. package/es/comps/DynamicPorts/comps/ContextMenu.less +8 -8
  8. package/es/comps/DynamicPorts/comps/DragNode.d.ts +1 -1
  9. package/es/comps/DynamicPorts/comps/GraphHandler/index.less +39 -39
  10. package/es/comps/DynamicPorts/comps/NodeElementForm.d.ts +2 -1
  11. package/es/comps/DynamicPorts/comps/NodeElementNormal.d.ts +2 -1
  12. package/es/comps/DynamicPorts/comps/contextMenu/EdgeContextMenu/index.less +5 -5
  13. package/es/comps/DynamicPorts/comps/contextMenu/GraphContextMenu/index.less +40 -40
  14. package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.d.ts +2 -1
  15. package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.less +42 -42
  16. package/es/comps/DynamicPorts/comps/shape/edge.js +7 -7
  17. package/es/comps/DynamicPorts/comps/shape/edge.less +8 -8
  18. package/es/comps/DynamicPorts/comps/shape/node.js +8 -9
  19. package/es/comps/DynamicPorts/graph.js +5 -4
  20. package/es/comps/DynamicPorts/index.d.ts +2 -1
  21. package/es/comps/DynamicPorts/index.less +307 -307
  22. package/es/comps/Editable/DataCell/ButtonCell.d.ts +1 -1
  23. package/es/comps/Editable/DataCell/ColorPicker.d.ts +1 -1
  24. package/es/comps/Editable/DataCell/Input.d.ts +1 -1
  25. package/es/comps/Editable/DataCell/Number.d.ts +1 -1
  26. package/es/comps/Editable/DataCell/Select.d.ts +1 -1
  27. package/es/comps/Editable/DataCell/Switch.d.ts +1 -1
  28. package/es/comps/Editable/DataCell/TreeSelect.d.ts +1 -1
  29. package/es/comps/Editable/comps/EditableAction.d.ts +2 -1
  30. package/es/comps/Editable/comps/Texty.d.ts +1 -1
  31. package/es/comps/Editable/comps/Texty.js +5 -4
  32. package/es/comps/Editable/comps/Texty.less +43 -43
  33. package/es/comps/Editable/comps/index.less +38 -38
  34. package/es/comps/Editable/index.d.ts +2 -1
  35. package/es/comps/Editable/index.less +97 -97
  36. package/es/comps/Editable/utils.d.ts +2 -1
  37. package/es/comps/FileView/index.d.ts +2 -1
  38. package/es/comps/FileView/index.js +2 -3
  39. package/es/comps/FormGenerator/comps/Canvas/Preview.d.ts +2 -1
  40. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Checkbox.d.ts +2 -1
  41. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Color.d.ts +1 -1
  42. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Date.d.ts +1 -1
  43. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Input.d.ts +1 -1
  44. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/List.d.ts +2 -1
  45. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/MutiSelect.d.ts +2 -1
  46. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Number.d.ts +1 -1
  47. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/NumberRange.d.ts +1 -1
  48. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Obj.d.ts +2 -1
  49. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Password.d.ts +1 -1
  50. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Radio.d.ts +2 -1
  51. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Select.d.ts +2 -1
  52. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Switch.d.ts +1 -1
  53. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Table.d.ts +2 -1
  54. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/TextArea.d.ts +1 -1
  55. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Upload.d.ts +1 -1
  56. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/HOC/index.d.ts +2 -1
  57. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/index.d.ts +2 -1
  58. package/es/comps/FormGenerator/comps/Canvas/core/index.d.ts +1 -1
  59. package/es/comps/FormGenerator/comps/Canvas/core/index.less +23 -23
  60. package/es/comps/FormGenerator/comps/Canvas/index.d.ts +2 -1
  61. package/es/comps/FormGenerator/comps/Settings/index.d.ts +2 -1
  62. package/es/comps/FormGenerator/comps/Settings/index.js +1 -2
  63. package/es/comps/FormGenerator/comps/Sidebar/Elements.d.ts +1 -1
  64. package/es/comps/FormGenerator/comps/Sidebar/JsonSchema.d.ts +1 -1
  65. package/es/comps/FormGenerator/comps/Sidebar/index.d.ts +2 -1
  66. package/es/comps/FormGenerator/comps/Sidebar/index.less +21 -21
  67. package/es/comps/FormGenerator/index.d.ts +2 -1
  68. package/es/comps/FormGenerator/index.less +20 -20
  69. package/es/comps/JsonEdit/index.d.ts +2 -1
  70. package/es/comps/JsonEdit/index.js +0 -1
  71. package/es/comps/JsonEdit/index.less +64 -64
  72. package/es/comps/JsonView/index.d.ts +2 -1
  73. package/es/comps/MdEdit/index.d.ts +2 -1
  74. package/es/comps/MdEditPro/index.d.ts +2 -1
  75. package/es/comps/MdEditPro/index.less +166 -166
  76. package/es/comps/MdEditPro/index2.d.ts +1 -1
  77. package/es/comps/MdNavbar/index.d.ts +2 -1
  78. package/es/comps/MdNavbar/index.less +77 -77
  79. package/es/comps/MdView/index.d.ts +1 -1
  80. package/es/comps/MdView/index.less +376 -376
  81. package/es/comps/MetadataEdit/components/MetaFieldsEdit.d.ts +2 -1
  82. package/es/comps/MetadataEdit/components/MetaPropsEdit.d.ts +2 -1
  83. package/es/comps/MetadataEdit/constant/index.js +0 -2
  84. package/es/comps/MetadataEdit/index.d.ts +2 -1
  85. package/es/comps/MetadataForm/DataCell/Array.d.ts +1 -1
  86. package/es/comps/MetadataForm/DataCell/Input.d.ts +1 -1
  87. package/es/comps/MetadataForm/DataCell/Input.js +15 -4
  88. package/es/comps/MetadataForm/DataCell/Number.d.ts +1 -1
  89. package/es/comps/MetadataForm/DataCell/Ref.d.ts +1 -1
  90. package/es/comps/MetadataForm/DataCell/Select.d.ts +1 -1
  91. package/es/comps/MetadataForm/DataCell/Select.js +21 -30
  92. package/es/comps/MetadataForm/DataCell/Switch.d.ts +1 -1
  93. package/es/comps/MetadataForm/DataCell/layout/TableArray.d.ts +2 -1
  94. package/es/comps/MetadataForm/DataCell/plugin/IconButton.d.ts +8 -0
  95. package/es/comps/MetadataForm/DataCell/plugin/IconButton.js +16 -0
  96. package/es/comps/MetadataForm/DataCell/plugin/MapTable.d.ts +12 -0
  97. package/es/comps/MetadataForm/DataCell/plugin/MapTable.js +116 -0
  98. package/es/comps/MetadataForm/DataCell/plugin/NumberRange.d.ts +2 -1
  99. package/es/comps/MetadataForm/DataCell/plugin/NumberRange.js +1 -2
  100. package/es/comps/MetadataForm/DataCell/plugin/RefreshSelect.d.ts +13 -0
  101. package/es/comps/MetadataForm/DataCell/plugin/RefreshSelect.js +65 -0
  102. package/es/comps/MetadataForm/DataCell/plugin/SparkSqlTable.d.ts +11 -0
  103. package/es/comps/MetadataForm/DataCell/plugin/SparkSqlTable.js +249 -0
  104. package/es/comps/MetadataForm/HOC/index.d.ts +2 -1
  105. package/es/comps/MetadataForm/index.d.ts +2 -1
  106. package/es/comps/MetadataForm/index.less +26 -26
  107. package/es/comps/MetadataForm/utils.d.ts +3 -2
  108. package/es/comps/Split/index.d.ts +1 -1
  109. package/es/comps/Split/index.less +29 -29
  110. package/es/framework/RxStore/demo/index.d.ts +2 -1
  111. package/es/framework/graph/index.less +15 -15
  112. package/es/framework/http/msgpack5/lib/helpers.js +0 -1
  113. package/es/framework/libs/iconfont/iconfont.css +323 -323
  114. package/es/framework/libs/iconfont/iconfont.json +548 -548
  115. package/es/framework/libs/jquery.min.js +4 -4
  116. package/es/framework/locale/dil8/di18n.js +5 -3
  117. package/es/framework/metadata/MetadataService.js +14 -14
  118. package/es/framework/metadata/index.js +14 -15
  119. package/es/framework/metadata/types.d.ts +103 -103
  120. package/es/theme.less +81 -81
  121. package/package.json +1 -1
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
@@ -5,12 +5,12 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
5
5
  /*
6
6
  * @Author:wangxian
7
7
  * @Date: 2021-09-18 14:15:04
8
- * @LastEditTime: 2024-07-03 16:02:30
8
+ * @LastEditTime: 2024-07-23 19:54:50
9
9
  */
10
10
  import { guid, md5 } from '../utils';
11
11
  import { addInterceptor, HttpHelper } from '../framework/http';
12
12
  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L0PRAIqQwPEh2g8VHhKYOmZoTMXubrDpAhcloxuzEPWikbWDu46vjFzX3HXYCoi00e32Y3KvSV1Gx2lTg3_ydBuHtPEnG4weDXauEiqRZ5tKDFBXOEFSFNQ2laRfXaAoyphD_sxvmdnDRsleamsgyQ6PAD2Q-_Gztt9IlVj_txthg';
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,9 +81,10 @@ var Api = /*#__PURE__*/function () {
81
81
  * @param metadataId
82
82
  * @returns
83
83
  */
84
+ )
84
85
  }, {
85
86
  key: "GetMetadataDetailById",
86
- value: function () {
87
+ value: (function () {
87
88
  var _GetMetadataDetailById = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(metadataId) {
88
89
  var url, res;
89
90
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
@@ -105,10 +106,10 @@ var Api = /*#__PURE__*/function () {
105
106
  return _GetMetadataDetailById.apply(this, arguments);
106
107
  }
107
108
  return GetMetadataDetailById;
108
- }() /** 添加元数据 */
109
+ }() /** 添加元数据 */)
109
110
  }, {
110
111
  key: "SaveMetadata",
111
- value: function () {
112
+ value: (function () {
112
113
  var _SaveMetadata = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(data, metadataTag) {
113
114
  var param, url, res;
114
115
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
@@ -137,6 +138,7 @@ var Api = /*#__PURE__*/function () {
137
138
  }
138
139
  return SaveMetadata;
139
140
  }() // 获取元数据的值
141
+ )
140
142
  }, {
141
143
  key: "GetMetadataObjList",
142
144
  value: function () {
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import 'monaco-editor/esm/vs/basic-languages/pgsql/pgsql.contribution.js';
2
3
  interface ICodeEditProps {
3
4
  value?: string;
@@ -14,5 +15,5 @@ interface ICodeEditProps {
14
15
  */
15
16
  onChange?: (txt: string) => void;
16
17
  }
17
- declare const CodeEdit: (props: ICodeEditProps) => JSX.Element;
18
+ declare const CodeEdit: (props: ICodeEditProps) => React.JSX.Element;
18
19
  export default CodeEdit;
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  interface ILineChartProps {
2
3
  data: any[];
3
4
  }
4
- declare const LineChart: (props: ILineChartProps) => JSX.Element;
5
+ declare const LineChart: (props: ILineChartProps) => React.JSX.Element;
5
6
  export default LineChart;
@@ -52,7 +52,6 @@ var LineChart = function LineChart(props) {
52
52
 
53
53
  // 在这里处理选中的数据范围
54
54
  });
55
-
56
55
  line.render();
57
56
  }, []);
58
57
  React.useEffect(function () {
@@ -1,4 +1,5 @@
1
+ import React from 'react';
1
2
  interface IDataMineProps {
2
3
  }
3
- declare const DataMine: (props: IDataMineProps) => JSX.Element;
4
+ declare const DataMine: (props: IDataMineProps) => React.JSX.Element;
4
5
  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) => JSX.Element;
6
+ declare const DragNode: (props: IDragNodeProps) => import("react").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,6 +1,7 @@
1
1
  import '../index.less';
2
+ import React from 'react';
2
3
  interface NodeElementProps {
3
4
  node?: Node;
4
5
  }
5
- declare const NodeElementForm: (props: NodeElementProps) => JSX.Element;
6
+ declare const NodeElementForm: (props: NodeElementProps) => React.JSX.Element;
6
7
  export default NodeElementForm;
@@ -1,6 +1,7 @@
1
1
  import '../index.less';
2
+ import React from 'react';
2
3
  interface NodeElementProps {
3
4
  node?: Node;
4
5
  }
5
- declare const NodeElementNormal: (props: NodeElementProps) => JSX.Element;
6
+ declare const NodeElementNormal: (props: NodeElementProps) => React.JSX.Element;
6
7
  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,7 +1,8 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
3
  interface INodeContextMenuProps {
3
4
  graph: any;
4
5
  data: any;
5
6
  }
6
- declare const NodeContextMenu: (props: INodeContextMenuProps) => JSX.Element;
7
+ declare const NodeContextMenu: (props: INodeContextMenuProps) => React.JSX.Element;
7
8
  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,7 +1,10 @@
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";
3
6
  import _inherits from "@babel/runtime/helpers/esm/inherits";
4
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
5
8
  /*
6
9
  * @Author: wangxian
7
10
  * @Date: 2022-05-24 09:18:34
@@ -11,10 +14,9 @@ import { Shape, Edge } from '@antv/x6';
11
14
  import './edge.less';
12
15
  export var BaseEdge = /*#__PURE__*/function (_Shape$Edge) {
13
16
  _inherits(BaseEdge, _Shape$Edge);
14
- var _super = _createSuper(BaseEdge);
15
17
  function BaseEdge() {
16
18
  _classCallCheck(this, BaseEdge);
17
- return _super.apply(this, arguments);
19
+ return _callSuper(this, BaseEdge, arguments);
18
20
  }
19
21
  _createClass(BaseEdge, [{
20
22
  key: "isGroupEdge",
@@ -28,10 +30,9 @@ export var BaseEdge = /*#__PURE__*/function (_Shape$Edge) {
28
30
  }(Shape.Edge);
29
31
  export var DPEdge = /*#__PURE__*/function (_BaseEdge) {
30
32
  _inherits(DPEdge, _BaseEdge);
31
- var _super2 = _createSuper(DPEdge);
32
33
  function DPEdge() {
33
34
  _classCallCheck(this, DPEdge);
34
- return _super2.apply(this, arguments);
35
+ return _callSuper(this, DPEdge, arguments);
35
36
  }
36
37
  return _createClass(DPEdge);
37
38
  }(BaseEdge);
@@ -54,10 +55,9 @@ DPEdge.config({
54
55
  });
55
56
  export var DPGroupEdge = /*#__PURE__*/function (_DPEdge) {
56
57
  _inherits(DPGroupEdge, _DPEdge);
57
- var _super3 = _createSuper(DPGroupEdge);
58
58
  function DPGroupEdge() {
59
59
  _classCallCheck(this, DPGroupEdge);
60
- return _super3.apply(this, arguments);
60
+ return _callSuper(this, DPGroupEdge, 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,16 +1,18 @@
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";
3
6
  import _inherits from "@babel/runtime/helpers/esm/inherits";
4
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
5
8
  import { Dom, Node } from '@antv/x6';
6
9
  import { ReactShape } from '@antv/x6-react-shape';
7
10
  import { NODE_WIDTH, NODE_HEIGHT } from '../../constant';
8
11
  export var BaseNode = /*#__PURE__*/function (_ReactShape) {
9
12
  _inherits(BaseNode, _ReactShape);
10
- var _super = _createSuper(BaseNode);
11
13
  function BaseNode() {
12
14
  _classCallCheck(this, BaseNode);
13
- return _super.apply(this, arguments);
15
+ return _callSuper(this, BaseNode, arguments);
14
16
  }
15
17
  _createClass(BaseNode, [{
16
18
  key: "isGroup",
@@ -24,10 +26,9 @@ export var BaseNode = /*#__PURE__*/function (_ReactShape) {
24
26
  }(ReactShape);
25
27
  export var DPNode = /*#__PURE__*/function (_BaseNode) {
26
28
  _inherits(DPNode, _BaseNode);
27
- var _super2 = _createSuper(DPNode);
28
29
  function DPNode() {
29
30
  _classCallCheck(this, DPNode);
30
- return _super2.apply(this, arguments);
31
+ return _callSuper(this, DPNode, arguments);
31
32
  }
32
33
  _createClass(DPNode, [{
33
34
  key: "getInPorts",
@@ -109,10 +110,9 @@ DPNode.config({
109
110
  });
110
111
  export var DPGroupNode = /*#__PURE__*/function (_BaseNode2) {
111
112
  _inherits(DPGroupNode, _BaseNode2);
112
- var _super3 = _createSuper(DPGroupNode);
113
113
  function DPGroupNode() {
114
114
  _classCallCheck(this, DPGroupNode);
115
- return _super3.apply(this, arguments);
115
+ return _callSuper(this, DPGroupNode, arguments);
116
116
  }
117
117
  _createClass(DPGroupNode, [{
118
118
  key: "isGroup",
@@ -177,10 +177,9 @@ DPGroupNode.config({
177
177
  });
178
178
  export var DPNodeForm = /*#__PURE__*/function (_BaseNode3) {
179
179
  _inherits(DPNodeForm, _BaseNode3);
180
- var _super4 = _createSuper(DPNodeForm);
181
180
  function DPNodeForm() {
182
181
  _classCallCheck(this, DPNodeForm);
183
- return _super4.apply(this, arguments);
182
+ return _callSuper(this, DPNodeForm, arguments);
184
183
  }
185
184
  _createClass(DPNodeForm, [{
186
185
  key: "getInPorts",
@@ -8,9 +8,10 @@ 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";
11
13
  import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
12
14
  import _inherits from "@babel/runtime/helpers/esm/inherits";
13
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
14
15
  import _get from "@babel/runtime/helpers/esm/get";
15
16
  import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
16
17
  /*
@@ -19,6 +20,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
19
20
  * @LastEditTime: 2024-02-29 13:40:06
20
21
  */
21
22
  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)); }
22
24
  import produce from 'immer';
23
25
  import React from 'react';
24
26
  import ReactDOM from 'react-dom';
@@ -37,11 +39,10 @@ import { tr } from '../../framework/locale';
37
39
  import NodeElementForm from './comps/NodeElementForm';
38
40
  var DPGraph = /*#__PURE__*/function (_GraphCore) {
39
41
  _inherits(DPGraph, _GraphCore);
40
- var _super = _createSuper(DPGraph);
41
42
  function DPGraph(_graphData, mode) {
42
43
  var _thisSuper, _this;
43
44
  _classCallCheck(this, DPGraph);
44
- _this = _super.call(this, {
45
+ _this = _callSuper(this, DPGraph, [{
45
46
  history: true,
46
47
  frozen: true,
47
48
  grid: true,
@@ -183,7 +184,7 @@ var DPGraph = /*#__PURE__*/function (_GraphCore) {
183
184
  })), container);
184
185
  }
185
186
  }
186
- });
187
+ }]);
187
188
  _this.factory$ = {
188
189
  loading: new BehaviorSubject(false),
189
190
  running: new BehaviorSubject(false),
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
3
  import './comps/shape/connector';
3
4
  import DPGraph from './graph';
@@ -44,5 +45,5 @@ interface IDynamicPortsProps {
44
45
  */
45
46
  getDPGraphInstance?: (data: DPGraph) => void;
46
47
  }
47
- declare const DynamicPorts: (props: IDynamicPortsProps) => JSX.Element;
48
+ declare const DynamicPorts: (props: IDynamicPortsProps) => React.JSX.Element;
48
49
  export default DynamicPorts;