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

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 (43) hide show
  1. package/dist/esm/api-doc-index.js +4 -4
  2. package/dist/esm/common/BaseControl/designer.js +96 -215
  3. package/dist/esm/common/BaseControl/index.js +7 -7
  4. package/dist/esm/common/BaseControl/property.js +14 -42
  5. package/dist/esm/common/BaseControl/runtime.js +20 -41
  6. package/dist/esm/common/ColumnControl/designer.js +5 -19
  7. package/dist/esm/common/ColumnControl/index.js +6 -6
  8. package/dist/esm/common/ColumnControl/property.js +47 -95
  9. package/dist/esm/common/ColumnControl/runtime.js +5 -19
  10. package/dist/esm/common/ControlArray.js +8 -8
  11. package/dist/esm/common/FormControl/designer.js +10 -25
  12. package/dist/esm/common/FormControl/index.js +6 -6
  13. package/dist/esm/common/FormControl/property.js +87 -152
  14. package/dist/esm/common/FormControl/runtime.js +5 -20
  15. package/dist/esm/common/LayoutControl/designer.js +30 -158
  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 +7 -22
  19. package/dist/esm/common/ListControl/designer.js +26 -151
  20. package/dist/esm/common/ListControl/index.js +6 -6
  21. package/dist/esm/common/ListControl/property.js +5 -19
  22. package/dist/esm/common/ListControl/runtime.js +7 -22
  23. package/dist/esm/common/SearchViewControl/designer.js +5 -19
  24. package/dist/esm/common/SearchViewControl/index.js +6 -6
  25. package/dist/esm/common/SearchViewControl/property.js +4 -18
  26. package/dist/esm/common/SearchViewControl/runtime.js +5 -19
  27. package/dist/esm/common/Validator.js +5 -5
  28. package/dist/esm/common/WrapControl/designer.js +5 -19
  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 +5 -19
  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 +15 -27
  37. package/dist/esm/framework/index.js +325 -744
  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/type.d.ts +23 -23
  43. package/package.json +3 -3
@@ -69,10 +69,10 @@ function _createSuper(Derived) {
69
69
  return _possibleConstructorReturn(this, result);
70
70
  };
71
71
  }
