@byteluck-fe/model-driven-core 2.7.0-alpha.0 → 2.7.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/api-doc-index.js +4 -4
- package/dist/esm/common/BaseControl/designer.js +309 -226
- package/dist/esm/common/BaseControl/index.js +7 -7
- package/dist/esm/common/BaseControl/property.js +13 -10
- package/dist/esm/common/BaseControl/runtime.js +16 -16
- package/dist/esm/common/ColumnControl/designer.js +5 -5
- package/dist/esm/common/ColumnControl/index.js +6 -6
- package/dist/esm/common/ColumnControl/property.js +36 -36
- package/dist/esm/common/ColumnControl/runtime.js +5 -5
- package/dist/esm/common/ControlArray.js +8 -8
- package/dist/esm/common/FormControl/designer.js +8 -8
- package/dist/esm/common/FormControl/index.js +6 -6
- package/dist/esm/common/FormControl/property.js +66 -66
- package/dist/esm/common/FormControl/runtime.js +5 -5
- package/dist/esm/common/LayoutControl/designer.js +196 -102
- package/dist/esm/common/LayoutControl/index.js +6 -6
- package/dist/esm/common/LayoutControl/property.js +3 -3
- package/dist/esm/common/LayoutControl/runtime.js +7 -7
- package/dist/esm/common/ListControl/designer.js +184 -84
- package/dist/esm/common/ListControl/index.js +6 -6
- package/dist/esm/common/ListControl/property.js +5 -5
- package/dist/esm/common/ListControl/runtime.js +7 -7
- package/dist/esm/common/SearchViewControl/designer.js +5 -5
- package/dist/esm/common/SearchViewControl/index.js +6 -6
- package/dist/esm/common/SearchViewControl/property.js +4 -4
- package/dist/esm/common/SearchViewControl/runtime.js +5 -5
- package/dist/esm/common/Validator.js +5 -5
- package/dist/esm/common/WrapControl/designer.js +5 -5
- package/dist/esm/common/WrapControl/index.js +6 -6
- package/dist/esm/common/WrapControl/property.js +3 -3
- package/dist/esm/common/WrapControl/runtime.js +5 -5
- package/dist/esm/common/controlHooksEmitter.js +1 -1
- package/dist/esm/common/index.js +12 -12
- package/dist/esm/common/initLinkOperationRules.js +6 -6
- package/dist/esm/common/initOptionAndDataSourceRules.js +82 -82
- package/dist/esm/framework/RegisterControls.js +122 -179
- package/dist/esm/framework/index.js +336 -333
- package/dist/esm/index.js +3 -3
- package/dist/index.umd.js +1 -1
- package/dist/types/common/Validator.d.ts +1 -1
- package/dist/types/common/controlHooksEmitter.d.ts +1 -1
- package/dist/types/type.d.ts +23 -23
- package/package.json +3 -3
package/dist/esm/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./common";
|
|
2
|
+
export * from "./framework";
|
|
3
|
+
export * from "./type";
|
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var Ol=Object.defineProperty,Vl=Object.defineProperties;var Nl=Object.getOwnPropertyDescriptors;var pt=Object.getOwnPropertySymbols;var jl=Object.prototype.hasOwnProperty,Ul=Object.prototype.propertyIsEnumerable;var en=(l,S,M)=>S in l?Ol(l,S,{enumerable:!0,configurable:!0,writable:!0,value:M}):l[S]=M,G=(l,S)=>{for(var M in S||(S={}))jl.call(S,M)&&en(l,M,S[M]);if(pt)for(var M of pt(S))Ul.call(S,M)&&en(l,M,S[M]);return l},Ce=(l,S)=>Vl(l,Nl(S));var se=(l,S,M)=>new Promise((oe,ce)=>{var Fe=_=>{try{Z(M.next(_))}catch(Q){ce(Q)}},De=_=>{try{Z(M.throw(_))}catch(Q){ce(Q)}},Z=_=>_.done?oe(_.value):Promise.resolve(_.value).then(Fe,De);Z((M=M.apply(l,S)).next())});(function(l,S){typeof exports=="object"&&typeof module!="undefined"?S(exports,require("regenerator-runtime")):typeof define=="function"&&define.amd?define(["exports","regenerator-runtime"],S):(l=typeof globalThis!="undefined"?globalThis:l||self,S(l.modelDrivenCore={},l.regeneratorRuntime))})(this,function(l,S){"use strict";function M(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var oe=M(S),ce="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",Fe="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",De="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",Z="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",_="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",Q="{caption}\u5FC5\u586B",tn="\u8BF7\u8F93\u5165\u6807\u9898",nn="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",un="\u8BF7\u8F93\u5165\u884C\u6807\u9898",an="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",rn="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",ln="\u8BF7\u7ED1\u5B9A\u8868\u5355",sn="\u8BF7\u7ED1\u5B9A\u5217\u8868",on="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",cn="\u8BF7\u8F93\u5165\u663E\u793A\u503C",dn="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",fn="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",hn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",mn="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",gn="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",yn="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",En="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",vn="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",Bn="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",An="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",Cn="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",Fn="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Dn="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",bn="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",Sn="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",wn="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",In="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",Rn="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Mn="\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",On="\u8BF7\u9009\u62E9\u7701",Vn="\u8BF7\u9009\u62E9\u5E02",Nn="\u8BF7\u9009\u62E9\u533A",jn="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Un="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",_n="\u8BF7\u8F93\u5165\u5217\u5BBD",xn="\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",Tn="\u8BF7\u9009\u62E9\u63A7\u4EF6",Wn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",Kn="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",kn="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",zn="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Xn="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Jn="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Gn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Zn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Qn="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Yn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",pn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",eu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",tu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",nu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",uu="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",au="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",iu="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",ru="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",lu="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",su="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",ou="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",cu={isNotNumber:ce,isNotString:Fe,isNotObject:De,isNotArray:Z,isNotBoolean:_,runtimeRequired:Q,pleaseEnterCaption:tn,pleaseEnterCaptionTip:nn,pleaseEnterRowCaption:un,pleaseEnterPlaceholder:an,pleaseEnterFieldCode:rn,pleaseEnterForm:ln,pleaseEnterList:sn,pleaseEnterProcess:on,pleaseEnterLabel:cn,pleaseEnterValue:dn,bizKeyNotBindFiled:fn,pleaseSelectOneField:hn,pleaseEnterNumberRange:mn,pleaseEnterAValueGreaterThanMin:gn,pleaseEnterAValueLessThanMax:yn,numberRangeSetError:En,stringRangeError:vn,attachmentMaxSize:Bn,pleaseEnterTotalScoreSetting:An,theTotalScoreMustNotBeLessThan1:Cn,scoreDefaultValueRange:Fn,attachmentLimitError:Dn,PleaseReselectTheOptionalQuantity:bn,TheMaximumLengthIsGreaterThanTheMinimumLength:Sn,TheMinimumLengthIsGreaterThanTheMaximumLength:wn,PleaseSelectTheCorrectOptionSettings:In,optionIdIsRepeat:Rn,optionIsRequired:Mn,pleaseEnterDataCode:Ln,pleaseEnterValueFieldCode:$n,pleaseEnterSvcCode:qn,pleaseBindAtLeastOneDisplayValue:Pn,pleaseSelectProvince:On,pleaseSelectCity:Vn,pleaseSelectDistrict:Nn,limitRowsCannotBeLessThan0:jn,TheNumberOfRowsCannotBeLessThanMinRows:Un,pleaseEnterColumnWidth:_n,pleaseSetTheLogicalRelationshipOfAllRuleConditions:xn,pleaseCompleteAllRulesAndConditions:Hn,pleaseSelectControl:Tn,pleaseSelectAtLeastOneColumn:Wn,pleaseSelectFillBackMode:Kn,pleaseSelectDashboard:kn,rootNodeIsRequired:zn,theViewNameCannotBeEmpty:Xn,pleaseSelectOcrType:Jn,pleaseSelectAtLeastOneFieldToFillIn:Gn,pleaseChooseAtLeastOne:Zn,pleaseEnterButtonContent:Qn,pleaseEnterDataCodeInDataSetting:Yn,pleaseEnterValueFieldCodeInDataSetting:pn,pleaseEnterSvcCodeInDataSetting:eu,pleaseBindAtLeastOneDisplayValueInDataSetting:tu,rootNodeIsRequiredInDataSetting:nu,pleaseEnterMaxHeight:uu,pleaseEnter:au,pleaseEnterWatermark:iu,pleaseEnterFileName:ru,pleaseUploadAtLeastOnePrintTemplate:lu,pleaseAssignBusiness:su,pleaseAssignExternal:ou},du="Please enter a number",fu="Please enter a string",hu="Please enter an object",mu="Please enter an array",gu="Please enter a boolean",yu="{caption} Required",Eu="Please enter the title",vu="Please enter the bubble prompt",Bu="Please enter the row title",Au="Please enter the prompt text",Cu="Please bind data items",Fu="Please bind the form",Du="Please bind the list",bu="Please bind the process",Su="Please enter the displayed value",wu="Please enter the stored value",Iu="The document number is not bound to the data item",Ru="Please select at least one display field",Mu="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}",Ou="The attachment size must be between 0MB and 1000MB",Vu="Please fill in the total score setting",Nu="The total score cannot be less than 1",ju="The default value must be between {min} and {max}",Uu="The number of attachments uploaded must be between {min} and {max}",_u="Please re-select the optional quantity",xu="The maximum length of the control must be greater than the minimum length",Hu="The minimum length of the control must be less than the maximum length",Tu="Please select the correct option setting",Wu="Option ID cannot be repeated",Ku="Please enter at least one option",ku="Please bind the data source",zu="Please bind the stored value",Xu="Please bind the service",Ju="At least one display value must be bound",Gu="Please select a province",Zu="Please select a city",Qu="Please select a district",Yu="The minimum number of lines to fill in cannot be less than 0",pu="The number of rows cannot be less than {min} rows",ea="Please enter the column width",ta="Please set the logical relationship of all rule conditions",na="Please complete all rules and conditions",ua="please select control",aa="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",ia="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ra="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",la="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",sa="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",oa="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",ca="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",da="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",fa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",ha="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",ma="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ga="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",ya="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Ea="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",va="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ba="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Aa="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Ca="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Fa={isNotNumber:du,isNotString:fu,isNotObject:hu,isNotArray:mu,isNotBoolean:gu,runtimeRequired:yu,pleaseEnterCaption:Eu,pleaseEnterCaptionTip:vu,pleaseEnterRowCaption:Bu,pleaseEnterPlaceholder:Au,pleaseEnterFieldCode:Cu,pleaseEnterForm:Fu,pleaseEnterList:Du,pleaseEnterProcess:bu,pleaseEnterLabel:Su,pleaseEnterValue:wu,bizKeyNotBindFiled:Iu,pleaseSelectOneField:Ru,pleaseEnterNumberRange:Mu,pleaseEnterAValueGreaterThanMin:Lu,pleaseEnterAValueLessThanMax:$u,numberRangeSetError:qu,stringRangeError:Pu,attachmentMaxSize:Ou,pleaseEnterTotalScoreSetting:Vu,theTotalScoreMustNotBeLessThan1:Nu,scoreDefaultValueRange:ju,attachmentLimitError:Uu,PleaseReselectTheOptionalQuantity:_u,TheMaximumLengthIsGreaterThanTheMinimumLength:xu,TheMinimumLengthIsGreaterThanTheMaximumLength:Hu,PleaseSelectTheCorrectOptionSettings:Tu,optionIdIsRepeat:Wu,optionIsRequired:Ku,pleaseEnterDataCode:ku,pleaseEnterValueFieldCode:zu,pleaseEnterSvcCode:Xu,pleaseBindAtLeastOneDisplayValue:Ju,pleaseSelectProvince:Gu,pleaseSelectCity:Zu,pleaseSelectDistrict:Qu,limitRowsCannotBeLessThan0:Yu,TheNumberOfRowsCannotBeLessThanMinRows:pu,pleaseEnterColumnWidth:ea,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ta,pleaseCompleteAllRulesAndConditions:na,pleaseSelectControl:ua,pleaseSelectDashboard:aa,theViewNameCannotBeEmpty:ia,pleaseSelectOcrType:ra,pleaseSelectAtLeastOneFieldToFillIn:la,pleaseChooseAtLeastOne:sa,pleaseEnterButtonContent:oa,pleaseEnterDataCodeInDataSetting:ca,pleaseEnterValueFieldCodeInDataSetting:da,pleaseEnterSvcCodeInDataSetting:fa,pleaseBindAtLeastOneDisplayValueInDataSetting:ha,rootNodeIsRequiredInDataSetting:ma,pleaseEnterMaxHeight:ga,pleaseEnter:ya,pleaseEnterWatermark:Ea,pleaseEnterFileName:va,pleaseUploadAtLeastOnePrintTemplate:Ba,pleaseAssignBusiness:Aa,pleaseAssignExternal:Ca},Da="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ba="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Sa="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",wa="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ia="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ra="{caption}\u5FC5\u9808",Ma="\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",Oa="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Va="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Na="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ja="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ua="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",_a="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",xa="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ha="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ta="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Wa="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ka="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",ka="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",za="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Xa="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Ja="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Ga="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Za="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Qa="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ya="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5927\u5024\u306F\u6700\u5C0F\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",pa="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5C0F\u5024\u306F\u6700\u5927\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",ei="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ti="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",ni="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",ui="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ai="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ii="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ri="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",li="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",si="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",oi="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ci="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",di="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",fi="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",hi="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",mi="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",gi="please select control",yi="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Ei="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",vi="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Bi="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Ai="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Ci="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Fi="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Di="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",bi="\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",wi="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Ii="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Ri="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Mi="\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",Oi={isNotNumber:Da,isNotString:ba,isNotObject:Sa,isNotArray:wa,isNotBoolean:Ia,runtimeRequired:Ra,pleaseEnterCaption:Ma,pleaseEnterCaptionTip:La,pleaseEnterRowCaption:$a,pleaseEnterPlaceholder:qa,pleaseEnterFieldCode:Pa,pleaseEnterForm:Oa,pleaseEnterList:Va,pleaseEnterProcess:Na,pleaseEnterLabel:ja,pleaseEnterValue:Ua,bizKeyNotBindFiled:_a,pleaseSelectOneField:xa,pleaseEnterNumberRange:Ha,pleaseEnterAValueGreaterThanMin:Ta,pleaseEnterAValueLessThanMax:Wa,numberRangeSetError:Ka,stringRangeError:ka,attachmentMaxSize:za,pleaseEnterTotalScoreSetting:Xa,theTotalScoreMustNotBeLessThan1:Ja,scoreDefaultValueRange:Ga,attachmentLimitError:Za,PleaseReselectTheOptionalQuantity:Qa,TheMaximumLengthIsGreaterThanTheMinimumLength:Ya,TheMinimumLengthIsGreaterThanTheMaximumLength:pa,PleaseSelectTheCorrectOptionSettings:ei,optionIdIsRepeat:ti,optionIsRequired:ni,pleaseEnterDataCode:ui,pleaseEnterValueFieldCode:ai,pleaseEnterSvcCode:ii,pleaseBindAtLeastOneDisplayValue:ri,pleaseSelectProvince:li,pleaseSelectCity:si,pleaseSelectDistrict:oi,limitRowsCannotBeLessThan0:ci,TheNumberOfRowsCannotBeLessThanMinRows:di,pleaseEnterColumnWidth:fi,pleaseSetTheLogicalRelationshipOfAllRuleConditions:hi,pleaseCompleteAllRulesAndConditions:mi,pleaseSelectControl:gi,pleaseSelectDashboard:yi,theViewNameCannotBeEmpty:Ei,pleaseSelectOcrType:vi,pleaseSelectAtLeastOneFieldToFillIn:Bi,pleaseChooseAtLeastOne:Ai,pleaseEnterButtonContent:Ci,pleaseEnterDataCodeInDataSetting:Fi,pleaseEnterValueFieldCodeInDataSetting:Di,pleaseEnterSvcCodeInDataSetting:bi,pleaseBindAtLeastOneDisplayValueInDataSetting:Si,rootNodeIsRequiredInDataSetting:wi,pleaseEnterMaxHeight:Ii,pleaseEnter:Ri,pleaseEnterWatermark:Mi,pleaseEnterFileName:Li,pleaseUploadAtLeastOnePrintTemplate:$i,pleaseAssignBusiness:qi,pleaseAssignExternal:Pi},Vi={zhCN:cu,enUS:Fa,jaJP:Oi},it;(function(t){t.Number="Number",t.Operator="Operator",t.VariableInMainTable="VariableInMainTable",t.VariableInCurrentSubTable="VariableInCurrentSubTable",t.VariableInOtherSubTable="VariableInOtherSubTable",t.UndefinedVariable="UndefinedVariable"})(it||(it={}));var rt;(function(t){t.SUM="SUM",t.AVG="AVG",t.MAX="MAX",t.MIN="MIN"})(rt||(rt={}));var Ni="zh-CN";function P(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 L;(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.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"})(L||(L={}));var R;(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"})(R||(R={}));var $;$={},P($,R.ARRAY,L.ARRAY_COLUMN),P($,R.AUTO_NUMBER,L.AUTO_NUMBER_COLUMN),P($,R.DECIMAL,L.DECIMAL_COLUMN),P($,R.DEPARTMENTS,L.DEPARTMENT_COLUMN),P($,R.FILE,L.FILE_COLUMN),P($,R.IMAGE,L.IMAGE_COLUMN),P($,R.ADDRESS,L.LOCATION_COLUMN),P($,R.EMPLOYEES,L.EMPLOYEE_COLUMN),P($,R.TEXT,L.TEXT_COLUMN),P($,R.TIMESCOPE,L.TIMESCOPE_COLUMN),P($,R.TIMESTAMP,L.TIMESTAMP_COLUMN),P($,R.VARCHAR,L.VARCHAR_COLUMN),P($,R.RELATION,L.VARCHAR_COLUMN);var lt;(function(t){t.YEAR="year",t.MONTH="month",t.DATE="date",t.DATEHOUR="datehour",t.DATEMIN="datemin",t.DATETIME="datetime"})(lt||(lt={}));var st="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ji=st+"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?st:ji,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 Ui(t){if(Array.isArray(t))return be(t)}function _i(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ot(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xi(){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 de(t,e,n){return xi()?de=Reflect.construct:de=function(a,i,r){var o=[null];o.push.apply(o,i);var d=Function.bind.apply(a,o),c=new d;return r&&p(c,r.prototype),c},de.apply(null,arguments)}function Y(t){return Y=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Y(t)}function ct(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function Hi(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ti(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 Ki(t,e){return e&&(ki(e)==="object"||typeof e=="function")?e:_i(t)}function p(t,e){return p=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},p(t,e)}function dt(t){return Ui(t)||Ti(t)||zi(t)||Wi()}var ki=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function zi(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||!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 de(u,arguments,Y(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),p(a,u)},Se(t)}function Xi(){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 ft(t){var e=Xi();return function(){var u=Y(t),a;if(e){var i=Y(this).constructor;a=Reflect.construct(u,arguments,i)}else a=u.apply(this,arguments);return Ki(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(dt(a)))}function ht(){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(dt(a)))}function Ji(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Re=function(t){ct(n,t);var e=ft(n);function n(u){ot(this,n);var a;return a=e.call(this,u),a.name="\u{1F4A5} Driven Error",a.message=u?Ji(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)),Gi=function(t){ct(n,t);var e=ft(n);function n(u){ot(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 mt(t){throw new Gi(t)}function Zi(t){we.error(new Re(t))}var Qi=Object.prototype.toString;function gt(t,e){return Qi.call(t)==="[object "+e+"]"}function Yi(t){return gt(t,"String")}function pi(t){return gt(t,"Promise")}var er=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();pi(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,o){if(a!==void 0){var d=a[i];if(!(r===o.length-1&&!Yi(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 tr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yt(t,e){for(var n=0;n<e.length;n++){var u=e[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function nr(t,e,n){return e&&yt(t.prototype,e),n&&yt(t,n),t}var f=function(){function t(){tr(this,t)}return nr(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]:Ni;return new er({locale:n,messages:Vi})}},{key:"setLocale",value:function(n){return this.$i18n.setLocale(n)}}]),t}();f.$i18n=f.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,o,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 o===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(s,g,h){if(!c(g)||v(g)||C(g)||b(g)||d(g))return g;var D,w=0,j=0;if(y(g))for(D=[],j=g.length;w<j;w++)D.push(n(s,g[w],h));else{D={};for(var A in g)Object.prototype.hasOwnProperty.call(g,A)&&(D[s(A,h)]=n(s,g[A],h))}return D},u=function(s,g){g=g||{};var h=g.separator||"_",D=g.split||/(?=[A-Z])/;return s.split(D).join(h)},a=function(s){return F(s)?s:(s=s.replace(/[\-_\s]+(.)?/g,function(g,h){return h?h.toUpperCase():""}),s.substr(0,1).toLowerCase()+s.substr(1))},i=function(s){var g=a(s);return g.substr(0,1).toUpperCase()+g.substr(1)},r=function(s,g){return u(s,g).toLowerCase()},o=Object.prototype.toString,d=function(s){return typeof s=="function"},c=function(s){return s===Object(s)},y=function(s){return o.call(s)=="[object Array]"},v=function(s){return o.call(s)=="[object Date]"},C=function(s){return o.call(s)=="[object RegExp]"},b=function(s){return o.call(s)=="[object Boolean]"},F=function(s){return s=s-0,s===s},m=function(s,g){var h=g&&"process"in g?g.process:g;return typeof h!="function"?s:function(D,w){return h(D,s,w)}},B={camelize:a,decamelize:r,pascalize:i,depascalize:r,camelizeKeys:function(s,g){return n(m(a,g),s)},decamelizeKeys:function(s,g){return n(m(r,g),s,g)},pascalizeKeys:function(s,g){return n(m(i,g),s)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=B:e.humps=B})(ar)})(ir);var Et={};Object.defineProperty(Et,"__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=Et.default=Le;function K(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 vt(t,e,n,u,a,i,r){try{var o=t[i](r),d=o.value}catch(c){n(c);return}o.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){vt(i,u,a,r,o,"next",d)}function o(d){vt(i,u,a,r,o,"throw",d)}r(void 0)})}}function fr(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 hr(t,e,n){return e&&Bt(t.prototype,e),n&&Bt(t,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)}}var Er=function(){function t(){fr(this,t),this._events=new Map,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(oe.default.mark(function o(){var d,c,y,v,C,b,F,m,B,s;return oe.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(d=r._events.get(n),c=[],!d){h.next=42;break}y=d.slice(),v=!0,C=!1,b=void 0,h.prev=5,F=y[Symbol.iterator]();case 7:if(v=(m=F.next()).done){h.next=28;break}if(B=m.value,d.includes(B)){h.next=11;break}return h.abrupt("continue",25);case 11:return h.prev=11,r.debug&&ht.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(B.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+B.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(a.map(function(){return"%o"}).join(","),"\u3002")].concat(qe(a))),h.next=15,B.apply(null,qe(a));case 15:if(s=h.sent,r.debug&&ht.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(n," \u4E8B\u4EF6: ").concat(B.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+B.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),[s])),c.push(s),s!==!1){h.next=20;break}return h.abrupt("break",28);case 20:h.next=25;break;case 22:h.prev=22,h.t0=h.catch(11),Zi(String(h.t0)+":"+String(h.t0.stack));case 25:v=!0,h.next=7;break;case 28:h.next=34;break;case 30:h.prev=30,h.t1=h.catch(5),C=!0,b=h.t1;case 34:h.prev=34,h.prev=35,!v&&F.return!=null&&F.return();case 37:if(h.prev=37,!C){h.next=40;break}throw b;case 40:return h.finish(37);case 41:return h.finish(34);case 42:return h.abrupt("return",c);case 43:case"end":return h.stop()}},o,null,[[5,30,34,42],[11,22],[35,,37,41]])}))()}},{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}();const At=[];class fe{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));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 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])})}}fe.staticControls=At,fe.staticRegisteredTypes=new Set(At.map(t=>t.Designer.controlType)),fe.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:"",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 he extends Pe{constructor(e){super(e);var n,u;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 vr{constructor(e){this.pc=new he(e==null?void 0:e.pc),this.mobile=(e==null?void 0:e.mobile)?new he(e==null?void 0:e.mobile):new he({width:130,minWidth:180})}}class Br{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 me{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 Ar extends me{constructor(e){super(e);var n;this.primaryControlId=(n=e==null?void 0:e.primaryControlId)!=null?n:""}}class Ct{constructor(e){var n;this.fieldCode=(n=e==null?void 0:e.fieldCode)!=null?n:""}}class Cr{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 Ct(r)))!=null?i:[]}}class Ft{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:R.VARCHAR}}class Dt extends me{constructor(e){super(e);var n,u,a,i;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 Fr{constructor(e){var n,u,a,i;this.type="sublist-page",this.formBind=new me(e==null?void 0:e.formBind),this.displayFields=(u=(n=e==null?void 0:e.displayFields)==null?void 0:n.map(r=>new Ft(r)))!=null?u:[],this.sublists=(i=(a=e==null?void 0:e.sublists)==null?void 0:a.map(r=>new Dt(r)))!=null?i:[]}}class bt{constructor(e){this.type=e==null?void 0:e.type,this.value=e==null?void 0:e.value}}class Oe{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 ee{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 o,d;if(r.children!==void 0){const c=new ee(r);(o=this.children)==null||o.push(c)}else{const c=new ge(r);(d=this.children)==null||d.push(c)}}))}}class ge{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 bt(e==null?void 0:e.leftVariableBo),this.rightVariableBo=new Oe(e==null?void 0:e.rightVariableBo)}}class Dr{constructor(e){var n,u;this.aliasCode=(n=e==null?void 0:e.aliasCode)!=null?n:"",this.datasourceBind=new te(e==null?void 0:e.datasourceBind),this.relationFields=(u=e==null?void 0:e.relationFields)!=null?u:[]}}class St{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 Ne{constructor(e){var n,u;this.columnName=(n=e.columnName)!=null?n:"",this.desc=(u=e.desc)!=null?u:!1}}class wt{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:R.ANY}}class br{constructor(e){var n,u,a,i,r,o,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 Ne(c)))!=null?r:[],this.dataSet=(d=(o=e.dataSet)==null?void 0:o.map(c=>new wt(c)))!=null?d:[]}}function je(t){var e,n,u,a,i,r;this.filters=(n=(e=t==null?void 0:t.filters)==null?void 0:e.map(o=>o.children!==void 0?new ee(o):new ge(o)))!=null?n:[],this.viewFilters=(a=(u=t==null?void 0:t.viewFilters)==null?void 0:u.map(o=>o.children!==void 0?new ee(o):new ge(o)))!=null?a:[],(this instanceof te||this instanceof Mt)&&(this.orders=(r=(i=t==null?void 0:t.orders)==null?void 0:i.map(o=>new Ne(o)))!=null?r:[])}class te{constructor(e){var n,u,a,i,r,o,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 y;(y=this.displayBoList)==null||y.push(new Ve(c))})),this.keywordMapping=(r=e==null?void 0:e.keywordMapping)!=null?r:"",this.showOrder=(o=e==null?void 0:e.showOrder)!=null?o:!0,this.svcCode=(d=e==null?void 0:e.svcCode)!=null?d:"",je.call(this,e)}}class Sr{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 wr{constructor(e){var n,u,a,i,r,o,d,c,y,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=(o=e==null?void 0:e.formKey)!=null?o: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=(y=e==null?void 0:e.openType)!=null?y:"modal",this.priorityProcess=(v=e==null?void 0:e.priorityProcess)!=null?v:!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 Ve(r)))!=null?i:[]}}class It extends te{constructor(e){super(e);var n,u;this.attributes=(u=(n=e==null?void 0:e.attributes)==null?void 0:n.map(a=>new Ue(a)))!=null?u:[]}}class Ir extends te{constructor(e){super(e);var n,u,a;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 Rr extends It{constructor(e){super(e);var n;this.rootNode=new Oe(e==null?void 0:e.rootNode),this.filterCode=(n=e==null?void 0:e.filterCode)!=null?n:""}}class Rt{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 St(r)))!=null?i:[]}}class Mt extends Rt{constructor(e){super(e);je.call(this,e)}}class Mr extends Rt{constructor(e){super(e);var n,u;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 Lr{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 $r{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 _e{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 Lt extends _e{constructor(e){super(e);var n,u;this.image=(n=e==null?void 0:e.image)!=null?n:"",this.type=(u=e==null?void 0:e.type)!=null?u:"src"}}function qr(t){var e;return(e=t==null?void 0:t.map(n=>new _e(n)))!=null?e:[]}function Pr(t){var e;return(e=t==null?void 0:t.map(n=>new Lt(n)))!=null?e:[]}class ye{}class Or extends ye{constructor(e){super();this.amount=new V(e==null?void 0:e.amount),this.currency=new V(e==null?void 0:e.currency)}}class Vr{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:xe.CNY}}class Nr extends ye{constructor(e){super();this.min=new V(e==null?void 0:e.min),this.max=new V(e==null?void 0:e.max)}}class jr{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 Ur{constructor(e){var n,u,a,i,r,o;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=(o=e==null?void 0:e.provinceDisplay)!=null?o:""}}class _r extends ye{constructor(e){super();this.result=new V(e==null?void 0:e.result),this.unit=new V(e==null?void 0:e.unit)}}class xr{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 xe=(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))(xe||{}),$t=(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))($t||{}),He=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT",t))(He||{});class Hr{constructor(e){var n,u,a,i,r,o;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=(o=e==null?void 0:e.priorityProcess)!=null?o:!1}}class Tr{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 Ct(r)))!=null?i:[],je.call(this,e)}}class Wr{constructor(e){var n,u;this.key=(n=e.key)!=null?n:W(8),this.caption=(u=e.caption)!=null?u:""}}class qt{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 Kr{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 Ee{constructor(e){this.isHide={type:"boolean"}}}class Te extends Array{constructor(e){super()}}class x{constructor(e,n=""){var u,a;this.isHide=(u=e==null?void 0:e.isHide)!=null?u:!1,this.style=new qt(e==null?void 0:e.style),this.caption=(a=e==null?void 0:e.caption)!=null?a:n}}x.Rules=Ee,x.RuntimeRules=Te;function N(){return N=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},N.apply(this,arguments)}function kr(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 ve(t,e){return ve=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},ve(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 Be(t,e,n){return zr()?Be=Reflect.construct:Be=function(a,i,r){var o=[null];o.push.apply(o,i);var d=Function.bind.apply(a,o),c=new d;return r&&ve(c,r.prototype),c},Be.apply(null,arguments)}function Xr(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||!Xr(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 Be(u,arguments,We(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ve(a,u)},Ke(t)}var Jr=/%[sdj%]/g,Pt=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Pt=function(e,n){typeof console!="undefined"&&console.warn&&n.every(function(u){return typeof u=="string"})&&console.warn(e,n)});function ke(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 O(){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(Jr,function(o){if(o==="%%")return"%";if(u>=i)return o;switch(o){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 o}});return r}return a}function Gr(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function I(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||Gr(e)&&typeof t=="string"&&!t)}function Zr(t,e,n){var u=[],a=0,i=t.length;function r(o){u.push.apply(u,o),a++,a===i&&n(u)}t.forEach(function(o){e(o,r)})}function Ot(t,e,n){var u=0,a=t.length;function i(r){if(r&&r.length){n(r);return}var o=u;u=u+1,o<a?e(t[o],i):n([])}i([])}function Qr(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n])}),e}var Vt=function(t){kr(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 Yr(t,e,n,u){if(e.first){var a=new Promise(function(v,C){var b=function(B){return u(B),B.length?C(new Vt(B,ke(B))):v()},F=Qr(t);Ot(F,n,b)});return a.catch(function(v){return v}),a}var i=e.firstFields||[];i===!0&&(i=Object.keys(t));var r=Object.keys(t),o=r.length,d=0,c=[],y=new Promise(function(v,C){var b=function(m){if(c.push.apply(c,m),d++,d===o)return u(c),c.length?C(new Vt(c,ke(c))):v()};r.length||(u(c),v()),r.forEach(function(F){var m=t[F];i.indexOf(F)!==-1?Ot(m,n,b):Zr(m,n,b)})});return y.catch(function(v){return v}),y}function Nt(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 jt(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]=N(N({},t[n]),u):t[n]=u}}return t}function Ut(t,e,n,u,a,i){t.required&&(!n.hasOwnProperty(t.field)||I(e,i||t.type))&&u.push(O(a.messages.required,t.fullField))}function pr(t,e,n,u,a){(/^\s+$/.test(e)||e==="")&&u.push(O(a.messages.whitespace,t.fullField))}var ze={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(ze.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(ze.url)},hex:function(e){return typeof e=="string"&&!!e.match(ze.hex)}};function el(t,e,n,u,a){if(t.required&&e===void 0){Ut(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(O(a.messages.types[r],t.fullField,t.type)):r&&typeof e!==t.type&&u.push(O(a.messages.types[r],t.fullField,t.type))}function tl(t,e,n,u,a){var i=typeof t.len=="number",r=typeof t.min=="number",o=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=e,y=null,v=typeof e=="number",C=typeof e=="string",b=Array.isArray(e);if(v?y="number":C?y="string":b&&(y="array"),!y)return!1;b&&(c=e.length),C&&(c=e.replace(d,"_").length),i?c!==t.len&&u.push(O(a.messages[y].len,t.fullField,t.len)):r&&!o&&c<t.min?u.push(O(a.messages[y].min,t.fullField,t.min)):o&&!r&&c>t.max?u.push(O(a.messages[y].max,t.fullField,t.max)):r&&o&&(c<t.min||c>t.max)&&u.push(O(a.messages[y].range,t.fullField,t.min,t.max))}var z="enum";function nl(t,e,n,u,a){t[z]=Array.isArray(t[z])?t[z]:[],t[z].indexOf(e)===-1&&u.push(O(a.messages[z],t.fullField,t[z].join(", ")))}function ul(t,e,n,u,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||u.push(O(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(O(a.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var E={required:Ut,whitespace:pr,type:el,range:tl,enum:nl,pattern:ul};function al(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e,"string")&&!t.required)return n();E.required(t,e,u,i,a,"string"),I(e,"string")||(E.type(t,e,u,i,a),E.range(t,e,u,i,a),E.pattern(t,e,u,i,a),t.whitespace===!0&&E.whitespace(t,e,u,i,a))}n(i)}function il(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e)&&!t.required)return n();E.required(t,e,u,i,a),e!==void 0&&E.type(t,e,u,i,a)}n(i)}function rl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e===""&&(e=void 0),I(e)&&!t.required)return n();E.required(t,e,u,i,a),e!==void 0&&(E.type(t,e,u,i,a),E.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(I(e)&&!t.required)return n();E.required(t,e,u,i,a),e!==void 0&&E.type(t,e,u,i,a)}n(i)}function sl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e)&&!t.required)return n();E.required(t,e,u,i,a),I(e)||E.type(t,e,u,i,a)}n(i)}function ol(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e)&&!t.required)return n();E.required(t,e,u,i,a),e!==void 0&&(E.type(t,e,u,i,a),E.range(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(I(e)&&!t.required)return n();E.required(t,e,u,i,a),e!==void 0&&(E.type(t,e,u,i,a),E.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(e==null&&!t.required)return n();E.required(t,e,u,i,a,"array"),e!=null&&(E.type(t,e,u,i,a),E.range(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(I(e)&&!t.required)return n();E.required(t,e,u,i,a),e!==void 0&&E.type(t,e,u,i,a)}n(i)}var hl="enum";function ml(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e)&&!t.required)return n();E.required(t,e,u,i,a),e!==void 0&&E[hl](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(I(e,"string")&&!t.required)return n();E.required(t,e,u,i,a),I(e,"string")||E.pattern(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(I(e,"date")&&!t.required)return n();if(E.required(t,e,u,i,a),!I(e,"date")){var o;e instanceof Date?o=e:o=new Date(e),E.type(t,o,u,i,a),o&&E.range(t,o.getTime(),u,i,a)}}n(i)}function El(t,e,n,u,a){var i=[],r=Array.isArray(e)?"array":typeof e;E.required(t,e,u,i,a,r),n(i)}function Xe(t,e,n,u,a){var i=t.type,r=[],o=t.required||!t.required&&u.hasOwnProperty(t.field);if(o){if(I(e,i)&&!t.required)return n();E.required(t,e,u,r,a,i),I(e,i)||E.type(t,e,u,r,a)}n(r)}function vl(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e)&&!t.required)return n();E.required(t,e,u,i,a)}n(i)}var ue={string:al,method:il,number:rl,boolean:ll,regexp:sl,integer:ol,float:cl,array:dl,object:fl,enum:ml,pattern:gl,date:yl,url:Xe,hex:Xe,email:Xe,required:El,any:vl};function Je(){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=Je();function H(t){this.rules=null,this._messages=Ge,this.define(t)}H.prototype={messages:function(e){return e&&(this._messages=jt(Je(),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,o=u;if(typeof r=="function"&&(o=r,r={}),!this.rules||Object.keys(this.rules).length===0)return o&&o(),Promise.resolve();function d(m){var B,s=[],g={};function h(D){if(Array.isArray(D)){var w;s=(w=s).concat.apply(w,D)}else s.push(D)}for(B=0;B<m.length;B++)h(m[B]);s.length?g=ke(s):(s=null,g=null),o(s,g)}if(r.messages){var c=this.messages();c===Ge&&(c=Je()),jt(c,r.messages),r.messages=c}else r.messages=this.messages();var y,v,C={},b=r.keys||Object.keys(this.rules);b.forEach(function(m){y=a.rules[m],v=i[m],y.forEach(function(B){var s=B;typeof s.transform=="function"&&(i===e&&(i=N({},i)),v=i[m]=s.transform(v)),typeof s=="function"?s={validator:s}:s=N({},s),s.validator=a.getValidationMethod(s),s.field=m,s.fullField=s.fullField||m,s.type=a.getType(s),!!s.validator&&(C[m]=C[m]||[],C[m].push({rule:s,value:v,source:i,field:m}))})});var F={};return Yr(C,r,function(m,B){var s=m.rule,g=(s.type==="object"||s.type==="array")&&(typeof s.fields=="object"||typeof s.defaultField=="object");g=g&&(s.required||!s.required&&m.value),s.field=m.field;function h(j,A){return N(N({},A),{},{fullField:s.fullField+"."+j})}function D(j){j===void 0&&(j=[]);var A=j;if(Array.isArray(A)||(A=[A]),!r.suppressWarning&&A.length&&H.warning("async-validator:",A),A.length&&s.message!==void 0&&(A=[].concat(s.message)),A=A.map(Nt(s)),r.first&&A.length)return F[s.field]=1,B(A);if(!g)B(A);else{if(s.required&&!m.value)return s.message!==void 0?A=[].concat(s.message).map(Nt(s)):r.error&&(A=[r.error(s,O(r.messages.required,s.field))]),B(A);var U={};if(s.defaultField)for(var Qt in m.value)m.value.hasOwnProperty(Qt)&&(U[Qt]=s.defaultField);U=N(N({},U),m.rule.fields);for(var X in U)if(U.hasOwnProperty(X)){var Pl=Array.isArray(U[X])?U[X]:[U[X]];U[X]=Pl.map(h.bind(null,X))}var Yt=new H(U);Yt.messages(r.messages),m.rule.options&&(m.rule.options.messages=r.messages,m.rule.options.error=r.error),Yt.validate(m.value,m.rule.options||r,function(at){var J=[];A&&A.length&&J.push.apply(J,A),at&&at.length&&J.push.apply(J,at),B(J.length?J:null)})}}var w;s.asyncValidator?w=s.asyncValidator(s,m.value,D,m.source,r):s.validator&&(w=s.validator(s,m.value,D,m.source,r),w===!0?D():w===!1?D(s.message||s.field+" fails"):w instanceof Array?D(w):w instanceof Error&&D(w.message)),w&&w.then&&w.then(function(){return D()},function(j){return D(j)})},function(m){d(m)})},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(O("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=Pt,H.messages=Ge,H.validators=ue;const Bl={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 _t(t,e={}){const n=new H(t);return n.messages(Object.assign(Bl,e)),n}const xt=new Er;class q{constructor(e){var y,v,C,b;this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=Tt,this.removeSetting=Ht,this._callControlHooks("preInstance",e);const{controlName:n,controlIcon:u,controlType:a,controlFieldType:i,controlEventKeys:r,controlCustomEvents:o,name:d,setting:c}=new.target;n&&u&&a||mt(`The ${d} controlName,controlIcon,controlType is not define`),this.id=(y=e==null?void 0:e.id)!=null?y:W(10),this.name=n,this.icon=u,this.type=(v=e==null?void 0:e.type)!=null?v:a,this.props=new x(e==null?void 0:e.props,new.target.controlName),this.controlType=(C=e==null?void 0:e.controlType)!=null?C:"base",this.setting=K(c),this.fieldType=(b=e==null?void 0:e.fieldType)!=null?b:i,this.eventKeys=K(r),this.customEvents=K(o),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 xt.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 se(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 se(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=_t(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:o,caption:d,required:c,maxLength:y,options:v,encrypted:C,encryptedMode:b}=this.props;if(!n&&!i&&!r)return;const F={parentId:e,fieldType:n,controlId:u,caption:d,type:a,props:{}};switch(i&&(F.dataBind=i),o){case"datasource":case void 0:r&&(F.datasourceBind=r);break;case"custom":F.props.options=v;break}return c!==void 0&&(F.required=c),y!==void 0&&(F.maxLength=y),C!==void 0&&(F.encrypted=C),b!==void 0&&(F.encryptedMode=b),F}preToSchema(){this._callControlHooks("preToSchema",this)}toSchema(){return this.preToSchema(),{id:this.id,type:this.type,props:K(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)}}q.controlName="\u63A7\u4EF6",q.controlIcon="icon",q.controlType="control",q.controlEventKeys=[],q.controlCustomEvents=[],q.setting=[],q.__is_control__=!0,q.removeSettingItem=Ht,q.updateSettingItem=Tt;function Ht(t){(Array.isArray(t)?t:[t]).forEach(n=>{var i,r;const u=typeof n!="string",a=this.setting.findIndex(o=>o.key===(u?n.key:n));a!==-1&&(u?this.setting[a].showItems=(i=this.setting[a].showItems)==null?void 0:i.filter(o=>!n.hideItems.includes(o)):this.setting.splice(a,1),u&&!((r=this.setting[a].showItems)==null?void 0:r.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 T{constructor(e){var r,o,d,c,y;this.customEvents=[],this.parent=null;const{controlType:n,controlFieldType:u,name:a,controlCustomEvents:i}=new.target;n||mt(`The ${a} controlType is not define`),this.id=(r=e==null?void 0:e.id)!=null?r:W(10),this.type=(o=e==null?void 0:e.type)!=null?o:n,this.props=new x(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=(y=e==null?void 0:e.pageStatus)!=null?y:He.UNKNOWN}get rules(){const e=this.props.constructor.RuntimeRules;if(e){const n=new e(this.props);return Array.from(n)}return[]}}T.controlType="control",T.__is_control__=!0,T.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:f.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{label:{type:"string",required:!0,message:f.getMessage("pleaseEnterLabel")},value:{type:"string",required:!0,message:f.getMessage("pleaseEnterValue")}}}},{type:"array",validator(e,n,u){n.length===0&&u(f.getMessage("optionIsRequired")),u()}},{type:"array",validator(e,n,u){const a=n.map(r=>r.value),i=or(a);a.length!==i.length?u(f.getMessage("optionIdIsRepeat")):u()},message:f.getMessage("optionIdIsRepeat")}]:t.hasOwnProperty("datasourceBind")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="datasource")&&(this.datasourceBind=[{type:"object",message:f.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:f.getMessage("pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:f.getMessage("pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:f.getMessage("pleaseEnterSvcCode")},displayBoList:[{type:"array",message:f.getMessage("isNotArray")},{type:"array",validator(e,n,u){n.length===0&&u(f.getMessage("pleaseBindAtLeastOneDisplayValue")),u()},message:f.getMessage("pleaseBindAtLeastOneDisplayValue")}],orders:[{type:"array",message:f.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:f.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:f.getMessage("isNotBoolean")}}}}]}}])}function Al(t,e,n=!1){this.datasourceBind=[{type:"object",message:f.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:f.getMessage(n?"pleaseEnterDataCodeInDataSetting":"pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:f.getMessage(n?"pleaseEnterValueFieldCodeInDataSetting":"pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:f.getMessage(n?"pleaseEnterSvcCodeInDataSetting":"pleaseEnterSvcCode")},attributes:[{type:"array",message:f.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{name:{type:"string",required:!0,message:f.getMessage("isNotString")},key:{type:"string",required:!0,message:f.getMessage("isNotString")},value:[{type:"array",message:f.getMessage("isNotArray")},{type:"array",validator(u,a,i){a.length===0&&i(f.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")),i()},message:f.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")}]}}}],orders:[{type:"array",message:f.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:f.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:f.getMessage("isNotBoolean")}}}}]}}]}class Qe extends Ee{constructor(e){super(e);this.dataBind={},this.caption={type:"string",required:!0,message:f.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:f.getMessage("pleaseEnterCaptionTip")};const n={fieldCode:{type:"string",required:!0,message:f.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:f.getMessage("pleaseEnterFieldCode")}};if(e.dataBind instanceof V)this.dataBind={type:"object",required:!0,fields:K(n),message:f.getMessage("pleaseEnterFieldCode")};else{let u={type:"object",required:!0,fields:{},message:f.getMessage("pleaseEnterFieldCode")};Object.keys(e.dataBind).forEach(a=>{u.fields[a]={type:"object",required:!0,fields:K(n),message:f.getMessage("pleaseEnterFieldCode")}}),this.dataBind=u}e.isShowCaptionTip&&(this.captionTip.required=!0)}}class Wt extends Te{constructor(e){super(e);this.push({type:"string",required:e.isHide?!1:e.required,message:e.requiredMessage!==""?e.requiredMessage:f.getMessage("runtimeRequired",{caption:e.caption})})}}class ae extends x{constructor(e){super(e);var n,u,a,i,r,o,d,c,y,v;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=(o=e==null?void 0:e.labelPosition)!=null?o:"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=(y=e==null?void 0:e.requiredMessage)!=null?y:"",this.dataBind=new V(e==null?void 0:e.dataBind),this.defaultValue=(v=e==null?void 0:e.defaultValue)!=null?v:""}}ae.Rules=Qe,ae.RuntimeRules=Wt;class Cl extends Qe{constructor(e){super(e);this.optionConfig={type:"enum",enum:["custom","datasource"],message:f.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:f.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:f.getMessage("isNotObject")}],Ze.call(this,e)}}class Kt extends q{constructor(e){super(e);this.controlType="form",this.props=new ae(e==null?void 0:e.props)}}Kt.controlEventKeys=["on_change","on_focus","on_blur"];class Fl extends T{constructor(e){super(e);this.controlType="form",this.props=new ae(e==null?void 0:e.props)}}class ie extends x{constructor(e){super(e)}}function kt(t,e){var n;((n=Object.getOwnPropertyDescriptors(t)[e])==null?void 0:n.enumerable)&&Object.defineProperty(t,e,{enumerable:!1})}function Ye(t,e){t.parent=e,kt(t,"parent")}function zt(t,e){t.forEach(n=>{Ye(n,e)})}const Xt=Symbol("targetKey");function Jt(t){var e;return(e=t[Xt])!=null?e:t}function Gt(t,e){return zt(t,e),new Proxy(t,{get(n,u,...a){return u===Xt?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)&&Ye(a,e),r}})}function re(t,e,n,u){const a=u!=null?u:t;let i=Gt(Jt(n!=null?n:[]),a);Object.defineProperty(t,e,{get(){return i},set(r){i=Gt(Jt(r),a)},enumerable:!0})}const Dl=1e4;class le extends q{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=K(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){var u=a=>super[a];return se(this,null,function*(){return yield u("validate").call(this,e,n),yield Promise.all(this.children.map(i=>i.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 o=r.filter(d=>!!d);return[...a,...o]}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})}}le.excludes=!1,le.childrenMaxLength=Dl;class pe extends T{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 et extends x{constructor(e,n){super(n);re(this,"headers",n==null?void 0:n.headers,e)}}class Zt extends q{constructor(e){super(e);this.controlType="list",this.props=new et(this,e==null?void 0:e.props)}validate(e,n){var u=a=>super[a];return se(this,null,function*(){return yield u("validate").call(this,e),yield Promise.all(this.props.headers.map(i=>i.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 o=r.filter(d=>!!d);return[...a,...o]}return r&&a.push(r),a},n)}toSchema(){const e=super.toSchema(),n=this.props.headers.map(u=>u.toSchema());return Ce(G({},e),{props:Ce(G({},this.props),{headers:n})})}}Zt.controlFieldType=R.LIST;class bl extends T{constructor(e){super(e);this.controlType="list",this.props=new et(this,e==null?void 0:e.props),re(this,"children",e==null?void 0:e.children)}get length(){return this.children.length}}class tt extends Ee{constructor(e){super(e);this.caption={type:"string",required:!0,message:f.getMessage("pleaseEnterCaption")},this.width={type:"number",required:!1,message:f.getMessage("pleaseEnterColumnWidth")},this.width.required=e.widthType==="px"}}class Ae extends x{constructor(e){super(e);var n,u,a,i,r;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=tt;class Sl extends tt{constructor(e){super(e);this.optionConfig={type:"enum",enum:["custom","datasource","none"],message:f.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:f.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:f.getMessage("isNotObject")}],Ze.call(this,e)}}class wl extends q{constructor(e){super(e);this.controlType="column",this.props=new Ae(e==null?void 0:e.props)}}class Il extends T{constructor(e){super(e);this.controlType="column",this.props=new Ae(e==null?void 0:e.props)}}class nt extends ie{constructor(e){super(e);this.dataBind=new V(e==null?void 0:e.dataBind)}}class Rl extends le{constructor(e){super(e);this.controlType="search",this.props=new nt(e==null?void 0:e.props)}}class Ml 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 Ll extends le{constructor(e){super(e);this.controlType="wrap",this.props=new ut(e==null?void 0:e.props)}}class $l extends pe{constructor(e){super(e);this.controlType="wrap",this.props=new ut(e==null?void 0:e.props)}}function ql(t){t.hasOwnProperty("linkOperationOption")&&t.hasOwnProperty("showLinkOperation")&&t.showLinkOperation&&(this.linkOperationOption=[{type:"object",fields:{formKey:{type:"string",required:!0,message:f.getMessage("pleaseEnterForm")}}}])}l.AMOUNT_TYPE=xe,l.AddressValue=Ur,l.AmountDataBind=Or,l.AmountValue=Vr,l.AutoWidth=Pe,l.BaseControlProperty=ae,l.BaseControlPropertyRules=Qe,l.BaseControlPropertyRuntimeRules=Wt,l.BaseStyle=qt,l.COMMON_SETTING_TYPE=$t,l.CalcDataBind=_r,l.CalcValue=xr,l.ColumnControlProperty=Ae,l.ColumnControlPropertyRules=tt,l.ColumnOptionAndDataSourcePropertyRules=Sl,l.CustomAttributeItem=Ue,l.CustomPermissionItem=Wr,l.DataBind=V,l.DataSourceBind=te,l.DataSourceDataSetValue=wt,l.DataSourceOrderItem=Ne,l.DataSourceParamItem=br,l.DataStorageDoc=Br,l.DesignerColumnControl=wl,l.DesignerControl=q,l.DesignerFormControl=Kt,l.DesignerLayoutControl=le,l.DesignerListControl=Zt,l.DesignerSearchControl=Rl,l.DesignerWrapControl=Ll,l.DisplayBoListItem=Ve,l.FieldBindItem=Ft,l.FieldFilterCondition=ge,l.FieldFilterConditions=ee,l.FillBackBind=Mr,l.FillPayloadBind=Mt,l.FormBind=me,l.FormSelectBind=Ar,l.ImageOptionSetting=Lt,l.JoinRelation=Dr,l.Language=Lr,l.LayoutControlProperty=ie,l.LeftVariable=bt,l.LinkOperationOption=wr,l.ListBind=Cr,l.ListControlProperty=et,l.MetaAutoWidth=vr,l.MetaWidth=he,l.MultistageFillingItem=St,l.ObjectDataBind=ye,l.OperationItem=Hr,l.OptObject=Kr,l.OptionAndDataSourcePropertyRules=Cl,l.OptionSetting=_e,l.OrganizationDataSourceBind=Ir,l.PAGE_STATUS=He,l.Property=x,l.PropertyRules=Ee,l.PropertyRuntimeRules=Te,l.RangeDataBind=Nr,l.RangeDateValue=jr,l.RegisterControls=fe,l.RegularRules=$r,l.RightVariable=Oe,l.RuntimeColumnControl=Il,l.RuntimeControl=T,l.RuntimeFormControl=Fl,l.RuntimeLayoutControl=pe,l.RuntimeListControl=bl,l.RuntimeSearchControl=Ml,l.RuntimeWrapControl=$l,l.SearchControlProperty=nt,l.SelectedContentConfig=Sr,l.SubListItem=Dt,l.SubListPageConfig=Fr,l.SuperDataSourceBind=It,l.TreeDataSourceBind=Rr,l.ViewOperationItem=Tr,l.WrapControlProperty=ut,l.controlHooksEmitter=xt,l.createValidator=_t,l.defineArrayParent=zt,l.defineControlArrayToProperty=re,l.defineParent=Ye,l.initImageOptions=Pr,l.initLinkOperationRules=ql,l.initOptionAndDataSourceRules=Ze,l.initOptions=qr,l.initSuperDataSourceRules=Al,l.setPropertyDontEnum=kt,Object.defineProperty(l,"__esModule",{value:!0})});
|
|
1
|
+
var Ms=Object.defineProperty,Ls=Object.defineProperties;var $s=Object.getOwnPropertyDescriptors;var Yt=Object.getOwnPropertySymbols,qs=Object.getPrototypeOf,Ps=Object.prototype.hasOwnProperty,Vs=Object.prototype.propertyIsEnumerable,Os=Reflect.get;var pt=(s,D,w)=>D in s?Ms(s,D,{enumerable:!0,configurable:!0,writable:!0,value:w}):s[D]=w,Z=(s,D)=>{for(var w in D||(D={}))Ps.call(D,w)&&pt(s,w,D[w]);if(Yt)for(var w of Yt(D))Vs.call(D,w)&&pt(s,w,D[w]);return s},Ce=(s,D)=>Ls(s,$s(D));var rt=(s,D,w)=>Os(qs(s),w,D);var le=(s,D,w)=>new Promise((Fe,oe)=>{var De=j=>{try{Q(w.next(j))}catch(Y){oe(Y)}},be=j=>{try{Q(w.throw(j))}catch(Y){oe(Y)}},Q=j=>j.done?Fe(j.value):Promise.resolve(j.value).then(De,be);Q((w=w.apply(s,D)).next())});(function(s,D){typeof exports=="object"&&typeof module!="undefined"?D(exports):typeof define=="function"&&define.amd?define(["exports"],D):(s=typeof globalThis!="undefined"?globalThis:s||self,D(s.modelDrivenCore={}))})(this,function(s){"use strict";var D="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",w="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",Fe="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",oe="\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",j="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Y="\u8BF7\u8F93\u5165\u884C\u6807\u9898",en="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",tn="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",nn="\u8BF7\u7ED1\u5B9A\u8868\u5355",un="\u8BF7\u7ED1\u5B9A\u5217\u8868",an="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",rn="\u8BF7\u8F93\u5165\u663E\u793A\u503C",sn="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",ln="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",on="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",cn="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",dn="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",fn="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",hn="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",mn="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",gn="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",yn="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",En="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",vn="\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",An="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",Cn="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Fn="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Dn="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",bn="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Sn="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",wn="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",In="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Rn="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Mn="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Ln="\u8BF7\u9009\u62E9\u7701",$n="\u8BF7\u9009\u62E9\u5E02",qn="\u8BF7\u9009\u62E9\u533A",Pn="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Vn="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",On="\u8BF7\u8F93\u5165\u5217\u5BBD",Nn="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",xn="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",_n="\u8BF7\u9009\u62E9\u63A7\u4EF6",jn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",Un="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Hn="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Tn="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Wn="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Kn="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",zn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",kn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Xn="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Jn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Gn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Zn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Qn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Yn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",pn="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",eu="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",tu="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",nu="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",uu="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",au="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",iu="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",ru={isNotNumber:D,isNotString:w,isNotObject:Fe,isNotArray:oe,isNotBoolean:De,runtimeRequired:be,pleaseEnterCaption:Q,pleaseEnterCaptionTip:j,pleaseEnterRowCaption:Y,pleaseEnterPlaceholder:en,pleaseEnterFieldCode:tn,pleaseEnterForm:nn,pleaseEnterList:un,pleaseEnterProcess:an,pleaseEnterLabel:rn,pleaseEnterValue:sn,bizKeyNotBindFiled:ln,pleaseSelectOneField:on,pleaseEnterNumberRange:cn,pleaseEnterAValueGreaterThanMin:dn,pleaseEnterAValueLessThanMax:fn,numberRangeSetError:hn,stringRangeError:mn,attachmentMaxSize:gn,pleaseEnterTotalScoreSetting:yn,theTotalScoreMustNotBeLessThan1:En,scoreDefaultValueRange:vn,attachmentLimitError:Bn,PleaseReselectTheOptionalQuantity:An,TheMaximumLengthIsGreaterThanTheMinimumLength:Cn,TheMinimumLengthIsGreaterThanTheMaximumLength:Fn,PleaseSelectTheCorrectOptionSettings:Dn,optionIdIsRepeat:bn,optionIsRequired:Sn,pleaseEnterDataCode:wn,pleaseEnterValueFieldCode:In,pleaseEnterSvcCode:Rn,pleaseBindAtLeastOneDisplayValue:Mn,pleaseSelectProvince:Ln,pleaseSelectCity:$n,pleaseSelectDistrict:qn,limitRowsCannotBeLessThan0:Pn,TheNumberOfRowsCannotBeLessThanMinRows:Vn,pleaseEnterColumnWidth:On,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Nn,pleaseCompleteAllRulesAndConditions:xn,pleaseSelectControl:_n,pleaseSelectAtLeastOneColumn:jn,pleaseSelectFillBackMode:Un,pleaseSelectDashboard:Hn,rootNodeIsRequired:Tn,theViewNameCannotBeEmpty:Wn,pleaseSelectOcrType:Kn,pleaseSelectAtLeastOneFieldToFillIn:zn,pleaseChooseAtLeastOne:kn,pleaseEnterButtonContent:Xn,pleaseEnterDataCodeInDataSetting:Jn,pleaseEnterValueFieldCodeInDataSetting:Gn,pleaseEnterSvcCodeInDataSetting:Zn,pleaseBindAtLeastOneDisplayValueInDataSetting:Qn,rootNodeIsRequiredInDataSetting:Yn,pleaseEnterMaxHeight:pn,pleaseEnter:eu,pleaseEnterWatermark:tu,pleaseEnterFileName:nu,pleaseUploadAtLeastOnePrintTemplate:uu,pleaseAssignBusiness:au,pleaseAssignExternal:iu},su="Please enter a number",lu="Please enter a string",ou="Please enter an object",cu="Please enter an array",du="Please enter a boolean",fu="{caption} Required",hu="Please enter the title",mu="Please enter the bubble prompt",gu="Please enter the row title",yu="Please enter the prompt text",Eu="Please bind data items",vu="Please bind the form",Bu="Please bind the list",Au="Please bind the process",Cu="Please enter the displayed value",Fu="Please enter the stored value",Du="The document number is not bound to the data item",bu="Please select at least one display field",Su="Please enter a value greater than or equal to {min} and less than or equal to {max}",wu="Please enter a value greater than or equal to {min}",Iu="Please enter a value less than or equal to {max}",Ru="The value range is set incorrectly",Mu="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",Lu="The attachment size must be between 0MB and 1000MB",$u="Please fill in the total score setting",qu="The total score cannot be less than 1",Pu="The default value must be between {min} and {max}",Vu="The number of attachments uploaded must be between {min} and {max}",Ou="Please re-select the optional quantity",Nu="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",_u="Please select the correct option setting",ju="Option ID cannot be repeated",Uu="Please enter at least one option",Hu="Please bind the data source",Tu="Please bind the stored value",Wu="Please bind the service",Ku="At least one display value must be bound",zu="Please select a province",ku="Please select a city",Xu="Please select a district",Ju="The minimum number of lines to fill in cannot be less than 0",Gu="The number of rows cannot be less than {min} rows",Zu="Please enter the column width",Qu="Please set the logical relationship of all rule conditions",Yu="Please complete all rules and conditions",pu="please select control",ea="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",ta="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",na="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",ua="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",aa="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",ia="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",ra="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",sa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",la="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",oa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",ca="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",da="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",fa="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",ha="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",ma="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ga="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",ya="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Ea="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",va={isNotNumber:su,isNotString:lu,isNotObject:ou,isNotArray:cu,isNotBoolean:du,runtimeRequired:fu,pleaseEnterCaption:hu,pleaseEnterCaptionTip:mu,pleaseEnterRowCaption:gu,pleaseEnterPlaceholder:yu,pleaseEnterFieldCode:Eu,pleaseEnterForm:vu,pleaseEnterList:Bu,pleaseEnterProcess:Au,pleaseEnterLabel:Cu,pleaseEnterValue:Fu,bizKeyNotBindFiled:Du,pleaseSelectOneField:bu,pleaseEnterNumberRange:Su,pleaseEnterAValueGreaterThanMin:wu,pleaseEnterAValueLessThanMax:Iu,numberRangeSetError:Ru,stringRangeError:Mu,attachmentMaxSize:Lu,pleaseEnterTotalScoreSetting:$u,theTotalScoreMustNotBeLessThan1:qu,scoreDefaultValueRange:Pu,attachmentLimitError:Vu,PleaseReselectTheOptionalQuantity:Ou,TheMaximumLengthIsGreaterThanTheMinimumLength:Nu,TheMinimumLengthIsGreaterThanTheMaximumLength:xu,PleaseSelectTheCorrectOptionSettings:_u,optionIdIsRepeat:ju,optionIsRequired:Uu,pleaseEnterDataCode:Hu,pleaseEnterValueFieldCode:Tu,pleaseEnterSvcCode:Wu,pleaseBindAtLeastOneDisplayValue:Ku,pleaseSelectProvince:zu,pleaseSelectCity:ku,pleaseSelectDistrict:Xu,limitRowsCannotBeLessThan0:Ju,TheNumberOfRowsCannotBeLessThanMinRows:Gu,pleaseEnterColumnWidth:Zu,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Qu,pleaseCompleteAllRulesAndConditions:Yu,pleaseSelectControl:pu,pleaseSelectDashboard:ea,theViewNameCannotBeEmpty:ta,pleaseSelectOcrType:na,pleaseSelectAtLeastOneFieldToFillIn:ua,pleaseChooseAtLeastOne:aa,pleaseEnterButtonContent:ia,pleaseEnterDataCodeInDataSetting:ra,pleaseEnterValueFieldCodeInDataSetting:sa,pleaseEnterSvcCodeInDataSetting:la,pleaseBindAtLeastOneDisplayValueInDataSetting:oa,rootNodeIsRequiredInDataSetting:ca,pleaseEnterMaxHeight:da,pleaseEnter:fa,pleaseEnterWatermark:ha,pleaseEnterFileName:ma,pleaseUploadAtLeastOnePrintTemplate:ga,pleaseAssignBusiness:ya,pleaseAssignExternal:Ea},Ba="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Aa="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ca="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Fa="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Da="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ba="{caption}\u5FC5\u9808",Sa="\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",Ia="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ra="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ma="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",La="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",$a="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",qa="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Pa="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Va="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Oa="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",Na="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",xa="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",_a="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ja="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ua="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",Ha="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ta="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Wa="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Ka="\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",ka="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Xa="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ja="\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",Ga="\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",Za="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Qa="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Ya="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",pa="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ei="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ti="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ni="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",ui="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ai="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ii="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ri="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",si="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",li="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",oi="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",ci="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",di="please select control",fi="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",hi="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",mi="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",gi="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",yi="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Ei="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",vi="\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",Ai="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Ci="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Fi="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Di="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",bi="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Si="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",wi="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ii="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Ri="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Mi="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Li={isNotNumber:Ba,isNotString:Aa,isNotObject:Ca,isNotArray:Fa,isNotBoolean:Da,runtimeRequired:ba,pleaseEnterCaption:Sa,pleaseEnterCaptionTip:wa,pleaseEnterRowCaption:Ia,pleaseEnterPlaceholder:Ra,pleaseEnterFieldCode:Ma,pleaseEnterForm:La,pleaseEnterList:$a,pleaseEnterProcess:qa,pleaseEnterLabel:Pa,pleaseEnterValue:Va,bizKeyNotBindFiled:Oa,pleaseSelectOneField:Na,pleaseEnterNumberRange:xa,pleaseEnterAValueGreaterThanMin:_a,pleaseEnterAValueLessThanMax:ja,numberRangeSetError:Ua,stringRangeError:Ha,attachmentMaxSize:Ta,pleaseEnterTotalScoreSetting:Wa,theTotalScoreMustNotBeLessThan1:Ka,scoreDefaultValueRange:za,attachmentLimitError:ka,PleaseReselectTheOptionalQuantity:Xa,TheMaximumLengthIsGreaterThanTheMinimumLength:Ja,TheMinimumLengthIsGreaterThanTheMaximumLength:Ga,PleaseSelectTheCorrectOptionSettings:Za,optionIdIsRepeat:Qa,optionIsRequired:Ya,pleaseEnterDataCode:pa,pleaseEnterValueFieldCode:ei,pleaseEnterSvcCode:ti,pleaseBindAtLeastOneDisplayValue:ni,pleaseSelectProvince:ui,pleaseSelectCity:ai,pleaseSelectDistrict:ii,limitRowsCannotBeLessThan0:ri,TheNumberOfRowsCannotBeLessThanMinRows:si,pleaseEnterColumnWidth:li,pleaseSetTheLogicalRelationshipOfAllRuleConditions:oi,pleaseCompleteAllRulesAndConditions:ci,pleaseSelectControl:di,pleaseSelectDashboard:fi,theViewNameCannotBeEmpty:hi,pleaseSelectOcrType:mi,pleaseSelectAtLeastOneFieldToFillIn:gi,pleaseChooseAtLeastOne:yi,pleaseEnterButtonContent:Ei,pleaseEnterDataCodeInDataSetting:vi,pleaseEnterValueFieldCodeInDataSetting:Bi,pleaseEnterSvcCodeInDataSetting:Ai,pleaseBindAtLeastOneDisplayValueInDataSetting:Ci,rootNodeIsRequiredInDataSetting:Fi,pleaseEnterMaxHeight:Di,pleaseEnter:bi,pleaseEnterWatermark:Si,pleaseEnterFileName:wi,pleaseUploadAtLeastOnePrintTemplate:Ii,pleaseAssignBusiness:Ri,pleaseAssignExternal:Mi},$i={zhCN:ru,enUS:va,jaJP:Li},st;(function(t){t.Number="Number",t.Operator="Operator",t.VariableInMainTable="VariableInMainTable",t.VariableInCurrentSubTable="VariableInCurrentSubTable",t.VariableInOtherSubTable="VariableInOtherSubTable",t.UndefinedVariable="UndefinedVariable"})(st||(st={}));var lt;(function(t){t.SUM="SUM",t.AVG="AVG",t.MAX="MAX",t.MIN="MIN"})(lt||(lt={}));var qi="zh-CN";function P(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 L;(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"})(L||(L={}));var R;(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"})(R||(R={}));var $;$={},P($,R.ARRAY,L.ARRAY_COLUMN),P($,R.AUTO_NUMBER,L.AUTO_NUMBER_COLUMN),P($,R.DECIMAL,L.DECIMAL_COLUMN),P($,R.DEPARTMENTS,L.DEPARTMENT_COLUMN),P($,R.FILE,L.FILE_COLUMN),P($,R.IMAGE,L.IMAGE_COLUMN),P($,R.ADDRESS,L.LOCATION_COLUMN),P($,R.EMPLOYEES,L.EMPLOYEE_COLUMN),P($,R.TEXT,L.TEXT_COLUMN),P($,R.TIMESCOPE,L.TIMESCOPE_COLUMN),P($,R.TIMESTAMP,L.TIMESTAMP_COLUMN),P($,R.VARCHAR,L.VARCHAR_COLUMN),P($,R.RELATION,L.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",Pi=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:Pi,a=Math.random()*u.length;e+=u[parseInt(String(a),10)]}return e}function Se(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 Vi(t){if(Array.isArray(t))return Se(t)}function Oi(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 Ni(){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 ce(t,e,n){return Ni()?ce=Reflect.construct:ce=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},ce.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 xi(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function _i(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ji(){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 Ui(t,e){return e&&(Hi(e)==="object"||typeof e=="function")?e:Oi(t)}function ee(t,e){return ee=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},ee(t,e)}function ht(t){return Vi(t)||_i(t)||Ti(t)||ji()}var Hi=function(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t};function Ti(t,e){if(!!t){if(typeof t=="string")return Se(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 Se(t,e)}}function we(t){var e=typeof Map=="function"?new Map:void 0;return we=function(u){if(u===null||!xi(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 ce(u,arguments,p(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ee(a,u)},we(t)}function Wi(){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 mt(t){var e=Wi();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 Ui(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 gt(){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 Ki(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Me=function(t){ft(n,t);var e=mt(n);function n(u){dt(this,n);var a;return a=e.call(this,u),a.name="\u{1F4A5} Driven Error",a.message=u?Ki(u):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",a}return n}(we(Error)),zi=function(t){ft(n,t);var e=mt(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 Le(t){throw new Me(t)}function yt(t){throw new zi(t)}function ki(t){Ie.error(new Me(t))}var Xi=Object.prototype.toString;function Et(t,e){return Xi.call(t)==="[object "+e+"]"}function Ji(t){return Et(t,"String")}function Gi(t){return Et(t,"Promise")}var Zi=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();Gi(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&&!Ji(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 Qi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var f=function(){function t(){Qi(this,t)}return t.getMessage=function(n){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",u)},t.resetI18n=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qi;return new Zi({locale:n,messages:$i})},t.setLocale=function(n){return this.$i18n.setLocale(n)},t}();f.$i18n=f.resetI18n();function Yi(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 pi=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},er={exports:{}};(function(t){(function(e){var n=function(o,h,M){if(!c(h)||E(h)||C(h)||b(h)||d(h))return h;var v,S=0,x=0;if(g(h))for(v=[],x=h.length;S<x;S++)v.push(n(o,h[S],M));else{v={};for(var A in h)Object.prototype.hasOwnProperty.call(h,A)&&(v[o(A,M)]=n(o,h[A],M))}return v},u=function(o,h){h=h||{};var M=h.separator||"_",v=h.split||/(?=[A-Z])/;return o.split(v).join(M)},a=function(o){return F(o)?o:(o=o.replace(/[\-_\s]+(.)?/g,function(h,M){return M?M.toUpperCase():""}),o.substr(0,1).toLowerCase()+o.substr(1))},i=function(o){var h=a(o);return h.substr(0,1).toUpperCase()+h.substr(1)},r=function(o,h){return u(o,h).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]"},C=function(o){return l.call(o)=="[object RegExp]"},b=function(o){return l.call(o)=="[object Boolean]"},F=function(o){return o=o-0,o===o},m=function(o,h){var M=h&&"process"in h?h.process:h;return typeof M!="function"?o:function(v,S){return M(v,o,S)}},B={camelize:a,decamelize:r,pascalize:i,depascalize:r,camelizeKeys:function(o,h){return n(m(a,h),o)},decamelizeKeys:function(o,h){return n(m(r,h),o,h)},pascalizeKeys:function(o,h){return n(m(i,h),o)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=B:e.humps=B})(pi)})(er);var vt={};Object.defineProperty(vt,"__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 tr=vt.default=$e;function K(t){if(t!==void 0)return typeof t=="object"?tr(t):t}function nr(t){return Object.prototype.toString.call(t)==="[object Object]"}function ur(t){return Array.isArray(t)}function ar(t){return t.reduce(function(e,n){return e.includes(n)||e.push(n),e},[])}function qe(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,u=new Array(e);n<e;n++)u[n]=t[n];return u}function ir(t){if(Array.isArray(t))return qe(t)}function Bt(t,e,n,u,a,i,r){try{var l=t[i](r),d=l.value}catch(c){n(c);return}l.done?e(d):Promise.resolve(d).then(u,a)}function rr(t){return function(){var e=this,n=arguments;return new Promise(function(u,a){var i=t.apply(e,n);function r(d){Bt(i,u,a,r,l,"next",d)}function l(d){Bt(i,u,a,r,l,"throw",d)}r(void 0)})}}function sr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lr(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function or(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Pe(t){return ir(t)||lr(t)||cr(t)||or()}function cr(t,e){if(!!t){if(typeof t=="string")return qe(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 qe(t,e)}}var dr=function(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}}},fr=function(){function t(){sr(this,t),this._events=new Map,this.debug=!1}var e=t.prototype;return e.emit=function(u){for(var a=arguments.length,i=new Array(a>1?a-1:0),r=1;r<a;r++)i[r-1]=arguments[r];var l=this;return rr(function(){var d,c,g,E,C,b,F,m,B,o,h,M;return dr(this,function(v){switch(v.label){case 0:if(d=l._events.get(u),c=[],!d)return[3,10];g=d.slice(),E=!0,C=!1,b=void 0,v.label=1;case 1:v.trys.push([1,8,9,10]),F=g[Symbol.iterator](),v.label=2;case 2:if(E=(m=F.next()).done)return[3,7];if(B=m.value,!d.includes(B))return[3,6];v.label=3;case 3:return v.trys.push([3,5,,6]),l.debug&>.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(u," \u4E8B\u4EF6: ").concat(B.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+B.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(i.map(function(){return"%o"}).join(","),"\u3002")].concat(Pe(i))),[4,B.apply(null,Pe(i))];case 4:return o=v.sent(),l.debug&>.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(u," \u4E8B\u4EF6: ").concat(B.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+B.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(i.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(Pe(i),[o])),c.push(o),o===!1?[3,7]:[3,6];case 5:return h=v.sent(),ki(String(h)+":"+String(h.stack)),[3,6];case 6:return E=!0,[3,2];case 7:return[3,10];case 8:return M=v.sent(),C=!0,b=M,[3,10];case 9:try{!E&&F.return!=null&&F.return()}finally{if(C)throw b}return[7];case 10:return[2,c]}})})()},e.on=function(u,a){if(this._events.has(u)){var i;(i=this._events.get(u))===null||i===void 0||i.push(a)}else this._events.set(u,[a])},e.off=function(u,a){if(this._events.has(u)){var i=this._events.get(u),r=i==null?void 0:i.indexOf(a);i==null||i.splice(r,1)}},e.delete=function(u){this._events.has(u)&&this._events.delete(u)},e.clear=function(){this._events=new Map},t}();const At=[];class de{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__)&&Le(`${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__||Le(`${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===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));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 Le(`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])})}}de.staticControls=At,de.staticRegisteredTypes=new Set(At.map(t=>t.Designer.controlType)),de.staticRegisteredConfigs=new Map;class O{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 Ve{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 fe extends Ve{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 fe(e==null?void 0:e.pc),this.mobile=e!=null&&e.mobile?new fe(e==null?void 0:e.mobile):new fe({width:130,minWidth:180})}}class mr{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 he{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 gr extends he{constructor(e){var n;super(e),this.primaryControlId=(n=e==null?void 0:e.primaryControlId)!=null?n:""}}class Ct{constructor(e){var n;this.fieldCode=(n=e==null?void 0:e.fieldCode)!=null?n:""}}class yr{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 Ct(r)))!=null?i:[]}}class Ft{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:R.VARCHAR}}class Dt extends he{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 Er{constructor(e){var n,u,a,i;this.type="sublist-page",this.formBind=new he(e==null?void 0:e.formBind),this.displayFields=(u=(n=e==null?void 0:e.displayFields)==null?void 0:n.map(r=>new Ft(r)))!=null?u:[],this.sublists=(i=(a=e==null?void 0:e.sublists)==null?void 0:a.map(r=>new Dt(r)))!=null?i:[]}}class bt{constructor(e){this.type=e==null?void 0:e.type,this.value=e==null?void 0:e.value}}class Oe{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 me(r);(d=this.children)==null||d.push(c)}}))}}class me{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 bt(e==null?void 0:e.leftVariableBo),this.rightVariableBo=new Oe(e==null?void 0:e.rightVariableBo)}}class vr{constructor(e){var n,u;this.aliasCode=(n=e==null?void 0:e.aliasCode)!=null?n:"",this.datasourceBind=new ne(e==null?void 0:e.datasourceBind),this.relationFields=(u=e==null?void 0:e.relationFields)!=null?u:[]}}class St{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 Ne{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 wt{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:R.ANY}}class Br{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 wt(c)))!=null?d:[]}}function _e(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 me(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 me(l)))!=null?a:[],(this instanceof ne||this instanceof Mt)&&(this.orders=(r=(i=t==null?void 0:t.orders)==null?void 0:i.map(l=>new xe(l)))!=null?r:[])}class ne{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 Ne(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:"",_e.call(this,e)}}class Ar{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 Cr{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 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 Ne(r)))!=null?i:[]}}class It extends ne{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 Fr extends ne{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 Dr extends It{constructor(e){var n;super(e),this.rootNode=new Oe(e==null?void 0:e.rootNode),this.filterCode=(n=e==null?void 0:e.filterCode)!=null?n:""}}class Rt{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 St(r)))!=null?i:[]}}class Mt extends Rt{constructor(e){super(e),_e.call(this,e)}}class br extends Rt{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 Sr{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 wr{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 Ue{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 Lt extends Ue{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 Ir(t){var e;return(e=t==null?void 0:t.map(n=>new Ue(n)))!=null?e:[]}function Rr(t){var e;return(e=t==null?void 0:t.map(n=>new Lt(n)))!=null?e:[]}class ge{}class Mr extends ge{constructor(e){super(),this.amount=new O(e==null?void 0:e.amount),this.currency=new O(e==null?void 0:e.currency)}}class Lr{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 $r extends ge{constructor(e){super(),this.min=new O(e==null?void 0:e.min),this.max=new O(e==null?void 0:e.max)}}class qr{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 Pr{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 Vr extends ge{constructor(e){super(),this.result=new O(e==null?void 0:e.result),this.unit=new O(e==null?void 0:e.unit)}}class Or{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||{}),$t=(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))($t||{}),Te=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT",t))(Te||{});class Nr{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 Ct(r)))!=null?i:[],_e.call(this,e)}}class _r{constructor(e){var n,u;this.key=(n=e.key)!=null?n:W(8),this.caption=(u=e.caption)!=null?u:""}}class qt{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 jr{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 ye{constructor(e){this.isHide={type:"boolean"}}}class We extends Array{constructor(e){super()}}class U{constructor(e,n=""){var u,a;this.isHide=(u=e==null?void 0:e.isHide)!=null?u:!1,this.style=new qt(e==null?void 0:e.style),this.caption=(a=e==null?void 0:e.caption)!=null?a:n}}U.Rules=ye,U.RuntimeRules=We;function N(){return N=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},N.apply(this,arguments)}function Ur(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Ke(t){return Ke=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ke(t)}function Ee(t,e){return Ee=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},Ee(t,e)}function Hr(){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 Hr()?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 Tr(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function ze(t){var e=typeof Map=="function"?new Map:void 0;return ze=function(u){if(u===null||!Tr(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,Ke(this).constructor)}return a.prototype=Object.create(u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Ee(a,u)},ze(t)}var Wr=/%[sdj%]/g,Pt=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Pt=function(e,n){typeof console!="undefined"&&console.warn&&n.every(function(u){return typeof u=="string"})&&console.warn(e,n)});function ke(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 V(){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(Wr,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 Kr(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function I(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||Kr(e)&&typeof t=="string"&&!t)}function zr(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 Vt(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 kr(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n])}),e}var Ot=function(t){Ur(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}(ze(Error));function Xr(t,e,n,u){if(e.first){var a=new Promise(function(E,C){var b=function(B){return u(B),B.length?C(new Ot(B,ke(B))):E()},F=kr(t);Vt(F,n,b)});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,C){var b=function(m){if(c.push.apply(c,m),d++,d===l)return u(c),c.length?C(new Ot(c,ke(c))):E()};r.length||(u(c),E()),r.forEach(function(F){var m=t[F];i.indexOf(F)!==-1?Vt(m,n,b):zr(m,n,b)})});return g.catch(function(E){return E}),g}function Nt(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:typeof e=="function"?e():e,field:e.field||t.fullField}}}function xt(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var u=e[n];typeof u=="object"&&typeof t[n]=="object"?t[n]=N(N({},t[n]),u):t[n]=u}}return t}function _t(t,e,n,u,a,i){t.required&&(!n.hasOwnProperty(t.field)||I(e,i||t.type))&&u.push(V(a.messages.required,t.fullField))}function Jr(t,e,n,u,a){(/^\s+$/.test(e)||e==="")&&u.push(V(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},ue={integer:function(e){return ue.number(e)&&parseInt(e,10)===e},float:function(e){return ue.number(e)&&!ue.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"&&!ue.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 Gr(t,e,n,u,a){if(t.required&&e===void 0){_t(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?ue[r](e)||u.push(V(a.messages.types[r],t.fullField,t.type)):r&&typeof e!==t.type&&u.push(V(a.messages.types[r],t.fullField,t.type))}function Zr(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",C=typeof e=="string",b=Array.isArray(e);if(E?g="number":C?g="string":b&&(g="array"),!g)return!1;b&&(c=e.length),C&&(c=e.replace(d,"_").length),i?c!==t.len&&u.push(V(a.messages[g].len,t.fullField,t.len)):r&&!l&&c<t.min?u.push(V(a.messages[g].min,t.fullField,t.min)):l&&!r&&c>t.max?u.push(V(a.messages[g].max,t.fullField,t.max)):r&&l&&(c<t.min||c>t.max)&&u.push(V(a.messages[g].range,t.fullField,t.min,t.max))}var X="enum";function Qr(t,e,n,u,a){t[X]=Array.isArray(t[X])?t[X]:[],t[X].indexOf(e)===-1&&u.push(V(a.messages[X],t.fullField,t[X].join(", ")))}function Yr(t,e,n,u,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||u.push(V(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(V(a.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var y={required:_t,whitespace:Jr,type:Gr,range:Zr,enum:Qr,pattern:Yr};function pr(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e,"string")&&!t.required)return n();y.required(t,e,u,i,a,"string"),I(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 es(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(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 ts(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(e===""&&(e=void 0),I(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 ns(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(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 us(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e)&&!t.required)return n();y.required(t,e,u,i,a),I(e)||y.type(t,e,u,i,a)}n(i)}function as(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(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 is(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(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 rs(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 ss(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(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 ls="enum";function os(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e)&&!t.required)return n();y.required(t,e,u,i,a),e!==void 0&&y[ls](t,e,u,i,a)}n(i)}function cs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e,"string")&&!t.required)return n();y.required(t,e,u,i,a),I(e,"string")||y.pattern(t,e,u,i,a)}n(i)}function ds(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e,"date")&&!t.required)return n();if(y.required(t,e,u,i,a),!I(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 fs(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(I(e,i)&&!t.required)return n();y.required(t,e,u,r,a,i),I(e,i)||y.type(t,e,u,r,a)}n(r)}function hs(t,e,n,u,a){var i=[],r=t.required||!t.required&&u.hasOwnProperty(t.field);if(r){if(I(e)&&!t.required)return n();y.required(t,e,u,i,a)}n(i)}var ae={string:pr,method:es,number:ts,boolean:ns,regexp:us,integer:as,float:is,array:rs,object:ss,enum:os,pattern:cs,date:ds,url:Je,hex:Je,email:Je,required:fs,any:hs};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=xt(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(m){var B,o=[],h={};function M(v){if(Array.isArray(v)){var S;o=(S=o).concat.apply(S,v)}else o.push(v)}for(B=0;B<m.length;B++)M(m[B]);o.length?h=ke(o):(o=null,h=null),l(o,h)}if(r.messages){var c=this.messages();c===Ze&&(c=Ge()),xt(c,r.messages),r.messages=c}else r.messages=this.messages();var g,E,C={},b=r.keys||Object.keys(this.rules);b.forEach(function(m){g=a.rules[m],E=i[m],g.forEach(function(B){var o=B;typeof o.transform=="function"&&(i===e&&(i=N({},i)),E=i[m]=o.transform(E)),typeof o=="function"?o={validator:o}:o=N({},o),o.validator=a.getValidationMethod(o),o.field=m,o.fullField=o.fullField||m,o.type=a.getType(o),o.validator&&(C[m]=C[m]||[],C[m].push({rule:o,value:E,source:i,field:m}))})});var F={};return Xr(C,r,function(m,B){var o=m.rule,h=(o.type==="object"||o.type==="array")&&(typeof o.fields=="object"||typeof o.defaultField=="object");h=h&&(o.required||!o.required&&m.value),o.field=m.field;function M(x,A){return N(N({},A),{},{fullField:o.fullField+"."+x})}function v(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(Nt(o)),r.first&&A.length)return F[o.field]=1,B(A);if(!h)B(A);else{if(o.required&&!m.value)return o.message!==void 0?A=[].concat(o.message).map(Nt(o)):r.error&&(A=[r.error(o,V(r.messages.required,o.field))]),B(A);var _={};if(o.defaultField)for(var Zt in m.value)m.value.hasOwnProperty(Zt)&&(_[Zt]=o.defaultField);_=N(N({},_),m.rule.fields);for(var J in _)if(_.hasOwnProperty(J)){var Rs=Array.isArray(_[J])?_[J]:[_[J]];_[J]=Rs.map(M.bind(null,J))}var Qt=new H(_);Qt.messages(r.messages),m.rule.options&&(m.rule.options.messages=r.messages,m.rule.options.error=r.error),Qt.validate(m.value,m.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,m.value,v,m.source,r):o.validator&&(S=o.validator(o,m.value,v,m.source,r),S===!0?v():S===!1?v(o.message||o.field+" fails"):S instanceof Array?v(S):S instanceof Error&&v(S.message)),S&&S.then&&S.then(function(){return v()},function(x){return v(x)})},function(m){d(m)})},getType:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type="pattern"),typeof e.validator!="function"&&e.type&&!ae.hasOwnProperty(e.type))throw new Error(V("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"?ae.required:ae[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");ae[e]=n},H.warning=Pt,H.messages=Ze,H.validators=ae;const ms={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 jt(t,e={}){const n=new H(t);return n.messages(Object.assign(ms,e)),n}const Ut=new fr;class q{constructor(e){var g,E,C,b;this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=Tt,this.removeSetting=Ht,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||yt(`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 U(e==null?void 0:e.props,new.target.controlName),this.controlType=(C=e==null?void 0:e.controlType)!=null?C:"base",this.setting=K(c),this.fieldType=(b=e==null?void 0:e.fieldType)!=null?b:i,this.eventKeys=K(r),this.customEvents=K(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 Ut.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),Yi(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=jt(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:C,encryptedMode:b}=this.props;if(!n&&!i&&!r)return;const F={parentId:e,fieldType:n,controlId:u,caption:d,type:a,props:{}};switch(i&&(F.dataBind=i),l){case"datasource":case void 0:r&&(F.datasourceBind=r);break;case"custom":F.props.options=E;break}return c!==void 0&&(F.required=c),g!==void 0&&(F.maxLength=g),C!==void 0&&(F.encrypted=C),b!==void 0&&(F.encryptedMode=b),F}preToSchema(){this._callControlHooks("preToSchema",this)}toSchema(){return this.preToSchema(),{id:this.id,type:this.type,props:K(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)}}q.controlName="\u63A7\u4EF6",q.controlIcon="icon",q.controlType="control",q.controlEventKeys=[],q.controlCustomEvents=[],q.setting=[],q.__is_control__=!0,q.removeSettingItem=Ht,q.updateSettingItem=Tt;function Ht(t){(Array.isArray(t)?t:[t]).forEach(n=>{var i,r,l;const u=typeof n!="string";if(!Array.isArray(this.setting))return;const a=(i=this.setting)==null?void 0:i.findIndex(d=>d.key===(u?n.key:n));a!==-1&&(u?this.setting[a].showItems=(r=this.setting[a].showItems)==null?void 0:r.filter(d=>!n.hideItems.includes(d)):this.setting.splice(a,1),u&&!((l=this.setting[a].showItems)!=null&&l.length)&&this.setting.splice(a,1))})}function 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 T{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||yt(`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 U(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:Te.UNKNOWN}get rules(){const e=this.props.constructor.RuntimeRules;if(e){const n=new e(this.props);return Array.from(n)}return[]}}T.controlType="control",T.__is_control__=!0,T.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:f.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{label:{type:"string",required:!0,message:f.getMessage("pleaseEnterLabel")},value:{type:"string",required:!0,message:f.getMessage("pleaseEnterValue")}}}},{type:"array",validator(e,n,u){n.length===0&&u(f.getMessage("optionIsRequired")),u()}},{type:"array",validator(e,n,u){const a=n.map(r=>r.value),i=ar(a);a.length!==i.length?u(f.getMessage("optionIdIsRepeat")):u()},message:f.getMessage("optionIdIsRepeat")}]:t.hasOwnProperty("datasourceBind")&&(!t.hasOwnProperty("optionConfig")||t.hasOwnProperty("optionConfig")&&t.optionConfig==="datasource")&&(this.datasourceBind=[{type:"object",message:f.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:f.getMessage("pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:f.getMessage("pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:f.getMessage("pleaseEnterSvcCode")},displayBoList:[{type:"array",message:f.getMessage("isNotArray")},{type:"array",validator(e,n,u){n.length===0&&u(f.getMessage("pleaseBindAtLeastOneDisplayValue")),u()},message:f.getMessage("pleaseBindAtLeastOneDisplayValue")}],orders:[{type:"array",message:f.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:f.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:f.getMessage("isNotBoolean")}}}}]}}])}function gs(t,e,n=!1){this.datasourceBind=[{type:"object",message:f.getMessage("isNotObject")},{type:"object",fields:{dataCode:{type:"string",required:!0,message:f.getMessage(n?"pleaseEnterDataCodeInDataSetting":"pleaseEnterDataCode")},valueFieldCode:{type:"string",required:!0,message:f.getMessage(n?"pleaseEnterValueFieldCodeInDataSetting":"pleaseEnterValueFieldCode")},svcCode:{type:"string",required:!0,message:f.getMessage(n?"pleaseEnterSvcCodeInDataSetting":"pleaseEnterSvcCode")},attributes:[{type:"array",message:f.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{name:{type:"string",required:!0,message:f.getMessage("isNotString")},key:{type:"string",required:!0,message:f.getMessage("isNotString")},value:[{type:"array",message:f.getMessage("isNotArray")},{type:"array",validator(u,a,i){a.length===0&&i(f.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")),i()},message:f.getMessage(n?"pleaseBindAtLeastOneDisplayValueInDataSetting":"pleaseBindAtLeastOneDisplayValue")}]}}}],orders:[{type:"array",message:f.getMessage("isNotArray")},{type:"array",defaultField:{type:"object",fields:{columnName:{type:"string",required:!0,message:f.getMessage("pleaseEnterFieldCode")},desc:{type:"boolean",message:f.getMessage("isNotBoolean")}}}}]}}]}class Ye extends ye{constructor(e){super(e),this.dataBind={},this.caption={type:"string",required:!0,message:f.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:f.getMessage("pleaseEnterCaptionTip")};const n={fieldCode:{type:"string",required:!0,message:f.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:f.getMessage("pleaseEnterFieldCode")}};if(e.dataBind instanceof O)this.dataBind={type:"object",required:!0,fields:K(n),message:f.getMessage("pleaseEnterFieldCode")};else{let u={type:"object",required:!0,fields:{},message:f.getMessage("pleaseEnterFieldCode")};Object.keys(e.dataBind).forEach(a=>{u.fields[a]={type:"object",required:!0,fields:K(n),message:f.getMessage("pleaseEnterFieldCode")}}),this.dataBind=u}e.isShowCaptionTip&&(this.captionTip.required=!0)}}class Wt extends We{constructor(e){super(e),this.push({type:"string",required:e.isHide?!1:e.required,message:e.requiredMessage!==""?e.requiredMessage:f.getMessage("runtimeRequired",{caption:e.caption})})}}class ie extends U{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 O(e==null?void 0:e.dataBind),this.defaultValue=(E=e==null?void 0:e.defaultValue)!=null?E:""}}ie.Rules=Ye,ie.RuntimeRules=Wt;class ys extends Ye{constructor(e){super(e),this.optionConfig={type:"enum",enum:["custom","datasource"],message:f.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:f.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:f.getMessage("isNotObject")}],Qe.call(this,e)}}class Kt extends q{constructor(e){super(e),this.controlType="form",this.props=new ie(e==null?void 0:e.props)}}Kt.controlEventKeys=["on_change","on_focus","on_blur"];class Es extends T{constructor(e){super(e),this.controlType="form",this.props=new ie(e==null?void 0:e.props)}}class re extends U{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 kt(t,e){t.forEach(n=>{pe(n,e)})}const Xt=Symbol("targetKey");function Jt(t){var e;return(e=t[Xt])!=null?e:t}function Gt(t,e){return kt(t,e),new Proxy(t,{get(n,u,...a){return u===Xt?n:Reflect.get(n,u,...a)},set(n,u,a,...i){if(ur(t)&&u==="length"&&a===t.length)return!0;const r=Reflect.set(n,u,a,...i);return nr(a)&&pe(a,e),r}})}function se(t,e,n,u){const a=u!=null?u:t;let i=Gt(Jt(n!=null?n:[]),a);Object.defineProperty(t,e,{get(){return i},set(r){i=Gt(Jt(r),a)},enumerable:!0})}const vs=1e4;class z extends q{constructor(e){super(e),this.controlType="layout";const{excludes:n,childrenMaxLength:u}=new.target;this.props=new re(e==null?void 0:e.props),se(this,"children",e==null?void 0:e.children),this.excludes=K(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(z.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 Ce(Z({},e),{children:n})}}z.excludes=!1,z.childrenMaxLength=vs;class et extends T{constructor(e){super(e),this.controlType="layout",this.props=new re(e==null?void 0:e.props),se(this,"children",e==null?void 0:e.children)}}class tt extends U{constructor(e,n){super(n),se(this,"headers",n==null?void 0:n.headers,e)}}class Be extends q{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 Ce(Z({},e),{props:Ce(Z({},this.props),{headers:n})})}}Be.controlFieldType=R.LIST;class Bs extends T{constructor(e){super(e),this.controlType="list",this.props=new tt(this,e==null?void 0:e.props),se(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:f.getMessage("pleaseEnterCaption")},this.width={type:"number",required:!1,message:f.getMessage("pleaseEnterColumnWidth")},this.width.required=e.widthType==="px"}}class Ae extends U{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 Ve(e==null?void 0:e.autoWidth),this.dataBind=new O(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 As extends nt{constructor(e){super(e),this.optionConfig={type:"enum",enum:["custom","datasource","none"],message:f.getMessage("PleaseSelectTheCorrectOptionSettings")},this.options=[{type:"array",message:f.getMessage("isNotArray")}],this.datasourceBind=[{type:"object",message:f.getMessage("isNotObject")}],Qe.call(this,e)}}class Cs extends q{constructor(e){super(e),this.controlType="column",this.props=new Ae(e==null?void 0:e.props)}}class Fs extends T{constructor(e){super(e),this.controlType="column",this.props=new Ae(e==null?void 0:e.props)}}class ut extends re{constructor(e){super(e),this.dataBind=new O(e==null?void 0:e.dataBind)}}class Ds extends z{constructor(e){super(e),this.controlType="search",this.props=new ut(e==null?void 0:e.props)}}class bs extends et{constructor(e){super(e),this.controlType="search",this.props=new ut(e==null?void 0:e.props)}}class at extends re{constructor(e){super(e)}}class Ss extends z{constructor(e){super(e),this.controlType="wrap",this.props=new at(e==null?void 0:e.props)}}class ws extends et{constructor(e){super(e),this.controlType="wrap",this.props=new at(e==null?void 0:e.props)}}function Is(t){t.hasOwnProperty("linkOperationOption")&&t.hasOwnProperty("showLinkOperation")&&t.showLinkOperation&&(this.linkOperationOption=[{type:"object",fields:{formKey:{type:"string",required:!0,message:f.getMessage("pleaseEnterForm")}}}])}s.AMOUNT_TYPE=He,s.AddressValue=Pr,s.AmountDataBind=Mr,s.AmountValue=Lr,s.AutoWidth=Ve,s.BaseControlProperty=ie,s.BaseControlPropertyRules=Ye,s.BaseControlPropertyRuntimeRules=Wt,s.BaseStyle=qt,s.COMMON_SETTING_TYPE=$t,s.CalcDataBind=Vr,s.CalcValue=Or,s.ColumnControlProperty=Ae,s.ColumnControlPropertyRules=nt,s.ColumnOptionAndDataSourcePropertyRules=As,s.CustomAttributeItem=je,s.CustomPermissionItem=_r,s.DataBind=O,s.DataSourceBind=ne,s.DataSourceDataSetValue=wt,s.DataSourceOrderItem=xe,s.DataSourceParamItem=Br,s.DataStorageDoc=mr,s.DesignerColumnControl=Cs,s.DesignerControl=q,s.DesignerFormControl=Kt,s.DesignerLayoutControl=z,s.DesignerListControl=Be,s.DesignerSearchControl=Ds,s.DesignerWrapControl=Ss,s.DisplayBoListItem=Ne,s.FieldBindItem=Ft,s.FieldFilterCondition=me,s.FieldFilterConditions=te,s.FillBackBind=br,s.FillPayloadBind=Mt,s.FormBind=he,s.FormSelectBind=gr,s.ImageOptionSetting=Lt,s.JoinRelation=vr,s.Language=Sr,s.LayoutControlProperty=re,s.LeftVariable=bt,s.LinkOperationOption=Cr,s.ListBind=yr,s.ListControlProperty=tt,s.MetaAutoWidth=hr,s.MetaWidth=fe,s.MultistageFillingItem=St,s.ObjectDataBind=ge,s.OperationItem=Nr,s.OptObject=jr,s.OptionAndDataSourcePropertyRules=ys,s.OptionSetting=Ue,s.OrganizationDataSourceBind=Fr,s.PAGE_STATUS=Te,s.Property=U,s.PropertyRules=ye,s.PropertyRuntimeRules=We,s.RangeDataBind=$r,s.RangeDateValue=qr,s.RegisterControls=de,s.RegularRules=wr,s.RightVariable=Oe,s.RuntimeColumnControl=Fs,s.RuntimeControl=T,s.RuntimeFormControl=Es,s.RuntimeLayoutControl=et,s.RuntimeListControl=Bs,s.RuntimeSearchControl=bs,s.RuntimeWrapControl=ws,s.SearchControlProperty=ut,s.SelectedContentConfig=Ar,s.SubListItem=Dt,s.SubListPageConfig=Er,s.SuperDataSourceBind=It,s.TreeDataSourceBind=Dr,s.ViewOperationItem=xr,s.WrapControlProperty=at,s.controlHooksEmitter=Ut,s.createValidator=jt,s.defineArrayParent=kt,s.defineControlArrayToProperty=se,s.defineParent=pe,s.initImageOptions=Rr,s.initLinkOperationRules=Is,s.initOptionAndDataSourceRules=Qe,s.initOptions=Ir,s.initSuperDataSourceRules=gs,s.setPropertyDontEnum=zt,Object.defineProperty(s,"__esModule",{value:!0})});
|
|
@@ -7,7 +7,7 @@ declare const messages: {
|
|
|
7
7
|
range: string;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type Messages = Partial<typeof messages>;
|
|
11
11
|
declare function createValidator(rules: Rules, newMessages?: Messages): Schema & {
|
|
12
12
|
messages: (messages: Messages) => Messages;
|
|
13
13
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Watcher } from '@byteluck-fe/model-driven-shared';
|
|
2
|
-
|
|
2
|
+
type EmitterKeys = 'preInstance' | 'postInstance' | 'preUpdateProps' | 'postUpdateProps' | 'preValidate' | 'preToSchema';
|
|
3
3
|
declare const controlHooksEmitter: Watcher<EmitterKeys>;
|
|
4
4
|
export { controlHooksEmitter };
|
package/dist/types/type.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { BaseControlProperty, LayoutControlProperty, Property, DesignerControl,
|
|
|
2
2
|
import { PAGE_STATUS } from './framework';
|
|
3
3
|
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
4
4
|
import { WrapControlProperty } from './common/WrapControl';
|
|
5
|
-
export
|
|
5
|
+
export type SchemaUpgradeFunction = (schemaJSON: any, newVersion: string, oldVersion: string, payload?: any) => any;
|
|
6
6
|
export interface ExportedControl {
|
|
7
7
|
Property: typeof Property;
|
|
8
8
|
Designer: typeof DesignerControl;
|
|
@@ -32,26 +32,26 @@ export interface WrapControls {
|
|
|
32
32
|
}
|
|
33
33
|
export interface Controls extends BaseControls, FormControls, LayoutControls, ListControls, ColumnControls, SearchControls, WrapControls {
|
|
34
34
|
}
|
|
35
|
-
export
|
|
36
|
-
export
|
|
37
|
-
export
|
|
38
|
-
export
|
|
39
|
-
export
|
|
40
|
-
export
|
|
41
|
-
export
|
|
42
|
-
export
|
|
43
|
-
export
|
|
44
|
-
export
|
|
45
|
-
export
|
|
46
|
-
export
|
|
47
|
-
export
|
|
48
|
-
export
|
|
49
|
-
export
|
|
50
|
-
export
|
|
51
|
-
export
|
|
52
|
-
export
|
|
53
|
-
export
|
|
54
|
-
export
|
|
35
|
+
export type GetKeys<T extends string> = T extends never ? string : T;
|
|
36
|
+
export type MODE = 'Designer' | 'Runtime';
|
|
37
|
+
export type BaseControlsKeys = GetKeys<keyof BaseControls>;
|
|
38
|
+
export type FormControlsKeys = GetKeys<keyof FormControls>;
|
|
39
|
+
export type LayoutControlsKeys = GetKeys<keyof LayoutControls>;
|
|
40
|
+
export type ListControlsKeys = GetKeys<keyof ListControls>;
|
|
41
|
+
export type ColumnControlsKeys = GetKeys<keyof ColumnControls>;
|
|
42
|
+
export type SearchControlsKeys = GetKeys<keyof SearchControls>;
|
|
43
|
+
export type WrapControlsKeys = GetKeys<keyof WrapControls>;
|
|
44
|
+
export type ControlsKeys = GetKeys<keyof Controls>;
|
|
45
|
+
export type ControlExport = ExportedControl;
|
|
46
|
+
export type ControlDesigner<T extends ControlsKeys> = Controls[T]['Designer'];
|
|
47
|
+
export type ControlDesignerInstance<T extends ControlsKeys> = InstanceType<ControlDesigner<T>>;
|
|
48
|
+
export type ControlRuntime<T extends ControlsKeys> = Controls[T]['Runtime'];
|
|
49
|
+
export type ControlRuntimeInstance<T extends ControlsKeys> = InstanceType<ControlRuntime<T>>;
|
|
50
|
+
export type ControlProperty<T extends ControlsKeys> = Controls[T]['Property'];
|
|
51
|
+
export type ControlPropertyInstance<T extends ControlsKeys> = InstanceType<ControlProperty<T>>;
|
|
52
|
+
export type ControlsConstructor<T extends ControlsKeys, P extends MODE> = Controls[T][P];
|
|
53
|
+
export type ControlsInstance<T extends ControlsKeys, P extends MODE> = InstanceType<ControlsConstructor<T, P>>;
|
|
54
|
+
export type BaseControlTypes = 'layout' | 'form' | 'base' | 'list' | 'column' | 'search' | 'wrap';
|
|
55
55
|
export interface BaseControlSchema<K extends ControlsKeys, T extends Property> {
|
|
56
56
|
id: string;
|
|
57
57
|
type: K;
|
|
@@ -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
|
|
89
|
-
export
|
|
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
|
+
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-alpha.
|
|
3
|
+
"version": "2.7.0-alpha.2",
|
|
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-alpha.
|
|
29
|
+
"@byteluck-fe/model-driven-shared": "2.7.0-alpha.2",
|
|
30
30
|
"async-validator": "3.5.1",
|
|
31
31
|
"tslib": "^2.1.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "23607484dc1f65494b32a6c2e9fff86f0ce8dc54"
|
|
34
34
|
}
|