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.
Files changed (131) hide show
  1. package/es/api/index.js +83 -131
  2. package/es/comps/DynamicPorts/comps/ContextMenu.js +3 -11
  3. package/es/comps/DynamicPorts/comps/DragNode.js +3 -8
  4. package/es/comps/DynamicPorts/comps/GraphHandler/index.js +4 -5
  5. package/es/comps/DynamicPorts/comps/NodeElement.js +1 -4
  6. package/es/comps/DynamicPorts/comps/contextMenu/EdgeContextMenu/index.js +3 -6
  7. package/es/comps/DynamicPorts/comps/contextMenu/GraphContextMenu/index.js +3 -7
  8. package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.js +18 -21
  9. package/es/comps/DynamicPorts/comps/shape/edge.js +5 -18
  10. package/es/comps/DynamicPorts/comps/shape/node.js +4 -17
  11. package/es/comps/DynamicPorts/constant/index.js +2 -5
  12. package/es/comps/DynamicPorts/graph.d.ts +2 -2
  13. package/es/comps/DynamicPorts/graph.js +228 -312
  14. package/es/comps/DynamicPorts/index.js +39 -58
  15. package/es/comps/DynamicPorts/utils.js +21 -25
  16. package/es/comps/Editable/DataCell/ButtonCell.js +4 -10
  17. package/es/comps/Editable/DataCell/ColorPicker.js +2 -7
  18. package/es/comps/Editable/DataCell/Input.js +5 -14
  19. package/es/comps/Editable/DataCell/Number.js +3 -10
  20. package/es/comps/Editable/DataCell/Select.js +7 -14
  21. package/es/comps/Editable/DataCell/Switch.js +2 -7
  22. package/es/comps/Editable/comps/EditableAction.js +8 -12
  23. package/es/comps/Editable/comps/EditableCell.js +16 -26
  24. package/es/comps/Editable/comps/EditableHeardCell.js +21 -34
  25. package/es/comps/Editable/comps/EditableRow.js +49 -59
  26. package/es/comps/Editable/comps/Texty.js +40 -73
  27. package/es/comps/Editable/index.js +67 -112
  28. package/es/comps/Editable/interface.d.ts +1 -1
  29. package/es/comps/Editable/utils.js +0 -1
  30. package/es/comps/FileView/index.js +65 -101
  31. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Checkbox.js +8 -13
  32. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Color.js +8 -4
  33. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Date.js +6 -2
  34. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Input.js +8 -4
  35. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/List.js +6 -11
  36. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/MutiSelect.js +6 -10
  37. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Number.js +6 -2
  38. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Obj.js +6 -11
  39. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Password.js +8 -4
  40. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Radio.js +8 -13
  41. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Select.js +6 -10
  42. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Switch.js +6 -2
  43. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Table.js +6 -11
  44. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/TextArea.js +6 -3
  45. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Upload.js +2 -5
  46. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/HOC/index.js +86 -109
  47. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/index.js +3 -7
  48. package/es/comps/FormGenerator/comps/Canvas/core/index.js +54 -91
  49. package/es/comps/FormGenerator/comps/Canvas/index.js +8 -15
  50. package/es/comps/FormGenerator/comps/Settings/index.js +16 -30
  51. package/es/comps/FormGenerator/comps/Sidebar/Elements.js +23 -22
  52. package/es/comps/FormGenerator/comps/Sidebar/index.js +6 -2
  53. package/es/comps/FormGenerator/index.js +3 -9
  54. package/es/comps/FormGenerator/interface.d.ts +1 -1
  55. package/es/comps/FormGenerator/settings/index.js +12 -11
  56. package/es/comps/FormGenerator/settings/ruleConfig.js +0 -1
  57. package/es/comps/FormGenerator/transformer.js +40 -105
  58. package/es/comps/Icons/index.js +4 -7
  59. package/es/comps/JsonEdit/index.js +25 -50
  60. package/es/comps/JsonView/index.js +7 -21
  61. package/es/comps/MdEdit/index.js +7 -10
  62. package/es/comps/MdEditPro/index.d.ts +10 -0
  63. package/es/comps/MdEditPro/index.js +22 -0
  64. package/es/comps/MdEditPro/index.less +74 -0
  65. package/es/comps/MdNavbar/index.js +17 -40
  66. package/es/comps/MdNavbar/utils.js +0 -4
  67. package/es/comps/MdView/index.js +7 -11
  68. package/es/comps/MetadataEdit/components/MetaFieldsEdit.js +129 -183
  69. package/es/comps/MetadataEdit/components/MetaPropsEdit.js +11 -27
  70. package/es/comps/MetadataEdit/hooks/index.js +3 -11
  71. package/es/comps/MetadataEdit/index.js +25 -58
  72. package/es/comps/MetadataEditV2/components/MetaFieldsEdit.js +17 -33
  73. package/es/comps/MetadataEditV2/components/MetaPropsEdit.js +15 -29
  74. package/es/comps/MetadataEditV2/hooks/index.js +5 -12
  75. package/es/comps/MetadataEditV2/index.js +30 -65
  76. package/es/comps/MetadataForm/DataCell/Array.js +12 -23
  77. package/es/comps/MetadataForm/DataCell/Input.js +23 -39
  78. package/es/comps/MetadataForm/DataCell/Number.js +10 -21
  79. package/es/comps/MetadataForm/DataCell/Ref.js +87 -121
  80. package/es/comps/MetadataForm/DataCell/Select.js +131 -226
  81. package/es/comps/MetadataForm/DataCell/Switch.js +7 -14
  82. package/es/comps/MetadataForm/DataCell/layout/TableArray.js +98 -169
  83. package/es/comps/MetadataForm/HOC/index.js +20 -37
  84. package/es/comps/MetadataForm/hooks/index.js +12 -38
  85. package/es/comps/MetadataForm/index.js +37 -72
  86. package/es/comps/MetadataForm/interface.d.ts +3 -3
  87. package/es/comps/MetadataForm/utils.d.ts +1 -0
  88. package/es/comps/MetadataForm/utils.js +12 -14
  89. package/es/comps/Split/index.js +40 -38
  90. package/es/config.js +0 -4
  91. package/es/framework/RxStore/demo/index.js +9 -10
  92. package/es/framework/RxStore/hooks.d.ts +9 -9
  93. package/es/framework/RxStore/hooks.js +10 -35
  94. package/es/framework/RxStore/store.d.ts +4 -4
  95. package/es/framework/RxStore/store.js +0 -10
  96. package/es/framework/fg/index.js +18 -80
  97. package/es/framework/fg/interface.d.ts +2 -2
  98. package/es/framework/fg/utils.js +0 -10
  99. package/es/framework/graph/index.d.ts +2 -2
  100. package/es/framework/graph/index.js +55 -110
  101. package/es/framework/hooks/use-async-memo.js +3 -7
  102. package/es/framework/hooks/use-sync-scroll.js +2 -15
  103. package/es/framework/http/cache.js +25 -32
  104. package/es/framework/http/cancel.js +1 -7
  105. package/es/framework/http/index.js +22 -82
  106. package/es/framework/http/msgpack.js +0 -4
  107. package/es/framework/http/msgpack5/index.js +2 -12
  108. package/es/framework/http/msgpack5/lib/codecs/DateCodec.js +1 -13
  109. package/es/framework/http/msgpack5/lib/decoder.js +10 -68
  110. package/es/framework/http/msgpack5/lib/encoder.js +8 -36
  111. package/es/framework/http/msgpack5/lib/helpers.js +3 -2
  112. package/es/framework/http/msgpack5/lib/streams.js +0 -18
  113. package/es/framework/libs/jquery.min.js +1009 -1696
  114. package/es/framework/locale/dil8/di18n.js +4 -15
  115. package/es/framework/locale/dil8/translate.js +0 -14
  116. package/es/framework/locale/dil8/util.js +0 -3
  117. package/es/framework/locale/index.js +2 -3
  118. package/es/framework/metadata/MetadataService.js +39 -78
  119. package/es/framework/metadata/index.js +4 -70
  120. package/es/framework/rxjs-hooks/useMemoSubject.js +0 -2
  121. package/es/framework/rxjs-hooks/useObservable.js +2 -4
  122. package/es/framework/rxjs-hooks/useObservableState.js +8 -14
  123. package/es/index.d.ts +1 -0
  124. package/es/index.js +2 -1
  125. package/es/utils.js +58 -97
  126. package/package.json +4 -2
  127. package/es/comps/MdEdit/plugin/EditContent.d.ts +0 -5
  128. package/es/comps/MdEdit/plugin/EditContent.js +0 -34
  129. package/es/comps/MdEdit/plugin/Mark.d.ts +0 -7
  130. package/es/comps/MdEdit/plugin/Mark.js +0 -60
  131. 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: // eslint-disable-next-line class-methods-use-this
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: // eslint-disable-next-line class-methods-use-this
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
- declare type NodeMeta = ReturnType<typeof formatGraphData>['nodes'][number];
9
- declare type EdgeMeta = ReturnType<typeof formatGraphData>['edges'][number];
8
+ type NodeMeta = ReturnType<typeof formatGraphData>['nodes'][number];
9
+ type EdgeMeta = ReturnType<typeof formatGraphData>['edges'][number];
10
10
  interface IFactory$ {
11
11
  /**
12
12
  * 实验图加载状态