72
- import { Property } from "../BaseControl";
73
- var LayoutControlProperty = /*#__PURE__*/ function(Property) {
72
+ import { Property } from '../BaseControl';
73
+ var LayoutControlProperty = /*#__PURE__*/ function(Property1) {
74
74
  "use strict";
75
- _inherits(LayoutControlProperty, Property);
75
+ _inherits(LayoutControlProperty, Property1);
76
76
  var _super = _createSuper(LayoutControlProperty);
77
77
  function LayoutControlProperty(props) {
78
78
  _classCallCheck(this, LayoutControlProperty);
@@ -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);
@@ -82,22 +69,20 @@ function _createSuper(Derived) {
82
69
  return _possibleConstructorReturn(this, result);
83
70
  };
84
71
  }
85
- import { RuntimeControl } from "../BaseControl";
86
- import LayoutControlProperty from "./property";
87
- import { defineControlArrayToProperty } from "../ControlArray";
88
- var LayoutControl = /*#__PURE__*/ function(RuntimeControl) {
72
+ import { RuntimeControl } from '../BaseControl';
73
+ import LayoutControlProperty from './property';
74
+ import { defineControlArrayToProperty } from '../ControlArray';
75
+ var LayoutControl = /*#__PURE__*/ function(RuntimeControl1) {
89
76
  "use strict";
90
- _inherits(LayoutControl, RuntimeControl);
77
+ _inherits(LayoutControl, RuntimeControl1);
91
78
  var _super = _createSuper(LayoutControl);
92
79
  function LayoutControl(props) {
93
80
  _classCallCheck(this, LayoutControl);
94
81
  var _this;
95
82
  _this = _super.call(this, props);
96
- _defineProperty(_assertThisInitialized(_this), "controlType", "layout");
97
- _defineProperty(_assertThisInitialized(_this), "children", void 0);
98
- _defineProperty(_assertThisInitialized(_this), "props", void 0);
83
+ _this.controlType = 'layout';
99
84
  _this.props = new LayoutControlProperty(props === null || props === void 0 ? void 0 : props.props);
100
- defineControlArrayToProperty(_assertThisInitialized(_this), "children", props === null || props === void 0 ? void 0 : props.children);
85
+ defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children);
101
86
  return _this;
102
87
  }
103
88
  return LayoutControl;
@@ -129,30 +129,6 @@ 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
- }
156
132
  function _possibleConstructorReturn(self, call) {
157
133
  if (call && (_typeof(call) === "object" || typeof call === "function")) {
158
134
  return call;
@@ -212,114 +188,19 @@ function _createSuper(Derived) {
212
188
  return _possibleConstructorReturn(this, result);
213
189
  };
214
190
  }
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) {
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) {
314
196
  "use strict";
315
- _inherits(ListControl, DesignerControl);
197
+ _inherits(ListControl, DesignerControl1);
316
198
  var _super = _createSuper(ListControl);
317
199
  function ListControl(props) {
318
200
  _classCallCheck(this, ListControl);
319
201
  var _this;
320
202
  _this = _super.call(this, props);
321
- _defineProperty(_assertThisInitialized(_this), "controlType", "list");
322
- _defineProperty(_assertThisInitialized(_this), "props", void 0);
203
+ _this.controlType = 'list';
323
204
  _this.props = new ListControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props);
324
205
  return _this;
325
206
  }
@@ -331,31 +212,25 @@ var ListControl = /*#__PURE__*/ function(DesignerControl) {
331
212
  var _this1 = this, _superprop_get_validate = function() {
332
213
  return _get(_getPrototypeOf(ListControl.prototype), "validate", _this);
333
214
  };
334
- return _asyncToGenerator(function() {
335
- return __generator(this, function(_state) {
336
- switch(_state.label){
215
+ return _asyncToGenerator(regeneratorRuntime.mark(function _callee() {
216
+ return regeneratorRuntime.wrap(function _callee$(_ctx) {
217
+ while(1)switch(_ctx.prev = _ctx.next){
337
218
  case 0:
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
- ];
219
+ _ctx.next = 2;
220
+ return _superprop_get_validate().call(_this1, messages);
350
221
  case 2:
351
- _state.sent();
352
- return [
353
- 2,
354
- true
355
- ];
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();
356
231
  }
357
- });
358
- })();
232
+ }, _callee);
233
+ }))();
359
234
  }
360
235
  },
