@byteluck-fe/model-driven-core 2.4.1-beta.0 → 2.4.1-beta.2

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 +121 -240
  3. package/dist/esm/common/BaseControl/index.js +7 -7
  4. package/dist/esm/common/BaseControl/property.js +60 -77
  5. package/dist/esm/common/BaseControl/runtime.js +24 -45
  6. package/dist/esm/common/ColumnControl/designer.js +27 -41
  7. package/dist/esm/common/ColumnControl/index.js +6 -6
  8. package/dist/esm/common/ColumnControl/property.js +74 -122
  9. package/dist/esm/common/ColumnControl/runtime.js +27 -41
  10. package/dist/esm/common/ControlArray.js +20 -20
  11. package/dist/esm/common/FormControl/designer.js +32 -47
  12. package/dist/esm/common/FormControl/index.js +6 -6
  13. package/dist/esm/common/FormControl/property.js +116 -181
  14. package/dist/esm/common/FormControl/runtime.js +27 -42
  15. package/dist/esm/common/LayoutControl/designer.js +77 -205
  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 +29 -44
  19. package/dist/esm/common/ListControl/designer.js +74 -199
  20. package/dist/esm/common/ListControl/index.js +6 -6
  21. package/dist/esm/common/ListControl/property.js +27 -41
  22. package/dist/esm/common/ListControl/runtime.js +32 -47
  23. package/dist/esm/common/SearchViewControl/designer.js +27 -41
  24. package/dist/esm/common/SearchViewControl/index.js +6 -6
  25. package/dist/esm/common/SearchViewControl/property.js +26 -40
  26. package/dist/esm/common/SearchViewControl/runtime.js +27 -41
  27. package/dist/esm/common/Validator.js +5 -5
  28. package/dist/esm/common/WrapControl/designer.js +27 -41
  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 +27 -41
  32. package/dist/esm/common/controlHooksEmitter.js +1 -1
  33. package/dist/esm/common/index.js +11 -11
  34. package/dist/esm/common/initOptionAndDataSourceRules.js +82 -82
  35. package/dist/esm/framework/RegisterControls.js +19 -31
  36. package/dist/esm/framework/index.js +362 -735
  37. package/dist/esm/index.js +3 -3
  38. package/dist/index.umd.js +1 -1
  39. package/dist/types/common/Validator.d.ts +1 -1
  40. package/dist/types/common/controlHooksEmitter.d.ts +1 -1
  41. package/dist/types/framework/index.d.ts +7 -1
  42. package/dist/types/type.d.ts +23 -23
  43. package/package.json +2 -2
