@byteluck-fe/model-driven-core 2.3.1-beta.8 → 2.3.12-a

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.
Files changed (29) hide show
  1. package/dist/esm/common/BaseControl/designer.js +253 -213
  2. package/dist/esm/common/BaseControl/property.js +68 -51
  3. package/dist/esm/common/BaseControl/runtime.js +30 -9
  4. package/dist/esm/common/ColumnControl/designer.js +37 -23
  5. package/dist/esm/common/ColumnControl/property.js +86 -38
  6. package/dist/esm/common/ColumnControl/runtime.js +37 -23
  7. package/dist/esm/common/ControlArray.js +13 -13
  8. package/dist/esm/common/FormControl/designer.js +40 -25
  9. package/dist/esm/common/FormControl/property.js +119 -52
  10. package/dist/esm/common/FormControl/runtime.js +38 -23
  11. package/dist/esm/common/LayoutControl/designer.js +149 -115
  12. package/dist/esm/common/LayoutControl/property.js +22 -22
  13. package/dist/esm/common/LayoutControl/runtime.js +39 -24
  14. package/dist/esm/common/ListControl/designer.js +131 -106
  15. package/dist/esm/common/ListControl/property.js +37 -23
  16. package/dist/esm/common/ListControl/runtime.js +42 -27
  17. package/dist/esm/common/SearchViewControl/designer.js +37 -23
  18. package/dist/esm/common/SearchViewControl/property.js +36 -22
  19. package/dist/esm/common/SearchViewControl/runtime.js +37 -23
  20. package/dist/esm/common/WrapControl/designer.js +37 -23
  21. package/dist/esm/common/WrapControl/property.js +22 -22
  22. package/dist/esm/common/WrapControl/runtime.js +37 -23
  23. package/dist/esm/framework/RegisterControls.js +199 -130
  24. package/dist/esm/framework/index.js +513 -93
  25. package/dist/index.umd.js +1 -1
  26. package/dist/types/common/BaseControl/property.d.ts +14 -0
  27. package/dist/types/common/FormControl/property.d.ts +4 -0
  28. package/dist/types/framework/index.d.ts +205 -0
  29. package/package.json +3 -3