361
236
  {
@@ -386,8 +261,8 @@ var ListControl = /*#__PURE__*/ function(DesignerControl) {
386
261
  var headers = this.props.headers.map(function(item) {
387
262
  return item.toSchema();
388
263
  });
389
- return _objectSpreadProps(_objectSpread({}, superSchema), {
390
- props: _objectSpreadProps(_objectSpread({}, this.props), {
264
+ return _objectSpread({}, superSchema, {
265
+ props: _objectSpread({}, this.props, {
391
266
  headers: headers
392
267
  })
393
268
  });
@@ -396,6 +271,6 @@ var ListControl = /*#__PURE__*/ function(DesignerControl) {
396
271
  ]);
397
272
  return ListControl;
398
273
  }(DesignerControl);
399
- _defineProperty(ListControl, "controlFieldType", FieldTypes.LIST);
274
+ ListControl.controlFieldType = FieldTypes.LIST;
400
275
  export default ListControl;
401
276
  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,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);
@@ -82,18 +69,17 @@ function _createSuper(Derived) {
82
69
  return _possibleConstructorReturn(this, result);
83
70
  };
84
71
  }
85
- import { Property } from "../BaseControl";
86
- import { defineControlArrayToProperty } from "../ControlArray";
87
- var ListControlProperty = /*#__PURE__*/ function(Property) {
72
+ import { Property } from '../BaseControl';
73
+ import { defineControlArrayToProperty } from '../ControlArray';
74
+ var ListControlProperty = /*#__PURE__*/ function(Property1) {
88
75
  "use strict";
89
- _inherits(ListControlProperty, Property);
76
+ _inherits(ListControlProperty, Property1);
90
77
  var _super = _createSuper(ListControlProperty);
91
78
  function ListControlProperty(parent, props) {
92
79
  _classCallCheck(this, ListControlProperty);
93
80
  var _this;
94
81
  _this = _super.call(this, props);
95
- _defineProperty(_assertThisInitialized(_this), "headers", void 0);
96
- defineControlArrayToProperty(_assertThisInitialized(_this), "headers", props === null || props === void 0 ? void 0 : props.headers, parent);
82
+ defineControlArrayToProperty(_assertThisInitialized(_this), 'headers', props === null || props === void 0 ? void 0 : props.headers, parent);
97
83
  return _this;
98
84
  }
99
85
  return ListControlProperty;
@@ -23,19 +23,6 @@ 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
- }
39
26
  function _getPrototypeOf(o) {
40
27
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
41
28
  return o.__proto__ || Object.getPrototypeOf(o);
@@ -96,22 +83,20 @@ function _createSuper(Derived) {
96
83
  return _possibleConstructorReturn(this, result);
97
84
  };
98
85
  }
99
- import { RuntimeControl } from "../BaseControl";
100
- import ListControlProperty from "./property";
101
- import { defineControlArrayToProperty } from "../ControlArray";
102
- var ListControl = /*#__PURE__*/ function(RuntimeControl) {
86
+ import { RuntimeControl } from '../BaseControl';
87
+ import ListControlProperty from './property';
88
+ import { defineControlArrayToProperty } from '../ControlArray';
89
+ var ListControl = /*#__PURE__*/ function(RuntimeControl1) {
103
90
  "use strict";
104
- _inherits(ListControl, RuntimeControl);
91
+ _inherits(ListControl, RuntimeControl1);
105
92
  var _super = _createSuper(ListControl);
106
93
  function ListControl(props) {
107
94
  _classCallCheck(this, ListControl);
108
95
  var _this;
109
96
  _this = _super.call(this, props);
110
- _defineProperty(_assertThisInitialized(_this), "controlType", "list");
111
- _defineProperty(_assertThisInitialized(_this), "children", void 0);
112
- _defineProperty(_assertThisInitialized(_this), "props", void 0);
97
+ _this.controlType = 'list';
113
98
  _this.props = new ListControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props);
114
- defineControlArrayToProperty(_assertThisInitialized(_this), "children", props === null || props === void 0 ? void 0 : props.children);
99
+ defineControlArrayToProperty(_assertThisInitialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children);
115
100
  return _this;
116
101
  }
117
102
  _createClass(ListControl, [
@@ -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);
@@ -82,18 +69,17 @@ function _createSuper(Derived) {
82
69
  return _possibleConstructorReturn(this, result);
83
70
  };
84
71
  }
85
- import SearchControlProperty from "./property";
86
- import { DesignerLayoutControl } from "../LayoutControl";
87
- var SearchControl = /*#__PURE__*/ function(DesignerLayoutControl) {
72
+ import SearchControlProperty from './property';
73
+ import { DesignerLayoutControl } from '../LayoutControl';
74
+ var SearchControl = /*#__PURE__*/ function(DesignerLayoutControl1) {
88
75
  "use strict";
89
- _inherits(SearchControl, DesignerLayoutControl);
76
+ _inherits(SearchControl, DesignerLayoutControl1);
90
77
  var _super = _createSuper(SearchControl);
91
78
  function SearchControl(props) {
92
79
  _classCallCheck(this, SearchControl);
93
80
  var _this;
94
81
  _this = _super.call(this, props);
95
- _defineProperty(_assertThisInitialized(_this), "controlType", "search");
96
- _defineProperty(_assertThisInitialized(_this), "props", void 0);
82
+ _this.controlType = 'search';
97
83
  _this.props = new SearchControlProperty(props === null || props === void 0 ? void 0 : props.props);
98
84
  return _this;
99
85
  }
@@ -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,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);
@@ -82,17 +69,16 @@ function _createSuper(Derived) {
82
69
  return _possibleConstructorReturn(this, result);
83
70
  };
84
71
  }
85
- import { LayoutControlProperty } from "../LayoutControl";
86
- import { DataBind } from "../../framework";
87
- var SearchControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
72
+ import { LayoutControlProperty } from '../LayoutControl';
73
+ import { DataBind } from '../../framework';
74
+ var SearchControlProperty = /*#__PURE__*/ function(LayoutControlProperty1) {
88
75
  "use strict";
89
- _inherits(SearchControlProperty, LayoutControlProperty);
76
+ _inherits(SearchControlProperty, LayoutControlProperty1);
90
77
  var _super = _createSuper(SearchControlProperty);
91
78
  function SearchControlProperty(props) {
92
79
  _classCallCheck(this, SearchControlProperty);
93
80
  var _this;
94
81
  _this = _super.call(this, props);
95
- _defineProperty(_assertThisInitialized(_this), "dataBind", void 0);
96
82
  _this.dataBind = new DataBind(props === null || props === void 0 ? void 0 : props.dataBind);
97
83
  return _this;
98
84
  }
@@ -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);
@@ -82,18 +69,17 @@ function _createSuper(Derived) {
82
69
  return _possibleConstructorReturn(this, result);
83
70
  };
84
71
  }
85
- import SearchControlProperty from "./property";
86
- import { RuntimeLayoutControl } from "../LayoutControl";
87
- var SearchControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
72
+ import SearchControlProperty from './property';
73
+ import { RuntimeLayoutControl } from '../LayoutControl';
74
+ var SearchControl = /*#__PURE__*/ function(RuntimeLayoutControl1) {
88
75
  "use strict";
89
- _inherits(SearchControl, RuntimeLayoutControl);
76
+ _inherits(SearchControl, RuntimeLayoutControl1);
90
77
  var _super = _createSuper(SearchControl);
91
78
  function SearchControl(props) {
92
79
  _classCallCheck(this, SearchControl);
93
80
  var _this;
94
81
  _this = _super.call(this, props);
95
- _defineProperty(_assertThisInitialized(_this), "controlType", "search");
96
- _defineProperty(_assertThisInitialized(_this), "props", void 0);
82
+ _this.controlType = 'search';
97
83
  _this.props = new SearchControlProperty(props === null || props === void 0 ? void 0 : props.props);
98
84
  return _this;
99
85
  }
@@ -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,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);
@@ -82,18 +69,17 @@ function _createSuper(Derived) {
82
69
  return _possibleConstructorReturn(this, result);
83
70
  };
84
71
  }
85
- import WrapControlProperty from "./property";
86
- import { DesignerLayoutControl } from "../LayoutControl";
87
- var WrapControl = /*#__PURE__*/ function(DesignerLayoutControl) {
72
+ import WrapControlProperty from './property';
73
+ import { DesignerLayoutControl } from '../LayoutControl';
74
+ var WrapControl = /*#__PURE__*/ function(DesignerLayoutControl1) {
88
75
  "use strict";
89
- _inherits(WrapControl, DesignerLayoutControl);
76
+ _inherits(WrapControl, DesignerLayoutControl1);
90
77
  var _super = _createSuper(WrapControl);
91
78
  function WrapControl(props) {
92
79
  _classCallCheck(this, WrapControl);
93
80
  var _this;
94
81
  _this = _super.call(this, props);
95
- _defineProperty(_assertThisInitialized(_this), "controlType", "wrap");
96
- _defineProperty(_assertThisInitialized(_this), "props", void 0);
82
+ _this.controlType = 'wrap';
97
83
  _this.props = new WrapControlProperty(props === null || props === void 0 ? void 0 : props.props);
98
84
  return _this;
99
85
  }
@@ -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(LayoutControlProperty) {
72
+ import { LayoutControlProperty } from '../LayoutControl';
73
+ var WrapControlProperty = /*#__PURE__*/ function(LayoutControlProperty1) {
74
74
  "use strict";
75
- _inherits(WrapControlProperty, LayoutControlProperty);
75
+ _inherits(WrapControlProperty, LayoutControlProperty1);
76
76
  var _super = _createSuper(WrapControlProperty);
77
77
  function WrapControlProperty(props) {
78
78
  _classCallCheck(this, WrapControlProperty);