@@ -1,32 +1,19 @@
1
- function _assert_this_initialized(self) {
1
+ function _assertThisInitialized(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 _class_call_check(instance, Constructor) {
7
+ function _classCallCheck(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 _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) {
12
+ function _getPrototypeOf(o) {
13
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
27
14
  return o.__proto__ || Object.getPrototypeOf(o);
28
15
  };
29
- return _get_prototype_of(o);
16
+ return _getPrototypeOf(o);
30
17
  }
31
18
  function _inherits(subClass, superClass) {
32
19
  if (typeof superClass !== "function" && superClass !== null) {
@@ -39,26 +26,26 @@ function _inherits(subClass, superClass) {
39
26
  configurable: true
40
27
  }
41
28
  });
42
- if (superClass) _set_prototype_of(subClass, superClass);
29
+ if (superClass) _setPrototypeOf(subClass, superClass);
43
30
  }
44
- function _possible_constructor_return(self, call) {
45
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
31
+ function _possibleConstructorReturn(self, call) {
32
+ if (call && (_typeof(call) === "object" || typeof call === "function")) {
46
33
  return call;
47
34
  }
48
- return _assert_this_initialized(self);
35
+ return _assertThisInitialized(self);
49
36
  }
50
- function _set_prototype_of(o, p) {
51
- _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
37
+ function _setPrototypeOf(o, p) {
38
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
52
39
  o.__proto__ = p;
53
40
  return o;
54
41
  };
55
- return _set_prototype_of(o, p);
42
+ return _setPrototypeOf(o, p);
56
43
  }
57
- function _type_of(obj) {
44
+ var _typeof = function(obj) {
58
45
  "@swc/helpers - typeof";
59
46
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
60
- }
61
- function _is_native_reflect_construct() {
47
+ };
48
+ function _isNativeReflectConstruct() {
62
49
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
63
50
  if (Reflect.construct.sham) return false;
64
51
  if (typeof Proxy === "function") return true;
@@ -69,31 +56,30 @@ function _is_native_reflect_construct() {
69
56
  return false;
70
57
  }
71
58
  }
72
- function _create_super(Derived) {
73
- var hasNativeReflectConstruct = _is_native_reflect_construct();
59
+ function _createSuper(Derived) {
60
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
74
61
  return function _createSuperInternal() {
75
- var Super = _get_prototype_of(Derived), result;
62
+ var Super = _getPrototypeOf(Derived), result;
76
63
  if (hasNativeReflectConstruct) {
77
- var NewTarget = _get_prototype_of(this).constructor;
64
+ var NewTarget = _getPrototypeOf(this).constructor;
78
65
  result = Reflect.construct(Super, arguments, NewTarget);
79
66
  } else {
80
67
  result = Super.apply(this, arguments);
81
68
  }
82
- return _possible_constructor_return(this, result);
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);
90
- var _super = _create_super(WrapControl);
76
+ _inherits(WrapControl, DesignerLayoutControl1);
77
+ var _super = _createSuper(WrapControl);
91
78
  function WrapControl(props) {
92
- _class_call_check(this, WrapControl);
79
+ _classCallCheck(this, WrapControl);
93
80
  var _this;
94
81
  _this = _super.call(this, props);
95
- _define_property(_assert_this_initialized(_this), "controlType", "wrap");
96
- _define_property(_assert_this_initialized(_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';
@@ -1,19 +1,19 @@
1
- function _assert_this_initialized(self) {
1
+ function _assertThisInitialized(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 _class_call_check(instance, Constructor) {
7
+ function _classCallCheck(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 _get_prototype_of(o) {
13
- _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
12
+ function _getPrototypeOf(o) {
13
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
14
14
  return o.__proto__ || Object.getPrototypeOf(o);
15
15
  };
16
- return _get_prototype_of(o);
16
+ return _getPrototypeOf(o);
17
17
  }
18
18
  function _inherits(subClass, superClass) {
19
19
  if (typeof superClass !== "function" && superClass !== null) {
@@ -26,26 +26,26 @@ function _inherits(subClass, superClass) {
26
26
  configurable: true
27
27
  }
28
28
  });
29
- if (superClass) _set_prototype_of(subClass, superClass);
29
+ if (superClass) _setPrototypeOf(subClass, superClass);
30
30
  }
31
- function _possible_constructor_return(self, call) {
32
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
31
+ function _possibleConstructorReturn(self, call) {
32
+ if (call && (_typeof(call) === "object" || typeof call === "function")) {
33
33
  return call;
34
34
  }
35
- return _assert_this_initialized(self);
35
+ return _assertThisInitialized(self);
36
36
  }
37
- function _set_prototype_of(o, p) {
38
- _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
37
+ function _setPrototypeOf(o, p) {
38
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
39
39
  o.__proto__ = p;
40
40
  return o;
41
41
  };
42
- return _set_prototype_of(o, p);
42
+ return _setPrototypeOf(o, p);
43
43
  }
44
- function _type_of(obj) {
44
+ var _typeof = function(obj) {
45
45
  "@swc/helpers - typeof";
46
46
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
47
- }
48
- function _is_native_reflect_construct() {
47
+ };
48
+ function _isNativeReflectConstruct() {
49
49
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
50
50
  if (Reflect.construct.sham) return false;
51
51
  if (typeof Proxy === "function") return true;
@@ -56,26 +56,26 @@ function _is_native_reflect_construct() {
56
56
  return false;
57
57
  }
58
58
  }
59
- function _create_super(Derived) {
60
- var hasNativeReflectConstruct = _is_native_reflect_construct();
59
+ function _createSuper(Derived) {
60
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
61
61
  return function _createSuperInternal() {
62
- var Super = _get_prototype_of(Derived), result;
62
+ var Super = _getPrototypeOf(Derived), result;
63
63
  if (hasNativeReflectConstruct) {
64
- var NewTarget = _get_prototype_of(this).constructor;
64
+ var NewTarget = _getPrototypeOf(this).constructor;
65
65
  result = Reflect.construct(Super, arguments, NewTarget);
66
66
  } else {
67
67
  result = Super.apply(this, arguments);
68
68
  }
69
- return _possible_constructor_return(this, result);
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);
76
- var _super = _create_super(WrapControlProperty);
75
+ _inherits(WrapControlProperty, LayoutControlProperty1);
76
+ var _super = _createSuper(WrapControlProperty);
77
77
  function WrapControlProperty(props) {
78
- _class_call_check(this, WrapControlProperty);
78
+ _classCallCheck(this, WrapControlProperty);
79
79
  return _super.call(this, props);
80
80
  }
81
81
  return WrapControlProperty;
@@ -1,32 +1,19 @@
1
- function _assert_this_initialized(self) {
1
+ function _assertThisInitialized(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 _class_call_check(instance, Constructor) {
7
+ function _classCallCheck(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 _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) {
12
+ function _getPrototypeOf(o) {
13
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
27
14
  return o.__proto__ || Object.getPrototypeOf(o);
28
15
  };
29
- return _get_prototype_of(o);
16
+ return _getPrototypeOf(o);
30
17
  }
31
18
  function _inherits(subClass, superClass) {
32
19
  if (typeof superClass !== "function" && superClass !== null) {
@@ -39,26 +26,26 @@ function _inherits(subClass, superClass) {
39
26
  configurable: true
40
27
  }
41
28
  });
42
- if (superClass) _set_prototype_of(subClass, superClass);
29
+ if (superClass) _setPrototypeOf(subClass, superClass);
43
30
  }
44
- function _possible_constructor_return(self, call) {
45
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
31
+ function _possibleConstructorReturn(self, call) {
32
+ if (call && (_typeof(call) === "object" || typeof call === "function")) {
46
33
  return call;
47
34
  }
48
- return _assert_this_initialized(self);
35
+ return _assertThisInitialized(self);
49
36
  }
50
- function _set_prototype_of(o, p) {
51
- _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
37
+ function _setPrototypeOf(o, p) {
38
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
52
39
  o.__proto__ = p;
53
40
  return o;
54
41
  };
55
- return _set_prototype_of(o, p);
42
+ return _setPrototypeOf(o, p);
56
43
  }
57
- function _type_of(obj) {
44
+ var _typeof = function(obj) {
58
45
  "@swc/helpers - typeof";
59
46
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
60
- }
61
- function _is_native_reflect_construct() {
47
+ };
48
+ function _isNativeReflectConstruct() {
62
49
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
63
50
  if (Reflect.construct.sham) return false;
64
51
  if (typeof Proxy === "function") return true;
@@ -69,31 +56,30 @@ function _is_native_reflect_construct() {
69
56
  return false;
70
57
  }
71
58
  }
72
- function _create_super(Derived) {
73
- var hasNativeReflectConstruct = _is_native_reflect_construct();
59
+ function _createSuper(Derived) {
60
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
74
61
  return function _createSuperInternal() {
75
- var Super = _get_prototype_of(Derived), result;
62
+ var Super = _getPrototypeOf(Derived), result;
76
63
  if (hasNativeReflectConstruct) {
77
- var NewTarget = _get_prototype_of(this).constructor;
64
+ var NewTarget = _getPrototypeOf(this).constructor;
78
65
  result = Reflect.construct(Super, arguments, NewTarget);
79
66
  } else {
80
67
  result = Super.apply(this, arguments);
81
68
  }
82
- return _possible_constructor_return(this, result);
69
+ return _possibleConstructorReturn(this, result);
83
70
  };
84
71
  }
85
- import WrapControlProperty from "./property";
86
- import { RuntimeLayoutControl } from "../LayoutControl";
87
- var WrapControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
72
+ import WrapControlProperty from './property';
73
+ import { RuntimeLayoutControl } from '../LayoutControl';
74
+ var WrapControl = /*#__PURE__*/ function(RuntimeLayoutControl1) {
88
75
  "use strict";
89
- _inherits(WrapControl, RuntimeLayoutControl);
90
- var _super = _create_super(WrapControl);
76
+ _inherits(WrapControl, RuntimeLayoutControl1);
77
+ var _super = _createSuper(WrapControl);
91
78
  function WrapControl(props) {
92
- _class_call_check(this, WrapControl);
79
+ _classCallCheck(this, WrapControl);
93
80
  var _this;
94
81
  _this = _super.call(this, props);
95
- _define_property(_assert_this_initialized(_this), "controlType", "wrap");
96
- _define_property(_assert_this_initialized(_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,3 +1,3 @@
1
- import { Watcher } from "@byteluck-fe/model-driven-shared";
1
+ import { Watcher } from '@byteluck-fe/model-driven-shared';
2
2
  var controlHooksEmitter = new Watcher();
3
3
  export { controlHooksEmitter };
@@ -1,11 +1,11 @@
1
- export * from "./BaseControl";
2
- export * from "./FormControl";
3
- export * from "./LayoutControl";
4
- export * from "./ListControl";
5
- export * from "./ColumnControl";
6
- export * from "./SearchViewControl";
7
- export * from "./WrapControl";
8
- export * from "./Validator";
9
- export * from "./ControlArray";
10
- export * from "./initOptionAndDataSourceRules";
11
- export * from "./controlHooksEmitter";
1
+ export * from './BaseControl';
2
+ export * from './FormControl';
3
+ export * from './LayoutControl';
4
+ export * from './ListControl';
5
+ export * from './ColumnControl';
6
+ export * from './SearchViewControl';
7
+ export * from './WrapControl';
8
+ export * from './Validator';
9
+ export * from './ControlArray';
10
+ export * from './initOptionAndDataSourceRules';
11
+ export * from './controlHooksEmitter';