@byteluck-fe/model-driven-core 7.0.0-props.94 → 7.1.0-beta.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 (47) hide show
  1. package/README.md +7 -0
  2. package/dist/contracts/index.js +1 -0
  3. package/dist/contracts/index.mjs +1 -0
  4. package/dist/esm/common/BaseControl/designer.js +47 -29
  5. package/dist/esm/common/BaseControl/property.js +44 -33
  6. package/dist/esm/common/BaseControl/runtime.js +3 -9
  7. package/dist/esm/common/ColumnControl/designer.js +17 -29
  8. package/dist/esm/common/ColumnControl/property.js +44 -22
  9. package/dist/esm/common/ColumnControl/runtime.js +12 -20
  10. package/dist/esm/common/ControlArray.js +4 -2
  11. package/dist/esm/common/FormControl/designer.js +12 -20
  12. package/dist/esm/common/FormControl/property.js +16 -21
  13. package/dist/esm/common/FormControl/runtime.js +12 -20
  14. package/dist/esm/common/LayoutControl/designer.js +36 -51
  15. package/dist/esm/common/LayoutControl/property.js +15 -18
  16. package/dist/esm/common/LayoutControl/runtime.js +12 -20
  17. package/dist/esm/common/ListControl/designer.js +35 -48
  18. package/dist/esm/common/ListControl/property.js +29 -22
  19. package/dist/esm/common/ListControl/runtime.js +12 -20
  20. package/dist/esm/common/SearchViewControl/designer.js +12 -20
  21. package/dist/esm/common/SearchViewControl/property.js +19 -22
  22. package/dist/esm/common/SearchViewControl/runtime.js +12 -20
  23. package/dist/esm/common/WrapControl/designer.js +12 -20
  24. package/dist/esm/common/WrapControl/property.js +15 -18
  25. package/dist/esm/common/WrapControl/runtime.js +12 -20
  26. package/dist/esm/contracts/build-info.js +36 -0
  27. package/dist/esm/contracts/diagnostics.js +29 -0
  28. package/dist/esm/contracts/index.js +4 -0
  29. package/dist/esm/contracts/page-model.js +1 -0
  30. package/dist/esm/contracts/versions.js +9 -0
  31. package/dist/esm/framework/RegisterControls.js +2 -6
  32. package/dist/esm/framework/index.js +216 -20
  33. package/dist/index.umd.js +3 -1
  34. package/dist/types/common/BaseControl/designer.d.ts +14 -0
  35. package/dist/types/common/BaseControl/property.d.ts +28 -0
  36. package/dist/types/common/ColumnControl/property.d.ts +42 -0
  37. package/dist/types/common/LayoutControl/property.d.ts +4 -0
  38. package/dist/types/common/ListControl/property.d.ts +22 -0
  39. package/dist/types/common/SearchViewControl/property.d.ts +7 -0
  40. package/dist/types/common/WrapControl/property.d.ts +4 -0
  41. package/dist/types/contracts/build-info.d.ts +25 -0
  42. package/dist/types/contracts/diagnostics.d.ts +14 -0
  43. package/dist/types/contracts/index.d.ts +4 -0
  44. package/dist/types/contracts/page-model.d.ts +72 -0
  45. package/dist/types/contracts/versions.d.ts +16 -0
  46. package/dist/types/framework/index.d.ts +195 -0
  47. package/package.json +27 -5
@@ -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,15 +62,10 @@ 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
- import { Property } from '../BaseControl';
65
+ /**
66
+ * name: base_list_control_property
67
+ * description: 列表控件基础属性定义。提供表头、表尾、分页页码、每页条数、分页选项和总条数等列表通用配置。
68
+ */ import { Property } from '../BaseControl';
74
69
  import { defineControlArrayToProperty } from '../ControlArray';
75
70
  var ListControlProperty = /*#__PURE__*/ function(Property) {
76
71
  "use strict";
@@ -81,7 +76,19 @@ var ListControlProperty = /*#__PURE__*/ function(Property) {
81
76
  var _ref, _ref1, _ref2, _ref3;
82
77
  _this = _call_super(this, ListControlProperty, [
83
78
  props
84
- ]), _define_property(_this, "headers", void 0), _define_property(_this, "footers", void 0), _define_property(_this, "pageIndex", void 0), _define_property(_this, "pageSize", void 0), _define_property(_this, "pageSizeOptions", void 0), _define_property(_this, "totalCount", void 0);
79
+ ]), /**
80
+ * 表头控件
81
+ */ _define_property(_this, "headers", void 0), /**
82
+ * 表尾控件
83
+ */ _define_property(_this, "footers", void 0), /**
84
+ * 当前页码
85
+ */ _define_property(_this, "pageIndex", void 0), /**
86
+ * 每页条数
87
+ */ _define_property(_this, "pageSize", void 0), /**
88
+ * 每页条数选项
89
+ */ _define_property(_this, "pageSizeOptions", void 0), /**
90
+ * 总条数
91
+ */ _define_property(_this, "totalCount", void 0);
85
92
  defineControlArrayToProperty(_this, 'headers', props === null || props === void 0 ? void 0 : props.headers, parent, mode);
