@byteluck-fe/model-driven-core 2.5.0-alpha.9 → 2.6.0-alpha.1

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 (63) hide show
  1. package/dist/esm/common/BaseControl/designer.js +189 -228
  2. package/dist/esm/common/BaseControl/property.js +4 -21
  3. package/dist/esm/common/BaseControl/runtime.js +5 -26
  4. package/dist/esm/common/ColumnControl/designer.js +1 -15
  5. package/dist/esm/common/ColumnControl/property.js +11 -59
  6. package/dist/esm/common/ColumnControl/runtime.js +1 -15
  7. package/dist/esm/common/FormControl/designer.js +3 -18
  8. package/dist/esm/common/FormControl/property.js +21 -86
  9. package/dist/esm/common/FormControl/runtime.js +1 -16
  10. package/dist/esm/common/LayoutControl/designer.js +70 -104
  11. package/dist/esm/common/LayoutControl/runtime.js +1 -16
  12. package/dist/esm/common/ListControl/designer.js +61 -86
  13. package/dist/esm/common/ListControl/property.js +0 -14
  14. package/dist/esm/common/ListControl/runtime.js +1 -16
  15. package/dist/esm/common/SearchViewControl/designer.js +1 -15
  16. package/dist/esm/common/SearchViewControl/property.js +0 -14
  17. package/dist/esm/common/SearchViewControl/runtime.js +1 -15
  18. package/dist/esm/common/WrapControl/designer.js +1 -15
  19. package/dist/esm/common/WrapControl/runtime.js +1 -15
  20. package/dist/esm/framework/RegisterControls.js +128 -197
  21. package/dist/esm/framework/index.js +45 -298
  22. package/dist/index.umd.js +1 -1
  23. package/dist/types/api-doc-index.d.ts +4 -4
  24. package/dist/types/common/BaseControl/designer.d.ts +62 -62
  25. package/dist/types/common/BaseControl/index.d.ts +13 -13
  26. package/dist/types/common/BaseControl/property.d.ts +22 -22
  27. package/dist/types/common/BaseControl/runtime.d.ts +22 -22
  28. package/dist/types/common/BaseControl/types.d.ts +35 -35
  29. package/dist/types/common/ColumnControl/designer.d.ts +10 -10
  30. package/dist/types/common/ColumnControl/index.d.ts +12 -12
  31. package/dist/types/common/ColumnControl/property.d.ts +73 -73
  32. package/dist/types/common/ColumnControl/runtime.d.ts +10 -10
  33. package/dist/types/common/ControlArray.d.ts +8 -8
  34. package/dist/types/common/FormControl/designer.d.ts +13 -13
  35. package/dist/types/common/FormControl/index.d.ts +12 -12
  36. package/dist/types/common/FormControl/property.d.ts +96 -96
  37. package/dist/types/common/FormControl/runtime.d.ts +11 -11
  38. package/dist/types/common/LayoutControl/designer.d.ts +21 -21
  39. package/dist/types/common/LayoutControl/index.d.ts +12 -12
  40. package/dist/types/common/LayoutControl/property.d.ts +6 -6
  41. package/dist/types/common/LayoutControl/runtime.d.ts +11 -11
  42. package/dist/types/common/ListControl/designer.d.ts +16 -16
  43. package/dist/types/common/ListControl/index.d.ts +12 -12
  44. package/dist/types/common/ListControl/property.d.ts +12 -12
  45. package/dist/types/common/ListControl/runtime.d.ts +12 -12
  46. package/dist/types/common/SearchViewControl/designer.d.ts +11 -11
  47. package/dist/types/common/SearchViewControl/index.d.ts +12 -12
  48. package/dist/types/common/SearchViewControl/property.d.ts +8 -8
  49. package/dist/types/common/SearchViewControl/runtime.d.ts +11 -11
  50. package/dist/types/common/Validator.d.ts +15 -15
  51. package/dist/types/common/WrapControl/designer.d.ts +11 -11
  52. package/dist/types/common/WrapControl/index.d.ts +12 -12
  53. package/dist/types/common/WrapControl/property.d.ts +6 -6
  54. package/dist/types/common/WrapControl/runtime.d.ts +11 -11
  55. package/dist/types/common/controlHooksEmitter.d.ts +4 -4
  56. package/dist/types/common/index.d.ts +12 -12
  57. package/dist/types/common/initLinkOperationRules.d.ts +6 -6
  58. package/dist/types/common/initOptionAndDataSourceRules.d.ts +10 -10
  59. package/dist/types/framework/RegisterControls.d.ts +33 -33
  60. package/dist/types/framework/index.d.ts +616 -574
  61. package/dist/types/index.d.ts +3 -3
  62. package/dist/types/type.d.ts +91 -91
  63. package/package.json +3 -3
