@byteluck-fe/model-driven-settings 2.3.1-beta.2 → 2.3.1-beta.3

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.
@@ -59,6 +59,6 @@ export function createBaseFields() {
59
59
  };
60
60
  }
61
61
  }
62
- },
62
+ }
63
63
  ];
64
64
  }
@@ -58,8 +58,8 @@ export function createFormBaseFields(defaultValues) {
58
58
  },
59
59
  // 在明细表内隐藏
60
60
  scopeEffect: function scopeEffect(driven, payload) {
61
- var ref, ref1;
62
- if (((ref = payload.current) === null || ref === void 0 ? void 0 : ref.type) !== ((ref1 = payload.from) === null || ref1 === void 0 ? void 0 : ref1.type)) {
61
+ var _payload_current, _payload_from;
62
+ if (((_payload_current = payload.current) === null || _payload_current === void 0 ? void 0 : _payload_current.type) !== ((_payload_from = payload.from) === null || _payload_from === void 0 ? void 0 : _payload_from.type)) {
63
63
  //明细子表内默认开启
64
64
  if (payload.current.type === "subtable") {
65
65
  driven.setInstance(payload.control, "isHideCaption", true);
@@ -85,7 +85,7 @@ export function createFormBaseFields(defaultValues) {
85
85
  {
86
86
  label: "左右布局",
87
87
  value: "left"
88
- },
88
+ }
89
89
  ]
90
90
  }
91
91
  },
@@ -104,7 +104,7 @@ export function createFormBaseFields(defaultValues) {
104
104
  {
105
105
  label: "只读",
106
106
  value: "readonly"
107
- },
107
+ }
108
108
  ]
109
109
  }
110
110
  },
@@ -125,6 +125,6 @@ export function createFormBaseFields(defaultValues) {
125
125
  maxLength: 80,
126
126
  i18n: true
127
127
  }
128
- },
128
+ }
129
129
  ]);
130
130
  }
