@byteluck-fe/model-driven-core 2.7.0-alpha.2 → 2.7.0-alpha.21

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 (33) hide show
  1. package/dist/esm/common/BaseControl/designer.js +259 -220
  2. package/dist/esm/common/BaseControl/property.js +68 -53
  3. package/dist/esm/common/BaseControl/runtime.js +37 -15
  4. package/dist/esm/common/ColumnControl/designer.js +39 -24
  5. package/dist/esm/common/ColumnControl/property.js +97 -48
  6. package/dist/esm/common/ColumnControl/runtime.js +39 -24
  7. package/dist/esm/common/ControlArray.js +12 -12
  8. package/dist/esm/common/FormControl/designer.js +42 -26
  9. package/dist/esm/common/FormControl/property.js +130 -69
  10. package/dist/esm/common/FormControl/runtime.js +40 -24
  11. package/dist/esm/common/LayoutControl/designer.js +151 -116
  12. package/dist/esm/common/LayoutControl/property.js +22 -22
  13. package/dist/esm/common/LayoutControl/runtime.js +41 -25
  14. package/dist/esm/common/ListControl/designer.js +141 -106
  15. package/dist/esm/common/ListControl/property.js +40 -23
  16. package/dist/esm/common/ListControl/runtime.js +43 -27
  17. package/dist/esm/common/SearchViewControl/designer.js +39 -24
  18. package/dist/esm/common/SearchViewControl/property.js +38 -23
  19. package/dist/esm/common/SearchViewControl/runtime.js +39 -24
  20. package/dist/esm/common/WrapControl/designer.js +39 -24
  21. package/dist/esm/common/WrapControl/property.js +22 -22
  22. package/dist/esm/common/WrapControl/runtime.js +39 -24
  23. package/dist/esm/framework/RegisterControls.js +215 -130
  24. package/dist/esm/framework/index.js +714 -248
  25. package/dist/esm/framework/isDataBind.js +8 -0
  26. package/dist/esm/index.js +1 -0
  27. package/dist/index.umd.js +1 -1
  28. package/dist/types/common/ColumnControl/property.d.ts +1 -1
  29. package/dist/types/common/ListControl/property.d.ts +2 -0
  30. package/dist/types/framework/index.d.ts +3 -2
  31. package/dist/types/framework/isDataBind.d.ts +2 -0
  32. package/dist/types/index.d.ts +1 -0
  33. 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,33 +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 _instanceof(left, right) {
32
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
33
- return !!right[Symbol.hasInstance](left);
34
- } else {
35
- return left instanceof right;
36
- }
37
- }
38
- function _possibleConstructorReturn(self, call) {
39
- 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")) {
40
46
  return call;
41
47
  }
42
- return _assertThisInitialized(self);
48
+ return _assert_this_initialized(self);
43
49
  }
44
- function _setPrototypeOf(o, p) {
45
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
50
+ function _set_prototype_of(o, p) {
51
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
46
52
  o.__proto__ = p;
47
53
  return o;
48
54
  };
49
- return _setPrototypeOf(o, p);
55
+ return _set_prototype_of(o, p);
50
56
  }