@@ -1,19 +1,32 @@
1
- function _assertThisInitialized(self) {
1
+ function _assert_this_initialized(self) {
2
2
  if (self === void 0) {
3
3
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
4
  }
5
5
  return self;
6
6
  }
7
- function _classCallCheck(instance, Constructor) {
7
+ function _class_call_check(instance, Constructor) {
8
8
  if (!(instance instanceof Constructor)) {
9
9
  throw new TypeError("Cannot call a class as a function");
10
10
  }
11
11
  }
12
- function _getPrototypeOf(o) {
13
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
12
+ function _define_property(obj, key, value) {
13
+ if (key in obj) {
14
+ Object.defineProperty(obj, key, {
15
+ value: value,
16
+ enumerable: true,
17
+ configurable: true,
18
+ writable: true
19
+ });
20
+ } else {
21
+ obj[key] = value;
22
+ }
23
+ return obj;
24
+ }
25
+ function _get_prototype_of(o) {
26
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
14
27
  return o.__proto__ || Object.getPrototypeOf(o);
15
28
  };
16
- return _getPrototypeOf(o);
29
+ return _get_prototype_of(o);
17
30
  }
18
31
  function _inherits(subClass, superClass) {
19
32
  if (typeof superClass !== "function" && superClass !== null) {
@@ -26,26 +39,26 @@ function _inherits(subClass, superClass) {
26
39
  configurable: true
27
40
  }
28
41
  });
29
- if (superClass) _setPrototypeOf(subClass, superClass);
42
+ if (superClass) _set_prototype_of(subClass, superClass);
30
43
  }
31
- function _possibleConstructorReturn(self, call) {
32
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
44
+ function _possible_constructor_return(self, call) {
45
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
33
46
  return call;
34
47
  }
35
- return _assertThisInitialized(self);
48
+ return _assert_this_initialized(self);
36
49
  }
37
- function _setPrototypeOf(o, p) {
38
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
50
+ function _set_prototype_of(o, p) {
51
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
39
52
  o.__proto__ = p;
40
53
  return o;
41
54
  };
42
- return _setPrototypeOf(o, p);
55
+ return _set_prototype_of(o, p);
43
56
  }
44
- var _typeof = function(obj) {
57
+ function _type_of(obj) {
45
58
  "@swc/helpers - typeof";
46
59
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
47
- };
48
- function _isNativeReflectConstruct() {
60
+ }
61
+ function _is_native_reflect_construct() {
49
62
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
50
63
  if (Reflect.construct.sham) return false;
51
64
  if (typeof Proxy === "function") return true;
@@ -56,17 +69,17 @@ function _isNativeReflectConstruct() {
56
69
  return false;
57
70
  }
58
71
  }
59
- function _createSuper(Derived) {
60
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
72
+ function _create_super(Derived) {
73
+ var hasNativeReflectConstruct = _is_native_reflect_construct();
61
74
  return function _createSuperInternal() {
62
- var Super = _getPrototypeOf(Derived), result;
75
+ var Super = _get_prototype_of(Derived), result;
63
76
  if (hasNativeReflectConstruct) {
64
- var NewTarget = _getPrototypeOf(this).constructor;
77
+ var NewTarget = _get_prototype_of(this).constructor;
65
78
  result = Reflect.construct(Super, arguments, NewTarget);
66
79
  } else {
67
80
  result = Super.apply(this, arguments);
68
81
  }
69
- return _possibleConstructorReturn(this, result);
82
+ return _possible_constructor_return(this, result);
70
83
  };
71
84
  }
72
85
  import { RuntimeControl } from "../BaseControl";
@@ -74,12 +87,13 @@ import ColumnControlProperty from "./property";
74
87
  var ColumnControl = /*#__PURE__*/ function(RuntimeControl) {
75
88
  "use strict";
76
89
  _inherits(ColumnControl, RuntimeControl);
77
- var _super = _createSuper(ColumnControl);
90
+ var _super = _create_super(ColumnControl);
78
91
  function ColumnControl(props) {
79
- _classCallCheck(this, ColumnControl);
92
+ _class_call_check(this, ColumnControl);
80
93
  var _this;
81
94
  _this = _super.call(this, props);
82
- _this.controlType = "column";
95
+ _define_property(_assert_this_initialized(_this), "controlType", "column");
96
+ _define_property(_assert_this_initialized(_this), "props", void 0);
83
97
  _this.props = new ColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
84
98
  return _this;
85
99
  }
@@ -1,32 +1,32 @@
1
- function _arrayLikeToArray(arr, len) {
1
+ function _array_like_to_array(arr, len) {
2
2
  if (len == null || len > arr.length) len = arr.length;
3
3
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
4
4
  return arr2;
5
5
  }
6
- function _arrayWithoutHoles(arr) {
7
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
6
+ function _array_without_holes(arr) {
7
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
8
8
  }
9
- function _iterableToArray(iter) {
9
+ function _iterable_to_array(iter) {
10
10
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
11
11
  }
12
- function _nonIterableSpread() {
12
+ function _non_iterable_spread() {
13
13
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
14
14
  }
15
- function _toConsumableArray(arr) {
16
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
15
+ function _to_consumable_array(arr) {
16
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
17
17
  }
18
- function _unsupportedIterableToArray(o, minLen) {
18
+ function _unsupported_iterable_to_array(o, minLen) {
19
19
  if (!o) return;
20
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
20
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
21
21
  var n = Object.prototype.toString.call(o).slice(8, -1);
22
22
  if (n === "Object" && o.constructor) n = o.constructor.name;
23
23
  if (n === "Map" || n === "Set") return Array.from(n);
24
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
24
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
25
25
  }
26
26
  import { isArray, isPlainObject } from "@byteluck-fe/model-driven-shared";
27
27
  export function setPropertyDontEnum(obj, property) {
28
28
  var _Object_getOwnPropertyDescriptors_property;
29
- // 如果没有被设置过不允许枚举的话,说明是第一次被设置,需要设置属性不允许枚举
29
+ //如果没有被设置过不允许枚举的话,说明是第一次被设置,需要设置属性不允许枚举
30
30
  if ((_Object_getOwnPropertyDescriptors_property = Object.getOwnPropertyDescriptors(obj)[property]) === null || _Object_getOwnPropertyDescriptors_property === void 0 ? void 0 : _Object_getOwnPropertyDescriptors_property.enumerable) {
31
31
  Object.defineProperty(obj, property, {
32
32
  enumerable: false
@@ -62,7 +62,7 @@ function proxyState(target, parent) {
62
62
  return (_Reflect = Reflect).get.apply(_Reflect, [
63
63
  t,
64
64
  p
65
- ].concat(_toConsumableArray(args)));
65
+ ].concat(_to_consumable_array(args)));
66
66
  },
67
67
  set: function set(t, property, value) {
68
68
  for(var _len = arguments.length, args = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++){
@@ -77,7 +77,7 @@ function proxyState(target, parent) {
77
77
  t,
78
78
  property,
79
79
  value
80
- ].concat(_toConsumableArray(args)));
80
+ ].concat(_to_consumable_array(args)));
81
81
  if (isPlainObject(value)) {
82
82
  defineParent(value, parent);
83
83
  }
@@ -1,19 +1,32 @@
1
- function _assertThisInitialized(self) {
1
+ function _assert_this_initialized(self) {
2
2
  if (self === void 0) {
3
3
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
4
  }
5
5
  return self;
6
6
  }
7
- function _classCallCheck(instance, Constructor) {
7
+ function _class_call_check(instance, Constructor) {
8
8
  if (!(instance instanceof Constructor)) {
9
9
  throw new TypeError("Cannot call a class as a function");
10
10
  }
11
11
  }
12
- function _getPrototypeOf(o) {
13
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
12
+ function _define_property(obj, key, value) {
13
+ if (key in obj) {
14
+ Object.defineProperty(obj, key, {
15
+ value: value,
16
+ enumerable: true,
17
+ configurable: true,
18
+ writable: true
19
+ });
20
+ } else {
21
+ obj[key] = value;
22
+ }
23
+ return obj;
24
+ }
25
+ function _get_prototype_of(o) {
26
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
14
27
  return o.__proto__ || Object.getPrototypeOf(o);
15
28
  };
16
- return _getPrototypeOf(o);
29
+ return _get_prototype_of(o);
17
30
  }
18
31
  function _inherits(subClass, superClass) {
19
32
  if (typeof superClass !== "function" && superClass !== null) {
@@ -26,26 +39,26 @@ function _inherits(subClass, superClass) {
26
39
  configurable: true
27
40
  }
28
41
  });
29
- if (superClass) _setPrototypeOf(subClass, superClass);
42
+ if (superClass) _set_prototype_of(subClass, superClass);
30
43
  }
31
- function _possibleConstructorReturn(self, call) {
32
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
44
+ function _possible_constructor_return(self, call) {
45
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
33
46
  return call;
34
47
  }
35
- return _assertThisInitialized(self);
48
+ return _assert_this_initialized(self);
36
49
  }
37
- function _setPrototypeOf(o, p) {
38
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
50
+ function _set_prototype_of(o, p) {
51
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
39
52
  o.__proto__ = p;
40
53
  return o;
41
54
  };
42
- return _setPrototypeOf(o, p);
55
+ return _set_prototype_of(o, p);
43
56
  }
44
- var _typeof = function(obj) {
57
+ function _type_of(obj) {
45
58
  "@swc/helpers - typeof";
46
59
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
47
- };
48
- function _isNativeReflectConstruct() {
60
+ }
61
+ function _is_native_reflect_construct() {
49
62
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
50
63
  if (Reflect.construct.sham) return false;
51
64
  if (typeof Proxy === "function") return true;
@@ -56,17 +69,17 @@ function _isNativeReflectConstruct() {
56
69
  return false;
57
70
  }
58
71
  }
59
- function _createSuper(Derived) {
60
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
72
+ function _create_super(Derived) {
73
+ var hasNativeReflectConstruct = _is_native_reflect_construct();
61
74
  return function _createSuperInternal() {
62
- var Super = _getPrototypeOf(Derived), result;
75
+ var Super = _get_prototype_of(Derived), result;
63
76
  if (hasNativeReflectConstruct) {
64
- var NewTarget = _getPrototypeOf(this).constructor;
77
+ var NewTarget = _get_prototype_of(this).constructor;
65
78
  result = Reflect.construct(Super, arguments, NewTarget);
66
79
  } else {
67
80
  result = Super.apply(this, arguments);
68
81
  }
69
- return _possibleConstructorReturn(this, result);
82
+ return _possible_constructor_return(this, result);
70
83
  };
71
84
  }
72
85
  import { DesignerControl } from "../BaseControl";
@@ -74,21 +87,23 @@ import BaseControlProperty from "./property";
74
87
  var FormControl = /*#__PURE__*/ function(DesignerControl) {
75
88
  "use strict";
76
89
  _inherits(FormControl, DesignerControl);
77
- var _super = _createSuper(FormControl);
90
+ var _super = _create_super(FormControl);
78
91
  function FormControl(props) {
79
- _classCallCheck(this, FormControl);
92
+ _class_call_check(this, FormControl);
80
93
  var _this;
81
94
  _this = _super.call(this, props);
82
- _this.controlType = "form";
95
+ _define_property(_assert_this_initialized(_this), "controlType", "form");
96
+ _define_property(_assert_this_initialized(_this), "props", void 0);
83
97
  _this.props = new BaseControlProperty(props === null || props === void 0 ? void 0 : props.props);
84
98
  return _this;
85
99
  }
86
100
  return FormControl;
87
101
  }(DesignerControl);
88
- FormControl.controlEventKeys = [
102
+ _define_property(FormControl, "controlEventKeys", [
89
103
  "on_change",
90
104
  "on_focus",
91
105
  "on_blur"
92
- ];
106
+ ]);
107
+ _define_property(FormControl, "controlCustomAttributes", void 0);
93
108
  export default FormControl;
94
109
  export { FormControl as DesignerFormControl };
@@ -1,19 +1,32 @@
1
- function _assertThisInitialized(self) {
1
+ function _assert_this_initialized(self) {
2
2
  if (self === void 0) {
3
3
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
4
  }
5
5
  return self;
6
6
  }
7
- function _classCallCheck(instance, Constructor) {
7
+ function _class_call_check(instance, Constructor) {
8
8
  if (!(instance instanceof Constructor)) {
9
9
  throw new TypeError("Cannot call a class as a function");
10
10
  }
11
11
  }
12
- function _getPrototypeOf(o) {
13
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
12
+ function _define_property(obj, key, value) {
13
+ if (key in obj) {
14
+ Object.defineProperty(obj, key, {
15
+ value: value,
16
+ enumerable: true,
17
+ configurable: true,
18
+ writable: true
19
+ });
20
+ } else {
21
+ obj[key] = value;
22
+ }
23
+ return obj;
24
+ }
25
+ function _get_prototype_of(o) {
26
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
14
27
  return o.__proto__ || Object.getPrototypeOf(o);
15
28
  };
16
- return _getPrototypeOf(o);
29
+ return _get_prototype_of(o);
17
30
  }
18
31
  function _inherits(subClass, superClass) {
19
32
  if (typeof superClass !== "function" && superClass !== null) {
@@ -26,7 +39,7 @@ function _inherits(subClass, superClass) {
26
39
  configurable: true
27
40
  }
28
41
  });
29
- if (superClass) _setPrototypeOf(subClass, superClass);
42
+ if (superClass) _set_prototype_of(subClass, superClass);
30
43
  }
31
44
  function _instanceof(left, right) {
32
45
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
@@ -35,24 +48,24 @@ function _instanceof(left, right) {
35
48
  return left instanceof right;
36
49
  }
37
50
  }
38
- function _possibleConstructorReturn(self, call) {
39
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
51
+ function _possible_constructor_return(self, call) {
52
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
40
53
  return call;
41
54
  }
42
- return _assertThisInitialized(self);
55
+ return _assert_this_initialized(self);
43
56
  }
44
- function _setPrototypeOf(o, p) {
45
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
57
+ function _set_prototype_of(o, p) {
58
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
46
59
  o.__proto__ = p;
47
60
  return o;
48
61
  };
49
- return _setPrototypeOf(o, p);
62
+ return _set_prototype_of(o, p);
50
63
  }
51
- var _typeof = function(obj) {
64
+ function _type_of(obj) {
52
65
  "@swc/helpers - typeof";
53
66
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
54
- };
55
- function _isNativeReflectConstruct() {
67
+ }
68
+ function _is_native_reflect_construct() {
56
69
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
57
70
  if (Reflect.construct.sham) return false;
58
71
  if (typeof Proxy === "function") return true;
@@ -63,17 +76,17 @@ function _isNativeReflectConstruct() {
63
76
  return false;
64
77
  }
65
78
  }
66
- function _createSuper(Derived) {
67
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
79
+ function _create_super(Derived) {
80
+ var hasNativeReflectConstruct = _is_native_reflect_construct();
68
81
  return function _createSuperInternal() {
69
- var Super = _getPrototypeOf(Derived), result;
82
+ var Super = _get_prototype_of(Derived), result;
70
83
  if (hasNativeReflectConstruct) {
71
- var NewTarget = _getPrototypeOf(this).constructor;
84
+ var NewTarget = _get_prototype_of(this).constructor;
72
85
  result = Reflect.construct(Super, arguments, NewTarget);
73
86
  } else {
74
87
  result = Super.apply(this, arguments);
75
88
  }
76
- return _possibleConstructorReturn(this, result);
89
+ return _possible_constructor_return(this, result);
77
90
  };
78
91
  }
79
92
  import { RulesMessage, JSONCopy } from "@byteluck-fe/model-driven-shared";
@@ -83,48 +96,48 @@ import { DataBind } from "../../framework";
83
96
  var BaseControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
84
97
  "use strict";
85
98
  _inherits(BaseControlPropertyRules, PropertyRules);
86
- var _super = _createSuper(BaseControlPropertyRules);
99
+ var _super = _create_super(BaseControlPropertyRules);
87
100
  function BaseControlPropertyRules(props) {
88
- _classCallCheck(this, BaseControlPropertyRules);
101
+ _class_call_check(this, BaseControlPropertyRules);
89
102
  var _this;
90
103
  _this = _super.call(this, props);
91
- _this.dataBind = {};
92
- _this.caption = {
104
+ _define_property(_assert_this_initialized(_this), "dataBind", {});
105
+ _define_property(_assert_this_initialized(_this), "caption", {
93
106
  type: "string",
94
107
  required: true,
95
108
  message: RulesMessage.getMessage("pleaseEnterCaption")
96
- };
97
- _this.isHideCaption = {
109
+ });
110
+ _define_property(_assert_this_initialized(_this), "isHideCaption", {
98
111
  type: "boolean"
99
- };
100
- _this.labelPosition = {
112
+ });
113
+ _define_property(_assert_this_initialized(_this), "labelPosition", {
101
114
  type: "enum",
102
115
  enum: [
103
116
  "top",
104
117
  "left"
105
118
  ]
106
- };
119
+ });
107
120
  // 去掉placeholder必填校验
108
121
  // public placeholder: RuleItem = {
109
122
  // required: true,
110
123
  // type: 'string',
111
124
  // message: RulesMessage.getMessage('pleaseEnterPlaceholder'),
112
125
  // }
113
- _this.defaultState = {
126
+ _define_property(_assert_this_initialized(_this), "defaultState", {
114
127
  type: "enum",
115
128
  enum: [
116
129
  "default",
117
130
  "readonly"
118
131
  ]
119
- };
120
- _this.required = {
132
+ });
133
+ _define_property(_assert_this_initialized(_this), "required", {
121
134
  type: "boolean"
122
- };
123
- _this.captionTip = {
135
+ });
136
+ _define_property(_assert_this_initialized(_this), "captionTip", {
124
137
  type: "string",
125
138
  required: false,
126
139
  message: RulesMessage.getMessage("pleaseEnterCaptionTip")
127
- };
140
+ });
128
141
  // 初始化dataBind的校验规则
129
142
  var validateFields = {
130
143
  fieldCode: {
@@ -172,9 +185,9 @@ var BaseControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
172
185
  var BaseControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
173
186
  "use strict";
174
187
  _inherits(BaseControlPropertyRuntimeRules, PropertyRuntimeRules);
175
- var _super = _createSuper(BaseControlPropertyRuntimeRules);
188
+ var _super = _create_super(BaseControlPropertyRuntimeRules);
176
189
  function BaseControlPropertyRuntimeRules(props) {
177
- _classCallCheck(this, BaseControlPropertyRuntimeRules);
190
+ _class_call_check(this, BaseControlPropertyRuntimeRules);
178
191
  var _this;
179
192
  _this = _super.call(this, props);
180
193
  _this.push({
@@ -188,15 +201,69 @@ var BaseControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRule
188
201
  }
189
202
  return BaseControlPropertyRuntimeRules;
190
203
  }(PropertyRuntimeRules);
191
- // 基础控件共用的属性
192
- var BaseControlProperty = /*#__PURE__*/ function(Property) {
204
+ /**
205
+ * 表单控件公共属性
206
+ * @public
207
+ */ var BaseControlProperty = /*#__PURE__*/ function(Property) {
193
208
  "use strict";
194
209
  _inherits(BaseControlProperty, Property);
195
- var _super = _createSuper(BaseControlProperty);
210
+ var _super = _create_super(BaseControlProperty);
196
211
  function BaseControlProperty(props) {
197
- _classCallCheck(this, BaseControlProperty);
212
+ _class_call_check(this, BaseControlProperty);
198
213
  var _this;
199
214
  _this = _super.call(this, props);
215
+ /**
216
+ * 标题
217
+ * @defaultValue ''
218
+ * @public
219
+ */ _define_property(_assert_this_initialized(_this), "caption", void 0);
220
+ /**
221
+ * 隐藏标题
222
+ * @defaultValue false
223
+ * @public
224
+ */ _define_property(_assert_this_initialized(_this), "isHideCaption", void 0);
225
+ /**
226
+ * 显示气泡提示
227
+ * @defaultValue false
228
+ * @public
229
+ */ _define_property(_assert_this_initialized(_this), "isShowCaptionTip", void 0);
230
+ /**
231
+ * 气泡提示语
232
+ * @defaultValue ''
233
+ * @public
234
+ */ _define_property(_assert_this_initialized(_this), "captionTip", void 0);
235
+ /**
236
+ * 标题布局
237
+ * @defaultValue ''
238
+ * @public
239
+ */ _define_property(_assert_this_initialized(_this), "labelPosition", void 0);
240
+ /**
241
+ * 绑定数据项
242
+ * @public
243
+ */ _define_property(_assert_this_initialized(_this), "dataBind", void 0);
244
+ /**
245
+ * 默认值
246
+ * @public
247
+ */ _define_property(_assert_this_initialized(_this), "defaultValue", void 0);
248
+ /**
249
+ * 提示文字
250
+ * @defaultValue ''
251
+ * @public
252
+ */ _define_property(_assert_this_initialized(_this), "placeholder", void 0);
253
+ /**
254
+ * 默认状态
255
+ * @defaultValue 'default'
256
+ * @public
257
+ */ _define_property(_assert_this_initialized(_this), "defaultState", void 0);
258
+ /**
259
+ * 必填
260
+ * @defaultValue false
261
+ * @public
262
+ */ _define_property(_assert_this_initialized(_this), "required", void 0);
263
+ /**
264
+ * 必填提示文案
265
+ * @defaultValue ''
266
+ */ _define_property(_assert_this_initialized(_this), "requiredMessage", void 0);
200
267
  var _props_caption;
201
268
  _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : "";
202
269
  var _props_isHideCaption;
@@ -223,37 +290,37 @@ var BaseControlProperty = /*#__PURE__*/ function(Property) {
223
290
  }
224
291
  return BaseControlProperty;
225
292
  }(Property);
226
- BaseControlProperty.Rules = BaseControlPropertyRules;
227
- BaseControlProperty.RuntimeRules = BaseControlPropertyRuntimeRules;
293
+ _define_property(BaseControlProperty, "Rules", BaseControlPropertyRules);
294
+ _define_property(BaseControlProperty, "RuntimeRules", BaseControlPropertyRuntimeRules);
228
295
  var OptionAndDataSourcePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
229
296
  "use strict";
230
297
  _inherits(OptionAndDataSourcePropertyRules, BaseControlPropertyRules);
231
- var _super = _createSuper(OptionAndDataSourcePropertyRules);
298
+ var _super = _create_super(OptionAndDataSourcePropertyRules);
232
299
  function OptionAndDataSourcePropertyRules(props) {
233
- _classCallCheck(this, OptionAndDataSourcePropertyRules);
300
+ _class_call_check(this, OptionAndDataSourcePropertyRules);
234
301
  var _this;
235
302
  _this = _super.call(this, props);
236
- _this.optionConfig = {
303
+ _define_property(_assert_this_initialized(_this), "optionConfig", {
237
304
  type: "enum",
238
305
  enum: [
239
306
  "custom",
240
307
  "datasource"
241
308
  ],
242
309
  message: RulesMessage.getMessage("PleaseSelectTheCorrectOptionSettings")
243
- };
244
- _this.options = [
310
+ });
311
+ _define_property(_assert_this_initialized(_this), "options", [
245
312
  {
246
313
  type: "array",
247
314
  message: RulesMessage.getMessage("isNotArray")
248
315
  }
249
- ];
250
- _this.datasourceBind = [
316
+ ]);
317
+ _define_property(_assert_this_initialized(_this), "datasourceBind", [
251
318
  {
252
319
  type: "object",
253
320
  message: RulesMessage.getMessage("isNotObject")
254
321
  }
255
- ];
256
- initOptionAndDataSourceRules.call(_assertThisInitialized(_this), props);
322
+ ]);
323
+ initOptionAndDataSourceRules.call(_assert_this_initialized(_this), props);
257
324
  return _this;
258
325
  }
259
326
  return OptionAndDataSourcePropertyRules;