@byteluck-fe/model-driven-core 2.3.12 → 2.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/api-doc-index.js +4 -4
- package/dist/esm/common/BaseControl/designer.js +121 -240
- package/dist/esm/common/BaseControl/index.js +7 -7
- package/dist/esm/common/BaseControl/property.js +60 -77
- package/dist/esm/common/BaseControl/runtime.js +24 -45
- package/dist/esm/common/ColumnControl/designer.js +27 -41
- package/dist/esm/common/ColumnControl/index.js +6 -6
- package/dist/esm/common/ColumnControl/property.js +74 -122
- package/dist/esm/common/ColumnControl/runtime.js +27 -41
- package/dist/esm/common/ControlArray.js +20 -20
- package/dist/esm/common/FormControl/designer.js +32 -47
- package/dist/esm/common/FormControl/index.js +6 -6
- package/dist/esm/common/FormControl/property.js +116 -181
- package/dist/esm/common/FormControl/runtime.js +27 -42
- package/dist/esm/common/LayoutControl/designer.js +77 -205
- package/dist/esm/common/LayoutControl/index.js +6 -6
- package/dist/esm/common/LayoutControl/property.js +25 -25
- package/dist/esm/common/LayoutControl/runtime.js +29 -44
- package/dist/esm/common/ListControl/designer.js +74 -199
- package/dist/esm/common/ListControl/index.js +6 -6
- package/dist/esm/common/ListControl/property.js +27 -41
- package/dist/esm/common/ListControl/runtime.js +32 -47
- package/dist/esm/common/SearchViewControl/designer.js +27 -41
- package/dist/esm/common/SearchViewControl/index.js +6 -6
- package/dist/esm/common/SearchViewControl/property.js +26 -40
- package/dist/esm/common/SearchViewControl/runtime.js +27 -41
- package/dist/esm/common/Validator.js +5 -5
- package/dist/esm/common/WrapControl/designer.js +27 -41
- package/dist/esm/common/WrapControl/index.js +6 -6
- package/dist/esm/common/WrapControl/property.js +25 -25
- package/dist/esm/common/WrapControl/runtime.js +27 -41
- package/dist/esm/common/controlHooksEmitter.js +1 -1
- package/dist/esm/common/index.js +11 -11
- package/dist/esm/common/initOptionAndDataSourceRules.js +82 -82
- package/dist/esm/framework/RegisterControls.js +19 -31
- package/dist/esm/framework/index.js +360 -735
- package/dist/esm/index.js +3 -3
- package/dist/index.umd.js +1 -1
- package/dist/types/common/Validator.d.ts +1 -1
- package/dist/types/common/controlHooksEmitter.d.ts +1 -1
- package/dist/types/type.d.ts +23 -23
- package/package.json +3 -3
|
@@ -1,49 +1,47 @@
|
|
|
1
|
-
function
|
|
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
|
|
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 isNativeReflectConstruct() {
|
|
13
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
14
|
+
if (Reflect.construct.sham) return false;
|
|
15
|
+
if (typeof Proxy === "function") return true;
|
|
16
|
+
try {
|
|
17
|
+
Date.prototype.toString.call(Reflect.construct(Date, [], function() {}));
|
|
18
|
+
return true;
|
|
19
|
+
} catch (e) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
12
23
|
function _construct(Parent, args, Class) {
|
|
13
|
-
if (
|
|
24
|
+
if (isNativeReflectConstruct()) {
|
|
14
25
|
_construct = Reflect.construct;
|
|
15
26
|
} else {
|
|
16
|
-
_construct = function
|
|
27
|
+
_construct = function _construct(Parent, args, Class) {
|
|
17
28
|
var a = [
|
|
18
29
|
null
|
|
19
30
|
];
|
|
20
31
|
a.push.apply(a, args);
|
|
21
32
|
var Constructor = Function.bind.apply(Parent, a);
|
|
22
33
|
var instance = new Constructor();
|
|
23
|
-
if (Class)
|
|
34
|
+
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
24
35
|
return instance;
|
|
25
36
|
};
|
|
26
37
|
}
|
|
27
38
|
return _construct.apply(null, arguments);
|
|
28
39
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
31
|
-
Object.defineProperty(obj, key, {
|
|
32
|
-
value: value,
|
|
33
|
-
enumerable: true,
|
|
34
|
-
configurable: true,
|
|
35
|
-
writable: true
|
|
36
|
-
});
|
|
37
|
-
} else {
|
|
38
|
-
obj[key] = value;
|
|
39
|
-
}
|
|
40
|
-
return obj;
|
|
41
|
-
}
|
|
42
|
-
function _get_prototype_of(o) {
|
|
43
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
40
|
+
function _getPrototypeOf(o) {
|
|
41
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
44
42
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
45
43
|
};
|
|
46
|
-
return
|
|
44
|
+
return _getPrototypeOf(o);
|
|
47
45
|
}
|
|
48
46
|
function _inherits(subClass, superClass) {
|
|
49
47
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -56,32 +54,32 @@ function _inherits(subClass, superClass) {
|
|
|
56
54
|
configurable: true
|
|
57
55
|
}
|
|
58
56
|
});
|
|
59
|
-
if (superClass)
|
|
57
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
60
58
|
}
|
|
61
|
-
function
|
|
59
|
+
function _isNativeFunction(fn) {
|
|
62
60
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
63
61
|
}
|
|
64
|
-
function
|
|
65
|
-
if (call && (
|
|
62
|
+
function _possibleConstructorReturn(self, call) {
|
|
63
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
66
64
|
return call;
|
|
67
65
|
}
|
|
68
|
-
return
|
|
66
|
+
return _assertThisInitialized(self);
|
|
69
67
|
}
|
|
70
|
-
function
|
|
71
|
-
|
|
68
|
+
function _setPrototypeOf(o, p) {
|
|
69
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
72
70
|
o.__proto__ = p;
|
|
73
71
|
return o;
|
|
74
72
|
};
|
|
75
|
-
return
|
|
73
|
+
return _setPrototypeOf(o, p);
|
|
76
74
|
}
|
|
77
|
-
function
|
|
75
|
+
var _typeof = function(obj) {
|
|
78
76
|
"@swc/helpers - typeof";
|
|
79
77
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
80
|
-
}
|
|
81
|
-
function
|
|
78
|
+
};
|
|
79
|
+
function _wrapNativeSuper(Class) {
|
|
82
80
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
83
|
-
|
|
84
|
-
if (Class === null || !
|
|
81
|
+
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
82
|
+
if (Class === null || !_isNativeFunction(Class)) return Class;
|
|
85
83
|
if (typeof Class !== "function") {
|
|
86
84
|
throw new TypeError("Super expression must either be null or a function");
|
|
87
85
|
}
|
|
@@ -90,7 +88,7 @@ function _wrap_native_super(Class) {
|
|
|
90
88
|
_cache.set(Class, Wrapper);
|
|
91
89
|
}
|
|
92
90
|
function Wrapper() {
|
|
93
|
-
return _construct(Class, arguments,
|
|
91
|
+
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
|
94
92
|
}
|
|
95
93
|
Wrapper.prototype = Object.create(Class.prototype, {
|
|
96
94
|
constructor: {
|
|
@@ -100,11 +98,11 @@ function _wrap_native_super(Class) {
|
|
|
100
98
|
configurable: true
|
|
101
99
|
}
|
|
102
100
|
});
|
|
103
|
-
return
|
|
101
|
+
return _setPrototypeOf(Wrapper, Class);
|
|
104
102
|
};
|
|
105
|
-
return
|
|
103
|
+
return _wrapNativeSuper(Class);
|
|
106
104
|
}
|
|
107
|
-
function
|
|
105
|
+
function _isNativeReflectConstruct() {
|
|
108
106
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
109
107
|
if (Reflect.construct.sham) return false;
|
|
110
108
|
if (typeof Proxy === "function") return true;
|
|
@@ -115,63 +113,48 @@ function _is_native_reflect_construct() {
|
|
|
115
113
|
return false;
|
|
116
114
|
}
|
|
117
115
|
}
|
|
118
|
-
function
|
|
119
|
-
var hasNativeReflectConstruct =
|
|
116
|
+
function _createSuper(Derived) {
|
|
117
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
120
118
|
return function _createSuperInternal() {
|
|
121
|
-
var Super =
|
|
119
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
122
120
|
if (hasNativeReflectConstruct) {
|
|
123
|
-
var NewTarget =
|
|
121
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
124
122
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
125
123
|
} else {
|
|
126
124
|
result = Super.apply(this, arguments);
|
|
127
125
|
}
|
|
128
|
-
return
|
|
126
|
+
return _possibleConstructorReturn(this, result);
|
|
129
127
|
};
|
|
130
128
|
}
|
|
131
|
-
import { BaseStyle } from
|
|
129
|
+
import { BaseStyle } from '../../framework';
|
|
132
130
|
var PropertyRules = function PropertyRules(props) {
|
|
133
131
|
"use strict";
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
type:
|
|
137
|
-
}
|
|
132
|
+
_classCallCheck(this, PropertyRules);
|
|
133
|
+
this.isHide = {
|
|
134
|
+
type: 'boolean'
|
|
135
|
+
};
|
|
138
136
|
};
|
|
139
|
-
var PropertyRuntimeRules = /*#__PURE__*/ function(
|
|
137
|
+
var PropertyRuntimeRules = /*#__PURE__*/ function(Array) {
|
|
140
138
|
"use strict";
|
|
141
|
-
_inherits(PropertyRuntimeRules,
|
|
142
|
-
var _super =
|
|
139
|
+
_inherits(PropertyRuntimeRules, Array);
|
|
140
|
+
var _super = _createSuper(PropertyRuntimeRules);
|
|
143
141
|
function PropertyRuntimeRules(props) {
|
|
144
|
-
|
|
142
|
+
_classCallCheck(this, PropertyRuntimeRules);
|
|
145
143
|
return _super.call(this);
|
|
146
144
|
}
|
|
147
145
|
return PropertyRuntimeRules;
|
|
148
|
-
}(
|
|
149
|
-
|
|
150
|
-
* 全局属性
|
|
151
|
-
* @public
|
|
152
|
-
*/ var Property = function Property(props) {
|
|
146
|
+
}(_wrapNativeSuper(Array));
|
|
147
|
+
var Property = function Property(props) {
|
|
153
148
|
"use strict";
|
|
154
|
-
var caption = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
* @public
|
|
159
|
-
* @defaultValue false
|
|
160
|
-
*/ _define_property(this, "isHide", void 0);
|
|
161
|
-
_define_property(this, "className", void 0);
|
|
162
|
-
_define_property(this, "style", void 0);
|
|
163
|
-
/**
|
|
164
|
-
* 标题
|
|
165
|
-
* @public
|
|
166
|
-
* @defaultValue ''
|
|
167
|
-
*/ _define_property(this, "caption", void 0);
|
|
168
|
-
var _props_isHide;
|
|
169
|
-
this.isHide = (_props_isHide = props === null || props === void 0 ? void 0 : props.isHide) !== null && _props_isHide !== void 0 ? _props_isHide : false;
|
|
149
|
+
var caption = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : '';
|
|
150
|
+
_classCallCheck(this, Property);
|
|
151
|
+
var ref;
|
|
152
|
+
this.isHide = (ref = props === null || props === void 0 ? void 0 : props.isHide) !== null && ref !== void 0 ? ref : false;
|
|
170
153
|
this.style = new BaseStyle(props === null || props === void 0 ? void 0 : props.style);
|
|
171
|
-
var
|
|
172
|
-
this.caption = (
|
|
154
|
+
var ref1;
|
|
155
|
+
this.caption = (ref1 = props === null || props === void 0 ? void 0 : props.caption) !== null && ref1 !== void 0 ? ref1 : caption;
|
|
173
156
|
};
|
|
174
|
-
|
|
175
|
-
|
|
157
|
+
Property.Rules = PropertyRules;
|
|
158
|
+
Property.RuntimeRules = PropertyRuntimeRules;
|
|
176
159
|
export default Property;
|
|
177
160
|
export { Property, PropertyRules, PropertyRuntimeRules };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _classCallCheck(instance, Constructor) {
|
|
2
2
|
if (!(instance instanceof Constructor)) {
|
|
3
3
|
throw new TypeError("Cannot call a class as a function");
|
|
4
4
|
}
|
|
@@ -12,65 +12,45 @@ function _defineProperties(target, props) {
|
|
|
12
12
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
16
16
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
17
17
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
18
18
|
return Constructor;
|
|
19
19
|
}
|
|
20
|
-
function _define_property(obj, key, value) {
|
|
21
|
-
if (key in obj) {
|
|
22
|
-
Object.defineProperty(obj, key, {
|
|
23
|
-
value: value,
|
|
24
|
-
enumerable: true,
|
|
25
|
-
configurable: true,
|
|
26
|
-
writable: true
|
|
27
|
-
});
|
|
28
|
-
} else {
|
|
29
|
-
obj[key] = value;
|
|
30
|
-
}
|
|
31
|
-
return obj;
|
|
32
|
-
}
|
|
33
20
|
function _instanceof(left, right) {
|
|
34
21
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
35
|
-
return
|
|
22
|
+
return right[Symbol.hasInstance](left);
|
|
36
23
|
} else {
|
|
37
24
|
return left instanceof right;
|
|
38
25
|
}
|
|
39
26
|
}
|
|
40
|
-
import Property from
|
|
41
|
-
import { genNonDuplicateId, referenceError } from
|
|
42
|
-
import { PAGE_STATUS } from
|
|
27
|
+
import Property from './property';
|
|
28
|
+
import { genNonDuplicateId, referenceError } from '@byteluck-fe/model-driven-shared';
|
|
29
|
+
import { PAGE_STATUS } from '../../framework';
|
|
43
30
|
var Control = /*#__PURE__*/ function _target() {
|
|
44
31
|
"use strict";
|
|
45
32
|
function Control(props) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
_define_property(this, "controlType", void 0);
|
|
51
|
-
_define_property(this, "props", void 0);
|
|
52
|
-
_define_property(this, "fieldType", void 0);
|
|
53
|
-
_define_property(this, "customEvents", []);
|
|
54
|
-
_define_property(this, "pageStatus", void 0);
|
|
55
|
-
_define_property(this, "parent", null);
|
|
56
|
-
var _ref = _instanceof(this, Control) ? this.constructor : void 0, controlType = _ref.controlType, controlFieldType = _ref.controlFieldType, name = _ref.name, controlCustomEvents = _ref.controlCustomEvents;
|
|
33
|
+
_classCallCheck(this, Control);
|
|
34
|
+
this.customEvents = [];
|
|
35
|
+
this.parent = null;
|
|
36
|
+
var ref = _instanceof(this, Control) ? this.constructor : void 0, controlType = ref.controlType, controlFieldType = ref.controlFieldType, name = ref.name, controlCustomEvents = ref.controlCustomEvents;
|
|
57
37
|
if (!controlType) {
|
|
58
38
|
referenceError("The ".concat(name, " controlType is not define"));
|
|
59
39
|
}
|
|
60
|
-
var
|
|
61
|
-
this.id = (
|
|
62
|
-
var
|
|
63
|
-
this.type = (
|
|
40
|
+
var ref1;
|
|
41
|
+
this.id = (ref1 = props === null || props === void 0 ? void 0 : props.id) !== null && ref1 !== void 0 ? ref1 : genNonDuplicateId(10);
|
|
42
|
+
var ref2;
|
|
43
|
+
this.type = (ref2 = props === null || props === void 0 ? void 0 : props.type) !== null && ref2 !== void 0 ? ref2 : controlType;
|
|
64
44
|
this.props = new Property(props === null || props === void 0 ? void 0 : props.props);
|
|
65
45
|
this.customEvents = controlCustomEvents;
|
|
66
|
-
var
|
|
67
|
-
this.controlType = (
|
|
68
|
-
var
|
|
69
|
-
this.fieldType = (
|
|
70
|
-
var
|
|
71
|
-
this.pageStatus = (
|
|
46
|
+
var ref3;
|
|
47
|
+
this.controlType = (ref3 = props === null || props === void 0 ? void 0 : props.controlType) !== null && ref3 !== void 0 ? ref3 : 'base';
|
|
48
|
+
var ref4;
|
|
49
|
+
this.fieldType = (ref4 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && ref4 !== void 0 ? ref4 : controlFieldType;
|
|
50
|
+
var ref5;
|
|
51
|
+
this.pageStatus = (ref5 = props === null || props === void 0 ? void 0 : props.pageStatus) !== null && ref5 !== void 0 ? ref5 : PAGE_STATUS.UNKNOWN;
|
|
72
52
|
}
|
|
73
|
-
|
|
53
|
+
_createClass(Control, [
|
|
74
54
|
{
|
|
75
55
|
key: "rules",
|
|
76
56
|
get: function get() {
|
|
@@ -85,9 +65,8 @@ var Control = /*#__PURE__*/ function _target() {
|
|
|
85
65
|
]);
|
|
86
66
|
return Control;
|
|
87
67
|
}();
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
_define_property(Control, "controlCustomEvents", []);
|
|
68
|
+
Control.controlType = 'control';
|
|
69
|
+
Control.__is_control__ = true;
|
|
70
|
+
Control.controlCustomEvents = [];
|
|
92
71
|
export default Control;
|
|
93
72
|
export { Control as RuntimeControl };
|
|
@@ -1,32 +1,19 @@
|
|
|
1
|
-
function
|
|
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
|
|
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
|
|
13
|
-
|
|
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
|
|
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)
|
|
29
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
43
30
|
}
|
|
44
|
-
function
|
|
45
|
-
if (call && (
|
|
31
|
+
function _possibleConstructorReturn(self, call) {
|
|
32
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
46
33
|
return call;
|
|
47
34
|
}
|
|
48
|
-
return
|
|
35
|
+
return _assertThisInitialized(self);
|
|
49
36
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
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
|
|
42
|
+
return _setPrototypeOf(o, p);
|
|
56
43
|
}
|
|
57
|
-
function
|
|
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
|
|
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
|
|
73
|
-
var hasNativeReflectConstruct =
|
|
59
|
+
function _createSuper(Derived) {
|
|
60
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
74
61
|
return function _createSuperInternal() {
|
|
75
|
-
var Super =
|
|
62
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
76
63
|
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget =
|
|
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
|
|
69
|
+
return _possibleConstructorReturn(this, result);
|
|
83
70
|
};
|
|
84
71
|
}
|
|
85
|
-
import { DesignerControl } from
|
|
86
|
-
import ColumnControlProperty from
|
|
87
|
-
var ColumnControl = /*#__PURE__*/ function(
|
|
72
|
+
import { DesignerControl } from '../BaseControl';
|
|
73
|
+
import ColumnControlProperty from './property';
|
|
74
|
+
var ColumnControl = /*#__PURE__*/ function(DesignerControl1) {
|
|
88
75
|
"use strict";
|
|
89
|
-
_inherits(ColumnControl,
|
|
90
|
-
var _super =
|
|
76
|
+
_inherits(ColumnControl, DesignerControl1);
|
|
77
|
+
var _super = _createSuper(ColumnControl);
|
|
91
78
|
function ColumnControl(props) {
|
|
92
|
-
|
|
79
|
+
_classCallCheck(this, ColumnControl);
|
|
93
80
|
var _this;
|
|
94
81
|
_this = _super.call(this, props);
|
|
95
|
-
|
|
96
|
-
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
82
|
+
_this.controlType = 'column';
|
|
97
83
|
_this.props = new ColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
98
84
|
return _this;
|
|
99
85
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import Designer from
|
|
2
|
-
import Runtime from
|
|
3
|
-
import Property from
|
|
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
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
9
|
+
export * from './designer';
|
|
10
|
+
export * from './runtime';
|
|
11
|
+
export * from './property';
|