@byteluck-fe/model-driven-settings 2.5.0-alpha.10 → 2.5.0-alpha.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,64 +1,64 @@
1
1
  export function createBaseFields() {
2
2
  return [
3
3
  {
4
- label: "隐藏",
5
- key: "isHide",
6
- type: "boolean",
7
- component: "switch"
4
+ label: '隐藏',
5
+ key: 'isHide',
6
+ type: 'boolean',
7
+ component: 'switch'
8
8
  },
9
9
  {
10
- key: "superSetting",
11
- component: "super-setting"
10
+ key: 'superSetting',
11
+ component: 'super-setting'
12
12
  },
13
13
  {
14
- key: "style.width",
15
- component: "styleComponent",
14
+ key: 'style.width',
15
+ component: 'styleComponent',
16
16
  props: {
17
- configKey: "style.widthConfig",
17
+ configKey: 'style.widthConfig',
18
18
  options: [
19
- "px",
20
- "%",
21
- "fill",
22
- "hug"
19
+ 'px',
20
+ '%',
21
+ 'fill',
22
+ 'hug'
23
23
  ]
24
24
  },
25
25
  scopeEffect: function scopeEffect(driven, payload) {
26
26
  var oldParent = payload.oldParent, newParent = payload.newParent, instance = payload.instance;
27
- if ((oldParent === null || oldParent === void 0 ? void 0 : oldParent.type) === "advanced-container" && newParent.type === "positioning-container") {
28
- driven.setInstance(instance, "style.width", "");
29
- driven.setInstance(instance, "style.widthConfig", "fill");
27
+ if ((oldParent === null || oldParent === void 0 ? void 0 : oldParent.type) === 'advanced-container' && newParent.type === 'positioning-container') {
28
+ driven.setInstance(instance, 'style.width', '');
29
+ driven.setInstance(instance, 'style.widthConfig', 'fill');
30
30
  }
31
31
  if (newParent) {
32
32
  return {
33
- visible: newParent.type === "advanced-container"
33
+ visible: newParent.type === 'advanced-container'
34
34
  };
35
35
  }
36
36
  }
37
37
  },
38
38
  {
39
- key: "style.height",
40
- component: "styleComponent",
39
+ key: 'style.height',
40
+ component: 'styleComponent',
41
41
  props: {
42
- configKey: "style.heightConfig",
42
+ configKey: 'style.heightConfig',
43
43
  options: [
44
- "px",
45
- "%",
46
- "fill",
47
- "hug"
44
+ 'px',
45
+ '%',
46
+ 'fill',
47
+ 'hug'
48
48
  ]
49
49
  },
50
50
  scopeEffect: function scopeEffect(driven, payload) {
51
51
  var oldParent = payload.oldParent, newParent = payload.newParent, instance = payload.instance;
52
- if ((oldParent === null || oldParent === void 0 ? void 0 : oldParent.type) === "advanced-container" && newParent.type === "positioning-container") {
53
- driven.setInstance(instance, "style.height", "");
54
- driven.setInstance(instance, "style.heightConfig", "fill");
52
+ if ((oldParent === null || oldParent === void 0 ? void 0 : oldParent.type) === 'advanced-container' && newParent.type === 'positioning-container') {
53
+ driven.setInstance(instance, 'style.height', '');
54
+ driven.setInstance(instance, 'style.heightConfig', 'fill');
55
55
  }
56
56
  if (payload.newParent) {
57
57
  return {
58
- visible: payload.newParent.type === "advanced-container"
58
+ visible: payload.newParent.type === 'advanced-container'
59
59
  };
60
60
  }
61
61
  }
62
- }
62
+ },
63
63
  ];
64
64
  }
@@ -23,19 +23,19 @@ function _unsupportedIterableToArray(o, minLen) {
23
23
  if (n === "Map" || n === "Set") return Array.from(n);
24
24
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
25
25
  }
26
- import { createBaseFields } from "./createBaseFields";
26
+ import { createBaseFields } from './createBaseFields';
27
27
  export function createFormBaseFields(defaultValues) {
28
28
  return _toConsumableArray(createBaseFields()).concat([
29
29
  {
30
- type: "DataBind",
31
- key: "dataBind",
32
- component: "data-bind",
30
+ type: 'DataBind',
31
+ key: 'dataBind',
32
+ component: 'data-bind',
33
33
  defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.dataBind
34
34
  },
35
35
  {
36
- key: "caption",
37
- type: "string",
38
- component: "input",
36
+ key: 'caption',
37
+ type: 'string',
38
+ component: 'input',
39
39
  props: {
40
40
  maxLength: 80,
41
41
  i18n: true
@@ -43,88 +43,88 @@ export function createFormBaseFields(defaultValues) {
43
43
  defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.caption,
44
44
  validator: function validator(value) {
45
45
  if (!value) {
46
- return "标题必填";
46
+ return '标题必填';
47
47
  }
48
48
  }
49
49
  },
50
50
  {
51
- label: "隐藏标题",
52
- key: "isHideCaption",
53
- type: "boolean",
54
- component: "switch",
51
+ label: '隐藏标题',
52
+ key: 'isHideCaption',
53
+ type: 'boolean',
54
+ component: 'switch',
55
55
  defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.isHideCaption,
56
56
  props: {
57
- showType: "checkbox"
57
+ showType: 'checkbox'
58
58
  },
59
59
  // 在明细表内隐藏
60
60
  scopeEffect: function scopeEffect(driven, payload) {
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)) {
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)) {
63
63
  //明细子表内默认开启
64
- if (payload.current.type === "subtable") {
65
- driven.setInstance(payload.control, "isHideCaption", true);
64
+ if (payload.current.type === 'subtable') {
65
+ driven.setInstance(payload.control, 'isHideCaption', true);
66
66
  }
67
67
  return {
68
- visible: payload.current.type !== "subtable"
68
+ visible: payload.current.type !== 'subtable'
69
69
  };
70
70
  }
71
71
  }
72
72
  },
73
73
  {
74
- key: "labelPosition",
75
- type: "string",
76
- component: "radio",
74
+ key: 'labelPosition',
75
+ type: 'string',
76
+ component: 'radio',
77
77
  defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.labelPosition,
78
78
  props: {
79
- showType: "solid",
79
+ showType: 'solid',
80
80
  options: [
81
81
  {
82
- label: "上下布局",
83
- value: "top"
82
+ label: '上下布局',
83
+ value: 'top'
84
84
  },
85
85
  {
86
- label: "左右布局",
87
- value: "left"
88
- }
86
+ label: '左右布局',
87
+ value: 'left'
88
+ },
89
89
  ]
90
90
  }
91
91
  },
92
92
  {
93
- key: "defaultState",
94
- type: "string",
95
- component: "radio",
93
+ key: 'defaultState',
94
+ type: 'string',
95
+ component: 'radio',
96
96
  defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.defaultState,
97
97
  props: {
98
- showType: "solid",
98
+ showType: 'solid',
99
99
  options: [
100
100
  {
101
- label: "普通",
102
- value: "default"
101
+ label: '普通',
102
+ value: 'default'
103
103
  },
104
104
  {
105
- label: "只读",
106
- value: "readonly"
107
- }
105
+ label: '只读',
106
+ value: 'readonly'
107
+ },
108
108
  ]
109
109
  }
110
110
  },
111
111
  {
112
- label: "必填",
113
- key: "required",
114
- type: "boolean",
115
- component: "switch",
112
+ label: '必填',
113
+ key: 'required',
114
+ type: 'boolean',
115
+ component: 'switch',
116
116
  defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.required
117
117
  },
118
118
  {
119
- label: "提示文字",
120
- key: "placeholder",
121
- type: "string",
122
- component: "input",
119
+ label: '提示文字',
120
+ key: 'placeholder',
121
+ type: 'string',
122
+ component: 'input',
123
123
  defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.placeholder,
124
124
  props: {
125
125
  maxLength: 80,
126
126
  i18n: true
127
127
  }
128
- }
128
+ },
129
129
  ]);
130
130
  }
@@ -1,2 +1,2 @@
1
- export * from "./createBaseFields";
2
- export * from "./createFormBaseFields";
1
+ export * from './createBaseFields';
2
+ export * from './createFormBaseFields';
@@ -1,3 +1,4 @@
1
+ import { BaseSchema } from './schema';
1
2
  export function defineInstance(params) {
2
3
  return params;
3
4
  }
package/dist/esm/index.js CHANGED
@@ -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';
@@ -26,55 +26,31 @@ function _objectSpread(target) {
26
26
  }
27
27
  return target;
28
28
  }
