@byteluck-fe/model-driven-settings 1.7.3 → 1.7.14

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/index.umd.js CHANGED
@@ -1,2 +1,2 @@
1
- var Ea=Object.defineProperty,Ba=Object.defineProperties;var ha=Object.getOwnPropertyDescriptors;var j=Object.getOwnPropertySymbols;var Aa=Object.prototype.hasOwnProperty,ma=Object.prototype.propertyIsEnumerable;var O=(c,B,E)=>B in c?Ea(c,B,{enumerable:!0,configurable:!0,writable:!0,value:E}):c[B]=E,I=(c,B)=>{for(var E in B||(B={}))Aa.call(B,E)&&O(c,E,B[E]);if(j)for(var E of j(B))ma.call(B,E)&&O(c,E,B[E]);return c},y=(c,B)=>Ba(c,ha(B));(function(c,B){typeof exports=="object"&&typeof module!="undefined"?B(exports):typeof define=="function"&&define.amd?define(["exports"],B):(c=typeof globalThis!="undefined"?globalThis:c||self,B(c.modelDrivenSettings={}))})(this,function(c){"use strict";function B(e){return e}class E{constructor(u){var t,n;this.visible=(t=u==null?void 0:u.visible)!=null?t:!0,this.expression=(n=u==null?void 0:u.expression)!=null?n:!1}get isAtomicComponent(){return!0}}var K="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",W="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",X="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",Q="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",J="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",Z="{caption}\u5FC5\u586B",Y="\u8BF7\u8F93\u5165\u6807\u9898",ee="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",ue="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",te="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",ne="\u8BF7\u7ED1\u5B9A\u8868\u5355",ae="\u8BF7\u7ED1\u5B9A\u5217\u8868",re="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",ie="\u8BF7\u8F93\u5165\u663E\u793A\u503C",se="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",le="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",oe="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",ce="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",Ee="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Be="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",he="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",Ae="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",me="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",pe="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",fe="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Fe="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",ve="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",de="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",ge="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",De="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",Ce="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",be="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",Se="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Ie="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",ye="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Me="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",$e="\u8BF7\u9009\u62E9\u7701",we="\u8BF7\u9009\u62E9\u5E02",Re="\u8BF7\u9009\u62E9\u533A",Le="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",xe="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Ue="\u8BF7\u8F93\u5165\u5217\u5BBD",Ne="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",_e="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Te="\u8BF7\u9009\u62E9\u63A7\u4EF6",Pe="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",Ve="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",ke="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Ge="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",He="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ze="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",qe="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",je="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Oe="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Ke="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",We="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Xe="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Qe="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Je="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Ze="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Ye="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",eu="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",uu="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",tu="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",nu="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",au="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",ru={isNotNumber:K,isNotString:W,isNotObject:X,isNotArray:Q,isNotBoolean:J,runtimeRequired:Z,pleaseEnterCaption:Y,pleaseEnterCaptionTip:ee,pleaseEnterPlaceholder:ue,pleaseEnterFieldCode:te,pleaseEnterForm:ne,pleaseEnterList:ae,pleaseEnterProcess:re,pleaseEnterLabel:ie,pleaseEnterValue:se,bizKeyNotBindFiled:le,pleaseEnterNumberRange:oe,pleaseEnterAValueGreaterThanMin:ce,pleaseEnterAValueLessThanMax:Ee,numberRangeSetError:Be,stringRangeError:he,attachmentMaxSize:Ae,pleaseEnterTotalScoreSetting:me,theTotalScoreMustNotBeLessThan1:pe,scoreDefaultValueRange:fe,attachmentLimitError:Fe,PleaseReselectTheOptionalQuantity:ve,TheMaximumLengthIsGreaterThanTheMinimumLength:de,TheMinimumLengthIsGreaterThanTheMaximumLength:ge,PleaseSelectTheCorrectOptionSettings:De,optionIdIsRepeat:Ce,optionIsRequired:be,pleaseEnterDataCode:Se,pleaseEnterValueFieldCode:Ie,pleaseEnterSvcCode:ye,pleaseBindAtLeastOneDisplayValue:Me,pleaseSelectProvince:$e,pleaseSelectCity:we,pleaseSelectDistrict:Re,limitRowsCannotBeLessThan0:Le,TheNumberOfRowsCannotBeLessThanMinRows:xe,pleaseEnterColumnWidth:Ue,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Ne,pleaseCompleteAllRulesAndConditions:_e,pleaseSelectControl:Te,pleaseSelectAtLeastOneColumn:Pe,pleaseSelectFillBackMode:Ve,pleaseSelectDashboard:ke,rootNodeIsRequired:Ge,theViewNameCannotBeEmpty:He,pleaseSelectOcrType:ze,pleaseSelectAtLeastOneFieldToFillIn:qe,pleaseChooseAtLeastOne:je,pleaseEnterButtonContent:Oe,pleaseEnterDataCodeInDataSetting:Ke,pleaseEnterValueFieldCodeInDataSetting:We,pleaseEnterSvcCodeInDataSetting:Xe,pleaseBindAtLeastOneDisplayValueInDataSetting:Qe,rootNodeIsRequiredInDataSetting:Je,pleaseEnterMaxHeight:Ze,pleaseEnter:Ye,pleaseEnterWatermark:eu,pleaseEnterFileName:uu,pleaseUploadAtLeastOnePrintTemplate:tu,pleaseAssignBusiness:nu,pleaseAssignExternal:au},iu="Please enter a number",su="Please enter a string",lu="Please enter an object",ou="Please enter an array",cu="Please enter a boolean",Eu="{caption} Required",Bu="Please enter the title",hu="Please enter the bubble prompt",Au="Please enter the prompt text",mu="Please bind data items",pu="Please bind the form",fu="Please bind the list",Fu="Please bind the process",vu="Please enter the displayed value",du="Please enter the stored value",gu="The document number is not bound to the data item",Du="Please enter a value greater than or equal to {min} and less than or equal to {max}",Cu="Please enter a value greater than or equal to {min}",bu="Please enter a value less than or equal to {max}",Su="The value range is set incorrectly",Iu="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",yu="The attachment size must be between 0MB and 1000MB",Mu="Please fill in the total score setting",$u="The total score cannot be less than 1",wu="The default value must be between {min} and {max}",Ru="The number of attachments uploaded must be between {min} and {max}",Lu="Please re-select the optional quantity",xu="The maximum length of the control must be greater than the minimum length",Uu="The minimum length of the control must be less than the maximum length",Nu="Please select the correct option setting",_u="Option ID cannot be repeated",Tu="Please enter at least one option",Pu="Please bind the data source",Vu="Please bind the stored value",ku="Please bind the service",Gu="At least one display value must be bound",Hu="Please select a province",zu="Please select a city",qu="Please select a district",ju="The minimum number of lines to fill in cannot be less than 0",Ou="The number of rows cannot be less than {min} rows",Ku="Please enter the column width",Wu="Please set the logical relationship of all rule conditions",Xu="Please complete all rules and conditions",Qu="please select control",Ju="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Zu="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Yu="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",et="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",ut="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",tt="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",nt="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",at="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",rt="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",it="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",st="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",lt="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",ot="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",ct="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Et="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Bt="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",ht="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",At="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",mt={isNotNumber:iu,isNotString:su,isNotObject:lu,isNotArray:ou,isNotBoolean:cu,runtimeRequired:Eu,pleaseEnterCaption:Bu,pleaseEnterCaptionTip:hu,pleaseEnterPlaceholder:Au,pleaseEnterFieldCode:mu,pleaseEnterForm:pu,pleaseEnterList:fu,pleaseEnterProcess:Fu,pleaseEnterLabel:vu,pleaseEnterValue:du,bizKeyNotBindFiled:gu,pleaseEnterNumberRange:Du,pleaseEnterAValueGreaterThanMin:Cu,pleaseEnterAValueLessThanMax:bu,numberRangeSetError:Su,stringRangeError:Iu,attachmentMaxSize:yu,pleaseEnterTotalScoreSetting:Mu,theTotalScoreMustNotBeLessThan1:$u,scoreDefaultValueRange:wu,attachmentLimitError:Ru,PleaseReselectTheOptionalQuantity:Lu,TheMaximumLengthIsGreaterThanTheMinimumLength:xu,TheMinimumLengthIsGreaterThanTheMaximumLength:Uu,PleaseSelectTheCorrectOptionSettings:Nu,optionIdIsRepeat:_u,optionIsRequired:Tu,pleaseEnterDataCode:Pu,pleaseEnterValueFieldCode:Vu,pleaseEnterSvcCode:ku,pleaseBindAtLeastOneDisplayValue:Gu,pleaseSelectProvince:Hu,pleaseSelectCity:zu,pleaseSelectDistrict:qu,limitRowsCannotBeLessThan0:ju,TheNumberOfRowsCannotBeLessThanMinRows:Ou,pleaseEnterColumnWidth:Ku,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Wu,pleaseCompleteAllRulesAndConditions:Xu,pleaseSelectControl:Qu,pleaseSelectDashboard:Ju,theViewNameCannotBeEmpty:Zu,pleaseSelectOcrType:Yu,pleaseSelectAtLeastOneFieldToFillIn:et,pleaseChooseAtLeastOne:ut,pleaseEnterButtonContent:tt,pleaseEnterDataCodeInDataSetting:nt,pleaseEnterValueFieldCodeInDataSetting:at,pleaseEnterSvcCodeInDataSetting:rt,pleaseBindAtLeastOneDisplayValueInDataSetting:it,rootNodeIsRequiredInDataSetting:st,pleaseEnterMaxHeight:lt,pleaseEnter:ot,pleaseEnterWatermark:ct,pleaseEnterFileName:Et,pleaseUploadAtLeastOnePrintTemplate:Bt,pleaseAssignBusiness:ht,pleaseAssignExternal:At},pt="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ft="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ft="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",vt="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",dt="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",gt="{caption}\u5FC5\u9808",Dt="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ct="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",bt="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",St="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",It="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",yt="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Mt="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",$t="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",wt="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Rt="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",Lt="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",xt="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ut="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Nt="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",_t="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Tt="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Pt="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Vt="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",kt="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Gt="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ht="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",zt="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5927\u5024\u306F\u6700\u5C0F\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",qt="\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",jt="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ot="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Kt="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Wt="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Xt="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Qt="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Jt="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",Zt="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Yt="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",en="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",un="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",tn="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",nn="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",an="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",rn="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",sn="please select control",ln="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",on="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",cn="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",En="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Bn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",hn="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",An="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",mn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",pn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",fn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Fn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",vn="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",dn="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",gn="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Dn="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Cn="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",bn="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Sn="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",In={isNotNumber:pt,isNotString:ft,isNotObject:Ft,isNotArray:vt,isNotBoolean:dt,runtimeRequired:gt,pleaseEnterCaption:Dt,pleaseEnterCaptionTip:Ct,pleaseEnterPlaceholder:bt,pleaseEnterFieldCode:St,pleaseEnterForm:It,pleaseEnterList:yt,pleaseEnterProcess:Mt,pleaseEnterLabel:$t,pleaseEnterValue:wt,bizKeyNotBindFiled:Rt,pleaseEnterNumberRange:Lt,pleaseEnterAValueGreaterThanMin:xt,pleaseEnterAValueLessThanMax:Ut,numberRangeSetError:Nt,stringRangeError:_t,attachmentMaxSize:Tt,pleaseEnterTotalScoreSetting:Pt,theTotalScoreMustNotBeLessThan1:Vt,scoreDefaultValueRange:kt,attachmentLimitError:Gt,PleaseReselectTheOptionalQuantity:Ht,TheMaximumLengthIsGreaterThanTheMinimumLength:zt,TheMinimumLengthIsGreaterThanTheMaximumLength:qt,PleaseSelectTheCorrectOptionSettings:jt,optionIdIsRepeat:Ot,optionIsRequired:Kt,pleaseEnterDataCode:Wt,pleaseEnterValueFieldCode:Xt,pleaseEnterSvcCode:Qt,pleaseBindAtLeastOneDisplayValue:Jt,pleaseSelectProvince:Zt,pleaseSelectCity:Yt,pleaseSelectDistrict:en,limitRowsCannotBeLessThan0:un,TheNumberOfRowsCannotBeLessThanMinRows:tn,pleaseEnterColumnWidth:nn,pleaseSetTheLogicalRelationshipOfAllRuleConditions:an,pleaseCompleteAllRulesAndConditions:rn,pleaseSelectControl:sn,pleaseSelectDashboard:ln,theViewNameCannotBeEmpty:on,pleaseSelectOcrType:cn,pleaseSelectAtLeastOneFieldToFillIn:En,pleaseChooseAtLeastOne:Bn,pleaseEnterButtonContent:hn,pleaseEnterDataCodeInDataSetting:An,pleaseEnterValueFieldCodeInDataSetting:mn,pleaseEnterSvcCodeInDataSetting:pn,pleaseBindAtLeastOneDisplayValueInDataSetting:fn,rootNodeIsRequiredInDataSetting:Fn,pleaseEnterMaxHeight:vn,pleaseEnter:dn,pleaseEnterWatermark:gn,pleaseEnterFileName:Dn,pleaseUploadAtLeastOnePrintTemplate:Cn,pleaseAssignBusiness:bn,pleaseAssignExternal:Sn},yn={zhCN:ru,enUS:mt,jaJP:In},R;(function(e){e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable"})(R||(R={}));var L;(function(e){e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN"})(L||(L={}));var Mn="zh-CN",$n=function(){};function f(e,u,t){return u in e?Object.defineProperty(e,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[u]=t,e}var x;(function(e){e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search"})(x||(x={}));var A;(function(e){e.TITLE="title",e.LINK="link",e.BUTTON="button",e.DIVIDER="divider",e.TEXT="text",e.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",e.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",e.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",e.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",e.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",e.EXPORT_LIST_BUTTON="list-page-btn-export-list",e.LIST_SELECT_BUTTON="list-select-button",e.FORM_SELECT_BUTTON="form-select-button",e.LIST_VIEW_SELECT="list-view-select",e.TEXT_OCR_BUTTON="text-ocr-button",e.INVOICE_CHECK_BUTTON="invoice-check-button",e.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",e.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",e.VARCHAR_COLUMN="varchar-column",e.TEXT_COLUMN="text-column",e.DECIMAL_COLUMN="decimal-column",e.TIMESCOPE_COLUMN="timescope-column",e.TIMESTAMP_COLUMN="timestamp-column",e.ARRAY_COLUMN="array-column",e.DEPARTMENT_COLUMN="department-column",e.AUTO_NUMBER_COLUMN="auto-number-column",e.FILE_COLUMN="file-column",e.IMAGE_COLUMN="image-column",e.PEOPLE_COLUMN="people-column",e.LOCATION_COLUMN="location-column",e.CUSTOM_COLUMN="custom-column",e.ORDER_COLUMN="order-column",e.OPERATION_COLUMN="operation-column",e.EMPLOYEE_COLUMN="employee-column",e.ADDRESS="address",e.AMOUNT="amount",e.ATTACHMENT="attachment",e.AUTO_NUMBER="auto-number",e.CALC="calc",e.CHECKBOX="checkbox",e.DATE_PICKER="date-picker",e.DATE_RANGE="date-range",e.DEPARTMENT="department",e.EMPLOYEE="employee",e.IMAGE="image",e.INPUT="input",e.NUMBER="number",e.RADIO="radio",e.RICH_TEXT="rich-text",e.SCORE="score",e.SEARCH_DATE_RANGE="search-date-range",e.SEARCH_NUMBER_RANGE="search-number-range",e.SEARCH_INPUT="search-input",e.SELECT="select",e.SELECT_MULTIPLE="select-multiple",e.SELECT_RELATION="select-relation",e.VUE_FORM_ITEM="vue-form-item",e.TEXTAREA="textarea",e.EMAIL="email",e.FOOTER="footer",e.HEADER="header",e.ID_CARD="id-card",e.MOBILE="mobile",e.PHONE="phone",e.RADIO_IMAGE="radio-image",e.ELECTRONIC_SIGNATURE="electronic-signature",e.WPS="wps",e.CARD_GROUP="card-group",e.COL="col",e.GRID="grid",e.GRID_ROW="grid-row",e.GRID_TABLE_COLUMN="grid-table-column",e.ROW="row",e.TWO_COLUMNS="two-columns",e.SUBTABLE_COLUMN="subtable-column",e.SUBTABLE_ROW="subtable-row",e.TAB="tab",e.TAB_PANE="tab-pane",e.TOOLBOX="toolbox",e.DATA_VIEW="data-view",e.LIST_VIEW="list-view",e.SUBTABLE="subtable",e.GRID_TABLE="grid-table",e.SIMPLE_SEARCH="simple-search",e.PAGINATION="pagination",e.CHECKBOX_IMAGE="checkbox-image",e.DASHBOARD="dashboard",e.TREE="tree",e.EMPLOYEE2="employee2",e.DEPARTMENT2="department2"})(A||(A={}));var m;(function(e){e.VARCHAR="varchar",e.TEXT="text",e.ARRAY="array",e.ADDRESS="location",e.DECIMAL="decimal",e.DECIMAL_RANGE="decimal_range",e.TIMESTAMP="timestamp",e.EMPLOYEES="people",e.DEPARTMENTS="department",e.MONEY="money",e.TIMESCOPE="timescope",e.FILE="file",e.IMAGE="image",e.AUTO_NUMBER="auto_number",e.CALC="calc",e.RELATION="relation",e.LIST="list",e.RELATION_FIELD="relation-field",e.REFERENCE_FIELD="reference-field",e.CALC_FIELD="calc",e.JSON="json",e.BIGINT="bigint",e.ANY="ANY",e.ENCRYPTED_FIELD="encrypted_field"})(m||(m={}));var p;p={},f(p,m.ARRAY,A.ARRAY_COLUMN),f(p,m.AUTO_NUMBER,A.AUTO_NUMBER_COLUMN),f(p,m.DECIMAL,A.DECIMAL_COLUMN),f(p,m.DEPARTMENTS,A.DEPARTMENT_COLUMN),f(p,m.FILE,A.FILE_COLUMN),f(p,m.IMAGE,A.IMAGE_COLUMN),f(p,m.ADDRESS,A.LOCATION_COLUMN),f(p,m.EMPLOYEES,A.EMPLOYEE_COLUMN),f(p,m.TEXT,A.TEXT_COLUMN),f(p,m.TIMESCOPE,A.TIMESCOPE_COLUMN),f(p,m.TIMESTAMP,A.TIMESTAMP_COLUMN),f(p,m.VARCHAR,A.VARCHAR_COLUMN),f(p,m.RELATION,A.VARCHAR_COLUMN);var U;(function(e){e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATETIME="datetime"})(U||(U={}));function wn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rn(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}function Ln(){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(e){return!1}}function S(e,u,t){return Ln()?S=Reflect.construct:S=function(a,o,l){var h=[null];h.push.apply(h,o);var d=Function.bind.apply(a,h),s=new d;return l&&D(s,l.prototype),s},S.apply(null,arguments)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},g(e)}function xn(e,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(u&&u.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),u&&D(e,u)}function Un(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Nn(e,u){return u&&(_n(u)==="object"||typeof u=="function")?u:wn(e)}function D(e,u){return D=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},D(e,u)}var _n=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function M(e){var u=typeof Map=="function"?new Map:void 0;return M=function(n){if(n===null||!Un(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof u!="undefined"){if(u.has(n))return u.get(n);u.set(n,a)}function a(){return S(n,arguments,g(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),D(a,n)},M(e)}function Tn(){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(e){return!1}}function Pn(e){var u=Tn();return function(){var n=g(e),a;if(u){var o=g(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return Nn(this,a)}}function Vn(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var kn=function(e){xn(t,e);var u=Pn(t);function t(n){Rn(this,t);var a;return a=u.call(this,n),a.name="\u{1F4A5} Driven Error",a.message=n?Vn(n):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",a}return t}(M(Error));function Gn(e){throw new kn(e)}var Hn=Object.prototype.toString;function N(e,u){return Hn.call(e)==="[object "+u+"]"}function zn(e){return N(e,"String")}function qn(e){return N(e,"Promise")}var jn=function(){function e(u){var t,n;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((n=(t=u.messages)!==null&&t!==void 0?t:this.getPreImport(u.locale))!==null&&n!==void 0?n:{}),u.variableRegExp&&(this.variableRegExp=u.variableRegExp),this.setLocale(u.locale)}return e.prototype.setLocale=function(u){var t=this;this.locale=u,this._messageCache.clear();var n=this.getMessageData();qn(n)?n.then(function(a){t._messageCache.clear(),t.messages[t.localeInMessageKey]=a}):this.messages[this.localeInMessageKey]=n},e.prototype.getMessageData=function(){var u=this._messages[this.localeInMessageKey];return typeof u=="function"?u():u},e.prototype.translate=function(u,t,n){var a=this.getMessage(u);return a?this.formatMessage(a,n):this.formatMessage(t,n)},e.prototype.getMessage=function(u){if(this._messageCache.has(u))return this._messageCache.get(u);var t=this.getPathArray(u),n=t.reduce(function(a,o,l,h){if(a!==void 0){var d=a[o];if(!(l===h.length-1&&!zn(d)))return d}},this.message);return this._messageCache.set(u,n),n},e.prototype.formatMessage=function(u,t){return t?u.replace(this.variableRegExp,function(n,a){var o=t[a];return o!==void 0?String(o):n}):u},e.prototype.getPreImport=function(u){var t;if(window.okI18nPreImport){var n=this.getLocaleInMessageKey(u);return window.okI18nPreImport.hasOwnProperty(n)?window.okI18nPreImport:(t={},t[n]=window.okI18nPreImport,t)}},e.prototype.getPathArray=function(u){return u.split(".")},e.prototype.getLocaleInMessageKey=function(u){return u.replace(/-/g,"")},Object.defineProperty(e.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){var u;return(u=this.messages[this.localeInMessageKey])!==null&&u!==void 0?u:{}},enumerable:!1,configurable:!0}),e}();function On(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}var _=function(){function e(){On(this,e)}return e.getMessage=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(t,"",n)},e.resetI18n=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mn;return new jn({locale:t,messages:yn})},e.setLocale=function(t){return this.$i18n.setLocale(t)},e}();_.$i18n=_.resetI18n();var Kn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Wn={exports:{}};(function(e){(function(u){var t=function(r,i,F){if(!s(i)||sa(i)||la(i)||oa(i)||d(i))return i;var v,b=0,q=0;if(C(i))for(v=[],q=i.length;b<q;b++)v.push(t(r,i[b],F));else{v={};for(var w in i)Object.prototype.hasOwnProperty.call(i,w)&&(v[r(w,F)]=t(r,i[w],F))}return v},n=function(r,i){i=i||{};var F=i.separator||"_",v=i.split||/(?=[A-Z])/;return r.split(v).join(F)},a=function(r){return ca(r)?r:(r=r.replace(/[\-_\s]+(.)?/g,function(i,F){return F?F.toUpperCase():""}),r.substr(0,1).toLowerCase()+r.substr(1))},o=function(r){var i=a(r);return i.substr(0,1).toUpperCase()+i.substr(1)},l=function(r,i){return n(r,i).toLowerCase()},h=Object.prototype.toString,d=function(r){return typeof r=="function"},s=function(r){return r===Object(r)},C=function(r){return h.call(r)=="[object Array]"},sa=function(r){return h.call(r)=="[object Date]"},la=function(r){return h.call(r)=="[object RegExp]"},oa=function(r){return h.call(r)=="[object Boolean]"},ca=function(r){return r=r-0,r===r},$=function(r,i){var F=i&&"process"in i?i.process:i;return typeof F!="function"?r:function(v,b){return F(v,r,b)}},z={camelize:a,decamelize:l,pascalize:o,depascalize:l,camelizeKeys:function(r,i){return t($(a,i),r)},decamelizeKeys:function(r,i){return t($(l,i),r,i)},pascalizeKeys:function(r,i){return t($(o,i),r)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=z:u.humps=z})(Kn)})(Wn);function T(e){return Object.prototype.toString.call(e)==="[object Object]"}class P{constructor(u){var t,n,a;this.type=u.type,this.label=u.label,this.key=u.key,this.component=u.component,this.effect=(t=u.effect)!=null?t:{},this.scopeEffect=(n=u.scopeEffect)!=null?n:$n,this.defaultValue=u.defaultValue,this.validator=u.validator,this.props=(a=u.props)!=null?a:new E,this.effectKeys=Object.keys(this.effect)}filterEffects(u){return u===""?Object.values(this.effect):this.effectKeys.filter(t=>new RegExp(`^${t}(\\.\\w+)*$`).test(u)).map(t=>this.effect[t])}callEffectFn(u,t){try{const n=u.apply(null,t);T(n)&&Object.assign(this.props,n)}catch(n){Gn(`effect error
2
- ${n}`)}}callEffect(u,...t){this.filterEffects(u).forEach(n=>this.callEffectFn(n,t))}callScopeEffect(...u){this.callEffectFn(this.scopeEffect,u)}}class V{constructor(u){var t,n;this.type="group",this.title=(t=u.title)!=null?t:"",this.required=(n=u.required)!=null?n:!1,this.items=u.items,this.tips=u.tips}}function k(e){return"type"in e&&e.type==="tab"}class G{constructor(u){this.type="tab",this.title=u.title,this.items=u.items}}class Xn extends E{constructor(u){super(u),T(u)&&Object.entries(u).forEach(([t,n])=>{this[t]=n})}}class Qn extends E{constructor(u){var t,n,a,o;super(u),this.maxLength=(t=u==null?void 0:u.maxLength)!=null?t:"",this.minLength=(n=u==null?void 0:u.minLength)!=null?n:"",this.placeholder=(a=u==null?void 0:u.placeholder)!=null?a:"",this.i18n=(o=u==null?void 0:u.i18n)!=null?o:!1}}class Jn extends E{constructor(u){var t,n,a;super(u),this.max=(t=u==null?void 0:u.max)!=null?t:"",this.min=(n=u==null?void 0:u.min)!=null?n:"",this.placeholder=(a=u==null?void 0:u.placeholder)!=null?a:""}}class Zn extends E{constructor(u){var t,n,a;super(u),this.showType=(t=u==null?void 0:u.showType)!=null?t:"switch",this.tips=(n=u==null?void 0:u.tips)!=null?n:"",this.disabled=(a=u==null?void 0:u.disabled)!=null?a:!1}}class Yn extends E{constructor(u){var t;super(u),this.options=(t=u==null?void 0:u.options)!=null?t:[]}}class ea extends E{constructor(u){var t,n;super(u),this.placeholder=(t=u==null?void 0:u.placeholder)!=null?t:"",this.options=(n=u==null?void 0:u.options)!=null?n:[]}}class ua extends E{constructor(u){var t,n;super(u),this.options=(t=u==null?void 0:u.options)!=null?t:[],this.showType=(n=u==null?void 0:u.showType)!=null?n:"outline"}}class ta extends E{constructor(u){var t,n,a,o,l,h;super(u),this.maxLength=(t=u==null?void 0:u.maxLength)!=null?t:"",this.minLength=(n=u==null?void 0:u.minLength)!=null?n:"",this.placeholder=(a=u==null?void 0:u.placeholder)!=null?a:"",this.maxRows=(o=u==null?void 0:u.maxRows)!=null?o:"",this.minRows=(l=u==null?void 0:u.minRows)!=null?l:"",this.i18n=(h=u==null?void 0:u.i18n)!=null?h:!1}}function na(e,u){switch(e){case"input":return new Qn(u);case"textarea":return new ta(u);case"input-number":return new Jn(u);case"switch":return new Zn(u);case"radio":return new ua(u);case"checkbox":return new Yn(u);case"select":return new ea(u);default:return new Xn(u)}}function aa(e){return function(u){const t=e.get(u);if(!!t)return new P(y(I({},t),{props:na(t.component,"props"in t?t.props:void 0)}))}}function ra(e){const u=e.fields.reduce((a,o)=>(a.set(o.key,o),a),new Map);function t(a){return new V(y(I({},a),{items:a.items.map(aa(u)).filter(Boolean)}))}function n(a){return a.map(t)}return e.groups.map(a=>k(a)?new G(y(I({},a),{items:n(a.items)})):t(a))}function H(){return[{label:"\u9690\u85CF",key:"isHide",type:"boolean",component:"switch"},{key:"superSetting",component:"super-setting"},{key:"style.width",component:"styleComponent",props:{configKey:"style.widthConfig",options:["px","%","fill","hug"]},scopeEffect(e,u){const{oldParent:t,newParent:n,instance:a}=u;if((t==null?void 0:t.type)==="advanced-container"&&n.type==="positioning-container"&&(e.setInstance(a,"style.width",""),e.setInstance(a,"style.widthConfig","fill")),n)return{visible:n.type==="advanced-container"}}},{key:"style.height",component:"styleComponent",props:{configKey:"style.heightConfig",options:["px","%","fill","hug"]},scopeEffect(e,u){const{oldParent:t,newParent:n,instance:a}=u;if((t==null?void 0:t.type)==="advanced-container"&&n.type==="positioning-container"&&(e.setInstance(a,"style.height",""),e.setInstance(a,"style.heightConfig","fill")),u.newParent)return{visible:u.newParent.type==="advanced-container"}}}]}function ia(e){return[...H(),{type:"DataBind",key:"dataBind",component:"data-bind",defaultValue:e==null?void 0:e.dataBind},{key:"caption",type:"string",component:"input",props:{maxLength:80,i18n:!0},defaultValue:e==null?void 0:e.caption,validator(u){if(!u)return"\u6807\u9898\u5FC5\u586B"}},{label:"\u9690\u85CF\u6807\u9898",key:"isHideCaption",type:"boolean",component:"switch",defaultValue:e==null?void 0:e.isHideCaption,props:{showType:"checkbox"},scopeEffect(u,t){var n,a;if(((n=t.current)==null?void 0:n.type)!==((a=t.from)==null?void 0:a.type))return t.current.type==="subtable"&&u.setInstance(t.control,"isHideCaption",!0),{visible:t.current.type!=="subtable"}}},{key:"labelPosition",type:"string",component:"radio",defaultValue:e==null?void 0:e.labelPosition,props:{showType:"solid",options:[{label:"\u4E0A\u4E0B\u5E03\u5C40",value:"top"},{label:"\u5DE6\u53F3\u5E03\u5C40",value:"left"}]}},{key:"defaultState",type:"string",component:"radio",defaultValue:e==null?void 0:e.defaultState,props:{showType:"solid",options:[{label:"\u666E\u901A",value:"default"},{label:"\u53EA\u8BFB",value:"readonly"}]}},{label:"\u5FC5\u586B",key:"required",type:"boolean",component:"switch",defaultValue:e==null?void 0:e.required},{label:"\u63D0\u793A\u6587\u5B57",key:"placeholder",type:"string",component:"input",defaultValue:e==null?void 0:e.placeholder,props:{maxLength:80,i18n:!0}}]}c.Group=V,c.Setting=P,c.Tab=G,c.createBaseFields=H,c.createFormBaseFields=ia,c.defineInstance=B,c.initSettings=ra,c.isTabSchema=k,Object.defineProperty(c,"__esModule",{value:!0})});
1
+ var Aa=Object.defineProperty,Fa=Object.defineProperties;var ma=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var pa=Object.prototype.hasOwnProperty,fa=Object.prototype.propertyIsEnumerable;var j=(c,B,E)=>B in c?Aa(c,B,{enumerable:!0,configurable:!0,writable:!0,value:E}):c[B]=E,I=(c,B)=>{for(var E in B||(B={}))pa.call(B,E)&&j(c,E,B[E]);if(O)for(var E of O(B))fa.call(B,E)&&j(c,E,B[E]);return c},y=(c,B)=>Fa(c,ma(B));(function(c,B){typeof exports=="object"&&typeof module!="undefined"?B(exports):typeof define=="function"&&define.amd?define(["exports"],B):(c=typeof globalThis!="undefined"?globalThis:c||self,B(c.modelDrivenSettings={}))})(this,function(c){"use strict";function B(e){return e}class E{constructor(u){var t,n;this.visible=(t=u==null?void 0:u.visible)!=null?t:!0,this.expression=(n=u==null?void 0:u.expression)!=null?n:!1}get isAtomicComponent(){return!0}}var K="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",W="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",X="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",Q="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",J="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",Z="{caption}\u5FC5\u586B",Y="\u8BF7\u8F93\u5165\u6807\u9898",ee="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",ue="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",te="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",ne="\u8BF7\u7ED1\u5B9A\u8868\u5355",ae="\u8BF7\u7ED1\u5B9A\u5217\u8868",re="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",ie="\u8BF7\u8F93\u5165\u663E\u793A\u503C",le="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",se="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",oe="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",ce="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Ee="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",Be="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",he="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",Ae="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",Fe="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",me="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",pe="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",fe="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",ve="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",de="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",ge="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",De="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Ce="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",be="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Se="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",Ie="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",ye="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Me="\u8BF7\u7ED1\u5B9A\u670D\u52A1",$e="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",we="\u8BF7\u9009\u62E9\u7701",Re="\u8BF7\u9009\u62E9\u5E02",Le="\u8BF7\u9009\u62E9\u533A",xe="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Ue="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Ne="\u8BF7\u8F93\u5165\u5217\u5BBD",_e="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Te="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Pe="\u8BF7\u9009\u62E9\u63A7\u4EF6",Ve="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",ke="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Ge="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",He="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",ze="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",qe="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Oe="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",je="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Ke="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",We="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Xe="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Qe="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Je="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Ze="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Ye="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",eu="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",uu="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",tu="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",nu="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",au="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",ru="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",iu={isNotNumber:K,isNotString:W,isNotObject:X,isNotArray:Q,isNotBoolean:J,runtimeRequired:Z,pleaseEnterCaption:Y,pleaseEnterCaptionTip:ee,pleaseEnterPlaceholder:ue,pleaseEnterFieldCode:te,pleaseEnterForm:ne,pleaseEnterList:ae,pleaseEnterProcess:re,pleaseEnterLabel:ie,pleaseEnterValue:le,bizKeyNotBindFiled:se,pleaseSelectOneField:oe,pleaseEnterNumberRange:ce,pleaseEnterAValueGreaterThanMin:Ee,pleaseEnterAValueLessThanMax:Be,numberRangeSetError:he,stringRangeError:Ae,attachmentMaxSize:Fe,pleaseEnterTotalScoreSetting:me,theTotalScoreMustNotBeLessThan1:pe,scoreDefaultValueRange:fe,attachmentLimitError:ve,PleaseReselectTheOptionalQuantity:de,TheMaximumLengthIsGreaterThanTheMinimumLength:ge,TheMinimumLengthIsGreaterThanTheMaximumLength:De,PleaseSelectTheCorrectOptionSettings:Ce,optionIdIsRepeat:be,optionIsRequired:Se,pleaseEnterDataCode:Ie,pleaseEnterValueFieldCode:ye,pleaseEnterSvcCode:Me,pleaseBindAtLeastOneDisplayValue:$e,pleaseSelectProvince:we,pleaseSelectCity:Re,pleaseSelectDistrict:Le,limitRowsCannotBeLessThan0:xe,TheNumberOfRowsCannotBeLessThanMinRows:Ue,pleaseEnterColumnWidth:Ne,pleaseSetTheLogicalRelationshipOfAllRuleConditions:_e,pleaseCompleteAllRulesAndConditions:Te,pleaseSelectControl:Pe,pleaseSelectAtLeastOneColumn:Ve,pleaseSelectFillBackMode:ke,pleaseSelectDashboard:Ge,rootNodeIsRequired:He,theViewNameCannotBeEmpty:ze,pleaseSelectOcrType:qe,pleaseSelectAtLeastOneFieldToFillIn:Oe,pleaseChooseAtLeastOne:je,pleaseEnterButtonContent:Ke,pleaseEnterDataCodeInDataSetting:We,pleaseEnterValueFieldCodeInDataSetting:Xe,pleaseEnterSvcCodeInDataSetting:Qe,pleaseBindAtLeastOneDisplayValueInDataSetting:Je,rootNodeIsRequiredInDataSetting:Ze,pleaseEnterMaxHeight:Ye,pleaseEnter:eu,pleaseEnterWatermark:uu,pleaseEnterFileName:tu,pleaseUploadAtLeastOnePrintTemplate:nu,pleaseAssignBusiness:au,pleaseAssignExternal:ru},lu="Please enter a number",su="Please enter a string",ou="Please enter an object",cu="Please enter an array",Eu="Please enter a boolean",Bu="{caption} Required",hu="Please enter the title",Au="Please enter the bubble prompt",Fu="Please enter the prompt text",mu="Please bind data items",pu="Please bind the form",fu="Please bind the list",vu="Please bind the process",du="Please enter the displayed value",gu="Please enter the stored value",Du="The document number is not bound to the data item",Cu="Please select at least one display field",bu="Please enter a value greater than or equal to {min} and less than or equal to {max}",Su="Please enter a value greater than or equal to {min}",Iu="Please enter a value less than or equal to {max}",yu="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}",$u="The attachment size must be between 0MB and 1000MB",wu="Please fill in the total score setting",Ru="The total score cannot be less than 1",Lu="The default value must be between {min} and {max}",xu="The number of attachments uploaded must be between {min} and {max}",Uu="Please re-select the optional quantity",Nu="The maximum length of the control must be greater than the minimum length",_u="The minimum length of the control must be less than the maximum length",Tu="Please select the correct option setting",Pu="Option ID cannot be repeated",Vu="Please enter at least one option",ku="Please bind the data source",Gu="Please bind the stored value",Hu="Please bind the service",zu="At least one display value must be bound",qu="Please select a province",Ou="Please select a city",ju="Please select a district",Ku="The minimum number of lines to fill in cannot be less than 0",Wu="The number of rows cannot be less than {min} rows",Xu="Please enter the column width",Qu="Please set the logical relationship of all rule conditions",Ju="Please complete all rules and conditions",Zu="please select control",Yu="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",et="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ut="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",tt="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",nt="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",at="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",rt="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",it="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",lt="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",st="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",ot="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ct="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Et="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Bt="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",ht="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",At="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Ft="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",mt="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",pt={isNotNumber:lu,isNotString:su,isNotObject:ou,isNotArray:cu,isNotBoolean:Eu,runtimeRequired:Bu,pleaseEnterCaption:hu,pleaseEnterCaptionTip:Au,pleaseEnterPlaceholder:Fu,pleaseEnterFieldCode:mu,pleaseEnterForm:pu,pleaseEnterList:fu,pleaseEnterProcess:vu,pleaseEnterLabel:du,pleaseEnterValue:gu,bizKeyNotBindFiled:Du,pleaseSelectOneField:Cu,pleaseEnterNumberRange:bu,pleaseEnterAValueGreaterThanMin:Su,pleaseEnterAValueLessThanMax:Iu,numberRangeSetError:yu,stringRangeError:Mu,attachmentMaxSize:$u,pleaseEnterTotalScoreSetting:wu,theTotalScoreMustNotBeLessThan1:Ru,scoreDefaultValueRange:Lu,attachmentLimitError:xu,PleaseReselectTheOptionalQuantity:Uu,TheMaximumLengthIsGreaterThanTheMinimumLength:Nu,TheMinimumLengthIsGreaterThanTheMaximumLength:_u,PleaseSelectTheCorrectOptionSettings:Tu,optionIdIsRepeat:Pu,optionIsRequired:Vu,pleaseEnterDataCode:ku,pleaseEnterValueFieldCode:Gu,pleaseEnterSvcCode:Hu,pleaseBindAtLeastOneDisplayValue:zu,pleaseSelectProvince:qu,pleaseSelectCity:Ou,pleaseSelectDistrict:ju,limitRowsCannotBeLessThan0:Ku,TheNumberOfRowsCannotBeLessThanMinRows:Wu,pleaseEnterColumnWidth:Xu,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Qu,pleaseCompleteAllRulesAndConditions:Ju,pleaseSelectControl:Zu,pleaseSelectDashboard:Yu,theViewNameCannotBeEmpty:et,pleaseSelectOcrType:ut,pleaseSelectAtLeastOneFieldToFillIn:tt,pleaseChooseAtLeastOne:nt,pleaseEnterButtonContent:at,pleaseEnterDataCodeInDataSetting:rt,pleaseEnterValueFieldCodeInDataSetting:it,pleaseEnterSvcCodeInDataSetting:lt,pleaseBindAtLeastOneDisplayValueInDataSetting:st,rootNodeIsRequiredInDataSetting:ot,pleaseEnterMaxHeight:ct,pleaseEnter:Et,pleaseEnterWatermark:Bt,pleaseEnterFileName:ht,pleaseUploadAtLeastOnePrintTemplate:At,pleaseAssignBusiness:Ft,pleaseAssignExternal:mt},ft="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",vt="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",dt="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",gt="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Dt="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ct="{caption}\u5FC5\u9808",bt="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",St="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",It="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",yt="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Mt="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",$t="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",wt="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Rt="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Lt="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",xt="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",Ut="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Nt="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",_t="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Tt="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Pt="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",Vt="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",kt="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Gt="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Ht="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",zt="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",qt="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ot="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",jt="\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",Kt="\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",Wt="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Xt="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Qt="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Jt="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Zt="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Yt="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",en="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",un="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",tn="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",nn="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",an="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",rn="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",ln="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",sn="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",on="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",cn="please select control",En="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Bn="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",hn="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",An="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Fn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",mn="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",pn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",fn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",vn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",dn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",gn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Dn="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Cn="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",bn="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Sn="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",In="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",yn="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Mn="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",$n={isNotNumber:ft,isNotString:vt,isNotObject:dt,isNotArray:gt,isNotBoolean:Dt,runtimeRequired:Ct,pleaseEnterCaption:bt,pleaseEnterCaptionTip:St,pleaseEnterPlaceholder:It,pleaseEnterFieldCode:yt,pleaseEnterForm:Mt,pleaseEnterList:$t,pleaseEnterProcess:wt,pleaseEnterLabel:Rt,pleaseEnterValue:Lt,bizKeyNotBindFiled:xt,pleaseSelectOneField:Ut,pleaseEnterNumberRange:Nt,pleaseEnterAValueGreaterThanMin:_t,pleaseEnterAValueLessThanMax:Tt,numberRangeSetError:Pt,stringRangeError:Vt,attachmentMaxSize:kt,pleaseEnterTotalScoreSetting:Gt,theTotalScoreMustNotBeLessThan1:Ht,scoreDefaultValueRange:zt,attachmentLimitError:qt,PleaseReselectTheOptionalQuantity:Ot,TheMaximumLengthIsGreaterThanTheMinimumLength:jt,TheMinimumLengthIsGreaterThanTheMaximumLength:Kt,PleaseSelectTheCorrectOptionSettings:Wt,optionIdIsRepeat:Xt,optionIsRequired:Qt,pleaseEnterDataCode:Jt,pleaseEnterValueFieldCode:Zt,pleaseEnterSvcCode:Yt,pleaseBindAtLeastOneDisplayValue:en,pleaseSelectProvince:un,pleaseSelectCity:tn,pleaseSelectDistrict:nn,limitRowsCannotBeLessThan0:an,TheNumberOfRowsCannotBeLessThanMinRows:rn,pleaseEnterColumnWidth:ln,pleaseSetTheLogicalRelationshipOfAllRuleConditions:sn,pleaseCompleteAllRulesAndConditions:on,pleaseSelectControl:cn,pleaseSelectDashboard:En,theViewNameCannotBeEmpty:Bn,pleaseSelectOcrType:hn,pleaseSelectAtLeastOneFieldToFillIn:An,pleaseChooseAtLeastOne:Fn,pleaseEnterButtonContent:mn,pleaseEnterDataCodeInDataSetting:pn,pleaseEnterValueFieldCodeInDataSetting:fn,pleaseEnterSvcCodeInDataSetting:vn,pleaseBindAtLeastOneDisplayValueInDataSetting:dn,rootNodeIsRequiredInDataSetting:gn,pleaseEnterMaxHeight:Dn,pleaseEnter:Cn,pleaseEnterWatermark:bn,pleaseEnterFileName:Sn,pleaseUploadAtLeastOnePrintTemplate:In,pleaseAssignBusiness:yn,pleaseAssignExternal:Mn},wn={zhCN:iu,enUS:pt,jaJP:$n},R;(function(e){e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable"})(R||(R={}));var L;(function(e){e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN"})(L||(L={}));var Rn="zh-CN",Ln=function(){};function p(e,u,t){return u in e?Object.defineProperty(e,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[u]=t,e}var x;(function(e){e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search"})(x||(x={}));var A;(function(e){e.TITLE="title",e.LINK="link",e.BUTTON="button",e.DIVIDER="divider",e.TEXT="text",e.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",e.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",e.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",e.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",e.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",e.EXPORT_LIST_BUTTON="list-page-btn-export-list",e.LIST_SELECT_BUTTON="list-select-button",e.FORM_SELECT_BUTTON="form-select-button",e.LIST_VIEW_SELECT="list-view-select",e.TEXT_OCR_BUTTON="text-ocr-button",e.INVOICE_CHECK_BUTTON="invoice-check-button",e.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",e.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",e.VARCHAR_COLUMN="varchar-column",e.TEXT_COLUMN="text-column",e.DECIMAL_COLUMN="decimal-column",e.TIMESCOPE_COLUMN="timescope-column",e.TIMESTAMP_COLUMN="timestamp-column",e.ARRAY_COLUMN="array-column",e.DEPARTMENT_COLUMN="department-column",e.AUTO_NUMBER_COLUMN="auto-number-column",e.FILE_COLUMN="file-column",e.IMAGE_COLUMN="image-column",e.PEOPLE_COLUMN="people-column",e.LOCATION_COLUMN="location-column",e.CUSTOM_COLUMN="custom-column",e.ORDER_COLUMN="order-column",e.OPERATION_COLUMN="operation-column",e.EMPLOYEE_COLUMN="employee-column",e.ADDRESS="address",e.AMOUNT="amount",e.ATTACHMENT="attachment",e.AUTO_NUMBER="auto-number",e.CALC="calc",e.CHECKBOX="checkbox",e.DATE_PICKER="date-picker",e.DATE_RANGE="date-range",e.DEPARTMENT="department",e.EMPLOYEE="employee",e.IMAGE="image",e.INPUT="input",e.NUMBER="number",e.RADIO="radio",e.RICH_TEXT="rich-text",e.SCORE="score",e.SEARCH_DATE_RANGE="search-date-range",e.SEARCH_NUMBER_RANGE="search-number-range",e.SEARCH_INPUT="search-input",e.SELECT="select",e.SELECT_MULTIPLE="select-multiple",e.SELECT_RELATION="select-relation",e.VUE_FORM_ITEM="vue-form-item",e.TEXTAREA="textarea",e.EMAIL="email",e.FOOTER="footer",e.HEADER="header",e.ID_CARD="id-card",e.MOBILE="mobile",e.PHONE="phone",e.RADIO_IMAGE="radio-image",e.ELECTRONIC_SIGNATURE="electronic-signature",e.WPS="wps",e.CARD_GROUP="card-group",e.COL="col",e.GRID="grid",e.GRID_ROW="grid-row",e.GRID_TABLE_COLUMN="grid-table-column",e.ROW="row",e.TWO_COLUMNS="two-columns",e.SUBTABLE_COLUMN="subtable-column",e.SUBTABLE_ROW="subtable-row",e.TAB="tab",e.TAB_PANE="tab-pane",e.TOOLBOX="toolbox",e.DATA_VIEW="data-view",e.LIST_VIEW="list-view",e.SUBTABLE="subtable",e.GRID_TABLE="grid-table",e.SIMPLE_SEARCH="simple-search",e.PAGINATION="pagination",e.CHECKBOX_IMAGE="checkbox-image",e.DASHBOARD="dashboard",e.TREE="tree",e.EMPLOYEE2="employee2",e.DEPARTMENT2="department2"})(A||(A={}));var F;(function(e){e.VARCHAR="varchar",e.TEXT="text",e.ARRAY="array",e.ADDRESS="location",e.DECIMAL="decimal",e.DECIMAL_RANGE="decimal_range",e.TIMESTAMP="timestamp",e.EMPLOYEES="people",e.DEPARTMENTS="department",e.MONEY="money",e.TIMESCOPE="timescope",e.FILE="file",e.IMAGE="image",e.AUTO_NUMBER="auto_number",e.CALC="calc",e.RELATION="relation",e.LIST="list",e.RELATION_FIELD="relation-field",e.REFERENCE_FIELD="reference-field",e.CALC_FIELD="calc",e.JSON="json",e.BIGINT="bigint",e.ANY="ANY",e.ENCRYPTED_FIELD="encrypted_field"})(F||(F={}));var m;m={},p(m,F.ARRAY,A.ARRAY_COLUMN),p(m,F.AUTO_NUMBER,A.AUTO_NUMBER_COLUMN),p(m,F.DECIMAL,A.DECIMAL_COLUMN),p(m,F.DEPARTMENTS,A.DEPARTMENT_COLUMN),p(m,F.FILE,A.FILE_COLUMN),p(m,F.IMAGE,A.IMAGE_COLUMN),p(m,F.ADDRESS,A.LOCATION_COLUMN),p(m,F.EMPLOYEES,A.EMPLOYEE_COLUMN),p(m,F.TEXT,A.TEXT_COLUMN),p(m,F.TIMESCOPE,A.TIMESCOPE_COLUMN),p(m,F.TIMESTAMP,A.TIMESTAMP_COLUMN),p(m,F.VARCHAR,A.VARCHAR_COLUMN),p(m,F.RELATION,A.VARCHAR_COLUMN);var U;(function(e){e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATETIME="datetime"})(U||(U={}));function xn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Un(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}function Nn(){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(e){return!1}}function S(e,u,t){return Nn()?S=Reflect.construct:S=function(a,o,s){var h=[null];h.push.apply(h,o);var d=Function.bind.apply(a,h),l=new d;return s&&D(l,s.prototype),l},S.apply(null,arguments)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},g(e)}function _n(e,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(u&&u.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),u&&D(e,u)}function Tn(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Pn(e,u){return u&&(Vn(u)==="object"||typeof u=="function")?u:xn(e)}function D(e,u){return D=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},D(e,u)}var Vn=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function M(e){var u=typeof Map=="function"?new Map:void 0;return M=function(n){if(n===null||!Tn(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof u!="undefined"){if(u.has(n))return u.get(n);u.set(n,a)}function a(){return S(n,arguments,g(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),D(a,n)},M(e)}function kn(){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(e){return!1}}function Gn(e){var u=kn();return function(){var n=g(e),a;if(u){var o=g(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return Pn(this,a)}}function Hn(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var zn=function(e){_n(t,e);var u=Gn(t);function t(n){Un(this,t);var a;return a=u.call(this,n),a.name="\u{1F4A5} Driven Error",a.message=n?Hn(n):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",a}return t}(M(Error));function qn(e){throw new zn(e)}var On=Object.prototype.toString;function N(e,u){return On.call(e)==="[object "+u+"]"}function jn(e){return N(e,"String")}function Kn(e){return N(e,"Promise")}var Wn=function(){function e(u){var t,n;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((n=(t=u.messages)!==null&&t!==void 0?t:this.getPreImport(u.locale))!==null&&n!==void 0?n:{}),u.variableRegExp&&(this.variableRegExp=u.variableRegExp),this.setLocale(u.locale)}return e.prototype.setLocale=function(u){var t=this;this.locale=u,this._messageCache.clear();var n=this.getMessageData();Kn(n)?n.then(function(a){t._messageCache.clear(),t.messages[t.localeInMessageKey]=a}):this.messages[this.localeInMessageKey]=n},e.prototype.getMessageData=function(){var u=this._messages[this.localeInMessageKey];return typeof u=="function"?u():u},e.prototype.translate=function(u,t,n){var a=this.getMessage(u);return a?this.formatMessage(a,n):this.formatMessage(t,n)},e.prototype.getMessage=function(u){if(this._messageCache.has(u))return this._messageCache.get(u);var t=this.getPathArray(u),n=t.reduce(function(a,o,s,h){if(a!==void 0){var d=a[o];if(!(s===h.length-1&&!jn(d)))return d}},this.message);return this._messageCache.set(u,n),n},e.prototype.formatMessage=function(u,t){return t?u.replace(this.variableRegExp,function(n,a){var o=t[a];return o!==void 0?String(o):n}):u},e.prototype.getPreImport=function(u){var t;if(window.okI18nPreImport){var n=this.getLocaleInMessageKey(u);return window.okI18nPreImport.hasOwnProperty(n)?window.okI18nPreImport:(t={},t[n]=window.okI18nPreImport,t)}},e.prototype.getPathArray=function(u){return u.split(".")},e.prototype.getLocaleInMessageKey=function(u){return u.replace(/-/g,"")},Object.defineProperty(e.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){var u;return(u=this.messages[this.localeInMessageKey])!==null&&u!==void 0?u:{}},enumerable:!1,configurable:!0}),e}();function Xn(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}var _=function(){function e(){Xn(this,e)}return e.getMessage=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(t,"",n)},e.resetI18n=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rn;return new Wn({locale:t,messages:wn})},e.setLocale=function(t){return this.$i18n.setLocale(t)},e}();_.$i18n=_.resetI18n();var Qn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Jn={exports:{}};(function(e){(function(u){var t=function(r,i,f){if(!l(i)||ca(i)||Ea(i)||Ba(i)||d(i))return i;var v,b=0,q=0;if(C(i))for(v=[],q=i.length;b<q;b++)v.push(t(r,i[b],f));else{v={};for(var w in i)Object.prototype.hasOwnProperty.call(i,w)&&(v[r(w,f)]=t(r,i[w],f))}return v},n=function(r,i){i=i||{};var f=i.separator||"_",v=i.split||/(?=[A-Z])/;return r.split(v).join(f)},a=function(r){return ha(r)?r:(r=r.replace(/[\-_\s]+(.)?/g,function(i,f){return f?f.toUpperCase():""}),r.substr(0,1).toLowerCase()+r.substr(1))},o=function(r){var i=a(r);return i.substr(0,1).toUpperCase()+i.substr(1)},s=function(r,i){return n(r,i).toLowerCase()},h=Object.prototype.toString,d=function(r){return typeof r=="function"},l=function(r){return r===Object(r)},C=function(r){return h.call(r)=="[object Array]"},ca=function(r){return h.call(r)=="[object Date]"},Ea=function(r){return h.call(r)=="[object RegExp]"},Ba=function(r){return h.call(r)=="[object Boolean]"},ha=function(r){return r=r-0,r===r},$=function(r,i){var f=i&&"process"in i?i.process:i;return typeof f!="function"?r:function(v,b){return f(v,r,b)}},z={camelize:a,decamelize:s,pascalize:o,depascalize:s,camelizeKeys:function(r,i){return t($(a,i),r)},decamelizeKeys:function(r,i){return t($(s,i),r,i)},pascalizeKeys:function(r,i){return t($(o,i),r)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=z:u.humps=z})(Qn)})(Jn);function T(e){return Object.prototype.toString.call(e)==="[object Object]"}class P{constructor(u){var t,n,a;this.type=u.type,this.label=u.label,this.key=u.key,this.component=u.component,this.effect=(t=u.effect)!=null?t:{},this.scopeEffect=(n=u.scopeEffect)!=null?n:Ln,this.defaultValue=u.defaultValue,this.validator=u.validator,this.props=(a=u.props)!=null?a:new E,this.effectKeys=Object.keys(this.effect)}filterEffects(u){return u===""?Object.values(this.effect):this.effectKeys.filter(t=>new RegExp(`^${t}(\\.\\w+)*$`).test(u)).map(t=>this.effect[t])}callEffectFn(u,t){try{const n=u.apply(null,t);T(n)&&Object.assign(this.props,n)}catch(n){qn(`effect error
2
+ ${n}`)}}callEffect(u,...t){this.filterEffects(u).forEach(n=>this.callEffectFn(n,t))}callScopeEffect(...u){this.callEffectFn(this.scopeEffect,u)}}class V{constructor(u){var t,n;this.type="group",this.title=(t=u.title)!=null?t:"",this.required=(n=u.required)!=null?n:!1,this.items=u.items,this.tips=u.tips}}function k(e){return"type"in e&&e.type==="tab"}class G{constructor(u){this.type="tab",this.title=u.title,this.items=u.items}}class Zn extends E{constructor(u){super(u),T(u)&&Object.entries(u).forEach(([t,n])=>{this[t]=n})}}class Yn extends E{constructor(u){var t,n,a,o;super(u),this.maxLength=(t=u==null?void 0:u.maxLength)!=null?t:"",this.minLength=(n=u==null?void 0:u.minLength)!=null?n:"",this.placeholder=(a=u==null?void 0:u.placeholder)!=null?a:"",this.i18n=(o=u==null?void 0:u.i18n)!=null?o:!1}}class ea extends E{constructor(u){var t,n,a;super(u),this.max=(t=u==null?void 0:u.max)!=null?t:"",this.min=(n=u==null?void 0:u.min)!=null?n:"",this.placeholder=(a=u==null?void 0:u.placeholder)!=null?a:""}}class ua extends E{constructor(u){var t,n,a;super(u),this.showType=(t=u==null?void 0:u.showType)!=null?t:"switch",this.tips=(n=u==null?void 0:u.tips)!=null?n:"",this.disabled=(a=u==null?void 0:u.disabled)!=null?a:!1}}class ta extends E{constructor(u){var t;super(u),this.options=(t=u==null?void 0:u.options)!=null?t:[]}}class na extends E{constructor(u){var t,n;super(u),this.placeholder=(t=u==null?void 0:u.placeholder)!=null?t:"",this.options=(n=u==null?void 0:u.options)!=null?n:[]}}class aa extends E{constructor(u){var t,n;super(u),this.options=(t=u==null?void 0:u.options)!=null?t:[],this.showType=(n=u==null?void 0:u.showType)!=null?n:"outline"}}class ra extends E{constructor(u){var t,n,a,o,s,h;super(u),this.maxLength=(t=u==null?void 0:u.maxLength)!=null?t:"",this.minLength=(n=u==null?void 0:u.minLength)!=null?n:"",this.placeholder=(a=u==null?void 0:u.placeholder)!=null?a:"",this.maxRows=(o=u==null?void 0:u.maxRows)!=null?o:"",this.minRows=(s=u==null?void 0:u.minRows)!=null?s:"",this.i18n=(h=u==null?void 0:u.i18n)!=null?h:!1}}function ia(e,u){switch(e){case"input":return new Yn(u);case"textarea":return new ra(u);case"input-number":return new ea(u);case"switch":return new ua(u);case"radio":return new aa(u);case"checkbox":return new ta(u);case"select":return new na(u);default:return new Zn(u)}}function la(e){return function(u){const t=e.get(u);if(!!t)return new P(y(I({},t),{props:ia(t.component,"props"in t?t.props:void 0)}))}}function sa(e){const u=e.fields.reduce((a,o)=>(a.set(o.key,o),a),new Map);function t(a){return new V(y(I({},a),{items:a.items.map(la(u)).filter(Boolean)}))}function n(a){return a.map(t)}return e.groups.map(a=>k(a)?new G(y(I({},a),{items:n(a.items)})):t(a))}function H(){return[{label:"\u9690\u85CF",key:"isHide",type:"boolean",component:"switch"},{key:"superSetting",component:"super-setting"},{key:"style.width",component:"styleComponent",props:{configKey:"style.widthConfig",options:["px","%","fill","hug"]},scopeEffect(e,u){const{oldParent:t,newParent:n,instance:a}=u;if((t==null?void 0:t.type)==="advanced-container"&&n.type==="positioning-container"&&(e.setInstance(a,"style.width",""),e.setInstance(a,"style.widthConfig","fill")),n)return{visible:n.type==="advanced-container"}}},{key:"style.height",component:"styleComponent",props:{configKey:"style.heightConfig",options:["px","%","fill","hug"]},scopeEffect(e,u){const{oldParent:t,newParent:n,instance:a}=u;if((t==null?void 0:t.type)==="advanced-container"&&n.type==="positioning-container"&&(e.setInstance(a,"style.height",""),e.setInstance(a,"style.heightConfig","fill")),u.newParent)return{visible:u.newParent.type==="advanced-container"}}}]}function oa(e){return[...H(),{type:"DataBind",key:"dataBind",component:"data-bind",defaultValue:e==null?void 0:e.dataBind},{key:"caption",type:"string",component:"input",props:{maxLength:80,i18n:!0},defaultValue:e==null?void 0:e.caption,validator(u){if(!u)return"\u6807\u9898\u5FC5\u586B"}},{label:"\u9690\u85CF\u6807\u9898",key:"isHideCaption",type:"boolean",component:"switch",defaultValue:e==null?void 0:e.isHideCaption,props:{showType:"checkbox"},scopeEffect(u,t){var n,a;if(((n=t.current)==null?void 0:n.type)!==((a=t.from)==null?void 0:a.type))return t.current.type==="subtable"&&u.setInstance(t.control,"isHideCaption",!0),{visible:t.current.type!=="subtable"}}},{key:"labelPosition",type:"string",component:"radio",defaultValue:e==null?void 0:e.labelPosition,props:{showType:"solid",options:[{label:"\u4E0A\u4E0B\u5E03\u5C40",value:"top"},{label:"\u5DE6\u53F3\u5E03\u5C40",value:"left"}]}},{key:"defaultState",type:"string",component:"radio",defaultValue:e==null?void 0:e.defaultState,props:{showType:"solid",options:[{label:"\u666E\u901A",value:"default"},{label:"\u53EA\u8BFB",value:"readonly"}]}},{label:"\u5FC5\u586B",key:"required",type:"boolean",component:"switch",defaultValue:e==null?void 0:e.required},{label:"\u63D0\u793A\u6587\u5B57",key:"placeholder",type:"string",component:"input",defaultValue:e==null?void 0:e.placeholder,props:{maxLength:80,i18n:!0}}]}c.Group=V,c.Setting=P,c.Tab=G,c.createBaseFields=H,c.createFormBaseFields=oa,c.defineInstance=B,c.initSettings=sa,c.isTabSchema=k,Object.defineProperty(c,"__esModule",{value:!0})});
@@ -1,2 +1,2 @@
1
- import { FieldSchema } from '../defineInstance';
2
- export declare function createBaseFields(): FieldSchema[];
1
+ import { FieldSchema } from '../defineInstance';
2
+ export declare function createBaseFields(): FieldSchema[];
@@ -1,3 +1,3 @@
1
- import { BaseControlProperty, DeepPartial } from '@byteluck-fe/model-driven-core';
2
- import { FieldSchema } from '../defineInstance';
3
- export declare function createFormBaseFields(defaultValues?: DeepPartial<BaseControlProperty>): FieldSchema[];
1
+ import { BaseControlProperty, DeepPartial } from '@byteluck-fe/model-driven-core';
2
+ import { FieldSchema } from '../defineInstance';
3
+ export declare function createFormBaseFields(defaultValues?: DeepPartial<BaseControlProperty>): FieldSchema[];
@@ -1,2 +1,2 @@
1
- export * from './createBaseFields';
2
- export * from './createFormBaseFields';
1
+ export * from './createBaseFields';
2
+ export * from './createFormBaseFields';
@@ -1,79 +1,79 @@
1
- import { BaseSchema, GroupSchema } from './schema';
2
- import { InputProps } from './props/input';
3
- import { InputNumberProps } from './props/input-number';
4
- import { SwitchProps } from './props/switch';
5
- import { SelectProps } from './props/select';
6
- import { CheckboxProps } from './props/checkbox';
7
- import { RadioProps } from './props/radio';
8
- import { TextareaProps } from './props/textarea';
9
- import { CustomProps } from './props/custom';
10
- import { TabSchema } from './schema/tab';
11
- import { CustomEventItem, InnerEventCode } from '@byteluck-fe/model-driven-shared';
12
- interface InputSchema extends BaseSchema<InputProps> {
13
- /**
14
- * 输入框
15
- * */
16
- component: 'input';
17
- props?: Partial<InputProps>;
18
- }
19
- interface InputNumberSchema extends BaseSchema<InputNumberProps> {
20
- /**
21
- * 数字输入框
22
- * */
23
- component: 'input-number';
24
- props?: Partial<InputNumberProps>;
25
- }
26
- interface TextareaSchema extends BaseSchema<TextareaProps> {
27
- /**
28
- * 长文本输入框
29
- * */
30
- component: 'textarea';
31
- props?: Partial<TextareaProps>;
32
- }
33
- interface SwitchSchema extends BaseSchema<SwitchProps> {
34
- /**
35
- * 切换
36
- * */
37
- component: 'switch';
38
- props?: Partial<SwitchProps>;
39
- }
40
- interface SelectSchema extends BaseSchema<SelectProps> {
41
- /**
42
- * 下拉单选
43
- * */
44
- component: 'select';
45
- props?: Partial<SelectProps>;
46
- }
47
- interface CheckboxSchema extends BaseSchema<CheckboxProps> {
48
- /**
49
- * 多选框
50
- * */
51
- component: 'checkbox';
52
- props?: Partial<CheckboxProps>;
53
- }
54
- interface RadioSchema extends BaseSchema<RadioProps> {
55
- /**
56
- * 单选框
57
- * */
58
- component: 'radio';
59
- props?: Partial<RadioProps>;
60
- }
61
- interface CustomSchema extends BaseSchema<CustomProps> {
62
- component: string;
63
- props?: Partial<CustomProps>;
64
- }
65
- export type SettingSchemas = InputSchema | InputNumberSchema | TextareaSchema | SwitchSchema | SelectSchema | CheckboxSchema | RadioSchema | CustomSchema;
66
- export interface RuntimeValidator {
67
- (props: any, value: unknown, i18n: string): string | boolean | void;
68
- }
69
- export type FieldSchema = SettingSchemas | BaseSchema<{}>;
70
- export type GroupsSchema = GroupSchema[] | TabSchema[];
71
- export interface DefineInstanceParams {
72
- fields: FieldSchema[];
73
- groups: GroupsSchema;
74
- runtimeValidator?: RuntimeValidator;
75
- events?: InnerEventCode[];
76
- customEvents?: CustomEventItem[];
77
- }
78
- export declare function defineInstance(params: DefineInstanceParams): DefineInstanceParams;
79
- export {};
1
+ import { BaseSchema, GroupSchema } from './schema';
2
+ import { InputProps } from './props/input';
3
+ import { InputNumberProps } from './props/input-number';
4
+ import { SwitchProps } from './props/switch';
5
+ import { SelectProps } from './props/select';
6
+ import { CheckboxProps } from './props/checkbox';
7
+ import { RadioProps } from './props/radio';
8
+ import { TextareaProps } from './props/textarea';
9
+ import { CustomProps } from './props/custom';
10
+ import { TabSchema } from './schema/tab';
11
+ import { CustomEventItem, InnerEventCode } from '@byteluck-fe/model-driven-shared';
12
+ interface InputSchema extends BaseSchema<InputProps> {
13
+ /**
14
+ * 输入框
15
+ * */
16
+ component: 'input';
17
+ props?: Partial<InputProps>;
18
+ }
19
+ interface InputNumberSchema extends BaseSchema<InputNumberProps> {
20
+ /**
21
+ * 数字输入框
22
+ * */
23
+ component: 'input-number';
24
+ props?: Partial<InputNumberProps>;
25
+ }
26
+ interface TextareaSchema extends BaseSchema<TextareaProps> {
27
+ /**
28
+ * 长文本输入框
29
+ * */
30
+ component: 'textarea';
31
+ props?: Partial<TextareaProps>;
32
+ }
33
+ interface SwitchSchema extends BaseSchema<SwitchProps> {
34
+ /**
35
+ * 切换
36
+ * */
37
+ component: 'switch';
38
+ props?: Partial<SwitchProps>;
39
+ }
40
+ interface SelectSchema extends BaseSchema<SelectProps> {
41
+ /**
42
+ * 下拉单选
43
+ * */
44
+ component: 'select';
45
+ props?: Partial<SelectProps>;
46
+ }
47
+ interface CheckboxSchema extends BaseSchema<CheckboxProps> {
48
+ /**
49
+ * 多选框
50
+ * */
51
+ component: 'checkbox';
52
+ props?: Partial<CheckboxProps>;
53
+ }
54
+ interface RadioSchema extends BaseSchema<RadioProps> {
55
+ /**
56
+ * 单选框
57
+ * */
58
+ component: 'radio';
59
+ props?: Partial<RadioProps>;
60
+ }
61
+ interface CustomSchema extends BaseSchema<CustomProps> {
62
+ component: string;
63
+ props?: Partial<CustomProps>;
64
+ }
65
+ export type SettingSchemas = InputSchema | InputNumberSchema | TextareaSchema | SwitchSchema | SelectSchema | CheckboxSchema | RadioSchema | CustomSchema;
66
+ export interface RuntimeValidator {
67
+ (props: any, value: unknown, i18n: string): string | boolean | void;
68
+ }
69
+ export type FieldSchema = SettingSchemas | BaseSchema<{}>;
70
+ export type GroupsSchema = GroupSchema[] | TabSchema[];
71
+ export interface DefineInstanceParams {
72
+ fields: FieldSchema[];
73
+ groups: GroupsSchema;
74
+ runtimeValidator?: RuntimeValidator;
75
+ events?: InnerEventCode[];
76
+ customEvents?: CustomEventItem[];
77
+ }
78
+ export declare function defineInstance(params: DefineInstanceParams): DefineInstanceParams;
79
+ export {};
@@ -1,4 +1,4 @@
1
- export * from './defineInstance';
2
- export * from './initSettings';
3
- export * from './schema';
4
- export * from './default';
1
+ export * from './defineInstance';
2
+ export * from './initSettings';
3
+ export * from './schema';
4
+ export * from './default';
@@ -1,14 +1,14 @@
1
- import { Group } from './schema';
2
- import { CustomProps } from './props/custom';
3
- import { InputProps } from './props/input';
4
- import { InputNumberProps } from './props/input-number';
5
- import { SwitchProps } from './props/switch';
6
- import { DefineInstanceParams } from './defineInstance';
7
- import { CheckboxProps } from './props/checkbox';
8
- import { SelectProps } from './props/select';
9
- import { RadioProps } from './props/radio';
10
- import { TextareaProps } from './props/textarea';
11
- import { Tab } from './schema/tab';
12
- export type Props = CustomProps | InputProps | TextareaProps | InputNumberProps | SwitchProps | CheckboxProps | RadioProps | SelectProps;
13
- export type Settings = Group[] | Tab[];
14
- export declare function initSettings(params: DefineInstanceParams): Settings;
1
+ import { Group } from './schema';
2
+ import { CustomProps } from './props/custom';
3
+ import { InputProps } from './props/input';
4
+ import { InputNumberProps } from './props/input-number';
5
+ import { SwitchProps } from './props/switch';
6
+ import { DefineInstanceParams } from './defineInstance';
7
+ import { CheckboxProps } from './props/checkbox';
8
+ import { SelectProps } from './props/select';
9
+ import { RadioProps } from './props/radio';
10
+ import { TextareaProps } from './props/textarea';
11
+ import { Tab } from './schema/tab';
12
+ export type Props = CustomProps | InputProps | TextareaProps | InputNumberProps | SwitchProps | CheckboxProps | RadioProps | SelectProps;
13
+ export type Settings = Group[] | Tab[];
14
+ export declare function initSettings(params: DefineInstanceParams): Settings;
@@ -1,16 +1,16 @@
1
- export declare class BaseProps {
2
- /**
3
- * 显示隐藏
4
- * */
5
- visible: boolean;
6
- /**
7
- * 开启表达式
8
- * */
9
- expression: boolean;
10
- constructor(props?: Partial<BaseProps>);
11
- get isAtomicComponent(): boolean;
12
- }
13
- export interface OptionItem {
14
- label: string;
15
- value: string;
16
- }
1
+ export declare class BaseProps {
2
+ /**
3
+ * 显示隐藏
4
+ * */
5
+ visible: boolean;
6
+ /**
7
+ * 开启表达式
8
+ * */
9
+ expression: boolean;
10
+ constructor(props?: Partial<BaseProps>);
11
+ get isAtomicComponent(): boolean;
12
+ }
13
+ export interface OptionItem {
14
+ label: string;
15
+ value: string;
16
+ }
@@ -1,5 +1,5 @@
1
- import { BaseProps, OptionItem } from './base';
2
- export declare class CheckboxProps extends BaseProps {
3
- options: OptionItem[];
4
- constructor(props?: Partial<CheckboxProps>);
5
- }
1
+ import { BaseProps, OptionItem } from './base';
2
+ export declare class CheckboxProps extends BaseProps {
3
+ options: OptionItem[];
4
+ constructor(props?: Partial<CheckboxProps>);
5
+ }
@@ -1,5 +1,5 @@
1
- import { BaseProps } from './base';
2
- export declare class CustomProps extends BaseProps {
3
- [key: string]: unknown;
4
- constructor(props?: Partial<CustomProps>);
5
- }
1
+ import { BaseProps } from './base';
2
+ export declare class CustomProps extends BaseProps {
3
+ [key: string]: unknown;
4
+ constructor(props?: Partial<CustomProps>);
5
+ }
@@ -1,7 +1,7 @@
1
- import { BaseProps } from './base';
2
- export declare class InputNumberProps extends BaseProps {
3
- max: number | '';
4
- min: number | '';
5
- placeholder: string;
6
- constructor(props?: Partial<InputNumberProps>);
7
- }
1
+ import { BaseProps } from './base';
2
+ export declare class InputNumberProps extends BaseProps {
3
+ max: number | '';
4
+ min: number | '';
5
+ placeholder: string;
6
+ constructor(props?: Partial<InputNumberProps>);
7
+ }
@@ -1,8 +1,8 @@
1
- import { BaseProps } from './base';
2
- export declare class InputProps extends BaseProps {
3
- maxLength: number | '';
4
- minLength: number | '';
5
- placeholder: string;
6
- i18n: boolean;
7
- constructor(props?: Partial<InputProps>);
8
- }
1
+ import { BaseProps } from './base';
2
+ export declare class InputProps extends BaseProps {
3
+ maxLength: number | '';
4
+ minLength: number | '';
5
+ placeholder: string;
6
+ i18n: boolean;
7
+ constructor(props?: Partial<InputProps>);
8
+ }
@@ -1,6 +1,6 @@
1
- import { BaseProps, OptionItem } from './base';
2
- export declare class RadioProps extends BaseProps {
3
- options: OptionItem[];
4
- showType: 'solid' | 'outline';
5
- constructor(props?: Partial<RadioProps>);
6
- }
1
+ import { BaseProps, OptionItem } from './base';
2
+ export declare class RadioProps extends BaseProps {
3
+ options: OptionItem[];
4
+ showType: 'solid' | 'outline';
5
+ constructor(props?: Partial<RadioProps>);
6
+ }
@@ -1,6 +1,6 @@
1
- import { BaseProps, OptionItem } from './base';
2
- export declare class SelectProps extends BaseProps {
3
- placeholder: string;
4
- options: OptionItem[];
5
- constructor(props?: Partial<SelectProps>);
6
- }
1
+ import { BaseProps, OptionItem } from './base';
2
+ export declare class SelectProps extends BaseProps {
3
+ placeholder: string;
4
+ options: OptionItem[];
5
+ constructor(props?: Partial<SelectProps>);
6
+ }
@@ -1,7 +1,7 @@
1
- import { BaseProps } from './base';
2
- export declare class SwitchProps extends BaseProps {
3
- showType: 'switch' | 'checkbox';
4
- tips: string;
5
- disabled: boolean;
6
- constructor(props?: Partial<SwitchProps>);
7
- }
1
+ import { BaseProps } from './base';
2
+ export declare class SwitchProps extends BaseProps {
3
+ showType: 'switch' | 'checkbox';
4
+ tips: string;
5
+ disabled: boolean;
6
+ constructor(props?: Partial<SwitchProps>);
7
+ }
@@ -1,10 +1,10 @@
1
- import { BaseProps } from './base';
2
- export declare class TextareaProps extends BaseProps {
3
- maxLength: number | '';
4
- minLength: number | '';
5
- placeholder: string;
6
- i18n: boolean;
7
- maxRows: number | '';
8
- minRows: number | '';
9
- constructor(props?: Partial<TextareaProps>);
10
- }
1
+ import { BaseProps } from './base';
2
+ export declare class TextareaProps extends BaseProps {
3
+ maxLength: number | '';
4
+ minLength: number | '';
5
+ placeholder: string;
6
+ i18n: boolean;
7
+ maxRows: number | '';
8
+ minRows: number | '';
9
+ constructor(props?: Partial<TextareaProps>);
10
+ }
@@ -1,18 +1,18 @@
1
- import { Setting } from './setting';
2
- export interface GroupSchema {
3
- title?: string;
4
- required?: boolean;
5
- items: string[];
6
- tips?: string;
7
- }
8
- export declare class Group {
9
- type: "group";
10
- title: string;
11
- required: boolean;
12
- items: Setting[];
13
- tips?: string;
14
- fromId?: string;
15
- constructor(schema: Omit<GroupSchema, 'items'> & {
16
- items: Setting[];
17
- });
18
- }
1
+ import { Setting } from './setting';
2
+ export interface GroupSchema {
3
+ title?: string;
4
+ required?: boolean;
5
+ items: string[];
6
+ tips?: string;
7
+ }
8
+ export declare class Group {
9
+ type: "group";
10
+ title: string;
11
+ required: boolean;
12
+ items: Setting[];
13
+ tips?: string;
14
+ fromId?: string;
15
+ constructor(schema: Omit<GroupSchema, 'items'> & {
16
+ items: Setting[];
17
+ });
18
+ }
@@ -1,3 +1,3 @@
1
- export * from './setting';
2
- export * from './group';
3
- export * from './tab';
1
+ export * from './setting';
2
+ export * from './group';
3
+ export * from './tab';
@@ -1,69 +1,69 @@
1
- import { BaseProps } from '../props/base';
2
- export interface EffectFn<Props extends object> {
3
- (driven: any, payload: any): void | Partial<Props>;
4
- }
5
- export type SupportedDataTypes = 'string' | 'boolean' | 'number' | 'object' | 'array' | 'DataBind' | 'DataSourceBind';
6
- export type Validator<P extends any = any, T extends any = any> = (props: P, value: T) => boolean | string | void;
7
- export interface BaseSchema<Props extends object> {
8
- /**
9
- * 数据类型,
10
- * 会根据对应的数据类型生成一个property
11
- * */
12
- type?: SupportedDataTypes;
13
- /**
14
- * 部分component的标题,例如:switch
15
- * */
16
- label?: string;
17
- /**
18
- * 唯一标识符
19
- * 有type字段的时候,key代表生成的property的键
20
- * 有component字段的时候,用于在groups中对应当前component
21
- * 以上两种情况允许同时存在
22
- * */
23
- key: string;
24
- /**
25
- * 控件类型
26
- * */
27
- component?: string;
28
- /**
29
- * property副作用函数
30
- * 执行时机:在选中控件的那一刻以对象的key的顺序触发一次,并在之后property发生改变的时候触发对应的函数
31
- *
32
- * effect对象的key为其它property的key,这个key必须对应一个property,不然永远不会触发,
33
- * 如果这个property是内置对象类型,如DataBind,那也可以是dataBind.fieldCode这样的key
34
- * effect对象的值是一个副作用函数
35
- * */
36
- effect?: Record<string, EffectFn<Props>>;
37
- /**
38
- * 数据作用域副作用函数
39
- * 执行时机:在选中控件的那一刻触发一次,并在之后控件的数据作用域发生变化的时候执行
40
- * */
41
- scopeEffect?: EffectFn<Props>;
42
- /**
43
- * 仅当配置项有type字段,生成一个property的时候生效,代表property的默认值
44
- * */
45
- defaultValue?: unknown;
46
- /**
47
- * 仅当配置项有type字段,校验对应property的值
48
- * */
49
- validator?: Validator;
50
- }
51
- export declare class Setting<Props extends BaseProps = BaseProps> {
52
- type?: SupportedDataTypes;
53
- label?: string;
54
- key: string;
55
- component?: string;
56
- effect: Record<string, EffectFn<BaseProps>>;
57
- scopeEffect: EffectFn<BaseProps>;
58
- defaultValue?: unknown;
59
- validator?: Validator;
60
- props: BaseProps;
61
- private effectKeys;
62
- constructor(schema: BaseSchema<BaseProps> & {
63
- props?: BaseProps;
64
- });
65
- filterEffects(effectKey: string): EffectFn<BaseProps>[];
66
- callEffectFn(effectFn: EffectFn<BaseProps>, args: Parameters<EffectFn<BaseProps>>): void;
67
- callEffect(effectKey: string, ...args: Parameters<EffectFn<BaseProps>>): void;
68
- callScopeEffect(...args: Parameters<EffectFn<BaseProps>>): void;
69
- }
1
+ import { BaseProps } from '../props/base';
2
+ export interface EffectFn<Props extends object> {
3
+ (driven: any, payload: any): void | Partial<Props>;
4
+ }
5
+ export type SupportedDataTypes = 'string' | 'boolean' | 'number' | 'object' | 'array' | 'DataBind' | 'DataSourceBind';
6
+ export type Validator<P extends any = any, T extends any = any> = (props: P, value: T) => boolean | string | void;
7
+ export interface BaseSchema<Props extends object> {
8
+ /**
9
+ * 数据类型,
10
+ * 会根据对应的数据类型生成一个property
11
+ * */
12
+ type?: SupportedDataTypes;
13
+ /**
14
+ * 部分component的标题,例如:switch
15
+ * */
16
+ label?: string;
17
+ /**
18
+ * 唯一标识符
19
+ * 有type字段的时候,key代表生成的property的键
20
+ * 有component字段的时候,用于在groups中对应当前component
21
+ * 以上两种情况允许同时存在
22
+ * */
23
+ key: string;
24
+ /**
25
+ * 控件类型
26
+ * */
27
+ component?: string;
28
+ /**
29
+ * property副作用函数
30
+ * 执行时机:在选中控件的那一刻以对象的key的顺序触发一次,并在之后property发生改变的时候触发对应的函数
31
+ *
32
+ * effect对象的key为其它property的key,这个key必须对应一个property,不然永远不会触发,
33
+ * 如果这个property是内置对象类型,如DataBind,那也可以是dataBind.fieldCode这样的key
34
+ * effect对象的值是一个副作用函数
35
+ * */
36
+ effect?: Record<string, EffectFn<Props>>;
37
+ /**
38
+ * 数据作用域副作用函数
39
+ * 执行时机:在选中控件的那一刻触发一次,并在之后控件的数据作用域发生变化的时候执行
40
+ * */
41
+ scopeEffect?: EffectFn<Props>;
42
+ /**
43
+ * 仅当配置项有type字段,生成一个property的时候生效,代表property的默认值
44
+ * */
45
+ defaultValue?: unknown;
46
+ /**
47
+ * 仅当配置项有type字段,校验对应property的值
48
+ * */
49
+ validator?: Validator;
50
+ }
51
+ export declare class Setting<Props extends BaseProps = BaseProps> {
52
+ type?: SupportedDataTypes;
53
+ label?: string;
54
+ key: string;
55
+ component?: string;
56
+ effect: Record<string, EffectFn<BaseProps>>;
57
+ scopeEffect: EffectFn<BaseProps>;
58
+ defaultValue?: unknown;
59
+ validator?: Validator;
60
+ props: BaseProps;
61
+ private effectKeys;
62
+ constructor(schema: BaseSchema<BaseProps> & {
63
+ props?: BaseProps;
64
+ });
65
+ filterEffects(effectKey: string): EffectFn<BaseProps>[];
66
+ callEffectFn(effectFn: EffectFn<BaseProps>, args: Parameters<EffectFn<BaseProps>>): void;
67
+ callEffect(effectKey: string, ...args: Parameters<EffectFn<BaseProps>>): void;
68
+ callScopeEffect(...args: Parameters<EffectFn<BaseProps>>): void;
69
+ }
@@ -1,15 +1,15 @@
1
- import { Group, GroupSchema } from './group';
2
- export declare function isTabSchema(schema: Record<string, any>): schema is TabSchema;
3
- export interface TabSchema {
4
- type: 'tab';
5
- title: string;
6
- items: GroupSchema[];
7
- }
8
- export declare class Tab {
9
- type: "tab";
10
- title: string;
11
- items: Group[];
12
- constructor(schema: Omit<TabSchema, 'items'> & {
13
- items: Group[];
14
- });
15
- }
1
+ import { Group, GroupSchema } from './group';
2
+ export declare function isTabSchema(schema: Record<string, any>): schema is TabSchema;
3
+ export interface TabSchema {
4
+ type: 'tab';
5
+ title: string;
6
+ items: GroupSchema[];
7
+ }
8
+ export declare class Tab {
9
+ type: "tab";
10
+ title: string;
11
+ items: Group[];
12
+ constructor(schema: Omit<TabSchema, 'items'> & {
13
+ items: Group[];
14
+ });
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-settings",
3
- "version": "1.7.3",
3
+ "version": "1.7.14",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -22,9 +22,9 @@
22
22
  "postpublish": "node ../../scripts/postpublish.js"
23
23
  },
24
24
  "dependencies": {
25
- "@byteluck-fe/model-driven-core": "^1.7.3",
26
- "@byteluck-fe/model-driven-shared": "^1.7.3",
25
+ "@byteluck-fe/model-driven-core": "1.7.14",
26
+ "@byteluck-fe/model-driven-shared": "1.7.14",
27
27
  "tslib": "^2.1.0"
28
28
  },
29
- "gitHead": "e9fe68f49ba42f70edd3df499659028f76968a83"
29
+ "gitHead": "bc52a1c2deeb9d71cc60745d5be531ca030e4e93"
30
30
  }