@byteluck-fe/model-driven-core 2.7.0-alpha.11 → 2.7.0-alpha.13

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 +222 -103
  3. package/dist/esm/common/BaseControl/index.js +7 -7
  4. package/dist/esm/common/BaseControl/property.js +42 -14
  5. package/dist/esm/common/BaseControl/runtime.js +41 -20
  6. package/dist/esm/common/ColumnControl/designer.js +19 -5
  7. package/dist/esm/common/ColumnControl/index.js +6 -6
  8. package/dist/esm/common/ColumnControl/property.js +95 -47
  9. package/dist/esm/common/ColumnControl/runtime.js +19 -5
  10. package/dist/esm/common/ControlArray.js +8 -8
  11. package/dist/esm/common/FormControl/designer.js +25 -10
  12. package/dist/esm/common/FormControl/index.js +6 -6
  13. package/dist/esm/common/FormControl/property.js +152 -87
  14. package/dist/esm/common/FormControl/runtime.js +20 -5
  15. package/dist/esm/common/LayoutControl/designer.js +158 -30
  16. package/dist/esm/common/LayoutControl/index.js +6 -6
  17. package/dist/esm/common/LayoutControl/property.js +3 -3
  18. package/dist/esm/common/LayoutControl/runtime.js +22 -7
  19. package/dist/esm/common/ListControl/designer.js +153 -28
  20. package/dist/esm/common/ListControl/index.js +6 -6
  21. package/dist/esm/common/ListControl/property.js +20 -5
  22. package/dist/esm/common/ListControl/runtime.js +22 -7
  23. package/dist/esm/common/SearchViewControl/designer.js +19 -5
  24. package/dist/esm/common/SearchViewControl/index.js +6 -6
  25. package/dist/esm/common/SearchViewControl/property.js +18 -4
  26. package/dist/esm/common/SearchViewControl/runtime.js +19 -5
  27. package/dist/esm/common/Validator.js +5 -5
  28. package/dist/esm/common/WrapControl/designer.js +19 -5
  29. package/dist/esm/common/WrapControl/index.js +6 -6
  30. package/dist/esm/common/WrapControl/property.js +3 -3
  31. package/dist/esm/common/WrapControl/runtime.js +19 -5
  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 +28 -17
  37. package/dist/esm/framework/index.js +769 -332
  38. package/dist/esm/framework/isDataBind.js +1 -1
  39. package/dist/esm/index.js +4 -4
  40. package/dist/index.umd.js +1 -1
  41. package/dist/types/common/Validator.d.ts +1 -1
  42. package/dist/types/common/controlHooksEmitter.d.ts +1 -1
  43. package/dist/types/type.d.ts +23 -23
  44. package/package.json +3 -3
