@byteluck-fe/model-driven-core 6.2.0-beta.9 → 6.2.0-cyj.0

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 (28) hide show
  1. package/dist/esm/common/BaseControl/designer.js +40 -41
  2. package/dist/esm/common/BaseControl/property.js +19 -31
  3. package/dist/esm/common/BaseControl/runtime.js +11 -20
  4. package/dist/esm/common/ColumnControl/designer.js +17 -29
  5. package/dist/esm/common/ColumnControl/property.js +18 -30
  6. package/dist/esm/common/ColumnControl/runtime.js +12 -20
  7. package/dist/esm/common/ControlArray.js +4 -2
  8. package/dist/esm/common/FormControl/designer.js +12 -20
  9. package/dist/esm/common/FormControl/property.js +26 -46
  10. package/dist/esm/common/FormControl/runtime.js +12 -20
  11. package/dist/esm/common/LayoutControl/designer.js +49 -55
  12. package/dist/esm/common/LayoutControl/property.js +11 -17
  13. package/dist/esm/common/LayoutControl/runtime.js +12 -20
  14. package/dist/esm/common/ListControl/designer.js +47 -52
  15. package/dist/esm/common/ListControl/property.js +17 -28
  16. package/dist/esm/common/ListControl/runtime.js +12 -20
  17. package/dist/esm/common/SearchViewControl/designer.js +12 -20
  18. package/dist/esm/common/SearchViewControl/property.js +12 -20
  19. package/dist/esm/common/SearchViewControl/runtime.js +12 -20
  20. package/dist/esm/common/WrapControl/designer.js +12 -20
  21. package/dist/esm/common/WrapControl/property.js +11 -17
  22. package/dist/esm/common/WrapControl/runtime.js +12 -20
  23. package/dist/esm/framework/RegisterControls.js +2 -6
  24. package/dist/esm/framework/index.js +231 -345
  25. package/dist/index.umd.js +3 -1
  26. package/dist/types/common/ColumnControl/designer.d.ts +4 -4
  27. package/dist/types/framework/index.d.ts +27 -26
  28. package/package.json +3 -3
@@ -1,7 +1,5 @@
1
1
  function _assert_this_initialized(self) {
2
- if (self === void 0) {
3
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
- }
2
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5
3
  return self;
6
4
  }
7
5
  function _call_super(_this, derived, args) {
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
9
7
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
8
  }
11
9
  function _class_call_check(instance, Constructor) {
12
- if (!(instance instanceof Constructor)) {
13
- throw new TypeError("Cannot call a class as a function");
14
- }
10
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
15
11
  }
16
12
  function _define_property(obj, key, value) {
17
13
  if (key in obj) {
@@ -21,9 +17,7 @@ function _define_property(obj, key, value) {
21
17
  configurable: true,
22
18
  writable: true
23
19
  });
24
- } else {
25
- obj[key] = value;
26
- }
20
+ } else obj[key] = value;
27
21
  return obj;
28
22
  }
29
23
  function _get_prototype_of(o) {
@@ -45,10 +39,16 @@ function _inherits(subClass, superClass) {
45
39
  });
46
40
  if (superClass) _set_prototype_of(subClass, superClass);
47
41
  }
42
+ function _is_native_reflect_construct() {
43
+ try {
44
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
45
+ } catch (_) {}
46
+ return (_is_native_reflect_construct = function() {
47
+ return !!result;
48
+ })();
49
+ }
48
50
  function _possible_constructor_return(self, call) {
49
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
50
- return call;
51
- }
51
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
52
52
  return _assert_this_initialized(self);
53
53
  }
