@byteluck-fe/model-driven-core 2.5.0-beta.9 → 2.5.3

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 (44) hide show
  1. package/dist/esm/api-doc-index.js +4 -4
  2. package/dist/esm/common/BaseControl/designer.js +241 -121
  3. package/dist/esm/common/BaseControl/index.js +7 -7
  4. package/dist/esm/common/BaseControl/property.js +77 -60
  5. package/dist/esm/common/BaseControl/runtime.js +45 -24
  6. package/dist/esm/common/ColumnControl/designer.js +41 -27
  7. package/dist/esm/common/ColumnControl/index.js +6 -6
  8. package/dist/esm/common/ColumnControl/property.js +122 -74
  9. package/dist/esm/common/ColumnControl/runtime.js +41 -27
  10. package/dist/esm/common/ControlArray.js +21 -21
  11. package/dist/esm/common/FormControl/designer.js +47 -32
  12. package/dist/esm/common/FormControl/index.js +6 -6
  13. package/dist/esm/common/FormControl/property.js +181 -116
  14. package/dist/esm/common/FormControl/runtime.js +42 -27
  15. package/dist/esm/common/LayoutControl/designer.js +205 -77
  16. package/dist/esm/common/LayoutControl/index.js +6 -6
  17. package/dist/esm/common/LayoutControl/property.js +25 -25
  18. package/dist/esm/common/LayoutControl/runtime.js +44 -29
  19. package/dist/esm/common/ListControl/designer.js +199 -74
  20. package/dist/esm/common/ListControl/index.js +6 -6
  21. package/dist/esm/common/ListControl/property.js +41 -27
  22. package/dist/esm/common/ListControl/runtime.js +47 -32
  23. package/dist/esm/common/SearchViewControl/designer.js +41 -27
  24. package/dist/esm/common/SearchViewControl/index.js +6 -6
  25. package/dist/esm/common/SearchViewControl/property.js +40 -26
  26. package/dist/esm/common/SearchViewControl/runtime.js +41 -27
  27. package/dist/esm/common/Validator.js +5 -5
  28. package/dist/esm/common/WrapControl/designer.js +41 -27
  29. package/dist/esm/common/WrapControl/index.js +6 -6
  30. package/dist/esm/common/WrapControl/property.js +25 -25
  31. package/dist/esm/common/WrapControl/runtime.js +41 -27
  32. package/dist/esm/common/controlHooksEmitter.js +1 -1
  33. package/dist/esm/common/index.js +12 -12
  34. package/dist/esm/common/initLinkOperationRules.js +6 -6
  35. package/dist/esm/common/initOptionAndDataSourceRules.js +82 -82
  36. package/dist/esm/framework/RegisterControls.js +31 -19
  37. package/dist/esm/framework/index.js +825 -405
  38. package/dist/esm/index.js +3 -3
  39. package/dist/index.umd.js +1 -1
  40. package/dist/types/common/Validator.d.ts +1 -1
  41. package/dist/types/common/controlHooksEmitter.d.ts +1 -1
  42. package/dist/types/framework/index.d.ts +2 -1
  43. package/dist/types/type.d.ts +23 -23
  44. 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,33 +69,35 @@ 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
