ronds-metadata 1.2.37 → 1.2.39
Sign up to get free protection for your applications and to get access to all the features.
- package/es/api/index.js +83 -131
- package/es/comps/DynamicPorts/comps/ContextMenu.js +3 -11
- package/es/comps/DynamicPorts/comps/DragNode.js +3 -8
- package/es/comps/DynamicPorts/comps/GraphHandler/index.js +4 -5
- package/es/comps/DynamicPorts/comps/NodeElement.js +1 -4
- package/es/comps/DynamicPorts/comps/contextMenu/EdgeContextMenu/index.js +3 -6
- package/es/comps/DynamicPorts/comps/contextMenu/GraphContextMenu/index.js +3 -7
- package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.js +18 -21
- package/es/comps/DynamicPorts/comps/shape/edge.js +5 -18
- package/es/comps/DynamicPorts/comps/shape/node.js +4 -17
- package/es/comps/DynamicPorts/constant/index.js +2 -5
- package/es/comps/DynamicPorts/graph.d.ts +2 -2
- package/es/comps/DynamicPorts/graph.js +228 -312
- package/es/comps/DynamicPorts/index.js +39 -58
- package/es/comps/DynamicPorts/utils.js +21 -25
- package/es/comps/Editable/DataCell/ButtonCell.js +4 -10
- package/es/comps/Editable/DataCell/ColorPicker.js +2 -7
- package/es/comps/Editable/DataCell/Input.js +5 -14
- package/es/comps/Editable/DataCell/Number.js +3 -10
- package/es/comps/Editable/DataCell/Select.js +7 -14
- package/es/comps/Editable/DataCell/Switch.js +2 -7
- package/es/comps/Editable/comps/EditableAction.js +8 -12
- package/es/comps/Editable/comps/EditableCell.js +16 -26
- package/es/comps/Editable/comps/EditableHeardCell.js +21 -34
- package/es/comps/Editable/comps/EditableRow.js +49 -59
- package/es/comps/Editable/comps/Texty.js +40 -73
- package/es/comps/Editable/index.js +67 -112
- package/es/comps/Editable/interface.d.ts +1 -1
- package/es/comps/Editable/utils.js +0 -1
- package/es/comps/FileView/index.js +65 -101
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Checkbox.js +8 -13
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Color.js +8 -4
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Date.js +6 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Input.js +8 -4
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/List.js +6 -11
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/MutiSelect.js +6 -10
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Number.js +6 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Obj.js +6 -11
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Password.js +8 -4
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Radio.js +8 -13
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Select.js +6 -10
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Switch.js +6 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Table.js +6 -11
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/TextArea.js +6 -3
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Upload.js +2 -5
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/HOC/index.js +86 -109
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/index.js +3 -7
- package/es/comps/FormGenerator/comps/Canvas/core/index.js +54 -91
- package/es/comps/FormGenerator/comps/Canvas/index.js +8 -15
- package/es/comps/FormGenerator/comps/Settings/index.js +16 -30
- package/es/comps/FormGenerator/comps/Sidebar/Elements.js +23 -22
- package/es/comps/FormGenerator/comps/Sidebar/index.js +6 -2
- package/es/comps/FormGenerator/index.js +3 -9
- package/es/comps/FormGenerator/interface.d.ts +1 -1
- package/es/comps/FormGenerator/settings/index.js +12 -11
- package/es/comps/FormGenerator/settings/ruleConfig.js +0 -1
- package/es/comps/FormGenerator/transformer.js +40 -105
- package/es/comps/Icons/index.js +4 -7
- package/es/comps/JsonEdit/index.js +25 -50
- package/es/comps/JsonView/index.js +7 -21
- package/es/comps/MdEdit/index.js +7 -10
- package/es/comps/MdEditPro/index.d.ts +10 -0
- package/es/comps/MdEditPro/index.js +22 -0
- package/es/comps/MdEditPro/index.less +74 -0
- package/es/comps/MdNavbar/index.js +17 -40
- package/es/comps/MdNavbar/utils.js +0 -4
- package/es/comps/MdView/index.js +7 -11
- package/es/comps/MetadataEdit/components/MetaFieldsEdit.js +129 -183
- package/es/comps/MetadataEdit/components/MetaPropsEdit.js +11 -27
- package/es/comps/MetadataEdit/hooks/index.js +3 -11
- package/es/comps/MetadataEdit/index.js +25 -58
- package/es/comps/MetadataEditV2/components/MetaFieldsEdit.js +17 -33
- package/es/comps/MetadataEditV2/components/MetaPropsEdit.js +15 -29
- package/es/comps/MetadataEditV2/hooks/index.js +5 -12
- package/es/comps/MetadataEditV2/index.js +30 -65
- package/es/comps/MetadataForm/DataCell/Array.js +12 -23
- package/es/comps/MetadataForm/DataCell/Input.js +23 -39
- package/es/comps/MetadataForm/DataCell/Number.js +10 -21
- package/es/comps/MetadataForm/DataCell/Ref.js +87 -121
- package/es/comps/MetadataForm/DataCell/Select.js +131 -226
- package/es/comps/MetadataForm/DataCell/Switch.js +7 -14
- package/es/comps/MetadataForm/DataCell/layout/TableArray.js +98 -169
- package/es/comps/MetadataForm/HOC/index.js +20 -37
- package/es/comps/MetadataForm/hooks/index.js +12 -38
- package/es/comps/MetadataForm/index.js +37 -72
- package/es/comps/MetadataForm/interface.d.ts +3 -3
- package/es/comps/MetadataForm/utils.d.ts +1 -0
- package/es/comps/MetadataForm/utils.js +12 -14
- package/es/comps/Split/index.js +40 -38
- package/es/config.js +0 -4
- package/es/framework/RxStore/demo/index.js +9 -10
- package/es/framework/RxStore/hooks.d.ts +9 -9
- package/es/framework/RxStore/hooks.js +10 -35
- package/es/framework/RxStore/store.d.ts +4 -4
- package/es/framework/RxStore/store.js +0 -10
- package/es/framework/fg/index.js +18 -80
- package/es/framework/fg/interface.d.ts +2 -2
- package/es/framework/fg/utils.js +0 -10
- package/es/framework/graph/index.d.ts +2 -2
- package/es/framework/graph/index.js +55 -110
- package/es/framework/hooks/use-async-memo.js +3 -7
- package/es/framework/hooks/use-sync-scroll.js +2 -15
- package/es/framework/http/cache.js +25 -32
- package/es/framework/http/cancel.js +1 -7
- package/es/framework/http/index.js +22 -82
- package/es/framework/http/msgpack.js +0 -4
- package/es/framework/http/msgpack5/index.js +2 -12
- package/es/framework/http/msgpack5/lib/codecs/DateCodec.js +1 -13
- package/es/framework/http/msgpack5/lib/decoder.js +10 -68
- package/es/framework/http/msgpack5/lib/encoder.js +8 -36
- package/es/framework/http/msgpack5/lib/helpers.js +3 -2
- package/es/framework/http/msgpack5/lib/streams.js +0 -18
- package/es/framework/libs/jquery.min.js +1009 -1696
- package/es/framework/locale/dil8/di18n.js +4 -15
- package/es/framework/locale/dil8/translate.js +0 -14
- package/es/framework/locale/dil8/util.js +0 -3
- package/es/framework/locale/index.js +2 -3
- package/es/framework/metadata/MetadataService.js +39 -78
- package/es/framework/metadata/index.js +4 -70
- package/es/framework/rxjs-hooks/useMemoSubject.js +0 -2
- package/es/framework/rxjs-hooks/useObservable.js +2 -4
- package/es/framework/rxjs-hooks/useObservableState.js +8 -14
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/utils.js +58 -97
- package/package.json +4 -2
- package/es/comps/MdEdit/plugin/EditContent.d.ts +0 -5
- package/es/comps/MdEdit/plugin/EditContent.js +0 -34
- package/es/comps/MdEdit/plugin/Mark.d.ts +0 -7
- package/es/comps/MdEdit/plugin/Mark.js +0 -60
- package/es/framework/libs/iconfont/iconfont.json +0 -401
@@ -7,36 +7,28 @@ import { ReactShape } from '@antv/x6-react-shape';
|
|
7
7
|
import { NODE_WIDTH, NODE_HEIGHT } from '../../constant';
|
8
8
|
export var BaseNode = /*#__PURE__*/function (_ReactShape) {
|
9
9
|
_inherits(BaseNode, _ReactShape);
|
10
|
-
|
11
10
|
var _super = _createSuper(BaseNode);
|
12
|
-
|
13
11
|
function BaseNode() {
|
14
12
|
_classCallCheck(this, BaseNode);
|
15
|
-
|
16
13
|
return _super.apply(this, arguments);
|
17
14
|
}
|
18
|
-
|
19
15
|
_createClass(BaseNode, [{
|
20
16
|
key: "isGroup",
|
21
|
-
value:
|
17
|
+
value:
|
18
|
+
// eslint-disable-next-line class-methods-use-this
|
22
19
|
function isGroup() {
|
23
20
|
return false;
|
24
21
|
}
|
25
22
|
}]);
|
26
|
-
|
27
23
|
return BaseNode;
|
28
24
|
}(ReactShape);
|
29
25
|
export var DPNode = /*#__PURE__*/function (_BaseNode) {
|
30
26
|
_inherits(DPNode, _BaseNode);
|
31
|
-
|
32
27
|
var _super2 = _createSuper(DPNode);
|
33
|
-
|
34
28
|
function DPNode() {
|
35
29
|
_classCallCheck(this, DPNode);
|
36
|
-
|
37
30
|
return _super2.apply(this, arguments);
|
38
31
|
}
|
39
|
-
|
40
32
|
_createClass(DPNode, [{
|
41
33
|
key: "getInPorts",
|
42
34
|
value: function getInPorts() {
|
@@ -48,7 +40,6 @@ export var DPNode = /*#__PURE__*/function (_BaseNode) {
|
|
48
40
|
return this.getPortsByGroup('out');
|
49
41
|
}
|
50
42
|
}]);
|
51
|
-
|
52
43
|
return DPNode;
|
53
44
|
}(BaseNode);
|
54
45
|
Node.registry.register('rz-rect-port', DPNode);
|
@@ -118,23 +109,19 @@ DPNode.config({
|
|
118
109
|
});
|
119
110
|
export var DPGroupNode = /*#__PURE__*/function (_BaseNode2) {
|
120
111
|
_inherits(DPGroupNode, _BaseNode2);
|
121
|
-
|
122
112
|
var _super3 = _createSuper(DPGroupNode);
|
123
|
-
|
124
113
|
function DPGroupNode() {
|
125
114
|
_classCallCheck(this, DPGroupNode);
|
126
|
-
|
127
115
|
return _super3.apply(this, arguments);
|
128
116
|
}
|
129
|
-
|
130
117
|
_createClass(DPGroupNode, [{
|
131
118
|
key: "isGroup",
|
132
|
-
value:
|
119
|
+
value:
|
120
|
+
// eslint-disable-next-line class-methods-use-this
|
133
121
|
function isGroup() {
|
134
122
|
return true;
|
135
123
|
}
|
136
124
|
}]);
|
137
|
-
|
138
125
|
return DPGroupNode;
|
139
126
|
}(BaseNode);
|
140
127
|
DPGroupNode.config({
|
@@ -4,16 +4,13 @@
|
|
4
4
|
* @LastEditTime: 2022-05-25 11:37:48
|
5
5
|
*/
|
6
6
|
export var GROUP_HORIZONTAL__PADDING = 24; // 分组横向 padding
|
7
|
-
|
8
7
|
export var GROUP_VERTICAL__PADDING = 40; // 分组纵向 padding
|
9
|
-
|
10
8
|
export var NODE_WIDTH = 180;
|
11
|
-
export var NODE_HEIGHT = 32;
|
12
|
-
|
9
|
+
export var NODE_HEIGHT = 32;
|
10
|
+
// 触发画布重新渲染事件
|
13
11
|
export var RERENDER_EVENT = 'RERENDER_EVENT';
|
14
12
|
/*
|
15
13
|
* 以下是拖拽相关
|
16
14
|
*/
|
17
|
-
|
18
15
|
export var DRAGGABLE_COMPONENT = 'DRAGGABLE_COMPONENT';
|
19
16
|
export var DRAGGABLE_MODEL = 'DRAGGABLE_MODEL';
|
@@ -5,8 +5,8 @@ import { BaseEdge, DPEdge } from './comps/shape/edge';
|
|
5
5
|
import { BaseNode, DPNode } from './comps/shape/node';
|
6
6
|
import { NDPGraph } from './interface';
|
7
7
|
import { formatGraphData } from './utils';
|
8
|
-
|
9
|
-
|
8
|
+
type NodeMeta = ReturnType<typeof formatGraphData>['nodes'][number];
|
9
|
+
type EdgeMeta = ReturnType<typeof formatGraphData>['edges'][number];
|
10
10
|
interface IFactory$ {
|
11
11
|
/**
|
12
12
|
* 实验图加载状态
|