54
54
  function _set_prototype_of(o, p) {
@@ -62,14 +62,6 @@ function _type_of(obj) {
62
62
  "@swc/helpers - typeof";
63
63
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
64
64
  }
65
- function _is_native_reflect_construct() {
66
- try {
67
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
68
- } catch (_) {}
69
- return (_is_native_reflect_construct = function() {
70
- return !!result;
71
- })();
72
- }
73
65
  import { DesignerControl } from '../BaseControl';
74
66
  import BaseControlProperty from './property';
75
67
  var FormControl = /*#__PURE__*/ function(DesignerControl) {
@@ -1,7 +1,5 @@
1
1
  function _assert_this_initialized(self) {
2
- if (self === void 0) {
3
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
- }
2
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5
3
  return self;
6
4
  }
7
5
  function _call_super(_this, derived, args) {
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
9
7
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
8
  }
11
9
  function _class_call_check(instance, Constructor) {
12
- if (!(instance instanceof Constructor)) {
13
- throw new TypeError("Cannot call a class as a function");
14
- }
10
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
15
11
  }
16
12
  function _define_property(obj, key, value) {
17
13
  if (key in obj) {
@@ -21,9 +17,7 @@ function _define_property(obj, key, value) {
21
17
  configurable: true,
22
18
  writable: true
23
19
  });
24
- } else {
25
- obj[key] = value;
26
- }
20
+ } else obj[key] = value;
27
21
  return obj;
28
22
  }
29
23
  function _get_prototype_of(o) {
@@ -45,10 +39,16 @@ function _inherits(subClass, superClass) {
45
39
  });
46
40
  if (superClass) _set_prototype_of(subClass, superClass);
47
41
  }
42
+ function _is_native_reflect_construct() {
43
+ try {
44
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
45
+ } catch (_) {}
46
+ return (_is_native_reflect_construct = function() {
47
+ return !!result;
48
+ })();
49
+ }
48
50
  function _possible_constructor_return(self, call) {
49
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
50
- return call;
51
- }
51
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
52
52
  return _assert_this_initialized(self);
53
53
  }
