@byteluck-fe/model-driven-settings 2.21.0-beta.7 → 2.21.0-beta.9

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,61 +1,61 @@
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
  }
@@ -23,19 +23,19 @@ function _unsupported_iterable_to_array(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 _array_like_to_array(o, minLen);
25
25
  }
26
- import { createBaseFields } from './createBaseFields';
26
+ import { createBaseFields } from "./createBaseFields";
27
27
  export function createFormBaseFields(defaultValues) {
28
28
  return _to_consumable_array(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,83 +43,83 @@ 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
61
  var _payload_current, _payload_from;
62
62
  if (((_payload_current = payload.current) === null || _payload_current === void 0 ? void 0 : _payload_current.type) !== ((_payload_from = payload.from) === null || _payload_from === void 0 ? void 0 : _payload_from.type)) {
63
63
  //明细子表内默认开启
64
- 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'
86
+ label: "左右布局",
87
+ value: "left"
88
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'
105
+ label: "只读",
106
+ value: "readonly"
107
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,
@@ -1,2 +1,2 @@
1
- export * from './createBaseFields';
2
- export * from './createFormBaseFields';
1
+ export * from "./createBaseFields";
2
+ export * from "./createFormBaseFields";
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";
@@ -50,31 +50,31 @@ function _object_spread_props(target, source) {
50
50
  }
51
51
  return target;
52
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';
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";
63
63
  function propsFactory(component, props) {
64
64
  switch(component){
65
- case 'input':
65
+ case "input":
66
66
  return new InputProps(props);
67
- case 'textarea':
67
+ case "textarea":
68
68
  return new TextareaProps(props);
69
- case 'input-number':
69
+ case "input-number":
70
70
  return new InputNumberProps(props);
71
- case 'switch':
71
+ case "switch":
72
72
  return new SwitchProps(props);
73
- case 'radio':
73
+ case "radio":
74
74
  return new RadioProps(props);
75
- case 'checkbox':
75
+ case "checkbox":
76
76
  return new CheckboxProps(props);
77
- case 'select':
77
+ case "select":
78
78
  return new SelectProps(props);
79
79
  default:
80
80
  return new CustomProps(props);
@@ -87,7 +87,7 @@ function buildSettingItem(settingMap) {
87
87
  return;
88
88
  }
89
89
  return new Setting(_object_spread_props(_object_spread({}, schema), {
90
- props: propsFactory(schema.component, 'props' in schema ? schema.props : undefined)
90
+ props: propsFactory(schema.component, "props" in schema ? schema.props : undefined)
91
91
  }));
92
92
  };
93
93
  }
@@ -82,7 +82,7 @@ function _create_super(Derived) {
82
82
  return _possible_constructor_return(this, result);
83
83
  };
84
84
  }
85
- import { BaseProps } from './base';
85
+ import { BaseProps } from "./base";
86
86
  export var CheckboxProps = /*#__PURE__*/ function(BaseProps) {
87
87
  "use strict";
88
88
  _inherits(CheckboxProps, BaseProps);
@@ -115,8 +115,8 @@ function _create_super(Derived) {
115
115
  return _possible_constructor_return(this, result);
116
116
  };
117
117
  }
118
- import { isPlainObject } from '@byteluck-fe/model-driven-shared';
119
- import { BaseProps } from './base';
118
+ import { isPlainObject } from "@byteluck-fe/model-driven-shared";
119
+ import { BaseProps } from "./base";
120
120
  export var CustomProps = /*#__PURE__*/ function(BaseProps) {
121
121
  "use strict";
122
122
  _inherits(CustomProps, BaseProps);
@@ -82,7 +82,7 @@ function _create_super(Derived) {
82
82
  return _possible_constructor_return(this, result);
83
83
  };
84
84
  }
85
- import { BaseProps } from './base';
85
+ import { BaseProps } from "./base";
86
86
  export var InputNumberProps = /*#__PURE__*/ function(BaseProps) {
87
87
  "use strict";
88
88
  _inherits(InputNumberProps, BaseProps);
@@ -95,11 +95,11 @@ export var InputNumberProps = /*#__PURE__*/ function(BaseProps) {
95
95
  _define_property(_assert_this_initialized(_this), "min", void 0);
96
96
  _define_property(_assert_this_initialized(_this), "placeholder", void 0);
97
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 : '';
98
+ _this.max = (_props_max = props === null || props === void 0 ? void 0 : props.max) !== null && _props_max !== void 0 ? _props_max : "";
99
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 : '';
100
+ _this.min = (_props_min = props === null || props === void 0 ? void 0 : props.min) !== null && _props_min !== void 0 ? _props_min : "";
101
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 : '';
102
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
103
103
  return _this;
104
104
  }
105
105
  return InputNumberProps;
@@ -82,7 +82,7 @@ function _create_super(Derived) {
82
82
  return _possible_constructor_return(this, result);
83
83
  };
84
84
  }
85
- import { BaseProps } from './base';
85
+ import { BaseProps } from "./base";
86
86
  export var InputProps = /*#__PURE__*/ function(BaseProps) {
87
87
  "use strict";
88
88
  _inherits(InputProps, BaseProps);
@@ -96,11 +96,11 @@ export var InputProps = /*#__PURE__*/ function(BaseProps) {
96
96
  _define_property(_assert_this_initialized(_this), "placeholder", void 0);
97
97
  _define_property(_assert_this_initialized(_this), "i18n", void 0);
98
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 : '';
99
+ _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : "";
100
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 : '';
101
+ _this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : "";
102
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 : '';
103
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
104
104
  var _props_i18n;
105
105
  _this.i18n = (_props_i18n = props === null || props === void 0 ? void 0 : props.i18n) !== null && _props_i18n !== void 0 ? _props_i18n : false;
106
106
  return _this;
@@ -82,7 +82,7 @@ function _create_super(Derived) {
82
82
  return _possible_constructor_return(this, result);
83
83
  };
84
84
  }
85
- import { BaseProps } from './base';
85
+ import { BaseProps } from "./base";
86
86
  export var RadioProps = /*#__PURE__*/ function(BaseProps) {
87
87
  "use strict";
88
88
  _inherits(RadioProps, BaseProps);
@@ -96,7 +96,7 @@ export var RadioProps = /*#__PURE__*/ function(BaseProps) {
96
96
  var _props_options;
97
97
  _this.options = (_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [];
98
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';
99
+ _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : "outline";
100
100
  return _this;
101
101
  }
102
102
  return RadioProps;
@@ -82,7 +82,7 @@ function _create_super(Derived) {
82
82
  return _possible_constructor_return(this, result);
83
83
  };
84
84
  }
85
- import { BaseProps } from './base';
85
+ import { BaseProps } from "./base";
86
86
  export var SelectProps = /*#__PURE__*/ function(BaseProps) {
87
87
  "use strict";
88
88
  _inherits(SelectProps, BaseProps);
@@ -94,7 +94,7 @@ export var SelectProps = /*#__PURE__*/ function(BaseProps) {
94
94
  _define_property(_assert_this_initialized(_this), "placeholder", void 0);
95
95
  _define_property(_assert_this_initialized(_this), "options", void 0);
96
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 : '';
97
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
98
98
  var _props_options;
99
99
  _this.options = (_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [];
100
100
  return _this;
@@ -82,7 +82,7 @@ function _create_super(Derived) {
82
82
  return _possible_constructor_return(this, result);
83
83
  };
84
84
  }
85
- import { BaseProps } from './base';
85
+ import { BaseProps } from "./base";
86
86
  export var SwitchProps = /*#__PURE__*/ function(BaseProps) {
87
87
  "use strict";
88
88
  _inherits(SwitchProps, BaseProps);
@@ -95,9 +95,9 @@ export var SwitchProps = /*#__PURE__*/ function(BaseProps) {
95
95
  _define_property(_assert_this_initialized(_this), "tips", void 0);
96
96
  _define_property(_assert_this_initialized(_this), "disabled", void 0);
97
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';
98
+ _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : "switch";
99
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 : '';
100
+ _this.tips = (_props_tips = props === null || props === void 0 ? void 0 : props.tips) !== null && _props_tips !== void 0 ? _props_tips : "";
101
101
  var _props_disabled;
102
102
  _this.disabled = (_props_disabled = props === null || props === void 0 ? void 0 : props.disabled) !== null && _props_disabled !== void 0 ? _props_disabled : false;
103
103
  return _this;
@@ -82,7 +82,7 @@ function _create_super(Derived) {
82
82
  return _possible_constructor_return(this, result);
83
83
  };
84
84
  }
85
- import { BaseProps } from './base';
85
+ import { BaseProps } from "./base";
86
86
  export var TextareaProps = /*#__PURE__*/ function(BaseProps) {
87
87
  "use strict";
88
88
  _inherits(TextareaProps, BaseProps);
@@ -98,15 +98,15 @@ export var TextareaProps = /*#__PURE__*/ function(BaseProps) {
98
98
  _define_property(_assert_this_initialized(_this), "maxRows", void 0);
99
99
  _define_property(_assert_this_initialized(_this), "minRows", void 0);
100
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 : '';
101
+ _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : "";
102
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 : '';
103
+ _this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : "";
104
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 : '';
105
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
106
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 : '';
107
+ _this.maxRows = (_props_maxRows = props === null || props === void 0 ? void 0 : props.maxRows) !== null && _props_maxRows !== void 0 ? _props_maxRows : "";
108
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 : '';
109
+ _this.minRows = (_props_minRows = props === null || props === void 0 ? void 0 : props.minRows) !== null && _props_minRows !== void 0 ? _props_minRows : "";
110
110
  var _props_i18n;
111
111
  _this.i18n = (_props_i18n = props === null || props === void 0 ? void 0 : props.i18n) !== null && _props_i18n !== void 0 ? _props_i18n : false;
112
112
  return _this;
@@ -19,7 +19,7 @@ function _define_property(obj, key, value) {
19
19
  export var Group = function Group(schema) {
20
20
  "use strict";
21
21
  _class_call_check(this, Group);
22
- _define_property(this, "type", 'group');
22
+ _define_property(this, "type", "group");
23
23
  _define_property(this, "title", void 0);
24
24
  _define_property(this, "required", void 0);
25
25
  _define_property(this, "items", void 0);
@@ -27,7 +27,7 @@ export var Group = function Group(schema) {
27
27
  _define_property(this, "fromId", void 0);
28
28
  _define_property(this, "visible", void 0);
29
29
  var _schema_title;
30
- this.title = (_schema_title = schema.title) !== null && _schema_title !== void 0 ? _schema_title : '';
30
+ this.title = (_schema_title = schema.title) !== null && _schema_title !== void 0 ? _schema_title : "";
31
31
  var _schema_required;
32
32
  this.required = (_schema_required = schema.required) !== null && _schema_required !== void 0 ? _schema_required : false;
33
33
  this.items = schema.items;
@@ -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";
@@ -30,8 +30,8 @@ function _define_property(obj, key, value) {
30
30
  }
31
31
  return obj;
32
32
  }
33
- import { BaseProps } from '../props/base';
34
- import { error, isPlainObject, noop } from '@byteluck-fe/model-driven-shared';
33
+ import { BaseProps } from "../props/base";
34
+ import { error, isPlainObject, noop } from "@byteluck-fe/model-driven-shared";
35
35
  export var Setting = /*#__PURE__*/ function() {
36
36
  "use strict";
37
37
  function Setting(schema) {
@@ -66,7 +66,7 @@ export var Setting = /*#__PURE__*/ function() {
66
66
  key: "filterEffects",
67
67
  value: function filterEffects(effectKey) {
68
68
  var _this = this;
69
- if (effectKey === '') {
69
+ if (effectKey === "") {
70
70
  return Object.values(this.effect);
71
71
  }
72
72
  return this.effectKeys.filter(function(key) {
@@ -17,12 +17,12 @@ function _define_property(obj, key, value) {
17
17
  return obj;
18
18
  }
19
19
  export function isTabSchema(schema) {
20
- return 'type' in schema && schema.type === 'tab';
20
+ return "type" in schema && schema.type === "tab";
21
21
  }
22
22
  export var Tab = function Tab(schema) {
23
23
  "use strict";
24
24
  _class_call_check(this, Tab);
25
- _define_property(this, "type", 'tab');
25
+ _define_property(this, "type", "tab");
26
26
  _define_property(this, "title", void 0);
27
27
  _define_property(this, "items", void 0);
28
28
  this.title = schema.title;
package/dist/index.umd.js CHANGED
@@ -1,2 +1,2 @@
1
- var qn=Object.defineProperty,Kn=Object.defineProperties;var Wn=Object.getOwnPropertyDescriptors;var J=Object.getOwnPropertySymbols;var Xn=Object.prototype.hasOwnProperty,Jn=Object.prototype.propertyIsEnumerable;var Q=(s,E,c)=>E in s?qn(s,E,{enumerable:!0,configurable:!0,writable:!0,value:c}):s[E]=c,g=(s,E)=>{for(var c in E||(E={}))Xn.call(E,c)&&Q(s,c,E[c]);if(J)for(var c of J(E))Jn.call(E,c)&&Q(s,c,E[c]);return s},C=(s,E)=>Kn(s,Wn(E));(function(s,E){typeof exports=="object"&&typeof module!="undefined"?E(exports):typeof define=="function"&&define.amd?define(["exports"],E):(s=typeof globalThis!="undefined"?globalThis:s||self,E(s.modelDrivenSettings={}))})(this,function(s){"use strict";function E(e){return e}class c{constructor(u){var t,a,n;this.visible=(t=u==null?void 0:u.visible)!=null?t:!0,this.expression=(a=u==null?void 0:u.expression)!=null?a:!1,this.updateParent=(n=u==null?void 0:u.updateParent)!=null?n:!1}get isAtomicComponent(){return!0}}var Z="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",O="\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",ae="\u8BF7\u8F93\u5165\u6807\u9898",ne="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",re="\u8BF7\u8F93\u5165\u884C\u6807\u9898",ie="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",le="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",se="\u8BF7\u7ED1\u5B9A\u8868\u5355",oe="\u8BF7\u7ED1\u5B9A\u5217\u8868",ce="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",Ee="\u8BF7\u8F93\u5165\u663E\u793A\u503C",Be="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",he="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",pe="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",me="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",de="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",ve="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Fe="\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",Ae="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",ge="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",Ce="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",be="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",De="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Se="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",ye="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Ie="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Me="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",$e="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",we="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",_e="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",xe="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Re="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Le="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",ke="\u8BF7\u9009\u62E9\u7701",Ue="\u8BF7\u9009\u62E9\u5E02",Ne="\u8BF7\u9009\u62E9\u533A",Ve="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Ge="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Pe="\u8BF7\u8F93\u5165\u5217\u5BBD",ze="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",He="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Te="\u8BF7\u9009\u62E9\u63A7\u4EF6",je="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",qe="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Ke="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",We="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Xe="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Je="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Qe="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Ze="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Oe="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Ye="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",eu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",uu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",tu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",au="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",nu="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",ru="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",iu="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",lu="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",su="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",ou="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",cu="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Eu="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",Bu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",hu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",pu="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",mu="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",du="\u8BF7\u9009\u62E9\u6392\u5E8F\u5B57\u6BB5",vu={isNotNumber:Z,isNotString:O,isNotObject:Y,isNotArray:ee,isNotBoolean:ue,runtimeRequired:te,pleaseEnterCaption:ae,pleaseEnterCaptionTip:ne,pleaseEnterRowCaption:re,pleaseEnterPlaceholder:ie,pleaseEnterFieldCode:le,pleaseEnterForm:se,pleaseEnterList:oe,pleaseEnterProcess:ce,pleaseEnterLabel:Ee,pleaseEnterValue:Be,bizKeyNotBindFiled:he,pleaseSelectOneField:pe,pleaseEnterNumberRange:me,pleaseEnterAValueGreaterThanMin:de,pleaseEnterAValueLessThanMax:ve,numberRangeSetError:Fe,stringRangeError:fe,attachmentMaxSize:Ae,pleaseEnterTotalScoreSetting:ge,theTotalScoreMustNotBeLessThan1:Ce,scoreDefaultValueRange:be,attachmentLimitError:De,PleaseReselectTheOptionalQuantity:Se,TheMaximumLengthIsGreaterThanTheMinimumLength:ye,TheMinimumLengthIsGreaterThanTheMaximumLength:Ie,PleaseSelectTheCorrectOptionSettings:Me,optionIdIsRepeat:$e,optionIsRequired:we,pleaseEnterDataCode:_e,pleaseEnterValueFieldCode:xe,pleaseEnterSvcCode:Re,pleaseBindAtLeastOneDisplayValue:Le,pleaseSelectProvince:ke,pleaseSelectCity:Ue,pleaseSelectDistrict:Ne,limitRowsCannotBeLessThan0:Ve,TheNumberOfRowsCannotBeLessThanMinRows:Ge,pleaseEnterColumnWidth:Pe,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ze,pleaseCompleteAllRulesAndConditions:He,pleaseSelectControl:Te,pleaseSelectAtLeastOneColumn:je,pleaseSelectFillBackMode:qe,pleaseSelectDashboard:Ke,rootNodeIsRequired:We,theViewNameCannotBeEmpty:Xe,pleaseSelectOcrType:Je,pleaseSelectAtLeastOneFieldToFillIn:Qe,pleaseChooseAtLeastOne:Ze,pleaseEnterButtonContent:Oe,pleaseEnterDataCodeInDataSetting:Ye,pleaseEnterValueFieldCodeInDataSetting:eu,pleaseEnterSvcCodeInDataSetting:uu,pleaseBindAtLeastOneDisplayValueInDataSetting:tu,rootNodeIsRequiredInDataSetting:au,pleaseEnterMaxHeight:nu,pleaseEnter:ru,pleaseEnterWatermark:iu,pleaseEnterFileName:lu,pleaseUploadAtLeastOnePrintTemplate:su,pleaseAssignBusiness:ou,pleaseAssignExternal:cu,pleaseEnterAliasCode:Eu,pleaseSelectDataCode:Bu,pleaseSelectSvcCode:hu,pleaseSelectJoinFieldCode:pu,pleaseSelectMainFieldCode:mu,pleaseSelectSortFieldCode:du},Fu="Please enter a number",fu="Please enter a string",Au="Please enter an object",gu="Please enter an array",Cu="Please enter a boolean",bu="{caption} Required",Du="Please enter the title",Su="Please enter the bubble prompt",yu="Please enter the row title",Iu="Please enter the prompt text",Mu="Please bind data items",$u="Please bind the form",wu="Please bind the list",_u="Please bind the process",xu="Please enter the displayed value",Ru="Please enter the stored value",Lu="The document number is not bound to the data item",ku="Please select at least one display field",Uu="Please enter a value greater than or equal to {min} and less than or equal to {max}",Nu="Please enter a value greater than or equal to {min}",Vu="Please enter a value less than or equal to {max}",Gu="The value range is set incorrectly",Pu="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",zu="The attachment size must be between 0MB and 1000MB",Hu="Please fill in the total score setting",Tu="The total score cannot be less than 1",ju="The default value must be between {min} and {max}",qu="The number of attachments uploaded must be between {min} and {max}",Ku="Please re-select the optional quantity",Wu="The maximum length of the control must be greater than the minimum length",Xu="The minimum length of the control must be less than the maximum length",Ju="Please select the correct option setting",Qu="Option ID cannot be repeated",Zu="Please enter at least one option",Ou="Please bind the data source",Yu="Please bind the stored value",et="Please bind the service",ut="At least one display value must be bound",tt="Please select a province",at="Please select a city",nt="Please select a district",rt="The minimum number of lines to fill in cannot be less than 0",it="The number of rows cannot be less than {min} rows",lt="Please enter the column width",st="Please set the logical relationship of all rule conditions",ot="Please complete all rules and conditions",ct="please select control",Et="Please select the dashboard",Bt="View name cannot be empty",ht="Please select recognition type",pt="Please select at least one field to fill in",mt="Please select at least one",dt="Please enter the button title",vt="Please bind the business model in the data settings",Ft="Please bind storage values in data settings",ft="Please bind the service in the data settings",At="Please bind at least one display value in the data settings",gt="Please select the root node in the data settings",Ct="Please enter the maximum height",bt="The input content cannot be empty",Dt="Watermark cannot be empty",St="File name cannot be empty",yt="Please upload at least one printing template!\uFF01",It="Please select a specific business department",Mt="Please select a specified external organization",$t="Please enter a sub table alias",wt="Please select the associated table to set the business model",_t="Please select the association table to set the binding service",xt="Select associated sub table fields",Rt="Please select the associated main table field",Lt="Please select the sort field",kt={isNotNumber:Fu,isNotString:fu,isNotObject:Au,isNotArray:gu,isNotBoolean:Cu,runtimeRequired:bu,pleaseEnterCaption:Du,pleaseEnterCaptionTip:Su,pleaseEnterRowCaption:yu,pleaseEnterPlaceholder:Iu,pleaseEnterFieldCode:Mu,pleaseEnterForm:$u,pleaseEnterList:wu,pleaseEnterProcess:_u,pleaseEnterLabel:xu,pleaseEnterValue:Ru,bizKeyNotBindFiled:Lu,pleaseSelectOneField:ku,pleaseEnterNumberRange:Uu,pleaseEnterAValueGreaterThanMin:Nu,pleaseEnterAValueLessThanMax:Vu,numberRangeSetError:Gu,stringRangeError:Pu,attachmentMaxSize:zu,pleaseEnterTotalScoreSetting:Hu,theTotalScoreMustNotBeLessThan1:Tu,scoreDefaultValueRange:ju,attachmentLimitError:qu,PleaseReselectTheOptionalQuantity:Ku,TheMaximumLengthIsGreaterThanTheMinimumLength:Wu,TheMinimumLengthIsGreaterThanTheMaximumLength:Xu,PleaseSelectTheCorrectOptionSettings:Ju,optionIdIsRepeat:Qu,optionIsRequired:Zu,pleaseEnterDataCode:Ou,pleaseEnterValueFieldCode:Yu,pleaseEnterSvcCode:et,pleaseBindAtLeastOneDisplayValue:ut,pleaseSelectProvince:tt,pleaseSelectCity:at,pleaseSelectDistrict:nt,limitRowsCannotBeLessThan0:rt,TheNumberOfRowsCannotBeLessThanMinRows:it,pleaseEnterColumnWidth:lt,pleaseSetTheLogicalRelationshipOfAllRuleConditions:st,pleaseCompleteAllRulesAndConditions:ot,pleaseSelectControl:ct,pleaseSelectDashboard:Et,theViewNameCannotBeEmpty:Bt,pleaseSelectOcrType:ht,pleaseSelectAtLeastOneFieldToFillIn:pt,pleaseChooseAtLeastOne:mt,pleaseEnterButtonContent:dt,pleaseEnterDataCodeInDataSetting:vt,pleaseEnterValueFieldCodeInDataSetting:Ft,pleaseEnterSvcCodeInDataSetting:ft,pleaseBindAtLeastOneDisplayValueInDataSetting:At,rootNodeIsRequiredInDataSetting:gt,pleaseEnterMaxHeight:Ct,pleaseEnter:bt,pleaseEnterWatermark:Dt,pleaseEnterFileName:St,pleaseUploadAtLeastOnePrintTemplate:yt,pleaseAssignBusiness:It,pleaseAssignExternal:Mt,pleaseEnterAliasCode:$t,pleaseSelectDataCode:wt,pleaseSelectSvcCode:_t,pleaseSelectJoinFieldCode:xt,pleaseSelectMainFieldCode:Rt,pleaseSelectSortFieldCode:Lt},Ut="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Nt="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Vt="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Gt="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Pt="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",zt="{caption}\u5FC5\u9808",Ht="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Tt="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",jt="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",qt="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Kt="\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",Xt="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Jt="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Qt="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Zt="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ot="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",Yt="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ea="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ua="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ta="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",aa="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",na="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ra="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",ia="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",la="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",sa="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",oa="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",ca="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ea="\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",Ba="\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",ha="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",pa="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",ma="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",da="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",va="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Fa="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",fa="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",Aa="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ga="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ca="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ba="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Da="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Sa="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ya="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Ia="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",Ma="please select control",$a="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",wa="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",_a="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",xa="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ra="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",La="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ka="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Ua="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Na="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Va="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Ga="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Pa="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",za="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Ha="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Ta="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",ja="\u5370\u5237\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u5C11\u306A\u304F\u3068\u30821\u3064\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\uFF01\uFF01",qa="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ka="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Wa="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Xa="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",Ja="\u95A2\u9023\u30C6\u30FC\u30D6\u30EB\u8A2D\u5B9A\u30D0\u30A4\u30F3\u30C9\u30B5\u30FC\u30D3\u30B9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Qa="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",Za="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Oa="\u30BD\u30FC\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ya={isNotNumber:Ut,isNotString:Nt,isNotObject:Vt,isNotArray:Gt,isNotBoolean:Pt,runtimeRequired:zt,pleaseEnterCaption:Ht,pleaseEnterCaptionTip:Tt,pleaseEnterRowCaption:jt,pleaseEnterPlaceholder:qt,pleaseEnterFieldCode:Kt,pleaseEnterForm:Wt,pleaseEnterList:Xt,pleaseEnterProcess:Jt,pleaseEnterLabel:Qt,pleaseEnterValue:Zt,bizKeyNotBindFiled:Ot,pleaseSelectOneField:Yt,pleaseEnterNumberRange:ea,pleaseEnterAValueGreaterThanMin:ua,pleaseEnterAValueLessThanMax:ta,numberRangeSetError:aa,stringRangeError:na,attachmentMaxSize:ra,pleaseEnterTotalScoreSetting:ia,theTotalScoreMustNotBeLessThan1:la,scoreDefaultValueRange:sa,attachmentLimitError:oa,PleaseReselectTheOptionalQuantity:ca,TheMaximumLengthIsGreaterThanTheMinimumLength:Ea,TheMinimumLengthIsGreaterThanTheMaximumLength:Ba,PleaseSelectTheCorrectOptionSettings:ha,optionIdIsRepeat:pa,optionIsRequired:ma,pleaseEnterDataCode:da,pleaseEnterValueFieldCode:va,pleaseEnterSvcCode:Fa,pleaseBindAtLeastOneDisplayValue:fa,pleaseSelectProvince:Aa,pleaseSelectCity:ga,pleaseSelectDistrict:Ca,limitRowsCannotBeLessThan0:ba,TheNumberOfRowsCannotBeLessThanMinRows:Da,pleaseEnterColumnWidth:Sa,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ya,pleaseCompleteAllRulesAndConditions:Ia,pleaseSelectControl:Ma,pleaseSelectDashboard:$a,theViewNameCannotBeEmpty:wa,pleaseSelectOcrType:_a,pleaseSelectAtLeastOneFieldToFillIn:xa,pleaseChooseAtLeastOne:Ra,pleaseEnterButtonContent:La,pleaseEnterDataCodeInDataSetting:ka,pleaseEnterValueFieldCodeInDataSetting:Ua,pleaseEnterSvcCodeInDataSetting:Na,pleaseBindAtLeastOneDisplayValueInDataSetting:Va,rootNodeIsRequiredInDataSetting:Ga,pleaseEnterMaxHeight:Pa,pleaseEnter:za,pleaseEnterWatermark:Ha,pleaseEnterFileName:Ta,pleaseUploadAtLeastOnePrintTemplate:ja,pleaseAssignBusiness:qa,pleaseAssignExternal:Ka,pleaseEnterAliasCode:Wa,pleaseSelectDataCode:Xa,pleaseSelectSvcCode:Ja,pleaseSelectJoinFieldCode:Qa,pleaseSelectMainFieldCode:Za,pleaseSelectSortFieldCode:Oa},en={zhCN:vu,enUS:kt,jaJP:Ya},I;(function(e){e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable"})(I||(I={}));var M;(function(e){e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN"})(M||(M={}));var un="zh-CN",tn=function(){},$;(function(e){e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search"})($||($={}));var w;(function(e){e[e.FORM=0]="FORM",e[e.LIST=1]="LIST",e[e.REPORT=2]="REPORT",e[e.DASHBOARD=3]="DASHBOARD",e[e.VUE=4]="VUE",e[e.FREE_PAGE=5]="FREE_PAGE"})(w||(w={}));var _;(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.BATCH_DELETE_LIST_BUTTON="list-page-btn-batch-delete",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.Approval_Status_Column="approval-status-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.GRID_LAYOUT_CONTAINER="grid-layout-container",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.ACTION_BAR="action-bar",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.GRID_LAYOUT_WRAP="grid-layout-wrap",e.VUE_PAGE="vue-page"})(_||(_={}));var x;(function(e){e.SAVE="save",e.DRAFT="draft",e.UNSUBMIT="unsubmit",e.AUDIT="audit",e.UNAUDIT="unaudit",e.CANCEL="cancel",e.FORM_SUBMIT="form_submit"})(x||(x={}));var R;(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.LIST="list",e.JSON="json",e.ANY="ANY"})(R||(R={}));var L;(function(e){e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATEHOUR="datehour",e.DATEMIN="datemin",e.DATETIME="datetime"})(L||(L={}));function an(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nn(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}function f(e,u,t){return k()?f=Reflect.construct:f=function(n,l,o){var B=[null];B.push.apply(B,l);var m=Function.bind.apply(n,B),A=new m;return o&&v(A,o.prototype),A},f.apply(null,arguments)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(e)}function rn(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&&v(e,u)}function ln(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function sn(e,u){return u&&(on(u)==="object"||typeof u=="function")?u:an(e)}function v(e,u){return v=Object.setPrototypeOf||function(a,n){return a.__proto__=n,a},v(e,u)}function on(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function b(e){var u=typeof Map=="function"?new Map:void 0;return b=function(a){if(a===null||!ln(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof u!="undefined"){if(u.has(a))return u.get(a);u.set(a,n)}function n(){return f(a,arguments,d(this).constructor)}return n.prototype=Object.create(a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),v(n,a)},b(e)}function k(){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 cn(e){var u=k();return function(){var a=d(e),n;if(u){var l=d(this).constructor;n=Reflect.construct(a,arguments,l)}else n=a.apply(this,arguments);return sn(this,n)}}function En(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Bn=function(e){rn(t,e);var u=cn(t);function t(a){nn(this,t);var n;return n=u.call(this,a),n.name="\u{1F4A5} Driven Error",n.message=a?En(a):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",n}return t}(b(Error));function hn(e){throw new Bn(e)}var pn=Object.prototype.toString;function U(e,u){return pn.call(e)==="[object "+u+"]"}function mn(e){return U(e,"String")}function dn(e){return U(e,"Promise")}var vn=function(){function e(u){var t,a;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((a=(t=u.messages)!==null&&t!==void 0?t:this.getPreImport(u.locale))!==null&&a!==void 0?a:{}),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 a=this.getMessageData();dn(a)?a.then(function(n){t._messageCache.clear(),t.messages[t.localeInMessageKey]=n}):this.messages[this.localeInMessageKey]=a},e.prototype.getMessageData=function(){var u=this._messages[this.localeInMessageKey];return typeof u=="function"?u():u},e.prototype.translate=function(u,t,a){var n=this.getMessage(u);return n?this.formatMessage(n,a):this.formatMessage(t,a)},e.prototype.getMessage=function(u){if(this._messageCache.has(u))return this._messageCache.get(u);var t=this.getPathArray(u),a=t.reduce(function(n,l,o,B){if(n!==void 0){var m=n[l];if(!(o===B.length-1&&!mn(m)))return m}},this.message);return this._messageCache.set(u,a),a},e.prototype.formatMessage=function(u,t){return t?u.replace(this.variableRegExp,function(a,n){var l=t[n];return l!==void 0?String(l):a}):u},e.prototype.getPreImport=function(u){var t;if(window.okI18nPreImport){var a=this.getLocaleInMessageKey(u);return window.okI18nPreImport.hasOwnProperty(a)?window.okI18nPreImport:(t={},t[a]=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 Fn(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}function N(e,u){for(var t=0;t<u.length;t++){var a=u[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function fn(e,u,t){return u&&N(e.prototype,u),t&&N(e,t),e}function An(e,u,t){return u in e?Object.defineProperty(e,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[u]=t,e}var V=function(){function e(){Fn(this,e)}return fn(e,null,[{key:"getMessage",value:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(t,"",a)}},{key:"resetI18n",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:un;return new vn({locale:t,messages:en})}},{key:"setLocale",value:function(t){return this.$i18n.setLocale(t)}}]),e}();An(V,"$i18n",V.resetI18n());var gn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Cn={exports:{}};(function(e){(function(u){var t=function(r,i,h){if(!A(i)||zn(i)||Hn(i)||Tn(i)||m(i))return i;var p,F=0,X=0;if(Pn(i))for(p=[],X=i.length;F<X;F++)p.push(t(r,i[F],h));else{p={};for(var y in i)Object.prototype.hasOwnProperty.call(i,y)&&(p[r(y,h)]=t(r,i[y],h))}return p},a=function(r,i){i=i||{};var h=i.separator||"_",p=i.split||/(?=[A-Z])/;return r.split(p).join(h)},n=function(r){return jn(r)?r:(r=r.replace(/[\-_\s]+(.)?/g,function(i,h){return h?h.toUpperCase():""}),r.substr(0,1).toLowerCase()+r.substr(1))},l=function(r){var i=n(r);return i.substr(0,1).toUpperCase()+i.substr(1)},o=function(r,i){return a(r,i).toLowerCase()},B=Object.prototype.toString,m=function(r){return typeof r=="function"},A=function(r){return r===Object(r)},Pn=function(r){return B.call(r)=="[object Array]"},zn=function(r){return B.call(r)=="[object Date]"},Hn=function(r){return B.call(r)=="[object RegExp]"},Tn=function(r){return B.call(r)=="[object Boolean]"},jn=function(r){return r=r-0,r===r},S=function(r,i){var h=i&&"process"in i?i.process:i;return typeof h!="function"?r:function(p,F){return h(p,r,F)}},W={camelize:n,decamelize:o,pascalize:l,depascalize:o,camelizeKeys:function(r,i){return t(S(n,i),r)},decamelizeKeys:function(r,i){return t(S(o,i),r,i)},pascalizeKeys:function(r,i){return t(S(l,i),r)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=W:u.humps=W})(gn)})(Cn);var G={};Object.defineProperty(G,"__esModule",{value:!0});function D(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(u=>typeof u!="object"||u===null?u:D(u));{const u={};for(const t in e){const a=e[t];u[t]=typeof a!="object"||a===null?a:D(a)}return u}}G.default=D;function P(e){return Object.prototype.toString.call(e)==="[object Object]"}function bn(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}function z(e,u){for(var t=0;t<u.length;t++){var a=u[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Dn(e,u,t){return u&&z(e.prototype,u),t&&z(e,t),e}function Sn(e,u,t){return u in e?Object.defineProperty(e,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[u]=t,e}var yn=[{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"}],In=function(){function e(){bn(this,e)}return Dn(e,null,[{key:"getEventsFromKeys",value:function(t){var a=typeof t=="string"?[t]:t;return e.events.filter(function(n){return a.includes(n.key)})}},{key:"getEventsFromControl",value:function(t){var a=[],n=t.eventKeys;a=a.concat(e.events.filter(function(o){return n.includes(o.key)}));var l=t.customEvents.map(function(o){var B=o.key;return o.namespace!==void 0&&o.namespace!==null&&o.namespace!==""&&(B=o.namespace+":"+o.key),{key:B,code:o.key,name:o.name}});return a=a.concat(l),a}}]),e}();Sn(In,"events",yn);class H{constructor(u){var t,a,n;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=(a=u.scopeEffect)!=null?a:tn,this.defaultValue=u.defaultValue,this.validator=u.validator,this.props=(n=u.props)!=null?n:new c,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 a=u.apply(null,t);P(a)&&Object.assign(this.props,a)}catch(a){hn(`effect error
1
+ var qn=Object.defineProperty,Kn=Object.defineProperties;var Wn=Object.getOwnPropertyDescriptors;var J=Object.getOwnPropertySymbols;var Xn=Object.prototype.hasOwnProperty,Jn=Object.prototype.propertyIsEnumerable;var Q=(s,E,c)=>E in s?qn(s,E,{enumerable:!0,configurable:!0,writable:!0,value:c}):s[E]=c,g=(s,E)=>{for(var c in E||(E={}))Xn.call(E,c)&&Q(s,c,E[c]);if(J)for(var c of J(E))Jn.call(E,c)&&Q(s,c,E[c]);return s},C=(s,E)=>Kn(s,Wn(E));(function(s,E){typeof exports=="object"&&typeof module!="undefined"?E(exports):typeof define=="function"&&define.amd?define(["exports"],E):(s=typeof globalThis!="undefined"?globalThis:s||self,E(s.modelDrivenSettings={}))})(this,function(s){"use strict";function E(e){return e}class c{constructor(u){var t,a,n;this.visible=(t=u==null?void 0:u.visible)!=null?t:!0,this.expression=(a=u==null?void 0:u.expression)!=null?a:!1,this.updateParent=(n=u==null?void 0:u.updateParent)!=null?n:!1}get isAtomicComponent(){return!0}}var Z="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",O="\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",ae="\u8BF7\u8F93\u5165\u6807\u9898",ne="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",re="\u8BF7\u8F93\u5165\u884C\u6807\u9898",ie="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",le="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",se="\u8BF7\u7ED1\u5B9A\u8868\u5355",oe="\u8BF7\u7ED1\u5B9A\u5217\u8868",ce="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",Ee="\u8BF7\u8F93\u5165\u663E\u793A\u503C",Be="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",he="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",pe="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",me="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",de="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",ve="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Fe="\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",Ae="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",ge="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",Ce="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",De="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",be="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Se="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",ye="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Ie="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Me="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",$e="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",we="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",_e="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",xe="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Re="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Le="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",ke="\u8BF7\u9009\u62E9\u7701",Ue="\u8BF7\u9009\u62E9\u5E02",Ne="\u8BF7\u9009\u62E9\u533A",Ve="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Ge="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Pe="\u8BF7\u8F93\u5165\u5217\u5BBD",ze="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",He="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Te="\u8BF7\u9009\u62E9\u63A7\u4EF6",je="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",qe="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Ke="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",We="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Xe="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Je="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Qe="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Ze="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Oe="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Ye="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",eu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",uu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",tu="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",au="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",nu="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",ru="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",iu="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",lu="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",su="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",ou="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",cu="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Eu="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",Bu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",hu="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",pu="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",mu="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",du="\u8BF7\u9009\u62E9\u6392\u5E8F\u5B57\u6BB5",vu={isNotNumber:Z,isNotString:O,isNotObject:Y,isNotArray:ee,isNotBoolean:ue,runtimeRequired:te,pleaseEnterCaption:ae,pleaseEnterCaptionTip:ne,pleaseEnterRowCaption:re,pleaseEnterPlaceholder:ie,pleaseEnterFieldCode:le,pleaseEnterForm:se,pleaseEnterList:oe,pleaseEnterProcess:ce,pleaseEnterLabel:Ee,pleaseEnterValue:Be,bizKeyNotBindFiled:he,pleaseSelectOneField:pe,pleaseEnterNumberRange:me,pleaseEnterAValueGreaterThanMin:de,pleaseEnterAValueLessThanMax:ve,numberRangeSetError:Fe,stringRangeError:fe,attachmentMaxSize:Ae,pleaseEnterTotalScoreSetting:ge,theTotalScoreMustNotBeLessThan1:Ce,scoreDefaultValueRange:De,attachmentLimitError:be,PleaseReselectTheOptionalQuantity:Se,TheMaximumLengthIsGreaterThanTheMinimumLength:ye,TheMinimumLengthIsGreaterThanTheMaximumLength:Ie,PleaseSelectTheCorrectOptionSettings:Me,optionIdIsRepeat:$e,optionIsRequired:we,pleaseEnterDataCode:_e,pleaseEnterValueFieldCode:xe,pleaseEnterSvcCode:Re,pleaseBindAtLeastOneDisplayValue:Le,pleaseSelectProvince:ke,pleaseSelectCity:Ue,pleaseSelectDistrict:Ne,limitRowsCannotBeLessThan0:Ve,TheNumberOfRowsCannotBeLessThanMinRows:Ge,pleaseEnterColumnWidth:Pe,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ze,pleaseCompleteAllRulesAndConditions:He,pleaseSelectControl:Te,pleaseSelectAtLeastOneColumn:je,pleaseSelectFillBackMode:qe,pleaseSelectDashboard:Ke,rootNodeIsRequired:We,theViewNameCannotBeEmpty:Xe,pleaseSelectOcrType:Je,pleaseSelectAtLeastOneFieldToFillIn:Qe,pleaseChooseAtLeastOne:Ze,pleaseEnterButtonContent:Oe,pleaseEnterDataCodeInDataSetting:Ye,pleaseEnterValueFieldCodeInDataSetting:eu,pleaseEnterSvcCodeInDataSetting:uu,pleaseBindAtLeastOneDisplayValueInDataSetting:tu,rootNodeIsRequiredInDataSetting:au,pleaseEnterMaxHeight:nu,pleaseEnter:ru,pleaseEnterWatermark:iu,pleaseEnterFileName:lu,pleaseUploadAtLeastOnePrintTemplate:su,pleaseAssignBusiness:ou,pleaseAssignExternal:cu,pleaseEnterAliasCode:Eu,pleaseSelectDataCode:Bu,pleaseSelectSvcCode:hu,pleaseSelectJoinFieldCode:pu,pleaseSelectMainFieldCode:mu,pleaseSelectSortFieldCode:du},Fu="Please enter a number",fu="Please enter a string",Au="Please enter an object",gu="Please enter an array",Cu="Please enter a boolean",Du="{caption} Required",bu="Please enter the title",Su="Please enter the bubble prompt",yu="Please enter the row title",Iu="Please enter the prompt text",Mu="Please bind data items",$u="Please bind the form",wu="Please bind the list",_u="Please bind the process",xu="Please enter the displayed value",Ru="Please enter the stored value",Lu="The document number is not bound to the data item",ku="Please select at least one display field",Uu="Please enter a value greater than or equal to {min} and less than or equal to {max}",Nu="Please enter a value greater than or equal to {min}",Vu="Please enter a value less than or equal to {max}",Gu="The value range is set incorrectly",Pu="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",zu="The attachment size must be between 0MB and 1000MB",Hu="Please fill in the total score setting",Tu="The total score cannot be less than 1",ju="The default value must be between {min} and {max}",qu="The number of attachments uploaded must be between {min} and {max}",Ku="Please re-select the optional quantity",Wu="The maximum length of the control must be greater than the minimum length",Xu="The minimum length of the control must be less than the maximum length",Ju="Please select the correct option setting",Qu="Option ID cannot be repeated",Zu="Please enter at least one option",Ou="Please bind the data source",Yu="Please bind the stored value",et="Please bind the service",ut="At least one display value must be bound",tt="Please select a province",at="Please select a city",nt="Please select a district",rt="The minimum number of lines to fill in cannot be less than 0",it="The number of rows cannot be less than {min} rows",lt="Please enter the column width",st="Please set the logical relationship of all rule conditions",ot="Please complete all rules and conditions",ct="please select control",Et="Please select the dashboard",Bt="View name cannot be empty",ht="Please select recognition type",pt="Please select at least one field to fill in",mt="Please select at least one",dt="Please enter the button title",vt="Please bind the business model in the data settings",Ft="Please bind storage values in data settings",ft="Please bind the service in the data settings",At="Please bind at least one display value in the data settings",gt="Please select the root node in the data settings",Ct="Please enter the maximum height",Dt="The input content cannot be empty",bt="Watermark cannot be empty",St="File name cannot be empty",yt="Please upload at least one printing template!\uFF01",It="Please select a specific business department",Mt="Please select a specified external organization",$t="Please enter a sub table alias",wt="Please select the associated table to set the business model",_t="Please select the association table to set the binding service",xt="Select associated sub table fields",Rt="Please select the associated main table field",Lt="Please select the sort field",kt={isNotNumber:Fu,isNotString:fu,isNotObject:Au,isNotArray:gu,isNotBoolean:Cu,runtimeRequired:Du,pleaseEnterCaption:bu,pleaseEnterCaptionTip:Su,pleaseEnterRowCaption:yu,pleaseEnterPlaceholder:Iu,pleaseEnterFieldCode:Mu,pleaseEnterForm:$u,pleaseEnterList:wu,pleaseEnterProcess:_u,pleaseEnterLabel:xu,pleaseEnterValue:Ru,bizKeyNotBindFiled:Lu,pleaseSelectOneField:ku,pleaseEnterNumberRange:Uu,pleaseEnterAValueGreaterThanMin:Nu,pleaseEnterAValueLessThanMax:Vu,numberRangeSetError:Gu,stringRangeError:Pu,attachmentMaxSize:zu,pleaseEnterTotalScoreSetting:Hu,theTotalScoreMustNotBeLessThan1:Tu,scoreDefaultValueRange:ju,attachmentLimitError:qu,PleaseReselectTheOptionalQuantity:Ku,TheMaximumLengthIsGreaterThanTheMinimumLength:Wu,TheMinimumLengthIsGreaterThanTheMaximumLength:Xu,PleaseSelectTheCorrectOptionSettings:Ju,optionIdIsRepeat:Qu,optionIsRequired:Zu,pleaseEnterDataCode:Ou,pleaseEnterValueFieldCode:Yu,pleaseEnterSvcCode:et,pleaseBindAtLeastOneDisplayValue:ut,pleaseSelectProvince:tt,pleaseSelectCity:at,pleaseSelectDistrict:nt,limitRowsCannotBeLessThan0:rt,TheNumberOfRowsCannotBeLessThanMinRows:it,pleaseEnterColumnWidth:lt,pleaseSetTheLogicalRelationshipOfAllRuleConditions:st,pleaseCompleteAllRulesAndConditions:ot,pleaseSelectControl:ct,pleaseSelectDashboard:Et,theViewNameCannotBeEmpty:Bt,pleaseSelectOcrType:ht,pleaseSelectAtLeastOneFieldToFillIn:pt,pleaseChooseAtLeastOne:mt,pleaseEnterButtonContent:dt,pleaseEnterDataCodeInDataSetting:vt,pleaseEnterValueFieldCodeInDataSetting:Ft,pleaseEnterSvcCodeInDataSetting:ft,pleaseBindAtLeastOneDisplayValueInDataSetting:At,rootNodeIsRequiredInDataSetting:gt,pleaseEnterMaxHeight:Ct,pleaseEnter:Dt,pleaseEnterWatermark:bt,pleaseEnterFileName:St,pleaseUploadAtLeastOnePrintTemplate:yt,pleaseAssignBusiness:It,pleaseAssignExternal:Mt,pleaseEnterAliasCode:$t,pleaseSelectDataCode:wt,pleaseSelectSvcCode:_t,pleaseSelectJoinFieldCode:xt,pleaseSelectMainFieldCode:Rt,pleaseSelectSortFieldCode:Lt},Ut="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Nt="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Vt="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Gt="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Pt="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",zt="{caption}\u5FC5\u9808",Ht="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Tt="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",jt="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",qt="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Kt="\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",Xt="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Jt="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Qt="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Zt="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ot="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",Yt="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ea="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ua="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ta="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",aa="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",na="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ra="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",ia="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",la="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",sa="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",oa="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",ca="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ea="\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",Ba="\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",ha="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",pa="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",ma="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",da="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",va="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Fa="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",fa="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",Aa="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",ga="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Ca="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Da="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",ba="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Sa="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ya="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Ia="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",Ma="please select control",$a="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",wa="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",_a="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",xa="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ra="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",La="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ka="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Ua="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Na="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Va="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",Ga="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Pa="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",za="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Ha="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",Ta="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",ja="\u5370\u5237\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u5C11\u306A\u304F\u3068\u30821\u3064\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\uFF01\uFF01",qa="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ka="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Wa="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Xa="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",Ja="\u95A2\u9023\u30C6\u30FC\u30D6\u30EB\u8A2D\u5B9A\u30D0\u30A4\u30F3\u30C9\u30B5\u30FC\u30D3\u30B9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Qa="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",Za="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Oa="\u30BD\u30FC\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Ya={isNotNumber:Ut,isNotString:Nt,isNotObject:Vt,isNotArray:Gt,isNotBoolean:Pt,runtimeRequired:zt,pleaseEnterCaption:Ht,pleaseEnterCaptionTip:Tt,pleaseEnterRowCaption:jt,pleaseEnterPlaceholder:qt,pleaseEnterFieldCode:Kt,pleaseEnterForm:Wt,pleaseEnterList:Xt,pleaseEnterProcess:Jt,pleaseEnterLabel:Qt,pleaseEnterValue:Zt,bizKeyNotBindFiled:Ot,pleaseSelectOneField:Yt,pleaseEnterNumberRange:ea,pleaseEnterAValueGreaterThanMin:ua,pleaseEnterAValueLessThanMax:ta,numberRangeSetError:aa,stringRangeError:na,attachmentMaxSize:ra,pleaseEnterTotalScoreSetting:ia,theTotalScoreMustNotBeLessThan1:la,scoreDefaultValueRange:sa,attachmentLimitError:oa,PleaseReselectTheOptionalQuantity:ca,TheMaximumLengthIsGreaterThanTheMinimumLength:Ea,TheMinimumLengthIsGreaterThanTheMaximumLength:Ba,PleaseSelectTheCorrectOptionSettings:ha,optionIdIsRepeat:pa,optionIsRequired:ma,pleaseEnterDataCode:da,pleaseEnterValueFieldCode:va,pleaseEnterSvcCode:Fa,pleaseBindAtLeastOneDisplayValue:fa,pleaseSelectProvince:Aa,pleaseSelectCity:ga,pleaseSelectDistrict:Ca,limitRowsCannotBeLessThan0:Da,TheNumberOfRowsCannotBeLessThanMinRows:ba,pleaseEnterColumnWidth:Sa,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ya,pleaseCompleteAllRulesAndConditions:Ia,pleaseSelectControl:Ma,pleaseSelectDashboard:$a,theViewNameCannotBeEmpty:wa,pleaseSelectOcrType:_a,pleaseSelectAtLeastOneFieldToFillIn:xa,pleaseChooseAtLeastOne:Ra,pleaseEnterButtonContent:La,pleaseEnterDataCodeInDataSetting:ka,pleaseEnterValueFieldCodeInDataSetting:Ua,pleaseEnterSvcCodeInDataSetting:Na,pleaseBindAtLeastOneDisplayValueInDataSetting:Va,rootNodeIsRequiredInDataSetting:Ga,pleaseEnterMaxHeight:Pa,pleaseEnter:za,pleaseEnterWatermark:Ha,pleaseEnterFileName:Ta,pleaseUploadAtLeastOnePrintTemplate:ja,pleaseAssignBusiness:qa,pleaseAssignExternal:Ka,pleaseEnterAliasCode:Wa,pleaseSelectDataCode:Xa,pleaseSelectSvcCode:Ja,pleaseSelectJoinFieldCode:Qa,pleaseSelectMainFieldCode:Za,pleaseSelectSortFieldCode:Oa},en={zhCN:vu,enUS:kt,jaJP:Ya},I;(function(e){e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable"})(I||(I={}));var M;(function(e){e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN"})(M||(M={}));var un="zh-CN",tn=function(){},$;(function(e){e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search"})($||($={}));var w;(function(e){e[e.FORM=0]="FORM",e[e.LIST=1]="LIST",e[e.REPORT=2]="REPORT",e[e.DASHBOARD=3]="DASHBOARD",e[e.VUE=4]="VUE",e[e.FREE_PAGE=5]="FREE_PAGE"})(w||(w={}));var _;(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.BATCH_DELETE_LIST_BUTTON="list-page-btn-batch-delete",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.Approval_Status_Column="approval-status-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.GRID_LAYOUT_CONTAINER="grid-layout-container",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.ACTION_BAR="action-bar",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.GRID_LAYOUT_WRAP="grid-layout-wrap",e.VUE_PAGE="vue-page"})(_||(_={}));var x;(function(e){e.SAVE="save",e.DRAFT="draft",e.UNSUBMIT="unsubmit",e.AUDIT="audit",e.UNAUDIT="unaudit",e.CANCEL="cancel",e.FORM_SUBMIT="form_submit"})(x||(x={}));var R;(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.LIST="list",e.JSON="json",e.ANY="ANY"})(R||(R={}));var L;(function(e){e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATEHOUR="datehour",e.DATEMIN="datemin",e.DATETIME="datetime"})(L||(L={}));function an(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nn(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}function f(e,u,t){return k()?f=Reflect.construct:f=function(n,l,o){var B=[null];B.push.apply(B,l);var m=Function.bind.apply(n,B),A=new m;return o&&v(A,o.prototype),A},f.apply(null,arguments)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(e)}function rn(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&&v(e,u)}function ln(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function sn(e,u){return u&&(on(u)==="object"||typeof u=="function")?u:an(e)}function v(e,u){return v=Object.setPrototypeOf||function(a,n){return a.__proto__=n,a},v(e,u)}function on(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function D(e){var u=typeof Map=="function"?new Map:void 0;return D=function(a){if(a===null||!ln(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof u!="undefined"){if(u.has(a))return u.get(a);u.set(a,n)}function n(){return f(a,arguments,d(this).constructor)}return n.prototype=Object.create(a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),v(n,a)},D(e)}function k(){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 cn(e){var u=k();return function(){var a=d(e),n;if(u){var l=d(this).constructor;n=Reflect.construct(a,arguments,l)}else n=a.apply(this,arguments);return sn(this,n)}}function En(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Bn=function(e){rn(t,e);var u=cn(t);function t(a){nn(this,t);var n;return n=u.call(this,a),n.name="\u{1F4A5} Driven Error",n.message=a?En(a):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",n}return t}(D(Error));function hn(e){throw new Bn(e)}var pn=Object.prototype.toString;function U(e,u){return pn.call(e)==="[object "+u+"]"}function mn(e){return U(e,"String")}function dn(e){return U(e,"Promise")}var vn=function(){function e(u){var t,a;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((a=(t=u.messages)!==null&&t!==void 0?t:this.getPreImport(u.locale))!==null&&a!==void 0?a:{}),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 a=this.getMessageData();dn(a)?a.then(function(n){t._messageCache.clear(),t.messages[t.localeInMessageKey]=n}):this.messages[this.localeInMessageKey]=a},e.prototype.getMessageData=function(){var u=this._messages[this.localeInMessageKey];return typeof u=="function"?u():u},e.prototype.translate=function(u,t,a){var n=this.getMessage(u);return n?this.formatMessage(n,a):this.formatMessage(t,a)},e.prototype.getMessage=function(u){if(this._messageCache.has(u))return this._messageCache.get(u);var t=this.getPathArray(u),a=t.reduce(function(n,l,o,B){if(n!==void 0){var m=n[l];if(!(o===B.length-1&&!mn(m)))return m}},this.message);return this._messageCache.set(u,a),a},e.prototype.formatMessage=function(u,t){return t?u.replace(this.variableRegExp,function(a,n){var l=t[n];return l!==void 0?String(l):a}):u},e.prototype.getPreImport=function(u){var t;if(window.okI18nPreImport){var a=this.getLocaleInMessageKey(u);return window.okI18nPreImport.hasOwnProperty(a)?window.okI18nPreImport:(t={},t[a]=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 Fn(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}function N(e,u){for(var t=0;t<u.length;t++){var a=u[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function fn(e,u,t){return u&&N(e.prototype,u),t&&N(e,t),e}function An(e,u,t){return u in e?Object.defineProperty(e,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[u]=t,e}var V=function(){function e(){Fn(this,e)}return fn(e,null,[{key:"getMessage",value:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(t,"",a)}},{key:"resetI18n",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:un;return new vn({locale:t,messages:en})}},{key:"setLocale",value:function(t){return this.$i18n.setLocale(t)}}]),e}();An(V,"$i18n",V.resetI18n());var gn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Cn={exports:{}};(function(e){(function(u){var t=function(r,i,h){if(!A(i)||zn(i)||Hn(i)||Tn(i)||m(i))return i;var p,F=0,X=0;if(Pn(i))for(p=[],X=i.length;F<X;F++)p.push(t(r,i[F],h));else{p={};for(var y in i)Object.prototype.hasOwnProperty.call(i,y)&&(p[r(y,h)]=t(r,i[y],h))}return p},a=function(r,i){i=i||{};var h=i.separator||"_",p=i.split||/(?=[A-Z])/;return r.split(p).join(h)},n=function(r){return jn(r)?r:(r=r.replace(/[\-_\s]+(.)?/g,function(i,h){return h?h.toUpperCase():""}),r.substr(0,1).toLowerCase()+r.substr(1))},l=function(r){var i=n(r);return i.substr(0,1).toUpperCase()+i.substr(1)},o=function(r,i){return a(r,i).toLowerCase()},B=Object.prototype.toString,m=function(r){return typeof r=="function"},A=function(r){return r===Object(r)},Pn=function(r){return B.call(r)=="[object Array]"},zn=function(r){return B.call(r)=="[object Date]"},Hn=function(r){return B.call(r)=="[object RegExp]"},Tn=function(r){return B.call(r)=="[object Boolean]"},jn=function(r){return r=r-0,r===r},S=function(r,i){var h=i&&"process"in i?i.process:i;return typeof h!="function"?r:function(p,F){return h(p,r,F)}},W={camelize:n,decamelize:o,pascalize:l,depascalize:o,camelizeKeys:function(r,i){return t(S(n,i),r)},decamelizeKeys:function(r,i){return t(S(o,i),r,i)},pascalizeKeys:function(r,i){return t(S(l,i),r)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=W:u.humps=W})(gn)})(Cn);var G={};Object.defineProperty(G,"__esModule",{value:!0});function b(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(u=>typeof u!="object"||u===null?u:b(u));{const u={};for(const t in e){const a=e[t];u[t]=typeof a!="object"||a===null?a:b(a)}return u}}G.default=b;function P(e){return Object.prototype.toString.call(e)==="[object Object]"}function Dn(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}function z(e,u){for(var t=0;t<u.length;t++){var a=u[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function bn(e,u,t){return u&&z(e.prototype,u),t&&z(e,t),e}function Sn(e,u,t){return u in e?Object.defineProperty(e,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[u]=t,e}var yn=[{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"}],In=function(){function e(){Dn(this,e)}return bn(e,null,[{key:"getEventsFromKeys",value:function(t){var a=typeof t=="string"?[t]:t;return e.events.filter(function(n){return a.includes(n.key)})}},{key:"getEventsFromControl",value:function(t){var a=[],n=t.eventKeys;a=a.concat(e.events.filter(function(o){return n.includes(o.key)}));var l=t.customEvents.map(function(o){var B=o.key;return o.namespace!==void 0&&o.namespace!==null&&o.namespace!==""&&(B=o.namespace+":"+o.key),{key:B,code:o.key,name:o.name}});return a=a.concat(l),a}}]),e}();Sn(In,"events",yn);class H{constructor(u){var t,a,n;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=(a=u.scopeEffect)!=null?a:tn,this.defaultValue=u.defaultValue,this.validator=u.validator,this.props=(n=u.props)!=null?n:new c,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 a=u.apply(null,t);P(a)&&Object.assign(this.props,a)}catch(a){hn(`effect error
2
2
  ${a}`)}}callEffect(u,...t){this.filterEffects(u).forEach(a=>this.callEffectFn(a,t))}callScopeEffect(...u){this.callEffectFn(this.scopeEffect,u)}}class T{constructor(u){var t,a;this.type="group",this.title=(t=u.title)!=null?t:"",this.required=(a=u.required)!=null?a:!1,this.items=u.items,this.tips=u.tips,this.visible=u.items.some(n=>{var l;return(l=n.props)==null?void 0:l.visible})}}function j(e){return"type"in e&&e.type==="tab"}class q{constructor(u){this.type="tab",this.title=u.title,this.items=u.items}}class Mn extends c{constructor(u){super(u),P(u)&&Object.entries(u).forEach(([t,a])=>{this[t]=a})}}class $n extends c{constructor(u){var t,a,n,l;super(u),this.maxLength=(t=u==null?void 0:u.maxLength)!=null?t:"",this.minLength=(a=u==null?void 0:u.minLength)!=null?a:"",this.placeholder=(n=u==null?void 0:u.placeholder)!=null?n:"",this.i18n=(l=u==null?void 0:u.i18n)!=null?l:!1}}class wn extends c{constructor(u){var t,a,n;super(u),this.max=(t=u==null?void 0:u.max)!=null?t:"",this.min=(a=u==null?void 0:u.min)!=null?a:"",this.placeholder=(n=u==null?void 0:u.placeholder)!=null?n:""}}class _n extends c{constructor(u){var t,a,n;super(u),this.showType=(t=u==null?void 0:u.showType)!=null?t:"switch",this.tips=(a=u==null?void 0:u.tips)!=null?a:"",this.disabled=(n=u==null?void 0:u.disabled)!=null?n:!1}}class xn extends c{constructor(u){var t;super(u),this.options=(t=u==null?void 0:u.options)!=null?t:[]}}class Rn extends c{constructor(u){var t,a;super(u),this.placeholder=(t=u==null?void 0:u.placeholder)!=null?t:"",this.options=(a=u==null?void 0:u.options)!=null?a:[]}}class Ln extends c{constructor(u){var t,a;super(u),this.options=(t=u==null?void 0:u.options)!=null?t:[],this.showType=(a=u==null?void 0:u.showType)!=null?a:"outline"}}class kn extends c{constructor(u){var t,a,n,l,o,B;super(u),this.maxLength=(t=u==null?void 0:u.maxLength)!=null?t:"",this.minLength=(a=u==null?void 0:u.minLength)!=null?a:"",this.placeholder=(n=u==null?void 0:u.placeholder)!=null?n:"",this.maxRows=(l=u==null?void 0:u.maxRows)!=null?l:"",this.minRows=(o=u==null?void 0:u.minRows)!=null?o:"",this.i18n=(B=u==null?void 0:u.i18n)!=null?B:!1}}function Un(e,u){switch(e){case"input":return new $n(u);case"textarea":return new kn(u);case"input-number":return new wn(u);case"switch":return new _n(u);case"radio":return new Ln(u);case"checkbox":return new xn(u);case"select":return new Rn(u);default:return new Mn(u)}}function Nn(e){return function(u){const t=e.get(u);if(!!t)return new H(C(g({},t),{props:Un(t.component,"props"in t?t.props:void 0)}))}}function Vn(e){const u=e.fields.reduce((n,l)=>(n.set(l.key,l),n),new Map);function t(n){return new T(C(g({},n),{items:n.items.map(Nn(u)).filter(Boolean)}))}function a(n){return n.map(t)}return e.groups.map(n=>j(n)?new q(C(g({},n),{items:a(n.items)})):t(n))}function K(){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:a,instance:n}=u;if((t==null?void 0:t.type)==="advanced-container"&&a.type==="positioning-container"&&(e.setInstance(n,"style.width",""),e.setInstance(n,"style.widthConfig","fill")),a)return{visible:a.type==="advanced-container"}}},{key:"style.height",component:"styleComponent",props:{configKey:"style.heightConfig",options:["px","%","fill","hug"]},scopeEffect(e,u){const{oldParent:t,newParent:a,instance:n}=u;if((t==null?void 0:t.type)==="advanced-container"&&a.type==="positioning-container"&&(e.setInstance(n,"style.height",""),e.setInstance(n,"style.heightConfig","fill")),u.newParent)return{visible:u.newParent.type==="advanced-container"}}}]}function Gn(e){return[...K(),{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 a,n;if(((a=t.current)==null?void 0:a.type)!==((n=t.from)==null?void 0:n.type))return t.current.type==="subtable"&&u.setInstance(t.control,"isHideCaption",!0),{visible:t.current.type!=="subtable"}}},{key:"labelPosition",type:"string",component:"radio",defaultValue:e==null?void 0:e.labelPosition,props:{showType:"solid",options:[{label:"\u4E0A\u4E0B\u5E03\u5C40",value:"top"},{label:"\u5DE6\u53F3\u5E03\u5C40",value:"left"}]}},{key:"defaultState",type:"string",component:"radio",defaultValue:e==null?void 0:e.defaultState,props:{showType:"solid",options:[{label:"\u666E\u901A",value:"default"},{label:"\u53EA\u8BFB",value:"readonly"}]}},{label:"\u5FC5\u586B",key:"required",type:"boolean",component:"switch",defaultValue:e==null?void 0:e.required},{label:"\u63D0\u793A\u6587\u5B57",key:"placeholder",type:"string",component:"input",defaultValue:e==null?void 0:e.placeholder,props:{maxLength:80,i18n:!0}}]}s.Group=T,s.Setting=H,s.Tab=q,s.createBaseFields=K,s.createFormBaseFields=Gn,s.defineInstance=E,s.initSettings=Vn,s.isTabSchema=j,Object.defineProperty(s,"__esModule",{value:!0})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-settings",
3
- "version": "2.21.0-beta.7",
3
+ "version": "2.21.0-beta.9",
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.21.0-beta.7",
29
+ "@byteluck-fe/model-driven-core": "2.21.0-beta.9",
30
30
  "@byteluck-fe/model-driven-shared": "2.21.0-beta.2",
31
31
  "tslib": "^2.1.0"
32
32
  },
33
- "gitHead": "e435c15880ab0c3ed123bddca8077f15bf7d79ff"
33
+ "gitHead": "23ce33378fa399d0ec18c4749ac0135be2e5b77c"
34
34
  }