@byteluck-fe/model-driven-core 2.20.0-beta.2 → 2.20.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/common/ColumnControl/designer.js +92 -0
- package/dist/esm/common/ColumnControl/property.js +1 -0
- package/dist/esm/common/ColumnControl/runtime.js +3 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/common/ColumnControl/designer.d.ts +10 -0
- package/dist/types/common/ColumnControl/property.d.ts +2 -1
- package/dist/types/common/ColumnControl/runtime.d.ts +1 -0
- package/package.json +3 -3
|
@@ -9,6 +9,20 @@ function _class_call_check(instance, Constructor) {
|
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
+
function _defineProperties(target, props) {
|
|
13
|
+
for(var i = 0; i < props.length; i++){
|
|
14
|
+
var descriptor = props[i];
|
|
15
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
16
|
+
descriptor.configurable = true;
|
|
17
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
18
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
22
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
23
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
24
|
+
return Constructor;
|
|
25
|
+
}
|
|
12
26
|
function _define_property(obj, key, value) {
|
|
13
27
|
if (key in obj) {
|
|
14
28
|
Object.defineProperty(obj, key, {
|
|
@@ -22,6 +36,22 @@ function _define_property(obj, key, value) {
|
|
|
22
36
|
}
|
|
23
37
|
return obj;
|
|
24
38
|
}
|
|
39
|
+
function _get(target, property, receiver) {
|
|
40
|
+
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
41
|
+
_get = Reflect.get;
|
|
42
|
+
} else {
|
|
43
|
+
_get = function get(target, property, receiver) {
|
|
44
|
+
var base = _super_prop_base(target, property);
|
|
45
|
+
if (!base) return;
|
|
46
|
+
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
47
|
+
if (desc.get) {
|
|
48
|
+
return desc.get.call(receiver || target);
|
|
49
|
+
}
|
|
50
|
+
return desc.value;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
return _get(target, property, receiver || target);
|
|
54
|
+
}
|
|
25
55
|
function _get_prototype_of(o) {
|
|
26
56
|
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
27
57
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
@@ -41,6 +71,45 @@ function _inherits(subClass, superClass) {
|
|
|
41
71
|
});
|
|
42
72
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
43
73
|
}
|
|
74
|
+
function _object_spread(target) {
|
|
75
|
+
for(var i = 1; i < arguments.length; i++){
|
|
76
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
77
|
+
var ownKeys = Object.keys(source);
|
|
78
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
79
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
80
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
81
|
+
}));
|
|
82
|
+
}
|
|
83
|
+
ownKeys.forEach(function(key) {
|
|
84
|
+
_define_property(target, key, source[key]);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
return target;
|
|
88
|
+
}
|
|
89
|
+
function ownKeys(object, enumerableOnly) {
|
|
90
|
+
var keys = Object.keys(object);
|
|
91
|
+
if (Object.getOwnPropertySymbols) {
|
|
92
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
93
|
+
if (enumerableOnly) {
|
|
94
|
+
symbols = symbols.filter(function(sym) {
|
|
95
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
keys.push.apply(keys, symbols);
|
|
99
|
+
}
|
|
100
|
+
return keys;
|
|
101
|
+
}
|
|
102
|
+
function _object_spread_props(target, source) {
|
|
103
|
+
source = source != null ? source : {};
|
|
104
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
105
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
106
|
+
} else {
|
|
107
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
108
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
return target;
|
|
112
|
+
}
|
|
44
113
|
function _possible_constructor_return(self, call) {
|
|
45
114
|
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
46
115
|
return call;
|
|
@@ -54,6 +123,13 @@ function _set_prototype_of(o, p) {
|
|
|
54
123
|
};
|
|
55
124
|
return _set_prototype_of(o, p);
|
|
56
125
|
}
|
|
126
|
+
function _super_prop_base(object, property) {
|
|
127
|
+
while(!Object.prototype.hasOwnProperty.call(object, property)){
|
|
128
|
+
object = _get_prototype_of(object);
|
|
129
|
+
if (object === null) break;
|
|
130
|
+
}
|
|
131
|
+
return object;
|
|
132
|
+
}
|
|
57
133
|
function _type_of(obj) {
|
|
58
134
|
"@swc/helpers - typeof";
|
|
59
135
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
@@ -82,6 +158,7 @@ function _create_super(Derived) {
|
|
|
82
158
|
return _possible_constructor_return(this, result);
|
|
83
159
|
};
|
|
84
160
|
}
|
|
161
|
+
import { defineControlArrayToProperty } from "../ControlArray";
|
|
85
162
|
import { DesignerControl } from "../BaseControl";
|
|
86
163
|
import ColumnControlProperty from "./property";
|
|
87
164
|
var ColumnControl = /*#__PURE__*/ function(DesignerControl) {
|
|
@@ -94,9 +171,24 @@ var ColumnControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
94
171
|
_this = _super.call(this, props);
|
|
95
172
|
_define_property(_assert_this_initialized(_this), "controlType", "column");
|
|
96
173
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
174
|
+
_define_property(_assert_this_initialized(_this), "children", void 0);
|
|
97
175
|
_this.props = new ColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
176
|
+
defineControlArrayToProperty(_assert_this_initialized(_this), "children", props === null || props === void 0 ? void 0 : props.children, undefined, "Designer");
|
|
98
177
|
return _this;
|
|
99
178
|
}
|
|
179
|
+
_create_class(ColumnControl, [
|
|
180
|
+
{
|
|
181
|
+
key: "toSchema",
|
|
182
|
+
value: function toSchema() {
|
|
183
|
+
var superSchema = _get(_get_prototype_of(ColumnControl.prototype), "toSchema", this).call(this);
|
|
184
|
+
return _object_spread_props(_object_spread({}, superSchema), {
|
|
185
|
+
children: this.children ? this.children.map(function(item) {
|
|
186
|
+
return item.toSchema();
|
|
187
|
+
}) : []
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
]);
|
|
100
192
|
return ColumnControl;
|
|
101
193
|
}(DesignerControl);
|
|
102
194
|
export default ColumnControl;
|
|
@@ -155,6 +155,7 @@ var ColumnControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
155
155
|
* 自动高度
|
|
156
156
|
* @defaultValue false
|
|
157
157
|
*/ _define_property(_assert_this_initialized(_this), "autoHeight", void 0);
|
|
158
|
+
_define_property(_assert_this_initialized(_this), "children", void 0);
|
|
158
159
|
var _props_width;
|
|
159
160
|
_this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : 150;
|
|
160
161
|
_this.widthType = (props === null || props === void 0 ? void 0 : props.widthType) || "auto";
|
|
@@ -82,6 +82,7 @@ function _create_super(Derived) {
|
|
|
82
82
|
return _possible_constructor_return(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
+
import { defineControlArrayToProperty } from "../ControlArray";
|
|
85
86
|
import { RuntimeControl } from "../BaseControl";
|
|
86
87
|
import ColumnControlProperty from "./property";
|
|
87
88
|
var ColumnControl = /*#__PURE__*/ function(RuntimeControl) {
|
|
@@ -94,7 +95,9 @@ var ColumnControl = /*#__PURE__*/ function(RuntimeControl) {
|
|
|
94
95
|
_this = _super.call(this, props);
|
|
95
96
|
_define_property(_assert_this_initialized(_this), "controlType", "column");
|
|
96
97
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
98
|
+
_define_property(_assert_this_initialized(_this), "children", void 0);
|
|
97
99
|
_this.props = new ColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
100
|
+
defineControlArrayToProperty(_assert_this_initialized(_this), "children", props === null || props === void 0 ? void 0 : props.children, undefined, "Runtime");
|
|
98
101
|
return _this;
|
|
99
102
|
}
|
|
100
103
|
return ColumnControl;
|
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var cs=Object.defineProperty,ds=Object.defineProperties;var fs=Object.getOwnPropertyDescriptors;var rn=Object.getOwnPropertySymbols,hs=Object.getPrototypeOf,ms=Object.prototype.hasOwnProperty,gs=Object.prototype.propertyIsEnumerable,ys=Reflect.get;var ln=(s,D,I)=>D in s?cs(s,D,{enumerable:!0,configurable:!0,writable:!0,value:I}):s[D]=I,X=(s,D)=>{for(var I in D||(D={}))ms.call(D,I)&&ln(s,I,D[I]);if(rn)for(var I of rn(D))gs.call(D,I)&&ln(s,I,D[I]);return s},Be=(s,D)=>ds(s,fs(D));var rt=(s,D,I)=>ys(hs(s),I,D);var re=(s,D,I)=>new Promise((Ce,le)=>{var Ae=V=>{try{G(I.next(V))}catch(Z){le(Z)}},Fe=V=>{try{G(I.throw(V))}catch(Z){le(Z)}},G=V=>V.done?Ce(V.value):Promise.resolve(V.value).then(Ae,Fe);G((I=I.apply(s,D)).next())});(function(s,D){typeof exports=="object"&&typeof module!="undefined"?D(exports):typeof define=="function"&&define.amd?define(["exports"],D):(s=typeof globalThis!="undefined"?globalThis:s||self,D(s.modelDrivenCore={}))})(this,function(s){"use strict";var D="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",I="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",Ce="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",le="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",Ae="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",Fe="{caption}\u5FC5\u586B",G="\u8BF7\u8F93\u5165\u6807\u9898",V="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Z="\u8BF7\u8F93\u5165\u884C\u6807\u9898",sn="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",on="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",cn="\u8BF7\u7ED1\u5B9A\u8868\u5355",dn="\u8BF7\u7ED1\u5B9A\u5217\u8868",fn="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",hn="\u8BF7\u8F93\u5165\u663E\u793A\u503C",mn="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",gn="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",yn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",vn="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",En="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",Bn="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Cn="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",An="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",Fn="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Dn="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",bn="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",wn="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Sn="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",In="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",Rn="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Mn="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",_n="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",$n="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Ln="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",qn="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Pn="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Vn="\u8BF7\u7ED1\u5B9A\u670D\u52A1",xn="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",jn="\u8BF7\u9009\u62E9\u7701",On="\u8BF7\u9009\u62E9\u5E02",Un="\u8BF7\u9009\u62E9\u533A",Nn="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",kn="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Hn="\u8BF7\u8F93\u5165\u5217\u5BBD",Wn="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Kn="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",zn="\u8BF7\u9009\u62E9\u63A7\u4EF6",Tn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",Jn="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Xn="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Gn="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Zn="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Qn="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Yn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",pn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",eu="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",tu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",nu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",uu="\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",iu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ru="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",lu="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",su="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",ou="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",cu="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",du="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",fu="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",hu="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",mu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",gu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",yu="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",vu="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",Eu="\u8BF7\u9009\u62E9\u6392\u5E8F\u5B57\u6BB5",Bu={isNotNumber:D,isNotString:I,isNotObject:Ce,isNotArray:le,isNotBoolean:Ae,runtimeRequired:Fe,pleaseEnterCaption:G,pleaseEnterCaptionTip:V,pleaseEnterRowCaption:Z,pleaseEnterPlaceholder:sn,pleaseEnterFieldCode:on,pleaseEnterForm:cn,pleaseEnterList:dn,pleaseEnterProcess:fn,pleaseEnterLabel:hn,pleaseEnterValue:mn,bizKeyNotBindFiled:gn,pleaseSelectOneField:yn,pleaseEnterNumberRange:vn,pleaseEnterAValueGreaterThanMin:En,pleaseEnterAValueLessThanMax:Bn,numberRangeSetError:Cn,stringRangeError:An,attachmentMaxSize:Fn,pleaseEnterTotalScoreSetting:Dn,theTotalScoreMustNotBeLessThan1:bn,scoreDefaultValueRange:wn,attachmentLimitError:Sn,PleaseReselectTheOptionalQuantity:In,TheMaximumLengthIsGreaterThanTheMinimumLength:Rn,TheMinimumLengthIsGreaterThanTheMaximumLength:Mn,PleaseSelectTheCorrectOptionSettings:_n,optionIdIsRepeat:$n,optionIsRequired:Ln,pleaseEnterDataCode:qn,pleaseEnterValueFieldCode:Pn,pleaseEnterSvcCode:Vn,pleaseBindAtLeastOneDisplayValue:xn,pleaseSelectProvince:jn,pleaseSelectCity:On,pleaseSelectDistrict:Un,limitRowsCannotBeLessThan0:Nn,TheNumberOfRowsCannotBeLessThanMinRows:kn,pleaseEnterColumnWidth:Hn,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Wn,pleaseCompleteAllRulesAndConditions:Kn,pleaseSelectControl:zn,pleaseSelectAtLeastOneColumn:Tn,pleaseSelectFillBackMode:Jn,pleaseSelectDashboard:Xn,rootNodeIsRequired:Gn,theViewNameCannotBeEmpty:Zn,pleaseSelectOcrType:Qn,pleaseSelectAtLeastOneFieldToFillIn:Yn,pleaseChooseAtLeastOne:pn,pleaseEnterButtonContent:eu,pleaseEnterDataCodeInDataSetting:tu,pleaseEnterValueFieldCodeInDataSetting:nu,pleaseEnterSvcCodeInDataSetting:uu,pleaseBindAtLeastOneDisplayValueInDataSetting:au,rootNodeIsRequiredInDataSetting:iu,pleaseEnterMaxHeight:ru,pleaseEnter:lu,pleaseEnterWatermark:su,pleaseEnterFileName:ou,pleaseUploadAtLeastOnePrintTemplate:cu,pleaseAssignBusiness:du,pleaseAssignExternal:fu,pleaseEnterAliasCode:hu,pleaseSelectDataCode:mu,pleaseSelectSvcCode:gu,pleaseSelectJoinFieldCode:yu,pleaseSelectMainFieldCode:vu,pleaseSelectSortFieldCode:Eu},Cu="Please enter a number",Au="Please enter a string",Fu="Please enter an object",Du="Please enter an array",bu="Please enter a boolean",wu="{caption} Required",Su="Please enter the title",Iu="Please enter the bubble prompt",Ru="Please enter the row title",Mu="Please enter the prompt text",_u="Please bind data items",$u="Please bind the form",Lu="Please bind the list",qu="Please bind the process",Pu="Please enter the displayed value",Vu="Please enter the stored value",xu="The document number is not bound to the data item",ju="Please select at least one display field",Ou="Please enter a value greater than or equal to {min} and less than or equal to {max}",Uu="Please enter a value greater than or equal to {min}",Nu="Please enter a value less than or equal to {max}",ku="The value range is set incorrectly",Hu="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",Wu="The attachment size must be between 0MB and 1000MB",Ku="Please fill in the total score setting",zu="The total score cannot be less than 1",Tu="The default value must be between {min} and {max}",Ju="The number of attachments uploaded must be between {min} and {max}",Xu="Please re-select the optional quantity",Gu="The maximum length of the control must be greater than the minimum length",Zu="The minimum length of the control must be less than the maximum length",Qu="Please select the correct option setting",Yu="Option ID cannot be repeated",pu="Please enter at least one option",ea="Please bind the data source",ta="Please bind the stored value",na="Please bind the service",ua="At least one display value must be bound",aa="Please select a province",ia="Please select a city",ra="Please select a district",la="The minimum number of lines to fill in cannot be less than 0",sa="The number of rows cannot be less than {min} rows",oa="Please enter the column width",ca="Please set the logical relationship of all rule conditions",da="Please complete all rules and conditions",fa="please select control",ha="Please select the dashboard",ma="View name cannot be empty",ga="Please select recognition type",ya="Please select at least one field to fill in",va="Please select at least one",Ea="Please enter the button title",Ba="Please bind the business model in the data settings",Ca="Please bind storage values in data settings",Aa="Please bind the service in the data settings",Fa="Please bind at least one display value in the data settings",Da="Please select the root node in the data settings",ba="Please enter the maximum height",wa="The input content cannot be empty",Sa="Watermark cannot be empty",Ia="File name cannot be empty",Ra="Please upload at least one printing template!\uFF01",Ma="Please select a specific business department",_a="Please select a specified external organization",$a="Please enter a sub table alias",La="Please select the associated table to set the business model",qa="Please select the association table to set the binding service",Pa="Select associated sub table fields",Va="Please select the associated main table field",xa="Please select the sort field",ja={isNotNumber:Cu,isNotString:Au,isNotObject:Fu,isNotArray:Du,isNotBoolean:bu,runtimeRequired:wu,pleaseEnterCaption:Su,pleaseEnterCaptionTip:Iu,pleaseEnterRowCaption:Ru,pleaseEnterPlaceholder:Mu,pleaseEnterFieldCode:_u,pleaseEnterForm:$u,pleaseEnterList:Lu,pleaseEnterProcess:qu,pleaseEnterLabel:Pu,pleaseEnterValue:Vu,bizKeyNotBindFiled:xu,pleaseSelectOneField:ju,pleaseEnterNumberRange:Ou,pleaseEnterAValueGreaterThanMin:Uu,pleaseEnterAValueLessThanMax:Nu,numberRangeSetError:ku,stringRangeError:Hu,attachmentMaxSize:Wu,pleaseEnterTotalScoreSetting:Ku,theTotalScoreMustNotBeLessThan1:zu,scoreDefaultValueRange:Tu,attachmentLimitError:Ju,PleaseReselectTheOptionalQuantity:Xu,TheMaximumLengthIsGreaterThanTheMinimumLength:Gu,TheMinimumLengthIsGreaterThanTheMaximumLength:Zu,PleaseSelectTheCorrectOptionSettings:Qu,optionIdIsRepeat:Yu,optionIsRequired:pu,pleaseEnterDataCode:ea,pleaseEnterValueFieldCode:ta,pleaseEnterSvcCode:na,pleaseBindAtLeastOneDisplayValue:ua,pleaseSelectProvince:aa,pleaseSelectCity:ia,pleaseSelectDistrict:ra,limitRowsCannotBeLessThan0:la,TheNumberOfRowsCannotBeLessThanMinRows:sa,pleaseEnterColumnWidth:oa,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ca,pleaseCompleteAllRulesAndConditions:da,pleaseSelectControl:fa,pleaseSelectDashboard:ha,theViewNameCannotBeEmpty:ma,pleaseSelectOcrType:ga,pleaseSelectAtLeastOneFieldToFillIn:ya,pleaseChooseAtLeastOne:va,pleaseEnterButtonContent:Ea,pleaseEnterDataCodeInDataSetting:Ba,pleaseEnterValueFieldCodeInDataSetting:Ca,pleaseEnterSvcCodeInDataSetting:Aa,pleaseBindAtLeastOneDisplayValueInDataSetting:Fa,rootNodeIsRequiredInDataSetting:Da,pleaseEnterMaxHeight:ba,pleaseEnter:wa,pleaseEnterWatermark:Sa,pleaseEnterFileName:Ia,pleaseUploadAtLeastOnePrintTemplate:Ra,pleaseAssignBusiness:Ma,pleaseAssignExternal:_a,pleaseEnterAliasCode:$a,pleaseSelectDataCode:La,pleaseSelectSvcCode:qa,pleaseSelectJoinFieldCode:Pa,pleaseSelectMainFieldCode:Va,pleaseSelectSortFieldCode:xa},Oa="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ua="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Na="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ka="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ha="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Wa="{caption}\u5FC5\u9808",Ka="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",za="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ta="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ja="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Xa="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ga="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Za="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Qa="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ya="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",pa="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ei="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",ti="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ni="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ui="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ai="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ii="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",ri="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",li="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",si="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",oi="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",ci="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",di="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",fi="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",hi="\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",mi="\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",gi="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",yi="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",vi="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Ei="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Bi="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ci="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ai="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",Fi="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Di="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",bi="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",wi="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Si="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ii="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ri="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Mi="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",_i="please select control",$i="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Li="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",qi="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Pi="\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",Vi="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",xi="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ji="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Oi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Ui="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Ni="\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",ki="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Hi="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Wi="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Ki="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",zi="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Ti="\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",Ji="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Xi="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Gi="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Zi="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",Qi="\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",Yi="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",pi="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",er="\u30BD\u30FC\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",tr={isNotNumber:Oa,isNotString:Ua,isNotObject:Na,isNotArray:ka,isNotBoolean:Ha,runtimeRequired:Wa,pleaseEnterCaption:Ka,pleaseEnterCaptionTip:za,pleaseEnterRowCaption:Ta,pleaseEnterPlaceholder:Ja,pleaseEnterFieldCode:Xa,pleaseEnterForm:Ga,pleaseEnterList:Za,pleaseEnterProcess:Qa,pleaseEnterLabel:Ya,pleaseEnterValue:pa,bizKeyNotBindFiled:ei,pleaseSelectOneField:ti,pleaseEnterNumberRange:ni,pleaseEnterAValueGreaterThanMin:ui,pleaseEnterAValueLessThanMax:ai,numberRangeSetError:ii,stringRangeError:ri,attachmentMaxSize:li,pleaseEnterTotalScoreSetting:si,theTotalScoreMustNotBeLessThan1:oi,scoreDefaultValueRange:ci,attachmentLimitError:di,PleaseReselectTheOptionalQuantity:fi,TheMaximumLengthIsGreaterThanTheMinimumLength:hi,TheMinimumLengthIsGreaterThanTheMaximumLength:mi,PleaseSelectTheCorrectOptionSettings:gi,optionIdIsRepeat:yi,optionIsRequired:vi,pleaseEnterDataCode:Ei,pleaseEnterValueFieldCode:Bi,pleaseEnterSvcCode:Ci,pleaseBindAtLeastOneDisplayValue:Ai,pleaseSelectProvince:Fi,pleaseSelectCity:Di,pleaseSelectDistrict:bi,limitRowsCannotBeLessThan0:wi,TheNumberOfRowsCannotBeLessThanMinRows:Si,pleaseEnterColumnWidth:Ii,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Ri,pleaseCompleteAllRulesAndConditions:Mi,pleaseSelectControl:_i,pleaseSelectDashboard:$i,theViewNameCannotBeEmpty:Li,pleaseSelectOcrType:qi,pleaseSelectAtLeastOneFieldToFillIn:Pi,pleaseChooseAtLeastOne:Vi,pleaseEnterButtonContent:xi,pleaseEnterDataCodeInDataSetting:ji,pleaseEnterValueFieldCodeInDataSetting:Oi,pleaseEnterSvcCodeInDataSetting:Ui,pleaseBindAtLeastOneDisplayValueInDataSetting:Ni,rootNodeIsRequiredInDataSetting:ki,pleaseEnterMaxHeight:Hi,pleaseEnter:Wi,pleaseEnterWatermark:Ki,pleaseEnterFileName:zi,pleaseUploadAtLeastOnePrintTemplate:Ti,pleaseAssignBusiness:Ji,pleaseAssignExternal:Xi,pleaseEnterAliasCode:Gi,pleaseSelectDataCode:Zi,pleaseSelectSvcCode:Qi,pleaseSelectJoinFieldCode:Yi,pleaseSelectMainFieldCode:pi,pleaseSelectSortFieldCode:er},nr={zhCN:Bu,enUS:ja,jaJP:tr},lt;(function(t){t.Number="Number",t.Operator="Operator",t.VariableInMainTable="VariableInMainTable",t.VariableInCurrentSubTable="VariableInCurrentSubTable",t.VariableInOtherSubTable="VariableInOtherSubTable",t.UndefinedVariable="UndefinedVariable"})(lt||(lt={}));var st;(function(t){t.SUM="SUM",t.AVG="AVG",t.MAX="MAX",t.MIN="MIN"})(st||(st={}));var ur="zh-CN",H;(function(t){t.BASE="base",t.FORM="form",t.LAYOUT="layout",t.WRAP="wrap",t.COLUMN="column",t.LIST="list",t.SEARCH="search"})(H||(H={}));var ot;(function(t){t[t.FORM=0]="FORM",t[t.LIST=1]="LIST",t[t.REPORT=2]="REPORT",t[t.DASHBOARD=3]="DASHBOARD",t[t.VUE=4]="VUE",t[t.FREE_PAGE=5]="FREE_PAGE"})(ot||(ot={}));var ct;(function(t){t.TITLE="title",t.LINK="link",t.BUTTON="button",t.DIVIDER="divider",t.TEXT="text",t.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",t.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",t.BATCH_DELETE_LIST_BUTTON="list-page-btn-batch-delete",t.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",t.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",t.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",t.EXPORT_LIST_BUTTON="list-page-btn-export-list",t.LIST_SELECT_BUTTON="list-select-button",t.ORGANIZATION_SELECTION="organization-selection",t.FORM_SELECT_BUTTON="form-select-button",t.LIST_VIEW_SELECT="list-view-select",t.TEXT_OCR_BUTTON="text-ocr-button",t.INVOICE_CHECK_BUTTON="invoice-check-button",t.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",t.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",t.VARCHAR_COLUMN="varchar-column",t.TEXT_COLUMN="text-column",t.DECIMAL_COLUMN="decimal-column",t.TIMESCOPE_COLUMN="timescope-column",t.TIMESTAMP_COLUMN="timestamp-column",t.ARRAY_COLUMN="array-column",t.DEPARTMENT_COLUMN="department-column",t.AUTO_NUMBER_COLUMN="auto-number-column",t.FILE_COLUMN="file-column",t.IMAGE_COLUMN="image-column",t.PEOPLE_COLUMN="people-column",t.LOCATION_COLUMN="location-column",t.CUSTOM_COLUMN="custom-column",t.ORDER_COLUMN="order-column",t.OPERATION_COLUMN="operation-column",t.EMPLOYEE_COLUMN="employee-column",t.Approval_Status_Column="approval-status-column",t.ADDRESS="address",t.AMOUNT="amount",t.ATTACHMENT="attachment",t.AUTO_NUMBER="auto-number",t.CALC="calc",t.CHECKBOX="checkbox",t.DATE_PICKER="date-picker",t.DATE_RANGE="date-range",t.DEPARTMENT="department",t.EMPLOYEE="employee",t.IMAGE="image",t.INPUT="input",t.NUMBER="number",t.RADIO="radio",t.RICH_TEXT="rich-text",t.SCORE="score",t.SEARCH_DATE_RANGE="search-date-range",t.SEARCH_NUMBER_RANGE="search-number-range",t.SEARCH_INPUT="search-input",t.SELECT="select",t.SELECT_MULTIPLE="select-multiple",t.SELECT_RELATION="select-relation",t.VUE_FORM_ITEM="vue-form-item",t.TEXTAREA="textarea",t.EMAIL="email",t.FOOTER="footer",t.HEADER="header",t.ID_CARD="id-card",t.MOBILE="mobile",t.PHONE="phone",t.RADIO_IMAGE="radio-image",t.ELECTRONIC_SIGNATURE="electronic-signature",t.WPS="wps",t.CARD_GROUP="card-group",t.COL="col",t.GRID="grid",t.GRID_ROW="grid-row",t.GRID_TABLE_COLUMN="grid-table-column",t.GRID_LAYOUT_CONTAINER="grid-layout-container",t.ROW="row",t.TWO_COLUMNS="two-columns",t.SUBTABLE_COLUMN="subtable-column",t.SUBTABLE_ROW="subtable-row",t.TAB="tab",t.TAB_PANE="tab-pane",t.TOOLBOX="toolbox",t.DATA_VIEW="data-view",t.LIST_VIEW="list-view",t.ACTION_BAR="action-bar",t.SUBTABLE="subtable",t.GRID_TABLE="grid-table",t.SIMPLE_SEARCH="simple-search",t.PAGINATION="pagination",t.CHECKBOX_IMAGE="checkbox-image",t.DASHBOARD="dashboard",t.TREE="tree",t.EMPLOYEE2="employee2",t.DEPARTMENT2="department2",t.GRID_LAYOUT_WRAP="grid-layout-wrap",t.VUE_PAGE="vue-page"})(ct||(ct={}));var dt;(function(t){t.SAVE="save",t.DRAFT="draft",t.UNSUBMIT="unsubmit",t.AUDIT="audit",t.UNAUDIT="unaudit",t.CANCEL="cancel",t.FORM_SUBMIT="form_submit"})(dt||(dt={}));var Q;(function(t){t.VARCHAR="varchar",t.TEXT="text",t.ARRAY="array",t.ADDRESS="location",t.DECIMAL="decimal",t.DECIMAL_RANGE="decimal_range",t.TIMESTAMP="timestamp",t.EMPLOYEES="people",t.DEPARTMENTS="department",t.MONEY="money",t.TIMESCOPE="timescope",t.FILE="file",t.IMAGE="image",t.AUTO_NUMBER="auto_number",t.CALC="calc",t.LIST="list",t.JSON="json",t.ANY="ANY"})(Q||(Q={}));var ft;(function(t){t.YEAR="year",t.MONTH="month",t.DATE="date",t.DATEHOUR="datehour",t.DATEMIN="datemin",t.DATETIME="datetime"})(ft||(ft={}));var ht="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ar=ht+"0123456789";function x(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,e="",n=0;n<t;n++){var u=n===0?ht:ar,a=Math.random()*u.length;e+=u[parseInt(String(a),10)]}return e}function De(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,u=new Array(e);n<e;n++)u[n]=t[n];return u}function ir(t){if(Array.isArray(t))return De(t)}function rr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function se(t,e,n){return vt()?se=Reflect.construct:se=function(a,i,r){var l=[null];l.push.apply(l,i);var d=Function.bind.apply(a,l),c=new d;return r&&p(c,r.prototype),c},se.apply(null,arguments)}function Y(t){return Y=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Y(t)}function gt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function lr(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function sr(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function or(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function cr(t,e){return e&&(dr(e)==="object"||typeof e=="function")?e:rr(t)}function p(t,e){return p=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},p(t,e)}function yt(t){return ir(t)||sr(t)||fr(t)||or()}function dr(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function fr(t,e){if(!!t){if(typeof t=="string")return De(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return De(t,e)}}function be(t){var e=typeof Map=="function"?new Map:void 0;return be=function(u){if(u===null||!lr(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(u))return e.get(u);e.set(u,a)}function a(){return se(u,arguments,Y(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),p(a,u)},be(t)}function vt(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Et(t){var e=vt();return function(){var u=Y(t),a;if(e){var i=Y(this).constructor;a=Reflect.construct(u,arguments,i)}else a=u.apply(this,arguments);return cr(this,a)}}var we=console;function Se(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u,a=e.slice(1);(u=we).warn.apply(u,["\u{1F9D0} Driven Warning:"+e[0]].concat(yt(a)))}function Bt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u,a=e.slice(1);(u=we).log.apply(u,["\u{1F680} Driven Log:"+e[0]].concat(yt(a)))}function hr(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Ie=function(t){gt(n,t);var e=Et(n);function n(u){mt(this,n);var a;return a=e.call(this,u),a.name="\u{1F4A5} Driven Error",a.message=u?hr(u):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",a}return n}(be(Error)),mr=function(t){gt(n,t);var e=Et(n);function n(u){mt(this,n);var a;return a=e.call(this,u),a.name="\u{1F6A8} Driven Reference Error",a}return n}(Ie);function Re(t){throw new Ie(t)}function Ct(t){throw new mr(t)}function gr(t){we.error(new Ie(t))}var yr=Object.prototype.toString;function At(t,e){return yr.call(t)==="[object "+e+"]"}function vr(t){return At(t,"String")}function Er(t){return At(t,"Promise")}var Br=function(){function t(e){var n,u;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((u=(n=e.messages)!==null&&n!==void 0?n:this.getPreImport(e.locale))!==null&&u!==void 0?u:{}),e.variableRegExp&&(this.variableRegExp=e.variableRegExp),this.setLocale(e.locale)}return t.prototype.setLocale=function(e){var n=this;this.locale=e,this._messageCache.clear();var u=this.getMessageData();Er(u)?u.then(function(a){n._messageCache.clear(),n.messages[n.localeInMessageKey]=a}):this.messages[this.localeInMessageKey]=u},t.prototype.getMessageData=function(){var e=this._messages[this.localeInMessageKey];return typeof e=="function"?e():e},t.prototype.translate=function(e,n,u){var a=this.getMessage(e);return a?this.formatMessage(a,u):this.formatMessage(n,u)},t.prototype.getMessage=function(e){if(this._messageCache.has(e))return this._messageCache.get(e);var n=this.getPathArray(e),u=n.reduce(function(a,i,r,l){if(a!==void 0){var d=a[i];if(!(r===l.length-1&&!vr(d)))return d}},this.message);return this._messageCache.set(e,u),u},t.prototype.formatMessage=function(e,n){return n?e.replace(this.variableRegExp,function(u,a){var i=n[a];return i!==void 0?String(i):u}):e},t.prototype.getPreImport=function(e){var n;if(window.okI18nPreImport){var u=this.getLocaleInMessageKey(e);return window.okI18nPreImport.hasOwnProperty(u)?window.okI18nPreImport:(n={},n[u]=window.okI18nPreImport,n)}},t.prototype.getPathArray=function(e){return e.split(".")},t.prototype.getLocaleInMessageKey=function(e){return e.replace(/-/g,"")},Object.defineProperty(t.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){var e;return(e=this.messages[this.localeInMessageKey])!==null&&e!==void 0?e:{}},enumerable:!1,configurable:!0}),t}();function Cr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ft(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function Ar(t,e,n){return e&&Ft(t.prototype,e),n&&Ft(t,n),t}function Fr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=function(){function t(){Cr(this,t)}return Ar(t,null,[{key:"getMessage",value:function(n){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",u)}},{key:"resetI18n",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ur;return new Br({locale:n,messages:nr})}},{key:"setLocale",value:function(n){return this.$i18n.setLocale(n)}}]),t}();Fr(h,"$i18n",h.resetI18n());function Dr(t,e,n){var u=e.replace(/\[(\d)]/g,function(i,r){return"."+r}).split("."),a=!1;return u.reduce(function(i,r,l,d){var c=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,r)){Se("Can not set ".concat(e,"'s ").concat(r," property in current %o, Because there is no ").concat(r," property on the %o"),i,i);return}return l===d.length-1&&!Object.is(c[r],n)&&(c[r]=n,a=!0),c[r]}},t),a}var br=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},wr={exports:{}};(function(t){(function(e){var n=function(o,m,E){if(!c(m)||v(m)||F(m)||b(m)||d(m))return m;var w,S=0,q=0;if(g(m))for(w=[],q=m.length;S<q;S++)w.push(n(o,m[S],E));else{w={};for(var A in m)Object.prototype.hasOwnProperty.call(m,A)&&(w[o(A,E)]=n(o,m[A],E))}return w},u=function(o,m){m=m||{};var E=m.separator||"_",w=m.split||/(?=[A-Z])/;return o.split(w).join(E)},a=function(o){return B(o)?o:(o=o.replace(/[\-_\s]+(.)?/g,function(m,E){return E?E.toUpperCase():""}),o.substr(0,1).toLowerCase()+o.substr(1))},i=function(o){var m=a(o);return m.substr(0,1).toUpperCase()+m.substr(1)},r=function(o,m){return u(o,m).toLowerCase()},l=Object.prototype.toString,d=function(o){return typeof o=="function"},c=function(o){return o===Object(o)},g=function(o){return l.call(o)=="[object Array]"},v=function(o){return l.call(o)=="[object Date]"},F=function(o){return l.call(o)=="[object RegExp]"},b=function(o){return l.call(o)=="[object Boolean]"},B=function(o){return o=o-0,o===o},f=function(o,m){var E=m&&"process"in m?m.process:m;return typeof E!="function"?o:function(w,S){return E(w,o,S)}},C={camelize:a,decamelize:r,pascalize:i,depascalize:r,camelizeKeys:function(o,m){return n(f(a,m),o)},decamelizeKeys:function(o,m){return n(f(r,m),o,m)},pascalizeKeys:function(o,m){return n(f(i,m),o)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=C:e.humps=C})(br)})(wr);var Dt={};Object.defineProperty(Dt,"__esModule",{value:!0});function Me(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(e=>typeof e!="object"||e===null?e:Me(e));{const e={};for(const n in t){const u=t[n];e[n]=typeof u!="object"||u===null?u:Me(u)}return e}}var Sr=Dt.default=Me;function j(t){if(t!==void 0)return typeof t=="object"?Sr(t):t}function Ir(t){return Object.prototype.toString.call(t)==="[object Object]"}function Rr(t){return Array.isArray(t)}function Mr(t){return t.reduce(function(e,n){return e.includes(n)||e.push(n),e},[])}function _e(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,u=new Array(e);n<e;n++)u[n]=t[n];return u}function _r(t){if(Array.isArray(t))return _e(t)}function bt(t,e,n,u,a,i,r){try{var l=t[i](r),d=l.value}catch(c){n(c);return}l.done?e(d):Promise.resolve(d).then(u,a)}function $r(t){return function(){var e=this,n=arguments;return new Promise(function(u,a){var i=t.apply(e,n);function r(d){bt(i,u,a,r,l,"next",d)}function l(d){bt(i,u,a,r,l,"throw",d)}r(void 0)})}}function Lr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wt(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function qr(t,e,n){return e&&wt(t.prototype,e),n&&wt(t,n),t}function St(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pr(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Vr(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $e(t){return _r(t)||Pr(t)||xr(t)||Vr()}function xr(t,e){if(!!t){if(typeof t=="string")return _e(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _e(t,e)}}function jr(t,e){var n,u,a,i,r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(c){return function(g){return d([c,g])}}function d(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,u&&(a=c[0]&2?u.return:c[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,c[1])).done)return a;switch(u=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,u=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(g){c=[6,g],u=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var Or=function(){function t(){Lr(this,t),St(this,"_events",new Map),St(this,"debug",!1)}return qr(t,[{key:"emit",value:function(n){for(var u=arguments.length,a=new Array(u>1?u-1:0),i=1;i<u;i++)a[i-1]=arguments[i];var r=this;return $r(function(){var l,d,c,g,v,F,b,B,f,C,o,m;return jr(this,function(E){switch(E.label){case 0:if(l=r._events.get(n),d=[],!l)return[3,10];c=l.slice(),g=!0,v=!1,F=void 0,E.label=1;case 1:E.trys.push([1,8,9,10]),b=c[Symbol.iterator](),E.label=2;case 2:if(g=(B=b.next()).done)return[3,7];if(f=B.value,!l.includes(f))return[3,6];E.label=3;case 3:return E.trys.push([3,5,,6]),r.debug&&Bt.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(f.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+f.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"\u3002")].concat($e(a))),[4,f.apply(null,$e(a))];case 4:return C=E.sent(),r.debug&&Bt.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(f.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+f.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat($e(a),[C])),d.push(C),C===!1?[3,7]:[3,6];case 5:return o=E.sent(),gr(String(o)+":"+String(o.stack)),[3,6];case 6:return g=!0,[3,2];case 7:return[3,10];case 8:return m=E.sent(),v=!0,F=m,[3,10];case 9:try{!g&&b.return!=null&&b.return()}finally{if(v)throw F}return[7];case 10:return[2,d]}})})()}},{key:"on",value:function(n,u){if(this._events.has(n)){var a;(a=this._events.get(n))===null||a===void 0||a.push(u)}else this._events.set(n,[u])}},{key:"off",value:function(n,u){if(this._events.has(n)){var a=this._events.get(n),i=a==null?void 0:a.indexOf(u);a==null||a.splice(i,1)}}},{key:"delete",value:function(n){this._events.has(n)&&this._events.delete(n)}},{key:"clear",value:function(){this._events=new Map}}]),t}();function Ur(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function It(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function Nr(t,e,n){return e&&It(t.prototype,e),n&&It(t,n),t}function kr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Hr=[{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"}],Wr=function(){function t(){Ur(this,t)}return Nr(t,null,[{key:"getEventsFromKeys",value:function(n){var u=typeof n=="string"?[n]:n;return t.events.filter(function(a){return u.includes(a.key)})}},{key:"getEventsFromControl",value:function(n){var u=[],a=n.eventKeys;u=u.concat(t.events.filter(function(r){return a.includes(r.key)}));var i=n.customEvents.map(function(r){var l=r.key;return r.namespace!==void 0&&r.namespace!==null&&r.namespace!==""&&(l=r.namespace+":"+r.key),{key:l,code:r.key,name:r.name}});return u=u.concat(i),u}}]),t}();kr(Wr,"events",Hr);function oe(t,e){var n;(n=Object.getOwnPropertyDescriptors(t)[e])!=null&&n.enumerable&&Object.defineProperty(t,e,{enumerable:!1})}function Le(t,e,n){n==="Designer"&&(t.parent=e,oe(t,"parent"))}function Rt(t,e,n){t.forEach(u=>{Le(u,e,n)})}const Mt=Symbol("targetKey");function _t(t){var e;return(e=t[Mt])!=null?e:t}function $t(t,e,n){return Rt(t,e,n),new Proxy(t,{get(u,a,...i){return a===Mt?u:Reflect.get(u,a,...i)},set(u,a,i,...r){if(Rr(t)&&a==="length"&&i===t.length)return!0;const l=Reflect.set(u,a,i,...r);return Ir(i)&&Le(i,e,n),l}})}function W(t,e,n,u,a){const i=u!=null?u:t;let r=$t(_t(n!=null?n:[]),i,a);Object.defineProperty(t,e,{get(){return r},set(l){r=$t(_t(l),i,a)},enumerable:!0})}const Lt=[],qe=class{constructor(t){this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=t,this._initControls(t)}static staticGetRules(t,e){const n=qe.staticControlsRuntimeRules.get(t);let u=[];if(n){const a=new n(e);u=Array.from(a)}return u}registerControlConfig(t,e){return this.controlConfigMap.set(t,e),this}getControlConfig(t){return this.controlConfigMap.get(t)}static register(t,e){const{Designer:n,Runtime:u,Property:a}=t;(!n||!u||!n.__is_control__||!u.__is_control__)&&Re(`${t} is can't register as a Control`);const i=this.staticControls.findIndex(r=>r.Designer.controlType===n.controlType);return i>-1&&(Se(`The ${n.controlType} is repeat register, So it overwrites the one that was registered before.`),this.staticControls.splice(i,1)),this.staticRegisteredTypes.add(n.controlType),this.staticControls.push(t),a.mode=e,this}getControls(){return this._controls}register(t){t.__is_control__||Re(`${t.name} is not a Control`);const e=this._controls.findIndex(n=>n.controlType===t.controlType);return e>-1&&(Se(`The ${t.controlType} is repeat register, So it overwrites the one that was registered before.`),this._controls.splice(e,1)),this.registeredControlTypes.add(t.controlType),this._controls.push(t),this}isLayoutControl(t){return t.controlType===H.LAYOUT}isFormControl(t){return t.controlType===H.FORM}isListControl(t){return t.controlType===H.LIST}isColumnControl(t){return t.controlType===H.COLUMN}createControl(t,e){if(Array.isArray(t))return t.map(u=>this.createControl(u,e));if(t.children&&(t.children=t.children.map(u=>this.createControl(u,e))),this.isListControl(t)){const u=t.props;u.headers&&(u.headers=u.headers.map(a=>this.createControl(a,e))),u.footers&&(u.footers=u.footers.map(a=>{let i;return a&&(i=this.createControl(a,e)),i}))}const n=this.getControlFormType(t.type);if(n){let u=t;if(typeof e=="function"){const i=e(u);i&&(u=i)}let a;return n.mode==="Runtime"?(a=u,a.fieldType=n.controlFieldType,this._setParentPrototypeToSchema(a,this)):a=new n(u),a}else Re(`The constructor of ${t.type} could not be found, please confirm that the constructor has been registered`)}resetInstanceParent(t,e){delete t.parent,Object.defineProperty(t,"parent",{configurable:!0,get(){return e}}),oe(t,"parent")}_setParentPrototypeToSchema(t,e){e._type==="Runtime"&&(Object.defineProperty(t,"parent",{configurable:!0,get(){const n=t.id,u=e._controlParentIdMap,a=e.instanceMap;if(!u||!a)return;const i=u[n],r=a[n];if(!i&&!r)return;const l=r.findIndex(g=>g==t),d=a[i]||[];let c;return d.length!==r.length?c=d[0]:c=d[l],c}}),oe(t,"parent"))}createControlInstance(t,e){const n=this.getControlFormType(t);if(n)return new n(e)}getControlFormType(t){return this._controls.find(e=>e.controlType===t)}_initControls(t){this.constructor.staticControls.forEach(e=>{this.register(e[t]),qe.staticControlsRuntimeRules.set(e.Runtime.controlType,e.Property.RuntimeRules),e.Property.mode=t})}};let ee=qe;ee.staticControlsRuntimeRules=new Map,ee.staticControls=Lt,ee.staticRegisteredTypes=new Set(Lt.map(t=>t.Designer.controlType)),ee.staticRegisteredConfigs=new Map;class ${constructor(e){var n,u,a;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:"",this.aliasCode=e==null?void 0:e.aliasCode}}class Pe{constructor(e){var n,u;this.minWidth=(n=e==null?void 0:e.minWidth)!=null?n:150,this.maxWidth=e==null?void 0:e.maxWidth,this.flex=(u=e==null?void 0:e.flex)!=null?u:1}}class Ve{constructor(e){var n,u,a,i;this.rowHeightType=(n=e==null?void 0:e.rowHeightType)!=null?n:"fixed",this.minRows=(u=e==null?void 0:e.minRows)!=null?u:4,this.maxRows=(a=e==null?void 0:e.maxRows)!=null?a:20,this.fiexdRow=(i=e==null?void 0:e.fiexdRow)!=null?i:4}}class Kr{constructor(e){this.pc=new Ve(e==null?void 0:e.pc),this.mobile=new Ve(e==null?void 0:e.mobile)}}class ce extends Pe{constructor(e){var n,u;super(e),this.width=(n=e==null?void 0:e.width)!=null?n:240,this.widthType=(u=e==null?void 0:e.widthType)!=null?u:"auto"}}class zr{constructor(e){this.pc=new ce(e==null?void 0:e.pc),this.mobile=e!=null&&e.mobile?new ce(e==null?void 0:e.mobile):new ce({width:130,minWidth:180})}}class Tr{constructor(e){var n,u;this.type=(n=e==null?void 0:e.type)!=null?n:"firstThree",this.customOptions=(u=e==null?void 0:e.customOptions)!=null?u:[]}}class de{constructor(e){var n,u,a;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.formKey=(u=e==null?void 0:e.formKey)!=null?u:"",this.appId=(a=e==null?void 0:e.appId)!=null?a:""}}class Jr extends de{constructor(e){var n;super(e),this.primaryControlId=(n=e==null?void 0:e.primaryControlId)!=null?n:""}}class qt{constructor(e){var n;this.fieldCode=(n=e==null?void 0:e.fieldCode)!=null?n:""}}class Xr{constructor(e){var n,u,a,i;this.appId=(n=e==null?void 0:e.appId)!=null?n:"",this.formKey=(u=e==null?void 0:e.formKey)!=null?u:"",this.headers=(i=(a=e==null?void 0:e.headers)==null?void 0:a.map(r=>new qt(r)))!=null?i:[]}}class Pt{constructor(e){var n,u,a;this.fieldName=(n=e==null?void 0:e.fieldName)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:Q.VARCHAR}}class Vt extends de{constructor(e){var n,u,a,i;super(e),this.title=(n=e==null?void 0:e.title)!=null?n:"",this.svcCode=(u=e==null?void 0:e.svcCode)!=null?u:"",this.isOpenFilter=(a=e==null?void 0:e.isOpenFilter)!=null?a:!1,this.filters=(i=e==null?void 0:e.filters)!=null?i:[]}}class Gr{constructor(e){var n,u,a,i;this.type="sublist-page",this.formBind=new de(e==null?void 0:e.formBind),this.displayFields=(u=(n=e==null?void 0:e.displayFields)==null?void 0:n.map(r=>new Pt(r)))!=null?u:[],this.sublists=(i=(a=e==null?void 0:e.sublists)==null?void 0:a.map(r=>new Vt(r)))!=null?i:[]}}class xt{constructor(e){this.type=e==null?void 0:e.type,this.value=e==null?void 0:e.value,this.dataCode=e==null?void 0:e.dataCode}}class xe{constructor(e){var n,u,a;this.type=(n=e==null?void 0:e.type)!=null?n:"custom",this.value=(u=e==null?void 0:e.value)!=null?u:[],this.displayBos=(a=e==null?void 0:e.displayBos)!=null?a:[]}}class K{constructor(e){var n,u,a,i;this.type="conditions",this.id=(n=e==null?void 0:e.id)!=null?n:x(),this.ruleId=(u=e==null?void 0:e.ruleId)!=null?u:new Date().valueOf(),this.level=(a=e==null?void 0:e.level)!=null?a:0,this.value=(i=e==null?void 0:e.value)!=null?i:"and",this.children=[],Array.isArray(e==null?void 0:e.children)&&(e==null||e.children.map(r=>{var l,d;if(r.children!==void 0){const c=new K(r);(l=this.children)==null||l.push(c)}else{const c=new te(r);(d=this.children)==null||d.push(c)}}))}}class te{constructor(e){var n,u,a,i,r;this.type="condition",this.id=(n=e==null?void 0:e.id)!=null?n:x(),this.ruleId=(u=e==null?void 0:e.ruleId)!=null?u:new Date().valueOf(),this.symbol=(a=e==null?void 0:e.symbol)!=null?a:"",this.checked=(i=e==null?void 0:e.checked)!=null?i:!1,this.describe=(r=e==null?void 0:e.describe)!=null?r:"",this.leftVariableBo=new xt(e==null?void 0:e.leftVariableBo),this.rightVariableBo=new xe(e==null?void 0:e.rightVariableBo)}}class Zr{constructor(e){var n,u;this.aliasCode=(n=e==null?void 0:e.aliasCode)!=null?n:"",this.datasourceBind=new fe(e==null?void 0:e.datasourceBind),this.relationFields=(u=e==null?void 0:e.relationFields)!=null?u:[]}}class jt{constructor(e){var n,u,a,i;this.controlId=(n=e==null?void 0:e.controlId)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:"",this.propName=(i=e==null?void 0:e.propName)!=null?i:""}}class je{constructor(e){var n,u;this.type=(n=e==null?void 0:e.type)!=null?n:"FIELD",this.value=(u=e==null?void 0:e.value)!=null?u:"",this.fieldType=e==null?void 0:e.fieldType}}class Oe{constructor(e){var n,u;this.columnName=(n=e.columnName)!=null?n:"",this.desc=(u=e.desc)!=null?u:!1}}class Ot{constructor(e){var n,u,a;this.code=(n=e.code)!=null?n:"",this.value=(u=e.value)!=null?u:"",this.field_type=(a=e.field_type)!=null?a:Q.ANY}}class Qr{constructor(e){var n,u,a,i,r,l,d;this.id=(n=e.id)!=null?n:"",this.limit=(u=e.limit)!=null?u:20,this.formKey=(a=e.formKey)!=null?a:"",this.orders=(r=(i=e.orders)==null?void 0:i.map(c=>new Oe(c)))!=null?r:[],this.dataSet=(d=(l=e.dataSet)==null?void 0:l.map(c=>new Ot(c)))!=null?d:[]}}function Ue(t){var e,n,u,a,i,r;this.filters=(n=(e=t==null?void 0:t.filters)==null?void 0:e.map(l=>l.children!==void 0?new K(l):new te(l)))!=null?n:[],this.viewFilters=(a=(u=t==null?void 0:t.viewFilters)==null?void 0:u.map(l=>l.children!==void 0?new K(l):new te(l)))!=null?a:[],this.orders=(r=(i=t==null?void 0:t.orders)==null?void 0:i.map(l=>new Oe(l)))!=null?r:[]}class fe{constructor(e){var n,u,a,i,r,l,d;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.appId=(u=e==null?void 0:e.appId)!=null?u:"",this.valueFieldCode=(a=e==null?void 0:e.valueFieldCode)!=null?a:"",this.displayBoList=[],this.isOpenViewFilters=(i=e==null?void 0:e.isOpenViewFilters)!=null?i:0,Array.isArray(e==null?void 0:e.displayBoList)&&(e==null||e.displayBoList.map(c=>{var g;(g=this.displayBoList)==null||g.push(new je(c))})),this.keywordMapping=(r=e==null?void 0:e.keywordMapping)!=null?r:"",this.showOrder=(l=e==null?void 0:e.showOrder)!=null?l:!0,this.svcCode=(d=e==null?void 0:e.svcCode)!=null?d:"",Ue.call(this,e)}}class Yr{constructor(e){var n,u;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.displayBoList=(u=e==null?void 0:e.displayBoList)!=null?u:[]}}class pr{constructor(e){var n,u,a,i,r,l,d,c,g,v;this.code=(n=e==null?void 0:e.code)!=null?n:"view",this.color=(u=e==null?void 0:e.color)!=null?u:"primary",this.command=(a=e==null?void 0:e.command)!=null?a:"view",this.confirmMessage=(i=e==null?void 0:e.confirmMessage)!=null?i:void 0,this.defaultState=(r=e==null?void 0:e.defaultState)!=null?r:"default",this.formKey=(l=e==null?void 0:e.formKey)!=null?l:void 0,this.formType=e==null?void 0:e.formType,this.icon=(d=e==null?void 0:e.icon)!=null?d:"iconliulan1",this.needConfirm=(c=e==null?void 0:e.needConfirm)!=null?c:!1,this.openType=(g=e==null?void 0:e.openType)!=null?g:"modal",this.priorityProcess=(v=e==null?void 0:e.priorityProcess)!=null?v:!0}}class Ne{constructor(e){var n,u,a,i;this.name=(n=e==null?void 0:e.name)!=null?n:"",this.key=(u=e==null?void 0:e.key)!=null?u:"",this.value=(i=(a=e==null?void 0:e.value)==null?void 0:a.map(r=>new je(r)))!=null?i:[]}}class Ut extends fe{constructor(e){var n,u;super(e),this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(a=>new Ne(a)))!=null?u:[]}}class el extends fe{constructor(e){var n,u,a;super(e),this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(i=>new Ne(i)))!=null?u:[],this.formCode=(a=e==null?void 0:e.formCode)!=null?a:""}}class tl extends Ut{constructor(e){var n;super(e),this.rootNode=new xe(e==null?void 0:e.rootNode),this.filterCode=(n=e==null?void 0:e.filterCode)!=null?n:""}}class Nt{constructor(e){var n,u,a,i;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.appId=(u=e==null?void 0:e.appId)!=null?u:"",this.fillList=(i=(a=e==null?void 0:e.fillList)==null?void 0:a.map(r=>new jt(r)))!=null?i:[]}}class nl extends Nt{constructor(e){super(e),Ue.call(this,e)}}class ul extends Nt{constructor(e){var n,u;super(e),this.mode=(n=e==null?void 0:e.mode)!=null?n:"current",this.multiple=(u=e==null?void 0:e.multiple)!=null?u:!1}}class al{constructor(e){var n,u,a;this.zh=(n=e==null?void 0:e.zh)!=null?n:"",this.en=(u=e==null?void 0:e.en)!=null?u:"",this.ja=(a=e==null?void 0:e.ja)!=null?a:""}}class il{constructor(e){var n,u,a;this.stencilName=(n=e==null?void 0:e.stencilName)!=null?n:"",this.expression=(u=e==null?void 0:e.expression)!=null?u:"",this.errMessage=(a=e==null?void 0:e.errMessage)!=null?a:""}}class ke{constructor(e){var n,u,a;this.id=(n=e==null?void 0:e.id)!=null?n:x(8),this.label=(u=e==null?void 0:e.label)!=null?u:"",this.value=(a=e==null?void 0:e.value)!=null?a:this.label}}class kt extends ke{constructor(e){var n,u;super(e),this.image=(n=e==null?void 0:e.image)!=null?n:"",this.type=(u=e==null?void 0:e.type)!=null?u:"src"}}function rl(t){var e;return(e=t==null?void 0:t.map(n=>new ke(n)))!=null?e:[]}function ll(t){var e;return(e=t==null?void 0:t.map(n=>new kt(n)))!=null?e:[]}class he{}class sl extends he{constructor(e){super(),this.amount=new $(e==null?void 0:e.amount),this.currency=new $(e==null?void 0:e.currency)}}class ol{constructor(e){var n,u;this.amount=(n=e==null?void 0:e.amount)!=null?n:"",this.currency=(u=e==null?void 0:e.currency)!=null?u:He.CNY}}class cl extends he{constructor(e){super(),this.min=new $(e==null?void 0:e.min),this.max=new $(e==null?void 0:e.max)}}class dl{constructor(e){var n,u;this.min=(n=e==null?void 0:e.min)!=null?n:"",this.max=(u=e==null?void 0:e.max)!=null?u:""}}class fl{constructor(e){var n,u,a,i,r,l;this.city=(n=e==null?void 0:e.city)!=null?n:"",this.cityDisplay=(u=e==null?void 0:e.cityDisplay)!=null?u:"",this.district=(a=e==null?void 0:e.district)!=null?a:"",this.districtDisplay=(i=e==null?void 0:e.districtDisplay)!=null?i:"",this.province=(r=e==null?void 0:e.province)!=null?r:"",this.provinceDisplay=(l=e==null?void 0:e.provinceDisplay)!=null?l:""}}class hl extends he{constructor(e){super(),this.result=new $(e==null?void 0:e.result),this.unit=new $(e==null?void 0:e.unit)}}class ml{constructor(e){var n,u;this.result=(n=e==null?void 0:e.result)!=null?n:0,this.unit=(u=e==null?void 0:e.unit)!=null?u:""}}var He=(t=>(t.CNY="CNY",t.USD="USD",t.JPY="JPY",t.EUR="EUR",t.INR="INR",t.IDR="IDR",t.BRL="BRL",t.AED="AED",t.AUD="AUD",t.CAD="CAD",t.EGP="EGP",t.GBP="GBP",t.ZAR="ZAR",t.KRW="KRW",t.MAD="MAD",t.MXN="MXN",t.MYR="MYR",t.PHP="PHP",t.PLN="PLN",t.RUB="RUB",t.SGD="SGD",t.THB="THB",t.TRY="TRY",t.TWD="TWD",t.VND="VND",t.HKD="HKD",t.IEP="IEP",t))(He||{}),Ht=(t=>(t.DEFAULT_DISPLAY="defaultDisplay",t.REQUIRED="required",t.IS_HIDE="isHide",t.IS_SHOW_UNIT="isShowUnit",t.IMD_SEARCH="immediatelySearch",t.MULTIPLE="multiple",t.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",t.CAPTION="caption",t.IS_HIDE_CAPTION="isHideCaption",t.DEFAULT_SHOW_OPTIONS="defaultShowOptions",t.CAN_SEARCH="canSearch",t.CAN_CHECK="canCheck",t.CAN_EDIT="canEdit",t.CAN_DELETE="canDelete",t.SHOW_UPPER_CASE="showUpperCase",t.MICROMETER="micrometer",t.PRECISION="precision",t.PERCENTAGE="percentage",t.OPTIONAL_LEVEL="optionalLevel",t.CONTAINS_SUB_NODE="containsSubNode",t.DEFAULT_COLLAPSE="defaultCollapse",t.CAN_VIEW_FORM="canViewForm",t.VIEW_FORM_MODEL_TYPE="viewFormModelType",t.SERVER_PAGINATION="serverPagination",t.IS_SHOW_CAPTION_TIP="isShowCaptionTip",t.ENCRYPTED="encrypted",t.IS_INLINE_EDIT="isInlineEdit",t.REVISIONS_MODE="revisionsMode",t.ALLOW_COPY_OPTIONS="allowCopyOptions",t.IS_PASTE="isPaste",t.SORTABLE="sortable",t))(Ht||{}),We=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT",t))(We||{});class gl{constructor(e){var n,u,a,i,r,l;this.isShow=(n=e==null?void 0:e.isShow)!=null?n:!0,this.content=(u=e==null?void 0:e.content)!=null?u:"",this.formKey=(a=e==null?void 0:e.formKey)!=null?a:"",this.openType=(i=e==null?void 0:e.openType)!=null?i:"modal",this.type=(r=e==null?void 0:e.type)!=null?r:"",this.priorityProcess=(l=e==null?void 0:e.priorityProcess)!=null?l:!1}}class yl{constructor(e){var n,u,a,i;this.id=(n=e==null?void 0:e.id)!=null?n:x(8),this.title=(u=e==null?void 0:e.title)!=null?u:"",this.headers=(i=(a=e==null?void 0:e.headers)==null?void 0:a.map(r=>new qt(r)))!=null?i:[],Ue.call(this,e)}}class vl{constructor(e){var n,u;this.key=(n=e.key)!=null?n:x(8),this.caption=(u=e.caption)!=null?u:""}}class Wt{constructor(e){var n,u,a,i;this.width=(n=e==null?void 0:e.width)!=null?n:"",this.height=(u=e==null?void 0:e.height)!=null?u:"",this.widthConfig=(a=e==null?void 0:e.widthConfig)!=null?a:"fill",this.heightConfig=(i=e==null?void 0:e.heightConfig)!=null?i:"fill"}}class El{constructor(e){var n,u;this.optCode=(n=e==null?void 0:e.optCode)!=null?n:"",this.optType=(u=e==null?void 0:e.optType)!=null?u:""}}class Bl{constructor(e){var n,u,a,i,r;this.id=(n=e==null?void 0:e.id)!=null?n:x(),this.name=(u=e==null?void 0:e.name)!=null?u:"",this.color=(a=e==null?void 0:e.color)!=null?a:"theme",this.filters=(r=(i=e==null?void 0:e.filters)==null?void 0:i.map(l=>l.children!==void 0?new K(l):new te(l)))!=null?r:[]}}class Cl{constructor(e){var n,u,a;this.id=(n=e.id)!=null?n:x(),this.script=(u=e.script)!=null?u:"",this.color=(a=e.color)!=null?a:"theme"}}class me{constructor(e){this.isHide={type:"boolean"}}}class Ke extends Array{constructor(e){super()}}class O{constructor(e,n=""){var u,a;this.isHide=(u=e==null?void 0:e.isHide)!=null?u:!1,this.style=new Wt(e==null?void 0:e.style),this.caption=(a=e==null?void 0:e.caption)!=null?a:n}}O.Rules=me,O.RuntimeRules=Ke;function L(){return L=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},L.apply(this,arguments)}function Al(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function ze(t){return ze=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ze(t)}function ge(t,e){return ge=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},ge(t,e)}function Fl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function ye(t,e,n){return Fl()?ye=Reflect.construct:ye=function(a,i,r){var l=[null];l.push.apply(l,i);var d=Function.bind.apply(a,l),c=new d;return r&&ge(c,r.prototype),c},ye.apply(null,arguments)}function Dl(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Te(t){var e=typeof Map=="function"?new Map:void 0;return Te=function(u){if(u===null||!Dl(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(u))return e.get(u);e.set(u,a)}function a(){return ye(u,arguments,ze(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ge(a,u)},Te(t)}var bl=/%[sdj%]/g,Kt=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Kt=function(e,n){typeof console!="undefined"&&console.warn&&n.every(function(u){return typeof u=="string"})&&console.warn(e,n)});function Je(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var u=n.field;e[u]=e[u]||[],e[u].push(n)}),e}function _(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u=1,a=e[0],i=e.length;if(typeof a=="function")return a.apply(null,e.slice(1));if(typeof a=="string"){var r=String(a).replace(bl,function(l){if(l==="%%")return"%";if(u>=i)return l;switch(l){case"%s":return String(e[u++]);case"%d":return Number(e[u++]);case"%j":try{return JSON.stringify(e[u++])}catch(d){return"[Circular]"}break;default:return l}});return r}return a}function wl(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function R(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||wl(e)&&typeof t=="string"&&!t)}function Sl(t,e,n){var u=[],a=0,i=t.length;function r(l){u.push.apply(u,l),a++,a===i&&n(u)}t.forEach(function(l){e(l,r)})}function zt(t,e,n){var u=0,a=t.length;function i(r){if(r&&r.length){n(r);return}var l=u;u=u+1,l<a?e(t[l],i):n([])}i([])}function Il(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n])}),e}var Tt=function(t){Al(e,t);function e(n,u){var a;return a=t.call(this,"Async Validation Error")||this,a.errors=n,a.fields=u,a}return e}(Te(Error));function Rl(t,e,n,u){if(e.first){var a=new Promise(function(v,F){var b=function(C){return u(C),C.length?F(new Tt(C,Je(C))):v()},B=Il(t);zt(B,n,b)});return a.catch(function(v){return v}),a}var i=e.firstFields||[];i===!0&&(i=Object.keys(t));var r=Object.keys(t),l=r.length,d=0,c=[],g=new Promise(function(v,F){var b=function(f){if(c.push.apply(c,f),d++,d===l)return u(c),c.length?F(new Tt(c,Je(c))):v()};r.length||(u(c),v()),r.forEach(function(B){var f=t[B];i.indexOf(B)!==-1?zt(f,n,b):Sl(f,n,b)})});return g.catch(function(v){return v}),g}function Jt(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:typeof e=="function"?e():e,field:e.field||t.fullField}}}function Xt(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var u=e[n];typeof u=="object"&&typeof t[n]=="object"?t[n]=L(L({},t[n]),u):t[n]=u}}return t}function Gt(t,e,n,u,a,i){t.required&&(!n.hasOwnProperty(t.field)||R(e,i||t.type))&&u.push(_(a.messages.required,t.fullField))}function Ml(t,e,n,u,a){(/^\s+$/.test(e)||e==="")&&u.push(_(a.messages.whitespace,t.fullField))}var Xe={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ne={integer:function(e){return ne.number(e)&&parseInt(e,10)===e},float:function(e){return ne.number(e)&&!ne.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(n){return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!ne.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(Xe.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(Xe.url)},hex:function(e){return typeof e=="string"&&!!e.match(Xe.hex)}};function _l(t,e,n,u,a){if(t.required&&e===void 0){Gt(t,e,n,u,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],r=t.type;i.indexOf(r)>-1?ne[r](e)||u.push(_(a.messages.types[r],t.fullField,t.type)):r&&typeof e!==t.type&&u.push(_(a.messages.types[r],t.fullField,t.type))}function $l(t,e,n,u,a){var i=typeof t.len=="number",r=typeof t.min=="number",l=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=e,g=null,v=typeof e=="number",F=typeof e=="string",b=Array.isArray(e);if(v?g="number":F?g="string":b&&(g="array"),!g)return!1;b&&(c=e.length),F&&(c=e.replace(d,"_").length),i?c!==t.len&&u.push(_(a.messages[g].len,t.fullField,t.len)):r&&!l&&c<t.min?u.push(_(a.messages[g].min,t.fullField,t.min)):l&&!r&&c>t.max?u.push(_(a.messages[g].max,t.fullField,t.max)):r&&l&&(c<t.min||c>t.max)&&u.push(_(a.messages[g].range,t.fullField,t.min,t.max))}var z="enum";function Ll(t,e,n,u,a){t[z]=Array.isArray(t[z])?t[z]:[],t[z].indexOf(e)===-1&&u.push(_(a.messages[z],t.fullField,t[z].join(", ")))}function ql(t,e,n,u,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||u.push(_(a.messages.pattern.mismatch,t.fullField,e,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(e)||u.push(_(a.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var y={required:Gt,whitespace:Ml,type:_l,range:$l,enum:Ll,pattern:ql};function Pl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e,"string")&&!t.required)return n();y.required(t,e,u,i,a,"string"),R(e,"string")||(y.type(t,e,u,i,a),y.range(t,e,u,i,a),y.pattern(t,e,u,i,a),t.whitespace===!0&&y.whitespace(t,e,u,i,a))}n(i)}function Vl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y.type(t,e,u,i,a)}n(i)}function xl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e===""&&(e=void 0),R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function jl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y.type(t,e,u,i,a)}n(i)}function Ol(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),R(e)||y.type(t,e,u,i,a)}n(i)}function Ul(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function Nl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function kl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e==null&&!t.required)return n();y.required(t,e,u,i,a,"array"),e!=null&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function Hl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y.type(t,e,u,i,a)}n(i)}var Wl="enum";function Kl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y[Wl](t,e,u,i,a)}n(i)}function zl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e,"string")&&!t.required)return n();y.required(t,e,u,i,a),R(e,"string")||y.pattern(t,e,u,i,a)}n(i)}function Tl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e,"date")&&!t.required)return n();if(y.required(t,e,u,i,a),!R(e,"date")){var l;e instanceof Date?l=e:l=new Date(e),y.type(t,l,u,i,a),l&&y.range(t,l.getTime(),u,i,a)}}n(i)}function Jl(t,e,n,u,a){var i=[],r=Array.isArray(e)?"array":typeof e;y.required(t,e,u,i,a,r),n(i)}function Ge(t,e,n,u,a){var i=t.type,r=[],l=t.required||!t.required&&u.hasOwnProperty(t.field);if(l){if(R(e,i)&&!t.required)return n();y.required(t,e,u,r,a,i),R(e,i)||y.type(t,e,u,r,a)}n(r)}function Xl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a)}n(i)}var ue={string:Pl,method:Vl,number:xl,boolean:jl,regexp:Ol,integer:Ul,float:Nl,array:kl,object:Hl,enum:Kl,pattern:zl,date:Tl,url:Ge,hex:Ge,email:Ge,required:Jl,any:Xl};function Ze(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Qe=Ze();function N(t){this.rules=null,this._messages=Qe,this.define(t)}N.prototype={messages:function(e){return e&&(this._messages=Xt(Ze(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var n,u;for(n in e)e.hasOwnProperty(n)&&(u=e[n],this.rules[n]=Array.isArray(u)?u:[u])},validate:function(e,n,u){var a=this;n===void 0&&(n={}),u===void 0&&(u=function(){});var i=e,r=n,l=u;if(typeof r=="function"&&(l=r,r={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(),Promise.resolve();function d(f){var C,o=[],m={};function E(w){if(Array.isArray(w)){var S;o=(S=o).concat.apply(S,w)}else o.push(w)}for(C=0;C<f.length;C++)E(f[C]);o.length?m=Je(o):(o=null,m=null),l(o,m)}if(r.messages){var c=this.messages();c===Qe&&(c=Ze()),Xt(c,r.messages),r.messages=c}else r.messages=this.messages();var g,v,F={},b=r.keys||Object.keys(this.rules);b.forEach(function(f){g=a.rules[f],v=i[f],g.forEach(function(C){var o=C;typeof o.transform=="function"&&(i===e&&(i=L({},i)),v=i[f]=o.transform(v)),typeof o=="function"?o={validator:o}:o=L({},o),o.validator=a.getValidationMethod(o),o.field=f,o.fullField=o.fullField||f,o.type=a.getType(o),o.validator&&(F[f]=F[f]||[],F[f].push({rule:o,value:v,source:i,field:f}))})});var B={};return Rl(F,r,function(f,C){var o=f.rule,m=(o.type==="object"||o.type==="array")&&(typeof o.fields=="object"||typeof o.defaultField=="object");m=m&&(o.required||!o.required&&f.value),o.field=f.field;function E(q,A){return L(L({},A),{},{fullField:o.fullField+"."+q})}function w(q){q===void 0&&(q=[]);var A=q;if(Array.isArray(A)||(A=[A]),!r.suppressWarning&&A.length&&N.warning("async-validator:",A),A.length&&o.message!==void 0&&(A=[].concat(o.message)),A=A.map(Jt(o)),r.first&&A.length)return B[o.field]=1,C(A);if(!m)C(A);else{if(o.required&&!f.value)return o.message!==void 0?A=[].concat(o.message).map(Jt(o)):r.error&&(A=[r.error(o,_(r.messages.required,o.field))]),C(A);var P={};if(o.defaultField)for(var un in f.value)f.value.hasOwnProperty(un)&&(P[un]=o.defaultField);P=L(L({},P),f.rule.fields);for(var T in P)if(P.hasOwnProperty(T)){var os=Array.isArray(P[T])?P[T]:[P[T]];P[T]=os.map(E.bind(null,T))}var an=new N(P);an.messages(r.messages),f.rule.options&&(f.rule.options.messages=r.messages,f.rule.options.error=r.error),an.validate(f.value,f.rule.options||r,function(it){var J=[];A&&A.length&&J.push.apply(J,A),it&&it.length&&J.push.apply(J,it),C(J.length?J:null)})}}var S;o.asyncValidator?S=o.asyncValidator(o,f.value,w,f.source,r):o.validator&&(S=o.validator(o,f.value,w,f.source,r),S===!0?w():S===!1?w(o.message||o.field+" fails"):S instanceof Array?w(S):S instanceof Error&&w(S.message)),S&&S.then&&S.then(function(){return w()},function(q){return w(q)})},function(f){d(f)})},getType:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type="pattern"),typeof e.validator!="function"&&e.type&&!ue.hasOwnProperty(e.type))throw new Error(_("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if(typeof e.validator=="function")return e.validator;var n=Object.keys(e),u=n.indexOf("message");return u!==-1&&n.splice(u,1),n.length===1&&n[0]==="required"?ue.required:ue[this.getType(e)]||!1}},N.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ue[e]=n},N.warning=Kt,N.messages=Qe,N.validators=ue;const Gl={required:"%s \u5FC5\u586B",maxLength:"%s \u8D85\u51FA\u6700\u5927\u957F\u5EA6\u9650\u5236",minLength:"%s \u5C0F\u4E8E\u6700\u5C0F\u957F\u5EA6\u9650\u5236",string:{range:"%s \u4E0D\u5728\u6307\u5B9A\u957F\u5EA6\u5185"}};function Zt(t,e={}){const n=new N(t);return n.messages(Object.assign(Gl,e)),n}const Qt=new Or;class M{constructor(e){var F,b,B,f;this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=pt,this.removeSetting=Yt,this._callControlHooks("preInstance",e);const{controlName:n,controlIcon:u,controlType:a,controlFieldType:i,controlEventKeys:r,controlCustomEvents:l,name:d,setting:c,slots:g,slotPosition:v}=new.target;n&&u&&a||Ct(`The ${d} controlName,controlIcon,controlType is not define`),this.id=(F=e==null?void 0:e.id)!=null?F:x(10),this.name=n,this.icon=u,this.type=(b=e==null?void 0:e.type)!=null?b:a,this.props=new O(e==null?void 0:e.props,new.target.controlName),this.controlType=(B=e==null?void 0:e.controlType)!=null?B:"base",this.setting=j(c),this.fieldType=(f=e==null?void 0:e.fieldType)!=null?f:i,this.eventKeys=j(r),this.customEvents=j(l),this.slots=j(g),this.slotPosition=j(v),Promise.resolve().then(()=>{this._callControlHooks("postInstance",e)})}get rules(){const e=this.props.constructor.Rules;return e?new e(this.props):{}}_callControlHooks(...e){const[n,...u]=e;return Qt.emit(n,this,...u)}preUpdate(e,n){this._callControlHooks("preUpdateProps",e,n)}postUpdate(e,n){this._callControlHooks("postUpdateProps",e,n)}updateProps(e,n){this.preUpdate(e,n),Dr(this.props,e,n),this.postUpdate(e,n)}preValidate(){return re(this,null,function*(){const e=X({},this.rules),n=yield this._callControlHooks("preValidate",e),u=n[n.length-1];return u===!1?void 0:u})}validate(e,n){return re(this,null,function*(){const u=yield this.preValidate(),a=u!==void 0?u:X({},this.rules);Array.isArray(n)&&n.forEach(r=>{a.hasOwnProperty(r)&&delete a[r]});const i=Zt(a,e);try{return yield i.validate(this.props),!0}catch(r){throw r.control||(r.control=this),r}})}toDataBindModel(e=null){const n=this.fieldType,u=this.id,a=this.type,{dataBind:i,datasourceBind:r,optionConfig:l,caption:d,required:c,maxLength:g,options:v,encrypted:F,encryptedMode:b}=this.props;if(!n&&!i&&!r)return;const B={parentId:e,fieldType:n,controlId:u,caption:d,type:a,props:{}};switch(i&&(B.dataBind=i),l){case"datasource":case void 0:r&&(B.datasourceBind=r);break;case"custom":B.props.options=v;break}return c!==void 0&&(B.required=c),g!==void 0&&(B.maxLength=g),F!==void 0&&(B.encrypted=F),b!==void 0&&(B.encryptedMode=b),B}preToSchema(){this._callControlHooks("preToSchema",this)}toSchema(){return this.preToSchema(),{id:this.id,type:this.type,props:j(this.props),fieldType:this.fieldType,controlType:this.controlType}}static updateBasicControl(e,n){e==="setting"&&(n.add&&this.setting.push(...n.add),n.remove&&this.removeSettingItem(n.remove),n.update)}}M.mode="Designer",M.controlName="\u63A7\u4EF6",M.controlIcon="icon",M.controlType="control",M.controlEventKeys=[],M.controlCustomEvents=[],M.setting=[],M.__is_control__=!0,M.removeSettingItem=Yt,M.updateSettingItem=pt;function Yt(t){(Array.isArray(t)?t:[t]).forEach(n=>{var i,r,l;const u=typeof n!="string",a=(i=this.setting)==null?void 0:i.findIndex(d=>d.key===(u?n.key:n));a!==-1&&(u?this.setting[a].showItems=(r=this.setting[a].showItems)==null?void 0:r.filter(d=>!n.hideItems.includes(d)):this.setting.splice(a,1),u&&!((l=this.setting[a].showItems)!=null&&l.length)&&this.setting.splice(a,1))})}function pt(t,e){(typeof t=="string"?[t]:t).forEach(u=>{var i;const a=this.setting.find(r=>r.key===u);a&&(typeof e=="boolean"?a.visible=e:typeof e=="object"&&(((i=e.type)!=null?i:"replace")==="replace"?a.showItems=e.showItems:a.showItems.push(...e.showItems)))})}class U{constructor(e){var r,l,d,c,g;this.customEvents=[],this.parent=null;const{controlType:n,controlFieldType:u,name:a,controlCustomEvents:i}=new.target;n||Ct(`The ${a} controlType is not define`),this.id=(r=e==null?void 0:e.id)!=null?r:x(10),this.type=(l=e==null?void 0:e.type)!=null?l:n,this.props=new O(e==null?void 0:e.props),this.customEvents=i,this.controlType=(d=e==null?void 0:e.controlType)!=null?d:"base",this.fieldType=(c=e==null?void 0:e.fieldType)!=null?c:u,this.pageStatus=(g=e==null?void 0:e.pageStatus)!=null?g:We.UNKNOWN}get rules(){const e=this.props.constructor.RuntimeRules;if(e){const n=new e(this.props);return Array.from(n)}return[]}}U.mode="Runtime",U.controlType="control",U.__is_control__=!0,U.controlCustomEvents=[];function Ye(t){t.hasOwnProperty("optionConfig")||(this.optionConfig={type:"any"}),t.hasOwnProperty("options")||(this.options={type:"any"}),t.hasOwnProperty("datasourceBind")||(this.datasourceBind={type:"any"}),t.hasOwnProperty("options")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="custom")?this.options=[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{label:{type:"string",required:!0,message:h.getMessage("pleaseEnterLabel")},value:{type:"string",required:!0,message:h.getMessage("pleaseEnterValue")}}}},{type:"array",validator(e,n,u){n.length===0&&u(h.getMessage("optionIsRequired")),u()}},{type:"array",validator(e,n,u){const a=n.map(r=>r.value),i=Mr(a);a.length!==i.length?u(h.getMessage("optionIdIsRepeat")):u()},message:h.getMessage("optionIdIsRepeat")}]:t.hasOwnProperty("datasourceBind")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="datasource")&&(this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterSvcCode")},displayBoList:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",validator(e,n,u){n.length===0&&u(h.getMessage("pleaseBindAtLeastOneDisplayValue")),u()},message:h.getMessage("pleaseBindAtLeastOneDisplayValue")}],orders:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:h.getMessage("isNotBoolean")}}}}]}}])}function Zl(t,e,n=!1){this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:h.getMessage(n?"pleaseEnterDataCodeInDataSetting":"pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:h.getMessage(n?"pleaseEnterValueFieldCodeInDataSetting":"pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:h.getMessage(n?"pleaseEnterSvcCodeInDataSetting":"pleaseEnterSvcCode")},attributes:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{name:{type:"string",required:!0,message:h.getMessage("isNotString")},key:{type:"string",required:!0,message:h.getMessage("isNotString")},value:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",validator(u,a,i){a.length===0&&i(h.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")),i()},message:h.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")}]}}}],orders:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:h.getMessage("isNotBoolean")}}}}]}}]}function en(t){return(t==null?void 0:t.dataCode)!==void 0&&(t==null?void 0:t.fieldCode)!==void 0}class pe extends me{constructor(e){super(e),this.dataBind={},this.caption={type:"string",required:!0,message:h.getMessage("pleaseEnterCaption")},this.isHideCaption={type:"boolean"},this.labelPosition={type:"enum",enum:["top","left"]},this.defaultState={type:"enum",enum:["default","readonly"]},this.required={type:"boolean"},this.captionTip={type:"string",required:!1,message:h.getMessage("pleaseEnterCaptionTip")};const n={fieldCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")}};if(en(e.dataBind))this.dataBind={type:"object",required:!0,fields:j(n),message:h.getMessage("pleaseEnterFieldCode")};else{let u={type:"object",required:!0,fields:{},message:h.getMessage("pleaseEnterFieldCode")};Object.keys(e.dataBind).forEach(a=>{u.fields[a]={type:"object",required:!0,fields:j(n),message:h.getMessage("pleaseEnterFieldCode")}}),this.dataBind=u}e.isShowCaptionTip&&(this.captionTip.required=!0)}}class tn extends Ke{constructor(e){super(e);const n=e.isHide?!1:e.required;n&&this.push({type:"string",required:n,message:e.requiredMessage!==""?e.requiredMessage:h.getMessage("runtimeRequired",{caption:e.caption})})}}class ae extends O{constructor(e){var n,u,a,i,r,l,d,c,g,v;super(e),this.caption=(n=e==null?void 0:e.caption)!=null?n:"",this.isHideCaption=(u=e==null?void 0:e.isHideCaption)!=null?u:!1,this.isShowCaptionTip=(a=e==null?void 0:e.isShowCaptionTip)!=null?a:!1,this.captionTip=(i=e==null?void 0:e.captionTip)!=null?i:"",this.defaultState=(r=e==null?void 0:e.defaultState)!=null?r:"default",this.labelPosition=(l=e==null?void 0:e.labelPosition)!=null?l:"top",this.placeholder=(d=e==null?void 0:e.placeholder)!=null?d:"",this.required=(c=e==null?void 0:e.required)!=null?c:!1,this.requiredMessage=(g=e==null?void 0:e.requiredMessage)!=null?g:"",this.dataBind=new $(e==null?void 0:e.dataBind),this.defaultValue=(v=e==null?void 0:e.defaultValue)!=null?v:""}}ae.Rules=pe,ae.RuntimeRules=tn;class Ql extends pe{constructor(e){super(e),this.optionConfig={type:"enum",enum:["custom","datasource"],message:h.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:h.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")}],Ye.call(this,e)}}class nn extends M{constructor(e){super(e),this.controlType="form",this.props=new ae(e==null?void 0:e.props)}}nn.controlEventKeys=["on_change","on_focus","on_blur"];class Yl extends U{constructor(e){super(e),this.controlType="form",this.props=new ae(e==null?void 0:e.props)}}class ie extends O{constructor(e){super(e)}}const pl=1e4;class k extends M{constructor(e){super(e),this.controlType="layout";const{excludes:n,childrenMaxLength:u}=new.target;this.props=new ie(e==null?void 0:e.props),W(this,"children",e==null?void 0:e.children,void 0,"Designer"),this.excludes=j(n),this.childrenMaxLength=u}judgeExcludesChildren(e){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(e)}judgeJoinChildren(e){const n=this.judgeExcludesChildren(e);return n&&this.childrenMaxLength>this.children.length}validate(e,n){return re(this,null,function*(){return yield rt(k.prototype,this,"validate").call(this,e,n),yield Promise.all(this.children.map(u=>u.validate(e,n))),!0})}toDataBindModel(e=null){const n=super.toDataBindModel(),u=n?[n]:[];return this.children.reduce((a,i)=>{const r=i.toDataBindModel(e);if(Array.isArray(r)){const l=r.filter(d=>!!d);return[...a,...l]}return r&&a.push(r),a},u)}toSchema(){const e=super.toSchema(),n=this.children.map(u=>u.toSchema());return Be(X({},e),{children:n})}}k.excludes=!1,k.childrenMaxLength=pl;class et extends U{constructor(e){super(e),this.controlType="layout",this.props=new ie(e==null?void 0:e.props),W(this,"children",e==null?void 0:e.children,void 0,"Runtime")}}class tt extends O{constructor(e,n,u){var a,i,r,l;super(n),W(this,"headers",n==null?void 0:n.headers,e,u),W(this,"footers",n==null?void 0:n.footers,e),this.pageIndex=(a=n==null?void 0:n.pageIndex)!=null?a:1,this.pageSize=(i=n==null?void 0:n.pageSize)!=null?i:20,this.pageSizeOptions=(r=n==null?void 0:n.pageSizeOptions)!=null?r:[20],this.totalCount=(l=n==null?void 0:n.totalCount)!=null?l:0}}class ve extends M{constructor(e){super(e),this.controlType="list",this.props=new tt(this,e==null?void 0:e.props,"Designer")}validate(e,n){return re(this,null,function*(){return yield rt(ve.prototype,this,"validate").call(this,e),yield Promise.all(this.props.headers.map(u=>u.validate(e,n))),!0})}toDataBindModel(){const e=super.toDataBindModel(),n=e?[e]:[],u=this.id;return this.props.headers.reduce((a,i)=>{const r=i.toDataBindModel(u);if(Array.isArray(r)){const l=r.filter(d=>!!d);return[...a,...l]}return r&&a.push(r),a},n)}toSchema(){var a,i;const e=super.toSchema(),n=this.props.headers.map(r=>r.toSchema()),u=(i=(a=this.props)==null?void 0:a.footers)==null?void 0:i.map(r=>{if(r)return r.toSchema()});return Be(X({},e),{props:Be(X({},this.props),{headers:n,footers:u})})}}ve.controlFieldType=Q.LIST;class es extends U{constructor(e){super(e),this.controlType="list",this.props=new tt(this,e==null?void 0:e.props,"Runtime"),W(this,"children",e==null?void 0:e.children,void 0,"Runtime")}get length(){return this.children.length}}class nt extends me{constructor(e){super(e),this.caption={type:"string",required:!0,message:h.getMessage("pleaseEnterCaption")},this.width={type:"number",required:!1,message:h.getMessage("pleaseEnterColumnWidth")},this.width.required=e.widthType==="px"}}class Ee extends O{constructor(e){var n,u,a,i,r;super(e),this.width=(n=e==null?void 0:e.width)!=null?n:150,this.widthType=(e==null?void 0:e.widthType)||"auto",this.caption=(u=e==null?void 0:e.caption)!=null?u:"",this.fixed=(a=e==null?void 0:e.fixed)!=null?a:"none",this.autoWidth=new Pe(e==null?void 0:e.autoWidth),this.dataBind=new $(e==null?void 0:e.dataBind),this.sort=(i=e==null?void 0:e.sort)!=null?i:!0,this.align=e==null?void 0:e.align,this.colSpan=e==null?void 0:e.colSpan,this.autoHeight=(r=e==null?void 0:e.autoHeight)!=null?r:!1}}Ee.Rules=nt;class ts extends nt{constructor(e){super(e),this.optionConfig={type:"enum",enum:["custom","datasource","none"],message:h.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:h.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")}],Ye.call(this,e)}}class ns extends M{constructor(e){super(e),this.controlType="column",this.props=new Ee(e==null?void 0:e.props)}}class us extends U{constructor(e){super(e),this.controlType="column",this.props=new Ee(e==null?void 0:e.props)}}class ut extends ie{constructor(e){super(e),this.dataBind=new $(e==null?void 0:e.dataBind)}}class as extends k{constructor(e){super(e),this.controlType="search",this.props=new ut(e==null?void 0:e.props)}}class is extends et{constructor(e){super(e),this.controlType="search",this.props=new ut(e==null?void 0:e.props)}}class at extends ie{constructor(e){super(e)}}class rs extends k{constructor(e){super(e),this.controlType="wrap",this.props=new at(e==null?void 0:e.props)}}class ls extends et{constructor(e){super(e),this.controlType="wrap",this.props=new at(e==null?void 0:e.props)}}function ss(t){t.hasOwnProperty("linkOperationOption")&&t.hasOwnProperty("showLinkOperation")&&t.showLinkOperation&&(this.linkOperationOption=[{type:"object",fields:{formKey:{type:"string",required:!0,message:h.getMessage("pleaseEnterForm")}}}])}s.AMOUNT_TYPE=He,s.AddressValue=fl,s.AmountDataBind=sl,s.AmountValue=ol,s.AutoWidth=Pe,s.BaseControlProperty=ae,s.BaseControlPropertyRules=pe,s.BaseControlPropertyRuntimeRules=tn,s.BaseStyle=Wt,s.COMMON_SETTING_TYPE=Ht,s.CalcDataBind=hl,s.CalcValue=ml,s.ColumnControlProperty=Ee,s.ColumnControlPropertyRules=nt,s.ColumnOptionAndDataSourcePropertyRules=ts,s.CustomAttributeItem=Ne,s.CustomPermissionItem=vl,s.DataBind=$,s.DataSourceBind=fe,s.DataSourceDataSetValue=Ot,s.DataSourceOrderItem=Oe,s.DataSourceParamItem=Qr,s.DataStorageDoc=Tr,s.DesignerColumnControl=ns,s.DesignerControl=M,s.DesignerFormControl=nn,s.DesignerLayoutControl=k,s.DesignerListControl=ve,s.DesignerSearchControl=as,s.DesignerWrapControl=rs,s.DisplayBoListItem=je,s.FieldBindItem=Pt,s.FieldFilterCondition=te,s.FieldFilterConditions=K,s.FillBackBind=ul,s.FillPayloadBind=nl,s.FormBind=de,s.FormSelectBind=Jr,s.ImageOptionSetting=kt,s.JoinRelation=Zr,s.Language=al,s.LayoutControlProperty=ie,s.LeftVariable=xt,s.LinkOperationOption=pr,s.ListBind=Xr,s.ListControlProperty=tt,s.MetaAutoWidth=zr,s.MetaRowHeight=Kr,s.MetaWidth=ce,s.MultistageFillingItem=jt,s.ObjectDataBind=he,s.OperationItem=gl,s.OptObject=El,s.OptionAndDataSourcePropertyRules=Ql,s.OptionSetting=ke,s.OrganizationDataSourceBind=el,s.PAGE_STATUS=We,s.Property=O,s.PropertyRules=me,s.PropertyRuntimeRules=Ke,s.RangeDataBind=cl,s.RangeDateValue=dl,s.RegisterControls=ee,s.RegularRules=il,s.RightVariable=xe,s.RowHeight=Ve,s.RowStyleRule=Bl,s.RowStyleRuleScript=Cl,s.RuntimeColumnControl=us,s.RuntimeControl=U,s.RuntimeFormControl=Yl,s.RuntimeLayoutControl=et,s.RuntimeListControl=es,s.RuntimeSearchControl=is,s.RuntimeWrapControl=ls,s.SearchControlProperty=ut,s.SelectedContentConfig=Yr,s.SubListItem=Vt,s.SubListPageConfig=Gr,s.SuperDataSourceBind=Ut,s.TreeDataSourceBind=tl,s.ViewOperationItem=yl,s.WrapControlProperty=at,s.controlHooksEmitter=Qt,s.createValidator=Zt,s.defineArrayParent=Rt,s.defineControlArrayToProperty=W,s.defineParent=Le,s.initImageOptions=ll,s.initLinkOperationRules=ss,s.initOptionAndDataSourceRules=Ye,s.initOptions=rl,s.initSuperDataSourceRules=Zl,s.isDataBind=en,s.setPropertyDontEnum=oe,Object.defineProperty(s,"__esModule",{value:!0})});
|
|
1
|
+
var cs=Object.defineProperty,ds=Object.defineProperties;var fs=Object.getOwnPropertyDescriptors;var rn=Object.getOwnPropertySymbols,hs=Object.getPrototypeOf,ms=Object.prototype.hasOwnProperty,gs=Object.prototype.propertyIsEnumerable,ys=Reflect.get;var ln=(s,D,I)=>D in s?cs(s,D,{enumerable:!0,configurable:!0,writable:!0,value:I}):s[D]=I,W=(s,D)=>{for(var I in D||(D={}))ms.call(D,I)&&ln(s,I,D[I]);if(rn)for(var I of rn(D))gs.call(D,I)&&ln(s,I,D[I]);return s},re=(s,D)=>ds(s,fs(D));var rt=(s,D,I)=>ys(hs(s),I,D);var le=(s,D,I)=>new Promise((Ce,se)=>{var Ae=V=>{try{G(I.next(V))}catch(Z){se(Z)}},Fe=V=>{try{G(I.throw(V))}catch(Z){se(Z)}},G=V=>V.done?Ce(V.value):Promise.resolve(V.value).then(Ae,Fe);G((I=I.apply(s,D)).next())});(function(s,D){typeof exports=="object"&&typeof module!="undefined"?D(exports):typeof define=="function"&&define.amd?define(["exports"],D):(s=typeof globalThis!="undefined"?globalThis:s||self,D(s.modelDrivenCore={}))})(this,function(s){"use strict";var D="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",I="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",Ce="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",se="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",Ae="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",Fe="{caption}\u5FC5\u586B",G="\u8BF7\u8F93\u5165\u6807\u9898",V="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Z="\u8BF7\u8F93\u5165\u884C\u6807\u9898",sn="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",on="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",cn="\u8BF7\u7ED1\u5B9A\u8868\u5355",dn="\u8BF7\u7ED1\u5B9A\u5217\u8868",fn="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",hn="\u8BF7\u8F93\u5165\u663E\u793A\u503C",mn="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",gn="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",yn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",vn="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",En="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",Bn="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Cn="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",An="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",Fn="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Dn="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",bn="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",Sn="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",wn="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",In="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",Rn="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Mn="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",_n="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",$n="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Ln="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",qn="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Pn="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Vn="\u8BF7\u7ED1\u5B9A\u670D\u52A1",xn="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",jn="\u8BF7\u9009\u62E9\u7701",On="\u8BF7\u9009\u62E9\u5E02",Un="\u8BF7\u9009\u62E9\u533A",Nn="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",kn="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Hn="\u8BF7\u8F93\u5165\u5217\u5BBD",Wn="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Kn="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",zn="\u8BF7\u9009\u62E9\u63A7\u4EF6",Tn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",Jn="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Xn="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Gn="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Zn="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Qn="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Yn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",pn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",eu="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",tu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",nu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",uu="\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",iu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ru="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",lu="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",su="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",ou="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",cu="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",du="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",fu="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",hu="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",mu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",gu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",yu="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",vu="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",Eu="\u8BF7\u9009\u62E9\u6392\u5E8F\u5B57\u6BB5",Bu={isNotNumber:D,isNotString:I,isNotObject:Ce,isNotArray:se,isNotBoolean:Ae,runtimeRequired:Fe,pleaseEnterCaption:G,pleaseEnterCaptionTip:V,pleaseEnterRowCaption:Z,pleaseEnterPlaceholder:sn,pleaseEnterFieldCode:on,pleaseEnterForm:cn,pleaseEnterList:dn,pleaseEnterProcess:fn,pleaseEnterLabel:hn,pleaseEnterValue:mn,bizKeyNotBindFiled:gn,pleaseSelectOneField:yn,pleaseEnterNumberRange:vn,pleaseEnterAValueGreaterThanMin:En,pleaseEnterAValueLessThanMax:Bn,numberRangeSetError:Cn,stringRangeError:An,attachmentMaxSize:Fn,pleaseEnterTotalScoreSetting:Dn,theTotalScoreMustNotBeLessThan1:bn,scoreDefaultValueRange:Sn,attachmentLimitError:wn,PleaseReselectTheOptionalQuantity:In,TheMaximumLengthIsGreaterThanTheMinimumLength:Rn,TheMinimumLengthIsGreaterThanTheMaximumLength:Mn,PleaseSelectTheCorrectOptionSettings:_n,optionIdIsRepeat:$n,optionIsRequired:Ln,pleaseEnterDataCode:qn,pleaseEnterValueFieldCode:Pn,pleaseEnterSvcCode:Vn,pleaseBindAtLeastOneDisplayValue:xn,pleaseSelectProvince:jn,pleaseSelectCity:On,pleaseSelectDistrict:Un,limitRowsCannotBeLessThan0:Nn,TheNumberOfRowsCannotBeLessThanMinRows:kn,pleaseEnterColumnWidth:Hn,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Wn,pleaseCompleteAllRulesAndConditions:Kn,pleaseSelectControl:zn,pleaseSelectAtLeastOneColumn:Tn,pleaseSelectFillBackMode:Jn,pleaseSelectDashboard:Xn,rootNodeIsRequired:Gn,theViewNameCannotBeEmpty:Zn,pleaseSelectOcrType:Qn,pleaseSelectAtLeastOneFieldToFillIn:Yn,pleaseChooseAtLeastOne:pn,pleaseEnterButtonContent:eu,pleaseEnterDataCodeInDataSetting:tu,pleaseEnterValueFieldCodeInDataSetting:nu,pleaseEnterSvcCodeInDataSetting:uu,pleaseBindAtLeastOneDisplayValueInDataSetting:au,rootNodeIsRequiredInDataSetting:iu,pleaseEnterMaxHeight:ru,pleaseEnter:lu,pleaseEnterWatermark:su,pleaseEnterFileName:ou,pleaseUploadAtLeastOnePrintTemplate:cu,pleaseAssignBusiness:du,pleaseAssignExternal:fu,pleaseEnterAliasCode:hu,pleaseSelectDataCode:mu,pleaseSelectSvcCode:gu,pleaseSelectJoinFieldCode:yu,pleaseSelectMainFieldCode:vu,pleaseSelectSortFieldCode:Eu},Cu="Please enter a number",Au="Please enter a string",Fu="Please enter an object",Du="Please enter an array",bu="Please enter a boolean",Su="{caption} Required",wu="Please enter the title",Iu="Please enter the bubble prompt",Ru="Please enter the row title",Mu="Please enter the prompt text",_u="Please bind data items",$u="Please bind the form",Lu="Please bind the list",qu="Please bind the process",Pu="Please enter the displayed value",Vu="Please enter the stored value",xu="The document number is not bound to the data item",ju="Please select at least one display field",Ou="Please enter a value greater than or equal to {min} and less than or equal to {max}",Uu="Please enter a value greater than or equal to {min}",Nu="Please enter a value less than or equal to {max}",ku="The value range is set incorrectly",Hu="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",Wu="The attachment size must be between 0MB and 1000MB",Ku="Please fill in the total score setting",zu="The total score cannot be less than 1",Tu="The default value must be between {min} and {max}",Ju="The number of attachments uploaded must be between {min} and {max}",Xu="Please re-select the optional quantity",Gu="The maximum length of the control must be greater than the minimum length",Zu="The minimum length of the control must be less than the maximum length",Qu="Please select the correct option setting",Yu="Option ID cannot be repeated",pu="Please enter at least one option",ea="Please bind the data source",ta="Please bind the stored value",na="Please bind the service",ua="At least one display value must be bound",aa="Please select a province",ia="Please select a city",ra="Please select a district",la="The minimum number of lines to fill in cannot be less than 0",sa="The number of rows cannot be less than {min} rows",oa="Please enter the column width",ca="Please set the logical relationship of all rule conditions",da="Please complete all rules and conditions",fa="please select control",ha="Please select the dashboard",ma="View name cannot be empty",ga="Please select recognition type",ya="Please select at least one field to fill in",va="Please select at least one",Ea="Please enter the button title",Ba="Please bind the business model in the data settings",Ca="Please bind storage values in data settings",Aa="Please bind the service in the data settings",Fa="Please bind at least one display value in the data settings",Da="Please select the root node in the data settings",ba="Please enter the maximum height",Sa="The input content cannot be empty",wa="Watermark cannot be empty",Ia="File name cannot be empty",Ra="Please upload at least one printing template!\uFF01",Ma="Please select a specific business department",_a="Please select a specified external organization",$a="Please enter a sub table alias",La="Please select the associated table to set the business model",qa="Please select the association table to set the binding service",Pa="Select associated sub table fields",Va="Please select the associated main table field",xa="Please select the sort field",ja={isNotNumber:Cu,isNotString:Au,isNotObject:Fu,isNotArray:Du,isNotBoolean:bu,runtimeRequired:Su,pleaseEnterCaption:wu,pleaseEnterCaptionTip:Iu,pleaseEnterRowCaption:Ru,pleaseEnterPlaceholder:Mu,pleaseEnterFieldCode:_u,pleaseEnterForm:$u,pleaseEnterList:Lu,pleaseEnterProcess:qu,pleaseEnterLabel:Pu,pleaseEnterValue:Vu,bizKeyNotBindFiled:xu,pleaseSelectOneField:ju,pleaseEnterNumberRange:Ou,pleaseEnterAValueGreaterThanMin:Uu,pleaseEnterAValueLessThanMax:Nu,numberRangeSetError:ku,stringRangeError:Hu,attachmentMaxSize:Wu,pleaseEnterTotalScoreSetting:Ku,theTotalScoreMustNotBeLessThan1:zu,scoreDefaultValueRange:Tu,attachmentLimitError:Ju,PleaseReselectTheOptionalQuantity:Xu,TheMaximumLengthIsGreaterThanTheMinimumLength:Gu,TheMinimumLengthIsGreaterThanTheMaximumLength:Zu,PleaseSelectTheCorrectOptionSettings:Qu,optionIdIsRepeat:Yu,optionIsRequired:pu,pleaseEnterDataCode:ea,pleaseEnterValueFieldCode:ta,pleaseEnterSvcCode:na,pleaseBindAtLeastOneDisplayValue:ua,pleaseSelectProvince:aa,pleaseSelectCity:ia,pleaseSelectDistrict:ra,limitRowsCannotBeLessThan0:la,TheNumberOfRowsCannotBeLessThanMinRows:sa,pleaseEnterColumnWidth:oa,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ca,pleaseCompleteAllRulesAndConditions:da,pleaseSelectControl:fa,pleaseSelectDashboard:ha,theViewNameCannotBeEmpty:ma,pleaseSelectOcrType:ga,pleaseSelectAtLeastOneFieldToFillIn:ya,pleaseChooseAtLeastOne:va,pleaseEnterButtonContent:Ea,pleaseEnterDataCodeInDataSetting:Ba,pleaseEnterValueFieldCodeInDataSetting:Ca,pleaseEnterSvcCodeInDataSetting:Aa,pleaseBindAtLeastOneDisplayValueInDataSetting:Fa,rootNodeIsRequiredInDataSetting:Da,pleaseEnterMaxHeight:ba,pleaseEnter:Sa,pleaseEnterWatermark:wa,pleaseEnterFileName:Ia,pleaseUploadAtLeastOnePrintTemplate:Ra,pleaseAssignBusiness:Ma,pleaseAssignExternal:_a,pleaseEnterAliasCode:$a,pleaseSelectDataCode:La,pleaseSelectSvcCode:qa,pleaseSelectJoinFieldCode:Pa,pleaseSelectMainFieldCode:Va,pleaseSelectSortFieldCode:xa},Oa="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ua="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Na="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ka="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ha="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Wa="{caption}\u5FC5\u9808",Ka="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",za="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ta="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ja="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Xa="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ga="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Za="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Qa="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ya="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",pa="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ei="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",ti="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ni="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ui="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ai="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ii="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",ri="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",li="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",si="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",oi="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",ci="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",di="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",fi="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",hi="\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",mi="\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",gi="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",yi="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",vi="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Ei="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Bi="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ci="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ai="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",Fi="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Di="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",bi="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Si="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",wi="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ii="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ri="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Mi="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",_i="please select control",$i="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Li="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",qi="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Pi="\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",Vi="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",xi="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ji="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Oi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Ui="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Ni="\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",ki="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Hi="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Wi="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Ki="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",zi="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Ti="\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",Ji="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Xi="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Gi="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Zi="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",Qi="\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",Yi="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",pi="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",er="\u30BD\u30FC\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",tr={isNotNumber:Oa,isNotString:Ua,isNotObject:Na,isNotArray:ka,isNotBoolean:Ha,runtimeRequired:Wa,pleaseEnterCaption:Ka,pleaseEnterCaptionTip:za,pleaseEnterRowCaption:Ta,pleaseEnterPlaceholder:Ja,pleaseEnterFieldCode:Xa,pleaseEnterForm:Ga,pleaseEnterList:Za,pleaseEnterProcess:Qa,pleaseEnterLabel:Ya,pleaseEnterValue:pa,bizKeyNotBindFiled:ei,pleaseSelectOneField:ti,pleaseEnterNumberRange:ni,pleaseEnterAValueGreaterThanMin:ui,pleaseEnterAValueLessThanMax:ai,numberRangeSetError:ii,stringRangeError:ri,attachmentMaxSize:li,pleaseEnterTotalScoreSetting:si,theTotalScoreMustNotBeLessThan1:oi,scoreDefaultValueRange:ci,attachmentLimitError:di,PleaseReselectTheOptionalQuantity:fi,TheMaximumLengthIsGreaterThanTheMinimumLength:hi,TheMinimumLengthIsGreaterThanTheMaximumLength:mi,PleaseSelectTheCorrectOptionSettings:gi,optionIdIsRepeat:yi,optionIsRequired:vi,pleaseEnterDataCode:Ei,pleaseEnterValueFieldCode:Bi,pleaseEnterSvcCode:Ci,pleaseBindAtLeastOneDisplayValue:Ai,pleaseSelectProvince:Fi,pleaseSelectCity:Di,pleaseSelectDistrict:bi,limitRowsCannotBeLessThan0:Si,TheNumberOfRowsCannotBeLessThanMinRows:wi,pleaseEnterColumnWidth:Ii,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Ri,pleaseCompleteAllRulesAndConditions:Mi,pleaseSelectControl:_i,pleaseSelectDashboard:$i,theViewNameCannotBeEmpty:Li,pleaseSelectOcrType:qi,pleaseSelectAtLeastOneFieldToFillIn:Pi,pleaseChooseAtLeastOne:Vi,pleaseEnterButtonContent:xi,pleaseEnterDataCodeInDataSetting:ji,pleaseEnterValueFieldCodeInDataSetting:Oi,pleaseEnterSvcCodeInDataSetting:Ui,pleaseBindAtLeastOneDisplayValueInDataSetting:Ni,rootNodeIsRequiredInDataSetting:ki,pleaseEnterMaxHeight:Hi,pleaseEnter:Wi,pleaseEnterWatermark:Ki,pleaseEnterFileName:zi,pleaseUploadAtLeastOnePrintTemplate:Ti,pleaseAssignBusiness:Ji,pleaseAssignExternal:Xi,pleaseEnterAliasCode:Gi,pleaseSelectDataCode:Zi,pleaseSelectSvcCode:Qi,pleaseSelectJoinFieldCode:Yi,pleaseSelectMainFieldCode:pi,pleaseSelectSortFieldCode:er},nr={zhCN:Bu,enUS:ja,jaJP:tr},lt;(function(t){t.Number="Number",t.Operator="Operator",t.VariableInMainTable="VariableInMainTable",t.VariableInCurrentSubTable="VariableInCurrentSubTable",t.VariableInOtherSubTable="VariableInOtherSubTable",t.UndefinedVariable="UndefinedVariable"})(lt||(lt={}));var st;(function(t){t.SUM="SUM",t.AVG="AVG",t.MAX="MAX",t.MIN="MIN"})(st||(st={}));var ur="zh-CN",K;(function(t){t.BASE="base",t.FORM="form",t.LAYOUT="layout",t.WRAP="wrap",t.COLUMN="column",t.LIST="list",t.SEARCH="search"})(K||(K={}));var ot;(function(t){t[t.FORM=0]="FORM",t[t.LIST=1]="LIST",t[t.REPORT=2]="REPORT",t[t.DASHBOARD=3]="DASHBOARD",t[t.VUE=4]="VUE",t[t.FREE_PAGE=5]="FREE_PAGE"})(ot||(ot={}));var ct;(function(t){t.TITLE="title",t.LINK="link",t.BUTTON="button",t.DIVIDER="divider",t.TEXT="text",t.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",t.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",t.BATCH_DELETE_LIST_BUTTON="list-page-btn-batch-delete",t.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",t.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",t.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",t.EXPORT_LIST_BUTTON="list-page-btn-export-list",t.LIST_SELECT_BUTTON="list-select-button",t.ORGANIZATION_SELECTION="organization-selection",t.FORM_SELECT_BUTTON="form-select-button",t.LIST_VIEW_SELECT="list-view-select",t.TEXT_OCR_BUTTON="text-ocr-button",t.INVOICE_CHECK_BUTTON="invoice-check-button",t.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",t.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",t.VARCHAR_COLUMN="varchar-column",t.TEXT_COLUMN="text-column",t.DECIMAL_COLUMN="decimal-column",t.TIMESCOPE_COLUMN="timescope-column",t.TIMESTAMP_COLUMN="timestamp-column",t.ARRAY_COLUMN="array-column",t.DEPARTMENT_COLUMN="department-column",t.AUTO_NUMBER_COLUMN="auto-number-column",t.FILE_COLUMN="file-column",t.IMAGE_COLUMN="image-column",t.PEOPLE_COLUMN="people-column",t.LOCATION_COLUMN="location-column",t.CUSTOM_COLUMN="custom-column",t.ORDER_COLUMN="order-column",t.OPERATION_COLUMN="operation-column",t.OPERATION_BUTTON="operation-button",t.EMPLOYEE_COLUMN="employee-column",t.Approval_Status_Column="approval-status-column",t.ADDRESS="address",t.AMOUNT="amount",t.ATTACHMENT="attachment",t.AUTO_NUMBER="auto-number",t.CALC="calc",t.CHECKBOX="checkbox",t.DATE_PICKER="date-picker",t.DATE_RANGE="date-range",t.DEPARTMENT="department",t.EMPLOYEE="employee",t.IMAGE="image",t.INPUT="input",t.NUMBER="number",t.RADIO="radio",t.RICH_TEXT="rich-text",t.SCORE="score",t.SEARCH_DATE_RANGE="search-date-range",t.SEARCH_NUMBER_RANGE="search-number-range",t.SEARCH_INPUT="search-input",t.SELECT="select",t.SELECT_MULTIPLE="select-multiple",t.SELECT_RELATION="select-relation",t.VUE_FORM_ITEM="vue-form-item",t.TEXTAREA="textarea",t.EMAIL="email",t.FOOTER="footer",t.HEADER="header",t.ID_CARD="id-card",t.MOBILE="mobile",t.PHONE="phone",t.RADIO_IMAGE="radio-image",t.ELECTRONIC_SIGNATURE="electronic-signature",t.WPS="wps",t.CARD_GROUP="card-group",t.COL="col",t.GRID="grid",t.GRID_ROW="grid-row",t.GRID_TABLE_COLUMN="grid-table-column",t.GRID_LAYOUT_CONTAINER="grid-layout-container",t.ROW="row",t.TWO_COLUMNS="two-columns",t.SUBTABLE_COLUMN="subtable-column",t.SUBTABLE_ROW="subtable-row",t.TAB="tab",t.TAB_PANE="tab-pane",t.TOOLBOX="toolbox",t.DATA_VIEW="data-view",t.LIST_VIEW="list-view",t.ACTION_BAR="action-bar",t.SUBTABLE="subtable",t.GRID_TABLE="grid-table",t.SIMPLE_SEARCH="simple-search",t.PAGINATION="pagination",t.CHECKBOX_IMAGE="checkbox-image",t.DASHBOARD="dashboard",t.TREE="tree",t.EMPLOYEE2="employee2",t.DEPARTMENT2="department2",t.GRID_LAYOUT_WRAP="grid-layout-wrap",t.VUE_PAGE="vue-page"})(ct||(ct={}));var dt;(function(t){t.SAVE="save",t.DRAFT="draft",t.UNSUBMIT="unsubmit",t.AUDIT="audit",t.UNAUDIT="unaudit",t.CANCEL="cancel",t.FORM_SUBMIT="form_submit"})(dt||(dt={}));var Q;(function(t){t.VARCHAR="varchar",t.TEXT="text",t.ARRAY="array",t.ADDRESS="location",t.DECIMAL="decimal",t.DECIMAL_RANGE="decimal_range",t.TIMESTAMP="timestamp",t.EMPLOYEES="people",t.DEPARTMENTS="department",t.MONEY="money",t.TIMESCOPE="timescope",t.FILE="file",t.IMAGE="image",t.AUTO_NUMBER="auto_number",t.CALC="calc",t.LIST="list",t.JSON="json",t.ANY="ANY"})(Q||(Q={}));var ft;(function(t){t.YEAR="year",t.MONTH="month",t.DATE="date",t.DATEHOUR="datehour",t.DATEMIN="datemin",t.DATETIME="datetime"})(ft||(ft={}));var ht="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ar=ht+"0123456789";function x(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,e="",n=0;n<t;n++){var u=n===0?ht:ar,a=Math.random()*u.length;e+=u[parseInt(String(a),10)]}return e}function De(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,u=new Array(e);n<e;n++)u[n]=t[n];return u}function ir(t){if(Array.isArray(t))return De(t)}function rr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oe(t,e,n){return vt()?oe=Reflect.construct:oe=function(a,i,r){var l=[null];l.push.apply(l,i);var d=Function.bind.apply(a,l),c=new d;return r&&p(c,r.prototype),c},oe.apply(null,arguments)}function Y(t){return Y=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Y(t)}function gt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function lr(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function sr(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function or(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function cr(t,e){return e&&(dr(e)==="object"||typeof e=="function")?e:rr(t)}function p(t,e){return p=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},p(t,e)}function yt(t){return ir(t)||sr(t)||fr(t)||or()}function dr(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function fr(t,e){if(!!t){if(typeof t=="string")return De(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return De(t,e)}}function be(t){var e=typeof Map=="function"?new Map:void 0;return be=function(u){if(u===null||!lr(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(u))return e.get(u);e.set(u,a)}function a(){return oe(u,arguments,Y(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),p(a,u)},be(t)}function vt(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Et(t){var e=vt();return function(){var u=Y(t),a;if(e){var i=Y(this).constructor;a=Reflect.construct(u,arguments,i)}else a=u.apply(this,arguments);return cr(this,a)}}var Se=console;function we(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u,a=e.slice(1);(u=Se).warn.apply(u,["\u{1F9D0} Driven Warning:"+e[0]].concat(yt(a)))}function Bt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u,a=e.slice(1);(u=Se).log.apply(u,["\u{1F680} Driven Log:"+e[0]].concat(yt(a)))}function hr(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Ie=function(t){gt(n,t);var e=Et(n);function n(u){mt(this,n);var a;return a=e.call(this,u),a.name="\u{1F4A5} Driven Error",a.message=u?hr(u):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",a}return n}(be(Error)),mr=function(t){gt(n,t);var e=Et(n);function n(u){mt(this,n);var a;return a=e.call(this,u),a.name="\u{1F6A8} Driven Reference Error",a}return n}(Ie);function Re(t){throw new Ie(t)}function Ct(t){throw new mr(t)}function gr(t){Se.error(new Ie(t))}var yr=Object.prototype.toString;function At(t,e){return yr.call(t)==="[object "+e+"]"}function vr(t){return At(t,"String")}function Er(t){return At(t,"Promise")}var Br=function(){function t(e){var n,u;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((u=(n=e.messages)!==null&&n!==void 0?n:this.getPreImport(e.locale))!==null&&u!==void 0?u:{}),e.variableRegExp&&(this.variableRegExp=e.variableRegExp),this.setLocale(e.locale)}return t.prototype.setLocale=function(e){var n=this;this.locale=e,this._messageCache.clear();var u=this.getMessageData();Er(u)?u.then(function(a){n._messageCache.clear(),n.messages[n.localeInMessageKey]=a}):this.messages[this.localeInMessageKey]=u},t.prototype.getMessageData=function(){var e=this._messages[this.localeInMessageKey];return typeof e=="function"?e():e},t.prototype.translate=function(e,n,u){var a=this.getMessage(e);return a?this.formatMessage(a,u):this.formatMessage(n,u)},t.prototype.getMessage=function(e){if(this._messageCache.has(e))return this._messageCache.get(e);var n=this.getPathArray(e),u=n.reduce(function(a,i,r,l){if(a!==void 0){var d=a[i];if(!(r===l.length-1&&!vr(d)))return d}},this.message);return this._messageCache.set(e,u),u},t.prototype.formatMessage=function(e,n){return n?e.replace(this.variableRegExp,function(u,a){var i=n[a];return i!==void 0?String(i):u}):e},t.prototype.getPreImport=function(e){var n;if(window.okI18nPreImport){var u=this.getLocaleInMessageKey(e);return window.okI18nPreImport.hasOwnProperty(u)?window.okI18nPreImport:(n={},n[u]=window.okI18nPreImport,n)}},t.prototype.getPathArray=function(e){return e.split(".")},t.prototype.getLocaleInMessageKey=function(e){return e.replace(/-/g,"")},Object.defineProperty(t.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){var e;return(e=this.messages[this.localeInMessageKey])!==null&&e!==void 0?e:{}},enumerable:!1,configurable:!0}),t}();function Cr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ft(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function Ar(t,e,n){return e&&Ft(t.prototype,e),n&&Ft(t,n),t}function Fr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=function(){function t(){Cr(this,t)}return Ar(t,null,[{key:"getMessage",value:function(n){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",u)}},{key:"resetI18n",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ur;return new Br({locale:n,messages:nr})}},{key:"setLocale",value:function(n){return this.$i18n.setLocale(n)}}]),t}();Fr(h,"$i18n",h.resetI18n());function Dr(t,e,n){var u=e.replace(/\[(\d)]/g,function(i,r){return"."+r}).split("."),a=!1;return u.reduce(function(i,r,l,d){var c=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,r)){we("Can not set ".concat(e,"'s ").concat(r," property in current %o, Because there is no ").concat(r," property on the %o"),i,i);return}return l===d.length-1&&!Object.is(c[r],n)&&(c[r]=n,a=!0),c[r]}},t),a}var br=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Sr={exports:{}};(function(t){(function(e){var n=function(o,m,E){if(!c(m)||v(m)||F(m)||b(m)||d(m))return m;var S,w=0,q=0;if(g(m))for(S=[],q=m.length;w<q;w++)S.push(n(o,m[w],E));else{S={};for(var A in m)Object.prototype.hasOwnProperty.call(m,A)&&(S[o(A,E)]=n(o,m[A],E))}return S},u=function(o,m){m=m||{};var E=m.separator||"_",S=m.split||/(?=[A-Z])/;return o.split(S).join(E)},a=function(o){return B(o)?o:(o=o.replace(/[\-_\s]+(.)?/g,function(m,E){return E?E.toUpperCase():""}),o.substr(0,1).toLowerCase()+o.substr(1))},i=function(o){var m=a(o);return m.substr(0,1).toUpperCase()+m.substr(1)},r=function(o,m){return u(o,m).toLowerCase()},l=Object.prototype.toString,d=function(o){return typeof o=="function"},c=function(o){return o===Object(o)},g=function(o){return l.call(o)=="[object Array]"},v=function(o){return l.call(o)=="[object Date]"},F=function(o){return l.call(o)=="[object RegExp]"},b=function(o){return l.call(o)=="[object Boolean]"},B=function(o){return o=o-0,o===o},f=function(o,m){var E=m&&"process"in m?m.process:m;return typeof E!="function"?o:function(S,w){return E(S,o,w)}},C={camelize:a,decamelize:r,pascalize:i,depascalize:r,camelizeKeys:function(o,m){return n(f(a,m),o)},decamelizeKeys:function(o,m){return n(f(r,m),o,m)},pascalizeKeys:function(o,m){return n(f(i,m),o)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=C:e.humps=C})(br)})(Sr);var Dt={};Object.defineProperty(Dt,"__esModule",{value:!0});function Me(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(e=>typeof e!="object"||e===null?e:Me(e));{const e={};for(const n in t){const u=t[n];e[n]=typeof u!="object"||u===null?u:Me(u)}return e}}var wr=Dt.default=Me;function j(t){if(t!==void 0)return typeof t=="object"?wr(t):t}function Ir(t){return Object.prototype.toString.call(t)==="[object Object]"}function Rr(t){return Array.isArray(t)}function Mr(t){return t.reduce(function(e,n){return e.includes(n)||e.push(n),e},[])}function _e(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,u=new Array(e);n<e;n++)u[n]=t[n];return u}function _r(t){if(Array.isArray(t))return _e(t)}function bt(t,e,n,u,a,i,r){try{var l=t[i](r),d=l.value}catch(c){n(c);return}l.done?e(d):Promise.resolve(d).then(u,a)}function $r(t){return function(){var e=this,n=arguments;return new Promise(function(u,a){var i=t.apply(e,n);function r(d){bt(i,u,a,r,l,"next",d)}function l(d){bt(i,u,a,r,l,"throw",d)}r(void 0)})}}function Lr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function St(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function qr(t,e,n){return e&&St(t.prototype,e),n&&St(t,n),t}function wt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pr(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Vr(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $e(t){return _r(t)||Pr(t)||xr(t)||Vr()}function xr(t,e){if(!!t){if(typeof t=="string")return _e(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _e(t,e)}}function jr(t,e){var n,u,a,i,r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(c){return function(g){return d([c,g])}}function d(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,u&&(a=c[0]&2?u.return:c[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,c[1])).done)return a;switch(u=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,u=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(g){c=[6,g],u=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var Or=function(){function t(){Lr(this,t),wt(this,"_events",new Map),wt(this,"debug",!1)}return qr(t,[{key:"emit",value:function(n){for(var u=arguments.length,a=new Array(u>1?u-1:0),i=1;i<u;i++)a[i-1]=arguments[i];var r=this;return $r(function(){var l,d,c,g,v,F,b,B,f,C,o,m;return jr(this,function(E){switch(E.label){case 0:if(l=r._events.get(n),d=[],!l)return[3,10];c=l.slice(),g=!0,v=!1,F=void 0,E.label=1;case 1:E.trys.push([1,8,9,10]),b=c[Symbol.iterator](),E.label=2;case 2:if(g=(B=b.next()).done)return[3,7];if(f=B.value,!l.includes(f))return[3,6];E.label=3;case 3:return E.trys.push([3,5,,6]),r.debug&&Bt.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(f.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+f.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"\u3002")].concat($e(a))),[4,f.apply(null,$e(a))];case 4:return C=E.sent(),r.debug&&Bt.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(f.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+f.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat($e(a),[C])),d.push(C),C===!1?[3,7]:[3,6];case 5:return o=E.sent(),gr(String(o)+":"+String(o.stack)),[3,6];case 6:return g=!0,[3,2];case 7:return[3,10];case 8:return m=E.sent(),v=!0,F=m,[3,10];case 9:try{!g&&b.return!=null&&b.return()}finally{if(v)throw F}return[7];case 10:return[2,d]}})})()}},{key:"on",value:function(n,u){if(this._events.has(n)){var a;(a=this._events.get(n))===null||a===void 0||a.push(u)}else this._events.set(n,[u])}},{key:"off",value:function(n,u){if(this._events.has(n)){var a=this._events.get(n),i=a==null?void 0:a.indexOf(u);a==null||a.splice(i,1)}}},{key:"delete",value:function(n){this._events.has(n)&&this._events.delete(n)}},{key:"clear",value:function(){this._events=new Map}}]),t}();function Ur(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function It(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function Nr(t,e,n){return e&&It(t.prototype,e),n&&It(t,n),t}function kr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Hr=[{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"}],Wr=function(){function t(){Ur(this,t)}return Nr(t,null,[{key:"getEventsFromKeys",value:function(n){var u=typeof n=="string"?[n]:n;return t.events.filter(function(a){return u.includes(a.key)})}},{key:"getEventsFromControl",value:function(n){var u=[],a=n.eventKeys;u=u.concat(t.events.filter(function(r){return a.includes(r.key)}));var i=n.customEvents.map(function(r){var l=r.key;return r.namespace!==void 0&&r.namespace!==null&&r.namespace!==""&&(l=r.namespace+":"+r.key),{key:l,code:r.key,name:r.name}});return u=u.concat(i),u}}]),t}();kr(Wr,"events",Hr);function ce(t,e){var n;(n=Object.getOwnPropertyDescriptors(t)[e])!=null&&n.enumerable&&Object.defineProperty(t,e,{enumerable:!1})}function Le(t,e,n){n==="Designer"&&(t.parent=e,ce(t,"parent"))}function Rt(t,e,n){t.forEach(u=>{Le(u,e,n)})}const Mt=Symbol("targetKey");function _t(t){var e;return(e=t[Mt])!=null?e:t}function $t(t,e,n){return Rt(t,e,n),new Proxy(t,{get(u,a,...i){return a===Mt?u:Reflect.get(u,a,...i)},set(u,a,i,...r){if(Rr(t)&&a==="length"&&i===t.length)return!0;const l=Reflect.set(u,a,i,...r);return Ir(i)&&Le(i,e,n),l}})}function N(t,e,n,u,a){const i=u!=null?u:t;let r=$t(_t(n!=null?n:[]),i,a);Object.defineProperty(t,e,{get(){return r},set(l){r=$t(_t(l),i,a)},enumerable:!0})}const Lt=[],qe=class{constructor(t){this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=t,this._initControls(t)}static staticGetRules(t,e){const n=qe.staticControlsRuntimeRules.get(t);let u=[];if(n){const a=new n(e);u=Array.from(a)}return u}registerControlConfig(t,e){return this.controlConfigMap.set(t,e),this}getControlConfig(t){return this.controlConfigMap.get(t)}static register(t,e){const{Designer:n,Runtime:u,Property:a}=t;(!n||!u||!n.__is_control__||!u.__is_control__)&&Re(`${t} is can't register as a Control`);const i=this.staticControls.findIndex(r=>r.Designer.controlType===n.controlType);return i>-1&&(we(`The ${n.controlType} is repeat register, So it overwrites the one that was registered before.`),this.staticControls.splice(i,1)),this.staticRegisteredTypes.add(n.controlType),this.staticControls.push(t),a.mode=e,this}getControls(){return this._controls}register(t){t.__is_control__||Re(`${t.name} is not a Control`);const e=this._controls.findIndex(n=>n.controlType===t.controlType);return e>-1&&(we(`The ${t.controlType} is repeat register, So it overwrites the one that was registered before.`),this._controls.splice(e,1)),this.registeredControlTypes.add(t.controlType),this._controls.push(t),this}isLayoutControl(t){return t.controlType===K.LAYOUT}isFormControl(t){return t.controlType===K.FORM}isListControl(t){return t.controlType===K.LIST}isColumnControl(t){return t.controlType===K.COLUMN}createControl(t,e){if(Array.isArray(t))return t.map(u=>this.createControl(u,e));if(t.children&&(t.children=t.children.map(u=>this.createControl(u,e))),this.isListControl(t)){const u=t.props;u.headers&&(u.headers=u.headers.map(a=>this.createControl(a,e))),u.footers&&(u.footers=u.footers.map(a=>{let i;return a&&(i=this.createControl(a,e)),i}))}const n=this.getControlFormType(t.type);if(n){let u=t;if(typeof e=="function"){const i=e(u);i&&(u=i)}let a;return n.mode==="Runtime"?(a=u,a.fieldType=n.controlFieldType,this._setParentPrototypeToSchema(a,this)):a=new n(u),a}else Re(`The constructor of ${t.type} could not be found, please confirm that the constructor has been registered`)}resetInstanceParent(t,e){delete t.parent,Object.defineProperty(t,"parent",{configurable:!0,get(){return e}}),ce(t,"parent")}_setParentPrototypeToSchema(t,e){e._type==="Runtime"&&(Object.defineProperty(t,"parent",{configurable:!0,get(){const n=t.id,u=e._controlParentIdMap,a=e.instanceMap;if(!u||!a)return;const i=u[n],r=a[n];if(!i&&!r)return;const l=r.findIndex(g=>g==t),d=a[i]||[];let c;return d.length!==r.length?c=d[0]:c=d[l],c}}),ce(t,"parent"))}createControlInstance(t,e){const n=this.getControlFormType(t);if(n)return new n(e)}getControlFormType(t){return this._controls.find(e=>e.controlType===t)}_initControls(t){this.constructor.staticControls.forEach(e=>{this.register(e[t]),qe.staticControlsRuntimeRules.set(e.Runtime.controlType,e.Property.RuntimeRules),e.Property.mode=t})}};let ee=qe;ee.staticControlsRuntimeRules=new Map,ee.staticControls=Lt,ee.staticRegisteredTypes=new Set(Lt.map(t=>t.Designer.controlType)),ee.staticRegisteredConfigs=new Map;class ${constructor(e){var n,u,a;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:"",this.aliasCode=e==null?void 0:e.aliasCode}}class Pe{constructor(e){var n,u;this.minWidth=(n=e==null?void 0:e.minWidth)!=null?n:150,this.maxWidth=e==null?void 0:e.maxWidth,this.flex=(u=e==null?void 0:e.flex)!=null?u:1}}class Ve{constructor(e){var n,u,a,i;this.rowHeightType=(n=e==null?void 0:e.rowHeightType)!=null?n:"fixed",this.minRows=(u=e==null?void 0:e.minRows)!=null?u:4,this.maxRows=(a=e==null?void 0:e.maxRows)!=null?a:20,this.fiexdRow=(i=e==null?void 0:e.fiexdRow)!=null?i:4}}class Kr{constructor(e){this.pc=new Ve(e==null?void 0:e.pc),this.mobile=new Ve(e==null?void 0:e.mobile)}}class de extends Pe{constructor(e){var n,u;super(e),this.width=(n=e==null?void 0:e.width)!=null?n:240,this.widthType=(u=e==null?void 0:e.widthType)!=null?u:"auto"}}class zr{constructor(e){this.pc=new de(e==null?void 0:e.pc),this.mobile=e!=null&&e.mobile?new de(e==null?void 0:e.mobile):new de({width:130,minWidth:180})}}class Tr{constructor(e){var n,u;this.type=(n=e==null?void 0:e.type)!=null?n:"firstThree",this.customOptions=(u=e==null?void 0:e.customOptions)!=null?u:[]}}class fe{constructor(e){var n,u,a;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.formKey=(u=e==null?void 0:e.formKey)!=null?u:"",this.appId=(a=e==null?void 0:e.appId)!=null?a:""}}class Jr extends fe{constructor(e){var n;super(e),this.primaryControlId=(n=e==null?void 0:e.primaryControlId)!=null?n:""}}class qt{constructor(e){var n;this.fieldCode=(n=e==null?void 0:e.fieldCode)!=null?n:""}}class Xr{constructor(e){var n,u,a,i;this.appId=(n=e==null?void 0:e.appId)!=null?n:"",this.formKey=(u=e==null?void 0:e.formKey)!=null?u:"",this.headers=(i=(a=e==null?void 0:e.headers)==null?void 0:a.map(r=>new qt(r)))!=null?i:[]}}class Pt{constructor(e){var n,u,a;this.fieldName=(n=e==null?void 0:e.fieldName)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:Q.VARCHAR}}class Vt extends fe{constructor(e){var n,u,a,i;super(e),this.title=(n=e==null?void 0:e.title)!=null?n:"",this.svcCode=(u=e==null?void 0:e.svcCode)!=null?u:"",this.isOpenFilter=(a=e==null?void 0:e.isOpenFilter)!=null?a:!1,this.filters=(i=e==null?void 0:e.filters)!=null?i:[]}}class Gr{constructor(e){var n,u,a,i;this.type="sublist-page",this.formBind=new fe(e==null?void 0:e.formBind),this.displayFields=(u=(n=e==null?void 0:e.displayFields)==null?void 0:n.map(r=>new Pt(r)))!=null?u:[],this.sublists=(i=(a=e==null?void 0:e.sublists)==null?void 0:a.map(r=>new Vt(r)))!=null?i:[]}}class xt{constructor(e){this.type=e==null?void 0:e.type,this.value=e==null?void 0:e.value,this.dataCode=e==null?void 0:e.dataCode}}class xe{constructor(e){var n,u,a;this.type=(n=e==null?void 0:e.type)!=null?n:"custom",this.value=(u=e==null?void 0:e.value)!=null?u:[],this.displayBos=(a=e==null?void 0:e.displayBos)!=null?a:[]}}class z{constructor(e){var n,u,a,i;this.type="conditions",this.id=(n=e==null?void 0:e.id)!=null?n:x(),this.ruleId=(u=e==null?void 0:e.ruleId)!=null?u:new Date().valueOf(),this.level=(a=e==null?void 0:e.level)!=null?a:0,this.value=(i=e==null?void 0:e.value)!=null?i:"and",this.children=[],Array.isArray(e==null?void 0:e.children)&&(e==null||e.children.map(r=>{var l,d;if(r.children!==void 0){const c=new z(r);(l=this.children)==null||l.push(c)}else{const c=new te(r);(d=this.children)==null||d.push(c)}}))}}class te{constructor(e){var n,u,a,i,r;this.type="condition",this.id=(n=e==null?void 0:e.id)!=null?n:x(),this.ruleId=(u=e==null?void 0:e.ruleId)!=null?u:new Date().valueOf(),this.symbol=(a=e==null?void 0:e.symbol)!=null?a:"",this.checked=(i=e==null?void 0:e.checked)!=null?i:!1,this.describe=(r=e==null?void 0:e.describe)!=null?r:"",this.leftVariableBo=new xt(e==null?void 0:e.leftVariableBo),this.rightVariableBo=new xe(e==null?void 0:e.rightVariableBo)}}class Zr{constructor(e){var n,u;this.aliasCode=(n=e==null?void 0:e.aliasCode)!=null?n:"",this.datasourceBind=new he(e==null?void 0:e.datasourceBind),this.relationFields=(u=e==null?void 0:e.relationFields)!=null?u:[]}}class jt{constructor(e){var n,u,a,i;this.controlId=(n=e==null?void 0:e.controlId)!=null?n:"",this.fieldCode=(u=e==null?void 0:e.fieldCode)!=null?u:"",this.fieldType=(a=e==null?void 0:e.fieldType)!=null?a:"",this.propName=(i=e==null?void 0:e.propName)!=null?i:""}}class je{constructor(e){var n,u;this.type=(n=e==null?void 0:e.type)!=null?n:"FIELD",this.value=(u=e==null?void 0:e.value)!=null?u:"",this.fieldType=e==null?void 0:e.fieldType}}class Oe{constructor(e){var n,u;this.columnName=(n=e.columnName)!=null?n:"",this.desc=(u=e.desc)!=null?u:!1}}class Ot{constructor(e){var n,u,a;this.code=(n=e.code)!=null?n:"",this.value=(u=e.value)!=null?u:"",this.field_type=(a=e.field_type)!=null?a:Q.ANY}}class Qr{constructor(e){var n,u,a,i,r,l,d;this.id=(n=e.id)!=null?n:"",this.limit=(u=e.limit)!=null?u:20,this.formKey=(a=e.formKey)!=null?a:"",this.orders=(r=(i=e.orders)==null?void 0:i.map(c=>new Oe(c)))!=null?r:[],this.dataSet=(d=(l=e.dataSet)==null?void 0:l.map(c=>new Ot(c)))!=null?d:[]}}function Ue(t){var e,n,u,a,i,r;this.filters=(n=(e=t==null?void 0:t.filters)==null?void 0:e.map(l=>l.children!==void 0?new z(l):new te(l)))!=null?n:[],this.viewFilters=(a=(u=t==null?void 0:t.viewFilters)==null?void 0:u.map(l=>l.children!==void 0?new z(l):new te(l)))!=null?a:[],this.orders=(r=(i=t==null?void 0:t.orders)==null?void 0:i.map(l=>new Oe(l)))!=null?r:[]}class he{constructor(e){var n,u,a,i,r,l,d;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.appId=(u=e==null?void 0:e.appId)!=null?u:"",this.valueFieldCode=(a=e==null?void 0:e.valueFieldCode)!=null?a:"",this.displayBoList=[],this.isOpenViewFilters=(i=e==null?void 0:e.isOpenViewFilters)!=null?i:0,Array.isArray(e==null?void 0:e.displayBoList)&&(e==null||e.displayBoList.map(c=>{var g;(g=this.displayBoList)==null||g.push(new je(c))})),this.keywordMapping=(r=e==null?void 0:e.keywordMapping)!=null?r:"",this.showOrder=(l=e==null?void 0:e.showOrder)!=null?l:!0,this.svcCode=(d=e==null?void 0:e.svcCode)!=null?d:"",Ue.call(this,e)}}class Yr{constructor(e){var n,u;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.displayBoList=(u=e==null?void 0:e.displayBoList)!=null?u:[]}}class pr{constructor(e){var n,u,a,i,r,l,d,c,g,v;this.code=(n=e==null?void 0:e.code)!=null?n:"view",this.color=(u=e==null?void 0:e.color)!=null?u:"primary",this.command=(a=e==null?void 0:e.command)!=null?a:"view",this.confirmMessage=(i=e==null?void 0:e.confirmMessage)!=null?i:void 0,this.defaultState=(r=e==null?void 0:e.defaultState)!=null?r:"default",this.formKey=(l=e==null?void 0:e.formKey)!=null?l:void 0,this.formType=e==null?void 0:e.formType,this.icon=(d=e==null?void 0:e.icon)!=null?d:"iconliulan1",this.needConfirm=(c=e==null?void 0:e.needConfirm)!=null?c:!1,this.openType=(g=e==null?void 0:e.openType)!=null?g:"modal",this.priorityProcess=(v=e==null?void 0:e.priorityProcess)!=null?v:!0}}class Ne{constructor(e){var n,u,a,i;this.name=(n=e==null?void 0:e.name)!=null?n:"",this.key=(u=e==null?void 0:e.key)!=null?u:"",this.value=(i=(a=e==null?void 0:e.value)==null?void 0:a.map(r=>new je(r)))!=null?i:[]}}class Ut extends he{constructor(e){var n,u;super(e),this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(a=>new Ne(a)))!=null?u:[]}}class el extends he{constructor(e){var n,u,a;super(e),this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(i=>new Ne(i)))!=null?u:[],this.formCode=(a=e==null?void 0:e.formCode)!=null?a:""}}class tl extends Ut{constructor(e){var n;super(e),this.rootNode=new xe(e==null?void 0:e.rootNode),this.filterCode=(n=e==null?void 0:e.filterCode)!=null?n:""}}class Nt{constructor(e){var n,u,a,i;this.dataCode=(n=e==null?void 0:e.dataCode)!=null?n:"",this.appId=(u=e==null?void 0:e.appId)!=null?u:"",this.fillList=(i=(a=e==null?void 0:e.fillList)==null?void 0:a.map(r=>new jt(r)))!=null?i:[]}}class nl extends Nt{constructor(e){super(e),Ue.call(this,e)}}class ul extends Nt{constructor(e){var n,u;super(e),this.mode=(n=e==null?void 0:e.mode)!=null?n:"current",this.multiple=(u=e==null?void 0:e.multiple)!=null?u:!1}}class al{constructor(e){var n,u,a;this.zh=(n=e==null?void 0:e.zh)!=null?n:"",this.en=(u=e==null?void 0:e.en)!=null?u:"",this.ja=(a=e==null?void 0:e.ja)!=null?a:""}}class il{constructor(e){var n,u,a;this.stencilName=(n=e==null?void 0:e.stencilName)!=null?n:"",this.expression=(u=e==null?void 0:e.expression)!=null?u:"",this.errMessage=(a=e==null?void 0:e.errMessage)!=null?a:""}}class ke{constructor(e){var n,u,a;this.id=(n=e==null?void 0:e.id)!=null?n:x(8),this.label=(u=e==null?void 0:e.label)!=null?u:"",this.value=(a=e==null?void 0:e.value)!=null?a:this.label}}class kt extends ke{constructor(e){var n,u;super(e),this.image=(n=e==null?void 0:e.image)!=null?n:"",this.type=(u=e==null?void 0:e.type)!=null?u:"src"}}function rl(t){var e;return(e=t==null?void 0:t.map(n=>new ke(n)))!=null?e:[]}function ll(t){var e;return(e=t==null?void 0:t.map(n=>new kt(n)))!=null?e:[]}class me{}class sl extends me{constructor(e){super(),this.amount=new $(e==null?void 0:e.amount),this.currency=new $(e==null?void 0:e.currency)}}class ol{constructor(e){var n,u;this.amount=(n=e==null?void 0:e.amount)!=null?n:"",this.currency=(u=e==null?void 0:e.currency)!=null?u:He.CNY}}class cl extends me{constructor(e){super(),this.min=new $(e==null?void 0:e.min),this.max=new $(e==null?void 0:e.max)}}class dl{constructor(e){var n,u;this.min=(n=e==null?void 0:e.min)!=null?n:"",this.max=(u=e==null?void 0:e.max)!=null?u:""}}class fl{constructor(e){var n,u,a,i,r,l;this.city=(n=e==null?void 0:e.city)!=null?n:"",this.cityDisplay=(u=e==null?void 0:e.cityDisplay)!=null?u:"",this.district=(a=e==null?void 0:e.district)!=null?a:"",this.districtDisplay=(i=e==null?void 0:e.districtDisplay)!=null?i:"",this.province=(r=e==null?void 0:e.province)!=null?r:"",this.provinceDisplay=(l=e==null?void 0:e.provinceDisplay)!=null?l:""}}class hl extends me{constructor(e){super(),this.result=new $(e==null?void 0:e.result),this.unit=new $(e==null?void 0:e.unit)}}class ml{constructor(e){var n,u;this.result=(n=e==null?void 0:e.result)!=null?n:0,this.unit=(u=e==null?void 0:e.unit)!=null?u:""}}var He=(t=>(t.CNY="CNY",t.USD="USD",t.JPY="JPY",t.EUR="EUR",t.INR="INR",t.IDR="IDR",t.BRL="BRL",t.AED="AED",t.AUD="AUD",t.CAD="CAD",t.EGP="EGP",t.GBP="GBP",t.ZAR="ZAR",t.KRW="KRW",t.MAD="MAD",t.MXN="MXN",t.MYR="MYR",t.PHP="PHP",t.PLN="PLN",t.RUB="RUB",t.SGD="SGD",t.THB="THB",t.TRY="TRY",t.TWD="TWD",t.VND="VND",t.HKD="HKD",t.IEP="IEP",t))(He||{}),Ht=(t=>(t.DEFAULT_DISPLAY="defaultDisplay",t.REQUIRED="required",t.IS_HIDE="isHide",t.IS_SHOW_UNIT="isShowUnit",t.IMD_SEARCH="immediatelySearch",t.MULTIPLE="multiple",t.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",t.CAPTION="caption",t.IS_HIDE_CAPTION="isHideCaption",t.DEFAULT_SHOW_OPTIONS="defaultShowOptions",t.CAN_SEARCH="canSearch",t.CAN_CHECK="canCheck",t.CAN_EDIT="canEdit",t.CAN_DELETE="canDelete",t.SHOW_UPPER_CASE="showUpperCase",t.MICROMETER="micrometer",t.PRECISION="precision",t.PERCENTAGE="percentage",t.OPTIONAL_LEVEL="optionalLevel",t.CONTAINS_SUB_NODE="containsSubNode",t.DEFAULT_COLLAPSE="defaultCollapse",t.CAN_VIEW_FORM="canViewForm",t.VIEW_FORM_MODEL_TYPE="viewFormModelType",t.SERVER_PAGINATION="serverPagination",t.IS_SHOW_CAPTION_TIP="isShowCaptionTip",t.ENCRYPTED="encrypted",t.IS_INLINE_EDIT="isInlineEdit",t.REVISIONS_MODE="revisionsMode",t.ALLOW_COPY_OPTIONS="allowCopyOptions",t.IS_PASTE="isPaste",t.SORTABLE="sortable",t))(Ht||{}),We=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT",t))(We||{});class gl{constructor(e){var n,u,a,i,r,l;this.isShow=(n=e==null?void 0:e.isShow)!=null?n:!0,this.content=(u=e==null?void 0:e.content)!=null?u:"",this.formKey=(a=e==null?void 0:e.formKey)!=null?a:"",this.openType=(i=e==null?void 0:e.openType)!=null?i:"modal",this.type=(r=e==null?void 0:e.type)!=null?r:"",this.priorityProcess=(l=e==null?void 0:e.priorityProcess)!=null?l:!1}}class yl{constructor(e){var n,u,a,i;this.id=(n=e==null?void 0:e.id)!=null?n:x(8),this.title=(u=e==null?void 0:e.title)!=null?u:"",this.headers=(i=(a=e==null?void 0:e.headers)==null?void 0:a.map(r=>new qt(r)))!=null?i:[],Ue.call(this,e)}}class vl{constructor(e){var n,u;this.key=(n=e.key)!=null?n:x(8),this.caption=(u=e.caption)!=null?u:""}}class Wt{constructor(e){var n,u,a,i;this.width=(n=e==null?void 0:e.width)!=null?n:"",this.height=(u=e==null?void 0:e.height)!=null?u:"",this.widthConfig=(a=e==null?void 0:e.widthConfig)!=null?a:"fill",this.heightConfig=(i=e==null?void 0:e.heightConfig)!=null?i:"fill"}}class El{constructor(e){var n,u;this.optCode=(n=e==null?void 0:e.optCode)!=null?n:"",this.optType=(u=e==null?void 0:e.optType)!=null?u:""}}class Bl{constructor(e){var n,u,a,i,r;this.id=(n=e==null?void 0:e.id)!=null?n:x(),this.name=(u=e==null?void 0:e.name)!=null?u:"",this.color=(a=e==null?void 0:e.color)!=null?a:"theme",this.filters=(r=(i=e==null?void 0:e.filters)==null?void 0:i.map(l=>l.children!==void 0?new z(l):new te(l)))!=null?r:[]}}class Cl{constructor(e){var n,u,a;this.id=(n=e.id)!=null?n:x(),this.script=(u=e.script)!=null?u:"",this.color=(a=e.color)!=null?a:"theme"}}class ge{constructor(e){this.isHide={type:"boolean"}}}class Ke extends Array{constructor(e){super()}}class O{constructor(e,n=""){var u,a;this.isHide=(u=e==null?void 0:e.isHide)!=null?u:!1,this.style=new Wt(e==null?void 0:e.style),this.caption=(a=e==null?void 0:e.caption)!=null?a:n}}O.Rules=ge,O.RuntimeRules=Ke;function L(){return L=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},L.apply(this,arguments)}function Al(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function ze(t){return ze=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ze(t)}function ye(t,e){return ye=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},ye(t,e)}function Fl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function ve(t,e,n){return Fl()?ve=Reflect.construct:ve=function(a,i,r){var l=[null];l.push.apply(l,i);var d=Function.bind.apply(a,l),c=new d;return r&&ye(c,r.prototype),c},ve.apply(null,arguments)}function Dl(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Te(t){var e=typeof Map=="function"?new Map:void 0;return Te=function(u){if(u===null||!Dl(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(u))return e.get(u);e.set(u,a)}function a(){return ve(u,arguments,ze(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ye(a,u)},Te(t)}var bl=/%[sdj%]/g,Kt=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Kt=function(e,n){typeof console!="undefined"&&console.warn&&n.every(function(u){return typeof u=="string"})&&console.warn(e,n)});function Je(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var u=n.field;e[u]=e[u]||[],e[u].push(n)}),e}function _(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var u=1,a=e[0],i=e.length;if(typeof a=="function")return a.apply(null,e.slice(1));if(typeof a=="string"){var r=String(a).replace(bl,function(l){if(l==="%%")return"%";if(u>=i)return l;switch(l){case"%s":return String(e[u++]);case"%d":return Number(e[u++]);case"%j":try{return JSON.stringify(e[u++])}catch(d){return"[Circular]"}break;default:return l}});return r}return a}function Sl(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function R(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||Sl(e)&&typeof t=="string"&&!t)}function wl(t,e,n){var u=[],a=0,i=t.length;function r(l){u.push.apply(u,l),a++,a===i&&n(u)}t.forEach(function(l){e(l,r)})}function zt(t,e,n){var u=0,a=t.length;function i(r){if(r&&r.length){n(r);return}var l=u;u=u+1,l<a?e(t[l],i):n([])}i([])}function Il(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n])}),e}var Tt=function(t){Al(e,t);function e(n,u){var a;return a=t.call(this,"Async Validation Error")||this,a.errors=n,a.fields=u,a}return e}(Te(Error));function Rl(t,e,n,u){if(e.first){var a=new Promise(function(v,F){var b=function(C){return u(C),C.length?F(new Tt(C,Je(C))):v()},B=Il(t);zt(B,n,b)});return a.catch(function(v){return v}),a}var i=e.firstFields||[];i===!0&&(i=Object.keys(t));var r=Object.keys(t),l=r.length,d=0,c=[],g=new Promise(function(v,F){var b=function(f){if(c.push.apply(c,f),d++,d===l)return u(c),c.length?F(new Tt(c,Je(c))):v()};r.length||(u(c),v()),r.forEach(function(B){var f=t[B];i.indexOf(B)!==-1?zt(f,n,b):wl(f,n,b)})});return g.catch(function(v){return v}),g}function Jt(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:typeof e=="function"?e():e,field:e.field||t.fullField}}}function Xt(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var u=e[n];typeof u=="object"&&typeof t[n]=="object"?t[n]=L(L({},t[n]),u):t[n]=u}}return t}function Gt(t,e,n,u,a,i){t.required&&(!n.hasOwnProperty(t.field)||R(e,i||t.type))&&u.push(_(a.messages.required,t.fullField))}function Ml(t,e,n,u,a){(/^\s+$/.test(e)||e==="")&&u.push(_(a.messages.whitespace,t.fullField))}var Xe={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ne={integer:function(e){return ne.number(e)&&parseInt(e,10)===e},float:function(e){return ne.number(e)&&!ne.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(n){return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!ne.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(Xe.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(Xe.url)},hex:function(e){return typeof e=="string"&&!!e.match(Xe.hex)}};function _l(t,e,n,u,a){if(t.required&&e===void 0){Gt(t,e,n,u,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],r=t.type;i.indexOf(r)>-1?ne[r](e)||u.push(_(a.messages.types[r],t.fullField,t.type)):r&&typeof e!==t.type&&u.push(_(a.messages.types[r],t.fullField,t.type))}function $l(t,e,n,u,a){var i=typeof t.len=="number",r=typeof t.min=="number",l=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=e,g=null,v=typeof e=="number",F=typeof e=="string",b=Array.isArray(e);if(v?g="number":F?g="string":b&&(g="array"),!g)return!1;b&&(c=e.length),F&&(c=e.replace(d,"_").length),i?c!==t.len&&u.push(_(a.messages[g].len,t.fullField,t.len)):r&&!l&&c<t.min?u.push(_(a.messages[g].min,t.fullField,t.min)):l&&!r&&c>t.max?u.push(_(a.messages[g].max,t.fullField,t.max)):r&&l&&(c<t.min||c>t.max)&&u.push(_(a.messages[g].range,t.fullField,t.min,t.max))}var T="enum";function Ll(t,e,n,u,a){t[T]=Array.isArray(t[T])?t[T]:[],t[T].indexOf(e)===-1&&u.push(_(a.messages[T],t.fullField,t[T].join(", ")))}function ql(t,e,n,u,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||u.push(_(a.messages.pattern.mismatch,t.fullField,e,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(e)||u.push(_(a.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var y={required:Gt,whitespace:Ml,type:_l,range:$l,enum:Ll,pattern:ql};function Pl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e,"string")&&!t.required)return n();y.required(t,e,u,i,a,"string"),R(e,"string")||(y.type(t,e,u,i,a),y.range(t,e,u,i,a),y.pattern(t,e,u,i,a),t.whitespace===!0&&y.whitespace(t,e,u,i,a))}n(i)}function Vl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y.type(t,e,u,i,a)}n(i)}function xl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e===""&&(e=void 0),R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function jl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y.type(t,e,u,i,a)}n(i)}function Ol(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),R(e)||y.type(t,e,u,i,a)}n(i)}function Ul(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function Nl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function kl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e==null&&!t.required)return n();y.required(t,e,u,i,a,"array"),e!=null&&(y.type(t,e,u,i,a),y.range(t,e,u,i,a))}n(i)}function Hl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y.type(t,e,u,i,a)}n(i)}var Wl="enum";function Kl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y[Wl](t,e,u,i,a)}n(i)}function zl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e,"string")&&!t.required)return n();y.required(t,e,u,i,a),R(e,"string")||y.pattern(t,e,u,i,a)}n(i)}function Tl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e,"date")&&!t.required)return n();if(y.required(t,e,u,i,a),!R(e,"date")){var l;e instanceof Date?l=e:l=new Date(e),y.type(t,l,u,i,a),l&&y.range(t,l.getTime(),u,i,a)}}n(i)}function Jl(t,e,n,u,a){var i=[],r=Array.isArray(e)?"array":typeof e;y.required(t,e,u,i,a,r),n(i)}function Ge(t,e,n,u,a){var i=t.type,r=[],l=t.required||!t.required&&u.hasOwnProperty(t.field);if(l){if(R(e,i)&&!t.required)return n();y.required(t,e,u,r,a,i),R(e,i)||y.type(t,e,u,r,a)}n(r)}function Xl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(R(e)&&!t.required)return n();y.required(t,e,u,i,a)}n(i)}var ue={string:Pl,method:Vl,number:xl,boolean:jl,regexp:Ol,integer:Ul,float:Nl,array:kl,object:Hl,enum:Kl,pattern:zl,date:Tl,url:Ge,hex:Ge,email:Ge,required:Jl,any:Xl};function Ze(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Qe=Ze();function k(t){this.rules=null,this._messages=Qe,this.define(t)}k.prototype={messages:function(e){return e&&(this._messages=Xt(Ze(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var n,u;for(n in e)e.hasOwnProperty(n)&&(u=e[n],this.rules[n]=Array.isArray(u)?u:[u])},validate:function(e,n,u){var a=this;n===void 0&&(n={}),u===void 0&&(u=function(){});var i=e,r=n,l=u;if(typeof r=="function"&&(l=r,r={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(),Promise.resolve();function d(f){var C,o=[],m={};function E(S){if(Array.isArray(S)){var w;o=(w=o).concat.apply(w,S)}else o.push(S)}for(C=0;C<f.length;C++)E(f[C]);o.length?m=Je(o):(o=null,m=null),l(o,m)}if(r.messages){var c=this.messages();c===Qe&&(c=Ze()),Xt(c,r.messages),r.messages=c}else r.messages=this.messages();var g,v,F={},b=r.keys||Object.keys(this.rules);b.forEach(function(f){g=a.rules[f],v=i[f],g.forEach(function(C){var o=C;typeof o.transform=="function"&&(i===e&&(i=L({},i)),v=i[f]=o.transform(v)),typeof o=="function"?o={validator:o}:o=L({},o),o.validator=a.getValidationMethod(o),o.field=f,o.fullField=o.fullField||f,o.type=a.getType(o),o.validator&&(F[f]=F[f]||[],F[f].push({rule:o,value:v,source:i,field:f}))})});var B={};return Rl(F,r,function(f,C){var o=f.rule,m=(o.type==="object"||o.type==="array")&&(typeof o.fields=="object"||typeof o.defaultField=="object");m=m&&(o.required||!o.required&&f.value),o.field=f.field;function E(q,A){return L(L({},A),{},{fullField:o.fullField+"."+q})}function S(q){q===void 0&&(q=[]);var A=q;if(Array.isArray(A)||(A=[A]),!r.suppressWarning&&A.length&&k.warning("async-validator:",A),A.length&&o.message!==void 0&&(A=[].concat(o.message)),A=A.map(Jt(o)),r.first&&A.length)return B[o.field]=1,C(A);if(!m)C(A);else{if(o.required&&!f.value)return o.message!==void 0?A=[].concat(o.message).map(Jt(o)):r.error&&(A=[r.error(o,_(r.messages.required,o.field))]),C(A);var P={};if(o.defaultField)for(var un in f.value)f.value.hasOwnProperty(un)&&(P[un]=o.defaultField);P=L(L({},P),f.rule.fields);for(var J in P)if(P.hasOwnProperty(J)){var os=Array.isArray(P[J])?P[J]:[P[J]];P[J]=os.map(E.bind(null,J))}var an=new k(P);an.messages(r.messages),f.rule.options&&(f.rule.options.messages=r.messages,f.rule.options.error=r.error),an.validate(f.value,f.rule.options||r,function(it){var X=[];A&&A.length&&X.push.apply(X,A),it&&it.length&&X.push.apply(X,it),C(X.length?X:null)})}}var w;o.asyncValidator?w=o.asyncValidator(o,f.value,S,f.source,r):o.validator&&(w=o.validator(o,f.value,S,f.source,r),w===!0?S():w===!1?S(o.message||o.field+" fails"):w instanceof Array?S(w):w instanceof Error&&S(w.message)),w&&w.then&&w.then(function(){return S()},function(q){return S(q)})},function(f){d(f)})},getType:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type="pattern"),typeof e.validator!="function"&&e.type&&!ue.hasOwnProperty(e.type))throw new Error(_("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if(typeof e.validator=="function")return e.validator;var n=Object.keys(e),u=n.indexOf("message");return u!==-1&&n.splice(u,1),n.length===1&&n[0]==="required"?ue.required:ue[this.getType(e)]||!1}},k.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ue[e]=n},k.warning=Kt,k.messages=Qe,k.validators=ue;const Gl={required:"%s \u5FC5\u586B",maxLength:"%s \u8D85\u51FA\u6700\u5927\u957F\u5EA6\u9650\u5236",minLength:"%s \u5C0F\u4E8E\u6700\u5C0F\u957F\u5EA6\u9650\u5236",string:{range:"%s \u4E0D\u5728\u6307\u5B9A\u957F\u5EA6\u5185"}};function Zt(t,e={}){const n=new k(t);return n.messages(Object.assign(Gl,e)),n}const Qt=new Or;class M{constructor(e){var F,b,B,f;this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=pt,this.removeSetting=Yt,this._callControlHooks("preInstance",e);const{controlName:n,controlIcon:u,controlType:a,controlFieldType:i,controlEventKeys:r,controlCustomEvents:l,name:d,setting:c,slots:g,slotPosition:v}=new.target;n&&u&&a||Ct(`The ${d} controlName,controlIcon,controlType is not define`),this.id=(F=e==null?void 0:e.id)!=null?F:x(10),this.name=n,this.icon=u,this.type=(b=e==null?void 0:e.type)!=null?b:a,this.props=new O(e==null?void 0:e.props,new.target.controlName),this.controlType=(B=e==null?void 0:e.controlType)!=null?B:"base",this.setting=j(c),this.fieldType=(f=e==null?void 0:e.fieldType)!=null?f:i,this.eventKeys=j(r),this.customEvents=j(l),this.slots=j(g),this.slotPosition=j(v),Promise.resolve().then(()=>{this._callControlHooks("postInstance",e)})}get rules(){const e=this.props.constructor.Rules;return e?new e(this.props):{}}_callControlHooks(...e){const[n,...u]=e;return Qt.emit(n,this,...u)}preUpdate(e,n){this._callControlHooks("preUpdateProps",e,n)}postUpdate(e,n){this._callControlHooks("postUpdateProps",e,n)}updateProps(e,n){this.preUpdate(e,n),Dr(this.props,e,n),this.postUpdate(e,n)}preValidate(){return le(this,null,function*(){const e=W({},this.rules),n=yield this._callControlHooks("preValidate",e),u=n[n.length-1];return u===!1?void 0:u})}validate(e,n){return le(this,null,function*(){const u=yield this.preValidate(),a=u!==void 0?u:W({},this.rules);Array.isArray(n)&&n.forEach(r=>{a.hasOwnProperty(r)&&delete a[r]});const i=Zt(a,e);try{return yield i.validate(this.props),!0}catch(r){throw r.control||(r.control=this),r}})}toDataBindModel(e=null){const n=this.fieldType,u=this.id,a=this.type,{dataBind:i,datasourceBind:r,optionConfig:l,caption:d,required:c,maxLength:g,options:v,encrypted:F,encryptedMode:b}=this.props;if(!n&&!i&&!r)return;const B={parentId:e,fieldType:n,controlId:u,caption:d,type:a,props:{}};switch(i&&(B.dataBind=i),l){case"datasource":case void 0:r&&(B.datasourceBind=r);break;case"custom":B.props.options=v;break}return c!==void 0&&(B.required=c),g!==void 0&&(B.maxLength=g),F!==void 0&&(B.encrypted=F),b!==void 0&&(B.encryptedMode=b),B}preToSchema(){this._callControlHooks("preToSchema",this)}toSchema(){return this.preToSchema(),{id:this.id,type:this.type,props:j(this.props),fieldType:this.fieldType,controlType:this.controlType}}static updateBasicControl(e,n){e==="setting"&&(n.add&&this.setting.push(...n.add),n.remove&&this.removeSettingItem(n.remove),n.update)}}M.mode="Designer",M.controlName="\u63A7\u4EF6",M.controlIcon="icon",M.controlType="control",M.controlEventKeys=[],M.controlCustomEvents=[],M.setting=[],M.__is_control__=!0,M.removeSettingItem=Yt,M.updateSettingItem=pt;function Yt(t){(Array.isArray(t)?t:[t]).forEach(n=>{var i,r,l;const u=typeof n!="string",a=(i=this.setting)==null?void 0:i.findIndex(d=>d.key===(u?n.key:n));a!==-1&&(u?this.setting[a].showItems=(r=this.setting[a].showItems)==null?void 0:r.filter(d=>!n.hideItems.includes(d)):this.setting.splice(a,1),u&&!((l=this.setting[a].showItems)!=null&&l.length)&&this.setting.splice(a,1))})}function pt(t,e){(typeof t=="string"?[t]:t).forEach(u=>{var i;const a=this.setting.find(r=>r.key===u);a&&(typeof e=="boolean"?a.visible=e:typeof e=="object"&&(((i=e.type)!=null?i:"replace")==="replace"?a.showItems=e.showItems:a.showItems.push(...e.showItems)))})}class U{constructor(e){var r,l,d,c,g;this.customEvents=[],this.parent=null;const{controlType:n,controlFieldType:u,name:a,controlCustomEvents:i}=new.target;n||Ct(`The ${a} controlType is not define`),this.id=(r=e==null?void 0:e.id)!=null?r:x(10),this.type=(l=e==null?void 0:e.type)!=null?l:n,this.props=new O(e==null?void 0:e.props),this.customEvents=i,this.controlType=(d=e==null?void 0:e.controlType)!=null?d:"base",this.fieldType=(c=e==null?void 0:e.fieldType)!=null?c:u,this.pageStatus=(g=e==null?void 0:e.pageStatus)!=null?g:We.UNKNOWN}get rules(){const e=this.props.constructor.RuntimeRules;if(e){const n=new e(this.props);return Array.from(n)}return[]}}U.mode="Runtime",U.controlType="control",U.__is_control__=!0,U.controlCustomEvents=[];function Ye(t){t.hasOwnProperty("optionConfig")||(this.optionConfig={type:"any"}),t.hasOwnProperty("options")||(this.options={type:"any"}),t.hasOwnProperty("datasourceBind")||(this.datasourceBind={type:"any"}),t.hasOwnProperty("options")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="custom")?this.options=[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{label:{type:"string",required:!0,message:h.getMessage("pleaseEnterLabel")},value:{type:"string",required:!0,message:h.getMessage("pleaseEnterValue")}}}},{type:"array",validator(e,n,u){n.length===0&&u(h.getMessage("optionIsRequired")),u()}},{type:"array",validator(e,n,u){const a=n.map(r=>r.value),i=Mr(a);a.length!==i.length?u(h.getMessage("optionIdIsRepeat")):u()},message:h.getMessage("optionIdIsRepeat")}]:t.hasOwnProperty("datasourceBind")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="datasource")&&(this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterSvcCode")},displayBoList:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",validator(e,n,u){n.length===0&&u(h.getMessage("pleaseBindAtLeastOneDisplayValue")),u()},message:h.getMessage("pleaseBindAtLeastOneDisplayValue")}],orders:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:h.getMessage("isNotBoolean")}}}}]}}])}function Zl(t,e,n=!1){this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:h.getMessage(n?"pleaseEnterDataCodeInDataSetting":"pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:h.getMessage(n?"pleaseEnterValueFieldCodeInDataSetting":"pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:h.getMessage(n?"pleaseEnterSvcCodeInDataSetting":"pleaseEnterSvcCode")},attributes:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{name:{type:"string",required:!0,message:h.getMessage("isNotString")},key:{type:"string",required:!0,message:h.getMessage("isNotString")},value:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",validator(u,a,i){a.length===0&&i(h.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")),i()},message:h.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")}]}}}],orders:[{type:"array",message:h.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:h.getMessage("isNotBoolean")}}}}]}}]}function en(t){return(t==null?void 0:t.dataCode)!==void 0&&(t==null?void 0:t.fieldCode)!==void 0}class pe extends ge{constructor(e){super(e),this.dataBind={},this.caption={type:"string",required:!0,message:h.getMessage("pleaseEnterCaption")},this.isHideCaption={type:"boolean"},this.labelPosition={type:"enum",enum:["top","left"]},this.defaultState={type:"enum",enum:["default","readonly"]},this.required={type:"boolean"},this.captionTip={type:"string",required:!1,message:h.getMessage("pleaseEnterCaptionTip")};const n={fieldCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:h.getMessage("pleaseEnterFieldCode")}};if(en(e.dataBind))this.dataBind={type:"object",required:!0,fields:j(n),message:h.getMessage("pleaseEnterFieldCode")};else{let u={type:"object",required:!0,fields:{},message:h.getMessage("pleaseEnterFieldCode")};Object.keys(e.dataBind).forEach(a=>{u.fields[a]={type:"object",required:!0,fields:j(n),message:h.getMessage("pleaseEnterFieldCode")}}),this.dataBind=u}e.isShowCaptionTip&&(this.captionTip.required=!0)}}class tn extends Ke{constructor(e){super(e);const n=e.isHide?!1:e.required;n&&this.push({type:"string",required:n,message:e.requiredMessage!==""?e.requiredMessage:h.getMessage("runtimeRequired",{caption:e.caption})})}}class ae extends O{constructor(e){var n,u,a,i,r,l,d,c,g,v;super(e),this.caption=(n=e==null?void 0:e.caption)!=null?n:"",this.isHideCaption=(u=e==null?void 0:e.isHideCaption)!=null?u:!1,this.isShowCaptionTip=(a=e==null?void 0:e.isShowCaptionTip)!=null?a:!1,this.captionTip=(i=e==null?void 0:e.captionTip)!=null?i:"",this.defaultState=(r=e==null?void 0:e.defaultState)!=null?r:"default",this.labelPosition=(l=e==null?void 0:e.labelPosition)!=null?l:"top",this.placeholder=(d=e==null?void 0:e.placeholder)!=null?d:"",this.required=(c=e==null?void 0:e.required)!=null?c:!1,this.requiredMessage=(g=e==null?void 0:e.requiredMessage)!=null?g:"",this.dataBind=new $(e==null?void 0:e.dataBind),this.defaultValue=(v=e==null?void 0:e.defaultValue)!=null?v:""}}ae.Rules=pe,ae.RuntimeRules=tn;class Ql extends pe{constructor(e){super(e),this.optionConfig={type:"enum",enum:["custom","datasource"],message:h.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:h.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")}],Ye.call(this,e)}}class nn extends M{constructor(e){super(e),this.controlType="form",this.props=new ae(e==null?void 0:e.props)}}nn.controlEventKeys=["on_change","on_focus","on_blur"];class Yl extends U{constructor(e){super(e),this.controlType="form",this.props=new ae(e==null?void 0:e.props)}}class ie extends O{constructor(e){super(e)}}const pl=1e4;class H extends M{constructor(e){super(e),this.controlType="layout";const{excludes:n,childrenMaxLength:u}=new.target;this.props=new ie(e==null?void 0:e.props),N(this,"children",e==null?void 0:e.children,void 0,"Designer"),this.excludes=j(n),this.childrenMaxLength=u}judgeExcludesChildren(e){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(e)}judgeJoinChildren(e){const n=this.judgeExcludesChildren(e);return n&&this.childrenMaxLength>this.children.length}validate(e,n){return le(this,null,function*(){return yield rt(H.prototype,this,"validate").call(this,e,n),yield Promise.all(this.children.map(u=>u.validate(e,n))),!0})}toDataBindModel(e=null){const n=super.toDataBindModel(),u=n?[n]:[];return this.children.reduce((a,i)=>{const r=i.toDataBindModel(e);if(Array.isArray(r)){const l=r.filter(d=>!!d);return[...a,...l]}return r&&a.push(r),a},u)}toSchema(){const e=super.toSchema(),n=this.children.map(u=>u.toSchema());return re(W({},e),{children:n})}}H.excludes=!1,H.childrenMaxLength=pl;class et extends U{constructor(e){super(e),this.controlType="layout",this.props=new ie(e==null?void 0:e.props),N(this,"children",e==null?void 0:e.children,void 0,"Runtime")}}class tt extends O{constructor(e,n,u){var a,i,r,l;super(n),N(this,"headers",n==null?void 0:n.headers,e,u),N(this,"footers",n==null?void 0:n.footers,e),this.pageIndex=(a=n==null?void 0:n.pageIndex)!=null?a:1,this.pageSize=(i=n==null?void 0:n.pageSize)!=null?i:20,this.pageSizeOptions=(r=n==null?void 0:n.pageSizeOptions)!=null?r:[20],this.totalCount=(l=n==null?void 0:n.totalCount)!=null?l:0}}class Ee extends M{constructor(e){super(e),this.controlType="list",this.props=new tt(this,e==null?void 0:e.props,"Designer")}validate(e,n){return le(this,null,function*(){return yield rt(Ee.prototype,this,"validate").call(this,e),yield Promise.all(this.props.headers.map(u=>u.validate(e,n))),!0})}toDataBindModel(){const e=super.toDataBindModel(),n=e?[e]:[],u=this.id;return this.props.headers.reduce((a,i)=>{const r=i.toDataBindModel(u);if(Array.isArray(r)){const l=r.filter(d=>!!d);return[...a,...l]}return r&&a.push(r),a},n)}toSchema(){var a,i;const e=super.toSchema(),n=this.props.headers.map(r=>r.toSchema()),u=(i=(a=this.props)==null?void 0:a.footers)==null?void 0:i.map(r=>{if(r)return r.toSchema()});return re(W({},e),{props:re(W({},this.props),{headers:n,footers:u})})}}Ee.controlFieldType=Q.LIST;class es extends U{constructor(e){super(e),this.controlType="list",this.props=new tt(this,e==null?void 0:e.props,"Runtime"),N(this,"children",e==null?void 0:e.children,void 0,"Runtime")}get length(){return this.children.length}}class nt extends ge{constructor(e){super(e),this.caption={type:"string",required:!0,message:h.getMessage("pleaseEnterCaption")},this.width={type:"number",required:!1,message:h.getMessage("pleaseEnterColumnWidth")},this.width.required=e.widthType==="px"}}class Be extends O{constructor(e){var n,u,a,i,r;super(e),this.width=(n=e==null?void 0:e.width)!=null?n:150,this.widthType=(e==null?void 0:e.widthType)||"auto",this.caption=(u=e==null?void 0:e.caption)!=null?u:"",this.fixed=(a=e==null?void 0:e.fixed)!=null?a:"none",this.autoWidth=new Pe(e==null?void 0:e.autoWidth),this.dataBind=new $(e==null?void 0:e.dataBind),this.sort=(i=e==null?void 0:e.sort)!=null?i:!0,this.align=e==null?void 0:e.align,this.colSpan=e==null?void 0:e.colSpan,this.autoHeight=(r=e==null?void 0:e.autoHeight)!=null?r:!1}}Be.Rules=nt;class ts extends nt{constructor(e){super(e),this.optionConfig={type:"enum",enum:["custom","datasource","none"],message:h.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:h.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:h.getMessage("isNotObject")}],Ye.call(this,e)}}class ns extends M{constructor(e){super(e),this.controlType="column",this.props=new Be(e==null?void 0:e.props),N(this,"children",e==null?void 0:e.children,void 0,"Designer")}toSchema(){const e=super.toSchema();return re(W({},e),{children:this.children?this.children.map(n=>n.toSchema()):[]})}}class us extends U{constructor(e){super(e),this.controlType="column",this.props=new Be(e==null?void 0:e.props),N(this,"children",e==null?void 0:e.children,void 0,"Runtime")}}class ut extends ie{constructor(e){super(e),this.dataBind=new $(e==null?void 0:e.dataBind)}}class as extends H{constructor(e){super(e),this.controlType="search",this.props=new ut(e==null?void 0:e.props)}}class is extends et{constructor(e){super(e),this.controlType="search",this.props=new ut(e==null?void 0:e.props)}}class at extends ie{constructor(e){super(e)}}class rs extends H{constructor(e){super(e),this.controlType="wrap",this.props=new at(e==null?void 0:e.props)}}class ls extends et{constructor(e){super(e),this.controlType="wrap",this.props=new at(e==null?void 0:e.props)}}function ss(t){t.hasOwnProperty("linkOperationOption")&&t.hasOwnProperty("showLinkOperation")&&t.showLinkOperation&&(this.linkOperationOption=[{type:"object",fields:{formKey:{type:"string",required:!0,message:h.getMessage("pleaseEnterForm")}}}])}s.AMOUNT_TYPE=He,s.AddressValue=fl,s.AmountDataBind=sl,s.AmountValue=ol,s.AutoWidth=Pe,s.BaseControlProperty=ae,s.BaseControlPropertyRules=pe,s.BaseControlPropertyRuntimeRules=tn,s.BaseStyle=Wt,s.COMMON_SETTING_TYPE=Ht,s.CalcDataBind=hl,s.CalcValue=ml,s.ColumnControlProperty=Be,s.ColumnControlPropertyRules=nt,s.ColumnOptionAndDataSourcePropertyRules=ts,s.CustomAttributeItem=Ne,s.CustomPermissionItem=vl,s.DataBind=$,s.DataSourceBind=he,s.DataSourceDataSetValue=Ot,s.DataSourceOrderItem=Oe,s.DataSourceParamItem=Qr,s.DataStorageDoc=Tr,s.DesignerColumnControl=ns,s.DesignerControl=M,s.DesignerFormControl=nn,s.DesignerLayoutControl=H,s.DesignerListControl=Ee,s.DesignerSearchControl=as,s.DesignerWrapControl=rs,s.DisplayBoListItem=je,s.FieldBindItem=Pt,s.FieldFilterCondition=te,s.FieldFilterConditions=z,s.FillBackBind=ul,s.FillPayloadBind=nl,s.FormBind=fe,s.FormSelectBind=Jr,s.ImageOptionSetting=kt,s.JoinRelation=Zr,s.Language=al,s.LayoutControlProperty=ie,s.LeftVariable=xt,s.LinkOperationOption=pr,s.ListBind=Xr,s.ListControlProperty=tt,s.MetaAutoWidth=zr,s.MetaRowHeight=Kr,s.MetaWidth=de,s.MultistageFillingItem=jt,s.ObjectDataBind=me,s.OperationItem=gl,s.OptObject=El,s.OptionAndDataSourcePropertyRules=Ql,s.OptionSetting=ke,s.OrganizationDataSourceBind=el,s.PAGE_STATUS=We,s.Property=O,s.PropertyRules=ge,s.PropertyRuntimeRules=Ke,s.RangeDataBind=cl,s.RangeDateValue=dl,s.RegisterControls=ee,s.RegularRules=il,s.RightVariable=xe,s.RowHeight=Ve,s.RowStyleRule=Bl,s.RowStyleRuleScript=Cl,s.RuntimeColumnControl=us,s.RuntimeControl=U,s.RuntimeFormControl=Yl,s.RuntimeLayoutControl=et,s.RuntimeListControl=es,s.RuntimeSearchControl=is,s.RuntimeWrapControl=ls,s.SearchControlProperty=ut,s.SelectedContentConfig=Yr,s.SubListItem=Vt,s.SubListPageConfig=Gr,s.SuperDataSourceBind=Ut,s.TreeDataSourceBind=tl,s.ViewOperationItem=yl,s.WrapControlProperty=at,s.controlHooksEmitter=Qt,s.createValidator=Zt,s.defineArrayParent=Rt,s.defineControlArrayToProperty=N,s.defineParent=Le,s.initImageOptions=ll,s.initLinkOperationRules=ss,s.initOptionAndDataSourceRules=Ye,s.initOptions=rl,s.initSuperDataSourceRules=Zl,s.isDataBind=en,s.setPropertyDontEnum=ce,Object.defineProperty(s,"__esModule",{value:!0})});
|
|
@@ -4,7 +4,17 @@ import { ColumnControlsKeys, ColumnControlSchema } from '../../type';
|
|
|
4
4
|
declare class ColumnControl extends DesignerControl {
|
|
5
5
|
readonly controlType = "column";
|
|
6
6
|
readonly props: ColumnControlProperty;
|
|
7
|
+
children: DesignerControl[];
|
|
7
8
|
constructor(props?: Partial<ColumnControlSchema<ColumnControlsKeys>>);
|
|
9
|
+
toSchema(): {
|
|
10
|
+
children: import("../../type").BaseControlSchema<never, import("../BaseControl/property").default>[];
|
|
11
|
+
id: string;
|
|
12
|
+
type: never;
|
|
13
|
+
props: import("../BaseControl/property").default;
|
|
14
|
+
controlType: import("../../type").BaseControlTypes;
|
|
15
|
+
fieldType?: import("@byteluck-fe/model-driven-shared/dist/types").FieldTypes | undefined;
|
|
16
|
+
pageStatus?: import("../..").PAGE_STATUS | undefined;
|
|
17
|
+
};
|
|
8
18
|
}
|
|
9
19
|
export default ColumnControl;
|
|
10
20
|
export { ColumnControl as DesignerColumnControl };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property, PropertyRules } from '../BaseControl';
|
|
1
|
+
import { Property, PropertyRules, RuntimeControl } from '../BaseControl';
|
|
2
2
|
import { RuleItem } from 'async-validator';
|
|
3
3
|
import { DataBind, DataSourceBind, OptionSetting, AutoWidth } from '../../framework';
|
|
4
4
|
declare class ColumnControlPropertyRules extends PropertyRules {
|
|
@@ -57,6 +57,7 @@ declare class ColumnControlProperty extends Property {
|
|
|
57
57
|
* @defaultValue false
|
|
58
58
|
*/
|
|
59
59
|
autoHeight: boolean;
|
|
60
|
+
children: RuntimeControl[];
|
|
60
61
|
constructor(props?: Partial<ColumnControlProperty>);
|
|
61
62
|
}
|
|
62
63
|
declare class ColumnOptionAndDataSourcePropertyRules extends ColumnControlPropertyRules {
|
|
@@ -4,6 +4,7 @@ import { ColumnControlsKeys, ColumnControlSchema } from '../../type';
|
|
|
4
4
|
declare class ColumnControl extends RuntimeControl {
|
|
5
5
|
readonly controlType = "column";
|
|
6
6
|
readonly props: ColumnControlProperty;
|
|
7
|
+
children: RuntimeControl[];
|
|
7
8
|
constructor(props?: Partial<ColumnControlSchema<ColumnControlsKeys>>);
|
|
8
9
|
}
|
|
9
10
|
export default ColumnControl;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-core",
|
|
3
|
-
"version": "2.20.0-beta.
|
|
3
|
+
"version": "2.20.0-beta.4",
|
|
4
4
|
"description": "model engine core",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"postpublish": "node ../../scripts/postpublish.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@byteluck-fe/model-driven-shared": "2.20.0-beta.
|
|
29
|
+
"@byteluck-fe/model-driven-shared": "2.20.0-beta.4",
|
|
30
30
|
"async-validator": "3.5.1",
|
|
31
31
|
"tslib": "^2.1.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "98aa9b83e0a3583c9607edef94d8e0a5393c27fa"
|
|
34
34
|
}
|