51
- var _typeof = function(obj) {
57
+ function _type_of(obj) {
52
58
  "@swc/helpers - typeof";
53
59
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
54
- };
55
- function _isNativeReflectConstruct() {
60
+ }
61
+ function _is_native_reflect_construct() {
56
62
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
57
63
  if (Reflect.construct.sham) return false;
58
64
  if (typeof Proxy === "function") return true;
@@ -63,68 +69,69 @@ function _isNativeReflectConstruct() {
63
69
  return false;
64
70
  }
65
71
  }
66
- function _createSuper(Derived) {
67
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
72
+ function _create_super(Derived) {
73
+ var hasNativeReflectConstruct = _is_native_reflect_construct();
68
74
  return function _createSuperInternal() {
69
- var Super = _getPrototypeOf(Derived), result;
75
+ var Super = _get_prototype_of(Derived), result;
70
76
  if (hasNativeReflectConstruct) {
71
- var NewTarget = _getPrototypeOf(this).constructor;
77
+ var NewTarget = _get_prototype_of(this).constructor;
72
78
  result = Reflect.construct(Super, arguments, NewTarget);
73
79
  } else {
74
80
  result = Super.apply(this, arguments);
75
81
  }
76
- return _possibleConstructorReturn(this, result);
82
+ return _possible_constructor_return(this, result);
77
83
  };
78
84
  }
79
85
  import { RulesMessage, JSONCopy } from "@byteluck-fe/model-driven-shared";
80
86
  import { Property, PropertyRules, PropertyRuntimeRules } from "../BaseControl";
81
87
  import { initOptionAndDataSourceRules } from "../initOptionAndDataSourceRules";
82
88
  import { DataBind } from "../../framework";
89
+ import { isDataBind } from "../../framework/isDataBind";
83
90
  var BaseControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
84
91
  "use strict";
85
92
  _inherits(BaseControlPropertyRules, PropertyRules);
86
- var _super = _createSuper(BaseControlPropertyRules);
93
+ var _super = _create_super(BaseControlPropertyRules);
87
94
  function BaseControlPropertyRules(props) {
88
- _classCallCheck(this, BaseControlPropertyRules);
95
+ _class_call_check(this, BaseControlPropertyRules);
89
96
  var _this;
90
97
  _this = _super.call(this, props);
91
- _this.dataBind = {};
92
- _this.caption = {
98
+ _define_property(_assert_this_initialized(_this), "dataBind", {});
99
+ _define_property(_assert_this_initialized(_this), "caption", {
93
100
  type: "string",
94
101
  required: true,
95
102
  message: RulesMessage.getMessage("pleaseEnterCaption")
96
- };
97
- _this.isHideCaption = {
103
+ });
104
+ _define_property(_assert_this_initialized(_this), "isHideCaption", {
98
105
  type: "boolean"
99
- };
100
- _this.labelPosition = {
106
+ });
107
+ _define_property(_assert_this_initialized(_this), "labelPosition", {
101
108
  type: "enum",
102
109
  enum: [
103
110
  "top",
104
111
  "left"
105
112
  ]
106
- };
113
+ });
107
114
  // 去掉placeholder必填校验
108
115
  // public placeholder: RuleItem = {
109
116
  // required: true,
110
117
  // type: 'string',
111
118
  // message: RulesMessage.getMessage('pleaseEnterPlaceholder'),
112
119
  // }
113
- _this.defaultState = {
120
+ _define_property(_assert_this_initialized(_this), "defaultState", {
114
121
  type: "enum",
115
122
  enum: [
116
123
  "default",
117
124
  "readonly"
118
125
  ]
119
- };
120
- _this.required = {
126
+ });
127
+ _define_property(_assert_this_initialized(_this), "required", {
121
128
  type: "boolean"
122
- };
123
- _this.captionTip = {
129
+ });
130
+ _define_property(_assert_this_initialized(_this), "captionTip", {
124
131
  type: "string",
125
132
  required: false,
126
133
  message: RulesMessage.getMessage("pleaseEnterCaptionTip")
127
- };
134
+ });
128
135
  // 初始化dataBind的校验规则
129
136
  var validateFields = {
130
137
  fieldCode: {
@@ -138,7 +145,8 @@ var BaseControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
138
145
  message: RulesMessage.getMessage("pleaseEnterFieldCode")
139
146
  }
140
147
  };
141
- if (_instanceof(props.dataBind, DataBind)) {
148
+ // if (props.dataBind instanceof DataBind) {
149
+ if (isDataBind(props.dataBind)) {
142
150
  _this.dataBind = {
143
151
  type: "object",
144
152
  required: true,
@@ -172,9 +180,9 @@ var BaseControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
172
180
  var BaseControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
173
181
  "use strict";
174
182
  _inherits(BaseControlPropertyRuntimeRules, PropertyRuntimeRules);
175
- var _super = _createSuper(BaseControlPropertyRuntimeRules);
183
+ var _super = _create_super(BaseControlPropertyRuntimeRules);
176
184
  function BaseControlPropertyRuntimeRules(props) {
177
- _classCallCheck(this, BaseControlPropertyRuntimeRules);
185
+ _class_call_check(this, BaseControlPropertyRuntimeRules);
178
186
  var _this;
179
187
  _this = _super.call(this, props);
180
188
  _this.push({
@@ -194,68 +202,121 @@ var BaseControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRule
194
202
  */ var BaseControlProperty = /*#__PURE__*/ function(Property) {
195
203
  "use strict";
196
204
  _inherits(BaseControlProperty, Property);
197
- var _super = _createSuper(BaseControlProperty);
205
+ var _super = _create_super(BaseControlProperty);
198
206
  function BaseControlProperty(props) {
199
- _classCallCheck(this, BaseControlProperty);
207
+ _class_call_check(this, BaseControlProperty);
200
208
  var _this;
209
+ var _props, _props1, _props2, _props3, _props4, _props5, _props6, _props7, _props8, _props9, _props10;
201
210
  _this = _super.call(this, props);
211
+ /**
212
+ * 标题
213
+ * @defaultValue ''
214
+ * @public
215
+ */ _define_property(_assert_this_initialized(_this), "caption", void 0);
216
+ /**
217
+ * 隐藏标题
218
+ * @defaultValue false
219
+ * @public
220
+ */ _define_property(_assert_this_initialized(_this), "isHideCaption", void 0);
221
+ /**
222
+ * 显示气泡提示
223
+ * @defaultValue false
224
+ * @public
225
+ */ _define_property(_assert_this_initialized(_this), "isShowCaptionTip", void 0);
226
+ /**
227
+ * 气泡提示语
228
+ * @defaultValue ''
229
+ * @public
230
+ */ _define_property(_assert_this_initialized(_this), "captionTip", void 0);
231
+ /**
232
+ * 标题布局
233
+ * @defaultValue ''
234
+ * @public
235
+ */ _define_property(_assert_this_initialized(_this), "labelPosition", void 0);
236
+ /**
237
+ * 绑定数据项
238
+ * @public
239
+ */ _define_property(_assert_this_initialized(_this), "dataBind", void 0);
240
+ /**
241
+ * 默认值
242
+ * @public
243
+ */ _define_property(_assert_this_initialized(_this), "defaultValue", void 0);
244
+ /**
245
+ * 提示文字
246
+ * @defaultValue ''
247
+ * @public
248
+ */ _define_property(_assert_this_initialized(_this), "placeholder", void 0);
249
+ /**
250
+ * 默认状态
251
+ * @defaultValue 'default'
252
+ * @public
253
+ */ _define_property(_assert_this_initialized(_this), "defaultState", void 0);
254
+ /**
255
+ * 必填
256
+ * @defaultValue false
257
+ * @public
258
+ */ _define_property(_assert_this_initialized(_this), "required", void 0);
259
+ /**
260
+ * 必填提示文案
261
+ * @defaultValue ''
262
+ */ _define_property(_assert_this_initialized(_this), "requiredMessage", void 0);
202
263
  var _props_caption;
203
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : "";
264
+ _this.caption = (_props_caption = (_props = props) === null || _props === void 0 ? void 0 : _props.caption) !== null && _props_caption !== void 0 ? _props_caption : "";
204
265
  var _props_isHideCaption;
205
- _this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
266
+ _this.isHideCaption = (_props_isHideCaption = (_props1 = props) === null || _props1 === void 0 ? void 0 : _props1.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
206
267
  var _props_isShowCaptionTip;
207
- _this.isShowCaptionTip = (_props_isShowCaptionTip = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _props_isShowCaptionTip !== void 0 ? _props_isShowCaptionTip : false;
268
+ _this.isShowCaptionTip = (_props_isShowCaptionTip = (_props2 = props) === null || _props2 === void 0 ? void 0 : _props2.isShowCaptionTip) !== null && _props_isShowCaptionTip !== void 0 ? _props_isShowCaptionTip : false;
208
269
  var _props_captionTip;
209
- _this.captionTip = (_props_captionTip = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _props_captionTip !== void 0 ? _props_captionTip : "";
270
+ _this.captionTip = (_props_captionTip = (_props3 = props) === null || _props3 === void 0 ? void 0 : _props3.captionTip) !== null && _props_captionTip !== void 0 ? _props_captionTip : "";
210
271
  var _props_defaultState;
211
- _this.defaultState = (_props_defaultState = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _props_defaultState !== void 0 ? _props_defaultState : "default";
272
+ _this.defaultState = (_props_defaultState = (_props4 = props) === null || _props4 === void 0 ? void 0 : _props4.defaultState) !== null && _props_defaultState !== void 0 ? _props_defaultState : "default";
212
273
  var _props_labelPosition;
213
- _this.labelPosition = (_props_labelPosition = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _props_labelPosition !== void 0 ? _props_labelPosition : "top";
274
+ _this.labelPosition = (_props_labelPosition = (_props5 = props) === null || _props5 === void 0 ? void 0 : _props5.labelPosition) !== null && _props_labelPosition !== void 0 ? _props_labelPosition : "top";
214
275
  var _props_placeholder;
215
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
276
+ _this.placeholder = (_props_placeholder = (_props6 = props) === null || _props6 === void 0 ? void 0 : _props6.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
216
277
  var _props_required;
217
- _this.required = (_props_required = props === null || props === void 0 ? void 0 : props.required) !== null && _props_required !== void 0 ? _props_required : false;
278
+ _this.required = (_props_required = (_props7 = props) === null || _props7 === void 0 ? void 0 : _props7.required) !== null && _props_required !== void 0 ? _props_required : false;
218
279
  var _props_requiredMessage;
219
- _this.requiredMessage = (_props_requiredMessage = props === null || props === void 0 ? void 0 : props.requiredMessage) !== null && _props_requiredMessage !== void 0 ? _props_requiredMessage : "";
280
+ _this.requiredMessage = (_props_requiredMessage = (_props8 = props) === null || _props8 === void 0 ? void 0 : _props8.requiredMessage) !== null && _props_requiredMessage !== void 0 ? _props_requiredMessage : "";
220
281
  //form 组件优先初始化DataBind
221
- _this.dataBind = new DataBind(props === null || props === void 0 ? void 0 : props.dataBind);
282
+ _this.dataBind = new DataBind((_props9 = props) === null || _props9 === void 0 ? void 0 : _props9.dataBind);
222
283
  var _props_defaultValue;
223
- _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : "";
284
+ _this.defaultValue = (_props_defaultValue = (_props10 = props) === null || _props10 === void 0 ? void 0 : _props10.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : "";
224
285
  return _this;
225
286
  }
226
287
  return BaseControlProperty;
227
288
  }(Property);
228
- BaseControlProperty.Rules = BaseControlPropertyRules;
229
- BaseControlProperty.RuntimeRules = BaseControlPropertyRuntimeRules;
289
+ _define_property(BaseControlProperty, "Rules", BaseControlPropertyRules);
290
+ _define_property(BaseControlProperty, "RuntimeRules", BaseControlPropertyRuntimeRules);
230
291
  var OptionAndDataSourcePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
231
292
  "use strict";
232
293
  _inherits(OptionAndDataSourcePropertyRules, BaseControlPropertyRules);
233
- var _super = _createSuper(OptionAndDataSourcePropertyRules);
294
+ var _super = _create_super(OptionAndDataSourcePropertyRules);
234
295
  function OptionAndDataSourcePropertyRules(props) {
235
- _classCallCheck(this, OptionAndDataSourcePropertyRules);
296
+ _class_call_check(this, OptionAndDataSourcePropertyRules);
236
297
  var _this;
237
298
  _this = _super.call(this, props);
238
- _this.optionConfig = {
299
+ _define_property(_assert_this_initialized(_this), "optionConfig", {
239
300
  type: "enum",
240
301
  enum: [
241
302
  "custom",
242
303
  "datasource"
243
304
  ],
244
305
  message: RulesMessage.getMessage("PleaseSelectTheCorrectOptionSettings")
245
- };
246
- _this.options = [
306
+ });
307
+ _define_property(_assert_this_initialized(_this), "options", [
247
308
  {
248
309
  type: "array",
249
310
  message: RulesMessage.getMessage("isNotArray")
250
311
  }
251
- ];
252
- _this.datasourceBind = [
312
+ ]);
313
+ _define_property(_assert_this_initialized(_this), "datasourceBind", [
253
314
  {
254
315
  type: "object",
255
316
  message: RulesMessage.getMessage("isNotObject")
256
317
  }
257
- ];
258
- initOptionAndDataSourceRules.call(_assertThisInitialized(_this), props);
318
+ ]);
319
+ initOptionAndDataSourceRules.call(_assert_this_initialized(_this), props);
259
320
  return _this;
260
321
  }
261
322
  return OptionAndDataSourcePropertyRules;
@@ -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,13 +87,16 @@ import BaseControlProperty from "./property";
74
87
  var FormControl = /*#__PURE__*/ function(RuntimeControl) {
75
88
  "use strict";
76
89
  _inherits(FormControl, RuntimeControl);
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;
94
+ var _props;
81
95
  _this = _super.call(this, props);
82
- _this.controlType = "form";
83
- _this.props = new BaseControlProperty(props === null || props === void 0 ? void 0 : props.props);
96
+ _define_property(_assert_this_initialized(_this), "controlType", "form");
97
+ _define_property(_assert_this_initialized(_this), "props", void 0);
98
+ _define_property(_assert_this_initialized(_this), "value", void 0);
99
+ _this.props = new BaseControlProperty((_props = props) === null || _props === void 0 ? void 0 : _props.props);
84
100
  return _this;
85
101
  }
86
102
  return FormControl;