@byteluck-fe/model-driven-shared 2.7.0-alpha.4 → 2.7.0-beta.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 +9 -9
- package/dist/esm/entity/Department.js +6 -6
- package/dist/esm/entity/User.js +28 -28
- package/dist/esm/enum.js +2 -8
- package/dist/esm/log.js +47 -58
- package/dist/esm/watcher.js +26 -25
- package/dist/index.umd.js +1 -1
- package/dist/types/enum.d.ts +1 -5
- 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,
|
|
@@ -57,25 +57,25 @@ export var CALC_AGGREGATE_TYPE;
|
|
|
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;
|
|
@@ -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,
|
|
@@ -60,7 +60,6 @@ export var CONTROL_TYPE;
|
|
|
60
60
|
CONTROL_TYPE["ORDER_COLUMN"] = "order-column";
|
|
61
61
|
CONTROL_TYPE["OPERATION_COLUMN"] = "operation-column";
|
|
62
62
|
CONTROL_TYPE["EMPLOYEE_COLUMN"] = "employee-column";
|
|
63
|
-
CONTROL_TYPE["Approval_Status_Column"] = "approval-status-column";
|
|
64
63
|
CONTROL_TYPE[// 表单控件
|
|
65
64
|
"ADDRESS"] = "address";
|
|
66
65
|
CONTROL_TYPE["AMOUNT"] = "amount";
|
|
@@ -101,7 +100,6 @@ export var CONTROL_TYPE;
|
|
|
101
100
|
CONTROL_TYPE["GRID"] = "grid";
|
|
102
101
|
CONTROL_TYPE["GRID_ROW"] = "grid-row";
|
|
103
102
|
CONTROL_TYPE["GRID_TABLE_COLUMN"] = "grid-table-column";
|
|
104
|
-
CONTROL_TYPE["GRID_LAYOUT_CONTAINER"] = "grid-layout-container";
|
|
105
103
|
CONTROL_TYPE["ROW"] = "row";
|
|
106
104
|
CONTROL_TYPE["TWO_COLUMNS"] = "two-columns";
|
|
107
105
|
CONTROL_TYPE["SUBTABLE_COLUMN"] = "subtable-column";
|
|
@@ -111,7 +109,6 @@ export var CONTROL_TYPE;
|
|
|
111
109
|
CONTROL_TYPE["TOOLBOX"] = "toolbox";
|
|
112
110
|
CONTROL_TYPE["DATA_VIEW"] = "data-view";
|
|
113
111
|
CONTROL_TYPE["LIST_VIEW"] = "list-view";
|
|
114
|
-
CONTROL_TYPE["ACTION_BAR"] = "action-bar";
|
|
115
112
|
CONTROL_TYPE[// list控件
|
|
116
113
|
"SUBTABLE"] = "subtable";
|
|
117
114
|
CONTROL_TYPE["GRID_TABLE"] = "grid-table";
|
|
@@ -123,9 +120,6 @@ export var CONTROL_TYPE;
|
|
|
123
120
|
CONTROL_TYPE["TREE"] = "tree";
|
|
124
121
|
CONTROL_TYPE["EMPLOYEE2"] = "employee2";
|
|
125
122
|
CONTROL_TYPE["DEPARTMENT2"] = "department2";
|
|
126
|
-
CONTROL_TYPE[// wrap控件
|
|
127
|
-
// grid_wrap 必须结合 grid-layout-container
|
|
128
|
-
"GRID_LAYOUT_WRAP"] = "grid-layout-wrap";
|
|
129
123
|
})(CONTROL_TYPE || (CONTROL_TYPE = {}));
|
|
130
124
|
export var FieldTypes;
|
|
131
125
|
(function(FieldTypes) {
|
|
@@ -203,7 +197,7 @@ export var FieldTypes;
|
|
|
203
197
|
* */ "ENCRYPTED_FIELD"] = "encrypted_field";
|
|
204
198
|
})(FieldTypes || (FieldTypes = {}));
|
|
205
199
|
var _obj;
|
|
206
|
-
export var FieldTypeToColumnType = (_obj = {},
|
|
200
|
+
export var FieldTypeToColumnType = (_obj = {}, _define_property(_obj, FieldTypes.ARRAY, CONTROL_TYPE.ARRAY_COLUMN), _define_property(_obj, FieldTypes.AUTO_NUMBER, CONTROL_TYPE.AUTO_NUMBER_COLUMN), _define_property(_obj, FieldTypes.DECIMAL, CONTROL_TYPE.DECIMAL_COLUMN), _define_property(_obj, FieldTypes.DEPARTMENTS, CONTROL_TYPE.DEPARTMENT_COLUMN), _define_property(_obj, FieldTypes.FILE, CONTROL_TYPE.FILE_COLUMN), _define_property(_obj, FieldTypes.IMAGE, CONTROL_TYPE.IMAGE_COLUMN), _define_property(_obj, FieldTypes.ADDRESS, CONTROL_TYPE.LOCATION_COLUMN), _define_property(_obj, FieldTypes.EMPLOYEES, CONTROL_TYPE.EMPLOYEE_COLUMN), _define_property(_obj, FieldTypes.TEXT, CONTROL_TYPE.TEXT_COLUMN), _define_property(_obj, FieldTypes.TIMESCOPE, CONTROL_TYPE.TIMESCOPE_COLUMN), _define_property(_obj, FieldTypes.TIMESTAMP, CONTROL_TYPE.TIMESTAMP_COLUMN), _define_property(_obj, FieldTypes.VARCHAR, CONTROL_TYPE.VARCHAR_COLUMN), _define_property(_obj, FieldTypes.RELATION, CONTROL_TYPE.VARCHAR_COLUMN), _obj);
|
|
207
201
|
export var DateType;
|
|
208
202
|
(function(DateType) {
|
|
209
203
|
DateType[/**
|
package/dist/esm/log.js
CHANGED
|
@@ -1,55 +1,44 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _array_like_to_array(arr, len) {
|
|
2
2
|
if (len == null || len > arr.length) len = arr.length;
|
|
3
3
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4
4
|
return arr2;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
7
|
-
if (Array.isArray(arr)) return
|
|
6
|
+
function _array_without_holes(arr) {
|
|
7
|
+
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function _assert_this_initialized(self) {
|
|
10
10
|
if (self === void 0) {
|
|
11
11
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
12
12
|
}
|
|
13
13
|
return self;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function _class_call_check(instance, Constructor) {
|
|
16
16
|
if (!(instance instanceof Constructor)) {
|
|
17
17
|
throw new TypeError("Cannot call a class as a function");
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
function isNativeReflectConstruct() {
|
|
21
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
22
|
-
if (Reflect.construct.sham) return false;
|
|
23
|
-
if (typeof Proxy === "function") return true;
|
|
24
|
-
try {
|
|
25
|
-
Date.prototype.toString.call(Reflect.construct(Date, [], function() {}));
|
|
26
|
-
return true;
|
|
27
|
-
} catch (e) {
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
20
|
function _construct(Parent, args, Class) {
|
|
32
|
-
if (
|
|
21
|
+
if (_is_native_reflect_construct()) {
|
|
33
22
|
_construct = Reflect.construct;
|
|
34
23
|
} else {
|
|
35
|
-
_construct = function
|
|
24
|
+
_construct = function construct(Parent, args, Class) {
|
|
36
25
|
var a = [
|
|
37
26
|
null
|
|
38
27
|
];
|
|
39
28
|
a.push.apply(a, args);
|
|
40
29
|
var Constructor = Function.bind.apply(Parent, a);
|
|
41
30
|
var instance = new Constructor();
|
|
42
|
-
if (Class)
|
|
31
|
+
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
43
32
|
return instance;
|
|
44
33
|
};
|
|
45
34
|
}
|
|
46
35
|
return _construct.apply(null, arguments);
|
|
47
36
|
}
|
|
48
|
-
function
|
|
49
|
-
|
|
37
|
+
function _get_prototype_of(o) {
|
|
38
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
50
39
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
51
40
|
};
|
|
52
|
-
return
|
|
41
|
+
return _get_prototype_of(o);
|
|
53
42
|
}
|
|
54
43
|
function _inherits(subClass, superClass) {
|
|
55
44
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -62,49 +51,49 @@ function _inherits(subClass, superClass) {
|
|
|
62
51
|
configurable: true
|
|
63
52
|
}
|
|
64
53
|
});
|
|
65
|
-
if (superClass)
|
|
54
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
66
55
|
}
|
|
67
|
-
function
|
|
56
|
+
function _is_native_function(fn) {
|
|
68
57
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
69
58
|
}
|
|
70
|
-
function
|
|
59
|
+
function _iterable_to_array(iter) {
|
|
71
60
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
72
61
|
}
|
|
73
|
-
function
|
|
62
|
+
function _non_iterable_spread() {
|
|
74
63
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
75
64
|
}
|
|
76
|
-
function
|
|
77
|
-
if (call && (
|
|
65
|
+
function _possible_constructor_return(self, call) {
|
|
66
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
78
67
|
return call;
|
|
79
68
|
}
|
|
80
|
-
return
|
|
69
|
+
return _assert_this_initialized(self);
|
|
81
70
|
}
|
|
82
|
-
function
|
|
83
|
-
|
|
71
|
+
function _set_prototype_of(o, p) {
|
|
72
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
84
73
|
o.__proto__ = p;
|
|
85
74
|
return o;
|
|
86
75
|
};
|
|
87
|
-
return
|
|
76
|
+
return _set_prototype_of(o, p);
|
|
88
77
|
}
|
|
89
|
-
function
|
|
90
|
-
return
|
|
78
|
+
function _to_consumable_array(arr) {
|
|
79
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
91
80
|
}
|
|
92
|
-
|
|
81
|
+
function _type_of(obj) {
|
|
93
82
|
"@swc/helpers - typeof";
|
|
94
83
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
95
|
-
}
|
|
96
|
-
function
|
|
84
|
+
}
|
|
85
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
97
86
|
if (!o) return;
|
|
98
|
-
if (typeof o === "string") return
|
|
87
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
99
88
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
100
89
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
101
90
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
102
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
91
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
103
92
|
}
|
|
104
|
-
function
|
|
93
|
+
function _wrap_native_super(Class) {
|
|
105
94
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
106
|
-
|
|
107
|
-
if (Class === null || !
|
|
95
|
+
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
96
|
+
if (Class === null || !_is_native_function(Class)) return Class;
|
|
108
97
|
if (typeof Class !== "function") {
|
|
109
98
|
throw new TypeError("Super expression must either be null or a function");
|
|
110
99
|
}
|
|
@@ -113,7 +102,7 @@ function _wrapNativeSuper(Class) {
|
|
|
113
102
|
_cache.set(Class, Wrapper);
|
|
114
103
|
}
|
|
115
104
|
function Wrapper() {
|
|
116
|
-
return _construct(Class, arguments,
|
|
105
|
+
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
117
106
|
}
|
|
118
107
|
Wrapper.prototype = Object.create(Class.prototype, {
|
|
119
108
|
constructor: {
|
|
@@ -123,11 +112,11 @@ function _wrapNativeSuper(Class) {
|
|
|
123
112
|
configurable: true
|
|
124
113
|
}
|
|
125
114
|
});
|
|
126
|
-
return
|
|
115
|
+
return _set_prototype_of(Wrapper, Class);
|
|
127
116
|
};
|
|
128
|
-
return
|
|
117
|
+
return _wrap_native_super(Class);
|
|
129
118
|
}
|
|
130
|
-
function
|
|
119
|
+
function _is_native_reflect_construct() {
|
|
131
120
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
132
121
|
if (Reflect.construct.sham) return false;
|
|
133
122
|
if (typeof Proxy === "function") return true;
|
|
@@ -138,17 +127,17 @@ function _isNativeReflectConstruct() {
|
|
|
138
127
|
return false;
|
|
139
128
|
}
|
|
140
129
|
}
|
|
141
|
-
function
|
|
142
|
-
var hasNativeReflectConstruct =
|
|
130
|
+
function _create_super(Derived) {
|
|
131
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
143
132
|
return function _createSuperInternal() {
|
|
144
|
-
var Super =
|
|
133
|
+
var Super = _get_prototype_of(Derived), result;
|
|
145
134
|
if (hasNativeReflectConstruct) {
|
|
146
|
-
var NewTarget =
|
|
135
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
147
136
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
148
137
|
} else {
|
|
149
138
|
result = Super.apply(this, arguments);
|
|
150
139
|
}
|
|
151
|
-
return
|
|
140
|
+
return _possible_constructor_return(this, result);
|
|
152
141
|
};
|
|
153
142
|
}
|
|
154
143
|
var logger = console;
|
|
@@ -160,7 +149,7 @@ export function warn() {
|
|
|
160
149
|
var other = data.slice(1);
|
|
161
150
|
(_logger = logger).warn.apply(_logger, [
|
|
162
151
|
"\uD83E\uDDD0 Driven Warning:" + data[0]
|
|
163
|
-
].concat(
|
|
152
|
+
].concat(_to_consumable_array(other)));
|
|
164
153
|
}
|
|
165
154
|
export function log() {
|
|
166
155
|
for(var _len = arguments.length, data = new Array(_len), _key = 0; _key < _len; _key++){
|
|
@@ -170,7 +159,7 @@ export function log() {
|
|
|
170
159
|
var other = data.slice(1);
|
|
171
160
|
(_logger = logger).log.apply(_logger, [
|
|
172
161
|
"\uD83D\uDE80 Driven Log:" + data[0]
|
|
173
|
-
].concat(
|
|
162
|
+
].concat(_to_consumable_array(other)));
|
|
174
163
|
}
|
|
175
164
|
function joinMessage(message) {
|
|
176
165
|
return message + " \uD83D\uDC1B\uD83D\uDC1B\uD83D\uDC1B";
|
|
@@ -179,9 +168,9 @@ function joinMessage(message) {
|
|
|
179
168
|
var DrivenError = /*#__PURE__*/ function(Error1) {
|
|
180
169
|
"use strict";
|
|
181
170
|
_inherits(DrivenError, Error1);
|
|
182
|
-
var _super =
|
|
171
|
+
var _super = _create_super(DrivenError);
|
|
183
172
|
function DrivenError(message) {
|
|
184
|
-
|
|
173
|
+
_class_call_check(this, DrivenError);
|
|
185
174
|
var _this;
|
|
186
175
|
_this = _super.call(this, message);
|
|
187
176
|
_this.name = "\uD83D\uDCA5 Driven Error";
|
|
@@ -189,14 +178,14 @@ var DrivenError = /*#__PURE__*/ function(Error1) {
|
|
|
189
178
|
return _this;
|
|
190
179
|
}
|
|
191
180
|
return DrivenError;
|
|
192
|
-
}(
|
|
181
|
+
}(_wrap_native_super(Error));
|
|
193
182
|
// 驱动语法错误
|
|
194
183
|
var DrivenReferenceError = /*#__PURE__*/ function(DrivenError) {
|
|
195
184
|
"use strict";
|
|
196
185
|
_inherits(DrivenReferenceError, DrivenError);
|
|
197
|
-
var _super =
|
|
186
|
+
var _super = _create_super(DrivenReferenceError);
|
|
198
187
|
function DrivenReferenceError(message) {
|
|
199
|
-
|
|
188
|
+
_class_call_check(this, DrivenReferenceError);
|
|
200
189
|
var _this;
|
|
201
190
|
_this = _super.call(this, message);
|
|
202
191
|
_this.name = "\uD83D\uDEA8 Driven Reference Error";
|
package/dist/esm/watcher.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _array_like_to_array(arr, len) {
|
|
2
2
|
if (len == null || len > arr.length) len = arr.length;
|
|
3
3
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4
4
|
return arr2;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
7
|
-
if (Array.isArray(arr)) return
|
|
6
|
+
function _array_without_holes(arr) {
|
|
7
|
+
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
8
8
|
}
|
|
9
9
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
10
10
|
try {
|
|
@@ -20,7 +20,7 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
20
20
|
Promise.resolve(value).then(_next, _throw);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function _async_to_generator(fn) {
|
|
24
24
|
return function() {
|
|
25
25
|
var self = this, args = arguments;
|
|
26
26
|
return new Promise(function(resolve, reject) {
|
|
@@ -35,7 +35,7 @@ function _asyncToGenerator(fn) {
|
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function _class_call_check(instance, Constructor) {
|
|
39
39
|
if (!(instance instanceof Constructor)) {
|
|
40
40
|
throw new TypeError("Cannot call a class as a function");
|
|
41
41
|
}
|
|
@@ -49,12 +49,12 @@ function _defineProperties(target, props) {
|
|
|
49
49
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
53
53
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
54
54
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
55
55
|
return Constructor;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function _define_property(obj, key, value) {
|
|
58
58
|
if (key in obj) {
|
|
59
59
|
Object.defineProperty(obj, key, {
|
|
60
60
|
value: value,
|
|
@@ -67,24 +67,24 @@ function _defineProperty(obj, key, value) {
|
|
|
67
67
|
}
|
|
68
68
|
return obj;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function _iterable_to_array(iter) {
|
|
71
71
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function _non_iterable_spread() {
|
|
74
74
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return
|
|
76
|
+
function _to_consumable_array(arr) {
|
|
77
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
80
80
|
if (!o) return;
|
|
81
|
-
if (typeof o === "string") return
|
|
81
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
82
82
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
83
83
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
84
84
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
85
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
85
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
function _ts_generator(thisArg, body) {
|
|
88
88
|
var f, y, t, g, _ = {
|
|
89
89
|
label: 0,
|
|
90
90
|
sent: function() {
|
|
@@ -178,18 +178,18 @@ var __generator = this && this.__generator || function(thisArg, body) {
|
|
|
178
178
|
done: true
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
}
|
|
181
|
+
}
|
|
182
182
|
import { log, logerror } from "./log";
|
|
183
183
|
// 通信总线
|
|
184
184
|
var Watcher = /*#__PURE__*/ function() {
|
|
185
185
|
"use strict";
|
|
186
186
|
function Watcher() {
|
|
187
|
-
|
|
187
|
+
_class_call_check(this, Watcher);
|
|
188
188
|
// 全局事件维护
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
_define_property(this, "_events", new Map());
|
|
190
|
+
_define_property(this, "debug", false);
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
_create_class(Watcher, [
|
|
193
193
|
{
|
|
194
194
|
key: "emit",
|
|
195
195
|
value: //发布,触发事件
|
|
@@ -198,9 +198,9 @@ var Watcher = /*#__PURE__*/ function() {
|
|
|
198
198
|
payload[_key - 1] = arguments[_key];
|
|
199
199
|
}
|
|
200
200
|
var _this = this;
|
|
201
|
-
return
|
|
201
|
+
return _async_to_generator(function() {
|
|
202
202
|
var callbacksOrigin, results, _callbacks, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, callback, result, e, err;
|
|
203
|
-
return
|
|
203
|
+
return _ts_generator(this, function(_state) {
|
|
204
204
|
switch(_state.label){
|
|
205
205
|
case 0:
|
|
206
206
|
callbacksOrigin = _this._events.get(key);
|
|
@@ -209,6 +209,7 @@ var Watcher = /*#__PURE__*/ function() {
|
|
|
209
209
|
3,
|
|
210
210
|
10
|
|
211
211
|
];
|
|
212
|
+
// 由于执行回调是异步队列的形式,所以需要复制一份原来的callbacks,确保不会因为循环过程中卸载了一些事件导致的事件执行错误问题
|
|
212
213
|
_callbacks = callbacksOrigin.slice();
|
|
213
214
|
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
214
215
|
_state.label = 1;
|
|
@@ -246,10 +247,10 @@ var Watcher = /*#__PURE__*/ function() {
|
|
|
246
247
|
"正在执行 ".concat(key, " 事件: ").concat(callback.applyingPluginName ? "当前执行的插件为:" + callback.applyingPluginName : "", ", 当前执行函数的参数为").concat(payload.map(function() {
|
|
247
248
|
return "%o";
|
|
248
249
|
}).join(","), "。")
|
|
249
|
-
].concat(
|
|
250
|
+
].concat(_to_consumable_array(payload)));
|
|
250
251
|
return [
|
|
251
252
|
4,
|
|
252
|
-
callback.apply(null,
|
|
253
|
+
callback.apply(null, _to_consumable_array(payload))
|
|
253
254
|
];
|
|
254
255
|
case 4:
|
|
255
256
|
result = _state.sent();
|
|
@@ -257,7 +258,7 @@ var Watcher = /*#__PURE__*/ function() {
|
|
|
257
258
|
"正在执行 ".concat(key, " 事件: ").concat(callback.applyingPluginName ? "当前执行的插件为:" + callback.applyingPluginName : "", ", 当前执行函数的参数为").concat(payload.map(function() {
|
|
258
259
|
return "%o";
|
|
259
260
|
}).join(","), "; 函数的返回结果为%o")
|
|
260
|
-
].concat(
|
|
261
|
+
].concat(_to_consumable_array(payload), [
|
|
261
262
|
result
|
|
262
263
|
]));
|
|
263
264
|
results.push(result);
|
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var te=(n,A,p)=>new Promise((f,g)=>{var b=B=>{try{h(p.next(B))}catch(d){g(d)}},S=B=>{try{h(p.throw(B))}catch(d){g(d)}},h=B=>B.done?f(B.value):Promise.resolve(B.value).then(b,S);h((p=p.apply(n,A)).next())});(function(n,A){typeof exports=="object"&&typeof module!="undefined"?A(exports):typeof define=="function"&&define.amd?define(["exports"],A):(n=typeof globalThis!="undefined"?globalThis:n||self,A(n.modelDrivenShared={}))})(this,function(n){"use strict";class A{}class p{}var f="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",g="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",b="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",S="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",h="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",B="{caption}\u5FC5\u586B",d="\u8BF7\u8F93\u5165\u6807\u9898",ae="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",ne="\u8BF7\u8F93\u5165\u884C\u6807\u9898",re="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",se="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",le="\u8BF7\u7ED1\u5B9A\u8868\u5355",ie="\u8BF7\u7ED1\u5B9A\u5217\u8868",oe="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",Ee="\u8BF7\u8F93\u5165\u663E\u793A\u503C",ce="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",Be="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",Fe="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",Ae="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",pe="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",me="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",he="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",de="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",ve="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",De="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",ge="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",Ce="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",fe="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",be="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",Se="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Ie="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",ye="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",Me="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",$e="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",we="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Re="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Le="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Ne="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",_e="\u8BF7\u9009\u62E9\u7701",Ue="\u8BF7\u9009\u62E9\u5E02",Ve="\u8BF7\u9009\u62E9\u533A",ke="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Te="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",ze="\u8BF7\u8F93\u5165\u5217\u5BBD",je="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Ge="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",xe="\u8BF7\u9009\u62E9\u63A7\u4EF6",Ke="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",He="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",qe="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",We="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Pe="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Xe="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Je="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Oe="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Qe="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Ze="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Ye="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",eu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",uu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",tu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",au="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",nu="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",ru="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",su="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",lu="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",iu="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",ou="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Eu={isNotNumber:f,isNotString:g,isNotObject:b,isNotArray:S,isNotBoolean:h,runtimeRequired:B,pleaseEnterCaption:d,pleaseEnterCaptionTip:ae,pleaseEnterRowCaption:ne,pleaseEnterPlaceholder:re,pleaseEnterFieldCode:se,pleaseEnterForm:le,pleaseEnterList:ie,pleaseEnterProcess:oe,pleaseEnterLabel:Ee,pleaseEnterValue:ce,bizKeyNotBindFiled:Be,pleaseSelectOneField:Fe,pleaseEnterNumberRange:Ae,pleaseEnterAValueGreaterThanMin:pe,pleaseEnterAValueLessThanMax:me,numberRangeSetError:he,stringRangeError:de,attachmentMaxSize:ve,pleaseEnterTotalScoreSetting:De,theTotalScoreMustNotBeLessThan1:ge,scoreDefaultValueRange:Ce,attachmentLimitError:fe,PleaseReselectTheOptionalQuantity:be,TheMaximumLengthIsGreaterThanTheMinimumLength:Se,TheMinimumLengthIsGreaterThanTheMaximumLength:Ie,PleaseSelectTheCorrectOptionSettings:ye,optionIdIsRepeat:Me,optionIsRequired:$e,pleaseEnterDataCode:we,pleaseEnterValueFieldCode:Re,pleaseEnterSvcCode:Le,pleaseBindAtLeastOneDisplayValue:Ne,pleaseSelectProvince:_e,pleaseSelectCity:Ue,pleaseSelectDistrict:Ve,limitRowsCannotBeLessThan0:ke,TheNumberOfRowsCannotBeLessThanMinRows:Te,pleaseEnterColumnWidth:ze,pleaseSetTheLogicalRelationshipOfAllRuleConditions:je,pleaseCompleteAllRulesAndConditions:Ge,pleaseSelectControl:xe,pleaseSelectAtLeastOneColumn:Ke,pleaseSelectFillBackMode:He,pleaseSelectDashboard:qe,rootNodeIsRequired:We,theViewNameCannotBeEmpty:Pe,pleaseSelectOcrType:Xe,pleaseSelectAtLeastOneFieldToFillIn:Je,pleaseChooseAtLeastOne:Oe,pleaseEnterButtonContent:Qe,pleaseEnterDataCodeInDataSetting:Ze,pleaseEnterValueFieldCodeInDataSetting:Ye,pleaseEnterSvcCodeInDataSetting:eu,pleaseBindAtLeastOneDisplayValueInDataSetting:uu,rootNodeIsRequiredInDataSetting:tu,pleaseEnterMaxHeight:au,pleaseEnter:nu,pleaseEnterWatermark:ru,pleaseEnterFileName:su,pleaseUploadAtLeastOnePrintTemplate:lu,pleaseAssignBusiness:iu,pleaseAssignExternal:ou},cu="Please enter a number",Bu="Please enter a string",Fu="Please enter an object",Au="Please enter an array",pu="Please enter a boolean",mu="{caption} Required",hu="Please enter the title",du="Please enter the bubble prompt",vu="Please enter the row title",Du="Please enter the prompt text",gu="Please bind data items",Cu="Please bind the form",fu="Please bind the list",bu="Please bind the process",Su="Please enter the displayed value",Iu="Please enter the stored value",yu="The document number is not bound to the data item",Mu="Please select at least one display field",$u="Please enter a value greater than or equal to {min} and less than or equal to {max}",wu="Please enter a value greater than or equal to {min}",Ru="Please enter a value less than or equal to {max}",Lu="The value range is set incorrectly",Nu="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",_u="The attachment size must be between 0MB and 1000MB",Uu="Please fill in the total score setting",Vu="The total score cannot be less than 1",ku="The default value must be between {min} and {max}",Tu="The number of attachments uploaded must be between {min} and {max}",zu="Please re-select the optional quantity",ju="The maximum length of the control must be greater than the minimum length",Gu="The minimum length of the control must be less than the maximum length",xu="Please select the correct option setting",Ku="Option ID cannot be repeated",Hu="Please enter at least one option",qu="Please bind the data source",Wu="Please bind the stored value",Pu="Please bind the service",Xu="At least one display value must be bound",Ju="Please select a province",Ou="Please select a city",Qu="Please select a district",Zu="The minimum number of lines to fill in cannot be less than 0",Yu="The number of rows cannot be less than {min} rows",et="Please enter the column width",ut="Please set the logical relationship of all rule conditions",tt="Please complete all rules and conditions",at="please select control",nt="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",rt="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",st="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",lt="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",it="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",ot="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Et="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",ct="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Bt="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Ft="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",At="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",pt="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",mt="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",ht="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",dt="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",vt="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Dt="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",gt="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Ct={isNotNumber:cu,isNotString:Bu,isNotObject:Fu,isNotArray:Au,isNotBoolean:pu,runtimeRequired:mu,pleaseEnterCaption:hu,pleaseEnterCaptionTip:du,pleaseEnterRowCaption:vu,pleaseEnterPlaceholder:Du,pleaseEnterFieldCode:gu,pleaseEnterForm:Cu,pleaseEnterList:fu,pleaseEnterProcess:bu,pleaseEnterLabel:Su,pleaseEnterValue:Iu,bizKeyNotBindFiled:yu,pleaseSelectOneField:Mu,pleaseEnterNumberRange:$u,pleaseEnterAValueGreaterThanMin:wu,pleaseEnterAValueLessThanMax:Ru,numberRangeSetError:Lu,stringRangeError:Nu,attachmentMaxSize:_u,pleaseEnterTotalScoreSetting:Uu,theTotalScoreMustNotBeLessThan1:Vu,scoreDefaultValueRange:ku,attachmentLimitError:Tu,PleaseReselectTheOptionalQuantity:zu,TheMaximumLengthIsGreaterThanTheMinimumLength:ju,TheMinimumLengthIsGreaterThanTheMaximumLength:Gu,PleaseSelectTheCorrectOptionSettings:xu,optionIdIsRepeat:Ku,optionIsRequired:Hu,pleaseEnterDataCode:qu,pleaseEnterValueFieldCode:Wu,pleaseEnterSvcCode:Pu,pleaseBindAtLeastOneDisplayValue:Xu,pleaseSelectProvince:Ju,pleaseSelectCity:Ou,pleaseSelectDistrict:Qu,limitRowsCannotBeLessThan0:Zu,TheNumberOfRowsCannotBeLessThanMinRows:Yu,pleaseEnterColumnWidth:et,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ut,pleaseCompleteAllRulesAndConditions:tt,pleaseSelectControl:at,pleaseSelectDashboard:nt,theViewNameCannotBeEmpty:rt,pleaseSelectOcrType:st,pleaseSelectAtLeastOneFieldToFillIn:lt,pleaseChooseAtLeastOne:it,pleaseEnterButtonContent:ot,pleaseEnterDataCodeInDataSetting:Et,pleaseEnterValueFieldCodeInDataSetting:ct,pleaseEnterSvcCodeInDataSetting:Bt,pleaseBindAtLeastOneDisplayValueInDataSetting:Ft,rootNodeIsRequiredInDataSetting:At,pleaseEnterMaxHeight:pt,pleaseEnter:mt,pleaseEnterWatermark:ht,pleaseEnterFileName:dt,pleaseUploadAtLeastOnePrintTemplate:vt,pleaseAssignBusiness:Dt,pleaseAssignExternal:gt},ft="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",bt="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",St="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",It="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",yt="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Mt="{caption}\u5FC5\u9808",$t="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",wt="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Rt="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Lt="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Nt="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",_t="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ut="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Vt="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",kt="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Tt="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",zt="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",jt="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Gt="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",xt="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Kt="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ht="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",qt="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Wt="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Pt="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Xt="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Jt="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Ot="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Qt="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Zt="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5927\u5024\u306F\u6700\u5C0F\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Yt="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5C0F\u5024\u306F\u6700\u5927\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",ea="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ua="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",ta="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",aa="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",na="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ra="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",sa="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",la="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ia="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",oa="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ea="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",ca="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ba="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Fa="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Aa="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",pa="please select control",ma="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",ha="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",da="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",va="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Da="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",ga="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Ca="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",fa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",ba="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Sa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Ia="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ya="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Ma="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",$a="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",wa="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ra="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",La="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Na="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",_a={isNotNumber:ft,isNotString:bt,isNotObject:St,isNotArray:It,isNotBoolean:yt,runtimeRequired:Mt,pleaseEnterCaption:$t,pleaseEnterCaptionTip:wt,pleaseEnterRowCaption:Rt,pleaseEnterPlaceholder:Lt,pleaseEnterFieldCode:Nt,pleaseEnterForm:_t,pleaseEnterList:Ut,pleaseEnterProcess:Vt,pleaseEnterLabel:kt,pleaseEnterValue:Tt,bizKeyNotBindFiled:zt,pleaseSelectOneField:jt,pleaseEnterNumberRange:Gt,pleaseEnterAValueGreaterThanMin:xt,pleaseEnterAValueLessThanMax:Kt,numberRangeSetError:Ht,stringRangeError:qt,attachmentMaxSize:Wt,pleaseEnterTotalScoreSetting:Pt,theTotalScoreMustNotBeLessThan1:Xt,scoreDefaultValueRange:Jt,attachmentLimitError:Ot,PleaseReselectTheOptionalQuantity:Qt,TheMaximumLengthIsGreaterThanTheMinimumLength:Zt,TheMinimumLengthIsGreaterThanTheMaximumLength:Yt,PleaseSelectTheCorrectOptionSettings:ea,optionIdIsRepeat:ua,optionIsRequired:ta,pleaseEnterDataCode:aa,pleaseEnterValueFieldCode:na,pleaseEnterSvcCode:ra,pleaseBindAtLeastOneDisplayValue:sa,pleaseSelectProvince:la,pleaseSelectCity:ia,pleaseSelectDistrict:oa,limitRowsCannotBeLessThan0:Ea,TheNumberOfRowsCannotBeLessThanMinRows:ca,pleaseEnterColumnWidth:Ba,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Fa,pleaseCompleteAllRulesAndConditions:Aa,pleaseSelectControl:pa,pleaseSelectDashboard:ma,theViewNameCannotBeEmpty:ha,pleaseSelectOcrType:da,pleaseSelectAtLeastOneFieldToFillIn:va,pleaseChooseAtLeastOne:Da,pleaseEnterButtonContent:ga,pleaseEnterDataCodeInDataSetting:Ca,pleaseEnterValueFieldCodeInDataSetting:fa,pleaseEnterSvcCodeInDataSetting:ba,pleaseBindAtLeastOneDisplayValueInDataSetting:Sa,rootNodeIsRequiredInDataSetting:Ia,pleaseEnterMaxHeight:ya,pleaseEnter:Ma,pleaseEnterWatermark:$a,pleaseEnterFileName:wa,pleaseUploadAtLeastOnePrintTemplate:Ra,pleaseAssignBusiness:La,pleaseAssignExternal:Na},Ua={zhCN:Eu,enUS:Ct,jaJP:_a},V=(e=>(e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable",e))(V||{}),k=(e=>(e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN",e))(k||{});class Va{constructor(u){var t,a,l,o,i,E;this.name=(t=u==null?void 0:u.name)!=null?t:"",this.id=(a=u==null?void 0:u.id)!=null?a:"",this.type=(l=u==null?void 0:u.type)!=null?l:"Number",this.subTableId=(o=u==null?void 0:u.subTableId)!=null?o:void 0,this.subTableName=(i=u==null?void 0:u.subTableId)!=null?i:void 0,this.aggregateType=(E=u==null?void 0:u.aggregateType)!=null?E:void 0}}const T="zh-CN",ka=()=>{};var z=(e=>(e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search",e))(z||{}),I=(e=>(e.TITLE="title",e.LINK="link",e.BUTTON="button",e.DIVIDER="divider",e.TEXT="text",e.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",e.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",e.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",e.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",e.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",e.EXPORT_LIST_BUTTON="list-page-btn-export-list",e.LIST_SELECT_BUTTON="list-select-button",e.ORGANIZATION_SELECTION="organization-selection",e.FORM_SELECT_BUTTON="form-select-button",e.LIST_VIEW_SELECT="list-view-select",e.TEXT_OCR_BUTTON="text-ocr-button",e.INVOICE_CHECK_BUTTON="invoice-check-button",e.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",e.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",e.VARCHAR_COLUMN="varchar-column",e.TEXT_COLUMN="text-column",e.DECIMAL_COLUMN="decimal-column",e.TIMESCOPE_COLUMN="timescope-column",e.TIMESTAMP_COLUMN="timestamp-column",e.ARRAY_COLUMN="array-column",e.DEPARTMENT_COLUMN="department-column",e.AUTO_NUMBER_COLUMN="auto-number-column",e.FILE_COLUMN="file-column",e.IMAGE_COLUMN="image-column",e.PEOPLE_COLUMN="people-column",e.LOCATION_COLUMN="location-column",e.CUSTOM_COLUMN="custom-column",e.ORDER_COLUMN="order-column",e.OPERATION_COLUMN="operation-column",e.EMPLOYEE_COLUMN="employee-column",e.Approval_Status_Column="approval-status-column",e.ADDRESS="address",e.AMOUNT="amount",e.ATTACHMENT="attachment",e.AUTO_NUMBER="auto-number",e.CALC="calc",e.CHECKBOX="checkbox",e.DATE_PICKER="date-picker",e.DATE_RANGE="date-range",e.DEPARTMENT="department",e.EMPLOYEE="employee",e.IMAGE="image",e.INPUT="input",e.NUMBER="number",e.RADIO="radio",e.RICH_TEXT="rich-text",e.SCORE="score",e.SEARCH_DATE_RANGE="search-date-range",e.SEARCH_NUMBER_RANGE="search-number-range",e.SEARCH_INPUT="search-input",e.SELECT="select",e.SELECT_MULTIPLE="select-multiple",e.SELECT_RELATION="select-relation",e.VUE_FORM_ITEM="vue-form-item",e.TEXTAREA="textarea",e.EMAIL="email",e.FOOTER="footer",e.HEADER="header",e.ID_CARD="id-card",e.MOBILE="mobile",e.PHONE="phone",e.RADIO_IMAGE="radio-image",e.ELECTRONIC_SIGNATURE="electronic-signature",e.WPS="wps",e.CARD_GROUP="card-group",e.COL="col",e.GRID="grid",e.GRID_ROW="grid-row",e.GRID_TABLE_COLUMN="grid-table-column",e.GRID_LAYOUT_CONTAINER="grid-layout-container",e.ROW="row",e.TWO_COLUMNS="two-columns",e.SUBTABLE_COLUMN="subtable-column",e.SUBTABLE_ROW="subtable-row",e.TAB="tab",e.TAB_PANE="tab-pane",e.TOOLBOX="toolbox",e.DATA_VIEW="data-view",e.LIST_VIEW="list-view",e.ACTION_BAR="action-bar",e.SUBTABLE="subtable",e.GRID_TABLE="grid-table",e.SIMPLE_SEARCH="simple-search",e.PAGINATION="pagination",e.CHECKBOX_IMAGE="checkbox-image",e.DASHBOARD="dashboard",e.TREE="tree",e.EMPLOYEE2="employee2",e.DEPARTMENT2="department2",e.GRID_LAYOUT_WRAP="grid-layout-wrap",e))(I||{}),j=(e=>(e.VARCHAR="varchar",e.TEXT="text",e.ARRAY="array",e.ADDRESS="location",e.DECIMAL="decimal",e.DECIMAL_RANGE="decimal_range",e.TIMESTAMP="timestamp",e.EMPLOYEES="people",e.DEPARTMENTS="department",e.MONEY="money",e.TIMESCOPE="timescope",e.FILE="file",e.IMAGE="image",e.AUTO_NUMBER="auto_number",e.CALC="calc",e.RELATION="relation",e.LIST="list",e.RELATION_FIELD="relation-field",e.REFERENCE_FIELD="reference-field",e.CALC_FIELD="calc",e.JSON="json",e.BIGINT="bigint",e.ANY="ANY",e.ENCRYPTED_FIELD="encrypted_field",e))(j||{});const Ta={array:"array-column",auto_number:"auto-number-column",decimal:"decimal-column",department:"department-column",file:"file-column",image:"image-column",location:"location-column",people:"employee-column",text:"text-column",timescope:"timescope-column",timestamp:"timestamp-column",varchar:"varchar-column",relation:"varchar-column"};var G=(e=>(e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATEHOUR="datehour",e.DATEMIN="datemin",e.DATETIME="datetime",e))(G||{});const x="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",za=x+"0123456789";function ja(e=15){let u="";for(let t=0;t<e;t++){const a=t===0?x:za,l=Math.random()*a.length;u+=a[parseInt(String(l),10)]}return u}const y=console;function K(...e){const u=e.slice(1);y.warn("\u{1F9D0} Driven Warning:"+e[0],...u)}function M(...e){const u=e.slice(1);y.log("\u{1F680} Driven Log:"+e[0],...u)}function Ga(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}class $ extends Error{constructor(u){super(u),this.name="\u{1F4A5} Driven Error",this.message=u?Ga(u):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}"}}class xa extends ${constructor(u){super(u),this.name="\u{1F6A8} Driven Reference Error"}}function Ka(e){throw new $(e)}function Ha(e){throw new xa(e)}function H(e){y.error(new $(e))}function w(e,u){Array.isArray(e)&&e.map(t=>{switch(t.controlType){case"layout":w(t==null?void 0:t.children,u);break;case"search":w(t==null?void 0:t.children,u);break;case"form":u(t)}})}var qa=Object.prototype.toString;function q(e,u){return qa.call(e)==="[object "+u+"]"}function Wa(e){return q(e,"String")}function Pa(e){return q(e,"Promise")}var Xa=function(){function e(u){var t,a;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((a=(t=u.messages)!==null&&t!==void 0?t:this.getPreImport(u.locale))!==null&&a!==void 0?a:{}),u.variableRegExp&&(this.variableRegExp=u.variableRegExp),this.setLocale(u.locale)}return e.prototype.setLocale=function(u){var t=this;this.locale=u,this._messageCache.clear();var a=this.getMessageData();Pa(a)?a.then(function(l){t._messageCache.clear(),t.messages[t.localeInMessageKey]=l}):this.messages[this.localeInMessageKey]=a},e.prototype.getMessageData=function(){var u=this._messages[this.localeInMessageKey];return typeof u=="function"?u():u},e.prototype.translate=function(u,t,a){var l=this.getMessage(u);return l?this.formatMessage(l,a):this.formatMessage(t,a)},e.prototype.getMessage=function(u){if(this._messageCache.has(u))return this._messageCache.get(u);var t=this.getPathArray(u),a=t.reduce(function(l,o,i,E){if(l!==void 0){var m=l[o];if(!(i===E.length-1&&!Wa(m)))return m}},this.message);return this._messageCache.set(u,a),a},e.prototype.formatMessage=function(u,t){return t?u.replace(this.variableRegExp,function(a,l){var o=t[l];return o!==void 0?String(o):a}):u},e.prototype.getPreImport=function(u){var t;if(window.okI18nPreImport){var a=this.getLocaleInMessageKey(u);return window.okI18nPreImport.hasOwnProperty(a)?window.okI18nPreImport:(t={},t[a]=window.okI18nPreImport,t)}},e.prototype.getPathArray=function(u){return u.split(".")},e.prototype.getLocaleInMessageKey=function(u){return u.replace(/-/g,"")},Object.defineProperty(e.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){var u;return(u=this.messages[this.localeInMessageKey])!==null&&u!==void 0?u:{}},enumerable:!1,configurable:!0}),e}();const W=class{static getMessage(e,u={}){return this.$i18n.$t(e,"",u)}static resetI18n(e=T){return new Xa({locale:e,messages:Ua})}static setLocale(e){return this.$i18n.setLocale(e)}};let P=W;P.$i18n=W.resetI18n();function Ja(e,u,t){const a=u.replace(/\[(\d)]/g,(o,i)=>"."+i).split(".");let l=!1;return a.reduce((o,i,E,m)=>{const v=o;if(!!o){if(!Object.prototype.hasOwnProperty.call(o,i)){K(`Can not set ${u}'s ${i} property in current %o, Because there is no ${i} property on the %o`,o,o);return}return E===m.length-1&&!Object.is(v[i],t)&&(v[i]=t,l=!0),v[i]}},e),l}var Oa=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},R={exports:{}};(function(e){(function(u){var t=function(r,s,c){if(!v(s)||dn(s)||vn(s)||Dn(s)||m(s))return s;var F,D=0,ue=0;if(hn(s))for(F=[],ue=s.length;D<ue;D++)F.push(t(r,s[D],c));else{F={};for(var U in s)Object.prototype.hasOwnProperty.call(s,U)&&(F[r(U,c)]=t(r,s[U],c))}return F},a=function(r,s){s=s||{};var c=s.separator||"_",F=s.split||/(?=[A-Z])/;return r.split(F).join(c)},l=function(r){return gn(r)?r:(r=r.replace(/[\-_\s]+(.)?/g,function(s,c){return c?c.toUpperCase():""}),r.substr(0,1).toLowerCase()+r.substr(1))},o=function(r){var s=l(r);return s.substr(0,1).toUpperCase()+s.substr(1)},i=function(r,s){return a(r,s).toLowerCase()},E=Object.prototype.toString,m=function(r){return typeof r=="function"},v=function(r){return r===Object(r)},hn=function(r){return E.call(r)=="[object Array]"},dn=function(r){return E.call(r)=="[object Date]"},vn=function(r){return E.call(r)=="[object RegExp]"},Dn=function(r){return E.call(r)=="[object Boolean]"},gn=function(r){return r=r-0,r===r},_=function(r,s){var c=s&&"process"in s?s.process:s;return typeof c!="function"?r:function(F,D){return c(F,r,D)}},ee={camelize:l,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(r,s){return t(_(l,s),r)},decamelizeKeys:function(r,s){return t(_(i,s),r,s)},pascalizeKeys:function(r,s){return t(_(o,s),r)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=ee:u.humps=ee})(Oa)})(R);var X={};Object.defineProperty(X,"__esModule",{value:!0});function L(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(u=>typeof u!="object"||u===null?u:L(u));{const u={};for(const t in e){const a=e[t];u[t]=typeof a!="object"||a===null?a:L(a)}return u}}var Qa=X.default=L;function Za(e){if(e!==void 0)return typeof e=="object"?Qa(e):e}function Ya(e){return J(e)&&"zh"in e}function J(e){return Object.prototype.toString.call(e)==="[object Object]"}function en(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}function C(e){return Array.isArray(e)}function O(e){return typeof e=="string"}function N(e){return typeof e=="number"}function un(e){return typeof e=="function"}function tn(e){return C(e)&&e.every(u=>O(u))}function an(e){return C(e)&&e.every(u=>N(u))}function nn(e){return C(e)&&e.every(u=>N(u)||u==="")}function rn(e){return/^\[.*?]$/.test(e)}function sn(e){return/^{.*?}$/.test(e)}function ln(e){return isNaN(parseFloat(e))?"":Number(e)}function on(e){return e.reduce((u,t)=>(u.includes(t)||u.push(t),u),[])}function En(e,u=500){let t;return function(...a){t||(t=setTimeout(()=>{e.apply(this,a),clearTimeout(t),t=null},u))}}function cn(e=0){return new Promise(u=>{setTimeout(u,e)})}function Q(e,u){let t=[];return Array.isArray(e)&&(t=e.map(a=>{let l=a;return Array.isArray(a==null?void 0:a.children)&&(l.children=Q(a.children,u)),u(l)})),t}function Bn(e){return R.exports.camelizeKeys(e)}function Fn(e){return R.exports.decamelizeKeys(e)}function An(e){return Object.values(I).includes(e)}class pn{constructor(){this._events=new Map,this.debug=!1}emit(u,...t){return te(this,null,function*(){const a=this._events.get(u),l=[];if(a){const o=a.slice();for(const i of o)if(!!a.includes(i))try{this.debug&&M(`\u6B63\u5728\u6267\u884C ${u} \u4E8B\u4EF6: ${i.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+i.applyingPluginName:""}, \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A${t.map(()=>"%o").join(",")}\u3002`,...t);const E=yield i.apply(null,[...t]);if(this.debug&&M(`\u6B63\u5728\u6267\u884C ${u} \u4E8B\u4EF6: ${i.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+i.applyingPluginName:""}, \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A${t.map(()=>"%o").join(",")}; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o`,...t,E),l.push(E),E===!1)break}catch(E){H(String(E)+":"+String(E.stack))}}return l})}on(u,t){var a;this._events.has(u)?(a=this._events.get(u))==null||a.push(t):this._events.set(u,[t])}off(u,t){if(this._events.has(u)){const a=this._events.get(u),l=a==null?void 0:a.indexOf(t);a==null||a.splice(l,1)}}delete(u){this._events.has(u)&&this._events.delete(u)}clear(){this._events=new Map}}const mn=[{key:"on_click",name:"\u70B9\u51FB\u65F6",code:"click"},{key:"on_click_finish",name:"\u6267\u884C\u5B8C\u6210\u65F6",code:"click-finish"},{key:"on_change",name:"\u503C\u53D1\u751F\u53D8\u5316\u65F6",code:"change"},{key:"on_search",name:"\u641C\u7D22\u65F6",code:"search"},{key:"on_list_change",name:"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",code:"list-change"},{key:"on_list_search",name:"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",code:"list-search"},{key:"on_list_mounted",name:"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",code:"list-mounted"},{key:"on_list_delete",name:"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",code:"list-delete"},{key:"on_list_before_insert",name:"\u5217\u8868\u6570\u636E\u63D2\u5165\u524D",code:"list-before-insert"},{key:"on_input",name:"\u7528\u6237\u8F93\u5165\u65F6",code:"input"},{key:"on_blur",name:"\u5931\u53BB\u7126\u70B9\u65F6",code:"blur"},{key:"on_focus",name:"\u83B7\u53D6\u7126\u70B9\u65F6",code:"focus"},{key:"on_wps_open",name:"\u6253\u5F00\u6587\u4EF6\u65F6",code:"wps-open"},{key:"on_wps_save",name:"\u4FDD\u5B58\u6587\u4EF6\u65F6",code:"wps-save"},{key:"on_wps_rename",name:"\u91CD\u547D\u540D\u65F6",code:"wps-rename"},{key:"on_list_actions",name:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",code:"list-actions"},{key:"on_list_render_operation",name:"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",code:"list-render-operation"},{key:"on_list_rowclick",name:"\u884C\u70B9\u51FB\u65F6",code:"list-rowclick"},{key:"on_list_before_rowdelete",name:"\u884C\u5220\u9664\u524D",code:"list-before-rowdelete"},{key:"on_list_before_import",name:"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",code:"list-before-import"},{key:"on_list_rows_checked",name:"\u884C\u9009\u4E2D\u65F6",code:"list-rows-checked"},{key:"on_change_tab",name:"\u6807\u7B7E\u9875\u5207\u6362\u65F6",code:"change-tab"},{key:"on_modal_ok",name:"\u5F39\u7A97\u786E\u8BA4\u65F6",code:"modal-ok"}],Z=class{getEventsFromKeys(e){const u=typeof e=="string"?[e]:e;return Z.events.filter(t=>u.includes(t.key))}};let Y=Z;Y.events=mn,n.CALC_AGGREGATE_TYPE=k,n.CALC_TOKEN_TYPE=V,n.CONTROL_BASE_TYPE=z,n.CONTROL_TYPE=I,n.CalcScriptEchoItem=Va,n.DEFAULT_LOCALE=T,n.DateType=G,n.DepartmentEntity=A,n.EventLogic=Y,n.FieldTypeToColumnType=Ta,n.FieldTypes=j,n.JSONCopy=Za,n.RulesMessage=P,n.UserEntity=p,n.Watcher=pn,n.camelizeKeys=Bn,n.debounce=En,n.decamelizeKeys=Fn,n.error=Ka,n.genNonDuplicateId=ja,n.getNotRepeatItems=on,n.isArray=C,n.isBuiltInControls=An,n.isFunction=un,n.isJSONArray=rn,n.isJSONObject=sn,n.isLanguageObject=Ya,n.isNumber=N,n.isNumberAndEmptyStringArray=nn,n.isNumberArray=an,n.isObject=en,n.isPlainObject=J,n.isString=O,n.isStringArray=tn,n.log=M,n.logerror=H,n.loop=Q,n.loopFormSchema=w,n.noop=ka,n.referenceError=Ha,n.toNumberOrEmpty=ln,n.updateValueFromKeys=Ja,n.wait=cn,n.warn=K,Object.defineProperty(n,"__esModule",{value:!0})});
|
|
1
|
+
var te=(n,A,p)=>new Promise((f,g)=>{var b=B=>{try{h(p.next(B))}catch(d){g(d)}},S=B=>{try{h(p.throw(B))}catch(d){g(d)}},h=B=>B.done?f(B.value):Promise.resolve(B.value).then(b,S);h((p=p.apply(n,A)).next())});(function(n,A){typeof exports=="object"&&typeof module!="undefined"?A(exports):typeof define=="function"&&define.amd?define(["exports"],A):(n=typeof globalThis!="undefined"?globalThis:n||self,A(n.modelDrivenShared={}))})(this,function(n){"use strict";class A{}class p{}var f="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",g="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",b="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",S="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",h="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",B="{caption}\u5FC5\u586B",d="\u8BF7\u8F93\u5165\u6807\u9898",ae="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",ne="\u8BF7\u8F93\u5165\u884C\u6807\u9898",re="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",se="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",le="\u8BF7\u7ED1\u5B9A\u8868\u5355",ie="\u8BF7\u7ED1\u5B9A\u5217\u8868",oe="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",Ee="\u8BF7\u8F93\u5165\u663E\u793A\u503C",ce="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",Be="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",Fe="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",Ae="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",pe="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",me="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",he="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",de="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",ve="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",De="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",ge="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",Ce="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",fe="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",be="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",Se="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Ie="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",ye="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",Me="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",$e="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",we="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Le="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Ne="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Re="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",_e="\u8BF7\u9009\u62E9\u7701",Ue="\u8BF7\u9009\u62E9\u5E02",Ve="\u8BF7\u9009\u62E9\u533A",ke="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Te="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",ze="\u8BF7\u8F93\u5165\u5217\u5BBD",je="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Ge="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",xe="\u8BF7\u9009\u62E9\u63A7\u4EF6",Ke="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",He="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Pe="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",qe="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",We="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Xe="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Je="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Oe="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Qe="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Ze="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Ye="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",eu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",uu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",tu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",au="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",nu="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",ru="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",su="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",lu="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",iu="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",ou="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Eu={isNotNumber:f,isNotString:g,isNotObject:b,isNotArray:S,isNotBoolean:h,runtimeRequired:B,pleaseEnterCaption:d,pleaseEnterCaptionTip:ae,pleaseEnterRowCaption:ne,pleaseEnterPlaceholder:re,pleaseEnterFieldCode:se,pleaseEnterForm:le,pleaseEnterList:ie,pleaseEnterProcess:oe,pleaseEnterLabel:Ee,pleaseEnterValue:ce,bizKeyNotBindFiled:Be,pleaseSelectOneField:Fe,pleaseEnterNumberRange:Ae,pleaseEnterAValueGreaterThanMin:pe,pleaseEnterAValueLessThanMax:me,numberRangeSetError:he,stringRangeError:de,attachmentMaxSize:ve,pleaseEnterTotalScoreSetting:De,theTotalScoreMustNotBeLessThan1:ge,scoreDefaultValueRange:Ce,attachmentLimitError:fe,PleaseReselectTheOptionalQuantity:be,TheMaximumLengthIsGreaterThanTheMinimumLength:Se,TheMinimumLengthIsGreaterThanTheMaximumLength:Ie,PleaseSelectTheCorrectOptionSettings:ye,optionIdIsRepeat:Me,optionIsRequired:$e,pleaseEnterDataCode:we,pleaseEnterValueFieldCode:Le,pleaseEnterSvcCode:Ne,pleaseBindAtLeastOneDisplayValue:Re,pleaseSelectProvince:_e,pleaseSelectCity:Ue,pleaseSelectDistrict:Ve,limitRowsCannotBeLessThan0:ke,TheNumberOfRowsCannotBeLessThanMinRows:Te,pleaseEnterColumnWidth:ze,pleaseSetTheLogicalRelationshipOfAllRuleConditions:je,pleaseCompleteAllRulesAndConditions:Ge,pleaseSelectControl:xe,pleaseSelectAtLeastOneColumn:Ke,pleaseSelectFillBackMode:He,pleaseSelectDashboard:Pe,rootNodeIsRequired:qe,theViewNameCannotBeEmpty:We,pleaseSelectOcrType:Xe,pleaseSelectAtLeastOneFieldToFillIn:Je,pleaseChooseAtLeastOne:Oe,pleaseEnterButtonContent:Qe,pleaseEnterDataCodeInDataSetting:Ze,pleaseEnterValueFieldCodeInDataSetting:Ye,pleaseEnterSvcCodeInDataSetting:eu,pleaseBindAtLeastOneDisplayValueInDataSetting:uu,rootNodeIsRequiredInDataSetting:tu,pleaseEnterMaxHeight:au,pleaseEnter:nu,pleaseEnterWatermark:ru,pleaseEnterFileName:su,pleaseUploadAtLeastOnePrintTemplate:lu,pleaseAssignBusiness:iu,pleaseAssignExternal:ou},cu="Please enter a number",Bu="Please enter a string",Fu="Please enter an object",Au="Please enter an array",pu="Please enter a boolean",mu="{caption} Required",hu="Please enter the title",du="Please enter the bubble prompt",vu="Please enter the row title",Du="Please enter the prompt text",gu="Please bind data items",Cu="Please bind the form",fu="Please bind the list",bu="Please bind the process",Su="Please enter the displayed value",Iu="Please enter the stored value",yu="The document number is not bound to the data item",Mu="Please select at least one display field",$u="Please enter a value greater than or equal to {min} and less than or equal to {max}",wu="Please enter a value greater than or equal to {min}",Lu="Please enter a value less than or equal to {max}",Nu="The value range is set incorrectly",Ru="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",_u="The attachment size must be between 0MB and 1000MB",Uu="Please fill in the total score setting",Vu="The total score cannot be less than 1",ku="The default value must be between {min} and {max}",Tu="The number of attachments uploaded must be between {min} and {max}",zu="Please re-select the optional quantity",ju="The maximum length of the control must be greater than the minimum length",Gu="The minimum length of the control must be less than the maximum length",xu="Please select the correct option setting",Ku="Option ID cannot be repeated",Hu="Please enter at least one option",Pu="Please bind the data source",qu="Please bind the stored value",Wu="Please bind the service",Xu="At least one display value must be bound",Ju="Please select a province",Ou="Please select a city",Qu="Please select a district",Zu="The minimum number of lines to fill in cannot be less than 0",Yu="The number of rows cannot be less than {min} rows",et="Please enter the column width",ut="Please set the logical relationship of all rule conditions",tt="Please complete all rules and conditions",at="please select control",nt="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",rt="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",st="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",lt="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",it="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",ot="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Et="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",ct="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Bt="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Ft="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",At="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",pt="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",mt="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",ht="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",dt="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",vt="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Dt="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",gt="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Ct={isNotNumber:cu,isNotString:Bu,isNotObject:Fu,isNotArray:Au,isNotBoolean:pu,runtimeRequired:mu,pleaseEnterCaption:hu,pleaseEnterCaptionTip:du,pleaseEnterRowCaption:vu,pleaseEnterPlaceholder:Du,pleaseEnterFieldCode:gu,pleaseEnterForm:Cu,pleaseEnterList:fu,pleaseEnterProcess:bu,pleaseEnterLabel:Su,pleaseEnterValue:Iu,bizKeyNotBindFiled:yu,pleaseSelectOneField:Mu,pleaseEnterNumberRange:$u,pleaseEnterAValueGreaterThanMin:wu,pleaseEnterAValueLessThanMax:Lu,numberRangeSetError:Nu,stringRangeError:Ru,attachmentMaxSize:_u,pleaseEnterTotalScoreSetting:Uu,theTotalScoreMustNotBeLessThan1:Vu,scoreDefaultValueRange:ku,attachmentLimitError:Tu,PleaseReselectTheOptionalQuantity:zu,TheMaximumLengthIsGreaterThanTheMinimumLength:ju,TheMinimumLengthIsGreaterThanTheMaximumLength:Gu,PleaseSelectTheCorrectOptionSettings:xu,optionIdIsRepeat:Ku,optionIsRequired:Hu,pleaseEnterDataCode:Pu,pleaseEnterValueFieldCode:qu,pleaseEnterSvcCode:Wu,pleaseBindAtLeastOneDisplayValue:Xu,pleaseSelectProvince:Ju,pleaseSelectCity:Ou,pleaseSelectDistrict:Qu,limitRowsCannotBeLessThan0:Zu,TheNumberOfRowsCannotBeLessThanMinRows:Yu,pleaseEnterColumnWidth:et,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ut,pleaseCompleteAllRulesAndConditions:tt,pleaseSelectControl:at,pleaseSelectDashboard:nt,theViewNameCannotBeEmpty:rt,pleaseSelectOcrType:st,pleaseSelectAtLeastOneFieldToFillIn:lt,pleaseChooseAtLeastOne:it,pleaseEnterButtonContent:ot,pleaseEnterDataCodeInDataSetting:Et,pleaseEnterValueFieldCodeInDataSetting:ct,pleaseEnterSvcCodeInDataSetting:Bt,pleaseBindAtLeastOneDisplayValueInDataSetting:Ft,rootNodeIsRequiredInDataSetting:At,pleaseEnterMaxHeight:pt,pleaseEnter:mt,pleaseEnterWatermark:ht,pleaseEnterFileName:dt,pleaseUploadAtLeastOnePrintTemplate:vt,pleaseAssignBusiness:Dt,pleaseAssignExternal:gt},ft="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",bt="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",St="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",It="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",yt="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Mt="{caption}\u5FC5\u9808",$t="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",wt="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Lt="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Nt="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Rt="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",_t="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ut="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Vt="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",kt="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Tt="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",zt="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",jt="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Gt="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",xt="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Kt="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ht="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",Pt="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",qt="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Wt="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Xt="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Jt="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Ot="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Qt="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Zt="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5927\u5024\u306F\u6700\u5C0F\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Yt="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5C0F\u5024\u306F\u6700\u5927\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",ea="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ua="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",ta="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",aa="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",na="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ra="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",sa="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",la="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ia="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",oa="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ea="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",ca="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ba="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Fa="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Aa="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",pa="please select control",ma="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",ha="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",da="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",va="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Da="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",ga="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Ca="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",fa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",ba="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Sa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Ia="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ya="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Ma="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",$a="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",wa="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",La="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Na="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Ra="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",_a={isNotNumber:ft,isNotString:bt,isNotObject:St,isNotArray:It,isNotBoolean:yt,runtimeRequired:Mt,pleaseEnterCaption:$t,pleaseEnterCaptionTip:wt,pleaseEnterRowCaption:Lt,pleaseEnterPlaceholder:Nt,pleaseEnterFieldCode:Rt,pleaseEnterForm:_t,pleaseEnterList:Ut,pleaseEnterProcess:Vt,pleaseEnterLabel:kt,pleaseEnterValue:Tt,bizKeyNotBindFiled:zt,pleaseSelectOneField:jt,pleaseEnterNumberRange:Gt,pleaseEnterAValueGreaterThanMin:xt,pleaseEnterAValueLessThanMax:Kt,numberRangeSetError:Ht,stringRangeError:Pt,attachmentMaxSize:qt,pleaseEnterTotalScoreSetting:Wt,theTotalScoreMustNotBeLessThan1:Xt,scoreDefaultValueRange:Jt,attachmentLimitError:Ot,PleaseReselectTheOptionalQuantity:Qt,TheMaximumLengthIsGreaterThanTheMinimumLength:Zt,TheMinimumLengthIsGreaterThanTheMaximumLength:Yt,PleaseSelectTheCorrectOptionSettings:ea,optionIdIsRepeat:ua,optionIsRequired:ta,pleaseEnterDataCode:aa,pleaseEnterValueFieldCode:na,pleaseEnterSvcCode:ra,pleaseBindAtLeastOneDisplayValue:sa,pleaseSelectProvince:la,pleaseSelectCity:ia,pleaseSelectDistrict:oa,limitRowsCannotBeLessThan0:Ea,TheNumberOfRowsCannotBeLessThanMinRows:ca,pleaseEnterColumnWidth:Ba,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Fa,pleaseCompleteAllRulesAndConditions:Aa,pleaseSelectControl:pa,pleaseSelectDashboard:ma,theViewNameCannotBeEmpty:ha,pleaseSelectOcrType:da,pleaseSelectAtLeastOneFieldToFillIn:va,pleaseChooseAtLeastOne:Da,pleaseEnterButtonContent:ga,pleaseEnterDataCodeInDataSetting:Ca,pleaseEnterValueFieldCodeInDataSetting:fa,pleaseEnterSvcCodeInDataSetting:ba,pleaseBindAtLeastOneDisplayValueInDataSetting:Sa,rootNodeIsRequiredInDataSetting:Ia,pleaseEnterMaxHeight:ya,pleaseEnter:Ma,pleaseEnterWatermark:$a,pleaseEnterFileName:wa,pleaseUploadAtLeastOnePrintTemplate:La,pleaseAssignBusiness:Na,pleaseAssignExternal:Ra},Ua={zhCN:Eu,enUS:Ct,jaJP:_a},V=(e=>(e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable",e))(V||{}),k=(e=>(e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN",e))(k||{});class Va{constructor(u){var t,a,l,o,i,E;this.name=(t=u==null?void 0:u.name)!=null?t:"",this.id=(a=u==null?void 0:u.id)!=null?a:"",this.type=(l=u==null?void 0:u.type)!=null?l:"Number",this.subTableId=(o=u==null?void 0:u.subTableId)!=null?o:void 0,this.subTableName=(i=u==null?void 0:u.subTableId)!=null?i:void 0,this.aggregateType=(E=u==null?void 0:u.aggregateType)!=null?E:void 0}}const T="zh-CN",ka=()=>{};var z=(e=>(e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search",e))(z||{}),I=(e=>(e.TITLE="title",e.LINK="link",e.BUTTON="button",e.DIVIDER="divider",e.TEXT="text",e.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",e.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",e.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",e.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",e.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",e.EXPORT_LIST_BUTTON="list-page-btn-export-list",e.LIST_SELECT_BUTTON="list-select-button",e.ORGANIZATION_SELECTION="organization-selection",e.FORM_SELECT_BUTTON="form-select-button",e.LIST_VIEW_SELECT="list-view-select",e.TEXT_OCR_BUTTON="text-ocr-button",e.INVOICE_CHECK_BUTTON="invoice-check-button",e.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",e.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",e.VARCHAR_COLUMN="varchar-column",e.TEXT_COLUMN="text-column",e.DECIMAL_COLUMN="decimal-column",e.TIMESCOPE_COLUMN="timescope-column",e.TIMESTAMP_COLUMN="timestamp-column",e.ARRAY_COLUMN="array-column",e.DEPARTMENT_COLUMN="department-column",e.AUTO_NUMBER_COLUMN="auto-number-column",e.FILE_COLUMN="file-column",e.IMAGE_COLUMN="image-column",e.PEOPLE_COLUMN="people-column",e.LOCATION_COLUMN="location-column",e.CUSTOM_COLUMN="custom-column",e.ORDER_COLUMN="order-column",e.OPERATION_COLUMN="operation-column",e.EMPLOYEE_COLUMN="employee-column",e.ADDRESS="address",e.AMOUNT="amount",e.ATTACHMENT="attachment",e.AUTO_NUMBER="auto-number",e.CALC="calc",e.CHECKBOX="checkbox",e.DATE_PICKER="date-picker",e.DATE_RANGE="date-range",e.DEPARTMENT="department",e.EMPLOYEE="employee",e.IMAGE="image",e.INPUT="input",e.NUMBER="number",e.RADIO="radio",e.RICH_TEXT="rich-text",e.SCORE="score",e.SEARCH_DATE_RANGE="search-date-range",e.SEARCH_NUMBER_RANGE="search-number-range",e.SEARCH_INPUT="search-input",e.SELECT="select",e.SELECT_MULTIPLE="select-multiple",e.SELECT_RELATION="select-relation",e.VUE_FORM_ITEM="vue-form-item",e.TEXTAREA="textarea",e.EMAIL="email",e.FOOTER="footer",e.HEADER="header",e.ID_CARD="id-card",e.MOBILE="mobile",e.PHONE="phone",e.RADIO_IMAGE="radio-image",e.ELECTRONIC_SIGNATURE="electronic-signature",e.WPS="wps",e.CARD_GROUP="card-group",e.COL="col",e.GRID="grid",e.GRID_ROW="grid-row",e.GRID_TABLE_COLUMN="grid-table-column",e.ROW="row",e.TWO_COLUMNS="two-columns",e.SUBTABLE_COLUMN="subtable-column",e.SUBTABLE_ROW="subtable-row",e.TAB="tab",e.TAB_PANE="tab-pane",e.TOOLBOX="toolbox",e.DATA_VIEW="data-view",e.LIST_VIEW="list-view",e.SUBTABLE="subtable",e.GRID_TABLE="grid-table",e.SIMPLE_SEARCH="simple-search",e.PAGINATION="pagination",e.CHECKBOX_IMAGE="checkbox-image",e.DASHBOARD="dashboard",e.TREE="tree",e.EMPLOYEE2="employee2",e.DEPARTMENT2="department2",e))(I||{}),j=(e=>(e.VARCHAR="varchar",e.TEXT="text",e.ARRAY="array",e.ADDRESS="location",e.DECIMAL="decimal",e.DECIMAL_RANGE="decimal_range",e.TIMESTAMP="timestamp",e.EMPLOYEES="people",e.DEPARTMENTS="department",e.MONEY="money",e.TIMESCOPE="timescope",e.FILE="file",e.IMAGE="image",e.AUTO_NUMBER="auto_number",e.CALC="calc",e.RELATION="relation",e.LIST="list",e.RELATION_FIELD="relation-field",e.REFERENCE_FIELD="reference-field",e.CALC_FIELD="calc",e.JSON="json",e.BIGINT="bigint",e.ANY="ANY",e.ENCRYPTED_FIELD="encrypted_field",e))(j||{});const Ta={array:"array-column",auto_number:"auto-number-column",decimal:"decimal-column",department:"department-column",file:"file-column",image:"image-column",location:"location-column",people:"employee-column",text:"text-column",timescope:"timescope-column",timestamp:"timestamp-column",varchar:"varchar-column",relation:"varchar-column"};var G=(e=>(e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATEHOUR="datehour",e.DATEMIN="datemin",e.DATETIME="datetime",e))(G||{});const x="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",za=x+"0123456789";function ja(e=15){let u="";for(let t=0;t<e;t++){const a=t===0?x:za,l=Math.random()*a.length;u+=a[parseInt(String(l),10)]}return u}const y=console;function K(...e){const u=e.slice(1);y.warn("\u{1F9D0} Driven Warning:"+e[0],...u)}function M(...e){const u=e.slice(1);y.log("\u{1F680} Driven Log:"+e[0],...u)}function Ga(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}class $ extends Error{constructor(u){super(u),this.name="\u{1F4A5} Driven Error",this.message=u?Ga(u):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}"}}class xa extends ${constructor(u){super(u),this.name="\u{1F6A8} Driven Reference Error"}}function Ka(e){throw new $(e)}function Ha(e){throw new xa(e)}function H(e){y.error(new $(e))}function w(e,u){Array.isArray(e)&&e.map(t=>{switch(t.controlType){case"layout":w(t==null?void 0:t.children,u);break;case"search":w(t==null?void 0:t.children,u);break;case"form":u(t)}})}var Pa=Object.prototype.toString;function P(e,u){return Pa.call(e)==="[object "+u+"]"}function qa(e){return P(e,"String")}function Wa(e){return P(e,"Promise")}var Xa=function(){function e(u){var t,a;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((a=(t=u.messages)!==null&&t!==void 0?t:this.getPreImport(u.locale))!==null&&a!==void 0?a:{}),u.variableRegExp&&(this.variableRegExp=u.variableRegExp),this.setLocale(u.locale)}return e.prototype.setLocale=function(u){var t=this;this.locale=u,this._messageCache.clear();var a=this.getMessageData();Wa(a)?a.then(function(l){t._messageCache.clear(),t.messages[t.localeInMessageKey]=l}):this.messages[this.localeInMessageKey]=a},e.prototype.getMessageData=function(){var u=this._messages[this.localeInMessageKey];return typeof u=="function"?u():u},e.prototype.translate=function(u,t,a){var l=this.getMessage(u);return l?this.formatMessage(l,a):this.formatMessage(t,a)},e.prototype.getMessage=function(u){if(this._messageCache.has(u))return this._messageCache.get(u);var t=this.getPathArray(u),a=t.reduce(function(l,o,i,E){if(l!==void 0){var m=l[o];if(!(i===E.length-1&&!qa(m)))return m}},this.message);return this._messageCache.set(u,a),a},e.prototype.formatMessage=function(u,t){return t?u.replace(this.variableRegExp,function(a,l){var o=t[l];return o!==void 0?String(o):a}):u},e.prototype.getPreImport=function(u){var t;if(window.okI18nPreImport){var a=this.getLocaleInMessageKey(u);return window.okI18nPreImport.hasOwnProperty(a)?window.okI18nPreImport:(t={},t[a]=window.okI18nPreImport,t)}},e.prototype.getPathArray=function(u){return u.split(".")},e.prototype.getLocaleInMessageKey=function(u){return u.replace(/-/g,"")},Object.defineProperty(e.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){var u;return(u=this.messages[this.localeInMessageKey])!==null&&u!==void 0?u:{}},enumerable:!1,configurable:!0}),e}();const q=class{static getMessage(e,u={}){return this.$i18n.$t(e,"",u)}static resetI18n(e=T){return new Xa({locale:e,messages:Ua})}static setLocale(e){return this.$i18n.setLocale(e)}};let W=q;W.$i18n=q.resetI18n();function Ja(e,u,t){const a=u.replace(/\[(\d)]/g,(o,i)=>"."+i).split(".");let l=!1;return a.reduce((o,i,E,m)=>{const v=o;if(!!o){if(!Object.prototype.hasOwnProperty.call(o,i)){K(`Can not set ${u}'s ${i} property in current %o, Because there is no ${i} property on the %o`,o,o);return}return E===m.length-1&&!Object.is(v[i],t)&&(v[i]=t,l=!0),v[i]}},e),l}var Oa=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},L={exports:{}};(function(e){(function(u){var t=function(r,s,c){if(!v(s)||dn(s)||vn(s)||Dn(s)||m(s))return s;var F,D=0,ue=0;if(hn(s))for(F=[],ue=s.length;D<ue;D++)F.push(t(r,s[D],c));else{F={};for(var U in s)Object.prototype.hasOwnProperty.call(s,U)&&(F[r(U,c)]=t(r,s[U],c))}return F},a=function(r,s){s=s||{};var c=s.separator||"_",F=s.split||/(?=[A-Z])/;return r.split(F).join(c)},l=function(r){return gn(r)?r:(r=r.replace(/[\-_\s]+(.)?/g,function(s,c){return c?c.toUpperCase():""}),r.substr(0,1).toLowerCase()+r.substr(1))},o=function(r){var s=l(r);return s.substr(0,1).toUpperCase()+s.substr(1)},i=function(r,s){return a(r,s).toLowerCase()},E=Object.prototype.toString,m=function(r){return typeof r=="function"},v=function(r){return r===Object(r)},hn=function(r){return E.call(r)=="[object Array]"},dn=function(r){return E.call(r)=="[object Date]"},vn=function(r){return E.call(r)=="[object RegExp]"},Dn=function(r){return E.call(r)=="[object Boolean]"},gn=function(r){return r=r-0,r===r},_=function(r,s){var c=s&&"process"in s?s.process:s;return typeof c!="function"?r:function(F,D){return c(F,r,D)}},ee={camelize:l,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(r,s){return t(_(l,s),r)},decamelizeKeys:function(r,s){return t(_(i,s),r,s)},pascalizeKeys:function(r,s){return t(_(o,s),r)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=ee:u.humps=ee})(Oa)})(L);var X={};Object.defineProperty(X,"__esModule",{value:!0});function N(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(u=>typeof u!="object"||u===null?u:N(u));{const u={};for(const t in e){const a=e[t];u[t]=typeof a!="object"||a===null?a:N(a)}return u}}var Qa=X.default=N;function Za(e){if(e!==void 0)return typeof e=="object"?Qa(e):e}function Ya(e){return J(e)&&"zh"in e}function J(e){return Object.prototype.toString.call(e)==="[object Object]"}function en(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}function C(e){return Array.isArray(e)}function O(e){return typeof e=="string"}function R(e){return typeof e=="number"}function un(e){return typeof e=="function"}function tn(e){return C(e)&&e.every(u=>O(u))}function an(e){return C(e)&&e.every(u=>R(u))}function nn(e){return C(e)&&e.every(u=>R(u)||u==="")}function rn(e){return/^\[.*?]$/.test(e)}function sn(e){return/^{.*?}$/.test(e)}function ln(e){return isNaN(parseFloat(e))?"":Number(e)}function on(e){return e.reduce((u,t)=>(u.includes(t)||u.push(t),u),[])}function En(e,u=500){let t;return function(...a){t||(t=setTimeout(()=>{e.apply(this,a),clearTimeout(t),t=null},u))}}function cn(e=0){return new Promise(u=>{setTimeout(u,e)})}function Q(e,u){let t=[];return Array.isArray(e)&&(t=e.map(a=>{let l=a;return Array.isArray(a==null?void 0:a.children)&&(l.children=Q(a.children,u)),u(l)})),t}function Bn(e){return L.exports.camelizeKeys(e)}function Fn(e){return L.exports.decamelizeKeys(e)}function An(e){return Object.values(I).includes(e)}class pn{constructor(){this._events=new Map,this.debug=!1}emit(u,...t){return te(this,null,function*(){const a=this._events.get(u),l=[];if(a){const o=a.slice();for(const i of o)if(!!a.includes(i))try{this.debug&&M(`\u6B63\u5728\u6267\u884C ${u} \u4E8B\u4EF6: ${i.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+i.applyingPluginName:""}, \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A${t.map(()=>"%o").join(",")}\u3002`,...t);const E=yield i.apply(null,[...t]);if(this.debug&&M(`\u6B63\u5728\u6267\u884C ${u} \u4E8B\u4EF6: ${i.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+i.applyingPluginName:""}, \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A${t.map(()=>"%o").join(",")}; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o`,...t,E),l.push(E),E===!1)break}catch(E){H(String(E)+":"+String(E.stack))}}return l})}on(u,t){var a;this._events.has(u)?(a=this._events.get(u))==null||a.push(t):this._events.set(u,[t])}off(u,t){if(this._events.has(u)){const a=this._events.get(u),l=a==null?void 0:a.indexOf(t);a==null||a.splice(l,1)}}delete(u){this._events.has(u)&&this._events.delete(u)}clear(){this._events=new Map}}const mn=[{key:"on_click",name:"\u70B9\u51FB\u65F6",code:"click"},{key:"on_click_finish",name:"\u6267\u884C\u5B8C\u6210\u65F6",code:"click-finish"},{key:"on_change",name:"\u503C\u53D1\u751F\u53D8\u5316\u65F6",code:"change"},{key:"on_search",name:"\u641C\u7D22\u65F6",code:"search"},{key:"on_list_change",name:"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",code:"list-change"},{key:"on_list_search",name:"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",code:"list-search"},{key:"on_list_mounted",name:"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",code:"list-mounted"},{key:"on_list_delete",name:"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",code:"list-delete"},{key:"on_list_before_insert",name:"\u5217\u8868\u6570\u636E\u63D2\u5165\u524D",code:"list-before-insert"},{key:"on_input",name:"\u7528\u6237\u8F93\u5165\u65F6",code:"input"},{key:"on_blur",name:"\u5931\u53BB\u7126\u70B9\u65F6",code:"blur"},{key:"on_focus",name:"\u83B7\u53D6\u7126\u70B9\u65F6",code:"focus"},{key:"on_wps_open",name:"\u6253\u5F00\u6587\u4EF6\u65F6",code:"wps-open"},{key:"on_wps_save",name:"\u4FDD\u5B58\u6587\u4EF6\u65F6",code:"wps-save"},{key:"on_wps_rename",name:"\u91CD\u547D\u540D\u65F6",code:"wps-rename"},{key:"on_list_actions",name:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",code:"list-actions"},{key:"on_list_render_operation",name:"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",code:"list-render-operation"},{key:"on_list_rowclick",name:"\u884C\u70B9\u51FB\u65F6",code:"list-rowclick"},{key:"on_list_before_rowdelete",name:"\u884C\u5220\u9664\u524D",code:"list-before-rowdelete"},{key:"on_list_before_import",name:"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",code:"list-before-import"},{key:"on_list_rows_checked",name:"\u884C\u9009\u4E2D\u65F6",code:"list-rows-checked"},{key:"on_change_tab",name:"\u6807\u7B7E\u9875\u5207\u6362\u65F6",code:"change-tab"},{key:"on_modal_ok",name:"\u5F39\u7A97\u786E\u8BA4\u65F6",code:"modal-ok"}],Z=class{getEventsFromKeys(e){const u=typeof e=="string"?[e]:e;return Z.events.filter(t=>u.includes(t.key))}};let Y=Z;Y.events=mn,n.CALC_AGGREGATE_TYPE=k,n.CALC_TOKEN_TYPE=V,n.CONTROL_BASE_TYPE=z,n.CONTROL_TYPE=I,n.CalcScriptEchoItem=Va,n.DEFAULT_LOCALE=T,n.DateType=G,n.DepartmentEntity=A,n.EventLogic=Y,n.FieldTypeToColumnType=Ta,n.FieldTypes=j,n.JSONCopy=Za,n.RulesMessage=W,n.UserEntity=p,n.Watcher=pn,n.camelizeKeys=Bn,n.debounce=En,n.decamelizeKeys=Fn,n.error=Ka,n.genNonDuplicateId=ja,n.getNotRepeatItems=on,n.isArray=C,n.isBuiltInControls=An,n.isFunction=un,n.isJSONArray=rn,n.isJSONObject=sn,n.isLanguageObject=Ya,n.isNumber=R,n.isNumberAndEmptyStringArray=nn,n.isNumberArray=an,n.isObject=en,n.isPlainObject=J,n.isString=O,n.isStringArray=tn,n.log=M,n.logerror=H,n.loop=Q,n.loopFormSchema=w,n.noop=ka,n.referenceError=Ha,n.toNumberOrEmpty=ln,n.updateValueFromKeys=Ja,n.wait=cn,n.warn=K,Object.defineProperty(n,"__esModule",{value:!0})});
|
package/dist/types/enum.d.ts
CHANGED
|
@@ -43,7 +43,6 @@ export declare enum CONTROL_TYPE {
|
|
|
43
43
|
ORDER_COLUMN = "order-column",
|
|
44
44
|
OPERATION_COLUMN = "operation-column",
|
|
45
45
|
EMPLOYEE_COLUMN = "employee-column",
|
|
46
|
-
Approval_Status_Column = "approval-status-column",
|
|
47
46
|
ADDRESS = "address",
|
|
48
47
|
AMOUNT = "amount",
|
|
49
48
|
ATTACHMENT = "attachment",
|
|
@@ -82,7 +81,6 @@ export declare enum CONTROL_TYPE {
|
|
|
82
81
|
GRID = "grid",
|
|
83
82
|
GRID_ROW = "grid-row",
|
|
84
83
|
GRID_TABLE_COLUMN = "grid-table-column",
|
|
85
|
-
GRID_LAYOUT_CONTAINER = "grid-layout-container",
|
|
86
84
|
ROW = "row",
|
|
87
85
|
TWO_COLUMNS = "two-columns",
|
|
88
86
|
SUBTABLE_COLUMN = "subtable-column",
|
|
@@ -92,7 +90,6 @@ export declare enum CONTROL_TYPE {
|
|
|
92
90
|
TOOLBOX = "toolbox",
|
|
93
91
|
DATA_VIEW = "data-view",
|
|
94
92
|
LIST_VIEW = "list-view",
|
|
95
|
-
ACTION_BAR = "action-bar",
|
|
96
93
|
SUBTABLE = "subtable",
|
|
97
94
|
GRID_TABLE = "grid-table",
|
|
98
95
|
SIMPLE_SEARCH = "simple-search",
|
|
@@ -101,8 +98,7 @@ export declare enum CONTROL_TYPE {
|
|
|
101
98
|
DASHBOARD = "dashboard",
|
|
102
99
|
TREE = "tree",
|
|
103
100
|
EMPLOYEE2 = "employee2",
|
|
104
|
-
DEPARTMENT2 = "department2"
|
|
105
|
-
GRID_LAYOUT_WRAP = "grid-layout-wrap"
|
|
101
|
+
DEPARTMENT2 = "department2"
|
|
106
102
|
}
|
|
107
103
|
export declare enum FieldTypes {
|
|
108
104
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-shared",
|
|
3
|
-
"version": "2.7.0-
|
|
3
|
+
"version": "2.7.0-beta.4",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"humps": "^2.0.1",
|
|
31
31
|
"ok-i18n": "^3.0.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "1bf9f693724f41f144a37e4f81f2c06dfe2069de"
|
|
34
34
|
}
|