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
@@ -1,8 +1,8 @@
1
1
  import _typeof from "@babel/runtime/helpers/esm/typeof";
2
- /*
3
- * @Author: wangxian
4
- * @Date: 2022-05-07 11:04:42
5
- * @LastEditTime: 2022-05-07 11:04:43
2
+ /*
3
+ * @Author: wangxian
4
+ * @Date: 2022-05-07 11:04:42
5
+ * @LastEditTime: 2022-05-07 11:04:43
6
6
  */
7
7
  /*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */
8
8
  !function (e, t) {
@@ -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
  import T from './translate';
6
9
  import { addClass } from './util';
7
10
  var CLASS_ATTRIBUTE = 'i18n-class';
@@ -12,12 +15,11 @@ var LOCALE_PATTERN = /\$\{locale}/g;
12
15
  var noop = function noop() {};
13
16
  export var DI18n = /*#__PURE__*/function (_T) {
14
17
  _inherits(DI18n, _T);
15
- var _super = _createSuper(DI18n);
16
18
  function DI18n() {
17
19
  var _this;
18
20
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
19
21
  _classCallCheck(this, DI18n);
20
- _this = _super.call(this, options);
22
+ _this = _callSuper(this, DI18n, [options]);
21
23
  // public locale: string;
22
24
  // public messages: any;
23
25
  _this.isReplace = void 0;
@@ -27,7 +27,7 @@ export var MetadataService = /*#__PURE__*/function () {
27
27
  /** 获取元数据列表 */
28
28
  _createClass(MetadataService, [{
29
29
  key: "GetMetadataList",
30
- value: function () {
30
+ value: (function () {
31
31
  var _GetMetadataList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(keyWords) {
32
32
  return _regeneratorRuntime.wrap(function _callee$(_context) {
33
33
  while (1) switch (_context.prev = _context.next) {
@@ -43,10 +43,10 @@ export var MetadataService = /*#__PURE__*/function () {
43
43
  return _GetMetadataList.apply(this, arguments);
44
44
  }
45
45
  return GetMetadataList;
46
- }() /** 通过元数据Id获取元数据详情 */
46
+ }() /** 通过元数据Id获取元数据详情 */)
47
47
  }, {
48
48
  key: "GetMetadataDetailById",
49
- value: function () {
49
+ value: (function () {
50
50
  var _GetMetadataDetailById = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(metadataId) {
51
51
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
52
52
  while (1) switch (_context2.prev = _context2.next) {
@@ -62,10 +62,10 @@ export var MetadataService = /*#__PURE__*/function () {
62
62
  return _GetMetadataDetailById.apply(this, arguments);
63
63
  }
64
64
  return GetMetadataDetailById;
65
- }() /** 添加元数据 */
65
+ }() /** 添加元数据 */)
66
66
  }, {
67
67
  key: "SaveMetadata",
68
- value: function () {
68
+ value: (function () {
69
69
  var _SaveMetadata = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(data, metadataTag) {
70
70
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
71
71
  while (1) switch (_context3.prev = _context3.next) {
@@ -81,10 +81,10 @@ export var MetadataService = /*#__PURE__*/function () {
81
81
  return _SaveMetadata.apply(this, arguments);
82
82
  }
83
83
  return SaveMetadata;
84
- }() /** 获取元数据的值 */
84
+ }() /** 获取元数据的值 */)
85
85
  }, {
86
86
  key: "GetMetadataObjList",
87
- value: function () {
87
+ value: (function () {
88
88
  var _GetMetadataObjList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(data) {
89
89
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
90
90
  while (1) switch (_context4.prev = _context4.next) {
@@ -100,10 +100,10 @@ export var MetadataService = /*#__PURE__*/function () {
100
100
  return _GetMetadataObjList.apply(this, arguments);
101
101
  }
102
102
  return GetMetadataObjList;
103
- }() /** 通过扩展规则获取枚举类型的值 */
103
+ }() /** 通过扩展规则获取枚举类型的值 */)
104
104
  }, {
105
105
  key: "GetEnumDataByUrl",
106
- value: function () {
106
+ value: (function () {
107
107
  var _GetEnumDataByUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(url) {
108
108
  var method,
109
109
  body,
@@ -124,10 +124,10 @@ export var MetadataService = /*#__PURE__*/function () {
124
124
  return _GetEnumDataByUrl.apply(this, arguments);
125
125
  }
126
126
  return GetEnumDataByUrl;
127
- }() /** 获取执行状态 */
127
+ }() /** 获取执行状态 */)
128
128
  }, {
129
129
  key: "GetGraphStatus",
130
- value: function () {
130
+ value: (function () {
131
131
  var _GetGraphStatus = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(data) {
132
132
  return _regeneratorRuntime.wrap(function _callee6$(_context6) {
133
133
  while (1) switch (_context6.prev = _context6.next) {
@@ -143,10 +143,10 @@ export var MetadataService = /*#__PURE__*/function () {
143
143
  return _GetGraphStatus.apply(this, arguments);
144
144
  }
145
145
  return GetGraphStatus;
146
- }() /** 获取执行状态 */
146
+ }() /** 获取执行状态 */)
147
147
  }, {
148
148
  key: "StopGraphRun",
149
- value: function () {
149
+ value: (function () {
150
150
  var _StopGraphRun = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(data) {
151
151
  return _regeneratorRuntime.wrap(function _callee7$(_context7) {
152
152
  while (1) switch (_context7.prev = _context7.next) {
@@ -162,7 +162,7 @@ export var MetadataService = /*#__PURE__*/function () {
162
162
  return _StopGraphRun.apply(this, arguments);
163
163
  }
164
164
  return StopGraphRun;
165
- }()
165
+ }())
166
166
  }]);
167
167
  return MetadataService;
168
168
  }();
@@ -1,7 +1,10 @@
1
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
2
+ import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
3
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
1
4
  import _inherits from "@babel/runtime/helpers/esm/inherits";
2
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
3
5
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
4
6
  import _createClass from "@babel/runtime/helpers/esm/createClass";
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
  export var Enum = /*#__PURE__*/function () {
6
9
  function Enum(value) {
7
10
  _classCallCheck(this, Enum);
@@ -16,12 +19,11 @@ export var Enum = /*#__PURE__*/function () {
16
19
  }], [{
17
20
  key: "makeEnum",
18
21
  value: function makeEnum(name, _enum) {
19
- var result = /*#__PURE__*/function (_Enum) {
20
- _inherits(result, _Enum);
21
- var _super = _createSuper(result);
22
+ var result = /*#__PURE__*/function (_Enum2) {
23
+ _inherits(result, _Enum2);
22
24
  function result(value) {
23
25
  _classCallCheck(this, result);
24
- return _super.call(this, value);
26
+ return _callSuper(this, result, [value]);
25
27
  }
26
28
  _createClass(result, [{
27
29
  key: "__type__",
@@ -81,10 +83,9 @@ export var MetaObject = /*#__PURE__*/function () {
81
83
  value: function makeType(name) {
82
84
  var result = /*#__PURE__*/function (_MetaObject) {
83
85
  _inherits(result, _MetaObject);
84
- var _super2 = _createSuper(result);
85
86
  function result() {
86
87
  _classCallCheck(this, result);
87
- return _super2.apply(this, arguments);
88
+ return _callSuper(this, result, arguments);
88
89
  }
89
90
  _createClass(result, [{
90
91
  key: "__type__",
@@ -102,12 +103,11 @@ export var MetaObject = /*#__PURE__*/function () {
102
103
  }, {
103
104
  key: "makeArray",
104
105
  value: function makeArray() {
105
- var result = /*#__PURE__*/function (_Array) {
106
- _inherits(result, _Array);
107
- var _super3 = _createSuper(result);
106
+ var result = /*#__PURE__*/function (_Array2) {
107
+ _inherits(result, _Array2);
108
108
  function result(items) {
109
109
  _classCallCheck(this, result);
110
- return _super3.call(this, items);
110
+ return _callSuper(this, result, [items]);
111
111
  }
112
112
  _createClass(result, [{
113
113
  key: "type",
@@ -193,13 +193,12 @@ export var MetadataProvider = /*#__PURE__*/function () {
193
193
  }]);
194
194
  return MetadataProvider;
195
195
  }();
196
- export var JsonMetadataProvider = /*#__PURE__*/function (_MetadataProvider) {
197
- _inherits(JsonMetadataProvider, _MetadataProvider);
198
- var _super4 = _createSuper(JsonMetadataProvider);
196
+ export var JsonMetadataProvider = /*#__PURE__*/function (_MetadataProvider2) {
197
+ _inherits(JsonMetadataProvider, _MetadataProvider2);
199
198
  function JsonMetadataProvider() {
200
199
  var _this2;
201
200
  _classCallCheck(this, JsonMetadataProvider);
202
- _this2 = _super4.call(this);
201
+ _this2 = _callSuper(this, JsonMetadataProvider);
203
202
  _this2.types['str'] = String;
204
203
  _this2.types['int'] = Number;
205
204
  _this2.types['double'] = Number;
@@ -1,103 +1,103 @@
1
- /*
2
- * @Author: wangxian
3
- * @Date: 2021-09-18 14:15:04
4
- * @LastEditTime: 2023-08-22 16:30:28
5
- */
6
- export type IMetaType = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array' | string;
7
-
8
- export type IMetaData = {
9
- /**
10
- * 类名称/属性名称
11
- */
12
- id: string;
13
- /**
14
- * 类型
15
- */
16
- type: IMetaType;
17
- /**
18
- * 属性
19
- */
20
- properties?: IMetaProperties[];
21
-
22
- /**
23
- * 引用id
24
- */
25
- refId?: string;
26
- /**
27
- * 静态的变量
28
- */
29
- fields?: IMetaFileds[];
30
- /**
31
- * 内部类
32
- */
33
- types?: IMetaData[];
34
- };
35
-
36
- export type IMetaProperties = {
37
- /**
38
- * 类规则名称
39
- */
40
- id: string;
41
-
42
- /**
43
- * 类型
44
- */
45
- type: IMetaType;
46
-
47
- /**
48
- * 引用id
49
- */
50
- refId?: string;
51
- /**
52
- * 静态的变量
53
- */
54
- fields?: IMetaFileds[];
55
- /**
56
- * 枚举值
57
- */
58
- enum?: { value: string }[];
59
- /**
60
- * 数组类型
61
- */
62
- items?: { type: IMetaType; refId?: string };
63
- };
64
-
65
- export type IMetaFileds = {
66
- /**
67
- * 规则名称
68
- */
69
- id: string;
70
-
71
- /**
72
- * 类型
73
- */
74
- type: IMetaType;
75
-
76
- /**
77
- * 引用id
78
- */
79
- refId?: string;
80
-
81
- /**
82
- * 规则值
83
- */
84
- value: any;
85
- };
86
-
87
- export interface IAPI {
88
- // 获取元数据列表
89
- GetMetadataList(keyWords?: string[]): Promise<{ id: string; name: string; schema: string }[]>;
90
- // 通过元数据Id获取元数据详情
91
- GetMetadataDetailById(metadataId: string): Promise<any>;
92
- // 新增元数据
93
- SaveMetadata(data: any, metadataTag: string): Promise<any>;
94
- // 获取元数据的值
95
- GetMetadataObjList(data: any): Promise<any[]>;
96
- /** 通过扩展规则获取枚举类型的值 */
97
- GetEnumDataByUrl(url: string, method: 'get' | 'post', body: any): Promise<any>;
98
- // 获取执行状态
99
-
100
- GetGraphStatus(data: any): Promise<any>;
101
- // 获取执行状态
102
- StopGraphRun(data: any): Promise<any>;
103
- }
1
+ /*
2
+ * @Author: wangxian
3
+ * @Date: 2021-09-18 14:15:04
4
+ * @LastEditTime: 2023-08-22 16:30:28
5
+ */
6
+ export type IMetaType = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array' | string;
7
+
8
+ export type IMetaData = {
9
+ /**
10
+ * 类名称/属性名称
11
+ */
12
+ id: string;
13
+ /**
14
+ * 类型
15
+ */
16
+ type: IMetaType;
17
+ /**
18
+ * 属性
19
+ */
20
+ properties?: IMetaProperties[];
21
+
22
+ /**
23
+ * 引用id
24
+ */
25
+ refId?: string;
26
+ /**
27
+ * 静态的变量
28
+ */
29
+ fields?: IMetaFileds[];
30
+ /**
31
+ * 内部类
32
+ */
33
+ types?: IMetaData[];
34
+ };
35
+
36
+ export type IMetaProperties = {
37
+ /**
38
+ * 类规则名称
39
+ */
40
+ id: string;
41
+
42
+ /**
43
+ * 类型
44
+ */
45
+ type: IMetaType;
46
+
47
+ /**
48
+ * 引用id
49
+ */
50
+ refId?: string;
51
+ /**
52
+ * 静态的变量
53
+ */
54
+ fields?: IMetaFileds[];
55
+ /**
56
+ * 枚举值
57
+ */
58
+ enum?: { value: string }[];
59
+ /**
60
+ * 数组类型
61
+ */
62
+ items?: { type: IMetaType; refId?: string };
63
+ };
64
+
65
+ export type IMetaFileds = {
66
+ /**
67
+ * 规则名称
68
+ */
69
+ id: string;
70
+
71
+ /**
72
+ * 类型
73
+ */
74
+ type: IMetaType;
75
+
76
+ /**
77
+ * 引用id
78
+ */
79
+ refId?: string;
80
+
81
+ /**
82
+ * 规则值
83
+ */
84
+ value: any;
85
+ };
86
+
87
+ export interface IAPI {
88
+ // 获取元数据列表
89
+ GetMetadataList(keyWords?: string[]): Promise<{ id: string; name: string; schema: string }[]>;
90
+ // 通过元数据Id获取元数据详情
91
+ GetMetadataDetailById(metadataId: string): Promise<any>;
92
+ // 新增元数据
93
+ SaveMetadata(data: any, metadataTag: string): Promise<any>;
94
+ // 获取元数据的值
95
+ GetMetadataObjList(data: any): Promise<any[]>;
96
+ /** 通过扩展规则获取枚举类型的值 */
97
+ GetEnumDataByUrl(url: string, method: 'get' | 'post', body: any): Promise<any>;
98
+ // 获取执行状态
99
+
100
+ GetGraphStatus(data: any): Promise<any>;
101
+ // 获取执行状态
102
+ StopGraphRun(data: any): Promise<any>;
103
+ }
package/es/theme.less CHANGED
@@ -1,81 +1,81 @@
1
- .ronds-metadata-dark {
2
- --ronds-metadata-color-border-1: #314162;
3
- --ronds-metadata-color-border-2: #0d9af3;
4
- --ronds-metadata-color-bg-2: #0d1f40;
5
- --ronds-metadata-color-bg-3: #021125;
6
- --ronds-metadata-color-bg-4: #1c3771;
7
- --ronds-metadata-color-bg-5: #13264e;
8
- --ronds-metadata-color-bg-6: #0d1f40;
9
- --ronds-metadata-color-text-1: #ffffff;
10
- --ronds-metadata-color-text-2: #ffffff;
11
- --ronds-metadata-color-text-3: #ffffff;
12
-
13
- ::-webkit-scrollbar {
14
- width: 6px;
15
- height: 6px;
16
- overflow: auto;
17
- }
18
- ::-webkit-scrollbar-corner {
19
- background-color: transparent;
20
- color: transparent;
21
- }
22
-
23
- ::-webkit-scrollbar-thumb {
24
- box-shadow: inset 0 0 5px var(--scrollbar-bg-color);
25
- background: var(--scrollbar-color);
26
- min-height: 25px;
27
- min-width: 25px;
28
- border-radius: 3px;
29
-
30
- &:hover {
31
- border-radius: 2px;
32
- // box-shadow: inset 0 0 5px var(--scrollbar-color-hover);
33
- background: var(--scrollbar-color-hover);
34
- }
35
-
36
- &:active {
37
- // box-shadow: inset 0 0 5px var(--scrollbar-bg-color);
38
- background: var(--scrollbar-color-hover);
39
- }
40
- }
41
- }
42
-
43
- .ronds-metadata-normal {
44
- --ronds-metadata-color-border-1: #d9d9d9;
45
- --ronds-metadata-color-border-2: #165dff;
46
- --ronds-metadata-color-bg-2: #ffffff;
47
- --ronds-metadata-color-bg-3: #f6f5f6;
48
- --ronds-metadata-color-bg-4: #ffffff;
49
- --ronds-metadata-color-bg-5: #ffffff;
50
- --ronds-metadata-color-bg-6: rgba(229, 238, 255, 0.85);
51
- --ronds-metadata-color-text-1: #1d2129;
52
- --ronds-metadata-color-text-2: #24292f;
53
- --ronds-metadata-color-text-3: #f2f3f5;
54
-
55
- ::-webkit-scrollbar {
56
- width: 6px;
57
- height: 6px;
58
- overflow: auto;
59
- }
60
-
61
- ::-webkit-scrollbar-thumb {
62
- background-color: var(--scrollbar-color);
63
- min-height: 25px;
64
- min-width: 25px;
65
- border-radius: 3px;
66
-
67
- &:hover {
68
- background-color: #a8a8a8;
69
- }
70
-
71
- &:active {
72
- background-color: #787878;
73
- }
74
-
75
- /* border: 1px solid #e0e0e0; */
76
- }
77
-
78
- ::-webkit-scrollbar-track {
79
- background-color: #f7f7f7;
80
- }
81
- }
1
+ .ronds-metadata-dark {
2
+ --ronds-metadata-color-border-1: #314162;
3
+ --ronds-metadata-color-border-2: #0d9af3;
4
+ --ronds-metadata-color-bg-2: #0d1f40;
5
+ --ronds-metadata-color-bg-3: #021125;
6
+ --ronds-metadata-color-bg-4: #1c3771;
7
+ --ronds-metadata-color-bg-5: #13264e;
8
+ --ronds-metadata-color-bg-6: #0d1f40;
9
+ --ronds-metadata-color-text-1: #ffffff;
10
+ --ronds-metadata-color-text-2: #ffffff;
11
+ --ronds-metadata-color-text-3: #ffffff;
12
+
13
+ ::-webkit-scrollbar {
14
+ width: 6px;
15
+ height: 6px;
16
+ overflow: auto;
17
+ }
18
+ ::-webkit-scrollbar-corner {
19
+ background-color: transparent;
20
+ color: transparent;
21
+ }
22
+
23
+ ::-webkit-scrollbar-thumb {
24
+ box-shadow: inset 0 0 5px var(--scrollbar-bg-color);
25
+ background: var(--scrollbar-color);
26
+ min-height: 25px;
27
+ min-width: 25px;
28
+ border-radius: 3px;
29
+
30
+ &:hover {
31
+ border-radius: 2px;
32
+ // box-shadow: inset 0 0 5px var(--scrollbar-color-hover);
33
+ background: var(--scrollbar-color-hover);
34
+ }
35
+
36
+ &:active {
37
+ // box-shadow: inset 0 0 5px var(--scrollbar-bg-color);
38
+ background: var(--scrollbar-color-hover);
39
+ }
40
+ }
41
+ }
42
+
43
+ .ronds-metadata-normal {
44
+ --ronds-metadata-color-border-1: #d9d9d9;
45
+ --ronds-metadata-color-border-2: #165dff;
46
+ --ronds-metadata-color-bg-2: #ffffff;
47
+ --ronds-metadata-color-bg-3: #f6f5f6;
48
+ --ronds-metadata-color-bg-4: #ffffff;
49
+ --ronds-metadata-color-bg-5: #ffffff;
50
+ --ronds-metadata-color-bg-6: rgba(229, 238, 255, 0.85);
51
+ --ronds-metadata-color-text-1: #1d2129;
52
+ --ronds-metadata-color-text-2: #24292f;
53
+ --ronds-metadata-color-text-3: #f2f3f5;
54
+
55
+ ::-webkit-scrollbar {
56
+ width: 6px;
57
+ height: 6px;
58
+ overflow: auto;
59
+ }
60
+
61
+ ::-webkit-scrollbar-thumb {
62
+ background-color: var(--scrollbar-color);
63
+ min-height: 25px;
64
+ min-width: 25px;
65
+ border-radius: 3px;
66
+
67
+ &:hover {
68
+ background-color: #a8a8a8;
69
+ }
70
+
71
+ &:active {
72
+ background-color: #787878;
73
+ }
74
+
75
+ /* border: 1px solid #e0e0e0; */
76
+ }
77
+
78
+ ::-webkit-scrollbar-track {
79
+ background-color: #f7f7f7;
80
+ }
81
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.3.54",
4
+ "version": "1.3.56",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",