ronds-metadata 1.3.55 → 1.3.56
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +25 -25
- package/es/api/index.js +6 -4
- package/es/comps/CodeEdit/index.d.ts +2 -1
- package/es/comps/DataMine/Line.d.ts +2 -1
- package/es/comps/DataMine/Line.js +0 -1
- package/es/comps/DataMine/index.d.ts +2 -1
- package/es/comps/DynamicPorts/comps/ContextMenu.less +8 -8
- package/es/comps/DynamicPorts/comps/DragNode.d.ts +1 -1
- package/es/comps/DynamicPorts/comps/GraphHandler/index.less +39 -39
- package/es/comps/DynamicPorts/comps/NodeElementForm.d.ts +2 -1
- package/es/comps/DynamicPorts/comps/NodeElementNormal.d.ts +2 -1
- package/es/comps/DynamicPorts/comps/contextMenu/EdgeContextMenu/index.less +5 -5
- package/es/comps/DynamicPorts/comps/contextMenu/GraphContextMenu/index.less +40 -40
- package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.d.ts +2 -1
- package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.less +42 -42
- package/es/comps/DynamicPorts/comps/shape/edge.js +7 -7
- package/es/comps/DynamicPorts/comps/shape/edge.less +8 -8
- package/es/comps/DynamicPorts/comps/shape/node.js +8 -9
- package/es/comps/DynamicPorts/graph.js +5 -4
- package/es/comps/DynamicPorts/index.d.ts +2 -1
- package/es/comps/DynamicPorts/index.less +307 -307
- package/es/comps/Editable/DataCell/ButtonCell.d.ts +1 -1
- package/es/comps/Editable/DataCell/ColorPicker.d.ts +1 -1
- package/es/comps/Editable/DataCell/Input.d.ts +1 -1
- package/es/comps/Editable/DataCell/Number.d.ts +1 -1
- package/es/comps/Editable/DataCell/Select.d.ts +1 -1
- package/es/comps/Editable/DataCell/Switch.d.ts +1 -1
- package/es/comps/Editable/DataCell/TreeSelect.d.ts +1 -1
- package/es/comps/Editable/comps/EditableAction.d.ts +2 -1
- package/es/comps/Editable/comps/Texty.d.ts +1 -1
- package/es/comps/Editable/comps/Texty.js +5 -4
- package/es/comps/Editable/comps/Texty.less +43 -43
- package/es/comps/Editable/comps/index.less +38 -38
- package/es/comps/Editable/index.d.ts +2 -1
- package/es/comps/Editable/index.less +97 -97
- package/es/comps/Editable/utils.d.ts +2 -1
- package/es/comps/FileView/index.d.ts +2 -1
- package/es/comps/FileView/index.js +2 -3
- package/es/comps/FormGenerator/comps/Canvas/Preview.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Checkbox.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Color.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Date.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Input.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/List.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/MutiSelect.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Number.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/NumberRange.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Obj.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Password.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Radio.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Select.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Switch.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Table.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/TextArea.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Upload.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/HOC/index.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/index.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/index.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/index.less +23 -23
- package/es/comps/FormGenerator/comps/Canvas/index.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Settings/index.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Settings/index.js +1 -2
- package/es/comps/FormGenerator/comps/Sidebar/Elements.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Sidebar/JsonSchema.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Sidebar/index.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Sidebar/index.less +21 -21
- package/es/comps/FormGenerator/index.d.ts +2 -1
- package/es/comps/FormGenerator/index.less +20 -20
- package/es/comps/JsonEdit/index.d.ts +2 -1
- package/es/comps/JsonEdit/index.js +0 -1
- package/es/comps/JsonEdit/index.less +64 -64
- package/es/comps/JsonView/index.d.ts +2 -1
- package/es/comps/MdEdit/index.d.ts +2 -1
- package/es/comps/MdEditPro/index.d.ts +2 -1
- package/es/comps/MdEditPro/index.less +166 -166
- package/es/comps/MdEditPro/index2.d.ts +1 -1
- package/es/comps/MdNavbar/index.d.ts +2 -1
- package/es/comps/MdNavbar/index.less +77 -77
- package/es/comps/MdView/index.d.ts +1 -1
- package/es/comps/MdView/index.less +376 -376
- package/es/comps/MetadataEdit/components/MetaFieldsEdit.d.ts +2 -1
- package/es/comps/MetadataEdit/components/MetaPropsEdit.d.ts +2 -1
- package/es/comps/MetadataEdit/constant/index.js +0 -2
- package/es/comps/MetadataEdit/index.d.ts +2 -1
- package/es/comps/MetadataForm/DataCell/Array.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/Input.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/Input.js +15 -4
- package/es/comps/MetadataForm/DataCell/Number.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/Ref.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/Select.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/Select.js +6 -4
- package/es/comps/MetadataForm/DataCell/Switch.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/layout/TableArray.d.ts +2 -1
- package/es/comps/MetadataForm/DataCell/plugin/IconButton.d.ts +8 -0
- package/es/comps/MetadataForm/DataCell/plugin/IconButton.js +16 -0
- package/es/comps/MetadataForm/DataCell/plugin/MapTable.d.ts +12 -0
- package/es/comps/MetadataForm/DataCell/plugin/MapTable.js +116 -0
- package/es/comps/MetadataForm/DataCell/plugin/NumberRange.d.ts +2 -1
- package/es/comps/MetadataForm/DataCell/plugin/NumberRange.js +1 -2
- package/es/comps/MetadataForm/DataCell/plugin/RefreshSelect.d.ts +2 -1
- package/es/comps/MetadataForm/DataCell/plugin/RefreshSelect.js +3 -2
- package/es/comps/MetadataForm/DataCell/plugin/SparkSqlTable.d.ts +11 -0
- package/es/comps/MetadataForm/DataCell/plugin/SparkSqlTable.js +249 -0
- package/es/comps/MetadataForm/HOC/index.d.ts +2 -1
- package/es/comps/MetadataForm/index.d.ts +2 -1
- package/es/comps/MetadataForm/index.less +26 -26
- package/es/comps/MetadataForm/utils.d.ts +3 -2
- package/es/comps/Split/index.d.ts +1 -1
- package/es/comps/Split/index.less +29 -29
- package/es/framework/RxStore/demo/index.d.ts +2 -1
- package/es/framework/graph/index.less +15 -15
- package/es/framework/http/msgpack5/lib/helpers.js +0 -1
- package/es/framework/libs/iconfont/iconfont.css +323 -323
- package/es/framework/libs/iconfont/iconfont.json +548 -548
- package/es/framework/libs/jquery.min.js +4 -4
- package/es/framework/locale/dil8/di18n.js +5 -3
- package/es/framework/metadata/MetadataService.js +14 -14
- package/es/framework/metadata/index.js +14 -15
- package/es/framework/metadata/types.d.ts +103 -103
- package/es/theme.less +81 -81
- 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
|
-
|
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 =
|
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 (
|
20
|
-
_inherits(result,
|
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
|
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
|
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 (
|
106
|
-
_inherits(result,
|
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
|
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 (
|
197
|
-
_inherits(JsonMetadataProvider,
|
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 =
|
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
|
+
}
|