86
93
  defineControlArrayToProperty(_this, 'footers', props === null || props === void 0 ? void 0 : props.footers, parent);
87
94
  _this.pageIndex = (_ref = props === null || props === void 0 ? void 0 : props.pageIndex) !== null && _ref !== void 0 ? _ref : 1;
@@ -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 _defineProperties(target, props) {
17
13
  for(var i = 0; i < props.length; i++){
@@ -35,9 +31,7 @@ function _define_property(obj, key, value) {
35
31
  configurable: true,
36
32
  writable: true
37
33
  });
38
- } else {
39
- obj[key] = value;
40
- }
34
+ } else obj[key] = value;
41
35
  return obj;
42
36
  }
43
37
  function _get_prototype_of(o) {
@@ -59,10 +53,16 @@ function _inherits(subClass, superClass) {
59
53
  });
60
54
  if (superClass) _set_prototype_of(subClass, superClass);
61
55
  }
56
+ function _is_native_reflect_construct() {
57
+ try {
58
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
59
+ } catch (_) {}
60
+ return (_is_native_reflect_construct = function() {
61
+ return !!result;
62
+ })();
63
+ }
62
64
  function _possible_constructor_return(self, call) {
63
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
64
- return call;
65
- }
65
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
66
66
  return _assert_this_initialized(self);
67
67
  }
68
68
  function _set_prototype_of(o, p) {
@@ -76,14 +76,6 @@ function _type_of(obj) {
76
76
  "@swc/helpers - typeof";
77
77
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
78
78
  }
79
- function _is_native_reflect_construct() {
80
- try {
81
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
82
- } catch (_) {}
83
- return (_is_native_reflect_construct = function() {
84
- return !!result;
85
- })();
86
- }
87
79
  import { RuntimeControl } from '../BaseControl';
88
80
  import ListControlProperty from './property';
89
81
  import { defineControlArrayToProperty } from '../ControlArray';
@@ -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 SearchControlProperty from './property';
74
66
  import { DesignerLayoutControl } from '../LayoutControl';
75
67
  var SearchControl = /*#__PURE__*/ function(DesignerLayoutControl) {
@@ -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,15 +62,10 @@ 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
- import { LayoutControlProperty } from '../LayoutControl';
65
+ /**
66
+ * name: base_search_control_property
67
+ * description: 查询控件基础属性定义。提供查询视图的数据项绑定配置,用于搜索区域控件与数据字段建立关联。
68
+ */ import { LayoutControlProperty } from '../LayoutControl';
74
69
  import { DataBind } from '../../framework';
75
70
  var SearchControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
76
71
  "use strict";
@@ -80,7 +75,9 @@ var SearchControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
80
75
  var _this;
81
76
  _this = _call_super(this, SearchControlProperty, [
82
77
  props
83
- ]), _define_property(_this, "dataBind", void 0);
78
+ ]), /**
79
+ * 绑定数据项
80
+ */ _define_property(_this, "dataBind", void 0);
84
81
  _this.dataBind = new DataBind(props === null || props === void 0 ? void 0 : props.dataBind);
85
82
  return _this;
86
83
  }
@@ -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 SearchControlProperty from './property';
74
66
  import { RuntimeLayoutControl } from '../LayoutControl';
75
67
  var SearchControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
@@ -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 WrapControlProperty from './property';
74
66
  import { DesignerLayoutControl } from '../LayoutControl';