@@ -9,6 +9,19 @@ 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
+ }
12
25
  function _getPrototypeOf(o) {
13
26
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
14
27
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -69,20 +82,22 @@ function _createSuper(Derived) {
69
82
  return _possibleConstructorReturn(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);
90
+ _inherits(LayoutControl, RuntimeControl);
78
91
  var _super = _createSuper(LayoutControl);
79
92
  function LayoutControl(props) {
80
93
  _classCallCheck(this, LayoutControl);
81
94
  var _this;
82
95
  _this = _super.call(this, props);
83
- _this.controlType = 'layout';
96
+ _defineProperty(_assertThisInitialized(_this), "controlType", "layout");
97
+ _defineProperty(_assertThisInitialized(_this), "children", void 0);
98
+ _defineProperty(_assertThisInitialized(_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(_assertThisInitialized(_this), "children", props === null || props === void 0 ? void 0 : props.children);
86
101
  return _this;
87
102
  }
88
103
  return LayoutControl;
@@ -129,6 +129,30 @@ function _objectSpread(target) {
129
129
  }
130
130
  return target;
131
131
  }
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 _objectSpreadProps(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
+ }
132
156
  function _possibleConstructorReturn(self, call) {
133
157
  if (call && (_typeof(call) === "object" || typeof call === "function")) {
134
158
  return call;
@@ -188,19 +212,114 @@ function _createSuper(Derived) {
188
212
  return _possibleConstructorReturn(this, result);
189
213
  };
190
214
  }
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) {
215
+ var __generator = this && this.__generator || function(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: []
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
+ }
309
+ };
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);
315
+ _inherits(ListControl, DesignerControl);
198
316
  var _super = _createSuper(ListControl);
199
317
  function ListControl(props) {
200
318
  _classCallCheck(this, ListControl);
201
319
  var _this;
202
320
  _this = _super.call(this, props);
203
- _this.controlType = 'list';
321
+ _defineProperty(_assertThisInitialized(_this), "controlType", "list");
322
+ _defineProperty(_assertThisInitialized(_this), "props", void 0);
204
323
  _this.props = new ListControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props);
205
324
  return _this;
206
325
  }
@@ -212,25 +331,31 @@ var ListControl = /*#__PURE__*/ function(DesignerControl1) {
212
331
  var _this1 = this, _superprop_get_validate = function() {
213
332
  return _get(_getPrototypeOf(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 _asyncToGenerator(function() {
335
+ return __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
  {
@@ -257,20 +382,20 @@ var ListControl = /*#__PURE__*/ function(DesignerControl1) {
257
382
  {
258
383
  key: "toSchema",
259
384
  value: function toSchema() {
260
- var ref, ref1;
385
+ var _this_props, _this_props_footers;
261
386
  var superSchema = _get(_getPrototypeOf(ListControl.prototype), "toSchema", this).call(this);
262
387
  var headers = this.props.headers.map(function(item) {
263
388
  return item.toSchema();
264
389
  });
265
- var footers = (ref = this.props) === null || ref === void 0 ? void 0 : (ref1 = ref.footers) === null || ref1 === void 0 ? void 0 : ref1.map(function(item) {
390
+ var footers = (_this_props = this.props) === null || _this_props === void 0 ? void 0 : (_this_props_footers = _this_props.footers) === null || _this_props_footers === void 0 ? void 0 : _this_props_footers.map(function(item) {
266
391
  if (item) {
267
392
  return item.toSchema();
268
393
  } else {
269
394
  return undefined;
270
395
  }
271
396
  });
272
- return _objectSpread({}, superSchema, {
273
- props: _objectSpread({}, this.props, {
397
+ return _objectSpreadProps(_objectSpread({}, superSchema), {
398
+ props: _objectSpreadProps(_objectSpread({}, this.props), {
274
399
  headers: headers,
275
400
  footers: footers
276
401
  })
@@ -280,6 +405,6 @@ var ListControl = /*#__PURE__*/ function(DesignerControl1) {
280
405
  ]);
281
406
  return ListControl;
282
407
  }(DesignerControl);
283
- ListControl.controlFieldType = FieldTypes.LIST;
408
+ _defineProperty(ListControl, "controlFieldType", FieldTypes.LIST);
284
409
  export default ListControl;
285
410
  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";
@@ -9,6 +9,19 @@ 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
+ }
12
25
  function _getPrototypeOf(o) {
13
26
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
14
27
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -69,17 +82,19 @@ function _createSuper(Derived) {
69
82
  return _possibleConstructorReturn(this, result);
70
83
  };
71
84
  }
72
- import { Property } from '../BaseControl';
73
- import { defineControlArrayToProperty } from '../ControlArray';
74
- var ListControlProperty = /*#__PURE__*/ function(Property1) {
85
+ import { Property } from "../BaseControl";
86
+ import { defineControlArrayToProperty } from "../ControlArray";
87
+ var ListControlProperty = /*#__PURE__*/ function(Property) {
75
88
  "use strict";
76
- _inherits(ListControlProperty, Property1);
89
+ _inherits(ListControlProperty, Property);
77
90
  var _super = _createSuper(ListControlProperty);
78
91
  function ListControlProperty(parent, props) {
79
92
  _classCallCheck(this, ListControlProperty);
80
93
  var _this;
81
94
  _this = _super.call(this, props);
82
- defineControlArrayToProperty(_assertThisInitialized(_this), 'headers', props === null || props === void 0 ? void 0 : props.headers, parent);
95
+ _defineProperty(_assertThisInitialized(_this), "headers", void 0);
96
+ _defineProperty(_assertThisInitialized(_this), "footers", void 0);
97
+ defineControlArrayToProperty(_assertThisInitialized(_this), "headers", props === null || props === void 0 ? void 0 : props.headers, parent);
83
98
  return _this;
84
99
  }
85
100
  return ListControlProperty;
@@ -23,6 +23,19 @@ function _createClass(Constructor, protoProps, staticProps) {
23
23
  if (staticProps) _defineProperties(Constructor, staticProps);
24
24
  return Constructor;
25
25
  }
26
+ function _defineProperty(obj, key, value) {
27
+ if (key in obj) {
28
+ Object.defineProperty(obj, key, {
29
+ value: value,
30
+ enumerable: true,
31
+ configurable: true,
32
+ writable: true
33
+ });
34
+ } else {
35
+ obj[key] = value;
36
+ }
37
+ return obj;
38
+ }
26
39
  function _getPrototypeOf(o) {
27
40
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
28
41
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -83,20 +96,22 @@ function _createSuper(Derived) {
83
96
  return _possibleConstructorReturn(this, result);
84
97
  };
85
98
  }
86
- import { RuntimeControl } from '../BaseControl';
87
- import ListControlProperty from './property';
88
- import { defineControlArrayToProperty } from '../ControlArray';
89
- var ListControl = /*#__PURE__*/ function(RuntimeControl1) {
99
+ import { RuntimeControl } from "../BaseControl";
100
+ import ListControlProperty from "./property";
101
+ import { defineControlArrayToProperty } from "../ControlArray";
102
+ var ListControl = /*#__PURE__*/ function(RuntimeControl) {
90
103
  "use strict";
91
- _inherits(ListControl, RuntimeControl1);
104
+ _inherits(ListControl, RuntimeControl);
92
105
  var _super = _createSuper(ListControl);
93
106
  function ListControl(props) {
94
107
  _classCallCheck(this, ListControl);
95
108
  var _this;
96
109
  _this = _super.call(this, props);
97
- _this.controlType = 'list';
110
+ _defineProperty(_assertThisInitialized(_this), "controlType", "list");
111
+ _defineProperty(_assertThisInitialized(_this), "children", void 0);
112
+ _defineProperty(_assertThisInitialized(_this), "props", void 0);
98
113
  _this.props = new ListControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props);
99
- defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children);
114
+ defineControlArrayToProperty(_assertThisInitialized(_this), "children", props === null || props === void 0 ? void 0 : props.children);
100
115
  return _this;
101
116
  }
102
117
  _createClass(ListControl, [
@@ -9,6 +9,19 @@ 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
+ }
12
25
  function _getPrototypeOf(o) {
13
26
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
14
27
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -69,17 +82,18 @@ function _createSuper(Derived) {
69
82
  return _possibleConstructorReturn(this, result);
70
83
  };
71
84
  }
72
- import SearchControlProperty from './property';
73
- import { DesignerLayoutControl } from '../LayoutControl';
74
- var SearchControl = /*#__PURE__*/ function(DesignerLayoutControl1) {
85
+ import SearchControlProperty from "./property";
86
+ import { DesignerLayoutControl } from "../LayoutControl";
87
+ var SearchControl = /*#__PURE__*/ function(DesignerLayoutControl) {
75
88
  "use strict";
76
- _inherits(SearchControl, DesignerLayoutControl1);
89
+ _inherits(SearchControl, DesignerLayoutControl);
77
90
  var _super = _createSuper(SearchControl);
78
91
  function SearchControl(props) {
79
92
  _classCallCheck(this, SearchControl);
80
93
  var _this;
81
94
  _this = _super.call(this, props);
82
- _this.controlType = 'search';
95
+ _defineProperty(_assertThisInitialized(_this), "controlType", "search");
96
+ _defineProperty(_assertThisInitialized(_this), "props", void 0);
83
97
  _this.props = new SearchControlProperty(props === null || props === void 0 ? void 0 : props.props);
84
98
  return _this;
85
99
  }
@@ -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";
@@ -9,6 +9,19 @@ 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
+ }
12
25
  function _getPrototypeOf(o) {
13
26
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
14
27
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -69,16 +82,17 @@ function _createSuper(Derived) {
69
82
  return _possibleConstructorReturn(this, result);
70
83
  };
71
84
  }
72
- import { LayoutControlProperty } from '../LayoutControl';
73
- import { DataBind } from '../../framework';
74
- var SearchControlProperty = /*#__PURE__*/ function(LayoutControlProperty1) {
85
+ import { LayoutControlProperty } from "../LayoutControl";
86
+ import { DataBind } from "../../framework";
87
+ var SearchControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
75
88
  "use strict";
76
- _inherits(SearchControlProperty, LayoutControlProperty1);
89
+ _inherits(SearchControlProperty, LayoutControlProperty);
77
90
  var _super = _createSuper(SearchControlProperty);
78
91
  function SearchControlProperty(props) {
79
92
  _classCallCheck(this, SearchControlProperty);
80
93
  var _this;
81
94
  _this = _super.call(this, props);
95
+ _defineProperty(_assertThisInitialized(_this), "dataBind", void 0);
82
96
  _this.dataBind = new DataBind(props === null || props === void 0 ? void 0 : props.dataBind);
83
97
  return _this;
84
98
  }
@@ -9,6 +9,19 @@ 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
+ }
12
25
  function _getPrototypeOf(o) {
13
26
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
14
27
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -69,17 +82,18 @@ function _createSuper(Derived) {
69
82
  return _possibleConstructorReturn(this, result);
70
83
  };
71
84
  }
72
- import SearchControlProperty from './property';
73
- import { RuntimeLayoutControl } from '../LayoutControl';
74
- var SearchControl = /*#__PURE__*/ function(RuntimeLayoutControl1) {
85
+ import SearchControlProperty from "./property";
86
+ import { RuntimeLayoutControl } from "../LayoutControl";
87
+ var SearchControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
75
88
  "use strict";
76
- _inherits(SearchControl, RuntimeLayoutControl1);
89
+ _inherits(SearchControl, RuntimeLayoutControl);
77
90
  var _super = _createSuper(SearchControl);
78
91
  function SearchControl(props) {
79
92
  _classCallCheck(this, SearchControl);
80
93
  var _this;
81
94
  _this = _super.call(this, props);
82
- _this.controlType = 'search';
95
+ _defineProperty(_assertThisInitialized(_this), "controlType", "search");
96
+ _defineProperty(_assertThisInitialized(_this), "props", void 0);
83
97
  _this.props = new SearchControlProperty(props === null || props === void 0 ? void 0 : props.props);
84
98
  return _this;
85
99
  }
@@ -1,10 +1,10 @@
1
- import Schema from 'async-validator';
1
+ import Schema from "async-validator";
2
2
  var messages = {
3
- required: '%s 必填',
4
- maxLength: '%s 超出最大长度限制',
5
- minLength: '%s 小于最小长度限制',
3
+ required: "%s 必填",
4
+ maxLength: "%s 超出最大长度限制",
5
+ minLength: "%s 小于最小长度限制",
6
6
  string: {
7
- range: '%s 不在指定长度内'
7
+ range: "%s 不在指定长度内"
8
8
  }
9
9
  };
10
10
  function createValidator(rules) {
@@ -9,6 +9,19 @@ 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
+ }
12
25
  function _getPrototypeOf(o) {
13
26
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
14
27
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -69,17 +82,18 @@ function _createSuper(Derived) {
69
82
  return _possibleConstructorReturn(this, result);
70
83
  };
71
84
  }
72
- import WrapControlProperty from './property';
73
- import { DesignerLayoutControl } from '../LayoutControl';
74
- var WrapControl = /*#__PURE__*/ function(DesignerLayoutControl1) {
85
+ import WrapControlProperty from "./property";
86
+ import { DesignerLayoutControl } from "../LayoutControl";
87
+ var WrapControl = /*#__PURE__*/ function(DesignerLayoutControl) {
75
88
  "use strict";
76
- _inherits(WrapControl, DesignerLayoutControl1);
89
+ _inherits(WrapControl, DesignerLayoutControl);
77
90
  var _super = _createSuper(WrapControl);
78
91
  function WrapControl(props) {
79
92
  _classCallCheck(this, WrapControl);
80
93
  var _this;
81
94
  _this = _super.call(this, props);
82
- _this.controlType = 'wrap';
95
+ _defineProperty(_assertThisInitialized(_this), "controlType", "wrap");
96
+ _defineProperty(_assertThisInitialized(_this), "props", void 0);
83
97
  _this.props = new WrapControlProperty(props === null || props === void 0 ? void 0 : props.props);
84
98
  return _this;
85
99
  }
@@ -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";
@@ -69,10 +69,10 @@ function _createSuper(Derived) {
69
69
  return _possibleConstructorReturn(this, result);
70
70
  };
71
71
  }
72
- import { LayoutControlProperty } from '../LayoutControl';
73
- var WrapControlProperty = /*#__PURE__*/ function(LayoutControlProperty1) {
72
+ import { LayoutControlProperty } from "../LayoutControl";
73
+ var WrapControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
74
74
  "use strict";
75
- _inherits(WrapControlProperty, LayoutControlProperty1);
75
+ _inherits(WrapControlProperty, LayoutControlProperty);
76
76
  var _super = _createSuper(WrapControlProperty);
77
77
  function WrapControlProperty(props) {
78
78
  _classCallCheck(this, WrapControlProperty);