@byteluck-fe/model-driven-core 2.23.0-beta.12 → 2.23.0-beta.14
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.
- package/README.md +69 -69
- package/dist/esm/common/BaseControl/designer.js +11 -11
- package/dist/esm/common/BaseControl/property.js +38 -25
- package/dist/esm/common/ColumnControl/designer.js +27 -13
- package/dist/esm/common/ColumnControl/property.js +75 -50
- package/dist/esm/common/ColumnControl/runtime.js +27 -13
- package/dist/esm/common/FormControl/designer.js +25 -12
- package/dist/esm/common/FormControl/property.js +103 -75
- package/dist/esm/common/FormControl/runtime.js +26 -12
- package/dist/esm/common/LayoutControl/designer.js +29 -13
- package/dist/esm/common/LayoutControl/property.js +23 -12
- package/dist/esm/common/LayoutControl/runtime.js +27 -13
- package/dist/esm/common/ListControl/designer.js +26 -13
- package/dist/esm/common/ListControl/property.js +31 -14
- package/dist/esm/common/ListControl/runtime.js +28 -14
- package/dist/esm/common/SearchViewControl/designer.js +25 -12
- package/dist/esm/common/SearchViewControl/property.js +24 -12
- package/dist/esm/common/SearchViewControl/runtime.js +25 -12
- package/dist/esm/common/WrapControl/designer.js +25 -12
- package/dist/esm/common/WrapControl/property.js +23 -12
- package/dist/esm/common/WrapControl/runtime.js +25 -12
- package/dist/esm/framework/RegisterControls.js +0 -1
- package/dist/esm/framework/index.js +437 -404
- package/dist/index.umd.js +1 -1
- package/dist/types/api-doc-index.d.ts +4 -4
- package/dist/types/common/BaseControl/designer.d.ts +71 -71
- package/dist/types/common/BaseControl/index.d.ts +13 -13
- package/dist/types/common/BaseControl/property.d.ts +44 -44
- package/dist/types/common/BaseControl/runtime.d.ts +23 -23
- package/dist/types/common/BaseControl/types.d.ts +35 -35
- package/dist/types/common/ColumnControl/designer.d.ts +20 -20
- package/dist/types/common/ColumnControl/index.d.ts +12 -12
- package/dist/types/common/ColumnControl/property.d.ts +74 -74
- package/dist/types/common/ColumnControl/runtime.d.ts +11 -11
- package/dist/types/common/ControlArray.d.ts +9 -9
- package/dist/types/common/FormControl/designer.d.ts +13 -13
- package/dist/types/common/FormControl/index.d.ts +12 -12
- package/dist/types/common/FormControl/property.d.ts +100 -100
- package/dist/types/common/FormControl/runtime.d.ts +11 -11
- package/dist/types/common/LayoutControl/designer.d.ts +21 -21
- package/dist/types/common/LayoutControl/index.d.ts +12 -12
- package/dist/types/common/LayoutControl/property.d.ts +6 -6
- package/dist/types/common/LayoutControl/runtime.d.ts +11 -11
- package/dist/types/common/ListControl/designer.d.ts +16 -16
- package/dist/types/common/ListControl/index.d.ts +12 -12
- package/dist/types/common/ListControl/property.d.ts +18 -18
- package/dist/types/common/ListControl/runtime.d.ts +12 -12
- package/dist/types/common/SearchViewControl/designer.d.ts +11 -11
- package/dist/types/common/SearchViewControl/index.d.ts +12 -12
- package/dist/types/common/SearchViewControl/property.d.ts +8 -8
- package/dist/types/common/SearchViewControl/runtime.d.ts +11 -11
- package/dist/types/common/Validator.d.ts +15 -15
- package/dist/types/common/WrapControl/designer.d.ts +11 -11
- package/dist/types/common/WrapControl/index.d.ts +12 -12
- package/dist/types/common/WrapControl/property.d.ts +6 -6
- package/dist/types/common/WrapControl/runtime.d.ts +11 -11
- package/dist/types/common/controlHooksEmitter.d.ts +4 -4
- package/dist/types/common/index.d.ts +12 -12
- package/dist/types/common/initLinkOperationRules.d.ts +6 -6
- package/dist/types/common/initOptionAndDataSourceRules.d.ts +10 -10
- package/dist/types/framework/RegisterControls.d.ts +37 -37
- package/dist/types/framework/index.d.ts +925 -923
- package/dist/types/framework/isDataBind.d.ts +2 -2
- package/dist/types/index.d.ts +4 -4
- package/dist/types/type.d.ts +91 -91
- package/package.json +3 -3
|
@@ -4,10 +4,6 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
-
function _call_super(_this, derived, args) {
|
|
8
|
-
derived = _get_prototype_of(derived);
|
|
9
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
-
}
|
|
11
7
|
function _class_call_check(instance, Constructor) {
|
|
12
8
|
if (!(instance instanceof Constructor)) {
|
|
13
9
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -63,26 +59,47 @@ function _type_of(obj) {
|
|
|
63
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
64
60
|
}
|
|
65
61
|
function _is_native_reflect_construct() {
|
|
62
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
|
+
if (Reflect.construct.sham) return false;
|
|
64
|
+
if (typeof Proxy === "function") return true;
|
|
66
65
|
try {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
return
|
|
71
|
-
}
|
|
66
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
67
|
+
return true;
|
|
68
|
+
} catch (e) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
|
+
return function _createSuperInternal() {
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
76
|
+
if (hasNativeReflectConstruct) {
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
|
+
} else {
|
|
80
|
+
result = Super.apply(this, arguments);
|
|
81
|
+
}
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
83
|
+
};
|
|
72
84
|
}
|
|
73
85
|
import { Property } from '../BaseControl';
|
|
74
86
|
import { defineControlArrayToProperty } from '../ControlArray';
|
|
75
87
|
var ListControlProperty = /*#__PURE__*/ function(Property) {
|
|
76
88
|
"use strict";
|
|
77
89
|
_inherits(ListControlProperty, Property);
|
|
90
|
+
var _super = _create_super(ListControlProperty);
|
|
78
91
|
function ListControlProperty(parent, props, mode) {
|
|
79
92
|
_class_call_check(this, ListControlProperty);
|
|
80
93
|
var _this;
|
|
81
|
-
_this =
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
94
|
+
_this = _super.call(this, props);
|
|
95
|
+
_define_property(_assert_this_initialized(_this), "headers", void 0);
|
|
96
|
+
_define_property(_assert_this_initialized(_this), "footers", void 0);
|
|
97
|
+
_define_property(_assert_this_initialized(_this), "pageIndex", void 0);
|
|
98
|
+
_define_property(_assert_this_initialized(_this), "pageSize", void 0);
|
|
99
|
+
_define_property(_assert_this_initialized(_this), "pageSizeOptions", void 0);
|
|
100
|
+
_define_property(_assert_this_initialized(_this), "totalCount", void 0);
|
|
101
|
+
defineControlArrayToProperty(_assert_this_initialized(_this), 'headers', props === null || props === void 0 ? void 0 : props.headers, parent, mode);
|
|
102
|
+
defineControlArrayToProperty(_assert_this_initialized(_this), 'footers', props === null || props === void 0 ? void 0 : props.footers, parent);
|
|
86
103
|
var _props_pageIndex;
|
|
87
104
|
_this.pageIndex = (_props_pageIndex = props === null || props === void 0 ? void 0 : props.pageIndex) !== null && _props_pageIndex !== void 0 ? _props_pageIndex : 1;
|
|
88
105
|
var _props_pageSize;
|
|
@@ -4,10 +4,6 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
-
function _call_super(_this, derived, args) {
|
|
8
|
-
derived = _get_prototype_of(derived);
|
|
9
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
-
}
|
|
11
7
|
function _class_call_check(instance, Constructor) {
|
|
12
8
|
if (!(instance instanceof Constructor)) {
|
|
13
9
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -77,12 +73,28 @@ function _type_of(obj) {
|
|
|
77
73
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
78
74
|
}
|
|
79
75
|
function _is_native_reflect_construct() {
|
|
76
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
77
|
+
if (Reflect.construct.sham) return false;
|
|
78
|
+
if (typeof Proxy === "function") return true;
|
|
80
79
|
try {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return
|
|
85
|
-
}
|
|
80
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
81
|
+
return true;
|
|
82
|
+
} catch (e) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function _create_super(Derived) {
|
|
87
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
88
|
+
return function _createSuperInternal() {
|
|
89
|
+
var Super = _get_prototype_of(Derived), result;
|
|
90
|
+
if (hasNativeReflectConstruct) {
|
|
91
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
92
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
93
|
+
} else {
|
|
94
|
+
result = Super.apply(this, arguments);
|
|
95
|
+
}
|
|
96
|
+
return _possible_constructor_return(this, result);
|
|
97
|
+
};
|
|
86
98
|
}
|
|
87
99
|
import { RuntimeControl } from '../BaseControl';
|
|
88
100
|
import ListControlProperty from './property';
|
|
@@ -90,14 +102,16 @@ import { defineControlArrayToProperty } from '../ControlArray';
|
|
|
90
102
|
var ListControl = /*#__PURE__*/ function(RuntimeControl) {
|
|
91
103
|
"use strict";
|
|
92
104
|
_inherits(ListControl, RuntimeControl);
|
|
105
|
+
var _super = _create_super(ListControl);
|
|
93
106
|
function ListControl(props) {
|
|
94
107
|
_class_call_check(this, ListControl);
|
|
95
108
|
var _this;
|
|
96
|
-
_this =
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
109
|
+
_this = _super.call(this, props);
|
|
110
|
+
_define_property(_assert_this_initialized(_this), "controlType", 'list');
|
|
111
|
+
_define_property(_assert_this_initialized(_this), "children", void 0);
|
|
112
|
+
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
113
|
+
_this.props = new ListControlProperty(_assert_this_initialized(_this), props === null || props === void 0 ? void 0 : props.props, 'Runtime');
|
|
114
|
+
defineControlArrayToProperty(_assert_this_initialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children, undefined, 'Runtime');
|
|
101
115
|
return _this;
|
|
102
116
|
}
|
|
103
117
|
_create_class(ListControl, [
|
|
@@ -4,10 +4,6 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
-
function _call_super(_this, derived, args) {
|
|
8
|
-
derived = _get_prototype_of(derived);
|
|
9
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
-
}
|
|
11
7
|
function _class_call_check(instance, Constructor) {
|
|
12
8
|
if (!(instance instanceof Constructor)) {
|
|
13
9
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -63,24 +59,41 @@ function _type_of(obj) {
|
|
|
63
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
64
60
|
}
|
|
65
61
|
function _is_native_reflect_construct() {
|
|
62
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
|
+
if (Reflect.construct.sham) return false;
|
|
64
|
+
if (typeof Proxy === "function") return true;
|
|
66
65
|
try {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
return
|
|
71
|
-
}
|
|
66
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
67
|
+
return true;
|
|
68
|
+
} catch (e) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
|
+
return function _createSuperInternal() {
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
76
|
+
if (hasNativeReflectConstruct) {
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
|
+
} else {
|
|
80
|
+
result = Super.apply(this, arguments);
|
|
81
|
+
}
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
83
|
+
};
|
|
72
84
|
}
|
|
73
85
|
import SearchControlProperty from './property';
|
|
74
86
|
import { DesignerLayoutControl } from '../LayoutControl';
|
|
75
87
|
var SearchControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
76
88
|
"use strict";
|
|
77
89
|
_inherits(SearchControl, DesignerLayoutControl);
|
|
90
|
+
var _super = _create_super(SearchControl);
|
|
78
91
|
function SearchControl(props) {
|
|
79
92
|
_class_call_check(this, SearchControl);
|
|
80
93
|
var _this;
|
|
81
|
-
_this =
|
|
82
|
-
|
|
83
|
-
|
|
94
|
+
_this = _super.call(this, props);
|
|
95
|
+
_define_property(_assert_this_initialized(_this), "controlType", 'search');
|
|
96
|
+
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
84
97
|
_this.props = new SearchControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
85
98
|
return _this;
|
|
86
99
|
}
|
|
@@ -4,10 +4,6 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
-
function _call_super(_this, derived, args) {
|
|
8
|
-
derived = _get_prototype_of(derived);
|
|
9
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
-
}
|
|
11
7
|
function _class_call_check(instance, Constructor) {
|
|
12
8
|
if (!(instance instanceof Constructor)) {
|
|
13
9
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -63,24 +59,40 @@ function _type_of(obj) {
|
|
|
63
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
64
60
|
}
|
|
65
61
|
function _is_native_reflect_construct() {
|
|
62
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
|
+
if (Reflect.construct.sham) return false;
|
|
64
|
+
if (typeof Proxy === "function") return true;
|
|
66
65
|
try {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
return
|
|
71
|
-
}
|
|
66
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
67
|
+
return true;
|
|
68
|
+
} catch (e) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
|
+
return function _createSuperInternal() {
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
76
|
+
if (hasNativeReflectConstruct) {
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
|
+
} else {
|
|
80
|
+
result = Super.apply(this, arguments);
|
|
81
|
+
}
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
83
|
+
};
|
|
72
84
|
}
|
|
73
85
|
import { LayoutControlProperty } from '../LayoutControl';
|
|
74
86
|
import { DataBind } from '../../framework';
|
|
75
87
|
var SearchControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
76
88
|
"use strict";
|
|
77
89
|
_inherits(SearchControlProperty, LayoutControlProperty);
|
|
90
|
+
var _super = _create_super(SearchControlProperty);
|
|
78
91
|
function SearchControlProperty(props) {
|
|
79
92
|
_class_call_check(this, SearchControlProperty);
|
|
80
93
|
var _this;
|
|
81
|
-
_this =
|
|
82
|
-
|
|
83
|
-
]), _define_property(_this, "dataBind", void 0);
|
|
94
|
+
_this = _super.call(this, props);
|
|
95
|
+
_define_property(_assert_this_initialized(_this), "dataBind", void 0);
|
|
84
96
|
_this.dataBind = new DataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
85
97
|
return _this;
|
|
86
98
|
}
|
|
@@ -4,10 +4,6 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
-
function _call_super(_this, derived, args) {
|
|
8
|
-
derived = _get_prototype_of(derived);
|
|
9
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
-
}
|
|
11
7
|
function _class_call_check(instance, Constructor) {
|
|
12
8
|
if (!(instance instanceof Constructor)) {
|
|
13
9
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -63,24 +59,41 @@ function _type_of(obj) {
|
|
|
63
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
64
60
|
}
|
|
65
61
|
function _is_native_reflect_construct() {
|
|
62
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
|
+
if (Reflect.construct.sham) return false;
|
|
64
|
+
if (typeof Proxy === "function") return true;
|
|
66
65
|
try {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
return
|
|
71
|
-
}
|
|
66
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
67
|
+
return true;
|
|
68
|
+
} catch (e) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
|
+
return function _createSuperInternal() {
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
76
|
+
if (hasNativeReflectConstruct) {
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
|
+
} else {
|
|
80
|
+
result = Super.apply(this, arguments);
|
|
81
|
+
}
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
83
|
+
};
|
|
72
84
|
}
|
|
73
85
|
import SearchControlProperty from './property';
|
|
74
86
|
import { RuntimeLayoutControl } from '../LayoutControl';
|
|
75
87
|
var SearchControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
|
|
76
88
|
"use strict";
|
|
77
89
|
_inherits(SearchControl, RuntimeLayoutControl);
|
|
90
|
+
var _super = _create_super(SearchControl);
|
|
78
91
|
function SearchControl(props) {
|
|
79
92
|
_class_call_check(this, SearchControl);
|
|
80
93
|
var _this;
|
|
81
|
-
_this =
|
|
82
|
-
|
|
83
|
-
|
|
94
|
+
_this = _super.call(this, props);
|
|
95
|
+
_define_property(_assert_this_initialized(_this), "controlType", 'search');
|
|
96
|
+
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
84
97
|
_this.props = new SearchControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
85
98
|
return _this;
|
|
86
99
|
}
|
|
@@ -4,10 +4,6 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
-
function _call_super(_this, derived, args) {
|
|
8
|
-
derived = _get_prototype_of(derived);
|
|
9
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
-
}
|
|
11
7
|
function _class_call_check(instance, Constructor) {
|
|
12
8
|
if (!(instance instanceof Constructor)) {
|
|
13
9
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -63,24 +59,41 @@ function _type_of(obj) {
|
|
|
63
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
64
60
|
}
|
|
65
61
|
function _is_native_reflect_construct() {
|
|
62
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
|
+
if (Reflect.construct.sham) return false;
|
|
64
|
+
if (typeof Proxy === "function") return true;
|
|
66
65
|
try {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
return
|
|
71
|
-
}
|
|
66
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
67
|
+
return true;
|
|
68
|
+
} catch (e) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
|
+
return function _createSuperInternal() {
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
76
|
+
if (hasNativeReflectConstruct) {
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
|
+
} else {
|
|
80
|
+
result = Super.apply(this, arguments);
|
|
81
|
+
}
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
83
|
+
};
|
|
72
84
|
}
|
|
73
85
|
import WrapControlProperty from './property';
|
|
74
86
|
import { DesignerLayoutControl } from '../LayoutControl';
|
|
75
87
|
var WrapControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
76
88
|
"use strict";
|
|
77
89
|
_inherits(WrapControl, DesignerLayoutControl);
|
|
90
|
+
var _super = _create_super(WrapControl);
|
|
78
91
|
function WrapControl(props) {
|
|
79
92
|
_class_call_check(this, WrapControl);
|
|
80
93
|
var _this;
|
|
81
|
-
_this =
|
|
82
|
-
|
|
83
|
-
|
|
94
|
+
_this = _super.call(this, props);
|
|
95
|
+
_define_property(_assert_this_initialized(_this), "controlType", 'wrap');
|
|
96
|
+
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
84
97
|
_this.props = new WrapControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
85
98
|
return _this;
|
|
86
99
|
}
|
|
@@ -4,10 +4,6 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
-
function _call_super(_this, derived, args) {
|
|
8
|
-
derived = _get_prototype_of(derived);
|
|
9
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
-
}
|
|
11
7
|
function _class_call_check(instance, Constructor) {
|
|
12
8
|
if (!(instance instanceof Constructor)) {
|
|
13
9
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -50,22 +46,37 @@ function _type_of(obj) {
|
|
|
50
46
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
51
47
|
}
|
|
52
48
|
function _is_native_reflect_construct() {
|
|
49
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
50
|
+
if (Reflect.construct.sham) return false;
|
|
51
|
+
if (typeof Proxy === "function") return true;
|
|
53
52
|
try {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
return
|
|
58
|
-
}
|
|
53
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
54
|
+
return true;
|
|
55
|
+
} catch (e) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function _create_super(Derived) {
|
|
60
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
61
|
+
return function _createSuperInternal() {
|
|
62
|
+
var Super = _get_prototype_of(Derived), result;
|
|
63
|
+
if (hasNativeReflectConstruct) {
|
|
64
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
65
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
66
|
+
} else {
|
|
67
|
+
result = Super.apply(this, arguments);
|
|
68
|
+
}
|
|
69
|
+
return _possible_constructor_return(this, result);
|
|
70
|
+
};
|
|
59
71
|
}
|
|
60
72
|
import { LayoutControlProperty } from '../LayoutControl';
|
|
61
73
|
var WrapControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
62
74
|
"use strict";
|
|
63
75
|
_inherits(WrapControlProperty, LayoutControlProperty);
|
|
76
|
+
var _super = _create_super(WrapControlProperty);
|
|
64
77
|
function WrapControlProperty(props) {
|
|
65
78
|
_class_call_check(this, WrapControlProperty);
|
|
66
|
-
return
|
|
67
|
-
props
|
|
68
|
-
]);
|
|
79
|
+
return _super.call(this, props);
|
|
69
80
|
}
|
|
70
81
|
return WrapControlProperty;
|
|
71
82
|
}(LayoutControlProperty);
|
|
@@ -4,10 +4,6 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
-
function _call_super(_this, derived, args) {
|
|
8
|
-
derived = _get_prototype_of(derived);
|
|
9
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
-
}
|
|
11
7
|
function _class_call_check(instance, Constructor) {
|
|
12
8
|
if (!(instance instanceof Constructor)) {
|
|
13
9
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -63,24 +59,41 @@ function _type_of(obj) {
|
|
|
63
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
64
60
|
}
|
|
65
61
|
function _is_native_reflect_construct() {
|
|
62
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
|
+
if (Reflect.construct.sham) return false;
|
|
64
|
+
if (typeof Proxy === "function") return true;
|
|
66
65
|
try {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
return
|
|
71
|
-
}
|
|
66
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
67
|
+
return true;
|
|
68
|
+
} catch (e) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
|
+
return function _createSuperInternal() {
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
76
|
+
if (hasNativeReflectConstruct) {
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
|
+
} else {
|
|
80
|
+
result = Super.apply(this, arguments);
|
|
81
|
+
}
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
83
|
+
};
|
|
72
84
|
}
|
|
73
85
|
import WrapControlProperty from './property';
|
|
74
86
|
import { RuntimeLayoutControl } from '../LayoutControl';
|
|
75
87
|
var WrapControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
|
|
76
88
|
"use strict";
|
|
77
89
|
_inherits(WrapControl, RuntimeLayoutControl);
|
|
90
|
+
var _super = _create_super(WrapControl);
|
|
78
91
|
function WrapControl(props) {
|
|
79
92
|
_class_call_check(this, WrapControl);
|
|
80
93
|
var _this;
|
|
81
|
-
_this =
|
|
82
|
-
|
|
83
|
-
|
|
94
|
+
_this = _super.call(this, props);
|
|
95
|
+
_define_property(_assert_this_initialized(_this), "controlType", 'wrap');
|
|
96
|
+
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
84
97
|
_this.props = new WrapControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
85
98
|
return _this;
|
|
86
99
|
}
|
|
@@ -261,7 +261,6 @@ export var RegisterControls = /*#__PURE__*/ function() {
|
|
|
261
261
|
value: // 初始化_controls,得到所有可用控件类组成的扁平数组
|
|
262
262
|
function _initControls(type) {
|
|
263
263
|
var _this = this;
|
|
264
|
-
;
|
|
265
264
|
this.constructor.staticControls.forEach(function(item) {
|
|
266
265
|
_this.register(item[type]);
|
|
267
266
|
RegisterControls.staticControlsRuntimeRules.set(item.Runtime.controlType, item.Property.RuntimeRules);
|