ronds-metadata 1.2.8 → 1.2.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Table.d.ts +2 -0
  2. package/es/comps/FormGenerator/comps/Canvas/core/index.less +23 -23
  3. package/es/comps/FormGenerator/index.d.ts +4 -0
  4. package/es/comps/FormGenerator/settings/index.d.ts +668 -49
  5. package/es/comps/JsonEdit/index.d.ts +5 -1
  6. package/es/comps/MetadataForm/index.less +1 -1
  7. package/es/comps/MetadataForm/utils.d.ts +1 -1
  8. package/package.json +1 -1
  9. package/es/api/index.js +0 -249
  10. package/es/comps/DynamicPorts/comps/ContextMenu.js +0 -44
  11. package/es/comps/DynamicPorts/comps/DragNode.js +0 -55
  12. package/es/comps/DynamicPorts/comps/GraphHandler/index.js +0 -51
  13. package/es/comps/DynamicPorts/comps/NodeElement.js +0 -30
  14. package/es/comps/DynamicPorts/comps/contextMenu/EdgeContextMenu/index.js +0 -42
  15. package/es/comps/DynamicPorts/comps/contextMenu/GraphContextMenu/index.js +0 -40
  16. package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.js +0 -55
  17. package/es/comps/DynamicPorts/comps/shape/connector.js +0 -19
  18. package/es/comps/DynamicPorts/comps/shape/edge.js +0 -91
  19. package/es/comps/DynamicPorts/comps/shape/node.js +0 -190
  20. package/es/comps/DynamicPorts/constant/index.js +0 -19
  21. package/es/comps/DynamicPorts/graph.js +0 -697
  22. package/es/comps/DynamicPorts/index.js +0 -143
  23. package/es/comps/DynamicPorts/interface.js +0 -6
  24. package/es/comps/DynamicPorts/utils.js +0 -127
  25. package/es/comps/Editable/DataCell/ButtonCell.js +0 -45
  26. package/es/comps/Editable/DataCell/ColorPicker.js +0 -33
  27. package/es/comps/Editable/DataCell/Input.js +0 -54
  28. package/es/comps/Editable/DataCell/Number.js +0 -44
  29. package/es/comps/Editable/DataCell/Select.js +0 -48
  30. package/es/comps/Editable/DataCell/Switch.js +0 -33
  31. package/es/comps/Editable/comps/EditableAction.js +0 -110
  32. package/es/comps/Editable/comps/EditableCell.js +0 -108
  33. package/es/comps/Editable/comps/EditableHeardCell.js +0 -172
  34. package/es/comps/Editable/comps/EditableRow.js +0 -118
  35. package/es/comps/Editable/comps/Texty.js +0 -277
  36. package/es/comps/Editable/index.js +0 -385
  37. package/es/comps/Editable/interface.js +0 -8
  38. package/es/comps/Editable/utils.js +0 -46
  39. package/es/comps/FileView/index.js +0 -198
  40. package/es/comps/FormGenerator/Provider.js +0 -8
  41. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Checkbox.js +0 -17
  42. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Color.js +0 -17
  43. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Date.js +0 -16
  44. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Input.js +0 -17
  45. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/List.js +0 -17
  46. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/MutiSelect.js +0 -55
  47. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Number.js +0 -14
  48. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Obj.js +0 -50
  49. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Password.js +0 -17
  50. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Radio.js +0 -17
  51. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Select.js +0 -55
  52. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Switch.js +0 -13
  53. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/TextArea.js +0 -14
  54. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Upload.js +0 -17
  55. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/HOC/index.js +0 -250
  56. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/index.js +0 -60
  57. package/es/comps/FormGenerator/comps/Canvas/core/index.js +0 -313
  58. package/es/comps/FormGenerator/comps/Canvas/index.js +0 -216
  59. package/es/comps/FormGenerator/comps/Settings/index.js +0 -150
  60. package/es/comps/FormGenerator/comps/Sidebar/Elements.js +0 -48
  61. package/es/comps/FormGenerator/comps/Sidebar/index.js +0 -37
  62. package/es/comps/FormGenerator/index.js +0 -56
  63. package/es/comps/FormGenerator/settings/index.js +0 -303
  64. package/es/comps/FormGenerator/settings/ruleConfig.js +0 -557
  65. package/es/comps/FormGenerator/transformer.js +0 -214
  66. package/es/comps/Icons/index.js +0 -23
  67. package/es/comps/JsonEdit/constant/index.js +0 -87
  68. package/es/comps/JsonEdit/index.js +0 -217
  69. package/es/comps/JsonView/index.js +0 -109
  70. package/es/comps/MdEdit/index.js +0 -41
  71. package/es/comps/MdNavbar/index.js +0 -180
  72. package/es/comps/MdNavbar/utils.js +0 -34
  73. package/es/comps/MdView/index.js +0 -70
  74. package/es/comps/MetadataEdit/components/MetaFieldsEdit.js +0 -419
  75. package/es/comps/MetadataEdit/components/MetaPropsEdit.js +0 -368
  76. package/es/comps/MetadataEdit/constant/index.js +0 -69
  77. package/es/comps/MetadataEdit/hooks/index.js +0 -43
  78. package/es/comps/MetadataEdit/index.js +0 -255
  79. package/es/comps/MetadataEditV2/components/MetaFieldsEdit.js +0 -237
  80. package/es/comps/MetadataEditV2/components/MetaPropsEdit.js +0 -367
  81. package/es/comps/MetadataEditV2/constant/index.js +0 -69
  82. package/es/comps/MetadataEditV2/hooks/index.js +0 -43
  83. package/es/comps/MetadataEditV2/index.js +0 -298
  84. package/es/comps/MetadataForm/DataCell/Array.js +0 -157
  85. package/es/comps/MetadataForm/DataCell/Input.js +0 -197
  86. package/es/comps/MetadataForm/DataCell/Number.js +0 -130
  87. package/es/comps/MetadataForm/DataCell/Ref.js +0 -323
  88. package/es/comps/MetadataForm/DataCell/Select.js +0 -517
  89. package/es/comps/MetadataForm/DataCell/Switch.js +0 -115
  90. package/es/comps/MetadataForm/DataCell/layout/TableArray.js +0 -359
  91. package/es/comps/MetadataForm/HOC/index.js +0 -111
  92. package/es/comps/MetadataForm/constants.js +0 -11
  93. package/es/comps/MetadataForm/hooks/index.js +0 -128
  94. package/es/comps/MetadataForm/index.js +0 -268
  95. package/es/comps/MetadataForm/interface.js +0 -8
  96. package/es/comps/MetadataForm/utils.js +0 -108
  97. package/es/comps/locales/en-US.js +0 -24
  98. package/es/comps/locales/index.js +0 -8
  99. package/es/comps/locales/zh-CN.js +0 -24
  100. package/es/config.js +0 -50
  101. package/es/framework/graph/index.js +0 -515
  102. package/es/framework/hooks/use-async-memo.js +0 -32
  103. package/es/framework/hooks/use-sync-scroll.js +0 -106
  104. package/es/framework/http/cache.js +0 -137
  105. package/es/framework/http/cancel.js +0 -44
  106. package/es/framework/http/index.js +0 -392
  107. package/es/framework/http/msgpack.js +0 -34
  108. package/es/framework/http/msgpack5/index.js +0 -84
  109. package/es/framework/http/msgpack5/lib/codecs/DateCodec.js +0 -71
  110. package/es/framework/http/msgpack5/lib/decoder.js +0 -287
  111. package/es/framework/http/msgpack5/lib/encoder.js +0 -252
  112. package/es/framework/http/msgpack5/lib/helpers.js +0 -23
  113. package/es/framework/http/msgpack5/lib/streams.js +0 -93
  114. package/es/framework/http/types.js +0 -1
  115. package/es/framework/libs/jquery.min.js +0 -4022
  116. package/es/framework/locale/dil8/di18n.js +0 -132
  117. package/es/framework/locale/dil8/index.js +0 -3
  118. package/es/framework/locale/dil8/translate.js +0 -76
  119. package/es/framework/locale/dil8/util.js +0 -17
  120. package/es/framework/locale/index.js +0 -26
  121. package/es/framework/metadata/MetadataService.js +0 -169
  122. package/es/framework/metadata/index.js +0 -384
  123. package/es/framework/rxjs-hooks/useMemoSubject.js +0 -16
  124. package/es/framework/rxjs-hooks/useObservable.js +0 -22
  125. package/es/framework/rxjs-hooks/useObservableState.js +0 -45
  126. package/es/index.js +0 -27
  127. package/es/utils.js +0 -138