- import { RuntimeControl } from '../BaseControl';
73
- import LayoutControlProperty from './property';
74
- import { defineControlArrayToProperty } from '../ControlArray';
75
- var LayoutControl = /*#__PURE__*/ function(RuntimeControl1) {
85
+ import { RuntimeControl } from "../BaseControl";
86
+ import LayoutControlProperty from "./property";
87
+ import { defineControlArrayToProperty } from "../ControlArray";
88
+ var LayoutControl = /*#__PURE__*/ function(RuntimeControl) {
76
89
  "use strict";
77
- _inherits(LayoutControl, RuntimeControl1);
78
- var _super = _createSuper(LayoutControl);
90
+ _inherits(LayoutControl, RuntimeControl);
91
+ var _super = _create_super(LayoutControl);
79
92
  function LayoutControl(props) {
80
- _classCallCheck(this, LayoutControl);
93
+ _class_call_check(this, LayoutControl);
81
94
  var _this;
82
95
  _this = _super.call(this, props);
83
- _this.controlType = 'layout';
96
+ _define_property(_assert_this_initialized(_this), "controlType", "layout");
97
+ _define_property(_assert_this_initialized(_this), "children", void 0);
98
+ _define_property(_assert_this_initialized(_this), "props", void 0);
84
99
  _this.props = new LayoutControlProperty(props === null || props === void 0 ? void 0 : props.props);
85
- defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children);
100
+ defineControlArrayToProperty(_assert_this_initialized(_this), "children", props === null || props === void 0 ? void 0 : props.children);
86
101
  return _this;
87
102
  }
88
103
  return LayoutControl;
@@ -1,12 +1,12 @@
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 _assertThisInitialized(self) {
9
+ function _assert_this_initialized(self) {
10
10
  if (self === void 0) {
11
11
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
12
12
  }
@@ -26,7 +26,7 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
26
26
  Promise.resolve(value).then(_next, _throw);
27
27
  }
28
28
  }
29
- function _asyncToGenerator(fn) {
29
+ function _async_to_generator(fn) {
30
30
  return function() {
31
31
  var self = this, args = arguments;
32
32
  return new Promise(function(resolve, reject) {
@@ -41,7 +41,7 @@ function _asyncToGenerator(fn) {
41
41
  });
42
42
  };
43
43
  }
44
- function _classCallCheck(instance, Constructor) {
44
+ function _class_call_check(instance, Constructor) {
45
45
  if (!(instance instanceof Constructor)) {
46
46
  throw new TypeError("Cannot call a class as a function");
47
47
  }
@@ -55,12 +55,12 @@ function _defineProperties(target, props) {
55
55
  Object.defineProperty(target, descriptor.key, descriptor);
56
56
  }
57
57
  }
58
- function _createClass(Constructor, protoProps, staticProps) {
58
+ function _create_class(Constructor, protoProps, staticProps) {
59
59
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
60
60
  if (staticProps) _defineProperties(Constructor, staticProps);
61
61
  return Constructor;
62
62
  }
63
- function _defineProperty(obj, key, value) {
63
+ function _define_property(obj, key, value) {
64
64
  if (key in obj) {
65
65
  Object.defineProperty(obj, key, {
66
66
  value: value,
@@ -77,23 +77,23 @@ function _get(target, property, receiver) {
77
77
  if (typeof Reflect !== "undefined" && Reflect.get) {
78
78
  _get = Reflect.get;
79
79
  } else {
80
- _get = function _get(target, property, receiver) {
81
- var base = _superPropBase(target, property);
80
+ _get = function get(target, property, receiver) {
81
+ var base = _super_prop_base(target, property);
82
82
  if (!base) return;
83
83
  var desc = Object.getOwnPropertyDescriptor(base, property);
84
84
  if (desc.get) {
85
- return desc.get.call(receiver);
85
+ return desc.get.call(receiver || target);
86
86
  }
87
87
  return desc.value;
88
88
  };
89
89
  }
90
90
  return _get(target, property, receiver || target);
91
91
  }
92
- function _getPrototypeOf(o) {
93
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
92
+ function _get_prototype_of(o) {
93
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
94
94
  return o.__proto__ || Object.getPrototypeOf(o);
95
95
  };
96
- return _getPrototypeOf(o);
96
+ return _get_prototype_of(o);
97
97
  }
98
98
  function _inherits(subClass, superClass) {
99
99
  if (typeof superClass !== "function" && superClass !== null) {
@@ -106,15 +106,15 @@ function _inherits(subClass, superClass) {
106
106
  configurable: true
107
107
  }
108
108
  });
109
- if (superClass) _setPrototypeOf(subClass, superClass);
109
+ if (superClass) _set_prototype_of(subClass, superClass);
110
110
  }
111
- function _iterableToArray(iter) {
111
+ function _iterable_to_array(iter) {
112
112
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
113
113
  }
114
- function _nonIterableSpread() {
114
+ function _non_iterable_spread() {
115
115
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
116
116
  }
117
- function _objectSpread(target) {
117
+ function _object_spread(target) {
118
118
  for(var i = 1; i < arguments.length; i++){
119
119
  var source = arguments[i] != null ? arguments[i] : {};
120
120
  var ownKeys = Object.keys(source);
@@ -124,47 +124,71 @@ function _objectSpread(target) {
124
124
  }));
125
125
  }
126
126
  ownKeys.forEach(function(key) {
127
- _defineProperty(target, key, source[key]);
127
+ _define_property(target, key, source[key]);
128
128
  });
129
129
  }
130
130
  return target;
131
131
  }
132
- function _possibleConstructorReturn(self, call) {
133
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
132
+ function ownKeys(object, enumerableOnly) {
133
+ var keys = Object.keys(object);
134
+ if (Object.getOwnPropertySymbols) {
135
+ var symbols = Object.getOwnPropertySymbols(object);
136
+ if (enumerableOnly) {
137
+ symbols = symbols.filter(function(sym) {
138
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
139
+ });
140
+ }
141
+ keys.push.apply(keys, symbols);
142
+ }
143
+ return keys;
144
+ }
145
+ function _object_spread_props(target, source) {
146
+ source = source != null ? source : {};
147
+ if (Object.getOwnPropertyDescriptors) {
148
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
149
+ } else {
150
+ ownKeys(Object(source)).forEach(function(key) {
151
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
152
+ });
153
+ }
154
+ return target;
155
+ }
156
+ function _possible_constructor_return(self, call) {
157
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
134
158
  return call;
135
159
  }
136
- return _assertThisInitialized(self);
160
+ return _assert_this_initialized(self);
137
161
  }
138
- function _setPrototypeOf(o, p) {
139
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
162
+ function _set_prototype_of(o, p) {
163
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
140
164
  o.__proto__ = p;
141
165
  return o;
142
166
  };
143
- return _setPrototypeOf(o, p);
167
+ return _set_prototype_of(o, p);
144
168
  }
145
- function _superPropBase(object, property) {
169
+ function _super_prop_base(object, property) {
146
170
  while(!Object.prototype.hasOwnProperty.call(object, property)){
147
- object = _getPrototypeOf(object);
171
+ object = _get_prototype_of(object);
148
172
  if (object === null) break;
149
173
  }
150
174
  return object;
151
175
  }
152
- function _toConsumableArray(arr) {
153
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
176
+ function _to_consumable_array(arr) {
177
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
154
178
  }
155
- var _typeof = function(obj) {
179
+ function _type_of(obj) {
156
180
  "@swc/helpers - typeof";
157
181
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
158
- };
159
- function _unsupportedIterableToArray(o, minLen) {
182
+ }
183
+ function _unsupported_iterable_to_array(o, minLen) {
160
184
  if (!o) return;
161
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
185
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
162
186
  var n = Object.prototype.toString.call(o).slice(8, -1);
163
187
  if (n === "Object" && o.constructor) n = o.constructor.name;
164
188
  if (n === "Map" || n === "Set") return Array.from(n);
165
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
189
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
166
190
  }
167
- function _isNativeReflectConstruct() {
191
+ function _is_native_reflect_construct() {
168
192
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
169
193
  if (Reflect.construct.sham) return false;
170
194
  if (typeof Proxy === "function") return true;
@@ -175,68 +199,169 @@ function _isNativeReflectConstruct() {
175
199
  return false;
176
200
  }
177
201
  }
178
- function _createSuper(Derived) {
179
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
202
+ function _create_super(Derived) {
203
+ var hasNativeReflectConstruct = _is_native_reflect_construct();
180
204
  return function _createSuperInternal() {
181
- var Super = _getPrototypeOf(Derived), result;
205
+ var Super = _get_prototype_of(Derived), result;
182
206
  if (hasNativeReflectConstruct) {
183
- var NewTarget = _getPrototypeOf(this).constructor;
207
+ var NewTarget = _get_prototype_of(this).constructor;
184
208
  result = Reflect.construct(Super, arguments, NewTarget);
185
209
  } else {
186
210
  result = Super.apply(this, arguments);
187
211
  }
188
- return _possibleConstructorReturn(this, result);
212
+ return _possible_constructor_return(this, result);
213
+ };
214
+ }
215
+ function _ts_generator(thisArg, body) {
216
+ var f, y, t, g, _ = {
217
+ label: 0,
218
+ sent: function() {
219
+ if (t[0] & 1) throw t[1];
220
+ return t[1];
221
+ },
222
+ trys: [],
223
+ ops: []
189
224
  };
225
+ return g = {
226
+ next: verb(0),
227
+ "throw": verb(1),
228
+ "return": verb(2)
229
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
230
+ return this;
231
+ }), g;
232
+ function verb(n) {
233
+ return function(v) {
234
+ return step([
235
+ n,
236
+ v
237
+ ]);
238
+ };
239
+ }
240
+ function step(op) {
241
+ if (f) throw new TypeError("Generator is already executing.");
242
+ while(_)try {
243
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
244
+ if (y = 0, t) op = [
245
+ op[0] & 2,
246
+ t.value
247
+ ];
248
+ switch(op[0]){
249
+ case 0:
250
+ case 1:
251
+ t = op;
252
+ break;
253
+ case 4:
254
+ _.label++;
255
+ return {
256
+ value: op[1],
257
+ done: false
258
+ };
259
+ case 5:
260
+ _.label++;
261
+ y = op[1];
262
+ op = [
263
+ 0
264
+ ];
265
+ continue;
266
+ case 7:
267
+ op = _.ops.pop();
268
+ _.trys.pop();
269
+ continue;
270
+ default:
271
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
272
+ _ = 0;
273
+ continue;
274
+ }
275
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
276
+ _.label = op[1];
277
+ break;
278
+ }
279
+ if (op[0] === 6 && _.label < t[1]) {
280
+ _.label = t[1];
281
+ t = op;
282
+ break;
283
+ }
284
+ if (t && _.label < t[2]) {
285
+ _.label = t[2];
286
+ _.ops.push(op);
287
+ break;
288
+ }
289
+ if (t[2]) _.ops.pop();
290
+ _.trys.pop();
291
+ continue;
292
+ }
293
+ op = body.call(thisArg, _);
294
+ } catch (e) {
295
+ op = [
296
+ 6,
297
+ e
298
+ ];
299
+ y = 0;
300
+ } finally{
301
+ f = t = 0;
302
+ }
303
+ if (op[0] & 5) throw op[1];
304
+ return {
305
+ value: op[0] ? op[1] : void 0,
306
+ done: true
307
+ };
308
+ }
190
309
  }
191
- import regeneratorRuntime from "regenerator-runtime";
192
- import { DesignerControl } from '../BaseControl';
193
- import ListControlProperty from './property';
194
- import { FieldTypes } from '@byteluck-fe/model-driven-shared';
195
- var ListControl = /*#__PURE__*/ function(DesignerControl1) {
310
+ import { DesignerControl } from "../BaseControl";
311
+ import ListControlProperty from "./property";
312
+ import { FieldTypes } from "@byteluck-fe/model-driven-shared";
313
+ var ListControl = /*#__PURE__*/ function(DesignerControl) {
196
314
  "use strict";
197
- _inherits(ListControl, DesignerControl1);
198
- var _super = _createSuper(ListControl);
315
+ _inherits(ListControl, DesignerControl);
316
+ var _super = _create_super(ListControl);
199
317
  function ListControl(props) {
200
- _classCallCheck(this, ListControl);
318
+ _class_call_check(this, ListControl);
201
319
  var _this;
202
320
  _this = _super.call(this, props);
203
- _this.controlType = 'list';
204
- _this.props = new ListControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props);
321
+ _define_property(_assert_this_initialized(_this), "controlType", "list");
322
+ _define_property(_assert_this_initialized(_this), "props", void 0);
323
+ _this.props = new ListControlProperty(_assert_this_initialized(_this), props === null || props === void 0 ? void 0 : props.props);
205
324
  return _this;
206
325
  }
207
- _createClass(ListControl, [
326
+ _create_class(ListControl, [
208
327
  {
209
328
  key: "validate",
210
329
  value: function validate(messages, ignore) {
211
330
  var _this = this;
212
331
  var _this1 = this, _superprop_get_validate = function() {
213
- return _get(_getPrototypeOf(ListControl.prototype), "validate", _this);
332
+ return _get(_get_prototype_of(ListControl.prototype), "validate", _this);
214
333
  };
215
- return _asyncToGenerator(regeneratorRuntime.mark(function _callee() {
216
- return regeneratorRuntime.wrap(function _callee$(_ctx) {
217
- while(1)switch(_ctx.prev = _ctx.next){
334
+ return _async_to_generator(function() {
335
+ return _ts_generator(this, function(_state) {
336
+ switch(_state.label){
218
337
  case 0:
219
- _ctx.next = 2;
220
- return _superprop_get_validate().call(_this1, messages);
338
+ return [
339
+ 4,
340
+ _superprop_get_validate().call(_this1, messages)
341
+ ];
342
+ case 1:
343
+ _state.sent();
344
+ return [
345
+ 4,
346
+ Promise.all(_this1.props.headers.map(function(child) {
347
+ return child.validate(messages, ignore);
348
+ }))
349
+ ];
221
350
  case 2:
222
- _ctx.next = 4;
223
- return Promise.all(_this1.props.headers.map(function(child) {
224
- return child.validate(messages, ignore);
225
- }));
226
- case 4:
227
- return _ctx.abrupt("return", true);
228
- case 5:
229
- case "end":
230
- return _ctx.stop();
351
+ _state.sent();
352
+ return [
353
+ 2,
354
+ true
355
+ ];
231
356
  }
232
- }, _callee);
233
- }))();
357
+ });
358
+ })();
234
359
  }
235
360
  },
236
361
  {
237
362
  key: "toDataBindModel",
238
363
  value: function toDataBindModel() {
239
- var listModel = _get(_getPrototypeOf(ListControl.prototype), "toDataBindModel", this).call(this);
364
+ var listModel = _get(_get_prototype_of(ListControl.prototype), "toDataBindModel", this).call(this);
240
365
  var result = listModel ? [
241
366
  listModel
242
367
  ] : [];
@@ -247,7 +372,7 @@ var ListControl = /*#__PURE__*/ function(DesignerControl1) {
247
372
  var filteredModel = model.filter(function(item) {
248
373
  return !!item;
249
374
  });
250
- return _toConsumableArray(arr).concat(_toConsumableArray(filteredModel));
375
+ return _to_consumable_array(arr).concat(_to_consumable_array(filteredModel));
251
376
  }
252
377
  model && arr.push(model);
253
378
  return arr;
@@ -257,12 +382,12 @@ var ListControl = /*#__PURE__*/ function(DesignerControl1) {
257
382
  {
258
383
  key: "toSchema",
259
384
  value: function toSchema() {
260
- var superSchema = _get(_getPrototypeOf(ListControl.prototype), "toSchema", this).call(this);
385
+ var superSchema = _get(_get_prototype_of(ListControl.prototype), "toSchema", this).call(this);
261
386
  var headers = this.props.headers.map(function(item) {
262
387
  return item.toSchema();
263
388
  });
264
- return _objectSpread({}, superSchema, {
265
- props: _objectSpread({}, this.props, {
389
+ return _object_spread_props(_object_spread({}, superSchema), {
390
+ props: _object_spread_props(_object_spread({}, this.props), {
266
391
  headers: headers
267
392
  })
268
393
  });
@@ -271,6 +396,6 @@ var ListControl = /*#__PURE__*/ function(DesignerControl1) {
271
396
  ]);
272
397
  return ListControl;
273
398
  }(DesignerControl);
274
- ListControl.controlFieldType = FieldTypes.LIST;
399
+ _define_property(ListControl, "controlFieldType", FieldTypes.LIST);
275
400
  export default ListControl;
276
401
  export { ListControl as DesignerListControl };
@@ -1,11 +1,11 @@
1
- import Designer from './designer';
2
- import Runtime from './runtime';
3
- import Property from './property';
1
+ import Designer from "./designer";
2
+ import Runtime from "./runtime";
3
+ import Property from "./property";
4
4
  export default {
5
5
  Designer: Designer,
6
6
  Runtime: Runtime,
7
7
  Property: Property
8
8
  };
9
- export * from './designer';
10
- export * from './runtime';
11
- export * from './property';
9
+ export * from "./designer";
10
+ export * from "./runtime";
11
+ export * from "./property";