@byteluck-fe/model-driven-core 2.7.0-beta.4 → 2.8.0-alpha.1

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.
@@ -501,10 +501,12 @@ export { Control as DesignerControl };
501
501
  keys
502
502
  ];
503
503
  deleteKeys.forEach(function(deleteKey) {
504
+ var _this_setting;
504
505
  // 是否存在子项
505
506
  var isHasItem = typeof deleteKey !== "string";
507
+ // 判断setting是否是自定义控件setting项
506
508
  // @ts-ignore
507
- var settingIndex = _this.setting.findIndex(function(option) {
509
+ var settingIndex = (_this_setting = _this.setting) === null || _this_setting === void 0 ? void 0 : _this_setting.findIndex(function(option) {
508
510
  return option.key === (isHasItem ? deleteKey.key : deleteKey);
509
511
  });
510
512
  // 移除对应选项
@@ -41,13 +41,6 @@ function _inherits(subClass, superClass) {
41
41
  });
42
42
  if (superClass) _set_prototype_of(subClass, superClass);
43
43
  }
44
- function _instanceof(left, right) {
45
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
46
- return !!right[Symbol.hasInstance](left);
47
- } else {
48
- return left instanceof right;
49
- }
50
- }
51
44
  function _possible_constructor_return(self, call) {
52
45
  if (call && (_type_of(call) === "object" || typeof call === "function")) {
53
46
  return call;
@@ -93,6 +86,7 @@ import { RulesMessage, JSONCopy } from "@byteluck-fe/model-driven-shared";
93
86
  import { Property, PropertyRules, PropertyRuntimeRules } from "../BaseControl";
94
87
  import { initOptionAndDataSourceRules } from "../initOptionAndDataSourceRules";
95
88
  import { DataBind } from "../../framework";
89
+ import { isDataBind } from "../../framework/isDataBind";
96
90
  var BaseControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
97
91
  "use strict";
98
92
  _inherits(BaseControlPropertyRules, PropertyRules);
@@ -151,7 +145,8 @@ var BaseControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
151
145
  message: RulesMessage.getMessage("pleaseEnterFieldCode")
152
146
  }
153
147
  };
154
- if (_instanceof(props.dataBind, DataBind)) {
148
+ // if (props.dataBind instanceof DataBind) {
149
+ if (isDataBind(props.dataBind)) {
155
150
  _this.dataBind = {
156
151
  type: "object",
157
152
  required: true,
@@ -382,13 +382,22 @@ var ListControl = /*#__PURE__*/ function(DesignerControl) {
382
382
  {
383
383
  key: "toSchema",
384
384
  value: function toSchema() {
385
+ var _this_props_footers, _this_props;
385
386
  var superSchema = _get(_get_prototype_of(ListControl.prototype), "toSchema", this).call(this);
386
387
  var headers = this.props.headers.map(function(item) {
387
388
  return item.toSchema();
388
389
  });
390
+ var footers = (_this_props = this.props) === null || _this_props === void 0 ? void 0 : (_this_props_footers = _this_props.footers) === null || _this_props_footers === void 0 ? void 0 : _this_props_footers.map(function(item) {
391
+ if (item) {
392
+ return item.toSchema();
393
+ } else {
394
+ return undefined;
395
+ }
396
+ });
389
397
  return _object_spread_props(_object_spread({}, superSchema), {
390
398
  props: _object_spread_props(_object_spread({}, this.props), {
391
- headers: headers
399
+ headers: headers,
400
+ footers: footers
392
401
  })
393
402
  });
394
403
  }
@@ -93,7 +93,20 @@ var ListControlProperty = /*#__PURE__*/ function(Property) {
93
93
  var _this;
94
94
  _this = _super.call(this, props);
95
95
  _define_property(_assert_this_initialized(_this), "headers", void 0);
96
+ _define_property(_assert_this_initialized(_this), "footers", void 0);
97
+ _define_property(_assert_this_initialized(_this), "pageIndex", void 0);
98
+ _define_property(_assert_this_initialized(_this), "pageSize", void 0);
99
+ _define_property(_assert_this_initialized(_this), "pageSizeOptions", void 0);
96
100
  defineControlArrayToProperty(_assert_this_initialized(_this), "headers", props === null || props === void 0 ? void 0 : props.headers, parent);
101
+ defineControlArrayToProperty(_assert_this_initialized(_this), "footers", props === null || props === void 0 ? void 0 : props.footers, parent);
102
+ var _props_pageIndex;
103
+ _this.pageIndex = (_props_pageIndex = props === null || props === void 0 ? void 0 : props.pageIndex) !== null && _props_pageIndex !== void 0 ? _props_pageIndex : 1;
104
+ var _props_pageSize;
105
+ _this.pageSize = (_props_pageSize = props === null || props === void 0 ? void 0 : props.pageSize) !== null && _props_pageSize !== void 0 ? _props_pageSize : 20;
106
+ var _props_pageSizeOptions;
107
+ _this.pageSizeOptions = (_props_pageSizeOptions = props === null || props === void 0 ? void 0 : props.pageSizeOptions) !== null && _props_pageSizeOptions !== void 0 ? _props_pageSizeOptions : [
108
+ 20
109
+ ];
97
110
  return _this;
98
111
  }
99
112
  return ListControlProperty;
@@ -129,13 +129,29 @@ export var RegisterControls = /*#__PURE__*/ function() {
129
129
  return _this.createControl(item, beforeCreateInstance);
130
130
  });
131
131
  }
132
- // @ts-ignore
133
- if (this.isListControl(schema) && schema.props.headers) {
132
+ if (this.isListControl(schema)) {
134
133
  // @ts-ignore
135
- schema.props.headers = schema.props.headers.map(function(item) {
136
- return(// @ts-ignore
137
- _this.createControl(item, beforeCreateInstance));
138
- });
134
+ var props = schema.props;
135
+ if (props.headers) {
136
+ // @ts-ignore
137
+ props.headers = props.headers.map(function(item) {
138
+ return(// @ts-ignore
139
+ _this.createControl(item, beforeCreateInstance));
140
+ });
141
+ }
142
+ // list类型的控件,允许存在footer
143
+ if (props.footers) {
144
+ // @ts-ignore
145
+ props.footers = props.footers.map(function(item) {
146
+ var newctl;
147
+ // footers 允许有空存在
148
+ if (item) {
149
+ // @ts-ignore
150
+ newctl = _this.createControl(item, beforeCreateInstance);
151
+ }
152
+ return newctl;
153
+ });
154
+ }
139
155
  }
140
156
  // @ts-ignore
141
157
  var Constructor = this.getControlFormType(schema.type);
@@ -41,13 +41,6 @@ function _inherits(subClass, superClass) {
41
41
  });
42
42
  if (superClass) _set_prototype_of(subClass, superClass);
43
43
  }
44
- function _instanceof(left, right) {
45
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
46
- return !!right[Symbol.hasInstance](left);
47
- } else {
48
- return left instanceof right;
49
- }
50
- }
51
44
  function _possible_constructor_return(self, call) {
52
45
  if (call && (_type_of(call) === "object" || typeof call === "function")) {
53
46
  return call;
@@ -112,12 +105,18 @@ export * from "./RegisterControls";
112
105
  * @defaultValue ''
113
106
  * @public
114
107
  */ _define_property(this, "fieldType", void 0);
108
+ /**
109
+ * 表别名
110
+ * @defaultValue undefined
111
+ * @public
112
+ */ _define_property(this, "aliasCode", void 0);
115
113
  var _props_dataCode;
116
114
  this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
117
115
  var _props_fieldCode;
118
116
  this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
119
117
  var _props_fieldType;
120
118
  this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : "";
119
+ this.aliasCode = props === null || props === void 0 ? void 0 : props.aliasCode;
121
120
  };
122
121
  export var AutoWidth = function AutoWidth(props) {
123
122
  "use strict";
@@ -410,6 +409,18 @@ export var RightVariable = function RightVariable(props) {
410
409
  this.leftVariableBo = new LeftVariable(props === null || props === void 0 ? void 0 : props.leftVariableBo);
411
410
  this.rightVariableBo = new RightVariable(props === null || props === void 0 ? void 0 : props.rightVariableBo);
412
411
  };
412
+ export var JoinRelation = function JoinRelation(props) {
413
+ "use strict";
414
+ _class_call_check(this, JoinRelation);
415
+ _define_property(this, "aliasCode", void 0);
416
+ _define_property(this, "datasourceBind", void 0);
417
+ _define_property(this, "relationFields", void 0);
418
+ var _props_aliasCode;
419
+ this.aliasCode = (_props_aliasCode = props === null || props === void 0 ? void 0 : props.aliasCode) !== null && _props_aliasCode !== void 0 ? _props_aliasCode : "";
420
+ this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
421
+ var _props_relationFields;
422
+ this.relationFields = (_props_relationFields = props === null || props === void 0 ? void 0 : props.relationFields) !== null && _props_relationFields !== void 0 ? _props_relationFields : [];
423
+ };
413
424
  /**
414
425
  * 数据填充项
415
426
  * @public
@@ -533,7 +544,7 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
533
544
  /**
534
545
  * 给filters和orders赋值
535
546
  * */ function callFiltersAndOrders(props) {
536
- var _props_filters, _props_viewFilters;
547
+ var _props_filters, _props_viewFilters, _props_orders;
537
548
  var _props_filters_map;
538
549
  this.filters = (_props_filters_map = props === null || props === void 0 ? void 0 : (_props_filters = props.filters) === null || _props_filters === void 0 ? void 0 : _props_filters.map(function(item) {
539
550
  if (item.children !== undefined) {
@@ -548,13 +559,11 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
548
559
  }
549
560
  return new FieldFilterCondition(item);
550
561
  })) !== null && _props_viewFilters_map !== void 0 ? _props_viewFilters_map : [];
551
- if (_instanceof(this, DataSourceBind) || _instanceof(this, FillPayloadBind)) {
552
- var _props_orders;
553
- var _props_orders_map;
554
- this.orders = (_props_orders_map = props === null || props === void 0 ? void 0 : (_props_orders = props.orders) === null || _props_orders === void 0 ? void 0 : _props_orders.map(function(item) {
555
- return new DataSourceOrderItem(item);
556
- })) !== null && _props_orders_map !== void 0 ? _props_orders_map : [];
557
- }
562
+ var _props_orders_map;
563
+ this.orders = (_props_orders_map = props === null || props === void 0 ? void 0 : (_props_orders = props.orders) === null || _props_orders === void 0 ? void 0 : _props_orders.map(function(item) {
564
+ return new DataSourceOrderItem(item);
565
+ })) !== null && _props_orders_map !== void 0 ? _props_orders_map : [];
566
+ // }
558
567
  }
559
568
  /**
560
569
  * 数据源绑定配置
@@ -669,6 +678,7 @@ export var LinkOperationOption = function LinkOperationOption(props) {
669
678
  _define_property(this, "confirmMessage", void 0);
670
679
  _define_property(this, "defaultState", void 0);
671
680
  _define_property(this, "formKey", void 0);
681
+ _define_property(this, "formType", void 0);
672
682
  _define_property(this, "icon", void 0);
673
683
  _define_property(this, "needConfirm", void 0);
674
684
  _define_property(this, "openType", void 0);
@@ -685,6 +695,7 @@ export var LinkOperationOption = function LinkOperationOption(props) {
685
695
  this.defaultState = (_props_defaultState = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _props_defaultState !== void 0 ? _props_defaultState : "default";
686
696
  var _props_formKey;
687
697
  this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : undefined;
698
+ this.formType = props === null || props === void 0 ? void 0 : props.formType;
688
699
  var _props_icon;
689
700
  this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : "iconliulan1";
690
701
  var _props_needConfirm;
@@ -988,7 +999,7 @@ export function initImageOptions(options) {
988
999
  var _props_amount;
989
1000
  this.amount = (_props_amount = props === null || props === void 0 ? void 0 : props.amount) !== null && _props_amount !== void 0 ? _props_amount : "";
990
1001
  var _props_currency;
991
- this.currency = (_props_currency = props === null || props === void 0 ? void 0 : props.currency) !== null && _props_currency !== void 0 ? _props_currency : AMOUNT_TYPE.CNY;
1002
+ this.currency = (_props_currency = props === null || props === void 0 ? void 0 : props.currency) !== null && _props_currency !== void 0 ? _props_currency : "CNY";
992
1003
  };
993
1004
  /**
994
1005
  * 日期区间数据绑定项
@@ -1174,7 +1185,6 @@ export var COMMON_SETTING_TYPE;
1174
1185
  COMMON_SETTING_TYPE["VIEW_FORM_MODEL_TYPE"] = "viewFormModelType";
1175
1186
  COMMON_SETTING_TYPE["SERVER_PAGINATION"] = "serverPagination";
1176
1187
  COMMON_SETTING_TYPE["IS_SHOW_CAPTION_TIP"] = "isShowCaptionTip";
1177
- COMMON_SETTING_TYPE["IS_SHOW_WATERMARK"] = "isShowWatermark";
1178
1188
  COMMON_SETTING_TYPE["ENCRYPTED"] = "encrypted";
1179
1189
  COMMON_SETTING_TYPE["IS_INLINE_EDIT"] = "isInlineEdit";
1180
1190
  COMMON_SETTING_TYPE["REVISIONS_MODE"] = "revisionsMode";
@@ -1284,3 +1294,21 @@ export var BaseStyle = function BaseStyle(props) {
1284
1294
  var _props_heightConfig;
1285
1295
  this.heightConfig = (_props_heightConfig = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && _props_heightConfig !== void 0 ? _props_heightConfig : "fill";
1286
1296
  };
1297
+ export var OptObject = function OptObject(props) {
1298
+ "use strict";
1299
+ _class_call_check(this, OptObject);
1300
+ /**
1301
+ * 操作项编码
1302
+ * @defaultValue ''
1303
+ * @public
1304
+ */ _define_property(this, "optCode", void 0);
1305
+ /**
1306
+ * 操作项类型
1307
+ * @defaultValue ''
1308
+ * @public
1309
+ */ _define_property(this, "optType", void 0);
1310
+ var _props_optCode;
1311
+ this.optCode = (_props_optCode = props === null || props === void 0 ? void 0 : props.optCode) !== null && _props_optCode !== void 0 ? _props_optCode : "";
1312
+ var _props_optType;
1313
+ this.optType = (_props_optType = props === null || props === void 0 ? void 0 : props.optType) !== null && _props_optType !== void 0 ? _props_optType : "";
1314
+ };
@@ -0,0 +1,7 @@
1
+ export function isDataBind(dataBind) {
2
+ if ((dataBind === null || dataBind === void 0 ? void 0 : dataBind.dataCode) !== undefined && (dataBind === null || dataBind === void 0 ? void 0 : dataBind.fieldCode) !== undefined) {
3
+ return true;
4
+ } else {
5
+ return false;
6
+ }
7
+ }
package/dist/esm/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from "./common";
2
2
  export * from "./framework";
3
3
  export * from "./type";
4
+ export * from "./framework/isDataBind";
package/dist/index.umd.js CHANGED
@@ -1 +1 @@
1
- var Nl=Object.defineProperty,Ul=Object.defineProperties;var jl=Object.getOwnPropertyDescriptors;var un=Object.getOwnPropertySymbols,Hl=Object.getPrototypeOf,kl=Object.prototype.hasOwnProperty,Wl=Object.prototype.propertyIsEnumerable,Tl=Reflect.get;var an=(s,C,I)=>C in s?Nl(s,C,{enumerable:!0,configurable:!0,writable:!0,value:I}):s[C]=I,Z=(s,C)=>{for(var I in C||(C={}))kl.call(C,I)&&an(s,I,C[I]);if(un)for(var I of un(C))Wl.call(C,I)&&an(s,I,C[I]);return s},Fe=(s,C)=>Ul(s,jl(C));var rt=(s,C,I)=>Tl(Hl(s),I,C);var le=(s,C,I)=>new Promise((Ce,se)=>{var De=U=>{try{Q(I.next(U))}catch(Y){se(Y)}},be=U=>{try{Q(I.throw(U))}catch(Y){se(Y)}},Q=U=>U.done?Ce(U.value):Promise.resolve(U.value).then(De,be);Q((I=I.apply(s,C)).next())});(function(s,C){typeof exports=="object"&&typeof module!="undefined"?C(exports):typeof define=="function"&&define.amd?define(["exports"],C):(s=typeof globalThis!="undefined"?globalThis:s||self,C(s.modelDrivenCore={}))})(this,function(s){"use strict";var C="\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",De="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",be="{caption}\u5FC5\u586B",Q="\u8BF7\u8F93\u5165\u6807\u9898",U="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Y="\u8BF7\u8F93\u5165\u884C\u6807\u9898",rn="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",ln="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",sn="\u8BF7\u7ED1\u5B9A\u8868\u5355",on="\u8BF7\u7ED1\u5B9A\u5217\u8868",cn="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",dn="\u8BF7\u8F93\u5165\u663E\u793A\u503C",fn="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",hn="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",mn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",gn="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",yn="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",En="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",vn="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",Bn="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",An="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Fn="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",Cn="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",Dn="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",bn="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",wn="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",Sn="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",In="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Rn="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",Mn="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",_n="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",Ln="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",$n="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",qn="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Pn="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Vn="\u8BF7\u9009\u62E9\u7701",On="\u8BF7\u9009\u62E9\u5E02",xn="\u8BF7\u9009\u62E9\u533A",Nn="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Un="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",jn="\u8BF7\u8F93\u5165\u5217\u5BBD",Hn="\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",Wn="\u8BF7\u9009\u62E9\u63A7\u4EF6",Tn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",Kn="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",zn="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Xn="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Jn="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Gn="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Zn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Qn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Yn="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",pn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",eu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",tu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",nu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",uu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",au="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",iu="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",ru="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",lu="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",su="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",ou="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",cu="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",du={isNotNumber:C,isNotString:I,isNotObject:Ce,isNotArray:se,isNotBoolean:De,runtimeRequired:be,pleaseEnterCaption:Q,pleaseEnterCaptionTip:U,pleaseEnterRowCaption:Y,pleaseEnterPlaceholder:rn,pleaseEnterFieldCode:ln,pleaseEnterForm:sn,pleaseEnterList:on,pleaseEnterProcess:cn,pleaseEnterLabel:dn,pleaseEnterValue:fn,bizKeyNotBindFiled:hn,pleaseSelectOneField:mn,pleaseEnterNumberRange:gn,pleaseEnterAValueGreaterThanMin:yn,pleaseEnterAValueLessThanMax:En,numberRangeSetError:vn,stringRangeError:Bn,attachmentMaxSize:An,pleaseEnterTotalScoreSetting:Fn,theTotalScoreMustNotBeLessThan1:Cn,scoreDefaultValueRange:Dn,attachmentLimitError:bn,PleaseReselectTheOptionalQuantity:wn,TheMaximumLengthIsGreaterThanTheMinimumLength:Sn,TheMinimumLengthIsGreaterThanTheMaximumLength:In,PleaseSelectTheCorrectOptionSettings:Rn,optionIdIsRepeat:Mn,optionIsRequired:_n,pleaseEnterDataCode:Ln,pleaseEnterValueFieldCode:$n,pleaseEnterSvcCode:qn,pleaseBindAtLeastOneDisplayValue:Pn,pleaseSelectProvince:Vn,pleaseSelectCity:On,pleaseSelectDistrict:xn,limitRowsCannotBeLessThan0:Nn,TheNumberOfRowsCannotBeLessThanMinRows:Un,pleaseEnterColumnWidth:jn,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Hn,pleaseCompleteAllRulesAndConditions:kn,pleaseSelectControl:Wn,pleaseSelectAtLeastOneColumn:Tn,pleaseSelectFillBackMode:Kn,pleaseSelectDashboard:zn,rootNodeIsRequired:Xn,theViewNameCannotBeEmpty:Jn,pleaseSelectOcrType:Gn,pleaseSelectAtLeastOneFieldToFillIn:Zn,pleaseChooseAtLeastOne:Qn,pleaseEnterButtonContent:Yn,pleaseEnterDataCodeInDataSetting:pn,pleaseEnterValueFieldCodeInDataSetting:eu,pleaseEnterSvcCodeInDataSetting:tu,pleaseBindAtLeastOneDisplayValueInDataSetting:nu,rootNodeIsRequiredInDataSetting:uu,pleaseEnterMaxHeight:au,pleaseEnter:iu,pleaseEnterWatermark:ru,pleaseEnterFileName:lu,pleaseUploadAtLeastOnePrintTemplate:su,pleaseAssignBusiness:ou,pleaseAssignExternal:cu},fu="Please enter a number",hu="Please enter a string",mu="Please enter an object",gu="Please enter an array",yu="Please enter a boolean",Eu="{caption} Required",vu="Please enter the title",Bu="Please enter the bubble prompt",Au="Please enter the row title",Fu="Please enter the prompt text",Cu="Please bind data items",Du="Please bind the form",bu="Please bind the list",wu="Please bind the process",Su="Please enter the displayed value",Iu="Please enter the stored value",Ru="The document number is not bound to the data item",Mu="Please select at least one display field",_u="Please enter a value greater than or equal to {min} and less than or equal to {max}",Lu="Please enter a value greater than or equal to {min}",$u="Please enter a value less than or equal to {max}",qu="The value range is set incorrectly",Pu="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",Vu="The attachment size must be between 0MB and 1000MB",Ou="Please fill in the total score setting",xu="The total score cannot be less than 1",Nu="The default value must be between {min} and {max}",Uu="The number of attachments uploaded must be between {min} and {max}",ju="Please re-select the optional quantity",Hu="The maximum length of the control must be greater than the minimum length",ku="The minimum length of the control must be less than the maximum length",Wu="Please select the correct option setting",Tu="Option ID cannot be repeated",Ku="Please enter at least one option",zu="Please bind the data source",Xu="Please bind the stored value",Ju="Please bind the service",Gu="At least one display value must be bound",Zu="Please select a province",Qu="Please select a city",Yu="Please select a district",pu="The minimum number of lines to fill in cannot be less than 0",ea="The number of rows cannot be less than {min} rows",ta="Please enter the column width",na="Please set the logical relationship of all rule conditions",ua="Please complete all rules and conditions",aa="please select control",ia="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",ra="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",la="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",sa="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",oa="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",ca="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",da="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",fa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",ha="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",ma="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",ga="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ya="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Ea="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",va="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Ba="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Aa="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Fa="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Ca="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Da={isNotNumber:fu,isNotString:hu,isNotObject:mu,isNotArray:gu,isNotBoolean:yu,runtimeRequired:Eu,pleaseEnterCaption:vu,pleaseEnterCaptionTip:Bu,pleaseEnterRowCaption:Au,pleaseEnterPlaceholder:Fu,pleaseEnterFieldCode:Cu,pleaseEnterForm:Du,pleaseEnterList:bu,pleaseEnterProcess:wu,pleaseEnterLabel:Su,pleaseEnterValue:Iu,bizKeyNotBindFiled:Ru,pleaseSelectOneField:Mu,pleaseEnterNumberRange:_u,pleaseEnterAValueGreaterThanMin:Lu,pleaseEnterAValueLessThanMax:$u,numberRangeSetError:qu,stringRangeError:Pu,attachmentMaxSize:Vu,pleaseEnterTotalScoreSetting:Ou,theTotalScoreMustNotBeLessThan1:xu,scoreDefaultValueRange:Nu,attachmentLimitError:Uu,PleaseReselectTheOptionalQuantity:ju,TheMaximumLengthIsGreaterThanTheMinimumLength:Hu,TheMinimumLengthIsGreaterThanTheMaximumLength:ku,PleaseSelectTheCorrectOptionSettings:Wu,optionIdIsRepeat:Tu,optionIsRequired:Ku,pleaseEnterDataCode:zu,pleaseEnterValueFieldCode:Xu,pleaseEnterSvcCode:Ju,pleaseBindAtLeastOneDisplayValue:Gu,pleaseSelectProvince:Zu,pleaseSelectCity:Qu,pleaseSelectDistrict:Yu,limitRowsCannotBeLessThan0:pu,TheNumberOfRowsCannotBeLessThanMinRows:ea,pleaseEnterColumnWidth:ta,pleaseSetTheLogicalRelationshipOfAllRuleConditions:na,pleaseCompleteAllRulesAndConditions:ua,pleaseSelectControl:aa,pleaseSelectDashboard:ia,theViewNameCannotBeEmpty:ra,pleaseSelectOcrType:la,pleaseSelectAtLeastOneFieldToFillIn:sa,pleaseChooseAtLeastOne:oa,pleaseEnterButtonContent:ca,pleaseEnterDataCodeInDataSetting:da,pleaseEnterValueFieldCodeInDataSetting:fa,pleaseEnterSvcCodeInDataSetting:ha,pleaseBindAtLeastOneDisplayValueInDataSetting:ma,rootNodeIsRequiredInDataSetting:ga,pleaseEnterMaxHeight:ya,pleaseEnter:Ea,pleaseEnterWatermark:va,pleaseEnterFileName:Ba,pleaseUploadAtLeastOnePrintTemplate:Aa,pleaseAssignBusiness:Fa,pleaseAssignExternal:Ca},ba="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",wa="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Sa="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ia="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ra="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ma="{caption}\u5FC5\u9808",_a="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",La="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",$a="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",qa="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Pa="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Va="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Oa="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",xa="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Na="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ua="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ja="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",Ha="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ka="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Wa="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ta="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ka="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",za="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Xa="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Ja="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Ga="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Za="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Qa="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ya="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",pa="\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",ei="\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",ti="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ni="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",ui="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",ai="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ii="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ri="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",li="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",si="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",oi="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ci="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",di="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",fi="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",hi="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",mi="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",gi="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",yi="please select control",Ei="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",vi="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Bi="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Ai="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Fi="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Ci="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Di="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",bi="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",wi="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Si="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Ii="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Ri="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Mi="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",_i="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Li="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",$i="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",qi="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Pi="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Vi={isNotNumber:ba,isNotString:wa,isNotObject:Sa,isNotArray:Ia,isNotBoolean:Ra,runtimeRequired:Ma,pleaseEnterCaption:_a,pleaseEnterCaptionTip:La,pleaseEnterRowCaption:$a,pleaseEnterPlaceholder:qa,pleaseEnterFieldCode:Pa,pleaseEnterForm:Va,pleaseEnterList:Oa,pleaseEnterProcess:xa,pleaseEnterLabel:Na,pleaseEnterValue:Ua,bizKeyNotBindFiled:ja,pleaseSelectOneField:Ha,pleaseEnterNumberRange:ka,pleaseEnterAValueGreaterThanMin:Wa,pleaseEnterAValueLessThanMax:Ta,numberRangeSetError:Ka,stringRangeError:za,attachmentMaxSize:Xa,pleaseEnterTotalScoreSetting:Ja,theTotalScoreMustNotBeLessThan1:Ga,scoreDefaultValueRange:Za,attachmentLimitError:Qa,PleaseReselectTheOptionalQuantity:Ya,TheMaximumLengthIsGreaterThanTheMinimumLength:pa,TheMinimumLengthIsGreaterThanTheMaximumLength:ei,PleaseSelectTheCorrectOptionSettings:ti,optionIdIsRepeat:ni,optionIsRequired:ui,pleaseEnterDataCode:ai,pleaseEnterValueFieldCode:ii,pleaseEnterSvcCode:ri,pleaseBindAtLeastOneDisplayValue:li,pleaseSelectProvince:si,pleaseSelectCity:oi,pleaseSelectDistrict:ci,limitRowsCannotBeLessThan0:di,TheNumberOfRowsCannotBeLessThanMinRows:fi,pleaseEnterColumnWidth:hi,pleaseSetTheLogicalRelationshipOfAllRuleConditions:mi,pleaseCompleteAllRulesAndConditions:gi,pleaseSelectControl:yi,pleaseSelectDashboard:Ei,theViewNameCannotBeEmpty:vi,pleaseSelectOcrType:Bi,pleaseSelectAtLeastOneFieldToFillIn:Ai,pleaseChooseAtLeastOne:Fi,pleaseEnterButtonContent:Ci,pleaseEnterDataCodeInDataSetting:Di,pleaseEnterValueFieldCodeInDataSetting:bi,pleaseEnterSvcCodeInDataSetting:wi,pleaseBindAtLeastOneDisplayValueInDataSetting:Si,rootNodeIsRequiredInDataSetting:Ii,pleaseEnterMaxHeight:Ri,pleaseEnter:Mi,pleaseEnterWatermark:_i,pleaseEnterFileName:Li,pleaseUploadAtLeastOnePrintTemplate:$i,pleaseAssignBusiness:qi,pleaseAssignExternal:Pi},Oi={zhCN:du,enUS:Da,jaJP:Vi},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 xi="zh-CN";function q(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var z;(function(t){t.BASE="base",t.FORM="form",t.LAYOUT="layout",t.WRAP="wrap",t.COLUMN="column",t.LIST="list",t.SEARCH="search"})(z||(z={}));var _;(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.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.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.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.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"})(_||(_={}));var M;(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.RELATION="relation",t.LIST="list",t.RELATION_FIELD="relation-field",t.REFERENCE_FIELD="reference-field",t.CALC_FIELD="calc",t.JSON="json",t.BIGINT="bigint",t.ANY="ANY",t.ENCRYPTED_FIELD="encrypted_field"})(M||(M={}));var L;L={},q(L,M.ARRAY,_.ARRAY_COLUMN),q(L,M.AUTO_NUMBER,_.AUTO_NUMBER_COLUMN),q(L,M.DECIMAL,_.DECIMAL_COLUMN),q(L,M.DEPARTMENTS,_.DEPARTMENT_COLUMN),q(L,M.FILE,_.FILE_COLUMN),q(L,M.IMAGE,_.IMAGE_COLUMN),q(L,M.ADDRESS,_.LOCATION_COLUMN),q(L,M.EMPLOYEES,_.EMPLOYEE_COLUMN),q(L,M.TEXT,_.TEXT_COLUMN),q(L,M.TIMESCOPE,_.TIMESCOPE_COLUMN),q(L,M.TIMESTAMP,_.TIMESTAMP_COLUMN),q(L,M.VARCHAR,_.VARCHAR_COLUMN),q(L,M.RELATION,_.VARCHAR_COLUMN);var ot;(function(t){t.YEAR="year",t.MONTH="month",t.DATE="date",t.DATEHOUR="datehour",t.DATEMIN="datemin",t.DATETIME="datetime"})(ot||(ot={}));var ct="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",Ni=ct+"0123456789";function W(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,e="",n=0;n<t;n++){var u=n===0?ct:Ni,a=Math.random()*u.length;e+=u[parseInt(String(a),10)]}return e}function we(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 Ui(t){if(Array.isArray(t))return we(t)}function ji(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oe(t,e,n){return mt()?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&&ee(c,r.prototype),c},oe.apply(null,arguments)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},p(t)}function ft(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&&ee(t,e)}function Hi(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function ki(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Wi(){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 Ti(t,e){return e&&(Ki(e)==="object"||typeof e=="function")?e:ji(t)}function ee(t,e){return ee=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},ee(t,e)}function ht(t){return Ui(t)||ki(t)||zi(t)||Wi()}function Ki(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function zi(t,e){if(!!t){if(typeof t=="string")return we(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 we(t,e)}}function Se(t){var e=typeof Map=="function"?new Map:void 0;return Se=function(u){if(u===null||!Hi(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,p(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ee(a,u)},Se(t)}function mt(){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 gt(t){var e=mt();return function(){var u=p(t),a;if(e){var i=p(this).constructor;a=Reflect.construct(u,arguments,i)}else a=u.apply(this,arguments);return Ti(this,a)}}var Ie=console;function Re(){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=Ie).warn.apply(u,["\u{1F9D0} Driven Warning:"+e[0]].concat(ht(a)))}function yt(){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=Ie).log.apply(u,["\u{1F680} Driven Log:"+e[0]].concat(ht(a)))}function Xi(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Me=function(t){ft(n,t);var e=gt(n);function n(u){dt(this,n);var a;return a=e.call(this,u),a.name="\u{1F4A5} Driven Error",a.message=u?Xi(u):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",a}return n}(Se(Error)),Ji=function(t){ft(n,t);var e=gt(n);function n(u){dt(this,n);var a;return a=e.call(this,u),a.name="\u{1F6A8} Driven Reference Error",a}return n}(Me);function _e(t){throw new Me(t)}function Et(t){throw new Ji(t)}function Gi(t){Ie.error(new Me(t))}var Zi=Object.prototype.toString;function vt(t,e){return Zi.call(t)==="[object "+e+"]"}function Qi(t){return vt(t,"String")}function Yi(t){return vt(t,"Promise")}var pi=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();Yi(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&&!Qi(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 er(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bt(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 tr(t,e,n){return e&&Bt(t.prototype,e),n&&Bt(t,n),t}function nr(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(){er(this,t)}return tr(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]:xi;return new pi({locale:n,messages:Oi})}},{key:"setLocale",value:function(n){return this.$i18n.setLocale(n)}}]),t}();nr(h,"$i18n",h.resetI18n());function ur(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)){Re("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 ar=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ir={exports:{}};(function(t){(function(e){var n=function(o,m,v){if(!c(m)||E(m)||F(m)||D(m)||d(m))return m;var b,S=0,x=0;if(g(m))for(b=[],x=m.length;S<x;S++)b.push(n(o,m[S],v));else{b={};for(var A in m)Object.prototype.hasOwnProperty.call(m,A)&&(b[o(A,v)]=n(o,m[A],v))}return b},u=function(o,m){m=m||{};var v=m.separator||"_",b=m.split||/(?=[A-Z])/;return o.split(b).join(v)},a=function(o){return w(o)?o:(o=o.replace(/[\-_\s]+(.)?/g,function(m,v){return v?v.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]"},E=function(o){return l.call(o)=="[object Date]"},F=function(o){return l.call(o)=="[object RegExp]"},D=function(o){return l.call(o)=="[object Boolean]"},w=function(o){return o=o-0,o===o},f=function(o,m){var v=m&&"process"in m?m.process:m;return typeof v!="function"?o:function(b,S){return v(b,o,S)}},B={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=B:e.humps=B})(ar)})(ir);var At={};Object.defineProperty(At,"__esModule",{value:!0});function Le(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(e=>typeof e!="object"||e===null?e:Le(e));{const e={};for(const n in t){const u=t[n];e[n]=typeof u!="object"||u===null?u:Le(u)}return e}}var rr=At.default=Le;function T(t){if(t!==void 0)return typeof t=="object"?rr(t):t}function lr(t){return Object.prototype.toString.call(t)==="[object Object]"}function sr(t){return Array.isArray(t)}function or(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 cr(t){if(Array.isArray(t))return $e(t)}function Ft(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 dr(t){return function(){var e=this,n=arguments;return new Promise(function(u,a){var i=t.apply(e,n);function r(d){Ft(i,u,a,r,l,"next",d)}function l(d){Ft(i,u,a,r,l,"throw",d)}r(void 0)})}}function fr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ct(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 hr(t,e,n){return e&&Ct(t.prototype,e),n&&Ct(t,n),t}function Dt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mr(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function gr(){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 qe(t){return cr(t)||mr(t)||yr(t)||gr()}function yr(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 Er(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 vr=function(){function t(){fr(this,t),Dt(this,"_events",new Map),Dt(this,"debug",!1)}return hr(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 dr(function(){var l,d,c,g,E,F,D,w,f,B,o,m;return Er(this,function(v){switch(v.label){case 0:if(l=r._events.get(n),d=[],!l)return[3,10];c=l.slice(),g=!0,E=!1,F=void 0,v.label=1;case 1:v.trys.push([1,8,9,10]),D=c[Symbol.iterator](),v.label=2;case 2:if(g=(w=D.next()).done)return[3,7];if(f=w.value,!l.includes(f))return[3,6];v.label=3;case 3:return v.trys.push([3,5,,6]),r.debug&&yt.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(qe(a))),[4,f.apply(null,qe(a))];case 4:return B=v.sent(),r.debug&&yt.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(qe(a),[B])),d.push(B),B===!1?[3,7]:[3,6];case 5:return o=v.sent(),Gi(String(o)+":"+String(o.stack)),[3,6];case 6:return g=!0,[3,2];case 7:return[3,10];case 8:return m=v.sent(),E=!0,F=m,[3,10];case 9:try{!g&&D.return!=null&&D.return()}finally{if(E)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 Br(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bt(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&&bt(t.prototype,e),n&&bt(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 Cr=[{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"}],Dr=function(){function t(){Br(this,t)}return Ar(t,[{key:"getEventsFromKeys",value:function(n){var u=typeof n=="string"?[n]:n;return t.events.filter(function(a){return u.includes(a.key)})}}]),t}();Fr(Dr,"events",Cr);const wt=[];class ce{constructor(e){this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=e,this._initControls(e)}registerControlConfig(e,n){return this.controlConfigMap.set(e,n),this}getControlConfig(e){return this.controlConfigMap.get(e)}static register(e){const{Designer:n,Runtime:u}=e;(!n||!u||!n.__is_control__||!u.__is_control__)&&_e(`${e} is can't register as a Control`);const a=this.staticControls.findIndex(i=>i.Designer.controlType===n.controlType);return a>-1&&(Re(`The ${n.controlType} is repeat register, So it overwrites the one that was registered before.`),this.staticControls.splice(a,1)),this.staticRegisteredTypes.add(n.controlType),this.staticControls.push(e),this}getControls(){return this._controls}register(e){e.__is_control__||_e(`${e.name} is not a Control`);const n=this._controls.findIndex(u=>u.controlType===e.controlType);return n>-1&&(Re(`The ${e.controlType} is repeat register, So it overwrites the one that was registered before.`),this._controls.splice(n,1)),this.registeredControlTypes.add(e.controlType),this._controls.push(e),this}isLayoutControl(e){return e.controlType===z.LAYOUT}isFormControl(e){return e.controlType===z.FORM}isListControl(e){return e.controlType===z.LIST}isColumnControl(e){return e.controlType===z.COLUMN}createControl(e,n){if(Array.isArray(e))return e.map(a=>this.createControl(a,n));e.children&&(e.children=e.children.map(a=>this.createControl(a,n))),this.isListControl(e)&&e.props.headers&&(e.props.headers=e.props.headers.map(a=>this.createControl(a,n)));const u=this.getControlFormType(e.type);if(u){let a=e;if(typeof n=="function"){const r=n(a);r&&(a=r)}return new u(a)}else _e(`The constructor of ${e.type} could not be found, please confirm that the constructor has been registered`)}createControlInstance(e,n){const u=this.getControlFormType(e);if(u)return new u(n)}getControlFormType(e){return this._controls.find(n=>n.controlType===e)}_initControls(e){this.constructor.staticControls.forEach(n=>{this.register(n[e])})}}ce.staticControls=wt,ce.staticRegisteredTypes=new Set(wt.map(t=>t.Designer.controlType)),ce.staticRegisteredConfigs=new Map;class V{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:""}}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 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 br{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 wr{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 Sr extends fe{constructor(e){var n;super(e),this.primaryControlId=(n=e==null?void 0:e.primaryControlId)!=null?n:""}}class St{constructor(e){var n;this.fieldCode=(n=e==null?void 0:e.fieldCode)!=null?n:""}}class Ir{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 St(r)))!=null?i:[]}}class It{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:M.VARCHAR}}class Rt 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 Rr{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 It(r)))!=null?u:[],this.sublists=(i=(a=e==null?void 0:e.sublists)==null?void 0:a.map(r=>new Rt(r)))!=null?i:[]}}class Mt{constructor(e){this.type=e==null?void 0:e.type,this.value=e==null?void 0:e.value}}class Ve{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 te{constructor(e){var n,u,a,i;this.type="conditions",this.id=(n=e==null?void 0:e.id)!=null?n:W(),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 te(r);(l=this.children)==null||l.push(c)}else{const c=new he(r);(d=this.children)==null||d.push(c)}}))}}class he{constructor(e){var n,u,a,i,r;this.type="condition",this.id=(n=e==null?void 0:e.id)!=null?n:W(),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 Mt(e==null?void 0:e.leftVariableBo),this.rightVariableBo=new Ve(e==null?void 0:e.rightVariableBo)}}class _t{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 Oe{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 xe{constructor(e){var n,u;this.columnName=(n=e.columnName)!=null?n:"",this.desc=(u=e.desc)!=null?u:!1}}class Lt{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:M.ANY}}class Mr{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 xe(c)))!=null?r:[],this.dataSet=(d=(l=e.dataSet)==null?void 0:l.map(c=>new Lt(c)))!=null?d:[]}}function Ne(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 te(l):new he(l)))!=null?n:[],this.viewFilters=(a=(u=t==null?void 0:t.viewFilters)==null?void 0:u.map(l=>l.children!==void 0?new te(l):new he(l)))!=null?a:[],(this instanceof me||this instanceof Pt)&&(this.orders=(r=(i=t==null?void 0:t.orders)==null?void 0:i.map(l=>new xe(l)))!=null?r:[])}class me{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 Oe(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:"",Ne.call(this,e)}}class _r{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 Lr{constructor(e){var n,u,a,i,r,l,d,c,g,E;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.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=(E=e==null?void 0:e.priorityProcess)!=null?E:!0}}class Ue{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 Oe(r)))!=null?i:[]}}class $t extends me{constructor(e){var n,u;super(e),this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(a=>new Ue(a)))!=null?u:[]}}class $r extends me{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 Ue(i)))!=null?u:[],this.formCode=(a=e==null?void 0:e.formCode)!=null?a:""}}class qr extends $t{constructor(e){var n;super(e),this.rootNode=new Ve(e==null?void 0:e.rootNode),this.filterCode=(n=e==null?void 0:e.filterCode)!=null?n:""}}class qt{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 _t(r)))!=null?i:[]}}class Pt extends qt{constructor(e){super(e),Ne.call(this,e)}}class Pr extends qt{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 Vr{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 Or{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 je{constructor(e){var n,u,a;this.id=(n=e==null?void 0:e.id)!=null?n:W(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 Vt extends je{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 xr(t){var e;return(e=t==null?void 0:t.map(n=>new je(n)))!=null?e:[]}function Nr(t){var e;return(e=t==null?void 0:t.map(n=>new Vt(n)))!=null?e:[]}class ge{}class Ur extends ge{constructor(e){super(),this.amount=new V(e==null?void 0:e.amount),this.currency=new V(e==null?void 0:e.currency)}}class jr{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 Hr extends ge{constructor(e){super(),this.min=new V(e==null?void 0:e.min),this.max=new V(e==null?void 0:e.max)}}class kr{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 Wr{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 Tr extends ge{constructor(e){super(),this.result=new V(e==null?void 0:e.result),this.unit=new V(e==null?void 0:e.unit)}}class Kr{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||{}),Ot=(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.IS_SHOW_WATERMARK="isShowWatermark",t.ENCRYPTED="encrypted",t.IS_INLINE_EDIT="isInlineEdit",t.REVISIONS_MODE="revisionsMode",t.ALLOW_COPY_OPTIONS="allowCopyOptions",t.IS_PASTE="isPaste",t))(Ot||{}),ke=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT",t))(ke||{});class zr{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 Xr{constructor(e){var n,u,a,i;this.id=(n=e==null?void 0:e.id)!=null?n:W(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 St(r)))!=null?i:[],Ne.call(this,e)}}class Jr{constructor(e){var n,u;this.key=(n=e.key)!=null?n:W(8),this.caption=(u=e.caption)!=null?u:""}}class xt{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 ye{constructor(e){this.isHide={type:"boolean"}}}class We extends Array{constructor(e){super()}}class j{constructor(e,n=""){var u,a;this.isHide=(u=e==null?void 0:e.isHide)!=null?u:!1,this.style=new xt(e==null?void 0:e.style),this.caption=(a=e==null?void 0:e.caption)!=null?a:n}}j.Rules=ye,j.RuntimeRules=We;function O(){return O=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},O.apply(this,arguments)}function Gr(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Te(t){return Te=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Te(t)}function Ee(t,e){return Ee=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},Ee(t,e)}function Zr(){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 Zr()?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&&Ee(c,r.prototype),c},ve.apply(null,arguments)}function Qr(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ke(t){var e=typeof Map=="function"?new Map:void 0;return Ke=function(u){if(u===null||!Qr(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,Te(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Ee(a,u)},Ke(t)}var Yr=/%[sdj%]/g,Nt=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Nt=function(e,n){typeof console!="undefined"&&console.warn&&n.every(function(u){return typeof u=="string"})&&console.warn(e,n)});function ze(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 P(){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(Yr,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 pr(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||pr(e)&&typeof t=="string"&&!t)}function el(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 Ut(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 tl(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n])}),e}var jt=function(t){Gr(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}(Ke(Error));function nl(t,e,n,u){if(e.first){var a=new Promise(function(E,F){var D=function(B){return u(B),B.length?F(new jt(B,ze(B))):E()},w=tl(t);Ut(w,n,D)});return a.catch(function(E){return E}),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(E,F){var D=function(f){if(c.push.apply(c,f),d++,d===l)return u(c),c.length?F(new jt(c,ze(c))):E()};r.length||(u(c),E()),r.forEach(function(w){var f=t[w];i.indexOf(w)!==-1?Ut(f,n,D):el(f,n,D)})});return g.catch(function(E){return E}),g}function Ht(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 kt(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]=O(O({},t[n]),u):t[n]=u}}return t}function Wt(t,e,n,u,a,i){t.required&&(!n.hasOwnProperty(t.field)||R(e,i||t.type))&&u.push(P(a.messages.required,t.fullField))}function ul(t,e,n,u,a){(/^\s+$/.test(e)||e==="")&&u.push(P(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 al(t,e,n,u,a){if(t.required&&e===void 0){Wt(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(P(a.messages.types[r],t.fullField,t.type)):r&&typeof e!==t.type&&u.push(P(a.messages.types[r],t.fullField,t.type))}function il(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,E=typeof e=="number",F=typeof e=="string",D=Array.isArray(e);if(E?g="number":F?g="string":D&&(g="array"),!g)return!1;D&&(c=e.length),F&&(c=e.replace(d,"_").length),i?c!==t.len&&u.push(P(a.messages[g].len,t.fullField,t.len)):r&&!l&&c<t.min?u.push(P(a.messages[g].min,t.fullField,t.min)):l&&!r&&c>t.max?u.push(P(a.messages[g].max,t.fullField,t.max)):r&&l&&(c<t.min||c>t.max)&&u.push(P(a.messages[g].range,t.fullField,t.min,t.max))}var X="enum";function rl(t,e,n,u,a){t[X]=Array.isArray(t[X])?t[X]:[],t[X].indexOf(e)===-1&&u.push(P(a.messages[X],t.fullField,t[X].join(", ")))}function ll(t,e,n,u,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||u.push(P(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(P(a.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var y={required:Wt,whitespace:ul,type:al,range:il,enum:rl,pattern:ll};function sl(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 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),e!==void 0&&y.type(t,e,u,i,a)}n(i)}function cl(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 dl(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 fl(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 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),y.range(t,e,u,i,a))}n(i)}function ml(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 gl(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 yl(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 El="enum";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[El](t,e,u,i,a)}n(i)}function Bl(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 Al(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 Fl(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 Je(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 Cl(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:sl,method:ol,number:cl,boolean:dl,regexp:fl,integer:hl,float:ml,array:gl,object:yl,enum:vl,pattern:Bl,date:Al,url:Je,hex:Je,email:Je,required:Fl,any:Cl};function Ge(){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 Ze=Ge();function H(t){this.rules=null,this._messages=Ze,this.define(t)}H.prototype={messages:function(e){return e&&(this._messages=kt(Ge(),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 B,o=[],m={};function v(b){if(Array.isArray(b)){var S;o=(S=o).concat.apply(S,b)}else o.push(b)}for(B=0;B<f.length;B++)v(f[B]);o.length?m=ze(o):(o=null,m=null),l(o,m)}if(r.messages){var c=this.messages();c===Ze&&(c=Ge()),kt(c,r.messages),r.messages=c}else r.messages=this.messages();var g,E,F={},D=r.keys||Object.keys(this.rules);D.forEach(function(f){g=a.rules[f],E=i[f],g.forEach(function(B){var o=B;typeof o.transform=="function"&&(i===e&&(i=O({},i)),E=i[f]=o.transform(E)),typeof o=="function"?o={validator:o}:o=O({},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:E,source:i,field:f}))})});var w={};return nl(F,r,function(f,B){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 v(x,A){return O(O({},A),{},{fullField:o.fullField+"."+x})}function b(x){x===void 0&&(x=[]);var A=x;if(Array.isArray(A)||(A=[A]),!r.suppressWarning&&A.length&&H.warning("async-validator:",A),A.length&&o.message!==void 0&&(A=[].concat(o.message)),A=A.map(Ht(o)),r.first&&A.length)return w[o.field]=1,B(A);if(!m)B(A);else{if(o.required&&!f.value)return o.message!==void 0?A=[].concat(o.message).map(Ht(o)):r.error&&(A=[r.error(o,P(r.messages.required,o.field))]),B(A);var N={};if(o.defaultField)for(var tn in f.value)f.value.hasOwnProperty(tn)&&(N[tn]=o.defaultField);N=O(O({},N),f.rule.fields);for(var J in N)if(N.hasOwnProperty(J)){var xl=Array.isArray(N[J])?N[J]:[N[J]];N[J]=xl.map(v.bind(null,J))}var nn=new H(N);nn.messages(r.messages),f.rule.options&&(f.rule.options.messages=r.messages,f.rule.options.error=r.error),nn.validate(f.value,f.rule.options||r,function(it){var G=[];A&&A.length&&G.push.apply(G,A),it&&it.length&&G.push.apply(G,it),B(G.length?G:null)})}}var S;o.asyncValidator?S=o.asyncValidator(o,f.value,b,f.source,r):o.validator&&(S=o.validator(o,f.value,b,f.source,r),S===!0?b():S===!1?b(o.message||o.field+" fails"):S instanceof Array?b(S):S instanceof Error&&b(S.message)),S&&S.then&&S.then(function(){return b()},function(x){return b(x)})},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(P("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}},H.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},H.warning=Nt,H.messages=Ze,H.validators=ue;const Dl={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 Tt(t,e={}){const n=new H(t);return n.messages(Object.assign(Dl,e)),n}const Kt=new vr;class ${constructor(e){var g,E,F,D;this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=Xt,this.removeSetting=zt,this._callControlHooks("preInstance",e);const{controlName:n,controlIcon:u,controlType:a,controlFieldType:i,controlEventKeys:r,controlCustomEvents:l,name:d,setting:c}=new.target;n&&u&&a||Et(`The ${d} controlName,controlIcon,controlType is not define`),this.id=(g=e==null?void 0:e.id)!=null?g:W(10),this.name=n,this.icon=u,this.type=(E=e==null?void 0:e.type)!=null?E:a,this.props=new j(e==null?void 0:e.props,new.target.controlName),this.controlType=(F=e==null?void 0:e.controlType)!=null?F:"base",this.setting=T(c),this.fieldType=(D=e==null?void 0:e.fieldType)!=null?D:i,this.eventKeys=T(r),this.customEvents=T(l),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 Kt.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),ur(this.props,e,n),this.postUpdate(e,n)}preValidate(){return le(this,null,function*(){const e=Z({},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:Z({},this.rules);Array.isArray(n)&&n.forEach(r=>{a.hasOwnProperty(r)&&delete a[r]});const i=Tt(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:E,encrypted:F,encryptedMode:D}=this.props;if(!n&&!i&&!r)return;const w={parentId:e,fieldType:n,controlId:u,caption:d,type:a,props:{}};switch(i&&(w.dataBind=i),l){case"datasource":case void 0:r&&(w.datasourceBind=r);break;case"custom":w.props.options=E;break}return c!==void 0&&(w.required=c),g!==void 0&&(w.maxLength=g),F!==void 0&&(w.encrypted=F),D!==void 0&&(w.encryptedMode=D),w}preToSchema(){this._callControlHooks("preToSchema",this)}toSchema(){return this.preToSchema(),{id:this.id,type:this.type,props:T(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)}}$.controlName="\u63A7\u4EF6",$.controlIcon="icon",$.controlType="control",$.controlEventKeys=[],$.controlCustomEvents=[],$.setting=[],$.__is_control__=!0,$.removeSettingItem=zt,$.updateSettingItem=Xt;function zt(t){(Array.isArray(t)?t:[t]).forEach(n=>{var i,r;const u=typeof n!="string",a=this.setting.findIndex(l=>l.key===(u?n.key:n));a!==-1&&(u?this.setting[a].showItems=(i=this.setting[a].showItems)==null?void 0:i.filter(l=>!n.hideItems.includes(l)):this.setting.splice(a,1),u&&!((r=this.setting[a].showItems)!=null&&r.length)&&this.setting.splice(a,1))})}function Xt(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 k{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||Et(`The ${a} controlType is not define`),this.id=(r=e==null?void 0:e.id)!=null?r:W(10),this.type=(l=e==null?void 0:e.type)!=null?l:n,this.props=new j(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:ke.UNKNOWN}get rules(){const e=this.props.constructor.RuntimeRules;if(e){const n=new e(this.props);return Array.from(n)}return[]}}k.controlType="control",k.__is_control__=!0,k.controlCustomEvents=[];function Qe(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=or(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 bl(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")}}}}]}}]}class Ye extends ye{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(e.dataBind instanceof V)this.dataBind={type:"object",required:!0,fields:T(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:T(n),message:h.getMessage("pleaseEnterFieldCode")}}),this.dataBind=u}e.isShowCaptionTip&&(this.captionTip.required=!0)}}class Jt extends We{constructor(e){super(e),this.push({type:"string",required:e.isHide?!1:e.required,message:e.requiredMessage!==""?e.requiredMessage:h.getMessage("runtimeRequired",{caption:e.caption})})}}class ae extends j{constructor(e){var n,u,a,i,r,l,d,c,g,E;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 V(e==null?void 0:e.dataBind),this.defaultValue=(E=e==null?void 0:e.defaultValue)!=null?E:""}}ae.Rules=Ye,ae.RuntimeRules=Jt;class wl extends Ye{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")}],Qe.call(this,e)}}class Gt extends ${constructor(e){super(e),this.controlType="form",this.props=new ae(e==null?void 0:e.props)}}Gt.controlEventKeys=["on_change","on_focus","on_blur"];class Sl extends k{constructor(e){super(e),this.controlType="form",this.props=new ae(e==null?void 0:e.props)}}class ie extends j{constructor(e){super(e)}}function Zt(t,e){var n;(n=Object.getOwnPropertyDescriptors(t)[e])!=null&&n.enumerable&&Object.defineProperty(t,e,{enumerable:!1})}function pe(t,e){t.parent=e,Zt(t,"parent")}function Qt(t,e){t.forEach(n=>{pe(n,e)})}const Yt=Symbol("targetKey");function pt(t){var e;return(e=t[Yt])!=null?e:t}function en(t,e){return Qt(t,e),new Proxy(t,{get(n,u,...a){return u===Yt?n:Reflect.get(n,u,...a)},set(n,u,a,...i){if(sr(t)&&u==="length"&&a===t.length)return!0;const r=Reflect.set(n,u,a,...i);return lr(a)&&pe(a,e),r}})}function re(t,e,n,u){const a=u!=null?u:t;let i=en(pt(n!=null?n:[]),a);Object.defineProperty(t,e,{get(){return i},set(r){i=en(pt(r),a)},enumerable:!0})}const Il=1e4;class K extends ${constructor(e){super(e),this.controlType="layout";const{excludes:n,childrenMaxLength:u}=new.target;this.props=new ie(e==null?void 0:e.props),re(this,"children",e==null?void 0:e.children),this.excludes=T(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(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 Fe(Z({},e),{children:n})}}K.excludes=!1,K.childrenMaxLength=Il;class et extends k{constructor(e){super(e),this.controlType="layout",this.props=new ie(e==null?void 0:e.props),re(this,"children",e==null?void 0:e.children)}}class tt extends j{constructor(e,n){super(n),re(this,"headers",n==null?void 0:n.headers,e)}}class Be extends ${constructor(e){super(e),this.controlType="list",this.props=new tt(this,e==null?void 0:e.props)}validate(e,n){return le(this,null,function*(){return yield rt(Be.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(){const e=super.toSchema(),n=this.props.headers.map(u=>u.toSchema());return Fe(Z({},e),{props:Fe(Z({},this.props),{headers:n})})}}Be.controlFieldType=M.LIST;class Rl extends k{constructor(e){super(e),this.controlType="list",this.props=new tt(this,e==null?void 0:e.props),re(this,"children",e==null?void 0:e.children)}get length(){return this.children.length}}class nt extends ye{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 Ae extends j{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 V(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}}Ae.Rules=nt;class Ml 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")}],Qe.call(this,e)}}class _l extends ${constructor(e){super(e),this.controlType="column",this.props=new Ae(e==null?void 0:e.props)}}class Ll extends k{constructor(e){super(e),this.controlType="column",this.props=new Ae(e==null?void 0:e.props)}}class ut extends ie{constructor(e){super(e),this.dataBind=new V(e==null?void 0:e.dataBind)}}class $l extends K{constructor(e){super(e),this.controlType="search",this.props=new ut(e==null?void 0:e.props)}}class ql 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 Pl extends K{constructor(e){super(e),this.controlType="wrap",this.props=new at(e==null?void 0:e.props)}}class Vl extends et{constructor(e){super(e),this.controlType="wrap",this.props=new at(e==null?void 0:e.props)}}function Ol(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=Wr,s.AmountDataBind=Ur,s.AmountValue=jr,s.AutoWidth=Pe,s.BaseControlProperty=ae,s.BaseControlPropertyRules=Ye,s.BaseControlPropertyRuntimeRules=Jt,s.BaseStyle=xt,s.COMMON_SETTING_TYPE=Ot,s.CalcDataBind=Tr,s.CalcValue=Kr,s.ColumnControlProperty=Ae,s.ColumnControlPropertyRules=nt,s.ColumnOptionAndDataSourcePropertyRules=Ml,s.CustomAttributeItem=Ue,s.CustomPermissionItem=Jr,s.DataBind=V,s.DataSourceBind=me,s.DataSourceDataSetValue=Lt,s.DataSourceOrderItem=xe,s.DataSourceParamItem=Mr,s.DataStorageDoc=wr,s.DesignerColumnControl=_l,s.DesignerControl=$,s.DesignerFormControl=Gt,s.DesignerLayoutControl=K,s.DesignerListControl=Be,s.DesignerSearchControl=$l,s.DesignerWrapControl=Pl,s.DisplayBoListItem=Oe,s.FieldBindItem=It,s.FieldFilterCondition=he,s.FieldFilterConditions=te,s.FillBackBind=Pr,s.FillPayloadBind=Pt,s.FormBind=fe,s.FormSelectBind=Sr,s.ImageOptionSetting=Vt,s.Language=Vr,s.LayoutControlProperty=ie,s.LeftVariable=Mt,s.LinkOperationOption=Lr,s.ListBind=Ir,s.ListControlProperty=tt,s.MetaAutoWidth=br,s.MetaWidth=de,s.MultistageFillingItem=_t,s.ObjectDataBind=ge,s.OperationItem=zr,s.OptionAndDataSourcePropertyRules=wl,s.OptionSetting=je,s.OrganizationDataSourceBind=$r,s.PAGE_STATUS=ke,s.Property=j,s.PropertyRules=ye,s.PropertyRuntimeRules=We,s.RangeDataBind=Hr,s.RangeDateValue=kr,s.RegisterControls=ce,s.RegularRules=Or,s.RightVariable=Ve,s.RuntimeColumnControl=Ll,s.RuntimeControl=k,s.RuntimeFormControl=Sl,s.RuntimeLayoutControl=et,s.RuntimeListControl=Rl,s.RuntimeSearchControl=ql,s.RuntimeWrapControl=Vl,s.SearchControlProperty=ut,s.SelectedContentConfig=_r,s.SubListItem=Rt,s.SubListPageConfig=Rr,s.SuperDataSourceBind=$t,s.TreeDataSourceBind=qr,s.ViewOperationItem=Xr,s.WrapControlProperty=at,s.controlHooksEmitter=Kt,s.createValidator=Tt,s.defineArrayParent=Qt,s.defineControlArrayToProperty=re,s.defineParent=pe,s.initImageOptions=Nr,s.initLinkOperationRules=Ol,s.initOptionAndDataSourceRules=Qe,s.initOptions=xr,s.initSuperDataSourceRules=bl,s.setPropertyDontEnum=Zt,Object.defineProperty(s,"__esModule",{value:!0})});
1
+ var is=Object.defineProperty,rs=Object.defineProperties;var ls=Object.getOwnPropertyDescriptors;var un=Object.getOwnPropertySymbols,ss=Object.getPrototypeOf,os=Object.prototype.hasOwnProperty,cs=Object.prototype.propertyIsEnumerable,ds=Reflect.get;var an=(l,A,I)=>A in l?is(l,A,{enumerable:!0,configurable:!0,writable:!0,value:I}):l[A]=I,G=(l,A)=>{for(var I in A||(A={}))os.call(A,I)&&an(l,I,A[I]);if(un)for(var I of un(A))cs.call(A,I)&&an(l,I,A[I]);return l},Ce=(l,A)=>rs(l,ls(A));var it=(l,A,I)=>ds(ss(l),I,A);var re=(l,A,I)=>new Promise((Fe,le)=>{var Ae=O=>{try{Z(I.next(O))}catch(Q){le(Q)}},De=O=>{try{Z(I.throw(O))}catch(Q){le(Q)}},Z=O=>O.done?Fe(O.value):Promise.resolve(O.value).then(Ae,De);Z((I=I.apply(l,A)).next())});(function(l,A){typeof exports=="object"&&typeof module!="undefined"?A(exports):typeof define=="function"&&define.amd?define(["exports"],A):(l=typeof globalThis!="undefined"?globalThis:l||self,A(l.modelDrivenCore={}))})(this,function(l){"use strict";var A="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",I="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",Fe="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",le="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",Ae="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",De="{caption}\u5FC5\u586B",Z="\u8BF7\u8F93\u5165\u6807\u9898",O="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Q="\u8BF7\u8F93\u5165\u884C\u6807\u9898",rn="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",ln="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",sn="\u8BF7\u7ED1\u5B9A\u8868\u5355",on="\u8BF7\u7ED1\u5B9A\u5217\u8868",cn="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",dn="\u8BF7\u8F93\u5165\u663E\u793A\u503C",fn="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",hn="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",mn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",gn="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",yn="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",vn="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",En="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",Bn="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",Cn="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Fn="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",An="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",Dn="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",bn="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Sn="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",wn="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",In="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Rn="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",Mn="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",_n="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",$n="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Ln="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Pn="\u8BF7\u7ED1\u5B9A\u670D\u52A1",qn="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Vn="\u8BF7\u9009\u62E9\u7701",xn="\u8BF7\u9009\u62E9\u5E02",On="\u8BF7\u9009\u62E9\u533A",jn="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Nn="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Un="\u8BF7\u8F93\u5165\u5217\u5BBD",kn="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Hn="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Wn="\u8BF7\u9009\u62E9\u63A7\u4EF6",Kn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",zn="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Tn="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Jn="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Xn="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Gn="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Zn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Qn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Yn="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",pn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",eu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",tu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",nu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",uu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",au="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",iu="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",ru="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",lu="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",su="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",ou="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",cu="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",du="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",fu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",hu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",mu="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",gu="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",yu="\u8BF7\u9009\u62E9\u6392\u5E8F\u5B57\u6BB5",vu={isNotNumber:A,isNotString:I,isNotObject:Fe,isNotArray:le,isNotBoolean:Ae,runtimeRequired:De,pleaseEnterCaption:Z,pleaseEnterCaptionTip:O,pleaseEnterRowCaption:Q,pleaseEnterPlaceholder:rn,pleaseEnterFieldCode:ln,pleaseEnterForm:sn,pleaseEnterList:on,pleaseEnterProcess:cn,pleaseEnterLabel:dn,pleaseEnterValue:fn,bizKeyNotBindFiled:hn,pleaseSelectOneField:mn,pleaseEnterNumberRange:gn,pleaseEnterAValueGreaterThanMin:yn,pleaseEnterAValueLessThanMax:vn,numberRangeSetError:En,stringRangeError:Bn,attachmentMaxSize:Cn,pleaseEnterTotalScoreSetting:Fn,theTotalScoreMustNotBeLessThan1:An,scoreDefaultValueRange:Dn,attachmentLimitError:bn,PleaseReselectTheOptionalQuantity:Sn,TheMaximumLengthIsGreaterThanTheMinimumLength:wn,TheMinimumLengthIsGreaterThanTheMaximumLength:In,PleaseSelectTheCorrectOptionSettings:Rn,optionIdIsRepeat:Mn,optionIsRequired:_n,pleaseEnterDataCode:$n,pleaseEnterValueFieldCode:Ln,pleaseEnterSvcCode:Pn,pleaseBindAtLeastOneDisplayValue:qn,pleaseSelectProvince:Vn,pleaseSelectCity:xn,pleaseSelectDistrict:On,limitRowsCannotBeLessThan0:jn,TheNumberOfRowsCannotBeLessThanMinRows:Nn,pleaseEnterColumnWidth:Un,pleaseSetTheLogicalRelationshipOfAllRuleConditions:kn,pleaseCompleteAllRulesAndConditions:Hn,pleaseSelectControl:Wn,pleaseSelectAtLeastOneColumn:Kn,pleaseSelectFillBackMode:zn,pleaseSelectDashboard:Tn,rootNodeIsRequired:Jn,theViewNameCannotBeEmpty:Xn,pleaseSelectOcrType:Gn,pleaseSelectAtLeastOneFieldToFillIn:Zn,pleaseChooseAtLeastOne:Qn,pleaseEnterButtonContent:Yn,pleaseEnterDataCodeInDataSetting:pn,pleaseEnterValueFieldCodeInDataSetting:eu,pleaseEnterSvcCodeInDataSetting:tu,pleaseBindAtLeastOneDisplayValueInDataSetting:nu,rootNodeIsRequiredInDataSetting:uu,pleaseEnterMaxHeight:au,pleaseEnter:iu,pleaseEnterWatermark:ru,pleaseEnterFileName:lu,pleaseUploadAtLeastOnePrintTemplate:su,pleaseAssignBusiness:ou,pleaseAssignExternal:cu,pleaseEnterAliasCode:du,pleaseSelectDataCode:fu,pleaseSelectSvcCode:hu,pleaseSelectJoinFieldCode:mu,pleaseSelectMainFieldCode:gu,pleaseSelectSortFieldCode:yu},Eu="Please enter a number",Bu="Please enter a string",Cu="Please enter an object",Fu="Please enter an array",Au="Please enter a boolean",Du="{caption} Required",bu="Please enter the title",Su="Please enter the bubble prompt",wu="Please enter the row title",Iu="Please enter the prompt text",Ru="Please bind data items",Mu="Please bind the form",_u="Please bind the list",$u="Please bind the process",Lu="Please enter the displayed value",Pu="Please enter the stored value",qu="The document number is not bound to the data item",Vu="Please select at least one display field",xu="Please enter a value greater than or equal to {min} and less than or equal to {max}",Ou="Please enter a value greater than or equal to {min}",ju="Please enter a value less than or equal to {max}",Nu="The value range is set incorrectly",Uu="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",ku="The attachment size must be between 0MB and 1000MB",Hu="Please fill in the total score setting",Wu="The total score cannot be less than 1",Ku="The default value must be between {min} and {max}",zu="The number of attachments uploaded must be between {min} and {max}",Tu="Please re-select the optional quantity",Ju="The maximum length of the control must be greater than the minimum length",Xu="The minimum length of the control must be less than the maximum length",Gu="Please select the correct option setting",Zu="Option ID cannot be repeated",Qu="Please enter at least one option",Yu="Please bind the data source",pu="Please bind the stored value",ea="Please bind the service",ta="At least one display value must be bound",na="Please select a province",ua="Please select a city",aa="Please select a district",ia="The minimum number of lines to fill in cannot be less than 0",ra="The number of rows cannot be less than {min} rows",la="Please enter the column width",sa="Please set the logical relationship of all rule conditions",oa="Please complete all rules and conditions",ca="please select control",da="Please select the dashboard",fa="View name cannot be empty",ha="Please select recognition type",ma="Please select at least one field to fill in",ga="Please select at least one",ya="Please enter the button title",va="Please bind the business model in the data settings",Ea="Please bind storage values in data settings",Ba="Please bind the service in the data settings",Ca="Please bind at least one display value in the data settings",Fa="Please select the root node in the data settings",Aa="Please enter the maximum height",Da="The input content cannot be empty",ba="Watermark cannot be empty",Sa="File name cannot be empty",wa="Please upload at least one printing template!\uFF01",Ia="Please select a specific business department",Ra="Please select a specified external organization",Ma="Please enter a sub table alias",_a="Please select the associated table to set the business model",$a="Please select the association table to set the binding service",La="Select associated sub table fields",Pa="Please select the associated main table field",qa="Please select the sort field",Va={isNotNumber:Eu,isNotString:Bu,isNotObject:Cu,isNotArray:Fu,isNotBoolean:Au,runtimeRequired:Du,pleaseEnterCaption:bu,pleaseEnterCaptionTip:Su,pleaseEnterRowCaption:wu,pleaseEnterPlaceholder:Iu,pleaseEnterFieldCode:Ru,pleaseEnterForm:Mu,pleaseEnterList:_u,pleaseEnterProcess:$u,pleaseEnterLabel:Lu,pleaseEnterValue:Pu,bizKeyNotBindFiled:qu,pleaseSelectOneField:Vu,pleaseEnterNumberRange:xu,pleaseEnterAValueGreaterThanMin:Ou,pleaseEnterAValueLessThanMax:ju,numberRangeSetError:Nu,stringRangeError:Uu,attachmentMaxSize:ku,pleaseEnterTotalScoreSetting:Hu,theTotalScoreMustNotBeLessThan1:Wu,scoreDefaultValueRange:Ku,attachmentLimitError:zu,PleaseReselectTheOptionalQuantity:Tu,TheMaximumLengthIsGreaterThanTheMinimumLength:Ju,TheMinimumLengthIsGreaterThanTheMaximumLength:Xu,PleaseSelectTheCorrectOptionSettings:Gu,optionIdIsRepeat:Zu,optionIsRequired:Qu,pleaseEnterDataCode:Yu,pleaseEnterValueFieldCode:pu,pleaseEnterSvcCode:ea,pleaseBindAtLeastOneDisplayValue:ta,pleaseSelectProvince:na,pleaseSelectCity:ua,pleaseSelectDistrict:aa,limitRowsCannotBeLessThan0:ia,TheNumberOfRowsCannotBeLessThanMinRows:ra,pleaseEnterColumnWidth:la,pleaseSetTheLogicalRelationshipOfAllRuleConditions:sa,pleaseCompleteAllRulesAndConditions:oa,pleaseSelectControl:ca,pleaseSelectDashboard:da,theViewNameCannotBeEmpty:fa,pleaseSelectOcrType:ha,pleaseSelectAtLeastOneFieldToFillIn:ma,pleaseChooseAtLeastOne:ga,pleaseEnterButtonContent:ya,pleaseEnterDataCodeInDataSetting:va,pleaseEnterValueFieldCodeInDataSetting:Ea,pleaseEnterSvcCodeInDataSetting:Ba,pleaseBindAtLeastOneDisplayValueInDataSetting:Ca,rootNodeIsRequiredInDataSetting:Fa,pleaseEnterMaxHeight:Aa,pleaseEnter:Da,pleaseEnterWatermark:ba,pleaseEnterFileName:Sa,pleaseUploadAtLeastOnePrintTemplate:wa,pleaseAssignBusiness:Ia,pleaseAssignExternal:Ra,pleaseEnterAliasCode:Ma,pleaseSelectDataCode:_a,pleaseSelectSvcCode:$a,pleaseSelectJoinFieldCode:La,pleaseSelectMainFieldCode:Pa,pleaseSelectSortFieldCode:qa},xa="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Oa="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ja="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Na="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ua="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ka="{caption}\u5FC5\u9808",Ha="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Wa="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ka="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",za="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ta="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ja="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Xa="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ga="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Za="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Qa="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ya="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",pa="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ei="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ti="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ni="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ui="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",ai="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ii="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",ri="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",li="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",si="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",oi="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",ci="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",di="\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",fi="\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",hi="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",mi="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",gi="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",yi="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",vi="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ei="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Bi="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",Ci="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Fi="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ai="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Di="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",bi="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Si="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",wi="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Ii="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",Ri="please select control",Mi="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",_i="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",$i="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Li="\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",Pi="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",qi="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Vi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",xi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Oi="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",ji="\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",Ni="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ui="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ki="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Hi="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Wi="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Ki="\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",zi="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ti="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ji="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Xi="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",Gi="\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",Zi="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",Qi="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Yi="\u30BD\u30FC\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",pi={isNotNumber:xa,isNotString:Oa,isNotObject:ja,isNotArray:Na,isNotBoolean:Ua,runtimeRequired:ka,pleaseEnterCaption:Ha,pleaseEnterCaptionTip:Wa,pleaseEnterRowCaption:Ka,pleaseEnterPlaceholder:za,pleaseEnterFieldCode:Ta,pleaseEnterForm:Ja,pleaseEnterList:Xa,pleaseEnterProcess:Ga,pleaseEnterLabel:Za,pleaseEnterValue:Qa,bizKeyNotBindFiled:Ya,pleaseSelectOneField:pa,pleaseEnterNumberRange:ei,pleaseEnterAValueGreaterThanMin:ti,pleaseEnterAValueLessThanMax:ni,numberRangeSetError:ui,stringRangeError:ai,attachmentMaxSize:ii,pleaseEnterTotalScoreSetting:ri,theTotalScoreMustNotBeLessThan1:li,scoreDefaultValueRange:si,attachmentLimitError:oi,PleaseReselectTheOptionalQuantity:ci,TheMaximumLengthIsGreaterThanTheMinimumLength:di,TheMinimumLengthIsGreaterThanTheMaximumLength:fi,PleaseSelectTheCorrectOptionSettings:hi,optionIdIsRepeat:mi,optionIsRequired:gi,pleaseEnterDataCode:yi,pleaseEnterValueFieldCode:vi,pleaseEnterSvcCode:Ei,pleaseBindAtLeastOneDisplayValue:Bi,pleaseSelectProvince:Ci,pleaseSelectCity:Fi,pleaseSelectDistrict:Ai,limitRowsCannotBeLessThan0:Di,TheNumberOfRowsCannotBeLessThanMinRows:bi,pleaseEnterColumnWidth:Si,pleaseSetTheLogicalRelationshipOfAllRuleConditions:wi,pleaseCompleteAllRulesAndConditions:Ii,pleaseSelectControl:Ri,pleaseSelectDashboard:Mi,theViewNameCannotBeEmpty:_i,pleaseSelectOcrType:$i,pleaseSelectAtLeastOneFieldToFillIn:Li,pleaseChooseAtLeastOne:Pi,pleaseEnterButtonContent:qi,pleaseEnterDataCodeInDataSetting:Vi,pleaseEnterValueFieldCodeInDataSetting:xi,pleaseEnterSvcCodeInDataSetting:Oi,pleaseBindAtLeastOneDisplayValueInDataSetting:ji,rootNodeIsRequiredInDataSetting:Ni,pleaseEnterMaxHeight:Ui,pleaseEnter:ki,pleaseEnterWatermark:Hi,pleaseEnterFileName:Wi,pleaseUploadAtLeastOnePrintTemplate:Ki,pleaseAssignBusiness:zi,pleaseAssignExternal:Ti,pleaseEnterAliasCode:Ji,pleaseSelectDataCode:Xi,pleaseSelectSvcCode:Gi,pleaseSelectJoinFieldCode:Zi,pleaseSelectMainFieldCode:Qi,pleaseSelectSortFieldCode:Yi},er={zhCN:vu,enUS:Va,jaJP:pi},rt;(function(t){t.Number="Number",t.Operator="Operator",t.VariableInMainTable="VariableInMainTable",t.VariableInCurrentSubTable="VariableInCurrentSubTable",t.VariableInOtherSubTable="VariableInOtherSubTable",t.UndefinedVariable="UndefinedVariable"})(rt||(rt={}));var lt;(function(t){t.SUM="SUM",t.AVG="AVG",t.MAX="MAX",t.MIN="MIN"})(lt||(lt={}));var tr="zh-CN";function $(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var 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 st;(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.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"})(st||(st={}));var Y;(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.RELATION="relation",t.LIST="list",t.RELATION_FIELD="relation-field",t.REFERENCE_FIELD="reference-field",t.CALC_FIELD="calc",t.JSON="json",t.BIGINT="bigint",t.ANY="ANY",t.ENCRYPTED_FIELD="encrypted_field"})(Y||(Y={}));var M;M={},$(M,"array","array-column"),$(M,"auto_number","auto-number-column"),$(M,"decimal","decimal-column"),$(M,"department","department-column"),$(M,"file","file-column"),$(M,"image","image-column"),$(M,"location","location-column"),$(M,"people","employee-column"),$(M,"text","text-column"),$(M,"timescope","timescope-column"),$(M,"timestamp","timestamp-column"),$(M,"varchar","varchar-column"),$(M,"relation","varchar-column");var ot;(function(t){t.YEAR="year",t.MONTH="month",t.DATE="date",t.DATEHOUR="datehour",t.DATEMIN="datemin",t.DATETIME="datetime"})(ot||(ot={}));var ct="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",nr=ct+"0123456789";function k(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,e="",n=0;n<t;n++){var u=n===0?ct:nr,a=Math.random()*u.length;e+=u[parseInt(String(a),10)]}return e}function be(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 ur(t){if(Array.isArray(t))return be(t)}function ar(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function se(t,e,n){return mt()?se=Reflect.construct:se=function(a,i,r){var s=[null];s.push.apply(s,i);var d=Function.bind.apply(a,s),c=new d;return r&&ee(c,r.prototype),c},se.apply(null,arguments)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},p(t)}function ft(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&&ee(t,e)}function ir(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function rr(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function lr(){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 sr(t,e){return e&&(or(e)==="object"||typeof e=="function")?e:ar(t)}function ee(t,e){return ee=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},ee(t,e)}function ht(t){return ur(t)||rr(t)||cr(t)||lr()}function or(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function cr(t,e){if(!!t){if(typeof t=="string")return be(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 be(t,e)}}function Se(t){var e=typeof Map=="function"?new Map:void 0;return Se=function(u){if(u===null||!ir(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,p(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ee(a,u)},Se(t)}function mt(){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 gt(t){var e=mt();return function(){var u=p(t),a;if(e){var i=p(this).constructor;a=Reflect.construct(u,arguments,i)}else a=u.apply(this,arguments);return sr(this,a)}}var we=console;function Ie(){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(ht(a)))}function yt(){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(ht(a)))}function dr(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Re=function(t){ft(n,t);var e=gt(n);function n(u){dt(this,n);var a;return a=e.call(this,u),a.name="\u{1F4A5} Driven Error",a.message=u?dr(u):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",a}return n}(Se(Error)),fr=function(t){ft(n,t);var e=gt(n);function n(u){dt(this,n);var a;return a=e.call(this,u),a.name="\u{1F6A8} Driven Reference Error",a}return n}(Re);function Me(t){throw new Re(t)}function vt(t){throw new fr(t)}function hr(t){we.error(new Re(t))}var mr=Object.prototype.toString;function Et(t,e){return mr.call(t)==="[object "+e+"]"}function gr(t){return Et(t,"String")}function yr(t){return Et(t,"Promise")}var vr=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();yr(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,s){if(a!==void 0){var d=a[i];if(!(r===s.length-1&&!gr(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 Er(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bt(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 Br(t,e,n){return e&&Bt(t.prototype,e),n&&Bt(t,n),t}function Cr(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(){Er(this,t)}return Br(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]:tr;return new vr({locale:n,messages:er})}},{key:"setLocale",value:function(n){return this.$i18n.setLocale(n)}}]),t}();Cr(h,"$i18n",h.resetI18n());function Fr(t,e,n){var u=e.replace(/\[(\d)]/g,function(i,r){return"."+r}).split("."),a=!1;return u.reduce(function(i,r,s,d){var c=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,r)){Ie("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 s===d.length-1&&!Object.is(c[r],n)&&(c[r]=n,a=!0),c[r]}},t),a}var Ar=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Dr={exports:{}};(function(t){(function(e){var n=function(o,m,E){if(!c(m)||v(m)||F(m)||D(m)||d(m))return m;var b,w=0,V=0;if(g(m))for(b=[],V=m.length;w<V;w++)b.push(n(o,m[w],E));else{b={};for(var C in m)Object.prototype.hasOwnProperty.call(m,C)&&(b[o(C,E)]=n(o,m[C],E))}return b},u=function(o,m){m=m||{};var E=m.separator||"_",b=m.split||/(?=[A-Z])/;return o.split(b).join(E)},a=function(o){return S(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()},s=Object.prototype.toString,d=function(o){return typeof o=="function"},c=function(o){return o===Object(o)},g=function(o){return s.call(o)=="[object Array]"},v=function(o){return s.call(o)=="[object Date]"},F=function(o){return s.call(o)=="[object RegExp]"},D=function(o){return s.call(o)=="[object Boolean]"},S=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(b,w){return E(b,o,w)}},B={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=B:e.humps=B})(Ar)})(Dr);var Ct={};Object.defineProperty(Ct,"__esModule",{value:!0});function _e(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(e=>typeof e!="object"||e===null?e:_e(e));{const e={};for(const n in t){const u=t[n];e[n]=typeof u!="object"||u===null?u:_e(u)}return e}}var br=Ct.default=_e;function H(t){if(t!==void 0)return typeof t=="object"?br(t):t}function Sr(t){return Object.prototype.toString.call(t)==="[object Object]"}function wr(t){return Array.isArray(t)}function Ir(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 Rr(t){if(Array.isArray(t))return $e(t)}function Ft(t,e,n,u,a,i,r){try{var s=t[i](r),d=s.value}catch(c){n(c);return}s.done?e(d):Promise.resolve(d).then(u,a)}function Mr(t){return function(){var e=this,n=arguments;return new Promise(function(u,a){var i=t.apply(e,n);function r(d){Ft(i,u,a,r,s,"next",d)}function s(d){Ft(i,u,a,r,s,"throw",d)}r(void 0)})}}function _r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function At(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 $r(t,e,n){return e&&At(t.prototype,e),n&&At(t,n),t}function Dt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Lr(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Pr(){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 Le(t){return Rr(t)||Lr(t)||qr(t)||Pr()}function qr(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 Vr(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:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(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 xr=function(){function t(){_r(this,t),Dt(this,"_events",new Map),Dt(this,"debug",!1)}return $r(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 Mr(function(){var s,d,c,g,v,F,D,S,f,B,o,m;return Vr(this,function(E){switch(E.label){case 0:if(s=r._events.get(n),d=[],!s)return[3,10];c=s.slice(),g=!0,v=!1,F=void 0,E.label=1;case 1:E.trys.push([1,8,9,10]),D=c[Symbol.iterator](),E.label=2;case 2:if(g=(S=D.next()).done)return[3,7];if(f=S.value,!s.includes(f))return[3,6];E.label=3;case 3:return E.trys.push([3,5,,6]),r.debug&&yt.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(Le(a))),[4,f.apply(null,Le(a))];case 4:return B=E.sent(),r.debug&&yt.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(Le(a),[B])),d.push(B),B===!1?[3,7]:[3,6];case 5:return o=E.sent(),hr(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&&D.return!=null&&D.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 Or(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bt(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 jr(t,e,n){return e&&bt(t.prototype,e),n&&bt(t,n),t}function Nr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ur=[{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"}],kr=function(){function t(){Or(this,t)}return jr(t,[{key:"getEventsFromKeys",value:function(n){var u=typeof n=="string"?[n]:n;return t.events.filter(function(a){return u.includes(a.key)})}}]),t}();Nr(kr,"events",Ur);const St=[];class oe{constructor(e){this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=e,this._initControls(e)}registerControlConfig(e,n){return this.controlConfigMap.set(e,n),this}getControlConfig(e){return this.controlConfigMap.get(e)}static register(e){const{Designer:n,Runtime:u}=e;(!n||!u||!n.__is_control__||!u.__is_control__)&&Me(`${e} is can't register as a Control`);const a=this.staticControls.findIndex(i=>i.Designer.controlType===n.controlType);return a>-1&&(Ie(`The ${n.controlType} is repeat register, So it overwrites the one that was registered before.`),this.staticControls.splice(a,1)),this.staticRegisteredTypes.add(n.controlType),this.staticControls.push(e),this}getControls(){return this._controls}register(e){e.__is_control__||Me(`${e.name} is not a Control`);const n=this._controls.findIndex(u=>u.controlType===e.controlType);return n>-1&&(Ie(`The ${e.controlType} is repeat register, So it overwrites the one that was registered before.`),this._controls.splice(n,1)),this.registeredControlTypes.add(e.controlType),this._controls.push(e),this}isLayoutControl(e){return e.controlType===K.LAYOUT}isFormControl(e){return e.controlType===K.FORM}isListControl(e){return e.controlType===K.LIST}isColumnControl(e){return e.controlType===K.COLUMN}createControl(e,n){if(Array.isArray(e))return e.map(a=>this.createControl(a,n));if(e.children&&(e.children=e.children.map(a=>this.createControl(a,n))),this.isListControl(e)){const a=e.props;a.headers&&(a.headers=a.headers.map(i=>this.createControl(i,n))),a.footers&&(a.footers=a.footers.map(i=>{let r;return i&&(r=this.createControl(i,n)),r}))}const u=this.getControlFormType(e.type);if(u){let a=e;if(typeof n=="function"){const r=n(a);r&&(a=r)}return new u(a)}else Me(`The constructor of ${e.type} could not be found, please confirm that the constructor has been registered`)}createControlInstance(e,n){const u=this.getControlFormType(e);if(u)return new u(n)}getControlFormType(e){return this._controls.find(n=>n.controlType===e)}_initControls(e){this.constructor.staticControls.forEach(n=>{this.register(n[e])})}}oe.staticControls=St,oe.staticRegisteredTypes=new Set(St.map(t=>t.Designer.controlType)),oe.staticRegisteredConfigs=new Map;class P{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 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 Hr{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 Wr{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 Kr extends de{constructor(e){var n;super(e),this.primaryControlId=(n=e==null?void 0:e.primaryControlId)!=null?n:""}}class wt{constructor(e){var n;this.fieldCode=(n=e==null?void 0:e.fieldCode)!=null?n:""}}class zr{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 wt(r)))!=null?i:[]}}class It{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:Y.VARCHAR}}class Rt 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 Tr{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 It(r)))!=null?u:[],this.sublists=(i=(a=e==null?void 0:e.sublists)==null?void 0:a.map(r=>new Rt(r)))!=null?i:[]}}class Mt{constructor(e){this.type=e==null?void 0:e.type,this.value=e==null?void 0:e.value}}class qe{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 te{constructor(e){var n,u,a,i;this.type="conditions",this.id=(n=e==null?void 0:e.id)!=null?n:k(),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 s,d;if(r.children!==void 0){const c=new te(r);(s=this.children)==null||s.push(c)}else{const c=new fe(r);(d=this.children)==null||d.push(c)}}))}}class fe{constructor(e){var n,u,a,i,r;this.type="condition",this.id=(n=e==null?void 0:e.id)!=null?n:k(),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 Mt(e==null?void 0:e.leftVariableBo),this.rightVariableBo=new qe(e==null?void 0:e.rightVariableBo)}}class Jr{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 _t{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 Ve{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 xe{constructor(e){var n,u;this.columnName=(n=e.columnName)!=null?n:"",this.desc=(u=e.desc)!=null?u:!1}}class $t{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:Y.ANY}}class Xr{constructor(e){var n,u,a,i,r,s,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 xe(c)))!=null?r:[],this.dataSet=(d=(s=e.dataSet)==null?void 0:s.map(c=>new $t(c)))!=null?d:[]}}function Oe(t){var e,n,u,a,i,r;this.filters=(n=(e=t==null?void 0:t.filters)==null?void 0:e.map(s=>s.children!==void 0?new te(s):new fe(s)))!=null?n:[],this.viewFilters=(a=(u=t==null?void 0:t.viewFilters)==null?void 0:u.map(s=>s.children!==void 0?new te(s):new fe(s)))!=null?a:[],this.orders=(r=(i=t==null?void 0:t.orders)==null?void 0:i.map(s=>new xe(s)))!=null?r:[]}class he{constructor(e){var n,u,a,i,r,s,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 Ve(c))})),this.keywordMapping=(r=e==null?void 0:e.keywordMapping)!=null?r:"",this.showOrder=(s=e==null?void 0:e.showOrder)!=null?s:!0,this.svcCode=(d=e==null?void 0:e.svcCode)!=null?d:"",Oe.call(this,e)}}class Gr{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 Zr{constructor(e){var n,u,a,i,r,s,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=(s=e==null?void 0:e.formKey)!=null?s: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 je{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 Ve(r)))!=null?i:[]}}class Lt 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 je(a)))!=null?u:[]}}class Qr 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 je(i)))!=null?u:[],this.formCode=(a=e==null?void 0:e.formCode)!=null?a:""}}class Yr extends Lt{constructor(e){var n;super(e),this.rootNode=new qe(e==null?void 0:e.rootNode),this.filterCode=(n=e==null?void 0:e.filterCode)!=null?n:""}}class Pt{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 _t(r)))!=null?i:[]}}class pr extends Pt{constructor(e){super(e),Oe.call(this,e)}}class el extends Pt{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 tl{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 nl{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 Ne{constructor(e){var n,u,a;this.id=(n=e==null?void 0:e.id)!=null?n:k(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 qt extends Ne{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 ul(t){var e;return(e=t==null?void 0:t.map(n=>new Ne(n)))!=null?e:[]}function al(t){var e;return(e=t==null?void 0:t.map(n=>new qt(n)))!=null?e:[]}class me{}class il extends me{constructor(e){super(),this.amount=new P(e==null?void 0:e.amount),this.currency=new P(e==null?void 0:e.currency)}}class rl{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:Ue.CNY}}class ll extends me{constructor(e){super(),this.min=new P(e==null?void 0:e.min),this.max=new P(e==null?void 0:e.max)}}class sl{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 ol{constructor(e){var n,u,a,i,r,s;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=(s=e==null?void 0:e.provinceDisplay)!=null?s:""}}class cl extends me{constructor(e){super(),this.result=new P(e==null?void 0:e.result),this.unit=new P(e==null?void 0:e.unit)}}class dl{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 Ue=(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))(Ue||{}),Vt=(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))(Vt||{}),ke=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT",t))(ke||{});class fl{constructor(e){var n,u,a,i,r,s;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=(s=e==null?void 0:e.priorityProcess)!=null?s:!1}}class hl{constructor(e){var n,u,a,i;this.id=(n=e==null?void 0:e.id)!=null?n:k(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 wt(r)))!=null?i:[],Oe.call(this,e)}}class ml{constructor(e){var n,u;this.key=(n=e.key)!=null?n:k(8),this.caption=(u=e.caption)!=null?u:""}}class xt{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 gl{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 ge{constructor(e){this.isHide={type:"boolean"}}}class He extends Array{constructor(e){super()}}class j{constructor(e,n=""){var u,a;this.isHide=(u=e==null?void 0:e.isHide)!=null?u:!1,this.style=new xt(e==null?void 0:e.style),this.caption=(a=e==null?void 0:e.caption)!=null?a:n}}j.Rules=ge,j.RuntimeRules=He;function q(){return q=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},q.apply(this,arguments)}function yl(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function We(t){return We=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},We(t)}function ye(t,e){return ye=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},ye(t,e)}function vl(){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 vl()?ve=Reflect.construct:ve=function(a,i,r){var s=[null];s.push.apply(s,i);var d=Function.bind.apply(a,s),c=new d;return r&&ye(c,r.prototype),c},ve.apply(null,arguments)}function El(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ke(t){var e=typeof Map=="function"?new Map:void 0;return Ke=function(u){if(u===null||!El(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,We(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ye(a,u)},Ke(t)}var Bl=/%[sdj%]/g,Ot=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Ot=function(e,n){typeof console!="undefined"&&console.warn&&n.every(function(u){return typeof u=="string"})&&console.warn(e,n)});function ze(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 L(){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(s){if(s==="%%")return"%";if(u>=i)return s;switch(s){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 s}});return r}return a}function Cl(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||Cl(e)&&typeof t=="string"&&!t)}function Fl(t,e,n){var u=[],a=0,i=t.length;function r(s){u.push.apply(u,s),a++,a===i&&n(u)}t.forEach(function(s){e(s,r)})}function jt(t,e,n){var u=0,a=t.length;function i(r){if(r&&r.length){n(r);return}var s=u;u=u+1,s<a?e(t[s],i):n([])}i([])}function Al(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n])}),e}var Nt=function(t){yl(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}(Ke(Error));function Dl(t,e,n,u){if(e.first){var a=new Promise(function(v,F){var D=function(B){return u(B),B.length?F(new Nt(B,ze(B))):v()},S=Al(t);jt(S,n,D)});return a.catch(function(v){return v}),a}var i=e.firstFields||[];i===!0&&(i=Object.keys(t));var r=Object.keys(t),s=r.length,d=0,c=[],g=new Promise(function(v,F){var D=function(f){if(c.push.apply(c,f),d++,d===s)return u(c),c.length?F(new Nt(c,ze(c))):v()};r.length||(u(c),v()),r.forEach(function(S){var f=t[S];i.indexOf(S)!==-1?jt(f,n,D):Fl(f,n,D)})});return g.catch(function(v){return v}),g}function Ut(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 kt(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]=q(q({},t[n]),u):t[n]=u}}return t}function Ht(t,e,n,u,a,i){t.required&&(!n.hasOwnProperty(t.field)||R(e,i||t.type))&&u.push(L(a.messages.required,t.fullField))}function bl(t,e,n,u,a){(/^\s+$/.test(e)||e==="")&&u.push(L(a.messages.whitespace,t.fullField))}var Te={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(Te.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(Te.url)},hex:function(e){return typeof e=="string"&&!!e.match(Te.hex)}};function Sl(t,e,n,u,a){if(t.required&&e===void 0){Ht(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(L(a.messages.types[r],t.fullField,t.type)):r&&typeof e!==t.type&&u.push(L(a.messages.types[r],t.fullField,t.type))}function wl(t,e,n,u,a){var i=typeof t.len=="number",r=typeof t.min=="number",s=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=e,g=null,v=typeof e=="number",F=typeof e=="string",D=Array.isArray(e);if(v?g="number":F?g="string":D&&(g="array"),!g)return!1;D&&(c=e.length),F&&(c=e.replace(d,"_").length),i?c!==t.len&&u.push(L(a.messages[g].len,t.fullField,t.len)):r&&!s&&c<t.min?u.push(L(a.messages[g].min,t.fullField,t.min)):s&&!r&&c>t.max?u.push(L(a.messages[g].max,t.fullField,t.max)):r&&s&&(c<t.min||c>t.max)&&u.push(L(a.messages[g].range,t.fullField,t.min,t.max))}var z="enum";function Il(t,e,n,u,a){t[z]=Array.isArray(t[z])?t[z]:[],t[z].indexOf(e)===-1&&u.push(L(a.messages[z],t.fullField,t[z].join(", ")))}function Rl(t,e,n,u,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||u.push(L(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(L(a.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var y={required:Ht,whitespace:bl,type:Sl,range:wl,enum:Il,pattern:Rl};function Ml(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 _l(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 $l(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 Ll(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 Pl(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 ql(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 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),y.range(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==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 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),e!==void 0&&y.type(t,e,u,i,a)}n(i)}var jl="enum";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[jl](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,"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 kl(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 s;e instanceof Date?s=e:s=new Date(e),y.type(t,s,u,i,a),s&&y.range(t,s.getTime(),u,i,a)}}n(i)}function Hl(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 Je(t,e,n,u,a){var i=t.type,r=[],s=t.required||!t.required&&u.hasOwnProperty(t.field);if(s){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 Wl(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:Ml,method:_l,number:$l,boolean:Ll,regexp:Pl,integer:ql,float:Vl,array:xl,object:Ol,enum:Nl,pattern:Ul,date:kl,url:Je,hex:Je,email:Je,required:Hl,any:Wl};function Xe(){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 Ge=Xe();function N(t){this.rules=null,this._messages=Ge,this.define(t)}N.prototype={messages:function(e){return e&&(this._messages=kt(Xe(),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,s=u;if(typeof r=="function"&&(s=r,r={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function d(f){var B,o=[],m={};function E(b){if(Array.isArray(b)){var w;o=(w=o).concat.apply(w,b)}else o.push(b)}for(B=0;B<f.length;B++)E(f[B]);o.length?m=ze(o):(o=null,m=null),s(o,m)}if(r.messages){var c=this.messages();c===Ge&&(c=Xe()),kt(c,r.messages),r.messages=c}else r.messages=this.messages();var g,v,F={},D=r.keys||Object.keys(this.rules);D.forEach(function(f){g=a.rules[f],v=i[f],g.forEach(function(B){var o=B;typeof o.transform=="function"&&(i===e&&(i=q({},i)),v=i[f]=o.transform(v)),typeof o=="function"?o={validator:o}:o=q({},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 S={};return Dl(F,r,function(f,B){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(V,C){return q(q({},C),{},{fullField:o.fullField+"."+V})}function b(V){V===void 0&&(V=[]);var C=V;if(Array.isArray(C)||(C=[C]),!r.suppressWarning&&C.length&&N.warning("async-validator:",C),C.length&&o.message!==void 0&&(C=[].concat(o.message)),C=C.map(Ut(o)),r.first&&C.length)return S[o.field]=1,B(C);if(!m)B(C);else{if(o.required&&!f.value)return o.message!==void 0?C=[].concat(o.message).map(Ut(o)):r.error&&(C=[r.error(o,L(r.messages.required,o.field))]),B(C);var x={};if(o.defaultField)for(var tn in f.value)f.value.hasOwnProperty(tn)&&(x[tn]=o.defaultField);x=q(q({},x),f.rule.fields);for(var J in x)if(x.hasOwnProperty(J)){var as=Array.isArray(x[J])?x[J]:[x[J]];x[J]=as.map(E.bind(null,J))}var nn=new N(x);nn.messages(r.messages),f.rule.options&&(f.rule.options.messages=r.messages,f.rule.options.error=r.error),nn.validate(f.value,f.rule.options||r,function(at){var X=[];C&&C.length&&X.push.apply(X,C),at&&at.length&&X.push.apply(X,at),B(X.length?X:null)})}}var w;o.asyncValidator?w=o.asyncValidator(o,f.value,b,f.source,r):o.validator&&(w=o.validator(o,f.value,b,f.source,r),w===!0?b():w===!1?b(o.message||o.field+" fails"):w instanceof Array?b(w):w instanceof Error&&b(w.message)),w&&w.then&&w.then(function(){return b()},function(V){return b(V)})},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(L("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=Ot,N.messages=Ge,N.validators=ue;const Kl={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 Wt(t,e={}){const n=new N(t);return n.messages(Object.assign(Kl,e)),n}const Kt=new xr;class _{constructor(e){var g,v,F,D;this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=Tt,this.removeSetting=zt,this._callControlHooks("preInstance",e);const{controlName:n,controlIcon:u,controlType:a,controlFieldType:i,controlEventKeys:r,controlCustomEvents:s,name:d,setting:c}=new.target;n&&u&&a||vt(`The ${d} controlName,controlIcon,controlType is not define`),this.id=(g=e==null?void 0:e.id)!=null?g:k(10),this.name=n,this.icon=u,this.type=(v=e==null?void 0:e.type)!=null?v:a,this.props=new j(e==null?void 0:e.props,new.target.controlName),this.controlType=(F=e==null?void 0:e.controlType)!=null?F:"base",this.setting=H(c),this.fieldType=(D=e==null?void 0:e.fieldType)!=null?D:i,this.eventKeys=H(r),this.customEvents=H(s),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 Kt.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),Fr(this.props,e,n),this.postUpdate(e,n)}preValidate(){return re(this,null,function*(){const e=G({},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:G({},this.rules);Array.isArray(n)&&n.forEach(r=>{a.hasOwnProperty(r)&&delete a[r]});const i=Wt(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:s,caption:d,required:c,maxLength:g,options:v,encrypted:F,encryptedMode:D}=this.props;if(!n&&!i&&!r)return;const S={parentId:e,fieldType:n,controlId:u,caption:d,type:a,props:{}};switch(i&&(S.dataBind=i),s){case"datasource":case void 0:r&&(S.datasourceBind=r);break;case"custom":S.props.options=v;break}return c!==void 0&&(S.required=c),g!==void 0&&(S.maxLength=g),F!==void 0&&(S.encrypted=F),D!==void 0&&(S.encryptedMode=D),S}preToSchema(){this._callControlHooks("preToSchema",this)}toSchema(){return this.preToSchema(),{id:this.id,type:this.type,props:H(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)}}_.controlName="\u63A7\u4EF6",_.controlIcon="icon",_.controlType="control",_.controlEventKeys=[],_.controlCustomEvents=[],_.setting=[],_.__is_control__=!0,_.removeSettingItem=zt,_.updateSettingItem=Tt;function zt(t){(Array.isArray(t)?t:[t]).forEach(n=>{var i,r,s;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&&!((s=this.setting[a].showItems)!=null&&s.length)&&this.setting.splice(a,1))})}function Tt(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,s,d,c,g;this.customEvents=[],this.parent=null;const{controlType:n,controlFieldType:u,name:a,controlCustomEvents:i}=new.target;n||vt(`The ${a} controlType is not define`),this.id=(r=e==null?void 0:e.id)!=null?r:k(10),this.type=(s=e==null?void 0:e.type)!=null?s:n,this.props=new j(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:ke.UNKNOWN}get rules(){const e=this.props.constructor.RuntimeRules;if(e){const n=new e(this.props);return Array.from(n)}return[]}}U.controlType="control",U.__is_control__=!0,U.controlCustomEvents=[];function Ze(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=Ir(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 Jt(t){return(t==null?void 0:t.dataCode)!==void 0&&(t==null?void 0:t.fieldCode)!==void 0}class Qe 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(Jt(e.dataBind))this.dataBind={type:"object",required:!0,fields:H(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:H(n),message:h.getMessage("pleaseEnterFieldCode")}}),this.dataBind=u}e.isShowCaptionTip&&(this.captionTip.required=!0)}}class Xt extends He{constructor(e){super(e),this.push({type:"string",required:e.isHide?!1:e.required,message:e.requiredMessage!==""?e.requiredMessage:h.getMessage("runtimeRequired",{caption:e.caption})})}}class ae extends j{constructor(e){var n,u,a,i,r,s,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=(s=e==null?void 0:e.labelPosition)!=null?s:"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 P(e==null?void 0:e.dataBind),this.defaultValue=(v=e==null?void 0:e.defaultValue)!=null?v:""}}ae.Rules=Qe,ae.RuntimeRules=Xt;class Tl extends Qe{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")}],Ze.call(this,e)}}class Gt extends _{constructor(e){super(e),this.controlType="form",this.props=new ae(e==null?void 0:e.props)}}Gt.controlEventKeys=["on_change","on_focus","on_blur"];class Jl extends U{constructor(e){super(e),this.controlType="form",this.props=new ae(e==null?void 0:e.props)}}class ie extends j{constructor(e){super(e)}}function Zt(t,e){var n;(n=Object.getOwnPropertyDescriptors(t)[e])!=null&&n.enumerable&&Object.defineProperty(t,e,{enumerable:!1})}function Ye(t,e){t.parent=e,Zt(t,"parent")}function Qt(t,e){t.forEach(n=>{Ye(n,e)})}const Yt=Symbol("targetKey");function pt(t){var e;return(e=t[Yt])!=null?e:t}function en(t,e){return Qt(t,e),new Proxy(t,{get(n,u,...a){return u===Yt?n:Reflect.get(n,u,...a)},set(n,u,a,...i){if(wr(t)&&u==="length"&&a===t.length)return!0;const r=Reflect.set(n,u,a,...i);return Sr(a)&&Ye(a,e),r}})}function T(t,e,n,u){const a=u!=null?u:t;let i=en(pt(n!=null?n:[]),a);Object.defineProperty(t,e,{get(){return i},set(r){i=en(pt(r),a)},enumerable:!0})}const Xl=1e4;class W extends _{constructor(e){super(e),this.controlType="layout";const{excludes:n,childrenMaxLength:u}=new.target;this.props=new ie(e==null?void 0:e.props),T(this,"children",e==null?void 0:e.children),this.excludes=H(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 it(W.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 s=r.filter(d=>!!d);return[...a,...s]}return r&&a.push(r),a},u)}toSchema(){const e=super.toSchema(),n=this.children.map(u=>u.toSchema());return Ce(G({},e),{children:n})}}W.excludes=!1,W.childrenMaxLength=Xl;class pe extends U{constructor(e){super(e),this.controlType="layout",this.props=new ie(e==null?void 0:e.props),T(this,"children",e==null?void 0:e.children)}}class et extends j{constructor(e,n){var u,a,i;super(n),T(this,"headers",n==null?void 0:n.headers,e),T(this,"footers",n==null?void 0:n.footers,e),this.pageIndex=(u=n==null?void 0:n.pageIndex)!=null?u:1,this.pageSize=(a=n==null?void 0:n.pageSize)!=null?a:20,this.pageSizeOptions=(i=n==null?void 0:n.pageSizeOptions)!=null?i:[20]}}class Ee extends _{constructor(e){super(e),this.controlType="list",this.props=new et(this,e==null?void 0:e.props)}validate(e,n){return re(this,null,function*(){return yield it(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 s=r.filter(d=>!!d);return[...a,...s]}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 Ce(G({},e),{props:Ce(G({},this.props),{headers:n,footers:u})})}}Ee.controlFieldType=Y.LIST;class Gl extends U{constructor(e){super(e),this.controlType="list",this.props=new et(this,e==null?void 0:e.props),T(this,"children",e==null?void 0:e.children)}get length(){return this.children.length}}class tt 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 j{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 P(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=tt;class Zl extends tt{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")}],Ze.call(this,e)}}class Ql extends _{constructor(e){super(e),this.controlType="column",this.props=new Be(e==null?void 0:e.props)}}class Yl extends U{constructor(e){super(e),this.controlType="column",this.props=new Be(e==null?void 0:e.props)}}class nt extends ie{constructor(e){super(e),this.dataBind=new P(e==null?void 0:e.dataBind)}}class pl extends W{constructor(e){super(e),this.controlType="search",this.props=new nt(e==null?void 0:e.props)}}class es extends pe{constructor(e){super(e),this.controlType="search",this.props=new nt(e==null?void 0:e.props)}}class ut extends ie{constructor(e){super(e)}}class ts extends W{constructor(e){super(e),this.controlType="wrap",this.props=new ut(e==null?void 0:e.props)}}class ns extends pe{constructor(e){super(e),this.controlType="wrap",this.props=new ut(e==null?void 0:e.props)}}function us(t){t.hasOwnProperty("linkOperationOption")&&t.hasOwnProperty("showLinkOperation")&&t.showLinkOperation&&(this.linkOperationOption=[{type:"object",fields:{formKey:{type:"string",required:!0,message:h.getMessage("pleaseEnterForm")}}}])}l.AMOUNT_TYPE=Ue,l.AddressValue=ol,l.AmountDataBind=il,l.AmountValue=rl,l.AutoWidth=Pe,l.BaseControlProperty=ae,l.BaseControlPropertyRules=Qe,l.BaseControlPropertyRuntimeRules=Xt,l.BaseStyle=xt,l.COMMON_SETTING_TYPE=Vt,l.CalcDataBind=cl,l.CalcValue=dl,l.ColumnControlProperty=Be,l.ColumnControlPropertyRules=tt,l.ColumnOptionAndDataSourcePropertyRules=Zl,l.CustomAttributeItem=je,l.CustomPermissionItem=ml,l.DataBind=P,l.DataSourceBind=he,l.DataSourceDataSetValue=$t,l.DataSourceOrderItem=xe,l.DataSourceParamItem=Xr,l.DataStorageDoc=Wr,l.DesignerColumnControl=Ql,l.DesignerControl=_,l.DesignerFormControl=Gt,l.DesignerLayoutControl=W,l.DesignerListControl=Ee,l.DesignerSearchControl=pl,l.DesignerWrapControl=ts,l.DisplayBoListItem=Ve,l.FieldBindItem=It,l.FieldFilterCondition=fe,l.FieldFilterConditions=te,l.FillBackBind=el,l.FillPayloadBind=pr,l.FormBind=de,l.FormSelectBind=Kr,l.ImageOptionSetting=qt,l.JoinRelation=Jr,l.Language=tl,l.LayoutControlProperty=ie,l.LeftVariable=Mt,l.LinkOperationOption=Zr,l.ListBind=zr,l.ListControlProperty=et,l.MetaAutoWidth=Hr,l.MetaWidth=ce,l.MultistageFillingItem=_t,l.ObjectDataBind=me,l.OperationItem=fl,l.OptObject=gl,l.OptionAndDataSourcePropertyRules=Tl,l.OptionSetting=Ne,l.OrganizationDataSourceBind=Qr,l.PAGE_STATUS=ke,l.Property=j,l.PropertyRules=ge,l.PropertyRuntimeRules=He,l.RangeDataBind=ll,l.RangeDateValue=sl,l.RegisterControls=oe,l.RegularRules=nl,l.RightVariable=qe,l.RuntimeColumnControl=Yl,l.RuntimeControl=U,l.RuntimeFormControl=Jl,l.RuntimeLayoutControl=pe,l.RuntimeListControl=Gl,l.RuntimeSearchControl=es,l.RuntimeWrapControl=ns,l.SearchControlProperty=nt,l.SelectedContentConfig=Gr,l.SubListItem=Rt,l.SubListPageConfig=Tr,l.SuperDataSourceBind=Lt,l.TreeDataSourceBind=Yr,l.ViewOperationItem=hl,l.WrapControlProperty=ut,l.controlHooksEmitter=Kt,l.createValidator=Wt,l.defineArrayParent=Qt,l.defineControlArrayToProperty=T,l.defineParent=Ye,l.initImageOptions=al,l.initLinkOperationRules=us,l.initOptionAndDataSourceRules=Ze,l.initOptions=ul,l.initSuperDataSourceRules=zl,l.isDataBind=Jt,l.setPropertyDontEnum=Zt,Object.defineProperty(l,"__esModule",{value:!0})});
@@ -47,7 +47,7 @@ declare class ColumnControlProperty extends Property {
47
47
  /**
48
48
  * 对齐
49
49
  */
50
- align?: 'left' | 'right';
50
+ align?: 'left' | 'right' | 'center';
51
51
  /**
52
52
  * @internal
53
53
  */
@@ -4,8 +4,13 @@ import { DesignerListControl } from './designer';
4
4
  import { RuntimeListControl } from './runtime';
5
5
  declare class ListControlProperty<Mode extends MODE | 'Schema', Control extends object = Mode extends 'Runtime' ? RuntimeControl : Mode extends 'Designer' ? DesignerControl : BaseControlSchema<ControlsKeys, any>> extends Property {
6
6
  headers: Control[];
7
+ footers?: Control[];
8
+ pageIndex: number;
9
+ pageSize: number;
10
+ pageSizeOptions: number[];
7
11
  constructor(parent: DesignerListControl | RuntimeListControl, props?: Partial<ListControlProperty<Mode> & {
8
12
  headers: Control[];
13
+ footers?: Control[];
9
14
  }>);
10
15
  }
11
16
  export default ListControlProperty;
@@ -23,6 +23,12 @@ export declare class DataBind {
23
23
  * @public
24
24
  */
25
25
  fieldType: string;
26
+ /**
27
+ * 表别名
28
+ * @defaultValue undefined
29
+ * @public
30
+ */
31
+ aliasCode?: string;
26
32
  constructor(props?: Partial<DataBind>);
27
33
  }
28
34
  export declare class AutoWidth {
@@ -193,6 +199,15 @@ export declare class FieldFilterCondition {
193
199
  rightVariableBo: RightVariable;
194
200
  constructor(props?: Partial<FieldFilterCondition>);
195
201
  }
202
+ export declare class JoinRelation {
203
+ aliasCode: string;
204
+ datasourceBind: DataSourceBind;
205
+ relationFields: {
206
+ main_field_code: string;
207
+ join_field_code: string;
208
+ }[];
209
+ constructor(props?: Partial<JoinRelation>);
210
+ }
196
211
  /**
197
212
  * 数据填充项
198
213
  * @public
@@ -379,6 +394,7 @@ export declare class LinkOperationOption {
379
394
  confirmMessage: undefined;
380
395
  defaultState: string;
381
396
  formKey: undefined | string;
397
+ formType?: string;
382
398
  icon: string;
383
399
  needConfirm: boolean;
384
400
  openType: string;
@@ -580,7 +596,7 @@ export declare class RangeDataBind extends ObjectDataBind {
580
596
  * 结束日期字段绑定项
581
597
  */
582
598
  max: DataBind;
583
- constructor(props?: Partial<AmountDataBind>);
599
+ constructor(props?: Partial<RangeDataBind>);
584
600
  }
585
601
  /**
586
602
  * 日期区间值
@@ -732,7 +748,6 @@ export declare enum COMMON_SETTING_TYPE {
732
748
  VIEW_FORM_MODEL_TYPE = "viewFormModelType",
733
749
  SERVER_PAGINATION = "serverPagination",
734
750
  IS_SHOW_CAPTION_TIP = "isShowCaptionTip",
735
- IS_SHOW_WATERMARK = "isShowWatermark",
736
751
  ENCRYPTED = "encrypted",
737
752
  IS_INLINE_EDIT = "isInlineEdit",
738
753
  REVISIONS_MODE = "revisionsMode",
@@ -812,3 +827,18 @@ export declare class BaseStyle {
812
827
  heightConfig: 'px' | '%' | 'fill' | 'hug';
813
828
  constructor(props?: Partial<BaseStyle>);
814
829
  }
830
+ export declare class OptObject {
831
+ /**
832
+ * 操作项编码
833
+ * @defaultValue ''
834
+ * @public
835
+ */
836
+ optCode: string;
837
+ /**
838
+ * 操作项类型
839
+ * @defaultValue ''
840
+ * @public
841
+ */
842
+ optType: string;
843
+ constructor(props?: Partial<OptObject>);
844
+ }
@@ -0,0 +1,2 @@
1
+ import { DataBind, ObjectDataBind } from "framework";
2
+ export declare function isDataBind(dataBind: DataBind | ObjectDataBind): boolean;
@@ -1,3 +1,4 @@
1
1
  export * from './common';
2
2
  export * from './framework';
3
3
  export * from './type';
4
+ export * from './framework/isDataBind';
@@ -85,7 +85,7 @@ export interface WrapControlSchema<K extends WrapControlsKeys, T extends WrapCon
85
85
  controlType: 'wrap';
86
86
  children: R[];
87
87
  }
88
- export type Schema<K extends ControlsKeys, T extends Property = InstanceType<Controls[K]['Property']>> = K extends FormControlsKeys ? FormControlSchema<K, T extends BaseControlProperty ? T : BaseControlProperty> : K extends LayoutControlsKeys ? LayoutControlSchema<K, T extends LayoutControlProperty ? T : LayoutControlProperty> : K extends ListControlsKeys ? ListControlSchema<K, T extends ListControlProperty<any> ? T : ListControlProperty<any>> : K extends ColumnControlsKeys ? ColumnControlSchema<K, T extends ColumnControlProperty ? T : ColumnControlProperty> : K extends SearchControlsKeys ? SearchControlSchema<K, T extends SearchControlProperty ? T : SearchControlProperty> : K extends BaseControlsKeys ? BaseControlSchema<K, T extends Property ? T : Property> : BaseControlSchema<K, T extends Property ? T : Property>;
88
+ export type Schema<K extends ControlsKeys, T extends Property = InstanceType<Controls[K]['Property']>> = K extends FormControlsKeys ? FormControlSchema<K, T extends BaseControlProperty ? T : BaseControlProperty> : K extends LayoutControlsKeys ? LayoutControlSchema<K, T extends LayoutControlProperty ? T : LayoutControlProperty> : K extends ListControlsKeys ? ListControlSchema<K, T extends ListControlProperty<any> ? T : ListControlProperty<any>> : K extends ColumnControlsKeys ? ColumnControlSchema<K, T extends ColumnControlProperty ? T : ColumnControlProperty> : K extends SearchControlsKeys ? SearchControlSchema<K, T extends SearchControlProperty ? T : SearchControlProperty> : K extends WrapControlsKeys ? WrapControlSchema<K, T extends WrapControlProperty ? T : WrapControlProperty> : K extends BaseControlsKeys ? BaseControlSchema<K, T extends Property ? T : Property> : BaseControlSchema<K, T extends Property ? T : Property>;
89
89
  export type DeepPartial<T> = {
90
90
  [P in keyof T]?: DeepPartial<T[P]>;
91
91
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-core",
3
- "version": "2.7.0-beta.4",
3
+ "version": "2.8.0-alpha.1",
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.7.0-beta.4",
29
+ "@byteluck-fe/model-driven-shared": "2.7.0-alpha.36",
30
30
  "async-validator": "3.5.1",
31
31
  "tslib": "^2.1.0"
32
32
  },
33
- "gitHead": "1bf9f693724f41f144a37e4f81f2c06dfe2069de"
33
+ "gitHead": "27f083b7b2759db550931017aec897e0740957dd"
34
34
  }