@@ -1,91 +0,0 @@
1
- import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
- import _createClass from "@babel/runtime/helpers/esm/createClass";
3
- import _inherits from "@babel/runtime/helpers/esm/inherits";
4
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
5
-
6
- /*
7
- * @Author: wangxian
8
- * @Date: 2022-05-24 09:18:34
9
- * @LastEditTime: 2022-05-24 10:43:18
10
- */
11
- import { Shape, Edge } from '@antv/x6';
12
- import './edge.less';
13
- export var BaseEdge = /*#__PURE__*/function (_Shape$Edge) {
14
- _inherits(BaseEdge, _Shape$Edge);
15
-
16
- var _super = _createSuper(BaseEdge);
17
-
18
- function BaseEdge() {
19
- _classCallCheck(this, BaseEdge);
20
-
21
- return _super.apply(this, arguments);
22
- }
23
-
24
- _createClass(BaseEdge, [{
25
- key: "isGroupEdge",
26
- value: // eslint-disable-next-line class-methods-use-this
27
- function isGroupEdge() {
28
- return false;
29
- }
30
- }]);
31
-
32
- return BaseEdge;
33
- }(Shape.Edge);
34
- export var DPEdge = /*#__PURE__*/function (_BaseEdge) {
35
- _inherits(DPEdge, _BaseEdge);
36
-
37
- var _super2 = _createSuper(DPEdge);
38
-
39
- function DPEdge() {
40
- _classCallCheck(this, DPEdge);
41
-
42
- return _super2.apply(this, arguments);
43
- }
44
-
45
- return DPEdge;
46
- }(BaseEdge);
47
- DPEdge.config({
48
- shape: 'DPEdge',
49
- connector: {
50
- name: 'pai'
51
- },
52
- zIndex: 2,
53
- attrs: {
54
- line: {
55
- stroke: '#808080',
56
- strokeWidth: 1,
57
- targetMarker: {
58
- stroke: 'none',
59
- fill: 'none'
60
- }
61
- }
62
- }
63
- });
64
- export var DPGroupEdge = /*#__PURE__*/function (_DPEdge) {
65
- _inherits(DPGroupEdge, _DPEdge);
66
-
67
- var _super3 = _createSuper(DPGroupEdge);
68
-
69
- function DPGroupEdge() {
70
- _classCallCheck(this, DPGroupEdge);
71
-
72
- return _super3.apply(this, arguments);
73
- }
74
-
75
- _createClass(DPGroupEdge, [{
76
- key: "isGroupEdge",
77
- value: // eslint-disable-next-line class-methods-use-this
78
- function isGroupEdge() {
79
- return true;
80
- }
81
- }]);
82
-
83
- return DPGroupEdge;
84
- }(DPEdge);
85
- DPGroupEdge.config({
86
- shape: 'DPGroupEdge'
87
- });
88
- Edge.registry.register({
89
- DPEdge: DPEdge,
90
- DPGroupEdge: DPGroupEdge
91
- });
@@ -1,190 +0,0 @@
1
- import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
- import _createClass from "@babel/runtime/helpers/esm/createClass";
3
- import _inherits from "@babel/runtime/helpers/esm/inherits";
4
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
5
- import { Dom, Node } from '@antv/x6';
6
- import { ReactShape } from '@antv/x6-react-shape';
7
- import { NODE_WIDTH, NODE_HEIGHT } from '../../constant';
8
- export var BaseNode = /*#__PURE__*/function (_ReactShape) {
9
- _inherits(BaseNode, _ReactShape);
10
-
11
- var _super = _createSuper(BaseNode);
12
-
13
- function BaseNode() {
14
- _classCallCheck(this, BaseNode);
15
-
16
- return _super.apply(this, arguments);
17
- }
18
-
19
- _createClass(BaseNode, [{
20
- key: "isGroup",
21
- value: // eslint-disable-next-line class-methods-use-this
22
- function isGroup() {
23
- return false;
24
- }
25
- }]);
26
-
27
- return BaseNode;
28
- }(ReactShape);
29
- export var DPNode = /*#__PURE__*/function (_BaseNode) {
30
- _inherits(DPNode, _BaseNode);
31
-
32
- var _super2 = _createSuper(DPNode);
33
-
34
- function DPNode() {
35
- _classCallCheck(this, DPNode);
36
-
37
- return _super2.apply(this, arguments);
38
- }
39
-
40
- _createClass(DPNode, [{
41
- key: "getInPorts",
42
- value: function getInPorts() {
43
- return this.getPortsByGroup('in');
44
- }
45
- }, {
46
- key: "getOutPorts",
47
- value: function getOutPorts() {
48
- return this.getPortsByGroup('out');
49
- }
50
- }]);
51
-
52
- return DPNode;
53
- }(BaseNode);
54
- Node.registry.register('rz-rect-port', DPNode);
55
- DPNode.config({
56
- width: NODE_WIDTH,
57
- height: NODE_HEIGHT,
58
- shape: 'rz-rect-port',
59
- ports: {
60
- groups: {
61
- in: {
62
- position: {
63
- name: 'top'
64
- },
65
- zIndex: 2
66
- },
67
- out: {
68
- position: {
69
- name: 'bottom'
70
- },
71
- zIndex: 2
72
- }
73
- }
74
- },
75
- attrs: {
76
- body: {
77
- magnet: false,
78
- fill: 'none',
79
- stroke: 'none',
80
- refWidth: '100%',
81
- refHeight: '100%',
82
- zIndex: 1
83
- }
84
- },
85
- portMarkup: [{
86
- tagName: 'foreignObject',
87
- selector: 'fo',
88
- attrs: {
89
- width: 6,
90
- height: 6,
91
- x: -3,
92
- y: -3,
93
- zIndex: 10,
94
- // magnet决定是否可交互
95
- magnet: 'true'
96
- },
97
- children: [{
98
- ns: Dom.ns.xhtml,
99
- tagName: 'body',
100
- selector: 'foBody',
101
- attrs: {
102
- xmlns: Dom.ns.xhtml
103
- },
104
- style: {
105
- width: '100%',
106
- height: '100%'
107
- },
108
- children: [{
109
- tagName: 'span',
110
- selector: 'content',
111
- style: {
112
- width: '100%',
113
- height: '100%'
114
- }
115
- }]
116
- }]
117
- }]
118
- });
119
- export var DPGroupNode = /*#__PURE__*/function (_BaseNode2) {
120
- _inherits(DPGroupNode, _BaseNode2);
121
-
122
- var _super3 = _createSuper(DPGroupNode);
123
-
124
- function DPGroupNode() {
125
- _classCallCheck(this, DPGroupNode);
126
-
127
- return _super3.apply(this, arguments);
128
- }
129
-
130
- _createClass(DPGroupNode, [{
131
- key: "isGroup",
132
- value: // eslint-disable-next-line class-methods-use-this
133
- function isGroup() {
134
- return true;
135
- }
136
- }]);
137
-
138
- return DPGroupNode;
139
- }(BaseNode);
140
- DPGroupNode.config({
141
- ports: {
142
- groups: {
143
- in: {
144
- position: {
145
- name: 'top'
146
- },
147
- zIndex: 2
148
- },
149
- out: {
150
- position: {
151
- name: 'bottom'
152
- },
153
- zIndex: 2
154
- }
155
- }
156
- },
157
- portMarkup: [{
158
- tagName: 'foreignObject',
159
- selector: 'fo',
160
- attrs: {
161
- width: 6,
162
- height: 6,
163
- x: -3,
164
- y: -3,
165
- zIndex: 10,
166
- // magnet决定是否可交互
167
- magnet: 'true'
168
- },
169
- children: [{
170
- ns: Dom.ns.xhtml,
171
- tagName: 'body',
172
- selector: 'foBody',
173
- attrs: {
174
- xmlns: Dom.ns.xhtml
175
- },
176
- style: {
177
- width: '100%',
178
- height: '100%'
179
- },
180
- children: [{
181
- tagName: 'span',
182
- selector: 'content',
183
- style: {
184
- width: '100%',
185
- height: '100%'
186
- }
187
- }]
188
- }]
189
- }]
190
- });
@@ -1,19 +0,0 @@
1
- /*
2
- * @Author: wangxian
3
- * @Date: 2022-05-24 08:48:57
4
- * @LastEditTime: 2022-05-25 11:37:48
5
- */
6
- export var GROUP_HORIZONTAL__PADDING = 24; // 分组横向 padding
7
-
8
- export var GROUP_VERTICAL__PADDING = 40; // 分组纵向 padding
9
-
10
- export var NODE_WIDTH = 180;
11
- export var NODE_HEIGHT = 32; // 触发画布重新渲染事件
12
-
13
- export var RERENDER_EVENT = 'RERENDER_EVENT';
14
- /*
15
- * 以下是拖拽相关
16
- */
17
-
18
- export var DRAGGABLE_COMPONENT = 'DRAGGABLE_COMPONENT';
19
- export var DRAGGABLE_MODEL = 'DRAGGABLE_MODEL';