@byteluck-fe/model-driven-shared 2.21.0-beta.1 → 2.21.0-beta.13
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 +72 -72
- package/dist/esm/RulesMessage.js +4 -4
- package/dist/esm/calc.js +2 -2
- package/dist/esm/constant.js +1 -1
- package/dist/esm/entity/Department.js +3 -3
- package/dist/esm/entity/User.js +25 -25
- package/dist/esm/entity/index.js +2 -2
- package/dist/esm/enum.js +2 -1
- package/dist/esm/genNonDuplicateId.js +3 -3
- package/dist/esm/index.js +13 -13
- package/dist/esm/locales/index.js +3 -3
- package/dist/esm/log.js +6 -6
- package/dist/esm/loopControls.js +4 -4
- package/dist/esm/updateValueFromKeys.js +3 -3
- package/dist/esm/utils.js +16 -12
- package/dist/esm/watcher.js +8 -8
- package/dist/index.umd.js +1 -1
- package/dist/types/enum.d.ts +1 -0
- package/package.json +2 -2
package/dist/esm/EventLogic.js
CHANGED
|
@@ -33,119 +33,119 @@ function _define_property(obj, key, value) {
|
|
|
33
33
|
// type InnerEventCode = 'click' | 'click-finish' | 'change'
|
|
34
34
|
var eventMap = [
|
|
35
35
|
{
|
|
36
|
-
key:
|
|
37
|
-
name:
|
|
38
|
-
code:
|
|
36
|
+
key: 'on_click',
|
|
37
|
+
name: '点击时',
|
|
38
|
+
code: 'click'
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
key:
|
|
42
|
-
name:
|
|
43
|
-
code:
|
|
41
|
+
key: 'on_click_finish',
|
|
42
|
+
name: '执行完成时',
|
|
43
|
+
code: 'click-finish'
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
key:
|
|
47
|
-
name:
|
|
48
|
-
code:
|
|
46
|
+
key: 'on_change',
|
|
47
|
+
name: '值发生变化时',
|
|
48
|
+
code: 'change'
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
key:
|
|
52
|
-
name:
|
|
53
|
-
code:
|
|
51
|
+
key: 'on_search',
|
|
52
|
+
name: '搜索时',
|
|
53
|
+
code: 'search'
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
|
-
key:
|
|
57
|
-
name:
|
|
58
|
-
code:
|
|
56
|
+
key: 'on_list_change',
|
|
57
|
+
name: '列表数据变化时',
|
|
58
|
+
code: 'list-change'
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
|
-
key:
|
|
62
|
-
name:
|
|
63
|
-
code:
|
|
61
|
+
key: 'on_list_search',
|
|
62
|
+
name: '列表数据查询构建时',
|
|
63
|
+
code: 'list-search'
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
key:
|
|
67
|
-
name:
|
|
68
|
-
code:
|
|
66
|
+
key: 'on_list_mounted',
|
|
67
|
+
name: '列表数据返回时',
|
|
68
|
+
code: 'list-mounted'
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
|
-
key:
|
|
72
|
-
name:
|
|
73
|
-
code:
|
|
71
|
+
key: 'on_list_delete',
|
|
72
|
+
name: '列表数据删除时',
|
|
73
|
+
code: 'list-delete'
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
|
-
key:
|
|
77
|
-
name:
|
|
78
|
-
code:
|
|
76
|
+
key: 'on_list_before_insert',
|
|
77
|
+
name: '列表数据插入前',
|
|
78
|
+
code: 'list-before-insert'
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
|
-
key:
|
|
82
|
-
name:
|
|
83
|
-
code:
|
|
81
|
+
key: 'on_input',
|
|
82
|
+
name: '用户输入时',
|
|
83
|
+
code: 'input'
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
|
-
key:
|
|
87
|
-
name:
|
|
88
|
-
code:
|
|
86
|
+
key: 'on_blur',
|
|
87
|
+
name: '失去焦点时',
|
|
88
|
+
code: 'blur'
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
|
-
key:
|
|
92
|
-
name:
|
|
93
|
-
code:
|
|
91
|
+
key: 'on_focus',
|
|
92
|
+
name: '获取焦点时',
|
|
93
|
+
code: 'focus'
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
|
-
key:
|
|
97
|
-
name:
|
|
98
|
-
code:
|
|
96
|
+
key: 'on_wps_open',
|
|
97
|
+
name: '打开文件时',
|
|
98
|
+
code: 'wps-open'
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
|
-
key:
|
|
102
|
-
name:
|
|
103
|
-
code:
|
|
101
|
+
key: 'on_wps_save',
|
|
102
|
+
name: '保存文件时',
|
|
103
|
+
code: 'wps-save'
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
|
-
key:
|
|
107
|
-
name:
|
|
108
|
-
code:
|
|
106
|
+
key: 'on_wps_rename',
|
|
107
|
+
name: '重命名时',
|
|
108
|
+
code: 'wps-rename'
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
key:
|
|
112
|
-
name:
|
|
113
|
-
code:
|
|
111
|
+
key: 'on_list_actions',
|
|
112
|
+
name: '点击操作按钮时',
|
|
113
|
+
code: 'list-actions'
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
|
-
key:
|
|
117
|
-
name:
|
|
118
|
-
code:
|
|
116
|
+
key: 'on_list_render_operation',
|
|
117
|
+
name: '操作列渲染时',
|
|
118
|
+
code: 'list-render-operation'
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
|
-
key:
|
|
122
|
-
name:
|
|
123
|
-
code:
|
|
121
|
+
key: 'on_list_rowclick',
|
|
122
|
+
name: '行点击时',
|
|
123
|
+
code: 'list-rowclick'
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
|
-
key:
|
|
127
|
-
name:
|
|
128
|
-
code:
|
|
126
|
+
key: 'on_list_before_rowdelete',
|
|
127
|
+
name: '行删除前',
|
|
128
|
+
code: 'list-before-rowdelete'
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
|
-
key:
|
|
132
|
-
name:
|
|
133
|
-
code:
|
|
131
|
+
key: 'on_list_before_import',
|
|
132
|
+
name: '列表数据导入前',
|
|
133
|
+
code: 'list-before-import'
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
|
-
key:
|
|
137
|
-
name:
|
|
138
|
-
code:
|
|
136
|
+
key: 'on_list_rows_checked',
|
|
137
|
+
name: '行选中时',
|
|
138
|
+
code: 'list-rows-checked'
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
|
-
key:
|
|
142
|
-
name:
|
|
143
|
-
code:
|
|
141
|
+
key: 'on_change_tab',
|
|
142
|
+
name: '标签页切换时',
|
|
143
|
+
code: 'change-tab'
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
|
-
key:
|
|
147
|
-
name:
|
|
148
|
-
code:
|
|
146
|
+
key: 'on_modal_ok',
|
|
147
|
+
name: '弹窗确认时',
|
|
148
|
+
code: 'modal-ok'
|
|
149
149
|
}
|
|
150
150
|
];
|
|
151
151
|
export var EventLogic = /*#__PURE__*/ function() {
|
|
@@ -157,7 +157,7 @@ export var EventLogic = /*#__PURE__*/ function() {
|
|
|
157
157
|
{
|
|
158
158
|
key: "getEventsFromKeys",
|
|
159
159
|
value: function getEventsFromKeys(keys) {
|
|
160
|
-
var eventKeys = typeof keys ===
|
|
160
|
+
var eventKeys = typeof keys === 'string' ? [
|
|
161
161
|
keys
|
|
162
162
|
] : keys;
|
|
163
163
|
return EventLogic.events.filter(function(item) {
|
|
@@ -175,8 +175,8 @@ export var EventLogic = /*#__PURE__*/ function() {
|
|
|
175
175
|
}));
|
|
176
176
|
var eventCustomEvents = control.customEvents.map(function(item) {
|
|
177
177
|
var key = item.key;
|
|
178
|
-
if (item.namespace !== undefined && item.namespace !== null && item.namespace !==
|
|
179
|
-
key = item.namespace +
|
|
178
|
+
if (item.namespace !== undefined && item.namespace !== null && item.namespace !== '') {
|
|
179
|
+
key = item.namespace + ':' + item.key;
|
|
180
180
|
}
|
|
181
181
|
return {
|
|
182
182
|
key: key,
|
package/dist/esm/RulesMessage.js
CHANGED
|
@@ -30,9 +30,9 @@ function _define_property(obj, key, value) {
|
|
|
30
30
|
}
|
|
31
31
|
return obj;
|
|
32
32
|
}
|
|
33
|
-
import OkI18n from
|
|
34
|
-
import messages from
|
|
35
|
-
import { DEFAULT_LOCALE } from
|
|
33
|
+
import OkI18n from 'ok-i18n';
|
|
34
|
+
import messages from './locales';
|
|
35
|
+
import { DEFAULT_LOCALE } from './constant';
|
|
36
36
|
export var RulesMessage = /*#__PURE__*/ function() {
|
|
37
37
|
"use strict";
|
|
38
38
|
function RulesMessage() {
|
|
@@ -43,7 +43,7 @@ export var RulesMessage = /*#__PURE__*/ function() {
|
|
|
43
43
|
key: "getMessage",
|
|
44
44
|
value: function getMessage(messageKey) {
|
|
45
45
|
var variable = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
46
|
-
return this.$i18n.$t(messageKey,
|
|
46
|
+
return this.$i18n.$t(messageKey, '', variable);
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
{
|
package/dist/esm/calc.js
CHANGED
|
@@ -77,9 +77,9 @@ export var CalcScriptEchoItem = function CalcScriptEchoItem(props) {
|
|
|
77
77
|
* 绑定的是其它明细子表内变量时,必须有aggregateType
|
|
78
78
|
* */ _define_property(this, "aggregateType", void 0);
|
|
79
79
|
var _props_name;
|
|
80
|
-
this.name = (_props_name = props === null || props === void 0 ? void 0 : props.name) !== null && _props_name !== void 0 ? _props_name :
|
|
80
|
+
this.name = (_props_name = props === null || props === void 0 ? void 0 : props.name) !== null && _props_name !== void 0 ? _props_name : '';
|
|
81
81
|
var _props_id;
|
|
82
|
-
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id :
|
|
82
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : '';
|
|
83
83
|
var _props_type;
|
|
84
84
|
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "Number";
|
|
85
85
|
var _props_subTableId;
|
package/dist/esm/constant.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export var DEFAULT_LOCALE =
|
|
1
|
+
export var DEFAULT_LOCALE = 'zh-CN';
|
|
2
2
|
export var noop = function() {};
|
|
@@ -22,11 +22,11 @@ function _define_property(obj, key, value) {
|
|
|
22
22
|
export var DepartmentEntity = function DepartmentEntity() {
|
|
23
23
|
"use strict";
|
|
24
24
|
_class_call_check(this, DepartmentEntity);
|
|
25
|
-
_define_property(this,
|
|
25
|
+
_define_property(this, 'department_en_name', void 0);
|
|
26
26
|
/**
|
|
27
27
|
* 部门编号
|
|
28
|
-
*/ _define_property(this,
|
|
28
|
+
*/ _define_property(this, 'department_id', void 0);
|
|
29
29
|
/**
|
|
30
30
|
* 部门名称
|
|
31
|
-
*/ _define_property(this,
|
|
31
|
+
*/ _define_property(this, 'department_name', void 0);
|
|
32
32
|
};
|
package/dist/esm/entity/User.js
CHANGED
|
@@ -22,65 +22,65 @@ function _define_property(obj, key, value) {
|
|
|
22
22
|
export var UserEntity = function UserEntity() {
|
|
23
23
|
"use strict";
|
|
24
24
|
_class_call_check(this, UserEntity);
|
|
25
|
-
_define_property(this,
|
|
26
|
-
_define_property(this,
|
|
25
|
+
_define_property(this, 'avatar_big', void 0);
|
|
26
|
+
_define_property(this, 'avatar_small', void 0);
|
|
27
27
|
/**
|
|
28
28
|
* 员工头像地址
|
|
29
|
-
*/ _define_property(this,
|
|
29
|
+
*/ _define_property(this, 'avatar_url', void 0);
|
|
30
30
|
/**
|
|
31
31
|
* 归属部门英文名称
|
|
32
|
-
*/ _define_property(this,
|
|
33
|
-
_define_property(this,
|
|
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
|
-
*/ _define_property(this,
|
|
36
|
+
*/ _define_property(this, 'belong_dept_ids', void 0);
|
|
37
37
|
/**
|
|
38
38
|
* 归属部门名称
|
|
39
|
-
*/ _define_property(this,
|
|
39
|
+
*/ _define_property(this, 'belong_dept_name', void 0);
|
|
40
40
|
/**
|
|
41
41
|
* 当前语言版本
|
|
42
|
-
*/ _define_property(this,
|
|
42
|
+
*/ _define_property(this, 'cookie_language_enum', void 0);
|
|
43
43
|
/**
|
|
44
44
|
* 部门id
|
|
45
|
-
*/ _define_property(this,
|
|
45
|
+
*/ _define_property(this, 'department_id', void 0);
|
|
46
46
|
/**
|
|
47
47
|
* 部门名称
|
|
48
|
-
*/ _define_property(this,
|
|
48
|
+
*/ _define_property(this, 'department_name', void 0);
|
|
49
49
|
/**
|
|
50
50
|
* 员工邮箱
|
|
51
|
-
*/ _define_property(this,
|
|
51
|
+
*/ _define_property(this, 'email', void 0);
|
|
52
52
|
/**
|
|
53
53
|
* 工号
|
|
54
|
-
*/ _define_property(this,
|
|
54
|
+
*/ _define_property(this, 'employee_card', void 0);
|
|
55
55
|
/**
|
|
56
56
|
* 英文名
|
|
57
|
-
*/ _define_property(this,
|
|
57
|
+
*/ _define_property(this, 'employee_en_name', void 0);
|
|
58
58
|
/**
|
|
59
59
|
* 员工编号
|
|
60
|
-
*/ _define_property(this,
|
|
60
|
+
*/ _define_property(this, 'employee_id', void 0);
|
|
61
61
|
/**
|
|
62
62
|
* 员工姓名
|
|
63
|
-
*/ _define_property(this,
|
|
64
|
-
_define_property(this,
|
|
63
|
+
*/ _define_property(this, 'employee_name', void 0);
|
|
64
|
+
_define_property(this, 'external_user', void 0);
|
|
65
65
|
/**
|
|
66
66
|
* 性别
|
|
67
|
-
*/ _define_property(this,
|
|
68
|
-
_define_property(this,
|
|
67
|
+
*/ _define_property(this, 'gender', void 0);
|
|
68
|
+
_define_property(this, 'is_show_chat_group', void 0);
|
|
69
69
|
/**
|
|
70
70
|
* 负责部门英文名称
|
|
71
|
-
*/ _define_property(this,
|
|
71
|
+
*/ _define_property(this, 'manage_dept_en_name', void 0);
|
|
72
72
|
/**
|
|
73
73
|
* 负责部门ID
|
|
74
|
-
*/ _define_property(this,
|
|
74
|
+
*/ _define_property(this, 'manage_dept_ids', void 0);
|
|
75
75
|
/**
|
|
76
76
|
* 负责部门名称
|
|
77
|
-
*/ _define_property(this,
|
|
78
|
-
_define_property(this,
|
|
77
|
+
*/ _define_property(this, 'manage_dept_name', void 0);
|
|
78
|
+
_define_property(this, 'msg_relation_type', void 0);
|
|
79
79
|
/**
|
|
80
80
|
* 职级
|
|
81
|
-
*/ _define_property(this,
|
|
81
|
+
*/ _define_property(this, 'sequence', void 0);
|
|
82
82
|
/**
|
|
83
83
|
* 固定电话
|
|
84
|
-
*/ _define_property(this,
|
|
85
|
-
_define_property(this,
|
|
84
|
+
*/ _define_property(this, 'telephone', void 0);
|
|
85
|
+
_define_property(this, 'tenant_id', void 0);
|
|
86
86
|
};
|
package/dist/esm/entity/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './Department';
|
|
2
|
+
export * from './User';
|
package/dist/esm/enum.js
CHANGED
|
@@ -68,6 +68,7 @@ export var CONTROL_TYPE;
|
|
|
68
68
|
CONTROL_TYPE["CUSTOM_COLUMN"] = "custom-column";
|
|
69
69
|
CONTROL_TYPE["ORDER_COLUMN"] = "order-column";
|
|
70
70
|
CONTROL_TYPE["OPERATION_COLUMN"] = "operation-column";
|
|
71
|
+
CONTROL_TYPE["OPERATION_BUTTON"] = "operation-button";
|
|
71
72
|
CONTROL_TYPE["EMPLOYEE_COLUMN"] = "employee-column";
|
|
72
73
|
CONTROL_TYPE["Approval_Status_Column"] = "approval-status-column";
|
|
73
74
|
// 表单控件
|
|
@@ -268,5 +269,5 @@ export var DateType;
|
|
|
268
269
|
* */ DateType["DATETIME"] = "datetime";
|
|
269
270
|
})(DateType || (DateType = {}));
|
|
270
271
|
export var DESIGNER_SLOT = {
|
|
271
|
-
DEFAULT:
|
|
272
|
+
DEFAULT: 'default'
|
|
272
273
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var firstStr =
|
|
2
|
-
var str = firstStr +
|
|
1
|
+
var firstStr = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
|
2
|
+
var str = firstStr + '0123456789';
|
|
3
3
|
export function genNonDuplicateId() {
|
|
4
4
|
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 15;
|
|
5
|
-
var result =
|
|
5
|
+
var result = '';
|
|
6
6
|
for(var i = 0; i < n; i++){
|
|
7
7
|
//第一位不能是数字
|
|
8
8
|
var randomStr = i === 0 ? firstStr : str;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
1
|
+
export * from './entity';
|
|
2
|
+
export * from './locales';
|
|
3
|
+
export * from './calc';
|
|
4
|
+
export * from './constant';
|
|
5
|
+
export * from './enum';
|
|
6
|
+
export * from './genNonDuplicateId';
|
|
7
|
+
export * from './log';
|
|
8
|
+
export * from './loopControls';
|
|
9
|
+
export * from './RulesMessage';
|
|
10
|
+
export * from './updateValueFromKeys';
|
|
11
|
+
export * from './utils';
|
|
12
|
+
export * from './watcher';
|
|
13
|
+
export * from './EventLogic';
|
package/dist/esm/log.js
CHANGED
|
@@ -148,7 +148,7 @@ export function warn() {
|
|
|
148
148
|
var _logger;
|
|
149
149
|
var other = data.slice(1);
|
|
150
150
|
(_logger = logger).warn.apply(_logger, [
|
|
151
|
-
|
|
151
|
+
'🧐 Driven Warning:' + data[0]
|
|
152
152
|
].concat(_to_consumable_array(other)));
|
|
153
153
|
}
|
|
154
154
|
export function log() {
|
|
@@ -158,11 +158,11 @@ export function log() {
|
|
|
158
158
|
var _logger;
|
|
159
159
|
var other = data.slice(1);
|
|
160
160
|
(_logger = logger).log.apply(_logger, [
|
|
161
|
-
|
|
161
|
+
'🚀 Driven Log:' + data[0]
|
|
162
162
|
].concat(_to_consumable_array(other)));
|
|
163
163
|
}
|
|
164
164
|
function joinMessage(message) {
|
|
165
|
-
return message +
|
|
165
|
+
return message + ' 🐛🐛🐛';
|
|
166
166
|
}
|
|
167
167
|
// 驱动错误
|
|
168
168
|
var DrivenError = /*#__PURE__*/ function(Error1) {
|
|
@@ -173,8 +173,8 @@ var DrivenError = /*#__PURE__*/ function(Error1) {
|
|
|
173
173
|
_class_call_check(this, DrivenError);
|
|
174
174
|
var _this;
|
|
175
175
|
_this = _super.call(this, message);
|
|
176
|
-
_this.name =
|
|
177
|
-
_this.message = message ? joinMessage(message) :
|
|
176
|
+
_this.name = '💥 Driven Error';
|
|
177
|
+
_this.message = message ? joinMessage(message) : 'An unknown error occurred in the Driven, please contact the person in charge 🚑🚑🚑';
|
|
178
178
|
return _this;
|
|
179
179
|
}
|
|
180
180
|
return DrivenError;
|
|
@@ -188,7 +188,7 @@ var DrivenReferenceError = /*#__PURE__*/ function(DrivenError) {
|
|
|
188
188
|
_class_call_check(this, DrivenReferenceError);
|
|
189
189
|
var _this;
|
|
190
190
|
_this = _super.call(this, message);
|
|
191
|
-
_this.name =
|
|
191
|
+
_this.name = '🚨 Driven Reference Error';
|
|
192
192
|
return _this;
|
|
193
193
|
}
|
|
194
194
|
return DrivenReferenceError;
|
package/dist/esm/loopControls.js
CHANGED
|
@@ -2,16 +2,16 @@ export function loopFormSchema(schema, callback) {
|
|
|
2
2
|
if (Array.isArray(schema)) {
|
|
3
3
|
schema.map(function(item) {
|
|
4
4
|
switch(item.controlType){
|
|
5
|
-
case
|
|
5
|
+
case 'layout':
|
|
6
6
|
loopFormSchema(item === null || item === void 0 ? void 0 : item.children, callback);
|
|
7
7
|
break;
|
|
8
|
-
case
|
|
8
|
+
case 'wrap':
|
|
9
9
|
loopFormSchema(item === null || item === void 0 ? void 0 : item.children, callback);
|
|
10
10
|
break;
|
|
11
|
-
case
|
|
11
|
+
case 'search':
|
|
12
12
|
loopFormSchema(item === null || item === void 0 ? void 0 : item.children, callback);
|
|
13
13
|
break;
|
|
14
|
-
case
|
|
14
|
+
case 'form':
|
|
15
15
|
callback(item);
|
|
16
16
|
default:
|
|
17
17
|
break;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { warn } from
|
|
1
|
+
import { warn } from './log';
|
|
2
2
|
/**
|
|
3
3
|
* 通过key字符串类修改对象上边的属性
|
|
4
4
|
* @param obj 执行修改的对象
|
|
@@ -8,8 +8,8 @@ import { warn } from "./log";
|
|
|
8
8
|
* */ export function updateValueFromKeys(obj, key, value) {
|
|
9
9
|
// 'obj[0].name' 会被转换为 obj.0.name 然后变成 ['obj', 0, 'name']数组,最终匹配内容
|
|
10
10
|
var keyList = key.replace(/\[(\d)]/g, function(text, $1) {
|
|
11
|
-
return
|
|
12
|
-
}).split(
|
|
11
|
+
return '.' + $1;
|
|
12
|
+
}).split('.');
|
|
13
13
|
var result = false;
|
|
14
14
|
keyList.reduce(function(props, current, index, arr) {
|
|
15
15
|
var nowProps = props;
|
package/dist/esm/utils.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
function _type_of(obj) {
|
|
2
|
+
"@swc/helpers - typeof";
|
|
3
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
4
|
+
}
|
|
5
|
+
import { camelizeKeys as camelizeKeys_1, decamelizeKeys as decamelizeKeys_1 } from 'humps';
|
|
6
|
+
import { CONTROL_TYPE } from './enum';
|
|
7
|
+
import cloneJSON from 'fast-json-clone';
|
|
4
8
|
export function JSONCopy(value) {
|
|
5
9
|
if (value !== undefined) {
|
|
6
|
-
if (typeof value === "
|
|
10
|
+
if ((typeof value === "undefined" ? "undefined" : _type_of(value)) === 'object') {
|
|
7
11
|
return cloneJSON(value);
|
|
8
12
|
} else {
|
|
9
13
|
return value;
|
|
@@ -13,25 +17,25 @@ export function JSONCopy(value) {
|
|
|
13
17
|
}
|
|
14
18
|
}
|
|
15
19
|
export function isLanguageObject(arg) {
|
|
16
|
-
return isPlainObject(arg) &&
|
|
20
|
+
return isPlainObject(arg) && 'zh' in arg;
|
|
17
21
|
}
|
|
18
22
|
export function isPlainObject(arg) {
|
|
19
|
-
return Object.prototype.toString.call(arg) ===
|
|
23
|
+
return Object.prototype.toString.call(arg) === '[object Object]';
|
|
20
24
|
}
|
|
21
25
|
export function isObject(val) {
|
|
22
|
-
return val != null && typeof val === "
|
|
26
|
+
return val != null && (typeof val === "undefined" ? "undefined" : _type_of(val)) === 'object' && Array.isArray(val) === false;
|
|
23
27
|
}
|
|
24
28
|
export function isArray(val) {
|
|
25
29
|
return Array.isArray(val);
|
|
26
30
|
}
|
|
27
31
|
export function isString(val) {
|
|
28
|
-
return typeof val ===
|
|
32
|
+
return typeof val === 'string';
|
|
29
33
|
}
|
|
30
34
|
export function isNumber(val) {
|
|
31
|
-
return typeof val ===
|
|
35
|
+
return typeof val === 'number';
|
|
32
36
|
}
|
|
33
37
|
export function isFunction(val) {
|
|
34
|
-
return typeof val ===
|
|
38
|
+
return typeof val === 'function';
|
|
35
39
|
}
|
|
36
40
|
export function isStringArray(value) {
|
|
37
41
|
return isArray(value) && value.every(function(item) {
|
|
@@ -45,7 +49,7 @@ export function isNumberArray(value) {
|
|
|
45
49
|
}
|
|
46
50
|
export function isNumberAndEmptyStringArray(value) {
|
|
47
51
|
return isArray(value) && value.every(function(item) {
|
|
48
|
-
return isNumber(item) || item ===
|
|
52
|
+
return isNumber(item) || item === '';
|
|
49
53
|
});
|
|
50
54
|
}
|
|
51
55
|
export function isJSONArray(value) {
|
|
@@ -55,7 +59,7 @@ export function isJSONObject(value) {
|
|
|
55
59
|
return /^{.*?}$/.test(value);
|
|
56
60
|
}
|
|
57
61
|
export function toNumberOrEmpty(value) {
|
|
58
|
-
return isNaN(parseFloat(value)) ?
|
|
62
|
+
return isNaN(parseFloat(value)) ? '' : Number(value);
|
|
59
63
|
}
|
|
60
64
|
export function getNotRepeatItems(arr) {
|
|
61
65
|
return arr.reduce(function(result, current) {
|
package/dist/esm/watcher.js
CHANGED
|
@@ -179,7 +179,7 @@ function _ts_generator(thisArg, body) {
|
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
import { log, logerror } from
|
|
182
|
+
import { log, logerror } from './log';
|
|
183
183
|
// 通信总线
|
|
184
184
|
var Watcher = /*#__PURE__*/ function() {
|
|
185
185
|
"use strict";
|
|
@@ -244,9 +244,9 @@ var Watcher = /*#__PURE__*/ function() {
|
|
|
244
244
|
6
|
|
245
245
|
]);
|
|
246
246
|
_this.debug && log.apply(void 0, [
|
|
247
|
-
"正在执行 ".concat(key, " 事件: ").concat(callback.applyingPluginName ?
|
|
248
|
-
return
|
|
249
|
-
}).join(
|
|
247
|
+
"正在执行 ".concat(key, " 事件: ").concat(callback.applyingPluginName ? '当前执行的插件为:' + callback.applyingPluginName : '', ", 当前执行函数的参数为").concat(payload.map(function() {
|
|
248
|
+
return '%o';
|
|
249
|
+
}).join(','), "。")
|
|
250
250
|
].concat(_to_consumable_array(payload)));
|
|
251
251
|
return [
|
|
252
252
|
4,
|
|
@@ -255,9 +255,9 @@ var Watcher = /*#__PURE__*/ function() {
|
|
|
255
255
|
case 4:
|
|
256
256
|
result = _state.sent();
|
|
257
257
|
_this.debug && log.apply(void 0, [
|
|
258
|
-
"正在执行 ".concat(key, " 事件: ").concat(callback.applyingPluginName ?
|
|
259
|
-
return
|
|
260
|
-
}).join(
|
|
258
|
+
"正在执行 ".concat(key, " 事件: ").concat(callback.applyingPluginName ? '当前执行的插件为:' + callback.applyingPluginName : '', ", 当前执行函数的参数为").concat(payload.map(function() {
|
|
259
|
+
return '%o';
|
|
260
|
+
}).join(','), "; 函数的返回结果为%o")
|
|
261
261
|
].concat(_to_consumable_array(payload), [
|
|
262
262
|
result
|
|
263
263
|
]));
|
|
@@ -274,7 +274,7 @@ var Watcher = /*#__PURE__*/ function() {
|
|
|
274
274
|
];
|
|
275
275
|
case 5:
|
|
276
276
|
e = _state.sent();
|
|
277
|
-
logerror(String(e) +
|
|
277
|
+
logerror(String(e) + ':' + String(e.stack));
|
|
278
278
|
return [
|
|
279
279
|
3,
|
|
280
280
|
6
|
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var ne=(n,F,A)=>new Promise((f,D)=>{var b=B=>{try{m(A.next(B))}catch(h){D(h)}},I=B=>{try{m(A.throw(B))}catch(h){D(h)}},m=B=>B.done?f(B.value):Promise.resolve(B.value).then(b,I);m((A=A.apply(n,F)).next())});(function(n,F){typeof exports=="object"&&typeof module!="undefined"?F(exports):typeof define=="function"&&define.amd?define(["exports"],F):(n=typeof globalThis!="undefined"?globalThis:n||self,F(n.modelDrivenShared={}))})(this,function(n){"use strict";class F{}class A{}var f="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",D="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",b="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",I="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",m="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",B="{caption}\u5FC5\u586B",h="\u8BF7\u8F93\u5165\u6807\u9898",re="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",se="\u8BF7\u8F93\u5165\u884C\u6807\u9898",le="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",ie="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",oe="\u8BF7\u7ED1\u5B9A\u8868\u5355",ce="\u8BF7\u7ED1\u5B9A\u5217\u8868",Ee="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",Be="\u8BF7\u8F93\u5165\u663E\u793A\u503C",pe="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",Fe="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",Ae="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",de="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",me="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",he="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",ve="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",Ce="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",De="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",ge="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",Se="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",fe="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",be="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Ie="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",ye="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",$e="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Me="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",we="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Ue="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",Le="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Ne="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Re="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Ve="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",_e="\u8BF7\u9009\u62E9\u7701",ke="\u8BF7\u9009\u62E9\u5E02",ze="\u8BF7\u9009\u62E9\u533A",Ge="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",je="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Ke="\u8BF7\u8F93\u5165\u5217\u5BBD",xe="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Te="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",He="\u8BF7\u9009\u62E9\u63A7\u4EF6",We="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",qe="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Pe="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Je="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Xe="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Qe="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Ze="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Oe="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Ye="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",eu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",uu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",tu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",au="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",nu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ru="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",su="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",lu="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",iu="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ou="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",cu="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Eu="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Bu="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",pu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",Fu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",Au="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",du="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",mu="\u8BF7\u9009\u62E9\u6392\u5E8F\u5B57\u6BB5",hu={isNotNumber:f,isNotString:D,isNotObject:b,isNotArray:I,isNotBoolean:m,runtimeRequired:B,pleaseEnterCaption:h,pleaseEnterCaptionTip:re,pleaseEnterRowCaption:se,pleaseEnterPlaceholder:le,pleaseEnterFieldCode:ie,pleaseEnterForm:oe,pleaseEnterList:ce,pleaseEnterProcess:Ee,pleaseEnterLabel:Be,pleaseEnterValue:pe,bizKeyNotBindFiled:Fe,pleaseSelectOneField:Ae,pleaseEnterNumberRange:de,pleaseEnterAValueGreaterThanMin:me,pleaseEnterAValueLessThanMax:he,numberRangeSetError:ve,stringRangeError:Ce,attachmentMaxSize:De,pleaseEnterTotalScoreSetting:ge,theTotalScoreMustNotBeLessThan1:Se,scoreDefaultValueRange:fe,attachmentLimitError:be,PleaseReselectTheOptionalQuantity:Ie,TheMaximumLengthIsGreaterThanTheMinimumLength:ye,TheMinimumLengthIsGreaterThanTheMaximumLength:$e,PleaseSelectTheCorrectOptionSettings:Me,optionIdIsRepeat:we,optionIsRequired:Ue,pleaseEnterDataCode:Le,pleaseEnterValueFieldCode:Ne,pleaseEnterSvcCode:Re,pleaseBindAtLeastOneDisplayValue:Ve,pleaseSelectProvince:_e,pleaseSelectCity:ke,pleaseSelectDistrict:ze,limitRowsCannotBeLessThan0:Ge,TheNumberOfRowsCannotBeLessThanMinRows:je,pleaseEnterColumnWidth:Ke,pleaseSetTheLogicalRelationshipOfAllRuleConditions:xe,pleaseCompleteAllRulesAndConditions:Te,pleaseSelectControl:He,pleaseSelectAtLeastOneColumn:We,pleaseSelectFillBackMode:qe,pleaseSelectDashboard:Pe,rootNodeIsRequired:Je,theViewNameCannotBeEmpty:Xe,pleaseSelectOcrType:Qe,pleaseSelectAtLeastOneFieldToFillIn:Ze,pleaseChooseAtLeastOne:Oe,pleaseEnterButtonContent:Ye,pleaseEnterDataCodeInDataSetting:eu,pleaseEnterValueFieldCodeInDataSetting:uu,pleaseEnterSvcCodeInDataSetting:tu,pleaseBindAtLeastOneDisplayValueInDataSetting:au,rootNodeIsRequiredInDataSetting:nu,pleaseEnterMaxHeight:ru,pleaseEnter:su,pleaseEnterWatermark:lu,pleaseEnterFileName:iu,pleaseUploadAtLeastOnePrintTemplate:ou,pleaseAssignBusiness:cu,pleaseAssignExternal:Eu,pleaseEnterAliasCode:Bu,pleaseSelectDataCode:pu,pleaseSelectSvcCode:Fu,pleaseSelectJoinFieldCode:Au,pleaseSelectMainFieldCode:du,pleaseSelectSortFieldCode:mu},vu="Please enter a number",Cu="Please enter a string",Du="Please enter an object",gu="Please enter an array",Su="Please enter a boolean",fu="{caption} Required",bu="Please enter the title",Iu="Please enter the bubble prompt",yu="Please enter the row title",$u="Please enter the prompt text",Mu="Please bind data items",wu="Please bind the form",Uu="Please bind the list",Lu="Please bind the process",Nu="Please enter the displayed value",Ru="Please enter the stored value",Vu="The document number is not bound to the data item",_u="Please select at least one display field",ku="Please enter a value greater than or equal to {min} and less than or equal to {max}",zu="Please enter a value greater than or equal to {min}",Gu="Please enter a value less than or equal to {max}",ju="The value range is set incorrectly",Ku="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",xu="The attachment size must be between 0MB and 1000MB",Tu="Please fill in the total score setting",Hu="The total score cannot be less than 1",Wu="The default value must be between {min} and {max}",qu="The number of attachments uploaded must be between {min} and {max}",Pu="Please re-select the optional quantity",Ju="The maximum length of the control must be greater than the minimum length",Xu="The minimum length of the control must be less than the maximum length",Qu="Please select the correct option setting",Zu="Option ID cannot be repeated",Ou="Please enter at least one option",Yu="Please bind the data source",et="Please bind the stored value",ut="Please bind the service",tt="At least one display value must be bound",at="Please select a province",nt="Please select a city",rt="Please select a district",st="The minimum number of lines to fill in cannot be less than 0",lt="The number of rows cannot be less than {min} rows",it="Please enter the column width",ot="Please set the logical relationship of all rule conditions",ct="Please complete all rules and conditions",Et="please select control",Bt="Please select the dashboard",pt="View name cannot be empty",Ft="Please select recognition type",At="Please select at least one field to fill in",dt="Please select at least one",mt="Please enter the button title",ht="Please bind the business model in the data settings",vt="Please bind storage values in data settings",Ct="Please bind the service in the data settings",Dt="Please bind at least one display value in the data settings",gt="Please select the root node in the data settings",St="Please enter the maximum height",ft="The input content cannot be empty",bt="Watermark cannot be empty",It="File name cannot be empty",yt="Please upload at least one printing template!\uFF01",$t="Please select a specific business department",Mt="Please select a specified external organization",wt="Please enter a sub table alias",Ut="Please select the associated table to set the business model",Lt="Please select the association table to set the binding service",Nt="Select associated sub table fields",Rt="Please select the associated main table field",Vt="Please select the sort field",_t={isNotNumber:vu,isNotString:Cu,isNotObject:Du,isNotArray:gu,isNotBoolean:Su,runtimeRequired:fu,pleaseEnterCaption:bu,pleaseEnterCaptionTip:Iu,pleaseEnterRowCaption:yu,pleaseEnterPlaceholder:$u,pleaseEnterFieldCode:Mu,pleaseEnterForm:wu,pleaseEnterList:Uu,pleaseEnterProcess:Lu,pleaseEnterLabel:Nu,pleaseEnterValue:Ru,bizKeyNotBindFiled:Vu,pleaseSelectOneField:_u,pleaseEnterNumberRange:ku,pleaseEnterAValueGreaterThanMin:zu,pleaseEnterAValueLessThanMax:Gu,numberRangeSetError:ju,stringRangeError:Ku,attachmentMaxSize:xu,pleaseEnterTotalScoreSetting:Tu,theTotalScoreMustNotBeLessThan1:Hu,scoreDefaultValueRange:Wu,attachmentLimitError:qu,PleaseReselectTheOptionalQuantity:Pu,TheMaximumLengthIsGreaterThanTheMinimumLength:Ju,TheMinimumLengthIsGreaterThanTheMaximumLength:Xu,PleaseSelectTheCorrectOptionSettings:Qu,optionIdIsRepeat:Zu,optionIsRequired:Ou,pleaseEnterDataCode:Yu,pleaseEnterValueFieldCode:et,pleaseEnterSvcCode:ut,pleaseBindAtLeastOneDisplayValue:tt,pleaseSelectProvince:at,pleaseSelectCity:nt,pleaseSelectDistrict:rt,limitRowsCannotBeLessThan0:st,TheNumberOfRowsCannotBeLessThanMinRows:lt,pleaseEnterColumnWidth:it,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ot,pleaseCompleteAllRulesAndConditions:ct,pleaseSelectControl:Et,pleaseSelectDashboard:Bt,theViewNameCannotBeEmpty:pt,pleaseSelectOcrType:Ft,pleaseSelectAtLeastOneFieldToFillIn:At,pleaseChooseAtLeastOne:dt,pleaseEnterButtonContent:mt,pleaseEnterDataCodeInDataSetting:ht,pleaseEnterValueFieldCodeInDataSetting:vt,pleaseEnterSvcCodeInDataSetting:Ct,pleaseBindAtLeastOneDisplayValueInDataSetting:Dt,rootNodeIsRequiredInDataSetting:gt,pleaseEnterMaxHeight:St,pleaseEnter:ft,pleaseEnterWatermark:bt,pleaseEnterFileName:It,pleaseUploadAtLeastOnePrintTemplate:yt,pleaseAssignBusiness:$t,pleaseAssignExternal:Mt,pleaseEnterAliasCode:wt,pleaseSelectDataCode:Ut,pleaseSelectSvcCode:Lt,pleaseSelectJoinFieldCode:Nt,pleaseSelectMainFieldCode:Rt,pleaseSelectSortFieldCode:Vt},kt="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",zt="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Gt="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",jt="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Kt="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",xt="{caption}\u5FC5\u9808",Tt="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ht="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Wt="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",qt="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Pt="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Jt="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Xt="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Qt="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Zt="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ot="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Yt="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",ea="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ua="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ta="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",aa="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",na="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",ra="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",sa="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",la="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",ia="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",oa="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",ca="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ea="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ba="\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",pa="\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",Fa="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Aa="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",da="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",ma="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ha="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",va="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ca="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",Da="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ga="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Sa="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",fa="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",ba="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ia="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ya="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",$a="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",Ma="please select control",wa="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ua="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",La="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Na="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ra="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Va="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",_a="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",ka="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",za="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Ga="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",ja="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ka="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",xa="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Ta="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Ha="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Wa="\u5370\u5237\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u5C11\u306A\u304F\u3068\u30821\u3064\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\uFF01\uFF01",qa="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Pa="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ja="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Xa="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",Qa="\u95A2\u9023\u30C6\u30FC\u30D6\u30EB\u8A2D\u5B9A\u30D0\u30A4\u30F3\u30C9\u30B5\u30FC\u30D3\u30B9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Za="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",Oa="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ya="\u30BD\u30FC\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",en={isNotNumber:kt,isNotString:zt,isNotObject:Gt,isNotArray:jt,isNotBoolean:Kt,runtimeRequired:xt,pleaseEnterCaption:Tt,pleaseEnterCaptionTip:Ht,pleaseEnterRowCaption:Wt,pleaseEnterPlaceholder:qt,pleaseEnterFieldCode:Pt,pleaseEnterForm:Jt,pleaseEnterList:Xt,pleaseEnterProcess:Qt,pleaseEnterLabel:Zt,pleaseEnterValue:Ot,bizKeyNotBindFiled:Yt,pleaseSelectOneField:ea,pleaseEnterNumberRange:ua,pleaseEnterAValueGreaterThanMin:ta,pleaseEnterAValueLessThanMax:aa,numberRangeSetError:na,stringRangeError:ra,attachmentMaxSize:sa,pleaseEnterTotalScoreSetting:la,theTotalScoreMustNotBeLessThan1:ia,scoreDefaultValueRange:oa,attachmentLimitError:ca,PleaseReselectTheOptionalQuantity:Ea,TheMaximumLengthIsGreaterThanTheMinimumLength:Ba,TheMinimumLengthIsGreaterThanTheMaximumLength:pa,PleaseSelectTheCorrectOptionSettings:Fa,optionIdIsRepeat:Aa,optionIsRequired:da,pleaseEnterDataCode:ma,pleaseEnterValueFieldCode:ha,pleaseEnterSvcCode:va,pleaseBindAtLeastOneDisplayValue:Ca,pleaseSelectProvince:Da,pleaseSelectCity:ga,pleaseSelectDistrict:Sa,limitRowsCannotBeLessThan0:fa,TheNumberOfRowsCannotBeLessThanMinRows:ba,pleaseEnterColumnWidth:Ia,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ya,pleaseCompleteAllRulesAndConditions:$a,pleaseSelectControl:Ma,pleaseSelectDashboard:wa,theViewNameCannotBeEmpty:Ua,pleaseSelectOcrType:La,pleaseSelectAtLeastOneFieldToFillIn:Na,pleaseChooseAtLeastOne:Ra,pleaseEnterButtonContent:Va,pleaseEnterDataCodeInDataSetting:_a,pleaseEnterValueFieldCodeInDataSetting:ka,pleaseEnterSvcCodeInDataSetting:za,pleaseBindAtLeastOneDisplayValueInDataSetting:Ga,rootNodeIsRequiredInDataSetting:ja,pleaseEnterMaxHeight:Ka,pleaseEnter:xa,pleaseEnterWatermark:Ta,pleaseEnterFileName:Ha,pleaseUploadAtLeastOnePrintTemplate:Wa,pleaseAssignBusiness:qa,pleaseAssignExternal:Pa,pleaseEnterAliasCode:Ja,pleaseSelectDataCode:Xa,pleaseSelectSvcCode:Qa,pleaseSelectJoinFieldCode:Za,pleaseSelectMainFieldCode:Oa,pleaseSelectSortFieldCode:Ya},un={zhCN:hu,enUS:_t,jaJP:en},z=(e=>(e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable",e))(z||{}),G=(e=>(e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN",e))(G||{});class tn{constructor(u){var t,a,s,o,i,c;this.name=(t=u==null?void 0:u.name)!=null?t:"",this.id=(a=u==null?void 0:u.id)!=null?a:"",this.type=(s=u==null?void 0:u.type)!=null?s:"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=(c=u==null?void 0:u.aggregateType)!=null?c:void 0}}const j="zh-CN",an=()=>{};var K=(e=>(e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search",e))(K||{}),x=(e=>(e[e.FORM=0]="FORM",e[e.LIST=1]="LIST",e[e.REPORT=2]="REPORT",e[e.DASHBOARD=3]="DASHBOARD",e[e.VUE=4]="VUE",e[e.FREE_PAGE=5]="FREE_PAGE",e))(x||{}),y=(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.BATCH_DELETE_LIST_BUTTON="list-page-btn-batch-delete",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.VUE_PAGE="vue-page",e))(y||{}),T=(e=>(e.SAVE="save",e.DRAFT="draft",e.UNSUBMIT="unsubmit",e.AUDIT="audit",e.UNAUDIT="unaudit",e.CANCEL="cancel",e.FORM_SUBMIT="form_submit",e))(T||{}),H=(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.LIST="list",e.JSON="json",e.ANY="ANY",e))(H||{}),W=(e=>(e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATEHOUR="datehour",e.DATEMIN="datemin",e.DATETIME="datetime",e))(W||{});const nn={DEFAULT:"default"},q="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",rn=q+"0123456789";function sn(e=15){let u="";for(let t=0;t<e;t++){const a=t===0?q:rn,s=Math.random()*a.length;u+=a[parseInt(String(s),10)]}return u}const $=console;function P(...e){const u=e.slice(1);$.warn("\u{1F9D0} Driven Warning:"+e[0],...u)}function M(...e){const u=e.slice(1);$.log("\u{1F680} Driven Log:"+e[0],...u)}function ln(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}class w extends Error{constructor(u){super(u),this.name="\u{1F4A5} Driven Error",this.message=u?ln(u):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}"}}class on extends w{constructor(u){super(u),this.name="\u{1F6A8} Driven Reference Error"}}function cn(e){throw new w(e)}function En(e){throw new on(e)}function J(e){$.error(new w(e))}function g(e,u){Array.isArray(e)&&e.map(t=>{switch(t.controlType){case"layout":g(t==null?void 0:t.children,u);break;case"wrap":g(t==null?void 0:t.children,u);break;case"search":g(t==null?void 0:t.children,u);break;case"form":u(t)}})}var Bn=Object.prototype.toString;function X(e,u){return Bn.call(e)==="[object "+u+"]"}function pn(e){return X(e,"String")}function Fn(e){return X(e,"Promise")}var An=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();Fn(a)?a.then(function(s){t._messageCache.clear(),t.messages[t.localeInMessageKey]=s}):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 s=this.getMessage(u);return s?this.formatMessage(s,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(s,o,i,c){if(s!==void 0){var d=s[o];if(!(i===c.length-1&&!pn(d)))return d}},this.message);return this._messageCache.set(u,a),a},e.prototype.formatMessage=function(u,t){return t?u.replace(this.variableRegExp,function(a,s){var o=t[s];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=j){return new An({locale:e,messages:un})}static setLocale(e){return this.$i18n.setLocale(e)}};let Z=Q;Z.$i18n=Q.resetI18n();function dn(e,u,t){const a=u.replace(/\[(\d)]/g,(o,i)=>"."+i).split(".");let s=!1;return a.reduce((o,i,c,d)=>{const v=o;if(!!o){if(!Object.prototype.hasOwnProperty.call(o,i)){P(`Can not set ${u}'s ${i} property in current %o, Because there is no ${i} property on the %o`,o,o);return}return c===d.length-1&&!Object.is(v[i],t)&&(v[i]=t,s=!0),v[i]}},e),s}var mn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},U={exports:{}};(function(e){(function(u){var t=function(r,l,E){if(!v(l)||zn(l)||Gn(l)||jn(l)||d(l))return l;var p,C=0,ae=0;if(kn(l))for(p=[],ae=l.length;C<ae;C++)p.push(t(r,l[C],E));else{p={};for(var k in l)Object.prototype.hasOwnProperty.call(l,k)&&(p[r(k,E)]=t(r,l[k],E))}return p},a=function(r,l){l=l||{};var E=l.separator||"_",p=l.split||/(?=[A-Z])/;return r.split(p).join(E)},s=function(r){return Kn(r)?r:(r=r.replace(/[\-_\s]+(.)?/g,function(l,E){return E?E.toUpperCase():""}),r.substr(0,1).toLowerCase()+r.substr(1))},o=function(r){var l=s(r);return l.substr(0,1).toUpperCase()+l.substr(1)},i=function(r,l){return a(r,l).toLowerCase()},c=Object.prototype.toString,d=function(r){return typeof r=="function"},v=function(r){return r===Object(r)},kn=function(r){return c.call(r)=="[object Array]"},zn=function(r){return c.call(r)=="[object Date]"},Gn=function(r){return c.call(r)=="[object RegExp]"},jn=function(r){return c.call(r)=="[object Boolean]"},Kn=function(r){return r=r-0,r===r},_=function(r,l){var E=l&&"process"in l?l.process:l;return typeof E!="function"?r:function(p,C){return E(p,r,C)}},te={camelize:s,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(r,l){return t(_(s,l),r)},decamelizeKeys:function(r,l){return t(_(i,l),r,l)},pascalizeKeys:function(r,l){return t(_(o,l),r)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=te:u.humps=te})(mn)})(U);var O={};Object.defineProperty(O,"__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 hn=O.default=L;function vn(e){if(e!==void 0)return typeof e=="object"?hn(e):e}function Cn(e){return Y(e)&&"zh"in e}function Y(e){return Object.prototype.toString.call(e)==="[object Object]"}function Dn(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}function S(e){return Array.isArray(e)}function ee(e){return typeof e=="string"}function N(e){return typeof e=="number"}function gn(e){return typeof e=="function"}function Sn(e){return S(e)&&e.every(u=>ee(u))}function fn(e){return S(e)&&e.every(u=>N(u))}function bn(e){return S(e)&&e.every(u=>N(u)||u==="")}function In(e){return/^\[.*?]$/.test(e)}function yn(e){return/^{.*?}$/.test(e)}function $n(e){return isNaN(parseFloat(e))?"":Number(e)}function Mn(e){return e.reduce((u,t)=>(u.includes(t)||u.push(t),u),[])}function wn(e,u=500){let t;return function(...a){t||(t=setTimeout(()=>{e.apply(this,a),clearTimeout(t),t=null},u))}}function Un(e=0){return new Promise(u=>{setTimeout(u,e)})}function R(e,u){let t=[];return Array.isArray(e)&&(t=e.map(a=>{let s=a;return Array.isArray(a==null?void 0:a.children)&&(s.children=R(a.children,u)),Array.isArray(a==null?void 0:a.footers)&&(s.footers=R(a.footers,u)),u(s)})),t}function Ln(e){return U.exports.camelizeKeys(e)}function Nn(e){return U.exports.decamelizeKeys(e)}function Rn(e){return Object.values(y).includes(e)}class Vn{constructor(){this._events=new Map,this.debug=!1}emit(u,...t){return ne(this,null,function*(){const a=this._events.get(u),s=[];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 c=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,c),s.push(c),c===!1)break}catch(c){J(String(c)+":"+String(c.stack))}}return s})}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),s=a==null?void 0:a.indexOf(t);a==null||a.splice(s,1)}}delete(u){this._events.has(u)&&this._events.delete(u)}clear(){this._events=new Map}}const _n=[{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"}],V=class{static getEventsFromKeys(e){const u=typeof e=="string"?[e]:e;return V.events.filter(t=>u.includes(t.key))}static getEventsFromControl(e){let u=[];const t=e.eventKeys;u=u.concat(V.events.filter(s=>t.includes(s.key)));const a=e.customEvents.map(s=>{let o=s.key;return s.namespace!==void 0&&s.namespace!==null&&s.namespace!==""&&(o=s.namespace+":"+s.key),{key:o,code:s.key,name:s.name}});return u=u.concat(a),u}};let ue=V;ue.events=_n,n.CALC_AGGREGATE_TYPE=G,n.CALC_TOKEN_TYPE=z,n.CONTROL_BASE_TYPE=K,n.CONTROL_TYPE=y,n.CalcScriptEchoItem=tn,n.DEFAULT_LOCALE=j,n.DESIGNER_SLOT=nn,n.DateType=W,n.DepartmentEntity=F,n.EventLogic=ue,n.FORM_TYPE=x,n.FieldTypes=H,n.JSONCopy=vn,n.OPT_TYPES=T,n.RulesMessage=Z,n.UserEntity=A,n.Watcher=Vn,n.camelizeKeys=Ln,n.debounce=wn,n.decamelizeKeys=Nn,n.error=cn,n.genNonDuplicateId=sn,n.getNotRepeatItems=Mn,n.isArray=S,n.isBuiltInControls=Rn,n.isFunction=gn,n.isJSONArray=In,n.isJSONObject=yn,n.isLanguageObject=Cn,n.isNumber=N,n.isNumberAndEmptyStringArray=bn,n.isNumberArray=fn,n.isObject=Dn,n.isPlainObject=Y,n.isString=ee,n.isStringArray=Sn,n.log=M,n.logerror=J,n.loop=R,n.loopFormSchema=g,n.noop=an,n.referenceError=En,n.toNumberOrEmpty=$n,n.updateValueFromKeys=dn,n.wait=Un,n.warn=P,Object.defineProperty(n,"__esModule",{value:!0})});
|
|
1
|
+
var ne=(n,F,A)=>new Promise((f,D)=>{var b=B=>{try{m(A.next(B))}catch(h){D(h)}},I=B=>{try{m(A.throw(B))}catch(h){D(h)}},m=B=>B.done?f(B.value):Promise.resolve(B.value).then(b,I);m((A=A.apply(n,F)).next())});(function(n,F){typeof exports=="object"&&typeof module!="undefined"?F(exports):typeof define=="function"&&define.amd?define(["exports"],F):(n=typeof globalThis!="undefined"?globalThis:n||self,F(n.modelDrivenShared={}))})(this,function(n){"use strict";class F{}class A{}var f="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",D="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",b="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",I="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",m="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",B="{caption}\u5FC5\u586B",h="\u8BF7\u8F93\u5165\u6807\u9898",re="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",se="\u8BF7\u8F93\u5165\u884C\u6807\u9898",le="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",ie="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",oe="\u8BF7\u7ED1\u5B9A\u8868\u5355",ce="\u8BF7\u7ED1\u5B9A\u5217\u8868",Ee="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",Be="\u8BF7\u8F93\u5165\u663E\u793A\u503C",pe="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",Fe="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",Ae="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",de="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",me="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",he="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",ve="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",Ce="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",De="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",ge="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",Se="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",fe="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",be="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Ie="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",ye="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",$e="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Me="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",we="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Ue="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",Ne="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Le="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Re="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Ve="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",_e="\u8BF7\u9009\u62E9\u7701",ke="\u8BF7\u9009\u62E9\u5E02",ze="\u8BF7\u9009\u62E9\u533A",Ge="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",je="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Ke="\u8BF7\u8F93\u5165\u5217\u5BBD",Te="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",xe="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",He="\u8BF7\u9009\u62E9\u63A7\u4EF6",We="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",qe="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Pe="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Je="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Xe="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Qe="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Ze="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Oe="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Ye="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",eu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",uu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",tu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",au="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",nu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ru="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",su="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",lu="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",iu="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ou="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",cu="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Eu="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Bu="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",pu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",Fu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",Au="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",du="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",mu="\u8BF7\u9009\u62E9\u6392\u5E8F\u5B57\u6BB5",hu={isNotNumber:f,isNotString:D,isNotObject:b,isNotArray:I,isNotBoolean:m,runtimeRequired:B,pleaseEnterCaption:h,pleaseEnterCaptionTip:re,pleaseEnterRowCaption:se,pleaseEnterPlaceholder:le,pleaseEnterFieldCode:ie,pleaseEnterForm:oe,pleaseEnterList:ce,pleaseEnterProcess:Ee,pleaseEnterLabel:Be,pleaseEnterValue:pe,bizKeyNotBindFiled:Fe,pleaseSelectOneField:Ae,pleaseEnterNumberRange:de,pleaseEnterAValueGreaterThanMin:me,pleaseEnterAValueLessThanMax:he,numberRangeSetError:ve,stringRangeError:Ce,attachmentMaxSize:De,pleaseEnterTotalScoreSetting:ge,theTotalScoreMustNotBeLessThan1:Se,scoreDefaultValueRange:fe,attachmentLimitError:be,PleaseReselectTheOptionalQuantity:Ie,TheMaximumLengthIsGreaterThanTheMinimumLength:ye,TheMinimumLengthIsGreaterThanTheMaximumLength:$e,PleaseSelectTheCorrectOptionSettings:Me,optionIdIsRepeat:we,optionIsRequired:Ue,pleaseEnterDataCode:Ne,pleaseEnterValueFieldCode:Le,pleaseEnterSvcCode:Re,pleaseBindAtLeastOneDisplayValue:Ve,pleaseSelectProvince:_e,pleaseSelectCity:ke,pleaseSelectDistrict:ze,limitRowsCannotBeLessThan0:Ge,TheNumberOfRowsCannotBeLessThanMinRows:je,pleaseEnterColumnWidth:Ke,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Te,pleaseCompleteAllRulesAndConditions:xe,pleaseSelectControl:He,pleaseSelectAtLeastOneColumn:We,pleaseSelectFillBackMode:qe,pleaseSelectDashboard:Pe,rootNodeIsRequired:Je,theViewNameCannotBeEmpty:Xe,pleaseSelectOcrType:Qe,pleaseSelectAtLeastOneFieldToFillIn:Ze,pleaseChooseAtLeastOne:Oe,pleaseEnterButtonContent:Ye,pleaseEnterDataCodeInDataSetting:eu,pleaseEnterValueFieldCodeInDataSetting:uu,pleaseEnterSvcCodeInDataSetting:tu,pleaseBindAtLeastOneDisplayValueInDataSetting:au,rootNodeIsRequiredInDataSetting:nu,pleaseEnterMaxHeight:ru,pleaseEnter:su,pleaseEnterWatermark:lu,pleaseEnterFileName:iu,pleaseUploadAtLeastOnePrintTemplate:ou,pleaseAssignBusiness:cu,pleaseAssignExternal:Eu,pleaseEnterAliasCode:Bu,pleaseSelectDataCode:pu,pleaseSelectSvcCode:Fu,pleaseSelectJoinFieldCode:Au,pleaseSelectMainFieldCode:du,pleaseSelectSortFieldCode:mu},vu="Please enter a number",Cu="Please enter a string",Du="Please enter an object",gu="Please enter an array",Su="Please enter a boolean",fu="{caption} Required",bu="Please enter the title",Iu="Please enter the bubble prompt",yu="Please enter the row title",$u="Please enter the prompt text",Mu="Please bind data items",wu="Please bind the form",Uu="Please bind the list",Nu="Please bind the process",Lu="Please enter the displayed value",Ru="Please enter the stored value",Vu="The document number is not bound to the data item",_u="Please select at least one display field",ku="Please enter a value greater than or equal to {min} and less than or equal to {max}",zu="Please enter a value greater than or equal to {min}",Gu="Please enter a value less than or equal to {max}",ju="The value range is set incorrectly",Ku="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",Tu="The attachment size must be between 0MB and 1000MB",xu="Please fill in the total score setting",Hu="The total score cannot be less than 1",Wu="The default value must be between {min} and {max}",qu="The number of attachments uploaded must be between {min} and {max}",Pu="Please re-select the optional quantity",Ju="The maximum length of the control must be greater than the minimum length",Xu="The minimum length of the control must be less than the maximum length",Qu="Please select the correct option setting",Zu="Option ID cannot be repeated",Ou="Please enter at least one option",Yu="Please bind the data source",et="Please bind the stored value",ut="Please bind the service",tt="At least one display value must be bound",at="Please select a province",nt="Please select a city",rt="Please select a district",st="The minimum number of lines to fill in cannot be less than 0",lt="The number of rows cannot be less than {min} rows",it="Please enter the column width",ot="Please set the logical relationship of all rule conditions",ct="Please complete all rules and conditions",Et="please select control",Bt="Please select the dashboard",pt="View name cannot be empty",Ft="Please select recognition type",At="Please select at least one field to fill in",dt="Please select at least one",mt="Please enter the button title",ht="Please bind the business model in the data settings",vt="Please bind storage values in data settings",Ct="Please bind the service in the data settings",Dt="Please bind at least one display value in the data settings",gt="Please select the root node in the data settings",St="Please enter the maximum height",ft="The input content cannot be empty",bt="Watermark cannot be empty",It="File name cannot be empty",yt="Please upload at least one printing template!\uFF01",$t="Please select a specific business department",Mt="Please select a specified external organization",wt="Please enter a sub table alias",Ut="Please select the associated table to set the business model",Nt="Please select the association table to set the binding service",Lt="Select associated sub table fields",Rt="Please select the associated main table field",Vt="Please select the sort field",_t={isNotNumber:vu,isNotString:Cu,isNotObject:Du,isNotArray:gu,isNotBoolean:Su,runtimeRequired:fu,pleaseEnterCaption:bu,pleaseEnterCaptionTip:Iu,pleaseEnterRowCaption:yu,pleaseEnterPlaceholder:$u,pleaseEnterFieldCode:Mu,pleaseEnterForm:wu,pleaseEnterList:Uu,pleaseEnterProcess:Nu,pleaseEnterLabel:Lu,pleaseEnterValue:Ru,bizKeyNotBindFiled:Vu,pleaseSelectOneField:_u,pleaseEnterNumberRange:ku,pleaseEnterAValueGreaterThanMin:zu,pleaseEnterAValueLessThanMax:Gu,numberRangeSetError:ju,stringRangeError:Ku,attachmentMaxSize:Tu,pleaseEnterTotalScoreSetting:xu,theTotalScoreMustNotBeLessThan1:Hu,scoreDefaultValueRange:Wu,attachmentLimitError:qu,PleaseReselectTheOptionalQuantity:Pu,TheMaximumLengthIsGreaterThanTheMinimumLength:Ju,TheMinimumLengthIsGreaterThanTheMaximumLength:Xu,PleaseSelectTheCorrectOptionSettings:Qu,optionIdIsRepeat:Zu,optionIsRequired:Ou,pleaseEnterDataCode:Yu,pleaseEnterValueFieldCode:et,pleaseEnterSvcCode:ut,pleaseBindAtLeastOneDisplayValue:tt,pleaseSelectProvince:at,pleaseSelectCity:nt,pleaseSelectDistrict:rt,limitRowsCannotBeLessThan0:st,TheNumberOfRowsCannotBeLessThanMinRows:lt,pleaseEnterColumnWidth:it,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ot,pleaseCompleteAllRulesAndConditions:ct,pleaseSelectControl:Et,pleaseSelectDashboard:Bt,theViewNameCannotBeEmpty:pt,pleaseSelectOcrType:Ft,pleaseSelectAtLeastOneFieldToFillIn:At,pleaseChooseAtLeastOne:dt,pleaseEnterButtonContent:mt,pleaseEnterDataCodeInDataSetting:ht,pleaseEnterValueFieldCodeInDataSetting:vt,pleaseEnterSvcCodeInDataSetting:Ct,pleaseBindAtLeastOneDisplayValueInDataSetting:Dt,rootNodeIsRequiredInDataSetting:gt,pleaseEnterMaxHeight:St,pleaseEnter:ft,pleaseEnterWatermark:bt,pleaseEnterFileName:It,pleaseUploadAtLeastOnePrintTemplate:yt,pleaseAssignBusiness:$t,pleaseAssignExternal:Mt,pleaseEnterAliasCode:wt,pleaseSelectDataCode:Ut,pleaseSelectSvcCode:Nt,pleaseSelectJoinFieldCode:Lt,pleaseSelectMainFieldCode:Rt,pleaseSelectSortFieldCode:Vt},kt="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",zt="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Gt="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",jt="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Kt="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Tt="{caption}\u5FC5\u9808",xt="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ht="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Wt="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",qt="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Pt="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Jt="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Xt="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Qt="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Zt="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ot="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Yt="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",ea="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ua="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ta="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",aa="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",na="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",ra="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",sa="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",la="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",ia="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",oa="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",ca="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ea="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ba="\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",pa="\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",Fa="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Aa="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",da="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",ma="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ha="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",va="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ca="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",Da="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ga="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Sa="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",fa="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",ba="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ia="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ya="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",$a="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",Ma="please select control",wa="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ua="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Na="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",La="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ra="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Va="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",_a="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",ka="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",za="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Ga="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",ja="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ka="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ta="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",xa="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Ha="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Wa="\u5370\u5237\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u5C11\u306A\u304F\u3068\u30821\u3064\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\uFF01\uFF01",qa="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Pa="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ja="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Xa="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",Qa="\u95A2\u9023\u30C6\u30FC\u30D6\u30EB\u8A2D\u5B9A\u30D0\u30A4\u30F3\u30C9\u30B5\u30FC\u30D3\u30B9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Za="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",Oa="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ya="\u30BD\u30FC\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",en={isNotNumber:kt,isNotString:zt,isNotObject:Gt,isNotArray:jt,isNotBoolean:Kt,runtimeRequired:Tt,pleaseEnterCaption:xt,pleaseEnterCaptionTip:Ht,pleaseEnterRowCaption:Wt,pleaseEnterPlaceholder:qt,pleaseEnterFieldCode:Pt,pleaseEnterForm:Jt,pleaseEnterList:Xt,pleaseEnterProcess:Qt,pleaseEnterLabel:Zt,pleaseEnterValue:Ot,bizKeyNotBindFiled:Yt,pleaseSelectOneField:ea,pleaseEnterNumberRange:ua,pleaseEnterAValueGreaterThanMin:ta,pleaseEnterAValueLessThanMax:aa,numberRangeSetError:na,stringRangeError:ra,attachmentMaxSize:sa,pleaseEnterTotalScoreSetting:la,theTotalScoreMustNotBeLessThan1:ia,scoreDefaultValueRange:oa,attachmentLimitError:ca,PleaseReselectTheOptionalQuantity:Ea,TheMaximumLengthIsGreaterThanTheMinimumLength:Ba,TheMinimumLengthIsGreaterThanTheMaximumLength:pa,PleaseSelectTheCorrectOptionSettings:Fa,optionIdIsRepeat:Aa,optionIsRequired:da,pleaseEnterDataCode:ma,pleaseEnterValueFieldCode:ha,pleaseEnterSvcCode:va,pleaseBindAtLeastOneDisplayValue:Ca,pleaseSelectProvince:Da,pleaseSelectCity:ga,pleaseSelectDistrict:Sa,limitRowsCannotBeLessThan0:fa,TheNumberOfRowsCannotBeLessThanMinRows:ba,pleaseEnterColumnWidth:Ia,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ya,pleaseCompleteAllRulesAndConditions:$a,pleaseSelectControl:Ma,pleaseSelectDashboard:wa,theViewNameCannotBeEmpty:Ua,pleaseSelectOcrType:Na,pleaseSelectAtLeastOneFieldToFillIn:La,pleaseChooseAtLeastOne:Ra,pleaseEnterButtonContent:Va,pleaseEnterDataCodeInDataSetting:_a,pleaseEnterValueFieldCodeInDataSetting:ka,pleaseEnterSvcCodeInDataSetting:za,pleaseBindAtLeastOneDisplayValueInDataSetting:Ga,rootNodeIsRequiredInDataSetting:ja,pleaseEnterMaxHeight:Ka,pleaseEnter:Ta,pleaseEnterWatermark:xa,pleaseEnterFileName:Ha,pleaseUploadAtLeastOnePrintTemplate:Wa,pleaseAssignBusiness:qa,pleaseAssignExternal:Pa,pleaseEnterAliasCode:Ja,pleaseSelectDataCode:Xa,pleaseSelectSvcCode:Qa,pleaseSelectJoinFieldCode:Za,pleaseSelectMainFieldCode:Oa,pleaseSelectSortFieldCode:Ya},un={zhCN:hu,enUS:_t,jaJP:en},z=(e=>(e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable",e))(z||{}),G=(e=>(e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN",e))(G||{});class tn{constructor(u){var t,a,s,o,i,c;this.name=(t=u==null?void 0:u.name)!=null?t:"",this.id=(a=u==null?void 0:u.id)!=null?a:"",this.type=(s=u==null?void 0:u.type)!=null?s:"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=(c=u==null?void 0:u.aggregateType)!=null?c:void 0}}const j="zh-CN",an=()=>{};var K=(e=>(e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search",e))(K||{}),T=(e=>(e[e.FORM=0]="FORM",e[e.LIST=1]="LIST",e[e.REPORT=2]="REPORT",e[e.DASHBOARD=3]="DASHBOARD",e[e.VUE=4]="VUE",e[e.FREE_PAGE=5]="FREE_PAGE",e))(T||{}),y=(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.BATCH_DELETE_LIST_BUTTON="list-page-btn-batch-delete",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.OPERATION_BUTTON="operation-button",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.VUE_PAGE="vue-page",e))(y||{}),x=(e=>(e.SAVE="save",e.DRAFT="draft",e.UNSUBMIT="unsubmit",e.AUDIT="audit",e.UNAUDIT="unaudit",e.CANCEL="cancel",e.FORM_SUBMIT="form_submit",e))(x||{}),H=(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.LIST="list",e.JSON="json",e.ANY="ANY",e))(H||{}),W=(e=>(e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATEHOUR="datehour",e.DATEMIN="datemin",e.DATETIME="datetime",e))(W||{});const nn={DEFAULT:"default"},q="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",rn=q+"0123456789";function sn(e=15){let u="";for(let t=0;t<e;t++){const a=t===0?q:rn,s=Math.random()*a.length;u+=a[parseInt(String(s),10)]}return u}const $=console;function P(...e){const u=e.slice(1);$.warn("\u{1F9D0} Driven Warning:"+e[0],...u)}function M(...e){const u=e.slice(1);$.log("\u{1F680} Driven Log:"+e[0],...u)}function ln(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}class w extends Error{constructor(u){super(u),this.name="\u{1F4A5} Driven Error",this.message=u?ln(u):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}"}}class on extends w{constructor(u){super(u),this.name="\u{1F6A8} Driven Reference Error"}}function cn(e){throw new w(e)}function En(e){throw new on(e)}function J(e){$.error(new w(e))}function g(e,u){Array.isArray(e)&&e.map(t=>{switch(t.controlType){case"layout":g(t==null?void 0:t.children,u);break;case"wrap":g(t==null?void 0:t.children,u);break;case"search":g(t==null?void 0:t.children,u);break;case"form":u(t)}})}var Bn=Object.prototype.toString;function X(e,u){return Bn.call(e)==="[object "+u+"]"}function pn(e){return X(e,"String")}function Fn(e){return X(e,"Promise")}var An=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();Fn(a)?a.then(function(s){t._messageCache.clear(),t.messages[t.localeInMessageKey]=s}):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 s=this.getMessage(u);return s?this.formatMessage(s,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(s,o,i,c){if(s!==void 0){var d=s[o];if(!(i===c.length-1&&!pn(d)))return d}},this.message);return this._messageCache.set(u,a),a},e.prototype.formatMessage=function(u,t){return t?u.replace(this.variableRegExp,function(a,s){var o=t[s];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=j){return new An({locale:e,messages:un})}static setLocale(e){return this.$i18n.setLocale(e)}};let Z=Q;Z.$i18n=Q.resetI18n();function dn(e,u,t){const a=u.replace(/\[(\d)]/g,(o,i)=>"."+i).split(".");let s=!1;return a.reduce((o,i,c,d)=>{const v=o;if(!!o){if(!Object.prototype.hasOwnProperty.call(o,i)){P(`Can not set ${u}'s ${i} property in current %o, Because there is no ${i} property on the %o`,o,o);return}return c===d.length-1&&!Object.is(v[i],t)&&(v[i]=t,s=!0),v[i]}},e),s}var mn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},U={exports:{}};(function(e){(function(u){var t=function(r,l,E){if(!v(l)||zn(l)||Gn(l)||jn(l)||d(l))return l;var p,C=0,ae=0;if(kn(l))for(p=[],ae=l.length;C<ae;C++)p.push(t(r,l[C],E));else{p={};for(var k in l)Object.prototype.hasOwnProperty.call(l,k)&&(p[r(k,E)]=t(r,l[k],E))}return p},a=function(r,l){l=l||{};var E=l.separator||"_",p=l.split||/(?=[A-Z])/;return r.split(p).join(E)},s=function(r){return Kn(r)?r:(r=r.replace(/[\-_\s]+(.)?/g,function(l,E){return E?E.toUpperCase():""}),r.substr(0,1).toLowerCase()+r.substr(1))},o=function(r){var l=s(r);return l.substr(0,1).toUpperCase()+l.substr(1)},i=function(r,l){return a(r,l).toLowerCase()},c=Object.prototype.toString,d=function(r){return typeof r=="function"},v=function(r){return r===Object(r)},kn=function(r){return c.call(r)=="[object Array]"},zn=function(r){return c.call(r)=="[object Date]"},Gn=function(r){return c.call(r)=="[object RegExp]"},jn=function(r){return c.call(r)=="[object Boolean]"},Kn=function(r){return r=r-0,r===r},_=function(r,l){var E=l&&"process"in l?l.process:l;return typeof E!="function"?r:function(p,C){return E(p,r,C)}},te={camelize:s,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(r,l){return t(_(s,l),r)},decamelizeKeys:function(r,l){return t(_(i,l),r,l)},pascalizeKeys:function(r,l){return t(_(o,l),r)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=te:u.humps=te})(mn)})(U);var O={};Object.defineProperty(O,"__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 hn=O.default=N;function vn(e){if(e!==void 0)return typeof e=="object"?hn(e):e}function Cn(e){return Y(e)&&"zh"in e}function Y(e){return Object.prototype.toString.call(e)==="[object Object]"}function Dn(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}function S(e){return Array.isArray(e)}function ee(e){return typeof e=="string"}function L(e){return typeof e=="number"}function gn(e){return typeof e=="function"}function Sn(e){return S(e)&&e.every(u=>ee(u))}function fn(e){return S(e)&&e.every(u=>L(u))}function bn(e){return S(e)&&e.every(u=>L(u)||u==="")}function In(e){return/^\[.*?]$/.test(e)}function yn(e){return/^{.*?}$/.test(e)}function $n(e){return isNaN(parseFloat(e))?"":Number(e)}function Mn(e){return e.reduce((u,t)=>(u.includes(t)||u.push(t),u),[])}function wn(e,u=500){let t;return function(...a){t||(t=setTimeout(()=>{e.apply(this,a),clearTimeout(t),t=null},u))}}function Un(e=0){return new Promise(u=>{setTimeout(u,e)})}function R(e,u){let t=[];return Array.isArray(e)&&(t=e.map(a=>{let s=a;return Array.isArray(a==null?void 0:a.children)&&(s.children=R(a.children,u)),Array.isArray(a==null?void 0:a.footers)&&(s.footers=R(a.footers,u)),u(s)})),t}function Nn(e){return U.exports.camelizeKeys(e)}function Ln(e){return U.exports.decamelizeKeys(e)}function Rn(e){return Object.values(y).includes(e)}class Vn{constructor(){this._events=new Map,this.debug=!1}emit(u,...t){return ne(this,null,function*(){const a=this._events.get(u),s=[];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 c=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,c),s.push(c),c===!1)break}catch(c){J(String(c)+":"+String(c.stack))}}return s})}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),s=a==null?void 0:a.indexOf(t);a==null||a.splice(s,1)}}delete(u){this._events.has(u)&&this._events.delete(u)}clear(){this._events=new Map}}const _n=[{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"}],V=class{static getEventsFromKeys(e){const u=typeof e=="string"?[e]:e;return V.events.filter(t=>u.includes(t.key))}static getEventsFromControl(e){let u=[];const t=e.eventKeys;u=u.concat(V.events.filter(s=>t.includes(s.key)));const a=e.customEvents.map(s=>{let o=s.key;return s.namespace!==void 0&&s.namespace!==null&&s.namespace!==""&&(o=s.namespace+":"+s.key),{key:o,code:s.key,name:s.name}});return u=u.concat(a),u}};let ue=V;ue.events=_n,n.CALC_AGGREGATE_TYPE=G,n.CALC_TOKEN_TYPE=z,n.CONTROL_BASE_TYPE=K,n.CONTROL_TYPE=y,n.CalcScriptEchoItem=tn,n.DEFAULT_LOCALE=j,n.DESIGNER_SLOT=nn,n.DateType=W,n.DepartmentEntity=F,n.EventLogic=ue,n.FORM_TYPE=T,n.FieldTypes=H,n.JSONCopy=vn,n.OPT_TYPES=x,n.RulesMessage=Z,n.UserEntity=A,n.Watcher=Vn,n.camelizeKeys=Nn,n.debounce=wn,n.decamelizeKeys=Ln,n.error=cn,n.genNonDuplicateId=sn,n.getNotRepeatItems=Mn,n.isArray=S,n.isBuiltInControls=Rn,n.isFunction=gn,n.isJSONArray=In,n.isJSONObject=yn,n.isLanguageObject=Cn,n.isNumber=L,n.isNumberAndEmptyStringArray=bn,n.isNumberArray=fn,n.isObject=Dn,n.isPlainObject=Y,n.isString=ee,n.isStringArray=Sn,n.log=M,n.logerror=J,n.loop=R,n.loopFormSchema=g,n.noop=an,n.referenceError=En,n.toNumberOrEmpty=$n,n.updateValueFromKeys=dn,n.wait=Un,n.warn=P,Object.defineProperty(n,"__esModule",{value:!0})});
|
package/dist/types/enum.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ export declare enum CONTROL_TYPE {
|
|
|
69
69
|
CUSTOM_COLUMN = "custom-column",
|
|
70
70
|
ORDER_COLUMN = "order-column",
|
|
71
71
|
OPERATION_COLUMN = "operation-column",
|
|
72
|
+
OPERATION_BUTTON = "operation-button",
|
|
72
73
|
EMPLOYEE_COLUMN = "employee-column",
|
|
73
74
|
Approval_Status_Column = "approval-status-column",
|
|
74
75
|
ADDRESS = "address",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-shared",
|
|
3
|
-
"version": "2.21.0-beta.
|
|
3
|
+
"version": "2.21.0-beta.13",
|
|
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": "104cc8754ff8b059ae76995ddacbea94f21aaee1"
|
|
34
34
|
}
|