@byteluck-fe/model-driven-shared 2.7.0-alpha.4 → 2.8.1-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/EventLogic.js +6 -6
- package/dist/esm/RulesMessage.js +6 -6
- package/dist/esm/calc.js +30 -30
- package/dist/esm/entity/Department.js +6 -6
- package/dist/esm/entity/User.js +28 -28
- package/dist/esm/enum.js +76 -76
- package/dist/esm/locales/en-US.json +24 -18
- package/dist/esm/locales/ja-JP.json +24 -18
- package/dist/esm/locales/zh-CN.json +7 -1
- package/dist/esm/log.js +47 -58
- package/dist/esm/loopControls.js +3 -0
- package/dist/esm/utils.js +3 -0
- package/dist/esm/watcher.js +26 -25
- package/dist/index.umd.js +1 -1
- package/dist/types/locales/index.d.ts +18 -0
- package/package.json +2 -2
package/dist/esm/EventLogic.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _class_call_check(instance, Constructor) {
|
|
2
2
|
if (!(instance instanceof Constructor)) {
|
|
3
3
|
throw new TypeError("Cannot call a class as a function");
|
|
4
4
|
}
|
|
@@ -12,12 +12,12 @@ function _defineProperties(target, props) {
|
|
|
12
12
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
16
16
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
17
17
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
18
18
|
return Constructor;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function _define_property(obj, key, value) {
|
|
21
21
|
if (key in obj) {
|
|
22
22
|
Object.defineProperty(obj, key, {
|
|
23
23
|
value: value,
|
|
@@ -151,9 +151,9 @@ var eventMap = [
|
|
|
151
151
|
export var EventLogic = /*#__PURE__*/ function() {
|
|
152
152
|
"use strict";
|
|
153
153
|
function EventLogic() {
|
|
154
|
-
|
|
154
|
+
_class_call_check(this, EventLogic);
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
_create_class(EventLogic, [
|
|
157
157
|
{
|
|
158
158
|
key: "getEventsFromKeys",
|
|
159
159
|
value: function getEventsFromKeys(keys) {
|
|
@@ -168,4 +168,4 @@ export var EventLogic = /*#__PURE__*/ function() {
|
|
|
168
168
|
]);
|
|
169
169
|
return EventLogic;
|
|
170
170
|
}();
|
|
171
|
-
|
|
171
|
+
_define_property(EventLogic, "events", eventMap);
|
package/dist/esm/RulesMessage.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _class_call_check(instance, Constructor) {
|
|
2
2
|
if (!(instance instanceof Constructor)) {
|
|
3
3
|
throw new TypeError("Cannot call a class as a function");
|
|
4
4
|
}
|
|
@@ -12,12 +12,12 @@ function _defineProperties(target, props) {
|
|
|
12
12
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
16
16
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
17
17
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
18
18
|
return Constructor;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function _define_property(obj, key, value) {
|
|
21
21
|
if (key in obj) {
|
|
22
22
|
Object.defineProperty(obj, key, {
|
|
23
23
|
value: value,
|
|
@@ -36,9 +36,9 @@ import { DEFAULT_LOCALE } from "./constant";
|
|
|
36
36
|
export var RulesMessage = /*#__PURE__*/ function() {
|
|
37
37
|
"use strict";
|
|
38
38
|
function RulesMessage() {
|
|
39
|
-
|
|
39
|
+
_class_call_check(this, RulesMessage);
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
_create_class(RulesMessage, null, [
|
|
42
42
|
{
|
|
43
43
|
key: "getMessage",
|
|
44
44
|
value: function getMessage(messageKey) {
|
|
@@ -65,4 +65,4 @@ export var RulesMessage = /*#__PURE__*/ function() {
|
|
|
65
65
|
]);
|
|
66
66
|
return RulesMessage;
|
|
67
67
|
}();
|
|
68
|
-
|
|
68
|
+
_define_property(RulesMessage, "$i18n", RulesMessage.resetI18n());
|
package/dist/esm/calc.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _class_call_check(instance, Constructor) {
|
|
2
2
|
if (!(instance instanceof Constructor)) {
|
|
3
3
|
throw new TypeError("Cannot call a class as a function");
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function _define_property(obj, key, value) {
|
|
7
7
|
if (key in obj) {
|
|
8
8
|
Object.defineProperty(obj, key, {
|
|
9
9
|
value: value,
|
|
@@ -18,70 +18,70 @@ function _defineProperty(obj, key, value) {
|
|
|
18
18
|
}
|
|
19
19
|
export var CALC_TOKEN_TYPE;
|
|
20
20
|
(function(CALC_TOKEN_TYPE) {
|
|
21
|
-
|
|
21
|
+
/**
|
|
22
22
|
* 数值
|
|
23
|
-
* */ "Number"] = "Number";
|
|
24
|
-
|
|
23
|
+
* */ CALC_TOKEN_TYPE["Number"] = "Number";
|
|
24
|
+
/**
|
|
25
25
|
* 公式符号
|
|
26
|
-
* */ "Operator"] = "Operator";
|
|
27
|
-
|
|
26
|
+
* */ CALC_TOKEN_TYPE["Operator"] = "Operator";
|
|
27
|
+
/**
|
|
28
28
|
* 变量存在于主页面中
|
|
29
|
-
* */ "VariableInMainTable"] = "VariableInMainTable";
|
|
30
|
-
|
|
29
|
+
* */ CALC_TOKEN_TYPE["VariableInMainTable"] = "VariableInMainTable";
|
|
30
|
+
/**
|
|
31
31
|
* 变量存在当前明细子表内
|
|
32
32
|
* 说明计算公式在明细子表的某一行,且依赖项也在同一行内
|
|
33
|
-
* */ "VariableInCurrentSubTable"] = "VariableInCurrentSubTable";
|
|
34
|
-
|
|
33
|
+
* */ CALC_TOKEN_TYPE["VariableInCurrentSubTable"] = "VariableInCurrentSubTable";
|
|
34
|
+
/**
|
|
35
35
|
* 变量存在其它明细子表内
|
|
36
36
|
* 说明计算公式依赖于其它明细子表,计算公式可能在明细子表内,也可能不在
|
|
37
|
-
* */ "VariableInOtherSubTable"] = "VariableInOtherSubTable";
|
|
38
|
-
|
|
37
|
+
* */ CALC_TOKEN_TYPE["VariableInOtherSubTable"] = "VariableInOtherSubTable";
|
|
38
|
+
/**
|
|
39
39
|
* 未定义的变量
|
|
40
40
|
* 当绑定的变量在schema中不存在时,会成为该项,在设计态会报错
|
|
41
|
-
* */ "UndefinedVariable"] = "UndefinedVariable";
|
|
41
|
+
* */ CALC_TOKEN_TYPE["UndefinedVariable"] = "UndefinedVariable";
|
|
42
42
|
})(CALC_TOKEN_TYPE || (CALC_TOKEN_TYPE = {}));
|
|
43
43
|
export var CALC_AGGREGATE_TYPE;
|
|
44
44
|
(function(CALC_AGGREGATE_TYPE) {
|
|
45
|
-
|
|
45
|
+
/**
|
|
46
46
|
* 总和
|
|
47
|
-
* */ "SUM"] = "SUM";
|
|
48
|
-
|
|
47
|
+
* */ CALC_AGGREGATE_TYPE["SUM"] = "SUM";
|
|
48
|
+
/**
|
|
49
49
|
* 平均值
|
|
50
|
-
* */ "AVG"] = "AVG";
|
|
51
|
-
|
|
50
|
+
* */ CALC_AGGREGATE_TYPE["AVG"] = "AVG";
|
|
51
|
+
/**
|
|
52
52
|
* 最大值
|
|
53
|
-
* */ "MAX"] = "MAX";
|
|
54
|
-
|
|
53
|
+
* */ CALC_AGGREGATE_TYPE["MAX"] = "MAX";
|
|
54
|
+
/**
|
|
55
55
|
* 最小值
|
|
56
|
-
* */ "MIN"] = "MIN";
|
|
56
|
+
* */ CALC_AGGREGATE_TYPE["MIN"] = "MIN";
|
|
57
57
|
})(CALC_AGGREGATE_TYPE || (CALC_AGGREGATE_TYPE = {}));
|
|
58
58
|
export var CalcScriptEchoItem = function CalcScriptEchoItem(props) {
|
|
59
59
|
"use strict";
|
|
60
|
-
|
|
60
|
+
_class_call_check(this, CalcScriptEchoItem);
|
|
61
61
|
/**
|
|
62
62
|
* 变量名称或者公式符号或者数值
|
|
63
|
-
* */
|
|
63
|
+
* */ _define_property(this, "name", void 0);
|
|
64
64
|
/**
|
|
65
65
|
* 如果是变量的话,id为控件id
|
|
66
|
-
* */
|
|
66
|
+
* */ _define_property(this, "id", void 0);
|
|
67
67
|
/**
|
|
68
68
|
* 当前值的类型
|
|
69
|
-
* */
|
|
69
|
+
* */ _define_property(this, "type", void 0);
|
|
70
70
|
/**
|
|
71
71
|
* 绑定的是明细子表变量时,必须有subTableId
|
|
72
|
-
* */
|
|
72
|
+
* */ _define_property(this, "subTableId", void 0);
|
|
73
73
|
/**
|
|
74
74
|
* 绑定的是明细子表内变量时,必须有subTableName
|
|
75
|
-
* */
|
|
75
|
+
* */ _define_property(this, "subTableName", void 0);
|
|
76
76
|
/**
|
|
77
77
|
* 绑定的是其它明细子表内变量时,必须有aggregateType
|
|
78
|
-
* */
|
|
78
|
+
* */ _define_property(this, "aggregateType", void 0);
|
|
79
79
|
var _props_name;
|
|
80
80
|
this.name = (_props_name = props === null || props === void 0 ? void 0 : props.name) !== null && _props_name !== void 0 ? _props_name : "";
|
|
81
81
|
var _props_id;
|
|
82
82
|
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : "";
|
|
83
83
|
var _props_type;
|
|
84
|
-
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type :
|
|
84
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "Number";
|
|
85
85
|
var _props_subTableId;
|
|
86
86
|
this.subTableId = (_props_subTableId = props === null || props === void 0 ? void 0 : props.subTableId) !== null && _props_subTableId !== void 0 ? _props_subTableId : undefined;
|
|
87
87
|
var _props_subTableId1;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author qiyu
|
|
3
3
|
* @description 属性只是简单从接口拿过来,还未仔细考虑
|
|
4
|
-
*/ function
|
|
4
|
+
*/ function _class_call_check(instance, Constructor) {
|
|
5
5
|
if (!(instance instanceof Constructor)) {
|
|
6
6
|
throw new TypeError("Cannot call a class as a function");
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function _define_property(obj, key, value) {
|
|
10
10
|
if (key in obj) {
|
|
11
11
|
Object.defineProperty(obj, key, {
|
|
12
12
|
value: value,
|
|
@@ -21,12 +21,12 @@ function _defineProperty(obj, key, value) {
|
|
|
21
21
|
}
|
|
22
22
|
export var DepartmentEntity = function DepartmentEntity() {
|
|
23
23
|
"use strict";
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
_class_call_check(this, DepartmentEntity);
|
|
25
|
+
_define_property(this, "department_en_name", void 0);
|
|
26
26
|
/**
|
|
27
27
|
* 部门编号
|
|
28
|
-
*/
|
|
28
|
+
*/ _define_property(this, "department_id", void 0);
|
|
29
29
|
/**
|
|
30
30
|
* 部门名称
|
|
31
|
-
*/
|
|
31
|
+
*/ _define_property(this, "department_name", void 0);
|
|
32
32
|
};
|
package/dist/esm/entity/User.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author qiyu
|
|
3
3
|
* @description 属性只是简单从接口拿过来,还未仔细考虑
|
|
4
|
-
*/ function
|
|
4
|
+
*/ function _class_call_check(instance, Constructor) {
|
|
5
5
|
if (!(instance instanceof Constructor)) {
|
|
6
6
|
throw new TypeError("Cannot call a class as a function");
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function _define_property(obj, key, value) {
|
|
10
10
|
if (key in obj) {
|
|
11
11
|
Object.defineProperty(obj, key, {
|
|
12
12
|
value: value,
|
|
@@ -21,66 +21,66 @@ function _defineProperty(obj, key, value) {
|
|
|
21
21
|
}
|
|
22
22
|
export var UserEntity = function UserEntity() {
|
|
23
23
|
"use strict";
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
_class_call_check(this, UserEntity);
|
|
25
|
+
_define_property(this, "avatar_big", void 0);
|
|
26
|
+
_define_property(this, "avatar_small", void 0);
|
|
27
27
|
/**
|
|
28
28
|
* 员工头像地址
|
|
29
|
-
*/
|
|
29
|
+
*/ _define_property(this, "avatar_url", void 0);
|
|
30
30
|
/**
|
|
31
31
|
* 归属部门英文名称
|
|
32
|
-
*/
|
|
33
|
-
|
|
32
|
+
*/ _define_property(this, "belong_dept_en_name", void 0);
|
|
33
|
+
_define_property(this, "belong_dept_id_list", void 0);
|
|
34
34
|
/**
|
|
35
35
|
* 归属部门ID
|
|
36
|
-
*/
|
|
36
|
+
*/ _define_property(this, "belong_dept_ids", void 0);
|
|
37
37
|
/**
|
|
38
38
|
* 归属部门名称
|
|
39
|
-
*/
|
|
39
|
+
*/ _define_property(this, "belong_dept_name", void 0);
|
|
40
40
|
/**
|
|
41
41
|
* 当前语言版本
|
|
42
|
-
*/
|
|
42
|
+
*/ _define_property(this, "cookie_language_enum", void 0);
|
|
43
43
|
/**
|
|
44
44
|
* 部门id
|
|
45
|
-
*/
|
|
45
|
+
*/ _define_property(this, "department_id", void 0);
|
|
46
46
|
/**
|
|
47
47
|
* 部门名称
|
|
48
|
-
*/
|
|
48
|
+
*/ _define_property(this, "department_name", void 0);
|
|
49
49
|
/**
|
|
50
50
|
* 员工邮箱
|
|
51
|
-
*/
|
|
51
|
+
*/ _define_property(this, "email", void 0);
|
|
52
52
|
/**
|
|
53
53
|
* 工号
|
|
54
|
-
*/
|
|
54
|
+
*/ _define_property(this, "employee_card", void 0);
|
|
55
55
|
/**
|
|
56
56
|
* 英文名
|
|
57
|
-
*/
|
|
57
|
+
*/ _define_property(this, "employee_en_name", void 0);
|
|
58
58
|
/**
|
|
59
59
|
* 员工编号
|
|
60
|
-
*/
|
|
60
|
+
*/ _define_property(this, "employee_id", void 0);
|
|
61
61
|
/**
|
|
62
62
|
* 员工姓名
|
|
63
|
-
*/
|
|
64
|
-
|
|
63
|
+
*/ _define_property(this, "employee_name", void 0);
|
|
64
|
+
_define_property(this, "external_user", void 0);
|
|
65
65
|
/**
|
|
66
66
|
* 性别
|
|
67
|
-
*/
|
|
68
|
-
|
|
67
|
+
*/ _define_property(this, "gender", void 0);
|
|
68
|
+
_define_property(this, "is_show_chat_group", void 0);
|
|
69
69
|
/**
|
|
70
70
|
* 负责部门英文名称
|
|
71
|
-
*/
|
|
71
|
+
*/ _define_property(this, "manage_dept_en_name", void 0);
|
|
72
72
|
/**
|
|
73
73
|
* 负责部门ID
|
|
74
|
-
*/
|
|
74
|
+
*/ _define_property(this, "manage_dept_ids", void 0);
|
|
75
75
|
/**
|
|
76
76
|
* 负责部门名称
|
|
77
|
-
*/
|
|
78
|
-
|
|
77
|
+
*/ _define_property(this, "manage_dept_name", void 0);
|
|
78
|
+
_define_property(this, "msg_relation_type", void 0);
|
|
79
79
|
/**
|
|
80
80
|
* 职级
|
|
81
|
-
*/
|
|
81
|
+
*/ _define_property(this, "sequence", void 0);
|
|
82
82
|
/**
|
|
83
83
|
* 固定电话
|
|
84
|
-
*/
|
|
85
|
-
|
|
84
|
+
*/ _define_property(this, "telephone", void 0);
|
|
85
|
+
_define_property(this, "tenant_id", void 0);
|
|
86
86
|
};
|
package/dist/esm/enum.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
2
|
if (key in obj) {
|
|
3
3
|
Object.defineProperty(obj, key, {
|
|
4
4
|
value: value,
|
|
@@ -23,8 +23,8 @@ export var CONTROL_BASE_TYPE;
|
|
|
23
23
|
})(CONTROL_BASE_TYPE || (CONTROL_BASE_TYPE = {}));
|
|
24
24
|
export var CONTROL_TYPE;
|
|
25
25
|
(function(CONTROL_TYPE) {
|
|
26
|
-
|
|
27
|
-
"TITLE"] = "title";
|
|
26
|
+
// 基础控件
|
|
27
|
+
CONTROL_TYPE["TITLE"] = "title";
|
|
28
28
|
CONTROL_TYPE["LINK"] = "link";
|
|
29
29
|
CONTROL_TYPE["BUTTON"] = "button";
|
|
30
30
|
CONTROL_TYPE["DIVIDER"] = "divider";
|
|
@@ -43,8 +43,8 @@ export var CONTROL_TYPE;
|
|
|
43
43
|
CONTROL_TYPE["INVOICE_CHECK_BUTTON"] = "invoice-check-button";
|
|
44
44
|
CONTROL_TYPE["LIST_PAGE_BTN_BATCH_PRINT"] = "list-page-btn-batch-print";
|
|
45
45
|
CONTROL_TYPE["LIST_PAGE_BTN_BATCH_PRINT_RECORD"] = "list-page-btn-batch-print-record";
|
|
46
|
-
|
|
47
|
-
"VARCHAR_COLUMN"] = "varchar-column";
|
|
46
|
+
// 列头控件
|
|
47
|
+
CONTROL_TYPE["VARCHAR_COLUMN"] = "varchar-column";
|
|
48
48
|
CONTROL_TYPE["TEXT_COLUMN"] = "text-column";
|
|
49
49
|
CONTROL_TYPE["DECIMAL_COLUMN"] = "decimal-column";
|
|
50
50
|
CONTROL_TYPE["TIMESCOPE_COLUMN"] = "timescope-column";
|
|
@@ -61,8 +61,8 @@ export var CONTROL_TYPE;
|
|
|
61
61
|
CONTROL_TYPE["OPERATION_COLUMN"] = "operation-column";
|
|
62
62
|
CONTROL_TYPE["EMPLOYEE_COLUMN"] = "employee-column";
|
|
63
63
|
CONTROL_TYPE["Approval_Status_Column"] = "approval-status-column";
|
|
64
|
-
|
|
65
|
-
"ADDRESS"] = "address";
|
|
64
|
+
// 表单控件
|
|
65
|
+
CONTROL_TYPE["ADDRESS"] = "address";
|
|
66
66
|
CONTROL_TYPE["AMOUNT"] = "amount";
|
|
67
67
|
CONTROL_TYPE["ATTACHMENT"] = "attachment";
|
|
68
68
|
CONTROL_TYPE["AUTO_NUMBER"] = "auto-number";
|
|
@@ -95,8 +95,8 @@ export var CONTROL_TYPE;
|
|
|
95
95
|
CONTROL_TYPE["RADIO_IMAGE"] = "radio-image";
|
|
96
96
|
CONTROL_TYPE["ELECTRONIC_SIGNATURE"] = "electronic-signature";
|
|
97
97
|
CONTROL_TYPE["WPS"] = "wps";
|
|
98
|
-
|
|
99
|
-
"CARD_GROUP"] = "card-group";
|
|
98
|
+
// 布局控件
|
|
99
|
+
CONTROL_TYPE["CARD_GROUP"] = "card-group";
|
|
100
100
|
CONTROL_TYPE["COL"] = "col";
|
|
101
101
|
CONTROL_TYPE["GRID"] = "grid";
|
|
102
102
|
CONTROL_TYPE["GRID_ROW"] = "grid-row";
|
|
@@ -112,116 +112,116 @@ export var CONTROL_TYPE;
|
|
|
112
112
|
CONTROL_TYPE["DATA_VIEW"] = "data-view";
|
|
113
113
|
CONTROL_TYPE["LIST_VIEW"] = "list-view";
|
|
114
114
|
CONTROL_TYPE["ACTION_BAR"] = "action-bar";
|
|
115
|
-
|
|
116
|
-
"SUBTABLE"] = "subtable";
|
|
115
|
+
// list控件
|
|
116
|
+
CONTROL_TYPE["SUBTABLE"] = "subtable";
|
|
117
117
|
CONTROL_TYPE["GRID_TABLE"] = "grid-table";
|
|
118
|
-
|
|
119
|
-
"SIMPLE_SEARCH"] = "simple-search";
|
|
118
|
+
// 查询区域控件
|
|
119
|
+
CONTROL_TYPE["SIMPLE_SEARCH"] = "simple-search";
|
|
120
120
|
CONTROL_TYPE["PAGINATION"] = "pagination";
|
|
121
121
|
CONTROL_TYPE["CHECKBOX_IMAGE"] = "checkbox-image";
|
|
122
122
|
CONTROL_TYPE["DASHBOARD"] = "dashboard";
|
|
123
123
|
CONTROL_TYPE["TREE"] = "tree";
|
|
124
124
|
CONTROL_TYPE["EMPLOYEE2"] = "employee2";
|
|
125
125
|
CONTROL_TYPE["DEPARTMENT2"] = "department2";
|
|
126
|
-
|
|
126
|
+
// wrap控件
|
|
127
127
|
// grid_wrap 必须结合 grid-layout-container
|
|
128
|
-
"GRID_LAYOUT_WRAP"] = "grid-layout-wrap";
|
|
128
|
+
CONTROL_TYPE["GRID_LAYOUT_WRAP"] = "grid-layout-wrap";
|
|
129
129
|
})(CONTROL_TYPE || (CONTROL_TYPE = {}));
|
|
130
130
|
export var FieldTypes;
|
|
131
131
|
(function(FieldTypes) {
|
|
132
|
-
|
|
132
|
+
/**
|
|
133
133
|
* 短文本,string
|
|
134
|
-
* */ "VARCHAR"] = "varchar";
|
|
135
|
-
|
|
134
|
+
* */ FieldTypes["VARCHAR"] = "varchar";
|
|
135
|
+
/**
|
|
136
136
|
* 长文本, string
|
|
137
|
-
* */ "TEXT"] = "text";
|
|
138
|
-
|
|
137
|
+
* */ FieldTypes["TEXT"] = "text";
|
|
138
|
+
/**
|
|
139
139
|
* 数组, Array<string>
|
|
140
|
-
* */ "ARRAY"] = "array";
|
|
141
|
-
|
|
140
|
+
* */ FieldTypes["ARRAY"] = "array";
|
|
141
|
+
/**
|
|
142
142
|
* 地址, AddressValue { city:string, district:string, province: string }
|
|
143
|
-
* */ "ADDRESS"] = "location";
|
|
144
|
-
|
|
143
|
+
* */ FieldTypes["ADDRESS"] = "location";
|
|
144
|
+
/**
|
|
145
145
|
* 数字, number
|
|
146
|
-
* */ "DECIMAL"] = "decimal";
|
|
147
|
-
|
|
146
|
+
* */ FieldTypes["DECIMAL"] = "decimal";
|
|
147
|
+
/**
|
|
148
148
|
* 数字区间, Array<number>
|
|
149
|
-
* */ "DECIMAL_RANGE"] = "decimal_range";
|
|
150
|
-
|
|
149
|
+
* */ FieldTypes["DECIMAL_RANGE"] = "decimal_range";
|
|
150
|
+
/**
|
|
151
151
|
* 日期, 时间戳字符串 string
|
|
152
|
-
* */ "TIMESTAMP"] = "timestamp";
|
|
153
|
-
|
|
152
|
+
* */ FieldTypes["TIMESTAMP"] = "timestamp";
|
|
153
|
+
/**
|
|
154
154
|
* 人员, Array<人员id string>
|
|
155
|
-
* */ "EMPLOYEES"] = "people";
|
|
156
|
-
|
|
155
|
+
* */ FieldTypes["EMPLOYEES"] = "people";
|
|
156
|
+
/**
|
|
157
157
|
* 部门, Array<部门id string>
|
|
158
|
-
* */ "DEPARTMENTS"] = "department";
|
|
159
|
-
|
|
158
|
+
* */ FieldTypes["DEPARTMENTS"] = "department";
|
|
159
|
+
/**
|
|
160
160
|
* 金额, AmountValue { amount: number, currency: string }
|
|
161
|
-
* */ "MONEY"] = "money";
|
|
162
|
-
|
|
161
|
+
* */ FieldTypes["MONEY"] = "money";
|
|
162
|
+
/**
|
|
163
163
|
* 日期区间, DateRangeValue { max: string, min: string }
|
|
164
|
-
* */ "TIMESCOPE"] = "timescope";
|
|
165
|
-
|
|
164
|
+
* */ FieldTypes["TIMESCOPE"] = "timescope";
|
|
165
|
+
/**
|
|
166
166
|
* 附件, Array<附件id string>
|
|
167
|
-
* */ "FILE"] = "file";
|
|
168
|
-
|
|
167
|
+
* */ FieldTypes["FILE"] = "file";
|
|
168
|
+
/**
|
|
169
169
|
* 图片, Array<图片id string>
|
|
170
|
-
* */ "IMAGE"] = "image";
|
|
171
|
-
|
|
170
|
+
* */ FieldTypes["IMAGE"] = "image";
|
|
171
|
+
/**
|
|
172
172
|
* 自动编号, string
|
|
173
|
-
* */ "AUTO_NUMBER"] = "auto_number";
|
|
174
|
-
|
|
173
|
+
* */ FieldTypes["AUTO_NUMBER"] = "auto_number";
|
|
174
|
+
/**
|
|
175
175
|
* 计算公式, CalcValue { result: number, unit: string }
|
|
176
|
-
* */ "CALC"] = "calc";
|
|
177
|
-
|
|
176
|
+
* */ FieldTypes["CALC"] = "calc";
|
|
177
|
+
/**
|
|
178
178
|
* 关联键, string
|
|
179
|
-
* */ "RELATION"] = "relation";
|
|
180
|
-
|
|
179
|
+
* */ FieldTypes["RELATION"] = "relation";
|
|
180
|
+
/**
|
|
181
181
|
* 列表 Array<any>
|
|
182
|
-
* */ "LIST"] = "list";
|
|
183
|
-
|
|
182
|
+
* */ FieldTypes["LIST"] = "list";
|
|
183
|
+
/**
|
|
184
184
|
* 关联字段
|
|
185
|
-
* */ "RELATION_FIELD"] = "relation-field";
|
|
186
|
-
|
|
185
|
+
* */ FieldTypes["RELATION_FIELD"] = "relation-field";
|
|
186
|
+
/**
|
|
187
187
|
* 引用字段
|
|
188
|
-
* */ "REFERENCE_FIELD"] = "reference-field";
|
|
189
|
-
|
|
188
|
+
* */ FieldTypes["REFERENCE_FIELD"] = "reference-field";
|
|
189
|
+
/**
|
|
190
190
|
* 计算公式字段
|
|
191
|
-
* */ "CALC_FIELD"] = "calc";
|
|
192
|
-
|
|
191
|
+
* */ FieldTypes["CALC_FIELD"] = "calc";
|
|
192
|
+
/**
|
|
193
193
|
* JSON字段
|
|
194
|
-
* */ "JSON"] = "json";
|
|
195
|
-
|
|
194
|
+
* */ FieldTypes["JSON"] = "json";
|
|
195
|
+
/**
|
|
196
196
|
* 整数类型
|
|
197
|
-
* */ "BIGINT"] = "bigint";
|
|
198
|
-
|
|
197
|
+
* */ FieldTypes["BIGINT"] = "bigint";
|
|
198
|
+
/**
|
|
199
199
|
* 任意类型
|
|
200
|
-
* */ "ANY"] = "ANY";
|
|
201
|
-
|
|
200
|
+
* */ FieldTypes["ANY"] = "ANY";
|
|
201
|
+
/**
|
|
202
202
|
* 加密字段
|
|
203
|
-
* */ "ENCRYPTED_FIELD"] = "encrypted_field";
|
|
203
|
+
* */ FieldTypes["ENCRYPTED_FIELD"] = "encrypted_field";
|
|
204
204
|
})(FieldTypes || (FieldTypes = {}));
|
|
205
205
|
var _obj;
|
|
206
|
-
export var FieldTypeToColumnType = (_obj = {},
|
|
206
|
+
export var FieldTypeToColumnType = (_obj = {}, _define_property(_obj, "array", "array-column"), _define_property(_obj, "auto_number", "auto-number-column"), _define_property(_obj, "decimal", "decimal-column"), _define_property(_obj, "department", "department-column"), _define_property(_obj, "file", "file-column"), _define_property(_obj, "image", "image-column"), _define_property(_obj, "location", "location-column"), _define_property(_obj, "people", "employee-column"), _define_property(_obj, "text", "text-column"), _define_property(_obj, "timescope", "timescope-column"), _define_property(_obj, "timestamp", "timestamp-column"), _define_property(_obj, "varchar", "varchar-column"), _define_property(_obj, "relation", "varchar-column"), _obj);
|
|
207
207
|
export var DateType;
|
|
208
208
|
(function(DateType) {
|
|
209
|
-
|
|
209
|
+
/**
|
|
210
210
|
* 年
|
|
211
|
-
* */ "YEAR"] = "year";
|
|
212
|
-
|
|
211
|
+
* */ DateType["YEAR"] = "year";
|
|
212
|
+
/**
|
|
213
213
|
* 年月
|
|
214
|
-
* */ "MONTH"] = "month";
|
|
215
|
-
|
|
214
|
+
* */ DateType["MONTH"] = "month";
|
|
215
|
+
/**
|
|
216
216
|
* 年月日
|
|
217
|
-
* */ "DATE"] = "date";
|
|
218
|
-
|
|
217
|
+
* */ DateType["DATE"] = "date";
|
|
218
|
+
/**
|
|
219
219
|
* 年月日时
|
|
220
|
-
* */ "DATEHOUR"] = "datehour";
|
|
221
|
-
|
|
220
|
+
* */ DateType["DATEHOUR"] = "datehour";
|
|
221
|
+
/**
|
|
222
222
|
* 年月日时分
|
|
223
|
-
* */ "DATEMIN"] = "datemin";
|
|
224
|
-
|
|
223
|
+
* */ DateType["DATEMIN"] = "datemin";
|
|
224
|
+
/**
|
|
225
225
|
* 年月日时分秒
|
|
226
|
-
* */ "DATETIME"] = "datetime";
|
|
226
|
+
* */ DateType["DATETIME"] = "datetime";
|
|
227
227
|
})(DateType || (DateType = {}));
|
|
@@ -46,22 +46,28 @@
|
|
|
46
46
|
"pleaseSetTheLogicalRelationshipOfAllRuleConditions": "Please set the logical relationship of all rule conditions",
|
|
47
47
|
"pleaseCompleteAllRulesAndConditions": "Please complete all rules and conditions",
|
|
48
48
|
"pleaseSelectControl": "please select control",
|
|
49
|
-
"pleaseSelectDashboard": "
|
|
50
|
-
"theViewNameCannotBeEmpty": "
|
|
51
|
-
"pleaseSelectOcrType": "
|
|
52
|
-
"pleaseSelectAtLeastOneFieldToFillIn": "
|
|
53
|
-
"pleaseChooseAtLeastOne": "
|
|
54
|
-
"pleaseEnterButtonContent": "
|
|
55
|
-
"pleaseEnterDataCodeInDataSetting": "
|
|
56
|
-
"pleaseEnterValueFieldCodeInDataSetting": "
|
|
57
|
-
"pleaseEnterSvcCodeInDataSetting": "
|
|
58
|
-
"pleaseBindAtLeastOneDisplayValueInDataSetting": "
|
|
59
|
-
"rootNodeIsRequiredInDataSetting": "
|
|
60
|
-
"pleaseEnterMaxHeight": "
|
|
61
|
-
"pleaseEnter": "
|
|
62
|
-
"pleaseEnterWatermark": "
|
|
63
|
-
"pleaseEnterFileName": "
|
|
64
|
-
"pleaseUploadAtLeastOnePrintTemplate": "
|
|
65
|
-
"pleaseAssignBusiness":"
|
|
66
|
-
"pleaseAssignExternal":"
|
|
49
|
+
"pleaseSelectDashboard": "Please select the dashboard",
|
|
50
|
+
"theViewNameCannotBeEmpty": "View name cannot be empty",
|
|
51
|
+
"pleaseSelectOcrType": "Please select recognition type",
|
|
52
|
+
"pleaseSelectAtLeastOneFieldToFillIn": "Please select at least one field to fill in",
|
|
53
|
+
"pleaseChooseAtLeastOne": "Please select at least one",
|
|
54
|
+
"pleaseEnterButtonContent": "Please enter the button title",
|
|
55
|
+
"pleaseEnterDataCodeInDataSetting": "Please bind the business model in the data settings",
|
|
56
|
+
"pleaseEnterValueFieldCodeInDataSetting": "Please bind storage values in data settings",
|
|
57
|
+
"pleaseEnterSvcCodeInDataSetting": "Please bind the service in the data settings",
|
|
58
|
+
"pleaseBindAtLeastOneDisplayValueInDataSetting": "Please bind at least one display value in the data settings",
|
|
59
|
+
"rootNodeIsRequiredInDataSetting": "Please select the root node in the data settings",
|
|
60
|
+
"pleaseEnterMaxHeight": "Please enter the maximum height",
|
|
61
|
+
"pleaseEnter": "The input content cannot be empty",
|
|
62
|
+
"pleaseEnterWatermark": "Watermark cannot be empty",
|
|
63
|
+
"pleaseEnterFileName": "File name cannot be empty",
|
|
64
|
+
"pleaseUploadAtLeastOnePrintTemplate": "Please upload at least one printing template!!",
|
|
65
|
+
"pleaseAssignBusiness":"Please select a specific business department",
|
|
66
|
+
"pleaseAssignExternal":"Please select a specified external organization",
|
|
67
|
+
"pleaseEnterAliasCode":"Please enter a sub table alias",
|
|
68
|
+
"pleaseSelectDataCode":"Please select the associated table to set the business model",
|
|
69
|
+
"pleaseSelectSvcCode":"Please select the association table to set the binding service",
|
|
70
|
+
"pleaseSelectJoinFieldCode":"Select associated sub table fields",
|
|
71
|
+
"pleaseSelectMainFieldCode":"Please select the associated main table field",
|
|
72
|
+
"pleaseSelectSortFieldCode":"Please select the sort field"
|
|
67
73
|
}
|