@@ -219,20 +219,12 @@ var Control = /*#__PURE__*/ function _target() {
219
219
  function Control(props) {
220
220
  var _this = this;
221
221
  _classCallCheck(this, Control);
222
- _defineProperty(this, "id", void 0 // 唯一标识符
223
- );
224
- _defineProperty(this, "name", void 0);
225
- _defineProperty(this, "icon", void 0);
226
- _defineProperty(this, "type", void 0);
227
- _defineProperty(this, "controlType", void 0);
228
- _defineProperty(this, "props", void 0);
229
- _defineProperty(this, "setting", []);
230
- _defineProperty(this, "fieldType", void 0);
231
- _defineProperty(this, "eventKeys", []);
232
- _defineProperty(this, "customEvents", []);
233
- _defineProperty(this, "parent", null);
234
- _defineProperty(this, "updateSetting", updateSetting);
235
- _defineProperty(this, "removeSetting", removeSetting);
222
+ this.setting = [];
223
+ this.eventKeys = [];
224
+ this.customEvents = [];
225
+ this.parent = null;
226
+ this.updateSetting = updateSetting;
227
+ this.removeSetting = removeSetting;
236
228
  this._callControlHooks("preInstance", props);
237
229
  var _ref = _instanceof(this, Control) ? this.constructor : void 0, controlName = _ref.controlName, controlIcon = _ref.controlIcon, controlType = _ref.controlType, controlFieldType = _ref.controlFieldType, controlEventKeys = _ref.controlEventKeys, controlCustomEvents = _ref.controlCustomEvents, name = _ref.name, setting = _ref.setting;
238
230
  if (!(controlName && controlIcon && controlType)) {
@@ -256,238 +248,207 @@ var Control = /*#__PURE__*/ function _target() {
256
248
  _this._callControlHooks("postInstance", props);
257
249
  });
258
250
  }
259
- _createClass(Control, [
260
- {
261
- key: "rules",
262
- get: function get() {
263
- var Rules = this.props.constructor.Rules;
264
- if (Rules) {
265
- return new Rules(this.props);
266
- }
267
- return {};
268
- }
269
- },
270
- {
271
- key: "_callControlHooks",
272
- value: function _callControlHooks() {
273
- for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
274
- args[_key] = arguments[_key];
251
+ var _proto = Control.prototype;
252
+ _proto._callControlHooks = function _callControlHooks() {
253
+ for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
254
+ args[_key] = arguments[_key];
255
+ }
256
+ var _controlHooksEmitter;
257
+ var _args = _toArray(args), key = _args[0], arg = _args.slice(1);
258
+ return (_controlHooksEmitter = controlHooksEmitter).emit.apply(_controlHooksEmitter, [
259
+ key,
260
+ this
261
+ ].concat(_toConsumableArray(arg)));
262
+ };
263
+ _proto.preUpdate = function preUpdate(key, value) {
264
+ // 在修改props之前
265
+ this._callControlHooks("preUpdateProps", key, value);
266
+ };
267
+ _proto.postUpdate = function postUpdate(key, value) {
268
+ // 在修改props之后
269
+ this._callControlHooks("postUpdateProps", key, value);
270
+ };
271
+ // 修改实例上的props,key可以是caption,caption.zh...
272
+ _proto.updateProps = function updateProps(key, value) {
273
+ this.preUpdate(key, value);
274
+ updateValueFromKeys(this.props, key, value);
275
+ this.postUpdate(key, value);
276
+ };
277
+ _proto.preValidate = function preValidate() {
278
+ var _this = this;
279
+ return _asyncToGenerator(function() {
280
+ var rules, results, result;
281
+ return __generator(this, function(_state) {
282
+ switch(_state.label){
283
+ case 0:
284
+ rules = _objectSpread({}, _this.rules);
285
+ return [
286
+ 4,
287
+ _this._callControlHooks("preValidate", rules)
288
+ ];
289
+ case 1:
290
+ results = _state.sent();
291
+ result = results[results.length - 1];
292
+ return [
293
+ 2,
294
+ result === false ? undefined : result
295
+ ];
275
296
  }
276
- var _controlHooksEmitter;
277
- var _args = _toArray(args), key = _args[0], arg = _args.slice(1);
278
- return (_controlHooksEmitter = controlHooksEmitter).emit.apply(_controlHooksEmitter, [
279
- key,
280
- this
281
- ].concat(_toConsumableArray(arg)));
282
- }
283
- },
284
- {
285
- key: "preUpdate",
286
- value: function preUpdate(key, value) {
287
- // 在修改props之前
288
- this._callControlHooks("preUpdateProps", key, value);
289
- }
290
- },
291
- {
292
- key: "postUpdate",
293
- value: function postUpdate(key, value) {
294
- // 在修改props之后
295
- this._callControlHooks("postUpdateProps", key, value);
296
- }
297
- },
298
- {
299
- key: "updateProps",
300
- value: // 修改实例上的props,key可以是caption,caption.zh...
301
- function updateProps(key, value) {
302
- this.preUpdate(key, value);
303
- updateValueFromKeys(this.props, key, value);
304
- this.postUpdate(key, value);
305
- }
306
- },
307
- {
308
- key: "preValidate",
309
- value: function preValidate() {
310
- var _this = this;
311
- return _asyncToGenerator(function() {
312
- var rules, results, result;
313
- return __generator(this, function(_state) {
314
- switch(_state.label){
315
- case 0:
316
- rules = _objectSpread({}, _this.rules);
317
- return [
318
- 4,
319
- _this._callControlHooks("preValidate", rules)
320
- ];
321
- case 1:
322
- results = _state.sent();
323
- result = results[results.length - 1];
324
- return [
325
- 2,
326
- result === false ? undefined : result
327
- ];
328
- }
329
- });
330
- })();
331
- }
332
- },
333
- {
334
- key: "validate",
335
- value: // property校验
336
- function validate(messages, ignore) {
337
- var _this = this;
338
- return _asyncToGenerator(function() {
339
- var result, rules, validator, err;
340
- return __generator(this, function(_state) {
341
- switch(_state.label){
342
- case 0:
343
- return [
344
- 4,
345
- _this.preValidate()
346
- ];
347
- case 1:
348
- result = _state.sent();
349
- rules = result !== undefined ? result : _objectSpread({}, _this.rules);
350
- if (Array.isArray(ignore)) {
351
- ignore.forEach(function(key) {
352
- if (rules.hasOwnProperty(key)) {
353
- delete rules[key];
354
- }
355
- });
356
- }
357
- validator = createValidator(rules, messages);
358
- _state.label = 2;
359
- case 2:
360
- _state.trys.push([
361
- 2,
362
- 4,
363
- ,
364
- 5
365
- ]);
366
- return [
367
- 4,
368
- validator.validate(_this.props)
369
- ];
370
- case 3:
371
- _state.sent();
372
- return [
373
- 2,
374
- true
375
- ];
376
- case 4:
377
- err = _state.sent();
378
- if (!err.control) {
379
- err.control = _this;
297
+ });
298
+ })();
299
+ };
300
+ // property校验
301
+ _proto.validate = function validate(messages, ignore) {
302
+ var _this = this;
303
+ return _asyncToGenerator(function() {
304
+ var result, rules, validator, err;
305
+ return __generator(this, function(_state) {
306
+ switch(_state.label){
307
+ case 0:
308
+ return [
309
+ 4,
310
+ _this.preValidate()
311
+ ];
312
+ case 1:
313
+ result = _state.sent();
314
+ rules = result !== undefined ? result : _objectSpread({}, _this.rules);
315
+ if (Array.isArray(ignore)) {
316
+ ignore.forEach(function(key) {
317
+ if (rules.hasOwnProperty(key)) {
318
+ delete rules[key];
380
319
  }
381
- throw err;
382
- case 5:
383
- return [
384
- 2
385
- ];
320
+ });
386
321
  }
387
- });
388
- })();
389
- }
390
- },
391
- {
392
- key: "toDataBindModel",
393
- value: function toDataBindModel() {
394
- var parentId = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
395
- var fieldType = this.fieldType;
396
- var controlId = this.id;
397
- var type = this.type;
398
- var _this_props = this.props, dataBind = _this_props.dataBind, datasourceBind = _this_props.datasourceBind, optionConfig = _this_props.optionConfig, caption = _this_props.caption, required = _this_props.required, maxLength = _this_props.maxLength, options = _this_props.options, encrypted = _this_props.encrypted, encryptedMode = _this_props.encryptedMode;
399
- if (!fieldType && !dataBind && !datasourceBind) return;
400
- var dataBindModelType = {
401
- parentId: parentId,
402
- fieldType: fieldType,
403
- controlId: controlId,
404
- caption: caption,
405
- type: type,
406
- props: {}
407
- };
408
- if (dataBind) {
409
- dataBindModelType.dataBind = dataBind;
410
- }
411
- switch(optionConfig){
412
- case "datasource":
413
- case undefined:
414
- if (datasourceBind) {
415
- dataBindModelType.datasourceBind = datasourceBind;
322
+ validator = createValidator(rules, messages);
323
+ _state.label = 2;
324
+ case 2:
325
+ _state.trys.push([
326
+ 2,
327
+ 4,
328
+ ,
329
+ 5
330
+ ]);
331
+ return [
332
+ 4,
333
+ validator.validate(_this.props)
334
+ ];
335
+ case 3:
336
+ _state.sent();
337
+ return [
338
+ 2,
339
+ true
340
+ ];
341
+ case 4:
342
+ err = _state.sent();
343
+ if (!err.control) {
344
+ err.control = _this;
416
345
  }
417
- break;
418
- case "custom":
419
- dataBindModelType.props.options = options;
420
- break;
421
- }
422
- if (required !== undefined) {
423
- dataBindModelType.required = required;
346
+ throw err;
347
+ case 5:
348
+ return [
349
+ 2
350
+ ];
424
351
  }
425
- if (maxLength !== undefined) {
426
- dataBindModelType.maxLength = maxLength;
427
- }
428
- if (encrypted !== undefined) {
429
- dataBindModelType.encrypted = encrypted;
430
- }
431
- if (encryptedMode !== undefined) {
432
- dataBindModelType.encryptedMode = encryptedMode;
352
+ });
353
+ })();
354
+ };
355
+ _proto.toDataBindModel = function toDataBindModel() {
356
+ var parentId = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
357
+ var fieldType = this.fieldType;
358
+ var controlId = this.id;
359
+ var type = this.type;
360
+ var _this_props = this.props, dataBind = _this_props.dataBind, datasourceBind = _this_props.datasourceBind, optionConfig = _this_props.optionConfig, caption = _this_props.caption, required = _this_props.required, maxLength = _this_props.maxLength, options = _this_props.options, encrypted = _this_props.encrypted, encryptedMode = _this_props.encryptedMode;
361
+ if (!fieldType && !dataBind && !datasourceBind) return;
362
+ var dataBindModelType = {
363
+ parentId: parentId,
364
+ fieldType: fieldType,
365
+ controlId: controlId,
366
+ caption: caption,
367
+ type: type,
368
+ props: {}
369
+ };
370
+ if (dataBind) {
371
+ dataBindModelType.dataBind = dataBind;
372
+ }
373
+ switch(optionConfig){
374
+ case "datasource":
375
+ case undefined:
376
+ if (datasourceBind) {
377
+ dataBindModelType.datasourceBind = datasourceBind;
433
378
  }
434
- return dataBindModelType;
435
- }
436
- },
437
- {
438
- key: "preToSchema",
439
- value: function preToSchema() {
440
- // 在处理Schema之前,预留的钩子函数,允许在toSchema之前处理一些数据
441
- this._callControlHooks("preToSchema", this);
442
- }
443
- },
444
- {
445
- key: "toSchema",
446
- value: function toSchema() {
447
- this.preToSchema();
448
- return {
449
- id: this.id,
450
- type: this.type,
451
- props: JSONCopy(this.props),
452
- fieldType: this.fieldType,
453
- controlType: this.controlType
454
- };
455
- }
379
+ break;
380
+ case "custom":
381
+ dataBindModelType.props.options = options;
382
+ break;
383
+ }
384
+ if (required !== undefined) {
385
+ dataBindModelType.required = required;
386
+ }
387
+ if (maxLength !== undefined) {
388
+ dataBindModelType.maxLength = maxLength;
389
+ }
390
+ if (encrypted !== undefined) {
391
+ dataBindModelType.encrypted = encrypted;
456
392
  }
457
- ], [
393
+ if (encryptedMode !== undefined) {
394
+ dataBindModelType.encryptedMode = encryptedMode;
395
+ }
396
+ return dataBindModelType;
397
+ };
398
+ _proto.preToSchema = function preToSchema() {
399
+ // 在处理Schema之前,预留的钩子函数,允许在toSchema之前处理一些数据
400
+ this._callControlHooks("preToSchema", this);
401
+ };
402
+ _proto.toSchema = function toSchema() {
403
+ this.preToSchema();
404
+ return {
405
+ id: this.id,
406
+ type: this.type,
407
+ props: JSONCopy(this.props),
408
+ fieldType: this.fieldType,
409
+ controlType: this.controlType
410
+ };
411
+ };
412
+ Control.updateBasicControl = function updateBasicControl(key, setting) {
413
+ if (key !== "setting") return;
414
+ if (setting.add) {
415
+ var _this_setting;
416
+ (_this_setting = this.setting).push.apply(_this_setting, _toConsumableArray(setting.add));
417
+ }
418
+ if (setting.remove) {
419
+ this.removeSettingItem(setting.remove);
420
+ }
421
+ if (setting.update) {
422
+ // this.updateSettingItem(setting.update, false)
423
+ }
424
+ };
425
+ _createClass(Control, [
458
426
  {
459
- key: "updateBasicControl",
460
- value: function updateBasicControl(key, setting) {
461
- if (key !== "setting") return;
462
- if (setting.add) {
463
- var _this_setting;
464
- (_this_setting = this.setting).push.apply(_this_setting, _toConsumableArray(setting.add));
465
- }
466
- if (setting.remove) {
467
- this.removeSettingItem(setting.remove);
468
- }
469
- if (setting.update) {
470
- // this.updateSettingItem(setting.update, false)
427
+ key: "rules",
428
+ get: function get() {
429
+ var Rules = this.props.constructor.Rules;
430
+ if (Rules) {
431
+ return new Rules(this.props);
471
432
  }
433
+ return {};
472
434
  }
473
435
  }
474
436
  ]);
475
437
  return Control;
476
438
  }();
477
- _defineProperty(Control, "controlName", "控件");
478
- _defineProperty(Control, "controlIcon", "icon");
479
- _defineProperty(Control, "controlType", "control");
480
- _defineProperty(Control, "controlFieldType", void 0);
439
+ Control.controlName = "控件";
440
+ Control.controlIcon = "icon";
441
+ Control.controlType = "control";
481
442
  // 控件可以触发的事件key
482
- _defineProperty(Control, "controlEventKeys", []);
483
- _defineProperty(Control, "controlCustomEvents", []);
443
+ Control.controlEventKeys = [];
444
+ Control.controlCustomEvents = [];
484
445
  // setting应该是全量的设置项,外部控制,在初始化的时候会deepCopy一份
485
- _defineProperty(Control, "setting", []);
486
- _defineProperty(Control, "__is_control__", true);
446
+ Control.setting = [];
447
+ Control.__is_control__ = true;
487
448
  // 删除指定的settingItem
488
- _defineProperty(Control, "removeSettingItem", removeSetting);
449
+ Control.removeSettingItem = removeSetting;
489
450
  // 修改指定的settingItem的visible
490
- _defineProperty(Control, "updateSettingItem", updateSetting);
451
+ Control.updateSettingItem = updateSetting;
491
452
  export default Control;
492
453
  export { Control as DesignerControl };
493
454
  /**
@@ -37,19 +37,6 @@ function _construct(Parent, args, Class) {
37
37
  }
38
38
  return _construct.apply(null, arguments);
39
39
  }
40
- function _defineProperty(obj, key, value) {
41
- if (key in obj) {
42
- Object.defineProperty(obj, key, {
43
- value: value,
44
- enumerable: true,
45
- configurable: true,
46
- writable: true
47
- });
48
- } else {
49
- obj[key] = value;
50
- }
51
- return obj;
52
- }
53
40
  function _getPrototypeOf(o) {
54
41
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
55
42
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -143,9 +130,9 @@ import { BaseStyle } from "../../framework";
143
130
  var PropertyRules = function PropertyRules(props) {
144
131
  "use strict";
145
132
  _classCallCheck(this, PropertyRules);
146
- _defineProperty(this, "isHide", {
133
+ this.isHide = {
147
134
  type: "boolean"
148
- });
135
+ };
149
136
  };
150
137
  var PropertyRuntimeRules = /*#__PURE__*/ function(Array1) {
151
138
  "use strict";
@@ -161,17 +148,13 @@ var Property = function Property(props) {
161
148
  "use strict";
162
149
  var caption = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
163
150
  _classCallCheck(this, Property);
164
- _defineProperty(this, "isHide", void 0);
165
- _defineProperty(this, "className", void 0);
166
- _defineProperty(this, "style", void 0);
167
- _defineProperty(this, "caption", void 0);
168
151
  var _props_isHide;
169
152
  this.isHide = (_props_isHide = props === null || props === void 0 ? void 0 : props.isHide) !== null && _props_isHide !== void 0 ? _props_isHide : false;
170
153
  this.style = new BaseStyle(props === null || props === void 0 ? void 0 : props.style);
171
154
  var _props_caption;
172
155
  this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : caption;
173
156
  };
174
- _defineProperty(Property, "Rules", PropertyRules);
175
- _defineProperty(Property, "RuntimeRules", PropertyRuntimeRules);
157
+ Property.Rules = PropertyRules;
158
+ Property.RuntimeRules = PropertyRuntimeRules;
176
159
  export default Property;
177
160
  export { Property, PropertyRules, PropertyRuntimeRules };
@@ -17,19 +17,6 @@ function _createClass(Constructor, protoProps, staticProps) {
17
17
  if (staticProps) _defineProperties(Constructor, staticProps);
18
18
  return Constructor;
19
19
  }
20
- function _defineProperty(obj, key, value) {
21
- if (key in obj) {
22
- Object.defineProperty(obj, key, {
23
- value: value,
24
- enumerable: true,
25
- configurable: true,
26
- writable: true
27
- });
28
- } else {
29
- obj[key] = value;
30
- }
31
- return obj;
32
- }
33
20
  function _instanceof(left, right) {
34
21
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
35
22
  return !!right[Symbol.hasInstance](left);
@@ -44,15 +31,8 @@ var Control = /*#__PURE__*/ function _target() {
44
31
  "use strict";
45
32
  function Control(props) {
46
33
  _classCallCheck(this, Control);
47
- _defineProperty(this, "id", void 0 // 唯一标识符
48
- );
49
- _defineProperty(this, "type", void 0);
50
- _defineProperty(this, "controlType", void 0);
51
- _defineProperty(this, "props", void 0);
52
- _defineProperty(this, "fieldType", void 0);
53
- _defineProperty(this, "customEvents", []);
54
- _defineProperty(this, "pageStatus", void 0);
55
- _defineProperty(this, "parent", null);
34
+ this.customEvents = [];
35
+ this.parent = null;
56
36
  var _ref = _instanceof(this, Control) ? this.constructor : void 0, controlType = _ref.controlType, controlFieldType = _ref.controlFieldType, name = _ref.name, controlCustomEvents = _ref.controlCustomEvents;
57
37
  if (!controlType) {
58
38
  referenceError("The ".concat(name, " controlType is not define"));
@@ -85,9 +65,8 @@ var Control = /*#__PURE__*/ function _target() {
85
65
  ]);
86
66
  return Control;
87
67
  }();
88
- _defineProperty(Control, "controlType", "control");
89
- _defineProperty(Control, "controlFieldType", void 0);
90
- _defineProperty(Control, "__is_control__", true);
91
- _defineProperty(Control, "controlCustomEvents", []);
68
+ Control.controlType = "control";
69
+ Control.__is_control__ = true;
70
+ Control.controlCustomEvents = [];
92
71
  export default Control;
93
72
  export { Control as RuntimeControl };
@@ -9,19 +9,6 @@ function _classCallCheck(instance, Constructor) {
9
9
  throw new TypeError("Cannot call a class as a function");
10
10
  }
11
11
  }
12
- function _defineProperty(obj, key, value) {
13
- if (key in obj) {
14
- Object.defineProperty(obj, key, {
15
- value: value,
16
- enumerable: true,
17
- configurable: true,
18
- writable: true
19
- });
20
- } else {
21
- obj[key] = value;
22
- }
23
- return obj;
24
- }
25
12
  function _getPrototypeOf(o) {
26
13
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
27
14
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -92,8 +79,7 @@ var ColumnControl = /*#__PURE__*/ function(DesignerControl) {
92
79
  _classCallCheck(this, ColumnControl);
93
80
  var _this;
94
81
  _this = _super.call(this, props);
95
- _defineProperty(_assertThisInitialized(_this), "controlType", "column");
96
- _defineProperty(_assertThisInitialized(_this), "props", void 0);
82
+ _this.controlType = "column";
97
83
  _this.props = new ColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
98
84
  return _this;
99
85
  }