29
- function ownKeys(object, enumerableOnly) {
30
- var keys = Object.keys(object);
31
- if (Object.getOwnPropertySymbols) {
32
- var symbols = Object.getOwnPropertySymbols(object);
33
- if (enumerableOnly) {
34
- symbols = symbols.filter(function(sym) {
35
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
36
- });
37
- }
38
- keys.push.apply(keys, symbols);
39
- }
40
- return keys;
41
- }
42
- function _objectSpreadProps(target, source) {
43
- source = source != null ? source : {};
44
- if (Object.getOwnPropertyDescriptors) {
45
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
46
- } else {
47
- ownKeys(Object(source)).forEach(function(key) {
48
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
49
- });
50
- }
51
- return target;
52
- }
53
- import { Group, Setting } from "./schema";
54
- import { CustomProps } from "./props/custom";
55
- import { InputProps } from "./props/input";
56
- import { InputNumberProps } from "./props/input-number";
57
- import { SwitchProps } from "./props/switch";
58
- import { CheckboxProps } from "./props/checkbox";
59
- import { SelectProps } from "./props/select";
60
- import { RadioProps } from "./props/radio";
61
- import { TextareaProps } from "./props/textarea";
62
- import { isTabSchema, Tab } from "./schema/tab";
29
+ import { Group, Setting } from './schema';
30
+ import { CustomProps } from './props/custom';
31
+ import { InputProps } from './props/input';
32
+ import { InputNumberProps } from './props/input-number';
33
+ import { SwitchProps } from './props/switch';
34
+ import { CheckboxProps } from './props/checkbox';
35
+ import { SelectProps } from './props/select';
36
+ import { RadioProps } from './props/radio';
37
+ import { TextareaProps } from './props/textarea';
38
+ import { isTabSchema, Tab } from './schema/tab';
63
39
  function propsFactory(component, props) {
64
40
  switch(component){
65
- case "input":
41
+ case 'input':
66
42
  return new InputProps(props);
67
- case "textarea":
43
+ case 'textarea':
68
44
  return new TextareaProps(props);
69
- case "input-number":
45
+ case 'input-number':
70
46
  return new InputNumberProps(props);
71
- case "switch":
47
+ case 'switch':
72
48
  return new SwitchProps(props);
73
- case "radio":
49
+ case 'radio':
74
50
  return new RadioProps(props);
75
- case "checkbox":
51
+ case 'checkbox':
76
52
  return new CheckboxProps(props);
77
- case "select":
53
+ case 'select':
78
54
  return new SelectProps(props);
79
55
  default:
80
56
  return new CustomProps(props);
@@ -86,14 +62,14 @@ function buildSettingItem(settingMap) {
86
62
  if (!schema) {
87
63
  return;
88
64
  }
89
- return new Setting(_objectSpreadProps(_objectSpread({}, schema), {
90
- props: propsFactory(schema.component, "props" in schema ? schema.props : undefined)
65
+ return new Setting(_objectSpread({}, schema, {
66
+ props: propsFactory(schema.component, 'props' in schema ? schema.props : undefined)
91
67
  }));
92
68
  };
93
69
  }
94
70
  export function initSettings(params) {
95
71
  var generatorGroup = function generatorGroup(group) {
96
- return new Group(_objectSpreadProps(_objectSpread({}, group), {
72
+ return new Group(_objectSpread({}, group, {
97
73
  items: group.items.map(buildSettingItem(settingMap)).filter(Boolean)
98
74
  }));
99
75
  };
@@ -106,7 +82,7 @@ export function initSettings(params) {
106
82
  }, new Map());
107
83
  return params.groups.map(function(item) {
108
84
  if (isTabSchema(item)) {
109
- return new Tab(_objectSpreadProps(_objectSpread({}, item), {
85
+ return new Tab(_objectSpread({}, item, {
110
86
  items: generatorGroups(item.items)
111
87
  }));
112
88
  } else {
@@ -17,33 +17,14 @@ function _createClass(Constructor, protoProps, staticProps) {
17
17
  if (staticProps) _defineProperties(Constructor, staticProps);
18
18
  return Constructor;
19
19
  }
20
- function _defineProperty(obj, key, value) {
21
- if (key in obj) {
22
- Object.defineProperty(obj, key, {
23
- value: value,
24
- enumerable: true,
25
- configurable: true,
26
- writable: true
27
- });
28
- } else {
29
- obj[key] = value;
30
- }
31
- return obj;
32
- }
33
20
  export var BaseProps = /*#__PURE__*/ function() {
34
21
  "use strict";
35
22
  function BaseProps(props) {
36
23
  _classCallCheck(this, BaseProps);
37
- /**
38
- * 显示隐藏
39
- * */ _defineProperty(this, "visible", void 0);
40
- /**
41
- * 开启表达式
42
- * */ _defineProperty(this, "expression", void 0);
43
- var _props_visible;
44
- this.visible = (_props_visible = props === null || props === void 0 ? void 0 : props.visible) !== null && _props_visible !== void 0 ? _props_visible : true;
45
- var _props_expression;
46
- this.expression = (_props_expression = props === null || props === void 0 ? void 0 : props.expression) !== null && _props_expression !== void 0 ? _props_expression : false;
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;
47
28
  }
48
29
  _createClass(BaseProps, [
49
30
  {
@@ -9,19 +9,6 @@ function _classCallCheck(instance, Constructor) {
9
9
  throw new TypeError("Cannot call a class as a function");
10
10
  }
11
11
  }
12
- function _defineProperty(obj, key, value) {
13
- if (key in obj) {
14
- Object.defineProperty(obj, key, {
15
- value: value,
16
- enumerable: true,
17
- configurable: true,
18
- writable: true
19
- });
20
- } else {
21
- obj[key] = value;
22
- }
23
- return obj;
24
- }
25
12
  function _getPrototypeOf(o) {
26
13
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
27
14
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -82,18 +69,17 @@ function _createSuper(Derived) {
82
69
  return _possibleConstructorReturn(this, result);
83
70
  };
84
71
  }
85
- import { BaseProps } from "./base";
86
- export var CheckboxProps = /*#__PURE__*/ function(BaseProps) {
72
+ import { BaseProps } from './base';
73
+ export var CheckboxProps = /*#__PURE__*/ function(BaseProps1) {
87
74
  "use strict";
88
- _inherits(CheckboxProps, BaseProps);
75
+ _inherits(CheckboxProps, BaseProps1);
89
76
  var _super = _createSuper(CheckboxProps);
90
77
  function CheckboxProps(props) {
91
78
  _classCallCheck(this, CheckboxProps);
92
79
  var _this;
93
80
  _this = _super.call(this, props);
94
- _defineProperty(_assertThisInitialized(_this), "options", void 0);
95
- var _props_options;
96
- _this.options = (_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [];
81
+ var ref;
82
+ _this.options = (ref = props === null || props === void 0 ? void 0 : props.options) !== null && ref !== void 0 ? ref : [];
97
83
  return _this;
98
84
  }
99
85
  return CheckboxProps;
@@ -115,11 +115,11 @@ function _createSuper(Derived) {
115
115
  return _possibleConstructorReturn(this, result);
116
116
  };
117
117
  }
118
- import { isPlainObject } from "@byteluck-fe/model-driven-shared";
119
- import { BaseProps } from "./base";
120
- export var CustomProps = /*#__PURE__*/ function(BaseProps) {
118
+ import { isPlainObject } from '@byteluck-fe/model-driven-shared';
119
+ import { BaseProps } from './base';
120
+ export var CustomProps = /*#__PURE__*/ function(BaseProps1) {
121
121
  "use strict";
122
- _inherits(CustomProps, BaseProps);
122
+ _inherits(CustomProps, BaseProps1);
123
123
  var _super = _createSuper(CustomProps);
124
124
  function CustomProps(props) {
125
125
  _classCallCheck(this, CustomProps);
@@ -9,19 +9,6 @@ function _classCallCheck(instance, Constructor) {
9
9
  throw new TypeError("Cannot call a class as a function");
10
10
  }
11
11
  }
12
- function _defineProperty(obj, key, value) {
13
- if (key in obj) {
14
- Object.defineProperty(obj, key, {
15
- value: value,
16
- enumerable: true,
17
- configurable: true,
18
- writable: true
19
- });
20
- } else {
21
- obj[key] = value;
22
- }
23
- return obj;
24
- }
25
12
  function _getPrototypeOf(o) {
26
13
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
27
14
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -82,24 +69,21 @@ function _createSuper(Derived) {
82
69
  return _possibleConstructorReturn(this, result);
83
70
  };
84
71
  }
85
- import { BaseProps } from "./base";
86
- export var InputNumberProps = /*#__PURE__*/ function(BaseProps) {
72
+ import { BaseProps } from './base';
73
+ export var InputNumberProps = /*#__PURE__*/ function(BaseProps1) {
87
74
  "use strict";
88
- _inherits(InputNumberProps, BaseProps);
75
+ _inherits(InputNumberProps, BaseProps1);
89
76
  var _super = _createSuper(InputNumberProps);
90
77
  function InputNumberProps(props) {
91
78
  _classCallCheck(this, InputNumberProps);
92
79
  var _this;
93
80
  _this = _super.call(this, props);
94
- _defineProperty(_assertThisInitialized(_this), "max", void 0);
95
- _defineProperty(_assertThisInitialized(_this), "min", void 0);
96
- _defineProperty(_assertThisInitialized(_this), "placeholder", void 0);
97
- var _props_max;
98
- _this.max = (_props_max = props === null || props === void 0 ? void 0 : props.max) !== null && _props_max !== void 0 ? _props_max : "";
99
- var _props_min;
100
- _this.min = (_props_min = props === null || props === void 0 ? void 0 : props.min) !== null && _props_min !== void 0 ? _props_min : "";
101
- var _props_placeholder;
102
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
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 : '';
103
87
  return _this;
104
88
  }
105
89
  return InputNumberProps;
@@ -9,19 +9,6 @@ function _classCallCheck(instance, Constructor) {
9
9
  throw new TypeError("Cannot call a class as a function");
10
10
  }
11
11
  }
12
- function _defineProperty(obj, key, value) {
13
- if (key in obj) {
14
- Object.defineProperty(obj, key, {
15
- value: value,
16
- enumerable: true,
17
- configurable: true,
18
- writable: true
19
- });
20
- } else {
21
- obj[key] = value;
22
- }
23
- return obj;
24
- }
25
12
  function _getPrototypeOf(o) {
26
13
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
27
14
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -82,27 +69,23 @@ function _createSuper(Derived) {
82
69
  return _possibleConstructorReturn(this, result);
83
70
  };
84
71
  }
85
- import { BaseProps } from "./base";
86
- export var InputProps = /*#__PURE__*/ function(BaseProps) {
72
+ import { BaseProps } from './base';
73
+ export var InputProps = /*#__PURE__*/ function(BaseProps1) {
87
74
  "use strict";
88
- _inherits(InputProps, BaseProps);
75
+ _inherits(InputProps, BaseProps1);
89
76
  var _super = _createSuper(InputProps);
90
77
  function InputProps(props) {
91
78
  _classCallCheck(this, InputProps);
92
79
  var _this;
93
80
  _this = _super.call(this, props);
94
- _defineProperty(_assertThisInitialized(_this), "maxLength", void 0);
95
- _defineProperty(_assertThisInitialized(_this), "minLength", void 0);
96
- _defineProperty(_assertThisInitialized(_this), "placeholder", void 0);
97
- _defineProperty(_assertThisInitialized(_this), "i18n", void 0);
98
- var _props_maxLength;
99
- _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : "";
100
- var _props_minLength;
101
- _this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : "";
102
- var _props_placeholder;
103
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
104
- var _props_i18n;
105
- _this.i18n = (_props_i18n = props === null || props === void 0 ? void 0 : props.i18n) !== null && _props_i18n !== void 0 ? _props_i18n : false;
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;
106
89
  return _this;
107
90
  }
108
91
  return InputProps;
@@ -9,19 +9,6 @@ function _classCallCheck(instance, Constructor) {
9
9
  throw new TypeError("Cannot call a class as a function");
10
10
  }
11
11
  }
12
- function _defineProperty(obj, key, value) {
13
- if (key in obj) {
14
- Object.defineProperty(obj, key, {
15
- value: value,
16
- enumerable: true,
17
- configurable: true,
18
- writable: true
19
- });
20
- } else {
21
- obj[key] = value;
22
- }
23
- return obj;
24
- }
25
12
  function _getPrototypeOf(o) {
26
13
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
27
14
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -82,21 +69,19 @@ function _createSuper(Derived) {
82
69
  return _possibleConstructorReturn(this, result);
83
70
  };
84
71
  }
85
- import { BaseProps } from "./base";
86
- export var RadioProps = /*#__PURE__*/ function(BaseProps) {
72
+ import { BaseProps } from './base';
73
+ export var RadioProps = /*#__PURE__*/ function(BaseProps1) {
87
74
  "use strict";
88
- _inherits(RadioProps, BaseProps);
75
+ _inherits(RadioProps, BaseProps1);
89
76
  var _super = _createSuper(RadioProps);
90
77
  function RadioProps(props) {
91
78
  _classCallCheck(this, RadioProps);
92
79
  var _this;
93
80
  _this = _super.call(this, props);
94
- _defineProperty(_assertThisInitialized(_this), "options", void 0);
95
- _defineProperty(_assertThisInitialized(_this), "showType", void 0);
96
- var _props_options;
97
- _this.options = (_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [];
98
- var _props_showType;
99
- _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : "outline";
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';
100
85
  return _this;
101
86
  }
102
87
  return RadioProps;
@@ -9,19 +9,6 @@ function _classCallCheck(instance, Constructor) {
9
9
  throw new TypeError("Cannot call a class as a function");
10
10
  }
11
11
  }
12
- function _defineProperty(obj, key, value) {
13
- if (key in obj) {
14
- Object.defineProperty(obj, key, {
15
- value: value,
16
- enumerable: true,
17
- configurable: true,
18
- writable: true
19
- });
20
- } else {
21
- obj[key] = value;
22
- }
23
- return obj;
24
- }
25
12
  function _getPrototypeOf(o) {
26
13
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
27
14
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -82,21 +69,19 @@ function _createSuper(Derived) {
82
69
  return _possibleConstructorReturn(this, result);
83
70
  };
84
71
  }
85
- import { BaseProps } from "./base";
86
- export var SelectProps = /*#__PURE__*/ function(BaseProps) {
72
+ import { BaseProps } from './base';
73
+ export var SelectProps = /*#__PURE__*/ function(BaseProps1) {
87
74
  "use strict";
88
- _inherits(SelectProps, BaseProps);
75
+ _inherits(SelectProps, BaseProps1);
89
76
  var _super = _createSuper(SelectProps);
90
77
  function SelectProps(props) {
91
78
  _classCallCheck(this, SelectProps);
92
79
  var _this;
93
80
  _this = _super.call(this, props);
94
- _defineProperty(_assertThisInitialized(_this), "placeholder", void 0);
95
- _defineProperty(_assertThisInitialized(_this), "options", void 0);
96
- var _props_placeholder;
97
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
98
- var _props_options;
99
- _this.options = (_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [];
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 : [];
100
85
  return _this;
101
86
  }
102
87
  return SelectProps;
@@ -9,19 +9,6 @@ function _classCallCheck(instance, Constructor) {
9
9
  throw new TypeError("Cannot call a class as a function");
10
10
  }
11
11
  }
12
- function _defineProperty(obj, key, value) {
13
- if (key in obj) {
14
- Object.defineProperty(obj, key, {
15
- value: value,
16
- enumerable: true,
17
- configurable: true,
18
- writable: true
19
- });
20
- } else {
21
- obj[key] = value;
22
- }
23
- return obj;
24
- }
25
12
  function _getPrototypeOf(o) {
26
13
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
27
14
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -82,24 +69,21 @@ function _createSuper(Derived) {
82
69
  return _possibleConstructorReturn(this, result);
83
70
  };
84
71
  }
85
- import { BaseProps } from "./base";
86
- export var SwitchProps = /*#__PURE__*/ function(BaseProps) {
72
+ import { BaseProps } from './base';
73
+ export var SwitchProps = /*#__PURE__*/ function(BaseProps1) {
87
74
  "use strict";
88
- _inherits(SwitchProps, BaseProps);
75
+ _inherits(SwitchProps, BaseProps1);
89
76
  var _super = _createSuper(SwitchProps);
90
77
  function SwitchProps(props) {
91
78
  _classCallCheck(this, SwitchProps);
92
79
  var _this;
93
80
  _this = _super.call(this, props);
94
- _defineProperty(_assertThisInitialized(_this), "showType", void 0);
95
- _defineProperty(_assertThisInitialized(_this), "tips", void 0);
96
- _defineProperty(_assertThisInitialized(_this), "disabled", void 0);
97
- var _props_showType;
98
- _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : "switch";
99
- var _props_tips;
100
- _this.tips = (_props_tips = props === null || props === void 0 ? void 0 : props.tips) !== null && _props_tips !== void 0 ? _props_tips : "";
101
- var _props_disabled;
102
- _this.disabled = (_props_disabled = props === null || props === void 0 ? void 0 : props.disabled) !== null && _props_disabled !== void 0 ? _props_disabled : false;
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;
103
87
  return _this;
104
88
  }
105
89
  return SwitchProps;
@@ -9,19 +9,6 @@ function _classCallCheck(instance, Constructor) {
9
9
  throw new TypeError("Cannot call a class as a function");
10
10
  }
11
11
  }
12
- function _defineProperty(obj, key, value) {
13
- if (key in obj) {
14
- Object.defineProperty(obj, key, {
15
- value: value,
16
- enumerable: true,
17
- configurable: true,
18
- writable: true
19
- });
20
- } else {
21
- obj[key] = value;
22
- }
23
- return obj;
24
- }
25
12
  function _getPrototypeOf(o) {
26
13
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
27
14
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -82,33 +69,27 @@ function _createSuper(Derived) {
82
69
  return _possibleConstructorReturn(this, result);
83
70
  };
84
71
  }
85
- import { BaseProps } from "./base";
86
- export var TextareaProps = /*#__PURE__*/ function(BaseProps) {
72
+ import { BaseProps } from './base';
73
+ export var TextareaProps = /*#__PURE__*/ function(BaseProps1) {
87
74
  "use strict";
88
- _inherits(TextareaProps, BaseProps);
75
+ _inherits(TextareaProps, BaseProps1);
89
76
  var _super = _createSuper(TextareaProps);
90
77
  function TextareaProps(props) {
91
78
  _classCallCheck(this, TextareaProps);
92
79
  var _this;
93
80
  _this = _super.call(this, props);
94
- _defineProperty(_assertThisInitialized(_this), "maxLength", void 0);
95
- _defineProperty(_assertThisInitialized(_this), "minLength", void 0);
96
- _defineProperty(_assertThisInitialized(_this), "placeholder", void 0);
97
- _defineProperty(_assertThisInitialized(_this), "i18n", void 0);
98
- _defineProperty(_assertThisInitialized(_this), "maxRows", void 0);
99
- _defineProperty(_assertThisInitialized(_this), "minRows", void 0);
100
- var _props_maxLength;
101
- _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : "";
102
- var _props_minLength;
103
- _this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : "";
104
- var _props_placeholder;
105
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
106
- var _props_maxRows;
107
- _this.maxRows = (_props_maxRows = props === null || props === void 0 ? void 0 : props.maxRows) !== null && _props_maxRows !== void 0 ? _props_maxRows : "";
108
- var _props_minRows;
109
- _this.minRows = (_props_minRows = props === null || props === void 0 ? void 0 : props.minRows) !== null && _props_minRows !== void 0 ? _props_minRows : "";
110
- var _props_i18n;
111
- _this.i18n = (_props_i18n = props === null || props === void 0 ? void 0 : props.i18n) !== null && _props_i18n !== void 0 ? _props_i18n : false;
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;
112
93
  return _this;
113
94
  }
114
95
  return TextareaProps;
@@ -3,32 +3,14 @@ function _classCallCheck(instance, Constructor) {
3
3
  throw new TypeError("Cannot call a class as a function");
4
4
  }
5
5
  }
6
- function _defineProperty(obj, key, value) {
7
- if (key in obj) {
8
- Object.defineProperty(obj, key, {
9
- value: value,
10
- enumerable: true,
11
- configurable: true,
12
- writable: true
13
- });
14
- } else {
15
- obj[key] = value;
16
- }
17
- return obj;
18
- }
19
6
  export var Group = function Group(schema) {
20
7
  "use strict";
21
8
  _classCallCheck(this, Group);
22
- _defineProperty(this, "type", "group");
23
- _defineProperty(this, "title", void 0);
24
- _defineProperty(this, "required", void 0);
25
- _defineProperty(this, "items", void 0);
26
- _defineProperty(this, "tips", void 0);
27
- _defineProperty(this, "fromId", void 0);
28
- var _schema_title;
29
- this.title = (_schema_title = schema.title) !== null && _schema_title !== void 0 ? _schema_title : "";
30
- var _schema_required;
31
- this.required = (_schema_required = schema.required) !== null && _schema_required !== void 0 ? _schema_required : false;
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;
32
14
  this.items = schema.items;
33
15
  this.tips = schema.tips;
34
16
  };
@@ -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';
@@ -17,47 +17,24 @@ function _createClass(Constructor, protoProps, staticProps) {
17
17
  if (staticProps) _defineProperties(Constructor, staticProps);
18
18
  return Constructor;
19
19
  }
20
- function _defineProperty(obj, key, value) {
21
- if (key in obj) {
22
- Object.defineProperty(obj, key, {
23
- value: value,
24
- enumerable: true,
25
- configurable: true,
26
- writable: true
27
- });
28
- } else {
29
- obj[key] = value;
30
- }
31
- return obj;
32
- }
33
- import { BaseProps } from "../props/base";
34
- import { error, isPlainObject, noop } from "@byteluck-fe/model-driven-shared";
20
+ import { BaseProps } from '../props/base';
21
+ import { error, isPlainObject, noop } from '@byteluck-fe/model-driven-shared';
35
22
  export var Setting = /*#__PURE__*/ function() {
36
23
  "use strict";
37
24
  function Setting(schema) {
38
25
  _classCallCheck(this, Setting);
39
- _defineProperty(this, "type", void 0);
40
- _defineProperty(this, "label", void 0);
41
- _defineProperty(this, "key", void 0);
42
- _defineProperty(this, "component", void 0);
43
- _defineProperty(this, "effect", void 0);
44
- _defineProperty(this, "scopeEffect", void 0);
45
- _defineProperty(this, "defaultValue", void 0);
46
- _defineProperty(this, "validator", void 0);
47
- _defineProperty(this, "props", void 0);
48
- _defineProperty(this, "effectKeys", void 0);
49
26
  this.type = schema.type;
50
27
  this.label = schema.label;
51
28
  this.key = schema.key;
52
29
  this.component = schema.component;
53
- var _schema_effect;
54
- this.effect = (_schema_effect = schema.effect) !== null && _schema_effect !== void 0 ? _schema_effect : {};
55
- var _schema_scopeEffect;
56
- this.scopeEffect = (_schema_scopeEffect = schema.scopeEffect) !== null && _schema_scopeEffect !== void 0 ? _schema_scopeEffect : noop;
30
+ var _effect;
31
+ this.effect = (_effect = schema.effect) !== null && _effect !== void 0 ? _effect : {};
32
+ var _scopeEffect;
33
+ this.scopeEffect = (_scopeEffect = schema.scopeEffect) !== null && _scopeEffect !== void 0 ? _scopeEffect : noop;
57
34
  this.defaultValue = schema.defaultValue;
58
35
  this.validator = schema.validator;
59
- var _schema_props;
60
- this.props = (_schema_props = schema.props) !== null && _schema_props !== void 0 ? _schema_props : new BaseProps();
36
+ var _props;
37
+ this.props = (_props = schema.props) !== null && _props !== void 0 ? _props : new BaseProps();
61
38
  // private init
62
39
  this.effectKeys = Object.keys(this.effect);
63
40
  }
@@ -66,7 +43,7 @@ export var Setting = /*#__PURE__*/ function() {
66
43
  key: "filterEffects",
67
44
  value: function filterEffects(effectKey) {
68
45
  var _this = this;
69
- if (effectKey === "") {
46
+ if (effectKey === '') {
70
47
  return Object.values(this.effect);
71
48
  }
72
49
  return this.effectKeys.filter(function(key) {
@@ -3,28 +3,13 @@ function _classCallCheck(instance, Constructor) {
3
3
  throw new TypeError("Cannot call a class as a function");
4
4
  }
5
5
  }
6
- function _defineProperty(obj, key, value) {
7
- if (key in obj) {
8
- Object.defineProperty(obj, key, {
9
- value: value,
10
- enumerable: true,
11
- configurable: true,
12
- writable: true
13
- });
14
- } else {
15
- obj[key] = value;
16
- }
17
- return obj;
18
- }
19
6
  export function isTabSchema(schema) {
20
- return "type" in schema && schema.type === "tab";
7
+ return 'type' in schema && schema.type === 'tab';
21
8
  }
22
9
  export var Tab = function Tab(schema) {
23
10
  "use strict";
24
11
  _classCallCheck(this, Tab);
25
- _defineProperty(this, "type", "tab");
26
- _defineProperty(this, "title", void 0);
27
- _defineProperty(this, "items", void 0);
12
+ this.type = 'tab';
28
13
  this.title = schema.title;
29
14
  this.items = schema.items;
30
15
  };
package/dist/index.umd.js CHANGED
@@ -1,2 +1,2 @@
1
- var ya=Object.defineProperty,Sa=Object.defineProperties;var Ia=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var Ma=Object.prototype.hasOwnProperty,wa=Object.prototype.propertyIsEnumerable;var J=(c,B,E)=>B in c?ya(c,B,{enumerable:!0,configurable:!0,writable:!0,value:E}):c[B]=E,S=(c,B)=>{for(var E in B||(B={}))Ma.call(B,E)&&J(c,E,B[E]);if(X)for(var E of X(B))wa.call(B,E)&&J(c,E,B[E]);return c},I=(c,B)=>Sa(c,Ia(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 Q="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",Z="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",Y="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",ee="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",ue="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",te="{caption}\u5FC5\u586B",ne="\u8BF7\u8F93\u5165\u6807\u9898",ae="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",re="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",ie="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",le="\u8BF7\u7ED1\u5B9A\u8868\u5355",se="\u8BF7\u7ED1\u5B9A\u5217\u8868",oe="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",ce="\u8BF7\u8F93\u5165\u663E\u793A\u503C",Ee="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",Be="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",he="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",fe="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",me="\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",ve="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",de="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",ge="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",De="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Ce="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",be="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",ye="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Se="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Ie="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",Me="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",we="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",$e="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",_e="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Le="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Re="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",xe="\u8BF7\u9009\u62E9\u7701",Ue="\u8BF7\u9009\u62E9\u5E02",Ne="\u8BF7\u9009\u62E9\u533A",ke="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Te="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Pe="\u8BF7\u8F93\u5165\u5217\u5BBD",Ve="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Ge="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Oe="\u8BF7\u9009\u62E9\u63A7\u4EF6",ze="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",He="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",qe="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",je="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Ke="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",We="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Xe="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Je="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Qe="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Ze="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Ye="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",eu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",uu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",tu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",nu="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",au="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",ru="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",iu="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",lu="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",su="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",ou="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",cu={isNotNumber:Q,isNotString:Z,isNotObject:Y,isNotArray:ee,isNotBoolean:ue,runtimeRequired:te,pleaseEnterCaption:ne,pleaseEnterCaptionTip:ae,pleaseEnterPlaceholder:re,pleaseEnterFieldCode:ie,pleaseEnterForm:le,pleaseEnterList:se,pleaseEnterProcess:oe,pleaseEnterLabel:ce,pleaseEnterValue:Ee,bizKeyNotBindFiled:Be,pleaseSelectOneField:he,pleaseEnterNumberRange:fe,pleaseEnterAValueGreaterThanMin:me,pleaseEnterAValueLessThanMax:Ae,numberRangeSetError:pe,stringRangeError:Fe,attachmentMaxSize:ve,pleaseEnterTotalScoreSetting:de,theTotalScoreMustNotBeLessThan1:ge,scoreDefaultValueRange:De,attachmentLimitError:Ce,PleaseReselectTheOptionalQuantity:be,TheMaximumLengthIsGreaterThanTheMinimumLength:ye,TheMinimumLengthIsGreaterThanTheMaximumLength:Se,PleaseSelectTheCorrectOptionSettings:Ie,optionIdIsRepeat:Me,optionIsRequired:we,pleaseEnterDataCode:$e,pleaseEnterValueFieldCode:_e,pleaseEnterSvcCode:Le,pleaseBindAtLeastOneDisplayValue:Re,pleaseSelectProvince:xe,pleaseSelectCity:Ue,pleaseSelectDistrict:Ne,limitRowsCannotBeLessThan0:ke,TheNumberOfRowsCannotBeLessThanMinRows:Te,pleaseEnterColumnWidth:Pe,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Ve,pleaseCompleteAllRulesAndConditions:Ge,pleaseSelectControl:Oe,pleaseSelectAtLeastOneColumn:ze,pleaseSelectFillBackMode:He,pleaseSelectDashboard:qe,rootNodeIsRequired:je,theViewNameCannotBeEmpty:Ke,pleaseSelectOcrType:We,pleaseSelectAtLeastOneFieldToFillIn:Xe,pleaseChooseAtLeastOne:Je,pleaseEnterButtonContent:Qe,pleaseEnterDataCodeInDataSetting:Ze,pleaseEnterValueFieldCodeInDataSetting:Ye,pleaseEnterSvcCodeInDataSetting:eu,pleaseBindAtLeastOneDisplayValueInDataSetting:uu,rootNodeIsRequiredInDataSetting:tu,pleaseEnterMaxHeight:nu,pleaseEnter:au,pleaseEnterWatermark:ru,pleaseEnterFileName:iu,pleaseUploadAtLeastOnePrintTemplate:lu,pleaseAssignBusiness:su,pleaseAssignExternal:ou},Eu="Please enter a number",Bu="Please enter a string",hu="Please enter an object",fu="Please enter an array",mu="Please enter a boolean",Au="{caption} Required",pu="Please enter the title",Fu="Please enter the bubble prompt",vu="Please enter the prompt text",du="Please bind data items",gu="Please bind the form",Du="Please bind the list",Cu="Please bind the process",bu="Please enter the displayed value",yu="Please enter the stored value",Su="The document number is not bound to the data item",Iu="Please select at least one display field",Mu="Please enter a value greater than or equal to {min} and less than or equal to {max}",wu="Please enter a value greater than or equal to {min}",$u="Please enter a value less than or equal to {max}",_u="The value range is set incorrectly",Lu="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",xu="Please fill in the total score setting",Uu="The total score cannot be less than 1",Nu="The default value must be between {min} and {max}",ku="The number of attachments uploaded must be between {min} and {max}",Tu="Please re-select the optional quantity",Pu="The maximum length of the control must be greater than the minimum length",Vu="The minimum length of the control must be less than the maximum length",Gu="Please select the correct option setting",Ou="Option ID cannot be repeated",zu="Please enter at least one option",Hu="Please bind the data source",qu="Please bind the stored value",ju="Please bind the service",Ku="At least one display value must be bound",Wu="Please select a province",Xu="Please select a city",Ju="Please select a district",Qu="The minimum number of lines to fill in cannot be less than 0",Zu="The number of rows cannot be less than {min} rows",Yu="Please enter the column width",et="Please set the logical relationship of all rule conditions",ut="Please complete all rules and conditions",tt="please select control",nt="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",at="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",rt="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",it="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",lt="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",st="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",ot="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",ct="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Et="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Bt="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",ht="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ft="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",mt="\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",vt="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",dt="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",gt={isNotNumber:Eu,isNotString:Bu,isNotObject:hu,isNotArray:fu,isNotBoolean:mu,runtimeRequired:Au,pleaseEnterCaption:pu,pleaseEnterCaptionTip:Fu,pleaseEnterPlaceholder:vu,pleaseEnterFieldCode:du,pleaseEnterForm:gu,pleaseEnterList:Du,pleaseEnterProcess:Cu,pleaseEnterLabel:bu,pleaseEnterValue:yu,bizKeyNotBindFiled:Su,pleaseSelectOneField:Iu,pleaseEnterNumberRange:Mu,pleaseEnterAValueGreaterThanMin:wu,pleaseEnterAValueLessThanMax:$u,numberRangeSetError:_u,stringRangeError:Lu,attachmentMaxSize:Ru,pleaseEnterTotalScoreSetting:xu,theTotalScoreMustNotBeLessThan1:Uu,scoreDefaultValueRange:Nu,attachmentLimitError:ku,PleaseReselectTheOptionalQuantity:Tu,TheMaximumLengthIsGreaterThanTheMinimumLength:Pu,TheMinimumLengthIsGreaterThanTheMaximumLength:Vu,PleaseSelectTheCorrectOptionSettings:Gu,optionIdIsRepeat:Ou,optionIsRequired:zu,pleaseEnterDataCode:Hu,pleaseEnterValueFieldCode:qu,pleaseEnterSvcCode:ju,pleaseBindAtLeastOneDisplayValue:Ku,pleaseSelectProvince:Wu,pleaseSelectCity:Xu,pleaseSelectDistrict:Ju,limitRowsCannotBeLessThan0:Qu,TheNumberOfRowsCannotBeLessThanMinRows:Zu,pleaseEnterColumnWidth:Yu,pleaseSetTheLogicalRelationshipOfAllRuleConditions:et,pleaseCompleteAllRulesAndConditions:ut,pleaseSelectControl:tt,pleaseSelectDashboard:nt,theViewNameCannotBeEmpty:at,pleaseSelectOcrType:rt,pleaseSelectAtLeastOneFieldToFillIn:it,pleaseChooseAtLeastOne:lt,pleaseEnterButtonContent:st,pleaseEnterDataCodeInDataSetting:ot,pleaseEnterValueFieldCodeInDataSetting:ct,pleaseEnterSvcCodeInDataSetting:Et,pleaseBindAtLeastOneDisplayValueInDataSetting:Bt,rootNodeIsRequiredInDataSetting:ht,pleaseEnterMaxHeight:ft,pleaseEnter:mt,pleaseEnterWatermark:At,pleaseEnterFileName:pt,pleaseUploadAtLeastOnePrintTemplate:Ft,pleaseAssignBusiness:vt,pleaseAssignExternal:dt},Dt="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ct="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",bt="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",yt="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",St="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",It="{caption}\u5FC5\u9808",Mt="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",wt="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",$t="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",_t="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Lt="\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",xt="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ut="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Nt="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",kt="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",Tt="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Pt="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Vt="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Gt="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ot="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",zt="\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",qt="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",jt="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Kt="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Wt="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Xt="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Jt="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5927\u5024\u306F\u6700\u5C0F\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Qt="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5C0F\u5024\u306F\u6700\u5927\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Zt="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Yt="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",en="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",un="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",tn="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",nn="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",an="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",rn="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ln="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",sn="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",on="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",cn="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",En="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Bn="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",hn="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",fn="please select control",mn="\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",vn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",dn="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",gn="\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",Cn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",bn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",yn="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Sn="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",In="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Mn="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",wn="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",$n="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",_n="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Ln="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Rn={isNotNumber:Dt,isNotString:Ct,isNotObject:bt,isNotArray:yt,isNotBoolean:St,runtimeRequired:It,pleaseEnterCaption:Mt,pleaseEnterCaptionTip:wt,pleaseEnterPlaceholder:$t,pleaseEnterFieldCode:_t,pleaseEnterForm:Lt,pleaseEnterList:Rt,pleaseEnterProcess:xt,pleaseEnterLabel:Ut,pleaseEnterValue:Nt,bizKeyNotBindFiled:kt,pleaseSelectOneField:Tt,pleaseEnterNumberRange:Pt,pleaseEnterAValueGreaterThanMin:Vt,pleaseEnterAValueLessThanMax:Gt,numberRangeSetError:Ot,stringRangeError:zt,attachmentMaxSize:Ht,pleaseEnterTotalScoreSetting:qt,theTotalScoreMustNotBeLessThan1:jt,scoreDefaultValueRange:Kt,attachmentLimitError:Wt,PleaseReselectTheOptionalQuantity:Xt,TheMaximumLengthIsGreaterThanTheMinimumLength:Jt,TheMinimumLengthIsGreaterThanTheMaximumLength:Qt,PleaseSelectTheCorrectOptionSettings:Zt,optionIdIsRepeat:Yt,optionIsRequired:en,pleaseEnterDataCode:un,pleaseEnterValueFieldCode:tn,pleaseEnterSvcCode:nn,pleaseBindAtLeastOneDisplayValue:an,pleaseSelectProvince:rn,pleaseSelectCity:ln,pleaseSelectDistrict:sn,limitRowsCannotBeLessThan0:on,TheNumberOfRowsCannotBeLessThanMinRows:cn,pleaseEnterColumnWidth:En,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Bn,pleaseCompleteAllRulesAndConditions:hn,pleaseSelectControl:fn,pleaseSelectDashboard:mn,theViewNameCannotBeEmpty:An,pleaseSelectOcrType:pn,pleaseSelectAtLeastOneFieldToFillIn:Fn,pleaseChooseAtLeastOne:vn,pleaseEnterButtonContent:dn,pleaseEnterDataCodeInDataSetting:gn,pleaseEnterValueFieldCodeInDataSetting:Dn,pleaseEnterSvcCodeInDataSetting:Cn,pleaseBindAtLeastOneDisplayValueInDataSetting:bn,rootNodeIsRequiredInDataSetting:yn,pleaseEnterMaxHeight:Sn,pleaseEnter:In,pleaseEnterWatermark:Mn,pleaseEnterFileName:wn,pleaseUploadAtLeastOnePrintTemplate:$n,pleaseAssignBusiness:_n,pleaseAssignExternal:Ln},xn={zhCN:cu,enUS:gt,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 R;(function(e){e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN"})(R||(R={}));var Un="zh-CN",Nn=function(){};function p(e,u,t){return u in e?Object.defineProperty(e,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[u]=t,e}var x;(function(e){e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search"})(x||(x={}));var f;(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.ORGANIZATION_SELECTION="organization-selection",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"})(f||(f={}));var m;(function(e){e.VARCHAR="varchar",e.TEXT="text",e.ARRAY="array",e.ADDRESS="location",e.DECIMAL="decimal",e.DECIMAL_RANGE="decimal_range",e.TIMESTAMP="timestamp",e.EMPLOYEES="people",e.DEPARTMENTS="department",e.MONEY="money",e.TIMESCOPE="timescope",e.FILE="file",e.IMAGE="image",e.AUTO_NUMBER="auto_number",e.CALC="calc",e.RELATION="relation",e.LIST="list",e.RELATION_FIELD="relation-field",e.REFERENCE_FIELD="reference-field",e.CALC_FIELD="calc",e.JSON="json",e.BIGINT="bigint",e.ANY="ANY",e.ENCRYPTED_FIELD="encrypted_field"})(m||(m={}));var A;A={},p(A,m.ARRAY,f.ARRAY_COLUMN),p(A,m.AUTO_NUMBER,f.AUTO_NUMBER_COLUMN),p(A,m.DECIMAL,f.DECIMAL_COLUMN),p(A,m.DEPARTMENTS,f.DEPARTMENT_COLUMN),p(A,m.FILE,f.FILE_COLUMN),p(A,m.IMAGE,f.IMAGE_COLUMN),p(A,m.ADDRESS,f.LOCATION_COLUMN),p(A,m.EMPLOYEES,f.EMPLOYEE_COLUMN),p(A,m.TEXT,f.TEXT_COLUMN),p(A,m.TIMESCOPE,f.TIMESCOPE_COLUMN),p(A,m.TIMESTAMP,f.TIMESTAMP_COLUMN),p(A,m.VARCHAR,f.VARCHAR_COLUMN),p(A,m.RELATION,f.VARCHAR_COLUMN);var U;(function(e){e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATETIME="datetime"})(U||(U={}));function kn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tn(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}function Pn(){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 y(e,u,t){return Pn()?y=Reflect.construct:y=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},y.apply(null,arguments)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},g(e)}function Vn(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 Gn(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function On(e,u){return u&&(zn(u)==="object"||typeof u=="function")?u:kn(e)}function D(e,u){return D=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},D(e,u)}var zn=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||!Gn(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 y(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 qn(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 On(this,a)}}function jn(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Kn=function(e){Vn(t,e);var u=qn(t);function t(n){Tn(this,t);var a;return a=u.call(this,n),a.name="\u{1F4A5} Driven Error",a.message=n?jn(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 Wn(e){throw new Kn(e)}var Xn=Object.prototype.toString;function N(e,u){return Xn.call(e)==="[object "+u+"]"}function Jn(e){return N(e,"String")}function Qn(e){return N(e,"Promise")}var Zn=function(){function e(u){var t,n;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((n=(t=u.messages)!==null&&t!==void 0?t:this.getPreImport(u.locale))!==null&&n!==void 0?n:{}),u.variableRegExp&&(this.variableRegExp=u.variableRegExp),this.setLocale(u.locale)}return e.prototype.setLocale=function(u){var t=this;this.locale=u,this._messageCache.clear();var n=this.getMessageData();Qn(n)?n.then(function(a){t._messageCache.clear(),t.messages[t.localeInMessageKey]=a}):this.messages[this.localeInMessageKey]=n},e.prototype.getMessageData=function(){var u=this._messages[this.localeInMessageKey];return typeof u=="function"?u():u},e.prototype.translate=function(u,t,n){var a=this.getMessage(u);return a?this.formatMessage(a,n):this.formatMessage(t,n)},e.prototype.getMessage=function(u){if(this._messageCache.has(u))return this._messageCache.get(u);var t=this.getPathArray(u),n=t.reduce(function(a,o,s,h){if(a!==void 0){var d=a[o];if(!(s===h.length-1&&!Jn(d)))return d}},this.message);return this._messageCache.set(u,n),n},e.prototype.formatMessage=function(u,t){return t?u.replace(this.variableRegExp,function(n,a){var o=t[a];return o!==void 0?String(o):n}):u},e.prototype.getPreImport=function(u){var t;if(window.okI18nPreImport){var n=this.getLocaleInMessageKey(u);return window.okI18nPreImport.hasOwnProperty(n)?window.okI18nPreImport:(t={},t[n]=window.okI18nPreImport,t)}},e.prototype.getPathArray=function(u){return u.split(".")},e.prototype.getLocaleInMessageKey=function(u){return u.replace(/-/g,"")},Object.defineProperty(e.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){var u;return(u=this.messages[this.localeInMessageKey])!==null&&u!==void 0?u:{}},enumerable:!1,configurable:!0}),e}();function Yn(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}function k(e,u){for(var t=0;t<u.length;t++){var n=u[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ea(e,u,t){return u&&k(e.prototype,u),t&&k(e,t),e}function ua(e,u,t){return u in e?Object.defineProperty(e,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[u]=t,e}var T=function(){function e(){Yn(this,e)}return ea(e,null,[{key:"getMessage",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(t,"",n)}},{key:"resetI18n",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Un;return new Zn({locale:t,messages:xn})}},{key:"setLocale",value:function(t){return this.$i18n.setLocale(t)}}]),e}();ua(T,"$i18n",T.resetI18n());var ta=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},na={exports:{}};(function(e){(function(u){var t=function(r,i,F){if(!l(i)||ga(i)||Da(i)||Ca(i)||d(i))return i;var v,b=0,W=0;if(C(i))for(v=[],W=i.length;b<W;b++)v.push(t(r,i[b],F));else{v={};for(var _ in i)Object.prototype.hasOwnProperty.call(i,_)&&(v[r(_,F)]=t(r,i[_],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 ba(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]"},ga=function(r){return h.call(r)=="[object Date]"},Da=function(r){return h.call(r)=="[object RegExp]"},Ca=function(r){return h.call(r)=="[object Boolean]"},ba=function(r){return r=r-0,r===r},$=function(r,i){var F=i&&"process"in i?i.process:i;return typeof F!="function"?r:function(v,b){return F(v,r,b)}},K={camelize:a,decamelize:s,pascalize:o,depascalize:s,camelizeKeys:function(r,i){return t($(a,i),r)},decamelizeKeys:function(r,i){return t($(s,i),r,i)},pascalizeKeys:function(r,i){return t($(o,i),r)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=K:u.humps=K})(ta)})(na);var P={};Object.defineProperty(P,"__esModule",{value:!0});function w(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(u=>typeof u!="object"||u===null?u:w(u));{const u={};for(const t in e){const n=e[t];u[t]=typeof n!="object"||n===null?n:w(n)}return u}}P.default=w;function V(e){return Object.prototype.toString.call(e)==="[object Object]"}function aa(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}function G(e,u){for(var t=0;t<u.length;t++){var n=u[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ra(e,u,t){return u&&G(e.prototype,u),t&&G(e,t),e}function ia(e,u,t){return u in e?Object.defineProperty(e,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[u]=t,e}var la=[{key:"on_click",name:"\u70B9\u51FB\u65F6",code:"click"},{key:"on_click_finish",name:"\u6267\u884C\u5B8C\u6210\u65F6",code:"click-finish"},{key:"on_change",name:"\u503C\u53D1\u751F\u53D8\u5316\u65F6",code:"change"},{key:"on_search",name:"\u641C\u7D22\u65F6",code:"search"},{key:"on_list_change",name:"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",code:"list-change"},{key:"on_list_search",name:"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",code:"list-search"},{key:"on_list_mounted",name:"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",code:"list-mounted"},{key:"on_list_delete",name:"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",code:"list-delete"},{key:"on_list_before_insert",name:"\u5217\u8868\u6570\u636E\u63D2\u5165\u524D",code:"list-before-insert"},{key:"on_input",name:"\u7528\u6237\u8F93\u5165\u65F6",code:"input"},{key:"on_blur",name:"\u5931\u53BB\u7126\u70B9\u65F6",code:"blur"},{key:"on_focus",name:"\u83B7\u53D6\u7126\u70B9\u65F6",code:"focus"},{key:"on_wps_open",name:"\u6253\u5F00\u6587\u4EF6\u65F6",code:"wps-open"},{key:"on_wps_save",name:"\u4FDD\u5B58\u6587\u4EF6\u65F6",code:"wps-save"},{key:"on_wps_rename",name:"\u91CD\u547D\u540D\u65F6",code:"wps-rename"},{key:"on_list_actions",name:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",code:"list-actions"},{key:"on_list_render_operation",name:"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",code:"list-render-operation"},{key:"on_list_rowclick",name:"\u884C\u70B9\u51FB\u65F6",code:"list-rowclick"},{key:"on_list_before_rowdelete",name:"\u884C\u5220\u9664\u524D",code:"list-before-rowdelete"},{key:"on_list_before_import",name:"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",code:"list-before-import"},{key:"on_list_rows_checked",name:"\u884C\u9009\u4E2D\u65F6",code:"list-rows-checked"},{key:"on_change_tab",name:"\u6807\u7B7E\u9875\u5207\u6362\u65F6",code:"change-tab"},{key:"on_modal_ok",name:"\u5F39\u7A97\u786E\u8BA4\u65F6",code:"modal-ok"}],sa=function(){function e(){aa(this,e)}return ra(e,[{key:"getEventsFromKeys",value:function(t){var n=typeof t=="string"?[t]:t;return e.events.filter(function(a){return n.includes(a.key)})}}]),e}();ia(sa,"events",la);class O{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:Nn,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){Wn(`effect error
2
- ${n}`)}}callEffect(u,...t){this.filterEffects(u).forEach(n=>this.callEffectFn(n,t))}callScopeEffect(...u){this.callEffectFn(this.scopeEffect,u)}}class z{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 q{constructor(u){this.type="tab",this.title=u.title,this.items=u.items}}class oa extends E{constructor(u){super(u),V(u)&&Object.entries(u).forEach(([t,n])=>{this[t]=n})}}class ca extends E{constructor(u){var t,n,a,o;super(u),this.maxLength=(t=u==null?void 0:u.maxLength)!=null?t:"",this.minLength=(n=u==null?void 0:u.minLength)!=null?n:"",this.placeholder=(a=u==null?void 0:u.placeholder)!=null?a:"",this.i18n=(o=u==null?void 0:u.i18n)!=null?o:!1}}class Ea extends E{constructor(u){var t,n,a;super(u),this.max=(t=u==null?void 0:u.max)!=null?t:"",this.min=(n=u==null?void 0:u.min)!=null?n:"",this.placeholder=(a=u==null?void 0:u.placeholder)!=null?a:""}}class Ba 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 ha extends E{constructor(u){var t;super(u),this.options=(t=u==null?void 0:u.options)!=null?t:[]}}class fa 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 ma 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 Aa 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 pa(e,u){switch(e){case"input":return new ca(u);case"textarea":return new Aa(u);case"input-number":return new Ea(u);case"switch":return new Ba(u);case"radio":return new ma(u);case"checkbox":return new ha(u);case"select":return new fa(u);default:return new oa(u)}}function Fa(e){return function(u){const t=e.get(u);if(!!t)return new O(I(S({},t),{props:pa(t.component,"props"in t?t.props:void 0)}))}}function va(e){const u=e.fields.reduce((a,o)=>(a.set(o.key,o),a),new Map);function t(a){return new z(I(S({},a),{items:a.items.map(Fa(u)).filter(Boolean)}))}function n(a){return a.map(t)}return e.groups.map(a=>H(a)?new q(I(S({},a),{items:n(a.items)})):t(a))}function j(){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 da(e){return[...j(),{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=z,c.Setting=O,c.Tab=q,c.createBaseFields=j,c.createFormBaseFields=da,c.defineInstance=B,c.initSettings=va,c.isTabSchema=H,Object.defineProperty(c,"__esModule",{value:!0})});
1
+ var fa=Object.defineProperty,va=Object.defineProperties;var da=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var ga=Object.prototype.hasOwnProperty,Ca=Object.prototype.propertyIsEnumerable;var W=(l,c,s)=>c in l?fa(l,c,{enumerable:!0,configurable:!0,writable:!0,value:s}):l[c]=s,S=(l,c)=>{for(var s in c||(c={}))ga.call(c,s)&&W(l,s,c[s]);if(K)for(var s of K(c))Ca.call(c,s)&&W(l,s,c[s]);return l},I=(l,c)=>va(l,da(c));(function(l,c){typeof exports=="object"&&typeof module!="undefined"?c(exports,require("regenerator-runtime")):typeof define=="function"&&define.amd?define(["exports","regenerator-runtime"],c):(l=typeof globalThis!="undefined"?globalThis:l||self,c(l.modelDrivenSettings={}))})(this,function(l){"use strict";function c(e){return e}class s{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",me="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",Fe="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",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",Ce="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",De="\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",Ie="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",ye="\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",Oe="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",ze="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",He="\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:me,attachmentMaxSize:Fe,pleaseEnterTotalScoreSetting:fe,theTotalScoreMustNotBeLessThan1:ve,scoreDefaultValueRange:de,attachmentLimitError:ge,PleaseReselectTheOptionalQuantity:Ce,TheMaximumLengthIsGreaterThanTheMinimumLength:De,TheMinimumLengthIsGreaterThanTheMaximumLength:be,PleaseSelectTheCorrectOptionSettings:Se,optionIdIsRepeat:Ie,optionIsRequired:ye,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:Oe,pleaseSelectDashboard:ze,rootNodeIsRequired:He,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",mu="Please enter the bubble prompt",Fu="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",Cu="Please enter the displayed value",Du="Please enter the stored value",bu="The document number is not bound to the data item",Su="Please select at least one display field",Iu="Please enter a value greater than or equal to {min} and less than or equal to {max}",yu="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",Ou="Please bind the data source",zu="Please bind the stored value",Hu="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",mt="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Ft="\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:mu,pleaseEnterPlaceholder:Fu,pleaseEnterFieldCode:fu,pleaseEnterForm:vu,pleaseEnterList:du,pleaseEnterProcess:gu,pleaseEnterLabel:Cu,pleaseEnterValue:Du,bizKeyNotBindFiled:bu,pleaseSelectOneField:Su,pleaseEnterNumberRange:Iu,pleaseEnterAValueGreaterThanMin:yu,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:Ou,pleaseEnterValueFieldCode:zu,pleaseEnterSvcCode:Hu,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:mt,pleaseAssignBusiness:Ft,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",Ct="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Dt="\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",It="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",yt="\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",Ot="\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",Ht="\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",mn="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Fn="\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",Cn="\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",bn="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Sn="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",In="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",yn="\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:Ct,isNotArray:Dt,isNotBoolean:bt,runtimeRequired:St,pleaseEnterCaption:It,pleaseEnterCaptionTip:yt,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:Ot,pleaseEnterTotalScoreSetting:zt,theTotalScoreMustNotBeLessThan1:Ht,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:mn,pleaseChooseAtLeastOne:Fn,pleaseEnterButtonContent:fn,pleaseEnterDataCodeInDataSetting:vn,pleaseEnterValueFieldCodeInDataSetting:dn,pleaseEnterSvcCodeInDataSetting:gn,pleaseBindAtLeastOneDisplayValueInDataSetting:Cn,rootNodeIsRequiredInDataSetting:Dn,pleaseEnterMaxHeight:bn,pleaseEnter:Sn,pleaseEnterWatermark:In,pleaseEnterFileName:yn,pleaseUploadAtLeastOnePrintTemplate:Mn,pleaseAssignBusiness:$n,pleaseAssignExternal:wn},Ln={zhCN:su,enUS:vt,jaJP:Rn},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 xn="zh-CN",Un=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.ORGANIZATION_SELECTION="organization-selection",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 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 D(e,u,t){return Tn()?D=Reflect.construct:D=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},D.apply(null,arguments)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(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&&g(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 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||!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 D(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 On(){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=On();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 kn(this,a)}}function Hn(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?Hn(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 qn(e){throw new jn(e)}var Kn=Object.prototype.toString;function N(e,u){return Kn.call(e)==="[object "+u+"]"}function Wn(e){return N(e,"String")}function Xn(e){return N(e,"Promise")}var Jn=function(){function e(u){var t,n;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((n=(t=u.messages)!==null&&t!==void 0?t:this.getPreImport(u.locale))!==null&&n!==void 0?n:{}),u.variableRegExp&&(this.variableRegExp=u.variableRegExp),this.setLocale(u.locale)}return e.prototype.setLocale=function(u){var t=this;this.locale=u,this._messageCache.clear();var n=this.getMessageData();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,m,p){if(a!==void 0){var v=a[o];if(!(m===p.length-1&&!Wn(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 Qn(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}function _(e,u){for(var t=0;t<u.length;t++){var n=u[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Zn(e,u,t){return u&&_(e.prototype,u),t&&_(e,t),e}var T=function(){function e(){Qn(this,e)}return Zn(e,null,[{key:"getMessage",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(t,"",n)}},{key:"resetI18n",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xn;return new Jn({locale:t,messages:Ln})}},{key:"setLocale",value:function(t){return this.$i18n.setLocale(t)}}]),e}();T.$i18n=T.resetI18n();var Yn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ea={exports:{}};(function(e){(function(u){var t=function(r,i,F){if(!b(i)||Aa(i)||pa(i)||ma(i)||v(i))return i;var f,C=0,q=0;if(ha(i))for(f=[],q=i.length;C<q;C++)f.push(t(r,i[C],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 Fa(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)},ha=function(r){return p.call(r)=="[object Array]"},Aa=function(r){return p.call(r)=="[object Date]"},pa=function(r){return p.call(r)=="[object RegExp]"},ma=function(r){return p.call(r)=="[object Boolean]"},Fa=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,C){return F(f,r,C)}},j={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=j:u.humps=j})(Yn)})(ea);var P={};Object.defineProperty(P,"__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}}P.default=M;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 s,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 O(e){return"type"in e&&e.type==="tab"}class z{constructor(u){this.type="tab",this.title=u.title,this.items=u.items}}class ua extends s{constructor(u){super(u);V(u)&&Object.entries(u).forEach(([t,n])=>{this[t]=n})}}class ta extends s{constructor(u){super(u);var t,n,a,o;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 na extends s{constructor(u){super(u);var t,n,a;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 aa extends s{constructor(u){super(u);var t,n,a;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 ra extends s{constructor(u){super(u);var t;this.options=(t=u==null?void 0:u.options)!=null?t:[]}}class ia extends s{constructor(u){super(u);var t,n;this.placeholder=(t=u==null?void 0:u.placeholder)!=null?t:"",this.options=(n=u==null?void 0:u.options)!=null?n:[]}}class la extends s{constructor(u){super(u);var t,n;this.options=(t=u==null?void 0:u.options)!=null?t:[],this.showType=(n=u==null?void 0:u.showType)!=null?n:"outline"}}class sa extends s{constructor(u){super(u);var t,n,a,o,m,p;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 oa(e,u){switch(e){case"input":return new ta(u);case"textarea":return new sa(u);case"input-number":return new na(u);case"switch":return new aa(u);case"radio":return new la(u);case"checkbox":return new ra(u);case"select":return new ia(u);default:return new ua(u)}}function ca(e){return function(u){const t=e.get(u);if(!!t)return new k(I(S({},t),{props:oa(t.component,"props"in t?t.props:void 0)}))}}function Ea(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(ca(u)).filter(Boolean)}))}function n(a){return a.map(t)}return e.groups.map(a=>O(a)?new z(I(S({},a),{items:n(a.items)})):t(a))}function H(){return[{label:"\u9690\u85CF",key:"isHide",type:"boolean",component:"switch"},{key:"superSetting",component:"super-setting"},{key:"style.width",component:"styleComponent",props:{configKey:"style.widthConfig",options:["px","%","fill","hug"]},scopeEffect(e,u){const{oldParent:t,newParent:n,instance:a}=u;if((t==null?void 0:t.type)==="advanced-container"&&n.type==="positioning-container"&&(e.setInstance(a,"style.width",""),e.setInstance(a,"style.widthConfig","fill")),n)return{visible:n.type==="advanced-container"}}},{key:"style.height",component:"styleComponent",props:{configKey:"style.heightConfig",options:["px","%","fill","hug"]},scopeEffect(e,u){const{oldParent:t,newParent:n,instance:a}=u;if((t==null?void 0:t.type)==="advanced-container"&&n.type==="positioning-container"&&(e.setInstance(a,"style.height",""),e.setInstance(a,"style.heightConfig","fill")),u.newParent)return{visible:u.newParent.type==="advanced-container"}}}]}function Ba(e){return[...H(),{type:"DataBind",key:"dataBind",component:"data-bind",defaultValue:e==null?void 0:e.dataBind},{key:"caption",type:"string",component:"input",props:{maxLength:80,i18n:!0},defaultValue:e==null?void 0:e.caption,validator(u){if(!u)return"\u6807\u9898\u5FC5\u586B"}},{label:"\u9690\u85CF\u6807\u9898",key:"isHideCaption",type:"boolean",component:"switch",defaultValue:e==null?void 0:e.isHideCaption,props:{showType:"checkbox"},scopeEffect(u,t){var n,a;if(((n=t.current)==null?void 0:n.type)!==((a=t.from)==null?void 0:a.type))return t.current.type==="subtable"&&u.setInstance(t.control,"isHideCaption",!0),{visible:t.current.type!=="subtable"}}},{key:"labelPosition",type:"string",component:"radio",defaultValue:e==null?void 0:e.labelPosition,props:{showType:"solid",options:[{label:"\u4E0A\u4E0B\u5E03\u5C40",value:"top"},{label:"\u5DE6\u53F3\u5E03\u5C40",value:"left"}]}},{key:"defaultState",type:"string",component:"radio",defaultValue:e==null?void 0:e.defaultState,props:{showType:"solid",options:[{label:"\u666E\u901A",value:"default"},{label:"\u53EA\u8BFB",value:"readonly"}]}},{label:"\u5FC5\u586B",key:"required",type:"boolean",component:"switch",defaultValue:e==null?void 0:e.required},{label:"\u63D0\u793A\u6587\u5B57",key:"placeholder",type:"string",component:"input",defaultValue:e==null?void 0:e.placeholder,props:{maxLength:80,i18n:!0}}]}l.Group=G,l.Setting=k,l.Tab=z,l.createBaseFields=H,l.createFormBaseFields=Ba,l.defineInstance=c,l.initSettings=Ea,l.isTabSchema=O,Object.defineProperty(l,"__esModule",{value:!0})});
@@ -62,12 +62,12 @@ interface CustomSchema extends BaseSchema<CustomProps> {
62
62
  component: string;
63
63
  props?: Partial<CustomProps>;
64
64
  }
65
- export type SettingSchemas = InputSchema | InputNumberSchema | TextareaSchema | SwitchSchema | SelectSchema | CheckboxSchema | RadioSchema | CustomSchema;
65
+ export declare type SettingSchemas = InputSchema | InputNumberSchema | TextareaSchema | SwitchSchema | SelectSchema | CheckboxSchema | RadioSchema | CustomSchema;
66
66
  export interface RuntimeValidator {
67
67
  (props: any, value: unknown, i18n: string): string | boolean | void;
68
68
  }
69
- export type FieldSchema = SettingSchemas | BaseSchema<{}>;
70
- export type GroupsSchema = GroupSchema[] | TabSchema[];
69
+ export declare type FieldSchema = SettingSchemas | BaseSchema<{}>;
70
+ export declare type GroupsSchema = GroupSchema[] | TabSchema[];
71
71
  export interface DefineInstanceParams {
72
72
  fields: FieldSchema[];
73
73
  groups: GroupsSchema;
@@ -9,6 +9,6 @@ import { SelectProps } from './props/select';
9
9
  import { RadioProps } from './props/radio';
10
10
  import { TextareaProps } from './props/textarea';
11
11
  import { Tab } from './schema/tab';
12
- export type Props = CustomProps | InputProps | TextareaProps | InputNumberProps | SwitchProps | CheckboxProps | RadioProps | SelectProps;
13
- export type Settings = Group[] | Tab[];
12
+ export declare type Props = CustomProps | InputProps | TextareaProps | InputNumberProps | SwitchProps | CheckboxProps | RadioProps | SelectProps;
13
+ export declare type Settings = Group[] | Tab[];
14
14
  export declare function initSettings(params: DefineInstanceParams): Settings;
@@ -2,8 +2,8 @@ import { BaseProps } from '../props/base';
2
2
  export interface EffectFn<Props extends object> {
3
3
  (driven: any, payload: any): void | Partial<Props>;
4
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;
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
7
  export interface BaseSchema<Props extends object> {
8
8
  /**
9
9
  * 数据类型,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-settings",
3
- "version": "2.5.0-alpha.10",
3
+ "version": "2.5.0-alpha.14",
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.5.0-alpha.10",
29
+ "@byteluck-fe/model-driven-core": "2.5.0-alpha.14",
30
30
  "@byteluck-fe/model-driven-shared": "2.5.0-alpha.9",
31
31
  "tslib": "^2.1.0"
32
32
  },
33
- "gitHead": "a688b994d1e17d1d2e394f6b4ca0003f0cedf91f"
33
+ "gitHead": "6d60a64cde6319b966daec668739379e361d67d8"
34
34
  }