75
67
  var WrapControl = /*#__PURE__*/ function(DesignerLayoutControl) {
@@ -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,15 +51,10 @@ 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
- import { LayoutControlProperty } from '../LayoutControl';
54
+ /**
55
+ * name: base_wrap_control_property
56
+ * description: 包裹控件基础属性定义。继承布局属性能力,为外层包裹类控件提供统一的属性模型。
57
+ */ import { LayoutControlProperty } from '../LayoutControl';
61
58
  var WrapControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
62
59
  "use strict";
63
60
  _inherits(WrapControlProperty, LayoutControlProperty);
@@ -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 WrapControlProperty from './property';
74
66
  import { RuntimeLayoutControl } from '../LayoutControl';
75
67
  var WrapControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
@@ -0,0 +1,36 @@
1
+ function _define_property(obj, key, value) {
2
+ if (key in obj) {
3
+ Object.defineProperty(obj, key, {
4
+ value: value,
5
+ enumerable: true,
6
+ configurable: true,
7
+ writable: true
8
+ });
9
+ } else obj[key] = value;
10
+ return obj;
11
+ }
12
+ function _object_spread(target) {
13
+ for(var i = 1; i < arguments.length; i++){
14
+ var source = arguments[i] != null ? arguments[i] : {};
15
+ var ownKeys = Object.keys(source);
16
+ if (typeof Object.getOwnPropertySymbols === "function") {
17
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
18
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
19
+ }));
20
+ }
21
+ ownKeys.forEach(function(key) {
22
+ _define_property(target, key, source[key]);
23
+ });
24
+ }
25
+ return target;
26
+ }
27
+ import { CONTROL_CATALOG_SCHEMA_VERSION, CURRENT_PAGE_SCHEMA_VERSION, HEADLESS_COMPILER_CONTRACT_VERSION, MODEL_DRIVEN_PACKAGE_VERSION } from './versions';
28
+ export var MODEL_DRIVEN_BUILD_INFO = Object.freeze({
29
+ packageVersion: MODEL_DRIVEN_PACKAGE_VERSION,
30
+ pageSchemaVersion: CURRENT_PAGE_SCHEMA_VERSION,
31
+ compilerContractVersion: HEADLESS_COMPILER_CONTRACT_VERSION,
32
+ catalogSchemaVersion: CONTROL_CATALOG_SCHEMA_VERSION
33
+ });
34
+ /** 返回新对象,避免调用方意外改写共享的版本事实。 */ export function getModelDrivenBuildInfo() {
35
+ return _object_spread({}, MODEL_DRIVEN_BUILD_INFO);
36
+ }
@@ -0,0 +1,29 @@
1
+ function _define_property(obj, key, value) {
2
+ if (key in obj) {
3
+ Object.defineProperty(obj, key, {
4
+ value: value,
5
+ enumerable: true,
6
+ configurable: true,
7
+ writable: true
8
+ });
9
+ } else obj[key] = value;
10
+ return obj;
11
+ }
12
+ function _object_spread(target) {
13
+ for(var i = 1; i < arguments.length; i++){
14
+ var source = arguments[i] != null ? arguments[i] : {};
15
+ var ownKeys = Object.keys(source);
16
+ if (typeof Object.getOwnPropertySymbols === "function") {
17
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
18
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
19
+ }));
20
+ }
21
+ ownKeys.forEach(function(key) {
22
+ _define_property(target, key, source[key]);
23
+ });
24
+ }
25
+ return target;
26
+ }
27
+ export function createModelDrivenDiagnostic(diagnostic) {
28
+ return _object_spread({}, diagnostic);
29
+ }
@@ -0,0 +1,4 @@
1
+ export * from './versions';
2
+ export * from './build-info';
3
+ export * from './diagnostics';
4
+ export * from './page-model';
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * model-driven 公共能力发布列车的 npm 包版本。
3
+ *
4
+ * 注意:npm 包版本、页面持久化 schema 版本和纯编译契约版本是三套独立版本,
5
+ * 不能再通过其中任意一个推断另外两个。
6
+ */ export var MODEL_DRIVEN_PACKAGE_VERSION = '7.1.0-beta.0';
7
+ /** 当前设计器写入的页面持久化 schema 版本。 */ export var CURRENT_PAGE_SCHEMA_VERSION = '3.16';
8
+ /** Node 纯编译入口的契约版本。 */ export var HEADLESS_COMPILER_CONTRACT_VERSION = 'model-driven.headless.v1';
9
+ /** 静态控件目录的文档结构版本。 */ export var CONTROL_CATALOG_SCHEMA_VERSION = 'model-driven.control-catalog.v1';
@@ -1,7 +1,5 @@
1
1
  function _class_call_check(instance, Constructor) {
2
- if (!(instance instanceof Constructor)) {
3
- throw new TypeError("Cannot call a class as a function");
4
- }
2
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
5
3
  }
6
4
  function _defineProperties(target, props) {
7
5
  for(var i = 0; i < props.length; i++){
@@ -25,9 +23,7 @@ function _define_property(obj, key, value) {
25
23
  configurable: true,
26
24
  writable: true
27
25
  });
28
- } else {
29
- obj[key] = value;
30
- }
26
+ } else obj[key] = value;
31
27
  return obj;
32
28
  }
33
29
  import { error, CONTROL_BASE_TYPE, warn } from '@byteluck-fe/model-driven-shared';