@@ -21,10 +21,10 @@ export var BaseProps = /*#__PURE__*/ function() {
21
21
  "use strict";
22
22
  function BaseProps(props) {
23
23
  _classCallCheck(this, BaseProps);
24
- var ref;
25
- this.visible = (ref = props === null || props === void 0 ? void 0 : props.visible) !== null && ref !== void 0 ? ref : true;
26
- var ref1;
27
- this.expression = (ref1 = props === null || props === void 0 ? void 0 : props.expression) !== null && ref1 !== void 0 ? ref1 : false;
24
+ var _props_visible;
25
+ this.visible = (_props_visible = props === null || props === void 0 ? void 0 : props.visible) !== null && _props_visible !== void 0 ? _props_visible : true;
26
+ var _props_expression;
27
+ this.expression = (_props_expression = props === null || props === void 0 ? void 0 : props.expression) !== null && _props_expression !== void 0 ? _props_expression : false;
28
28
  }
29
29
  _createClass(BaseProps, [
30
30
  {
@@ -78,8 +78,8 @@ export var CheckboxProps = /*#__PURE__*/ function(BaseProps) {
78
78
  _classCallCheck(this, CheckboxProps);
79
79
  var _this;
80
80
  _this = _super.call(this, props);
81
- var ref;
82
- _this.options = (ref = props === null || props === void 0 ? void 0 : props.options) !== null && ref !== void 0 ? ref : [];
81
+ var _props_options;
82
+ _this.options = (_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [];
83
83
  return _this;
84
84
  }
85
85
  return CheckboxProps;
@@ -78,12 +78,12 @@ export var InputNumberProps = /*#__PURE__*/ function(BaseProps) {
78
78
  _classCallCheck(this, InputNumberProps);
79
79
  var _this;
80
80
  _this = _super.call(this, props);
81
- var ref;
82
- _this.max = (ref = props === null || props === void 0 ? void 0 : props.max) !== null && ref !== void 0 ? ref : "";
83
- var ref1;
84
- _this.min = (ref1 = props === null || props === void 0 ? void 0 : props.min) !== null && ref1 !== void 0 ? ref1 : "";
85
- var ref2;
86
- _this.placeholder = (ref2 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && ref2 !== void 0 ? ref2 : "";
81
+ var _props_max;
82
+ _this.max = (_props_max = props === null || props === void 0 ? void 0 : props.max) !== null && _props_max !== void 0 ? _props_max : "";
83
+ var _props_min;
84
+ _this.min = (_props_min = props === null || props === void 0 ? void 0 : props.min) !== null && _props_min !== void 0 ? _props_min : "";
85
+ var _props_placeholder;
86
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
87
87
  return _this;
88
88
  }
89
89
  return InputNumberProps;
@@ -78,14 +78,14 @@ export var InputProps = /*#__PURE__*/ function(BaseProps) {
78
78
  _classCallCheck(this, InputProps);
79
79
  var _this;
80
80
  _this = _super.call(this, props);
81
- var ref;
82
- _this.maxLength = (ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && ref !== void 0 ? ref : "";
83
- var ref1;
84
- _this.minLength = (ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && ref1 !== void 0 ? ref1 : "";
85
- var ref2;
86
- _this.placeholder = (ref2 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && ref2 !== void 0 ? ref2 : "";
87
- var ref3;
88
- _this.i18n = (ref3 = props === null || props === void 0 ? void 0 : props.i18n) !== null && ref3 !== void 0 ? ref3 : false;
81
+ var _props_maxLength;
82
+ _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : "";
83
+ var _props_minLength;
84
+ _this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : "";
85
+ var _props_placeholder;
86
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
87
+ var _props_i18n;
88
+ _this.i18n = (_props_i18n = props === null || props === void 0 ? void 0 : props.i18n) !== null && _props_i18n !== void 0 ? _props_i18n : false;
89
89
  return _this;
90
90
  }
91
91
  return InputProps;
@@ -78,10 +78,10 @@ export var RadioProps = /*#__PURE__*/ function(BaseProps) {
78
78
  _classCallCheck(this, RadioProps);
79
79
  var _this;
80
80
  _this = _super.call(this, props);
81
- var ref;
82
- _this.options = (ref = props === null || props === void 0 ? void 0 : props.options) !== null && ref !== void 0 ? ref : [];
83
- var ref1;
84
- _this.showType = (ref1 = props === null || props === void 0 ? void 0 : props.showType) !== null && ref1 !== void 0 ? ref1 : "outline";
81
+ var _props_options;
82
+ _this.options = (_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [];
83
+ var _props_showType;
84
+ _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : "outline";
85
85
  return _this;
86
86
  }
87
87
  return RadioProps;
@@ -78,10 +78,10 @@ export var SelectProps = /*#__PURE__*/ function(BaseProps) {
78
78
  _classCallCheck(this, SelectProps);
79
79
  var _this;
80
80
  _this = _super.call(this, props);
81
- var ref;
82
- _this.placeholder = (ref = props === null || props === void 0 ? void 0 : props.placeholder) !== null && ref !== void 0 ? ref : "";
83
- var ref1;
84
- _this.options = (ref1 = props === null || props === void 0 ? void 0 : props.options) !== null && ref1 !== void 0 ? ref1 : [];
81
+ var _props_placeholder;
82
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
83
+ var _props_options;
84
+ _this.options = (_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [];
85
85
  return _this;
86
86
  }
87
87
  return SelectProps;
@@ -78,12 +78,12 @@ export var SwitchProps = /*#__PURE__*/ function(BaseProps) {
78
78
  _classCallCheck(this, SwitchProps);
79
79
  var _this;
80
80
  _this = _super.call(this, props);
81
- var ref;
82
- _this.showType = (ref = props === null || props === void 0 ? void 0 : props.showType) !== null && ref !== void 0 ? ref : "switch";
83
- var ref1;
84
- _this.tips = (ref1 = props === null || props === void 0 ? void 0 : props.tips) !== null && ref1 !== void 0 ? ref1 : "";
85
- var ref2;
86
- _this.disabled = (ref2 = props === null || props === void 0 ? void 0 : props.disabled) !== null && ref2 !== void 0 ? ref2 : false;
81
+ var _props_showType;
82
+ _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : "switch";
83
+ var _props_tips;
84
+ _this.tips = (_props_tips = props === null || props === void 0 ? void 0 : props.tips) !== null && _props_tips !== void 0 ? _props_tips : "";
85
+ var _props_disabled;
86
+ _this.disabled = (_props_disabled = props === null || props === void 0 ? void 0 : props.disabled) !== null && _props_disabled !== void 0 ? _props_disabled : false;
87
87
  return _this;
88
88
  }
89
89
  return SwitchProps;
@@ -78,18 +78,18 @@ export var TextareaProps = /*#__PURE__*/ function(BaseProps) {
78
78
  _classCallCheck(this, TextareaProps);
79
79
  var _this;
80
80
  _this = _super.call(this, props);
81
- var ref;
82
- _this.maxLength = (ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && ref !== void 0 ? ref : "";
83
- var ref1;
84
- _this.minLength = (ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && ref1 !== void 0 ? ref1 : "";
85
- var ref2;
86
- _this.placeholder = (ref2 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && ref2 !== void 0 ? ref2 : "";
87
- var ref3;
88
- _this.maxRows = (ref3 = props === null || props === void 0 ? void 0 : props.maxRows) !== null && ref3 !== void 0 ? ref3 : "";
89
- var ref4;
90
- _this.minRows = (ref4 = props === null || props === void 0 ? void 0 : props.minRows) !== null && ref4 !== void 0 ? ref4 : "";
91
- var ref5;
92
- _this.i18n = (ref5 = props === null || props === void 0 ? void 0 : props.i18n) !== null && ref5 !== void 0 ? ref5 : false;
81
+ var _props_maxLength;
82
+ _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : "";
83
+ var _props_minLength;
84
+ _this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : "";
85
+ var _props_placeholder;
86
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
87
+ var _props_maxRows;
88
+ _this.maxRows = (_props_maxRows = props === null || props === void 0 ? void 0 : props.maxRows) !== null && _props_maxRows !== void 0 ? _props_maxRows : "";
89
+ var _props_minRows;
90
+ _this.minRows = (_props_minRows = props === null || props === void 0 ? void 0 : props.minRows) !== null && _props_minRows !== void 0 ? _props_minRows : "";
91
+ var _props_i18n;
92
+ _this.i18n = (_props_i18n = props === null || props === void 0 ? void 0 : props.i18n) !== null && _props_i18n !== void 0 ? _props_i18n : false;
93
93
  return _this;
94
94
  }
95
95
  return TextareaProps;
@@ -7,10 +7,10 @@ export var Group = function Group(schema) {
7
7
  "use strict";
8
8
  _classCallCheck(this, Group);
9
9
  this.type = "group";
10
- var _title;
11
- this.title = (_title = schema.title) !== null && _title !== void 0 ? _title : "";
12
- var _required;
13
- this.required = (_required = schema.required) !== null && _required !== void 0 ? _required : false;
10
+ var _schema_title;
11
+ this.title = (_schema_title = schema.title) !== null && _schema_title !== void 0 ? _schema_title : "";
12
+ var _schema_required;
13
+ this.required = (_schema_required = schema.required) !== null && _schema_required !== void 0 ? _schema_required : false;
14
14
  this.items = schema.items;
15
15
  this.tips = schema.tips;
16
16
  };
@@ -13,14 +13,14 @@ export var Setting = /*#__PURE__*/ function() {
13
13
  this.label = schema.label;
14
14
  this.key = schema.key;
15
15
  this.component = schema.component;
16
- var _effect;
17
- this.effect = (_effect = schema.effect) !== null && _effect !== void 0 ? _effect : {};
18
- var _scopeEffect;
19
- this.scopeEffect = (_scopeEffect = schema.scopeEffect) !== null && _scopeEffect !== void 0 ? _scopeEffect : noop;
16
+ var _schema_effect;
17
+ this.effect = (_schema_effect = schema.effect) !== null && _schema_effect !== void 0 ? _schema_effect : {};
18
+ var _schema_scopeEffect;
19
+ this.scopeEffect = (_schema_scopeEffect = schema.scopeEffect) !== null && _schema_scopeEffect !== void 0 ? _schema_scopeEffect : noop;
20
20
  this.defaultValue = schema.defaultValue;
21
21
  this.validator = schema.validator;
22
- var _props;
23
- this.props = (_props = schema.props) !== null && _props !== void 0 ? _props : new BaseProps();
22
+ var _schema_props;
23
+ this.props = (_schema_props = schema.props) !== null && _schema_props !== void 0 ? _schema_props : new BaseProps();
24
24
  // private init
25
25
  this.effectKeys = Object.keys(this.effect);
26
26
  }
package/dist/index.umd.js CHANGED
@@ -1,2 +1,2 @@
1
- var ma=Object.defineProperty,Fa=Object.defineProperties;var fa=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var va=Object.prototype.hasOwnProperty,da=Object.prototype.propertyIsEnumerable;var K=(s,c,l)=>c in s?ma(s,c,{enumerable:!0,configurable:!0,writable:!0,value:l}):s[c]=l,S=(s,c)=>{for(var l in c||(c={}))va.call(c,l)&&K(s,l,c[l]);if(q)for(var l of q(c))da.call(c,l)&&K(s,l,c[l]);return s},I=(s,c)=>Fa(s,fa(c));(function(s,c){typeof exports=="object"&&typeof module!="undefined"?c(exports,require("regenerator-runtime")):typeof define=="function"&&define.amd?define(["exports","regenerator-runtime"],c):(s=typeof globalThis!="undefined"?globalThis:s||self,c(s.modelDrivenSettings={}))})(this,function(s){"use strict";function c(e){return e}class l{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 W="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",X="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",J="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",Q="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",Z="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",Y="{caption}\u5FC5\u586B",ee="\u8BF7\u8F93\u5165\u6807\u9898",ue="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",te="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",ne="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",ae="\u8BF7\u7ED1\u5B9A\u8868\u5355",re="\u8BF7\u7ED1\u5B9A\u5217\u8868",ie="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",se="\u8BF7\u8F93\u5165\u663E\u793A\u503C",le="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",oe="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",ce="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",Ee="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Be="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",he="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Ae="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",pe="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",me="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Fe="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",fe="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",ve="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",de="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",ge="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",De="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Ce="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",be="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",Se="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Ie="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",ye="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Me="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",$e="\u8BF7\u7ED1\u5B9A\u670D\u52A1",we="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Re="\u8BF7\u9009\u62E9\u7701",Le="\u8BF7\u9009\u62E9\u5E02",xe="\u8BF7\u9009\u62E9\u533A",Ue="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Ne="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",_e="\u8BF7\u8F93\u5165\u5217\u5BBD",Te="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Pe="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Ve="\u8BF7\u9009\u62E9\u63A7\u4EF6",Ge="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",ke="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",He="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",ze="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Oe="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",je="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",qe="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Ke="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",We="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Xe="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Je="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Qe="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Ze="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Ye="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",eu="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",uu="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",tu="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",nu="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",au="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",ru="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",iu="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",su={isNotNumber:W,isNotString:X,isNotObject:J,isNotArray:Q,isNotBoolean:Z,runtimeRequired:Y,pleaseEnterCaption:ee,pleaseEnterCaptionTip:ue,pleaseEnterPlaceholder:te,pleaseEnterFieldCode:ne,pleaseEnterForm:ae,pleaseEnterList:re,pleaseEnterProcess:ie,pleaseEnterLabel:se,pleaseEnterValue:le,bizKeyNotBindFiled:oe,pleaseSelectOneField:ce,pleaseEnterNumberRange:Ee,pleaseEnterAValueGreaterThanMin:Be,pleaseEnterAValueLessThanMax:he,numberRangeSetError:Ae,stringRangeError:pe,attachmentMaxSize:me,pleaseEnterTotalScoreSetting:Fe,theTotalScoreMustNotBeLessThan1:fe,scoreDefaultValueRange:ve,attachmentLimitError:de,PleaseReselectTheOptionalQuantity:ge,TheMaximumLengthIsGreaterThanTheMinimumLength:De,TheMinimumLengthIsGreaterThanTheMaximumLength:Ce,PleaseSelectTheCorrectOptionSettings:be,optionIdIsRepeat:Se,optionIsRequired:Ie,pleaseEnterDataCode:ye,pleaseEnterValueFieldCode:Me,pleaseEnterSvcCode:$e,pleaseBindAtLeastOneDisplayValue:we,pleaseSelectProvince:Re,pleaseSelectCity:Le,pleaseSelectDistrict:xe,limitRowsCannotBeLessThan0:Ue,TheNumberOfRowsCannotBeLessThanMinRows:Ne,pleaseEnterColumnWidth:_e,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Te,pleaseCompleteAllRulesAndConditions:Pe,pleaseSelectControl:Ve,pleaseSelectAtLeastOneColumn:Ge,pleaseSelectFillBackMode:ke,pleaseSelectDashboard:He,rootNodeIsRequired:ze,theViewNameCannotBeEmpty:Oe,pleaseSelectOcrType:je,pleaseSelectAtLeastOneFieldToFillIn:qe,pleaseChooseAtLeastOne:Ke,pleaseEnterButtonContent:We,pleaseEnterDataCodeInDataSetting:Xe,pleaseEnterValueFieldCodeInDataSetting:Je,pleaseEnterSvcCodeInDataSetting:Qe,pleaseBindAtLeastOneDisplayValueInDataSetting:Ze,rootNodeIsRequiredInDataSetting:Ye,pleaseEnterMaxHeight:eu,pleaseEnter:uu,pleaseEnterWatermark:tu,pleaseEnterFileName:nu,pleaseUploadAtLeastOnePrintTemplate:au,pleaseAssignBusiness:ru,pleaseAssignExternal:iu},lu="Please enter a number",ou="Please enter a string",cu="Please enter an object",Eu="Please enter an array",Bu="Please enter a boolean",hu="{caption} Required",Au="Please enter the title",pu="Please enter the bubble prompt",mu="Please enter the prompt text",Fu="Please bind data items",fu="Please bind the form",vu="Please bind the list",du="Please bind the process",gu="Please enter the displayed value",Du="Please enter the stored value",Cu="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}",Iu="Please enter a value greater than or equal to {min}",yu="Please enter a value less than or equal to {max}",Mu="The value range is set incorrectly",$u="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",wu="The attachment size must be between 0MB and 1000MB",Ru="Please fill in the total score setting",Lu="The total score cannot be less than 1",xu="The default value must be between {min} and {max}",Uu="The number of attachments uploaded must be between {min} and {max}",Nu="Please re-select the optional quantity",_u="The maximum length of the control must be greater than the minimum length",Tu="The minimum length of the control must be less than the maximum length",Pu="Please select the correct option setting",Vu="Option ID cannot be repeated",Gu="Please enter at least one option",ku="Please bind the data source",Hu="Please bind the stored value",zu="Please bind the service",Ou="At least one display value must be bound",ju="Please select a province",qu="Please select a city",Ku="Please select a district",Wu="The minimum number of lines to fill in cannot be less than 0",Xu="The number of rows cannot be less than {min} rows",Ju="Please enter the column width",Qu="Please set the logical relationship of all rule conditions",Zu="Please complete all rules and conditions",Yu="please select control",et="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",ut="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",tt="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",nt="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",at="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",rt="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",it="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",st="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",lt="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",ot="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",ct="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Et="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Bt="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",ht="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",At="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",pt="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",mt="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Ft="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",ft={isNotNumber:lu,isNotString:ou,isNotObject:cu,isNotArray:Eu,isNotBoolean:Bu,runtimeRequired:hu,pleaseEnterCaption:Au,pleaseEnterCaptionTip:pu,pleaseEnterPlaceholder:mu,pleaseEnterFieldCode:Fu,pleaseEnterForm:fu,pleaseEnterList:vu,pleaseEnterProcess:du,pleaseEnterLabel:gu,pleaseEnterValue:Du,bizKeyNotBindFiled:Cu,pleaseSelectOneField:bu,pleaseEnterNumberRange:Su,pleaseEnterAValueGreaterThanMin:Iu,pleaseEnterAValueLessThanMax:yu,numberRangeSetError:Mu,stringRangeError:$u,attachmentMaxSize:wu,pleaseEnterTotalScoreSetting:Ru,theTotalScoreMustNotBeLessThan1:Lu,scoreDefaultValueRange:xu,attachmentLimitError:Uu,PleaseReselectTheOptionalQuantity:Nu,TheMaximumLengthIsGreaterThanTheMinimumLength:_u,TheMinimumLengthIsGreaterThanTheMaximumLength:Tu,PleaseSelectTheCorrectOptionSettings:Pu,optionIdIsRepeat:Vu,optionIsRequired:Gu,pleaseEnterDataCode:ku,pleaseEnterValueFieldCode:Hu,pleaseEnterSvcCode:zu,pleaseBindAtLeastOneDisplayValue:Ou,pleaseSelectProvince:ju,pleaseSelectCity:qu,pleaseSelectDistrict:Ku,limitRowsCannotBeLessThan0:Wu,TheNumberOfRowsCannotBeLessThanMinRows:Xu,pleaseEnterColumnWidth:Ju,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Qu,pleaseCompleteAllRulesAndConditions:Zu,pleaseSelectControl:Yu,pleaseSelectDashboard:et,theViewNameCannotBeEmpty:ut,pleaseSelectOcrType:tt,pleaseSelectAtLeastOneFieldToFillIn:nt,pleaseChooseAtLeastOne:at,pleaseEnterButtonContent:rt,pleaseEnterDataCodeInDataSetting:it,pleaseEnterValueFieldCodeInDataSetting:st,pleaseEnterSvcCodeInDataSetting:lt,pleaseBindAtLeastOneDisplayValueInDataSetting:ot,rootNodeIsRequiredInDataSetting:ct,pleaseEnterMaxHeight:Et,pleaseEnter:Bt,pleaseEnterWatermark:ht,pleaseEnterFileName:At,pleaseUploadAtLeastOnePrintTemplate:pt,pleaseAssignBusiness:mt,pleaseAssignExternal:Ft},vt="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",dt="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",gt="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Dt="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ct="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",bt="{caption}\u5FC5\u9808",St="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",It="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",yt="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Mt="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",$t="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",wt="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Rt="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Lt="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",xt="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ut="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",Nt="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",_t="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Tt="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Pt="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Vt="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",Gt="\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",Ht="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",zt="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Ot="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",jt="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",qt="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Kt="\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",Wt="\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",Xt="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Jt="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",Zt="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Yt="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",en="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",un="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",tn="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",nn="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",an="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",rn="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",sn="\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",on="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",cn="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",En="please select control",Bn="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",hn="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",An="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",pn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",mn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Fn="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",fn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",vn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",dn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",gn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Dn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Cn="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",bn="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Sn="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",In="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",yn="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Mn="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",$n="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",wn={isNotNumber:vt,isNotString:dt,isNotObject:gt,isNotArray:Dt,isNotBoolean:Ct,runtimeRequired:bt,pleaseEnterCaption:St,pleaseEnterCaptionTip:It,pleaseEnterPlaceholder:yt,pleaseEnterFieldCode:Mt,pleaseEnterForm:$t,pleaseEnterList:wt,pleaseEnterProcess:Rt,pleaseEnterLabel:Lt,pleaseEnterValue:xt,bizKeyNotBindFiled:Ut,pleaseSelectOneField:Nt,pleaseEnterNumberRange:_t,pleaseEnterAValueGreaterThanMin:Tt,pleaseEnterAValueLessThanMax:Pt,numberRangeSetError:Vt,stringRangeError:Gt,attachmentMaxSize:kt,pleaseEnterTotalScoreSetting:Ht,theTotalScoreMustNotBeLessThan1:zt,scoreDefaultValueRange:Ot,attachmentLimitError:jt,PleaseReselectTheOptionalQuantity:qt,TheMaximumLengthIsGreaterThanTheMinimumLength:Kt,TheMinimumLengthIsGreaterThanTheMaximumLength:Wt,PleaseSelectTheCorrectOptionSettings:Xt,optionIdIsRepeat:Jt,optionIsRequired:Qt,pleaseEnterDataCode:Zt,pleaseEnterValueFieldCode:Yt,pleaseEnterSvcCode:en,pleaseBindAtLeastOneDisplayValue:un,pleaseSelectProvince:tn,pleaseSelectCity:nn,pleaseSelectDistrict:an,limitRowsCannotBeLessThan0:rn,TheNumberOfRowsCannotBeLessThanMinRows:sn,pleaseEnterColumnWidth:ln,pleaseSetTheLogicalRelationshipOfAllRuleConditions:on,pleaseCompleteAllRulesAndConditions:cn,pleaseSelectControl:En,pleaseSelectDashboard:Bn,theViewNameCannotBeEmpty:hn,pleaseSelectOcrType:An,pleaseSelectAtLeastOneFieldToFillIn:pn,pleaseChooseAtLeastOne:mn,pleaseEnterButtonContent:Fn,pleaseEnterDataCodeInDataSetting:fn,pleaseEnterValueFieldCodeInDataSetting:vn,pleaseEnterSvcCodeInDataSetting:dn,pleaseBindAtLeastOneDisplayValueInDataSetting:gn,rootNodeIsRequiredInDataSetting:Dn,pleaseEnterMaxHeight:Cn,pleaseEnter:bn,pleaseEnterWatermark:Sn,pleaseEnterFileName:In,pleaseUploadAtLeastOnePrintTemplate:yn,pleaseAssignBusiness:Mn,pleaseAssignExternal:$n},Rn={zhCN:su,enUS:ft,jaJP:wn},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 Ln="zh-CN",xn=function(){};function A(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 E;(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"})(E||(E={}));var B;(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"})(B||(B={}));var h;h={},A(h,B.ARRAY,E.ARRAY_COLUMN),A(h,B.AUTO_NUMBER,E.AUTO_NUMBER_COLUMN),A(h,B.DECIMAL,E.DECIMAL_COLUMN),A(h,B.DEPARTMENTS,E.DEPARTMENT_COLUMN),A(h,B.FILE,E.FILE_COLUMN),A(h,B.IMAGE,E.IMAGE_COLUMN),A(h,B.ADDRESS,E.LOCATION_COLUMN),A(h,B.EMPLOYEES,E.EMPLOYEE_COLUMN),A(h,B.TEXT,E.TEXT_COLUMN),A(h,B.TIMESCOPE,E.TIMESCOPE_COLUMN),A(h,B.TIMESTAMP,E.TIMESTAMP_COLUMN),A(h,B.VARCHAR,E.VARCHAR_COLUMN),A(h,B.RELATION,E.VARCHAR_COLUMN);var U;(function(e){e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATETIME="datetime"})(U||(U={}));function Un(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nn(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}function _n(){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 C(e,u,t){return _n()?C=Reflect.construct:C=function(a,o,m){var p=[null];p.push.apply(p,o);var v=Function.bind.apply(a,p),b=new v;return m&&g(b,m.prototype),b},C.apply(null,arguments)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(e)}function Tn(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&&g(e,u)}function Pn(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Vn(e,u){return u&&(Gn(u)==="object"||typeof u=="function")?u:Un(e)}function g(e,u){return g=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},g(e,u)}var Gn=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function y(e){var u=typeof Map=="function"?new Map:void 0;return y=function(n){if(n===null||!Pn(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 C(n,arguments,d(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),g(a,n)},y(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 Hn(e){var u=kn();return function(){var n=d(e),a;if(u){var o=d(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return Vn(this,a)}}function zn(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var On=function(e){Tn(t,e);var u=Hn(t);function t(n){Nn(this,t);var a;return a=u.call(this,n),a.name="\u{1F4A5} Driven Error",a.message=n?zn(n):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",a}return t}(y(Error));function jn(e){throw new On(e)}var qn=Object.prototype.toString;function N(e,u){return qn.call(e)==="[object "+u+"]"}function Kn(e){return N(e,"String")}function Wn(e){return N(e,"Promise")}var Xn=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();Wn(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,m,p){if(a!==void 0){var v=a[o];if(!(m===p.length-1&&!Kn(v)))return v}},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 Jn(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}var _=function(){function e(){Jn(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]:Ln;return new Xn({locale:t,messages:Rn})},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:{},Zn={exports:{}};(function(e){(function(u){var t=function(r,i,F){if(!b(i)||Ba(i)||ha(i)||Aa(i)||v(i))return i;var f,D=0,j=0;if(Ea(i))for(f=[],j=i.length;D<j;D++)f.push(t(r,i[D],F));else{f={};for(var w in i)Object.prototype.hasOwnProperty.call(i,w)&&(f[r(w,F)]=t(r,i[w],F))}return f},n=function(r,i){i=i||{};var F=i.separator||"_",f=i.split||/(?=[A-Z])/;return r.split(f).join(F)},a=function(r){return pa(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)},m=function(r,i){return n(r,i).toLowerCase()},p=Object.prototype.toString,v=function(r){return typeof r=="function"},b=function(r){return r===Object(r)},Ea=function(r){return p.call(r)=="[object Array]"},Ba=function(r){return p.call(r)=="[object Date]"},ha=function(r){return p.call(r)=="[object RegExp]"},Aa=function(r){return p.call(r)=="[object Boolean]"},pa=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(f,D){return F(f,r,D)}},O={camelize:a,decamelize:m,pascalize:o,depascalize:m,camelizeKeys:function(r,i){return t($(a,i),r)},decamelizeKeys:function(r,i){return t($(m,i),r,i)},pascalizeKeys:function(r,i){return t($(o,i),r)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=O:u.humps=O})(Qn)})(Zn);var T={};Object.defineProperty(T,"__esModule",{value:!0});function M(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(u=>typeof u!="object"||u===null?u:M(u));{const u={};for(const t in e){const n=e[t];u[t]=typeof n!="object"||n===null?n:M(n)}return u}}T.default=M;function P(e){return Object.prototype.toString.call(e)==="[object Object]"}class V{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:xn,this.defaultValue=u.defaultValue,this.validator=u.validator,this.props=(a=u.props)!=null?a:new l,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);P(n)&&Object.assign(this.props,n)}catch(n){jn(`effect error
2
- ${n}`)}}callEffect(u,...t){this.filterEffects(u).forEach(n=>this.callEffectFn(n,t))}callScopeEffect(...u){this.callEffectFn(this.scopeEffect,u)}}class G{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 H{constructor(u){this.type="tab",this.title=u.title,this.items=u.items}}class Yn extends l{constructor(u){super(u),P(u)&&Object.entries(u).forEach(([t,n])=>{this[t]=n})}}class ea extends l{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 ua extends l{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 ta extends l{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 na extends l{constructor(u){var t;super(u),this.options=(t=u==null?void 0:u.options)!=null?t:[]}}class aa extends l{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 ra extends l{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 ia extends l{constructor(u){var t,n,a,o,m,p;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=(m=u==null?void 0:u.minRows)!=null?m:"",this.i18n=(p=u==null?void 0:u.i18n)!=null?p:!1}}function sa(e,u){switch(e){case"input":return new ea(u);case"textarea":return new ia(u);case"input-number":return new ua(u);case"switch":return new ta(u);case"radio":return new ra(u);case"checkbox":return new na(u);case"select":return new aa(u);default:return new Yn(u)}}function la(e){return function(u){const t=e.get(u);if(!!t)return new V(I(S({},t),{props:sa(t.component,"props"in t?t.props:void 0)}))}}function oa(e){const u=e.fields.reduce((a,o)=>(a.set(o.key,o),a),new Map);function t(a){return new G(I(S({},a),{items:a.items.map(la(u)).filter(Boolean)}))}function n(a){return a.map(t)}return e.groups.map(a=>k(a)?new H(I(S({},a),{items:n(a.items)})):t(a))}function z(){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 ca(e){return[...z(),{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}}]}s.Group=G,s.Setting=V,s.Tab=H,s.createBaseFields=z,s.createFormBaseFields=ca,s.defineInstance=c,s.initSettings=oa,s.isTabSchema=k,Object.defineProperty(s,"__esModule",{value:!0})});
1
+ var fa=Object.defineProperty,ma=Object.defineProperties;var Fa=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var va=Object.prototype.hasOwnProperty,da=Object.prototype.propertyIsEnumerable;var W=(c,B,E)=>B in c?fa(c,B,{enumerable:!0,configurable:!0,writable:!0,value:E}):c[B]=E,y=(c,B)=>{for(var E in B||(B={}))va.call(B,E)&&W(c,E,B[E]);if(K)for(var E of K(B))da.call(B,E)&&W(c,E,B[E]);return c},I=(c,B)=>ma(c,Fa(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 X="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",J="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",Q="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",Z="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",Y="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",ee="{caption}\u5FC5\u586B",ue="\u8BF7\u8F93\u5165\u6807\u9898",te="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",ne="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",ae="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",re="\u8BF7\u7ED1\u5B9A\u8868\u5355",ie="\u8BF7\u7ED1\u5B9A\u5217\u8868",le="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",se="\u8BF7\u8F93\u5165\u663E\u793A\u503C",oe="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",ce="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",Ee="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",Be="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",he="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",Ae="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",pe="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",fe="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",me="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Fe="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",ve="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",de="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",ge="\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",Ce="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",be="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Se="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",ye="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Ie="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",Me="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",$e="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",we="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Re="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Le="\u8BF7\u9009\u62E9\u7701",xe="\u8BF7\u9009\u62E9\u5E02",Ue="\u8BF7\u9009\u62E9\u533A",Ne="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",_e="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Te="\u8BF7\u8F93\u5165\u5217\u5BBD",Pe="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Ve="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",ke="\u8BF7\u9009\u62E9\u63A7\u4EF6",Ge="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",He="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",ze="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Oe="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",je="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",qe="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Ke="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",We="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Xe="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Je="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Qe="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Ze="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Ye="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",eu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",uu="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",tu="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",nu="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",au="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ru="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",iu="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",lu="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",su={isNotNumber:X,isNotString:J,isNotObject:Q,isNotArray:Z,isNotBoolean:Y,runtimeRequired:ee,pleaseEnterCaption:ue,pleaseEnterCaptionTip:te,pleaseEnterPlaceholder:ne,pleaseEnterFieldCode:ae,pleaseEnterForm:re,pleaseEnterList:ie,pleaseEnterProcess:le,pleaseEnterLabel:se,pleaseEnterValue:oe,bizKeyNotBindFiled:ce,pleaseSelectOneField:Ee,pleaseEnterNumberRange:Be,pleaseEnterAValueGreaterThanMin:he,pleaseEnterAValueLessThanMax:Ae,numberRangeSetError:pe,stringRangeError:fe,attachmentMaxSize:me,pleaseEnterTotalScoreSetting:Fe,theTotalScoreMustNotBeLessThan1:ve,scoreDefaultValueRange:de,attachmentLimitError:ge,PleaseReselectTheOptionalQuantity:De,TheMaximumLengthIsGreaterThanTheMinimumLength:Ce,TheMinimumLengthIsGreaterThanTheMaximumLength:be,PleaseSelectTheCorrectOptionSettings:Se,optionIdIsRepeat:ye,optionIsRequired:Ie,pleaseEnterDataCode:Me,pleaseEnterValueFieldCode:$e,pleaseEnterSvcCode:we,pleaseBindAtLeastOneDisplayValue:Re,pleaseSelectProvince:Le,pleaseSelectCity:xe,pleaseSelectDistrict:Ue,limitRowsCannotBeLessThan0:Ne,TheNumberOfRowsCannotBeLessThanMinRows:_e,pleaseEnterColumnWidth:Te,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Pe,pleaseCompleteAllRulesAndConditions:Ve,pleaseSelectControl:ke,pleaseSelectAtLeastOneColumn:Ge,pleaseSelectFillBackMode:He,pleaseSelectDashboard:ze,rootNodeIsRequired:Oe,theViewNameCannotBeEmpty:je,pleaseSelectOcrType:qe,pleaseSelectAtLeastOneFieldToFillIn:Ke,pleaseChooseAtLeastOne:We,pleaseEnterButtonContent:Xe,pleaseEnterDataCodeInDataSetting:Je,pleaseEnterValueFieldCodeInDataSetting:Qe,pleaseEnterSvcCodeInDataSetting:Ze,pleaseBindAtLeastOneDisplayValueInDataSetting:Ye,rootNodeIsRequiredInDataSetting:eu,pleaseEnterMaxHeight:uu,pleaseEnter:tu,pleaseEnterWatermark:nu,pleaseEnterFileName:au,pleaseUploadAtLeastOnePrintTemplate:ru,pleaseAssignBusiness:iu,pleaseAssignExternal:lu},ou="Please enter a number",cu="Please enter a string",Eu="Please enter an object",Bu="Please enter an array",hu="Please enter a boolean",Au="{caption} Required",pu="Please enter the title",fu="Please enter the bubble prompt",mu="Please enter the prompt text",Fu="Please bind data items",vu="Please bind the form",du="Please bind the list",gu="Please bind the process",Du="Please enter the displayed value",Cu="Please enter the stored value",bu="The document number is not bound to the data item",Su="Please select at least one display field",yu="Please enter a value greater than or equal to {min} and less than or equal to {max}",Iu="Please enter a value greater than or equal to {min}",Mu="Please enter a value less than or equal to {max}",$u="The value range is set incorrectly",wu="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",Ru="The attachment size must be between 0MB and 1000MB",Lu="Please fill in the total score setting",xu="The total score cannot be less than 1",Uu="The default value must be between {min} and {max}",Nu="The number of attachments uploaded must be between {min} and {max}",_u="Please re-select the optional quantity",Tu="The maximum length of the control must be greater than the minimum length",Pu="The minimum length of the control must be less than the maximum length",Vu="Please select the correct option setting",ku="Option ID cannot be repeated",Gu="Please enter at least one option",Hu="Please bind the data source",zu="Please bind the stored value",Ou="Please bind the service",ju="At least one display value must be bound",qu="Please select a province",Ku="Please select a city",Wu="Please select a district",Xu="The minimum number of lines to fill in cannot be less than 0",Ju="The number of rows cannot be less than {min} rows",Qu="Please enter the column width",Zu="Please set the logical relationship of all rule conditions",Yu="Please complete all rules and conditions",et="please select control",ut="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",tt="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",nt="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",at="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",rt="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",it="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",lt="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",st="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",ot="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",ct="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Et="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Bt="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",ht="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",At="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",pt="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ft="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",mt="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Ft="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",vt={isNotNumber:ou,isNotString:cu,isNotObject:Eu,isNotArray:Bu,isNotBoolean:hu,runtimeRequired:Au,pleaseEnterCaption:pu,pleaseEnterCaptionTip:fu,pleaseEnterPlaceholder:mu,pleaseEnterFieldCode:Fu,pleaseEnterForm:vu,pleaseEnterList:du,pleaseEnterProcess:gu,pleaseEnterLabel:Du,pleaseEnterValue:Cu,bizKeyNotBindFiled:bu,pleaseSelectOneField:Su,pleaseEnterNumberRange:yu,pleaseEnterAValueGreaterThanMin:Iu,pleaseEnterAValueLessThanMax:Mu,numberRangeSetError:$u,stringRangeError:wu,attachmentMaxSize:Ru,pleaseEnterTotalScoreSetting:Lu,theTotalScoreMustNotBeLessThan1:xu,scoreDefaultValueRange:Uu,attachmentLimitError:Nu,PleaseReselectTheOptionalQuantity:_u,TheMaximumLengthIsGreaterThanTheMinimumLength:Tu,TheMinimumLengthIsGreaterThanTheMaximumLength:Pu,PleaseSelectTheCorrectOptionSettings:Vu,optionIdIsRepeat:ku,optionIsRequired:Gu,pleaseEnterDataCode:Hu,pleaseEnterValueFieldCode:zu,pleaseEnterSvcCode:Ou,pleaseBindAtLeastOneDisplayValue:ju,pleaseSelectProvince:qu,pleaseSelectCity:Ku,pleaseSelectDistrict:Wu,limitRowsCannotBeLessThan0:Xu,TheNumberOfRowsCannotBeLessThanMinRows:Ju,pleaseEnterColumnWidth:Qu,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Zu,pleaseCompleteAllRulesAndConditions:Yu,pleaseSelectControl:et,pleaseSelectDashboard:ut,theViewNameCannotBeEmpty:tt,pleaseSelectOcrType:nt,pleaseSelectAtLeastOneFieldToFillIn:at,pleaseChooseAtLeastOne:rt,pleaseEnterButtonContent:it,pleaseEnterDataCodeInDataSetting:lt,pleaseEnterValueFieldCodeInDataSetting:st,pleaseEnterSvcCodeInDataSetting:ot,pleaseBindAtLeastOneDisplayValueInDataSetting:ct,rootNodeIsRequiredInDataSetting:Et,pleaseEnterMaxHeight:Bt,pleaseEnter:ht,pleaseEnterWatermark:At,pleaseEnterFileName:pt,pleaseUploadAtLeastOnePrintTemplate:ft,pleaseAssignBusiness:mt,pleaseAssignExternal:Ft},dt="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",gt="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Dt="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ct="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",bt="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",St="{caption}\u5FC5\u9808",yt="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",It="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Mt="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",$t="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",wt="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Rt="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Lt="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",xt="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ut="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Nt="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",_t="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Tt="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Pt="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Vt="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",kt="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",Gt="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ht="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",zt="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Ot="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",jt="\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",Kt="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Wt="\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",Xt="\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",Qt="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Zt="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Yt="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",en="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",un="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",tn="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",nn="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",an="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",rn="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ln="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",sn="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",on="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",cn="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",En="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",Bn="please select control",hn="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",An="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",pn="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",fn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",mn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Fn="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",vn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",dn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",gn="\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",Cn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",bn="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Sn="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",yn="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",In="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Mn="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",$n="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",wn="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Rn={isNotNumber:dt,isNotString:gt,isNotObject:Dt,isNotArray:Ct,isNotBoolean:bt,runtimeRequired:St,pleaseEnterCaption:yt,pleaseEnterCaptionTip:It,pleaseEnterPlaceholder:Mt,pleaseEnterFieldCode:$t,pleaseEnterForm:wt,pleaseEnterList:Rt,pleaseEnterProcess:Lt,pleaseEnterLabel:xt,pleaseEnterValue:Ut,bizKeyNotBindFiled:Nt,pleaseSelectOneField:_t,pleaseEnterNumberRange:Tt,pleaseEnterAValueGreaterThanMin:Pt,pleaseEnterAValueLessThanMax:Vt,numberRangeSetError:kt,stringRangeError:Gt,attachmentMaxSize:Ht,pleaseEnterTotalScoreSetting:zt,theTotalScoreMustNotBeLessThan1:Ot,scoreDefaultValueRange:jt,attachmentLimitError:qt,PleaseReselectTheOptionalQuantity:Kt,TheMaximumLengthIsGreaterThanTheMinimumLength:Wt,TheMinimumLengthIsGreaterThanTheMaximumLength:Xt,PleaseSelectTheCorrectOptionSettings:Jt,optionIdIsRepeat:Qt,optionIsRequired:Zt,pleaseEnterDataCode:Yt,pleaseEnterValueFieldCode:en,pleaseEnterSvcCode:un,pleaseBindAtLeastOneDisplayValue:tn,pleaseSelectProvince:nn,pleaseSelectCity:an,pleaseSelectDistrict:rn,limitRowsCannotBeLessThan0:ln,TheNumberOfRowsCannotBeLessThanMinRows:sn,pleaseEnterColumnWidth:on,pleaseSetTheLogicalRelationshipOfAllRuleConditions:cn,pleaseCompleteAllRulesAndConditions:En,pleaseSelectControl:Bn,pleaseSelectDashboard:hn,theViewNameCannotBeEmpty:An,pleaseSelectOcrType:pn,pleaseSelectAtLeastOneFieldToFillIn:fn,pleaseChooseAtLeastOne:mn,pleaseEnterButtonContent:Fn,pleaseEnterDataCodeInDataSetting:vn,pleaseEnterValueFieldCodeInDataSetting:dn,pleaseEnterSvcCodeInDataSetting:gn,pleaseBindAtLeastOneDisplayValueInDataSetting:Dn,rootNodeIsRequiredInDataSetting:Cn,pleaseEnterMaxHeight:bn,pleaseEnter:Sn,pleaseEnterWatermark:yn,pleaseEnterFileName:In,pleaseUploadAtLeastOnePrintTemplate:Mn,pleaseAssignBusiness:$n,pleaseAssignExternal:wn},Ln={zhCN:su,enUS:vt,jaJP:Rn},L;(function(e){e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable"})(L||(L={}));var x;(function(e){e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN"})(x||(x={}));var xn="zh-CN",Un=function(){};function m(e,u,t){return u in e?Object.defineProperty(e,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[u]=t,e}var U;(function(e){e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search"})(U||(U={}));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 p;(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"})(p||(p={}));var f;f={},m(f,p.ARRAY,A.ARRAY_COLUMN),m(f,p.AUTO_NUMBER,A.AUTO_NUMBER_COLUMN),m(f,p.DECIMAL,A.DECIMAL_COLUMN),m(f,p.DEPARTMENTS,A.DEPARTMENT_COLUMN),m(f,p.FILE,A.FILE_COLUMN),m(f,p.IMAGE,A.IMAGE_COLUMN),m(f,p.ADDRESS,A.LOCATION_COLUMN),m(f,p.EMPLOYEES,A.EMPLOYEE_COLUMN),m(f,p.TEXT,A.TEXT_COLUMN),m(f,p.TIMESCOPE,A.TIMESCOPE_COLUMN),m(f,p.TIMESTAMP,A.TIMESTAMP_COLUMN),m(f,p.VARCHAR,A.VARCHAR_COLUMN),m(f,p.RELATION,A.VARCHAR_COLUMN);var N;(function(e){e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATETIME="datetime"})(N||(N={}));function Nn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _n(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}function Tn(){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 Tn()?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 Pn(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 Vn(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function kn(e,u){return u&&(Gn(u)==="object"||typeof u=="function")?u:Nn(e)}function D(e,u){return D=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},D(e,u)}var Gn=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||!Vn(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 Hn(){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 zn(e){var u=Hn();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 kn(this,a)}}function On(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var jn=function(e){Pn(t,e);var u=zn(t);function t(n){_n(this,t);var a;return a=u.call(this,n),a.name="\u{1F4A5} Driven Error",a.message=n?On(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 jn(e)}var Kn=Object.prototype.toString;function _(e,u){return Kn.call(e)==="[object "+u+"]"}function Wn(e){return _(e,"String")}function Xn(e){return _(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();Xn(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&&!Wn(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 Qn(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}var T=function(){function e(){Qn(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]:xn;return new Jn({locale:t,messages:Ln})},e.setLocale=function(t){return this.$i18n.setLocale(t)},e}();T.$i18n=T.resetI18n();var Zn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Yn={exports:{}};(function(e){(function(u){var t=function(r,i,F){if(!l(i)||Ba(i)||ha(i)||Aa(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 R in i)Object.prototype.hasOwnProperty.call(i,R)&&(v[r(R,F)]=t(r,i[R],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 pa(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]"},Ba=function(r){return h.call(r)=="[object Date]"},ha=function(r){return h.call(r)=="[object RegExp]"},Aa=function(r){return h.call(r)=="[object Boolean]"},pa=function(r){return r=r-0,r===r},w=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)}},j={camelize:a,decamelize:s,pascalize:o,depascalize:s,camelizeKeys:function(r,i){return t(w(a,i),r)},decamelizeKeys:function(r,i){return t(w(s,i),r,i)},pascalizeKeys:function(r,i){return t(w(o,i),r)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=j:u.humps=j})(Zn)})(Yn);var P={};Object.defineProperty(P,"__esModule",{value:!0});function $(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(u=>typeof u!="object"||u===null?u:$(u));{const u={};for(const t in e){const n=e[t];u[t]=typeof n!="object"||n===null?n:$(n)}return u}}P.default=$;function V(e){return Object.prototype.toString.call(e)==="[object Object]"}class k{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:Un,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);V(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 G{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 H(e){return"type"in e&&e.type==="tab"}class z{constructor(u){this.type="tab",this.title=u.title,this.items=u.items}}class ea extends E{constructor(u){super(u),V(u)&&Object.entries(u).forEach(([t,n])=>{this[t]=n})}}class ua 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 ta 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 na 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 aa extends E{constructor(u){var t;super(u),this.options=(t=u==null?void 0:u.options)!=null?t:[]}}class ra 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 ia 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 la 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 sa(e,u){switch(e){case"input":return new ua(u);case"textarea":return new la(u);case"input-number":return new ta(u);case"switch":return new na(u);case"radio":return new ia(u);case"checkbox":return new aa(u);case"select":return new ra(u);default:return new ea(u)}}function oa(e){return function(u){const t=e.get(u);if(!!t)return new k(I(y({},t),{props:sa(t.component,"props"in t?t.props:void 0)}))}}function ca(e){const u=e.fields.reduce((a,o)=>(a.set(o.key,o),a),new Map);function t(a){return new G(I(y({},a),{items:a.items.map(oa(u)).filter(Boolean)}))}function n(a){return a.map(t)}return e.groups.map(a=>H(a)?new z(I(y({},a),{items:n(a.items)})):t(a))}function O(){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 Ea(e){return[...O(),{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=G,c.Setting=k,c.Tab=z,c.createBaseFields=O,c.createFormBaseFields=Ea,c.defineInstance=B,c.initSettings=ca,c.isTabSchema=H,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 declare 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 declare type FieldSchema = SettingSchemas | BaseSchema<{}>;
70
- export declare 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 declare type Props = CustomProps | InputProps | TextareaProps | InputNumberProps | SwitchProps | CheckboxProps | RadioProps | SelectProps;
13
- export declare 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 declare type SupportedDataTypes = 'string' | 'boolean' | 'number' | 'object' | 'array' | 'DataBind' | 'DataSourceBind';
6
- export declare 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": "2.3.1-beta.2",
3
+ "version": "2.3.1-beta.3",
4
4
  "description": "> TODO: description",
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-core": "2.3.1-beta.2",
30
- "@byteluck-fe/model-driven-shared": "2.3.1-beta.2",
29
+ "@byteluck-fe/model-driven-core": "2.3.1-beta.3",
30
+ "@byteluck-fe/model-driven-shared": "2.3.1-beta.3",
31
31
  "tslib": "^2.1.0"
32
32
  },
33
- "gitHead": "7327a79615276a22409097664726fb74867a7d89"
33
+ "gitHead": "347a6f36b666f51131e3f41c9bc20c7bc4fa2fc6"
34
34
  }