54
54
  function _set_prototype_of(o, p) {
@@ -62,14 +62,6 @@ function _type_of(obj) {
62
62
  "@swc/helpers - typeof";
63
63
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
64
64
  }
65
- function _is_native_reflect_construct() {
66
- try {
67
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
68
- } catch (_) {}
69
- return (_is_native_reflect_construct = function() {
70
- return !!result;
71
- })();
72
- }
73
65
  import { JSONCopy } from '@byteluck-fe/model-driven-shared';
74
66
  import { Property, PropertyRules, PropertyRuntimeRules } from '../BaseControl';
75
67
  import { initOptionAndDataSourceRules } from '../initOptionAndDataSourceRules';
@@ -193,6 +185,7 @@ var BaseControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRule
193
185
  function BaseControlProperty(props) {
194
186
  _class_call_check(this, BaseControlProperty);
195
187
  var _this;
188
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12;
196
189
  _this = _call_super(this, BaseControlProperty, [
197
190
  props
198
191
  ]), /**
@@ -249,34 +242,21 @@ var BaseControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRule
249
242
  * 必填提示文案
250
243
  * @defaultValue ''
251
244
  */ _define_property(_this, "requiredMessage", void 0);
252
- var _props_caption;
253
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : '';
254
- var _props_captionSize;
255
- _this.captionSize = (_props_captionSize = props === null || props === void 0 ? void 0 : props.captionSize) !== null && _props_captionSize !== void 0 ? _props_captionSize : '';
256
- var _props_captionColor;
257
- _this.captionColor = (_props_captionColor = props === null || props === void 0 ? void 0 : props.captionColor) !== null && _props_captionColor !== void 0 ? _props_captionColor : '';
258
- var _props_isCaptionItalic;
259
- _this.isCaptionItalic = (_props_isCaptionItalic = props === null || props === void 0 ? void 0 : props.isCaptionItalic) !== null && _props_isCaptionItalic !== void 0 ? _props_isCaptionItalic : false;
260
- var _props_isHideCaption;
261
- _this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
262
- var _props_isShowCaptionTip;
263
- _this.isShowCaptionTip = (_props_isShowCaptionTip = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _props_isShowCaptionTip !== void 0 ? _props_isShowCaptionTip : false;
264
- var _props_captionTip;
265
- _this.captionTip = (_props_captionTip = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _props_captionTip !== void 0 ? _props_captionTip : '';
266
- var _props_defaultState;
267
- _this.defaultState = (_props_defaultState = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _props_defaultState !== void 0 ? _props_defaultState : 'default';
268
- var _props_labelPosition;
269
- _this.labelPosition = (_props_labelPosition = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _props_labelPosition !== void 0 ? _props_labelPosition : 'top';
270
- var _props_placeholder;
271
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '';
272
- var _props_required;
273
- _this.required = (_props_required = props === null || props === void 0 ? void 0 : props.required) !== null && _props_required !== void 0 ? _props_required : false;
274
- var _props_requiredMessage;
275
- _this.requiredMessage = (_props_requiredMessage = props === null || props === void 0 ? void 0 : props.requiredMessage) !== null && _props_requiredMessage !== void 0 ? _props_requiredMessage : '';
245
+ _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : '';
246
+ _this.captionSize = (_ref1 = props === null || props === void 0 ? void 0 : props.captionSize) !== null && _ref1 !== void 0 ? _ref1 : '';
247
+ _this.captionColor = (_ref2 = props === null || props === void 0 ? void 0 : props.captionColor) !== null && _ref2 !== void 0 ? _ref2 : '';
248
+ _this.isCaptionItalic = (_ref3 = props === null || props === void 0 ? void 0 : props.isCaptionItalic) !== null && _ref3 !== void 0 ? _ref3 : false;
249
+ _this.isHideCaption = (_ref4 = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _ref4 !== void 0 ? _ref4 : false;
250
+ _this.isShowCaptionTip = (_ref5 = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _ref5 !== void 0 ? _ref5 : false;
251
+ _this.captionTip = (_ref6 = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _ref6 !== void 0 ? _ref6 : '';
252
+ _this.defaultState = (_ref7 = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _ref7 !== void 0 ? _ref7 : 'default';
253
+ _this.labelPosition = (_ref8 = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _ref8 !== void 0 ? _ref8 : 'top';
254
+ _this.placeholder = (_ref9 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref9 !== void 0 ? _ref9 : '';
255
+ _this.required = (_ref10 = props === null || props === void 0 ? void 0 : props.required) !== null && _ref10 !== void 0 ? _ref10 : false;
256
+ _this.requiredMessage = (_ref11 = props === null || props === void 0 ? void 0 : props.requiredMessage) !== null && _ref11 !== void 0 ? _ref11 : '';
276
257
  //form 组件优先初始化DataBind
277
258
  _this.dataBind = new DataBind(props === null || props === void 0 ? void 0 : props.dataBind);
278
- var _props_defaultValue;
279
- _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
259
+ _this.defaultValue = (_ref12 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref12 !== void 0 ? _ref12 : '';
280
260
  return _this;
281
261
  }
282
262
  return BaseControlProperty;
@@ -1,7 +1,5 @@
1
1
  function _assert_this_initialized(self) {
2
- if (self === void 0) {
3
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
- }
2
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5
3
  return self;
6
4
  }
7
5
  function _call_super(_this, derived, args) {
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
9
7
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
8
  }
11
9
  function _class_call_check(instance, Constructor) {
12
- if (!(instance instanceof Constructor)) {
13
- throw new TypeError("Cannot call a class as a function");
14
- }
10
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
15
11
  }
16
12
  function _define_property(obj, key, value) {
17
13
  if (key in obj) {
@@ -21,9 +17,7 @@ function _define_property(obj, key, value) {
21
17
  configurable: true,
22
18
  writable: true
23
19
  });
24
- } else {
25
- obj[key] = value;
26
- }
20
+ } else obj[key] = value;
27
21
  return obj;
28
22
  }
29
23
  function _get_prototype_of(o) {
@@ -45,10 +39,16 @@ function _inherits(subClass, superClass) {
45
39
  });
46
40
  if (superClass) _set_prototype_of(subClass, superClass);
47
41
  }
42
+ function _is_native_reflect_construct() {
43
+ try {
44
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
45
+ } catch (_) {}
46
+ return (_is_native_reflect_construct = function() {
47
+ return !!result;
48
+ })();
49
+ }
48
50
  function _possible_constructor_return(self, call) {
49
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
50
- return call;
51
- }
51
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
52
52
  return _assert_this_initialized(self);
53
53
  }
54
54
  function _set_prototype_of(o, p) {
@@ -62,14 +62,6 @@ function _type_of(obj) {
62
62
  "@swc/helpers - typeof";
63
63
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
64
64
  }
65
- function _is_native_reflect_construct() {
66
- try {
67
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
68
- } catch (_) {}
69
- return (_is_native_reflect_construct = function() {
70
- return !!result;
71
- })();
72
- }
73
65
  import { RuntimeControl } from '../BaseControl';
74
66
  import BaseControlProperty from './property';
75
67
  var FormControl = /*#__PURE__*/ function(RuntimeControl) {
@@ -7,9 +7,7 @@ function _array_without_holes(arr) {
7
7
  if (Array.isArray(arr)) return _array_like_to_array(arr);
8
8
  }
9
9
  function _assert_this_initialized(self) {
10
- if (self === void 0) {
11
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
12
- }
10
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
13
11
  return self;
14
12
  }
15
13
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
@@ -20,11 +18,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
20
18
  reject(error);
21
19
  return;
22
20
  }
23
- if (info.done) {
24
- resolve(value);
25
- } else {
26
- Promise.resolve(value).then(_next, _throw);
27
- }
21
+ if (info.done) resolve(value);
22
+ else Promise.resolve(value).then(_next, _throw);
28
23
  }
29
24
  function _async_to_generator(fn) {
30
25
  return function() {
@@ -46,9 +41,7 @@ function _call_super(_this, derived, args) {
46
41
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
47
42
  }
48
43
  function _class_call_check(instance, Constructor) {
49
- if (!(instance instanceof Constructor)) {
50
- throw new TypeError("Cannot call a class as a function");
51
- }
44
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
52
45
  }
53
46
  function _defineProperties(target, props) {
54
47
  for(var i = 0; i < props.length; i++){
@@ -72,22 +65,17 @@ function _define_property(obj, key, value) {
72
65
  configurable: true,
73
66
  writable: true
74
67
  });
75
- } else {
76
- obj[key] = value;
77
- }
68
+ } else obj[key] = value;
78
69
  return obj;
79
70
  }
80
71
  function _get(target, property, receiver) {
81
- if (typeof Reflect !== "undefined" && Reflect.get) {
82
- _get = Reflect.get;
83
- } else {
72
+ if (typeof Reflect !== "undefined" && Reflect.get) _get = Reflect.get;
73
+ else {
84
74
  _get = function get(target, property, receiver) {
85
75
  var base = _super_prop_base(target, property);
86
76
  if (!base) return;
87
77
  var desc = Object.getOwnPropertyDescriptor(base, property);
88
- if (desc.get) {
89
- return desc.get.call(receiver || target);
90
- }
78
+ if (desc.get) return desc.get.call(receiver || target);
91
79
  return desc.value;
92
80
  };
93
81
  }
@@ -113,17 +101,26 @@ function _inherits(subClass, superClass) {
113
101
  if (superClass) _set_prototype_of(subClass, superClass);
114
102
  }
115
103
  function _instanceof(left, right) {
104
+ "@swc/helpers - instanceof";
116
105
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
117
106
  return !!right[Symbol.hasInstance](left);
118
- } else {
119
- return left instanceof right;
120
- }
107
+ } else return left instanceof right;
108
+ }
109
+ function _is_native_reflect_construct() {
110
+ try {
111
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
112
+ } catch (_) {}
113
+ return (_is_native_reflect_construct = function() {
114
+ return !!result;
115
+ })();
121
116
  }
122
117
  function _iterable_to_array(iter) {
123
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
118
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
119
+ return Array.from(iter);
120
+ }
124
121
  }
125
122
  function _non_iterable_spread() {
126
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
123
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
127
124
  }
128
125
  function _object_spread(target) {
129
126
  for(var i = 1; i < arguments.length; i++){
@@ -155,9 +152,8 @@ function ownKeys(object, enumerableOnly) {
155
152
  }
156
153
  function _object_spread_props(target, source) {
157
154
  source = source != null ? source : {};
158
- if (Object.getOwnPropertyDescriptors) {
159
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
160
- } else {
155
+ if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
156
+ else {
161
157
  ownKeys(Object(source)).forEach(function(key) {
162
158
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
163
159
  });
@@ -165,9 +161,7 @@ function _object_spread_props(target, source) {
165
161
  return target;
166
162
  }
167
163
  function _possible_constructor_return(self, call) {
168
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
169
- return call;
170
- }
164
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
171
165
  return _assert_this_initialized(self);
172
166
  }
173
167
  function _set_prototype_of(o, p) {
@@ -187,26 +181,6 @@ function _super_prop_base(object, property) {
187
181
  function _to_consumable_array(arr) {
188
182
  return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
189
183
  }
190
- function _type_of(obj) {
191
- "@swc/helpers - typeof";
192
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
193
- }
194
- function _unsupported_iterable_to_array(o, minLen) {
195
- if (!o) return;
196
- if (typeof o === "string") return _array_like_to_array(o, minLen);
197
- var n = Object.prototype.toString.call(o).slice(8, -1);
198
- if (n === "Object" && o.constructor) n = o.constructor.name;
199
- if (n === "Map" || n === "Set") return Array.from(n);
200
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
201
- }
202
- function _is_native_reflect_construct() {
203
- try {
204
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
205
- } catch (_) {}
206
- return (_is_native_reflect_construct = function() {
207
- return !!result;
208
- })();
209
- }
210
184
  function _ts_generator(thisArg, body) {
211
185
  var f, y, t, _ = {
212
186
  label: 0,
@@ -216,9 +190,17 @@ function _ts_generator(thisArg, body) {
216
190
  },
217
191
  trys: [],
218
192
  ops: []
219
- }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
220
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
221
- return this;
193
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
194
+ return d(g, "next", {
195
+ value: verb(0)
196
+ }), d(g, "throw", {
197
+ value: verb(1)
198
+ }), d(g, "return", {
199
+ value: verb(2)
200
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
201
+ value: function() {
202
+ return this;
203
+ }
222
204
  }), g;
223
205
  function verb(n) {
224
206
  return function(v) {
@@ -298,6 +280,18 @@ function _ts_generator(thisArg, body) {
298
280
  };
299
281
  }
300
282
  }
283
+ function _type_of(obj) {
284
+ "@swc/helpers - typeof";
285
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
286
+ }
287
+ function _unsupported_iterable_to_array(o, minLen) {
288
+ if (!o) return;
289
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
290
+ var n = Object.prototype.toString.call(o).slice(8, -1);
291
+ if (n === "Object" && o.constructor) n = o.constructor.name;
292
+ if (n === "Map" || n === "Set") return Array.from(n);
293
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
294
+ }
301
295
  import { JSONCopy } from '@byteluck-fe/model-driven-shared';
302
296
  import { DesignerControl } from '../BaseControl';
303
297
  import LayoutControlProperty from './property';
@@ -341,7 +335,7 @@ var LayoutControl = /*#__PURE__*/ function _target(DesignerControl) {
341
335
  key: "validate",
342
336
  value: function validate(messages, ignore) {
343
337
  var _this = this;
344
- var _this1 = this, _superprop_get_validate = function() {
338
+ var _this1 = this, _superprop_get_validate = function _superprop_get_validate() {
345
339
  return _get(_get_prototype_of(LayoutControl.prototype), "validate", _this);
346
340
  };
347
341
  return _async_to_generator(function() {
@@ -1,7 +1,5 @@
1
1
  function _assert_this_initialized(self) {
2
- if (self === void 0) {
3
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
- }
2
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5
3
  return self;
6
4
  }
7
5
  function _call_super(_this, derived, args) {
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
9
7
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
8
  }
11
9
  function _class_call_check(instance, Constructor) {
12
- if (!(instance instanceof Constructor)) {
13
- throw new TypeError("Cannot call a class as a function");
14
- }
10
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
15
11
  }
16
12
  function _get_prototype_of(o) {
17
13
  _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
@@ -32,10 +28,16 @@ function _inherits(subClass, superClass) {
32
28
  });
33
29
  if (superClass) _set_prototype_of(subClass, superClass);
34
30
  }
31
+ function _is_native_reflect_construct() {
32
+ try {
33
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
34
+ } catch (_) {}
35
+ return (_is_native_reflect_construct = function() {
36
+ return !!result;
37
+ })();
38
+ }
35
39
  function _possible_constructor_return(self, call) {
36
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
37
- return call;
38
- }
40
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
39
41
  return _assert_this_initialized(self);
40
42
  }
41
43
  function _set_prototype_of(o, p) {
@@ -49,14 +51,6 @@ function _type_of(obj) {
49
51
  "@swc/helpers - typeof";
50
52
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
51
53
  }
52
- function _is_native_reflect_construct() {
53
- try {
54
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
55
- } catch (_) {}
56
- return (_is_native_reflect_construct = function() {
57
- return !!result;
58
- })();
59
- }
60
54
  import { Property } from '../BaseControl';
61
55
  var LayoutControlProperty = /*#__PURE__*/ function(Property) {
62
56
  "use strict";
@@ -1,7 +1,5 @@
1
1
  function _assert_this_initialized(self) {
2
- if (self === void 0) {
3
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
- }
2
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5
3
  return self;
6
4
  }
7
5
  function _call_super(_this, derived, args) {
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
9
7
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
8
  }
11
9
  function _class_call_check(instance, Constructor) {
12
- if (!(instance instanceof Constructor)) {
13
- throw new TypeError("Cannot call a class as a function");
14
- }
10
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
15
11
  }
16
12
  function _define_property(obj, key, value) {
17
13
  if (key in obj) {
@@ -21,9 +17,7 @@ function _define_property(obj, key, value) {
21
17
  configurable: true,
22
18
  writable: true
23
19
  });
24
- } else {
25
- obj[key] = value;
26
- }
20
+ } else obj[key] = value;
27
21
  return obj;
28
22
  }
29
23
  function _get_prototype_of(o) {
@@ -45,10 +39,16 @@ function _inherits(subClass, superClass) {
45
39
  });
46
40
  if (superClass) _set_prototype_of(subClass, superClass);
47
41
  }
42
+ function _is_native_reflect_construct() {
43
+ try {
44
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
45
+ } catch (_) {}
46
+ return (_is_native_reflect_construct = function() {
47
+ return !!result;
48
+ })();
49
+ }
48
50
  function _possible_constructor_return(self, call) {
49
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
50
- return call;
51
- }
51
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
52
52
  return _assert_this_initialized(self);
53
53
  }
54
54
  function _set_prototype_of(o, p) {
@@ -62,14 +62,6 @@ function _type_of(obj) {
62
62
  "@swc/helpers - typeof";
63
63
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
64
64
  }
65
- function _is_native_reflect_construct() {
66
- try {
67
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
68
- } catch (_) {}
69
- return (_is_native_reflect_construct = function() {
70
- return !!result;
71
- })();
72
- }
73
65
  import { RuntimeControl } from '../BaseControl';
74
66
  import LayoutControlProperty from './property';
75
67
  import { defineControlArrayToProperty } from '../ControlArray';