@byteluck-fe/model-driven-core 2.7.0-alpha.3 → 2.7.0-beta
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/common/BaseControl/designer.js +65 -64
- package/dist/esm/common/BaseControl/property.js +47 -57
- package/dist/esm/common/BaseControl/runtime.js +24 -23
- package/dist/esm/common/ColumnControl/designer.js +27 -26
- package/dist/esm/common/ColumnControl/property.js +55 -54
- package/dist/esm/common/ColumnControl/runtime.js +27 -26
- package/dist/esm/common/ControlArray.js +12 -12
- package/dist/esm/common/FormControl/designer.js +29 -28
- package/dist/esm/common/FormControl/property.js +65 -64
- package/dist/esm/common/FormControl/runtime.js +28 -27
- package/dist/esm/common/LayoutControl/designer.js +63 -62
- package/dist/esm/common/LayoutControl/property.js +22 -22
- package/dist/esm/common/LayoutControl/runtime.js +29 -28
- package/dist/esm/common/ListControl/designer.js +59 -58
- package/dist/esm/common/ListControl/property.js +26 -25
- package/dist/esm/common/ListControl/runtime.js +31 -30
- package/dist/esm/common/SearchViewControl/designer.js +27 -26
- package/dist/esm/common/SearchViewControl/property.js +26 -25
- package/dist/esm/common/SearchViewControl/runtime.js +27 -26
- package/dist/esm/common/WrapControl/designer.js +27 -26
- package/dist/esm/common/WrapControl/property.js +22 -22
- package/dist/esm/common/WrapControl/runtime.js +27 -26
- package/dist/esm/framework/RegisterControls.js +12 -12
- package/dist/esm/framework/index.js +418 -414
- package/dist/index.umd.js +1 -1
- package/dist/types/framework/index.d.ts +3 -31
- package/dist/types/type.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _array_like_to_array(arr, len) {
|
|
2
2
|
if (len == null || len > arr.length) len = arr.length;
|
|
3
3
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4
4
|
return arr2;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
7
|
-
if (Array.isArray(arr)) return
|
|
6
|
+
function _array_without_holes(arr) {
|
|
7
|
+
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function _assert_this_initialized(self) {
|
|
10
10
|
if (self === void 0) {
|
|
11
11
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
12
12
|
}
|
|
@@ -26,7 +26,7 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
26
26
|
Promise.resolve(value).then(_next, _throw);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function _async_to_generator(fn) {
|
|
30
30
|
return function() {
|
|
31
31
|
var self = this, args = arguments;
|
|
32
32
|
return new Promise(function(resolve, reject) {
|
|
@@ -41,7 +41,7 @@ function _asyncToGenerator(fn) {
|
|
|
41
41
|
});
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function _class_call_check(instance, Constructor) {
|
|
45
45
|
if (!(instance instanceof Constructor)) {
|
|
46
46
|
throw new TypeError("Cannot call a class as a function");
|
|
47
47
|
}
|
|
@@ -55,12 +55,12 @@ function _defineProperties(target, props) {
|
|
|
55
55
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
59
59
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
60
60
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
61
61
|
return Constructor;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function _define_property(obj, key, value) {
|
|
64
64
|
if (key in obj) {
|
|
65
65
|
Object.defineProperty(obj, key, {
|
|
66
66
|
value: value,
|
|
@@ -77,23 +77,23 @@ function _get(target, property, receiver) {
|
|
|
77
77
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
78
78
|
_get = Reflect.get;
|
|
79
79
|
} else {
|
|
80
|
-
_get = function
|
|
81
|
-
var base =
|
|
80
|
+
_get = function get(target, property, receiver) {
|
|
81
|
+
var base = _super_prop_base(target, property);
|
|
82
82
|
if (!base) return;
|
|
83
83
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
84
84
|
if (desc.get) {
|
|
85
|
-
return desc.get.call(receiver);
|
|
85
|
+
return desc.get.call(receiver || target);
|
|
86
86
|
}
|
|
87
87
|
return desc.value;
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
return _get(target, property, receiver || target);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
|
|
92
|
+
function _get_prototype_of(o) {
|
|
93
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
94
94
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
95
95
|
};
|
|
96
|
-
return
|
|
96
|
+
return _get_prototype_of(o);
|
|
97
97
|
}
|
|
98
98
|
function _inherits(subClass, superClass) {
|
|
99
99
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -106,7 +106,7 @@ function _inherits(subClass, superClass) {
|
|
|
106
106
|
configurable: true
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
|
-
if (superClass)
|
|
109
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
110
110
|
}
|
|
111
111
|
function _instanceof(left, right) {
|
|
112
112
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
@@ -115,13 +115,13 @@ function _instanceof(left, right) {
|
|
|
115
115
|
return left instanceof right;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function _iterable_to_array(iter) {
|
|
119
119
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function _non_iterable_spread() {
|
|
122
122
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function _object_spread(target) {
|
|
125
125
|
for(var i = 1; i < arguments.length; i++){
|
|
126
126
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
127
127
|
var ownKeys = Object.keys(source);
|
|
@@ -131,7 +131,7 @@ function _objectSpread(target) {
|
|
|
131
131
|
}));
|
|
132
132
|
}
|
|
133
133
|
ownKeys.forEach(function(key) {
|
|
134
|
-
|
|
134
|
+
_define_property(target, key, source[key]);
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
return target;
|
|
@@ -149,7 +149,7 @@ function ownKeys(object, enumerableOnly) {
|
|
|
149
149
|
}
|
|
150
150
|
return keys;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function _object_spread_props(target, source) {
|
|
153
153
|
source = source != null ? source : {};
|
|
154
154
|
if (Object.getOwnPropertyDescriptors) {
|
|
155
155
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
@@ -160,42 +160,42 @@ function _objectSpreadProps(target, source) {
|
|
|
160
160
|
}
|
|
161
161
|
return target;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
if (call && (
|
|
163
|
+
function _possible_constructor_return(self, call) {
|
|
164
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
165
165
|
return call;
|
|
166
166
|
}
|
|
167
|
-
return
|
|
167
|
+
return _assert_this_initialized(self);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
|
|
169
|
+
function _set_prototype_of(o, p) {
|
|
170
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
171
171
|
o.__proto__ = p;
|
|
172
172
|
return o;
|
|
173
173
|
};
|
|
174
|
-
return
|
|
174
|
+
return _set_prototype_of(o, p);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function _super_prop_base(object, property) {
|
|
177
177
|
while(!Object.prototype.hasOwnProperty.call(object, property)){
|
|
178
|
-
object =
|
|
178
|
+
object = _get_prototype_of(object);
|
|
179
179
|
if (object === null) break;
|
|
180
180
|
}
|
|
181
181
|
return object;
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
return
|
|
183
|
+
function _to_consumable_array(arr) {
|
|
184
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
185
185
|
}
|
|
186
|
-
|
|
186
|
+
function _type_of(obj) {
|
|
187
187
|
"@swc/helpers - typeof";
|
|
188
188
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
189
|
-
}
|
|
190
|
-
function
|
|
189
|
+
}
|
|
190
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
191
191
|
if (!o) return;
|
|
192
|
-
if (typeof o === "string") return
|
|
192
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
193
193
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
194
194
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
195
195
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
196
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
196
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function _is_native_reflect_construct() {
|
|
199
199
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
200
200
|
if (Reflect.construct.sham) return false;
|
|
201
201
|
if (typeof Proxy === "function") return true;
|
|
@@ -206,20 +206,20 @@ function _isNativeReflectConstruct() {
|
|
|
206
206
|
return false;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
var hasNativeReflectConstruct =
|
|
209
|
+
function _create_super(Derived) {
|
|
210
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
211
211
|
return function _createSuperInternal() {
|
|
212
|
-
var Super =
|
|
212
|
+
var Super = _get_prototype_of(Derived), result;
|
|
213
213
|
if (hasNativeReflectConstruct) {
|
|
214
|
-
var NewTarget =
|
|
214
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
215
215
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
216
216
|
} else {
|
|
217
217
|
result = Super.apply(this, arguments);
|
|
218
218
|
}
|
|
219
|
-
return
|
|
219
|
+
return _possible_constructor_return(this, result);
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
|
-
|
|
222
|
+
function _ts_generator(thisArg, body) {
|
|
223
223
|
var f, y, t, g, _ = {
|
|
224
224
|
label: 0,
|
|
225
225
|
sent: function() {
|
|
@@ -313,7 +313,7 @@ var __generator = this && this.__generator || function(thisArg, body) {
|
|
|
313
313
|
done: true
|
|
314
314
|
};
|
|
315
315
|
}
|
|
316
|
-
}
|
|
316
|
+
}
|
|
317
317
|
import { JSONCopy } from "@byteluck-fe/model-driven-shared";
|
|
318
318
|
import { DesignerControl } from "../BaseControl";
|
|
319
319
|
import LayoutControlProperty from "./property";
|
|
@@ -323,24 +323,25 @@ var CHILDREN_MAX_LENGTH = 10000;
|
|
|
323
323
|
var LayoutControl = /*#__PURE__*/ function _target(DesignerControl) {
|
|
324
324
|
"use strict";
|
|
325
325
|
_inherits(LayoutControl, DesignerControl);
|
|
326
|
-
var _super =
|
|
326
|
+
var _super = _create_super(LayoutControl);
|
|
327
327
|
function LayoutControl(props) {
|
|
328
|
-
|
|
328
|
+
_class_call_check(this, LayoutControl);
|
|
329
329
|
var _this;
|
|
330
|
+
var _props, _props1;
|
|
330
331
|
_this = _super.call(this, props);
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
332
|
+
_define_property(_assert_this_initialized(_this), "controlType", "layout");
|
|
333
|
+
_define_property(_assert_this_initialized(_this), "children", void 0);
|
|
334
|
+
_define_property(_assert_this_initialized(_this), "excludes", void 0);
|
|
335
|
+
_define_property(_assert_this_initialized(_this), "childrenMaxLength", void 0);
|
|
336
|
+
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
336
337
|
var _ref = _instanceof(this, LayoutControl) ? this.constructor : void 0, excludes = _ref.excludes, childrenMaxLength = _ref.childrenMaxLength;
|
|
337
|
-
_this.props = new LayoutControlProperty(props === null ||
|
|
338
|
-
defineControlArrayToProperty(
|
|
338
|
+
_this.props = new LayoutControlProperty((_props = props) === null || _props === void 0 ? void 0 : _props.props);
|
|
339
|
+
defineControlArrayToProperty(_assert_this_initialized(_this), "children", (_props1 = props) === null || _props1 === void 0 ? void 0 : _props1.children);
|
|
339
340
|
_this.excludes = JSONCopy(excludes);
|
|
340
341
|
_this.childrenMaxLength = childrenMaxLength;
|
|
341
342
|
return _this;
|
|
342
343
|
}
|
|
343
|
-
|
|
344
|
+
_create_class(LayoutControl, [
|
|
344
345
|
{
|
|
345
346
|
key: "judgeExcludesChildren",
|
|
346
347
|
value: function judgeExcludesChildren(type) {
|
|
@@ -362,10 +363,10 @@ var LayoutControl = /*#__PURE__*/ function _target(DesignerControl) {
|
|
|
362
363
|
value: function validate(messages, ignore) {
|
|
363
364
|
var _this = this;
|
|
364
365
|
var _this1 = this, _superprop_get_validate = function() {
|
|
365
|
-
return _get(
|
|
366
|
+
return _get(_get_prototype_of(LayoutControl.prototype), "validate", _this);
|
|
366
367
|
};
|
|
367
|
-
return
|
|
368
|
-
return
|
|
368
|
+
return _async_to_generator(function() {
|
|
369
|
+
return _ts_generator(this, function(_state) {
|
|
369
370
|
switch(_state.label){
|
|
370
371
|
case 0:
|
|
371
372
|
return [
|
|
@@ -395,7 +396,7 @@ var LayoutControl = /*#__PURE__*/ function _target(DesignerControl) {
|
|
|
395
396
|
key: "toDataBindModel",
|
|
396
397
|
value: function toDataBindModel() {
|
|
397
398
|
var parentId = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
|
|
398
|
-
var dataBindModel = _get(
|
|
399
|
+
var dataBindModel = _get(_get_prototype_of(LayoutControl.prototype), "toDataBindModel", this).call(this);
|
|
399
400
|
var result = dataBindModel ? [
|
|
400
401
|
dataBindModel
|
|
401
402
|
] : [];
|
|
@@ -405,7 +406,7 @@ var LayoutControl = /*#__PURE__*/ function _target(DesignerControl) {
|
|
|
405
406
|
var filteredModel = model.filter(function(item) {
|
|
406
407
|
return !!item;
|
|
407
408
|
});
|
|
408
|
-
return
|
|
409
|
+
return _to_consumable_array(arr).concat(_to_consumable_array(filteredModel));
|
|
409
410
|
}
|
|
410
411
|
model && arr.push(model);
|
|
411
412
|
return arr;
|
|
@@ -415,12 +416,12 @@ var LayoutControl = /*#__PURE__*/ function _target(DesignerControl) {
|
|
|
415
416
|
{
|
|
416
417
|
key: "toSchema",
|
|
417
418
|
value: function toSchema() {
|
|
418
|
-
var superSchema = _get(
|
|
419
|
+
var superSchema = _get(_get_prototype_of(LayoutControl.prototype), "toSchema", this).call(this);
|
|
419
420
|
var children = this.children.map(function(item) {
|
|
420
421
|
var schema = item.toSchema();
|
|
421
422
|
return schema;
|
|
422
423
|
});
|
|
423
|
-
return
|
|
424
|
+
return _object_spread_props(_object_spread({}, superSchema), {
|
|
424
425
|
children: children
|
|
425
426
|
});
|
|
426
427
|
}
|
|
@@ -428,7 +429,7 @@ var LayoutControl = /*#__PURE__*/ function _target(DesignerControl) {
|
|
|
428
429
|
]);
|
|
429
430
|
return LayoutControl;
|
|
430
431
|
}(DesignerControl);
|
|
431
|
-
|
|
432
|
-
|
|
432
|
+
_define_property(LayoutControl, "excludes", false);
|
|
433
|
+
_define_property(LayoutControl, "childrenMaxLength", CHILDREN_MAX_LENGTH);
|
|
433
434
|
export default LayoutControl;
|
|
434
435
|
export { LayoutControl as DesignerLayoutControl };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _assert_this_initialized(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 _class_call_check(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
|
-
|
|
12
|
+
function _get_prototype_of(o) {
|
|
13
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
14
14
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
15
15
|
};
|
|
16
|
-
return
|
|
16
|
+
return _get_prototype_of(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)
|
|
29
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
if (call && (
|
|
31
|
+
function _possible_constructor_return(self, call) {
|
|
32
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
33
33
|
return call;
|
|
34
34
|
}
|
|
35
|
-
return
|
|
35
|
+
return _assert_this_initialized(self);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
37
|
+
function _set_prototype_of(o, p) {
|
|
38
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
39
39
|
o.__proto__ = p;
|
|
40
40
|
return o;
|
|
41
41
|
};
|
|
42
|
-
return
|
|
42
|
+
return _set_prototype_of(o, p);
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
function _type_of(obj) {
|
|
45
45
|
"@swc/helpers - typeof";
|
|
46
46
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
47
|
-
}
|
|
48
|
-
function
|
|
47
|
+
}
|
|
48
|
+
function _is_native_reflect_construct() {
|
|
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 _isNativeReflectConstruct() {
|
|
|
56
56
|
return false;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
var hasNativeReflectConstruct =
|
|
59
|
+
function _create_super(Derived) {
|
|
60
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
61
61
|
return function _createSuperInternal() {
|
|
62
|
-
var Super =
|
|
62
|
+
var Super = _get_prototype_of(Derived), result;
|
|
63
63
|
if (hasNativeReflectConstruct) {
|
|
64
|
-
var NewTarget =
|
|
64
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
65
65
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
66
66
|
} else {
|
|
67
67
|
result = Super.apply(this, arguments);
|
|
68
68
|
}
|
|
69
|
-
return
|
|
69
|
+
return _possible_constructor_return(this, result);
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
import { Property } from "../BaseControl";
|
|
73
73
|
var LayoutControlProperty = /*#__PURE__*/ function(Property) {
|
|
74
74
|
"use strict";
|
|
75
75
|
_inherits(LayoutControlProperty, Property);
|
|
76
|
-
var _super =
|
|
76
|
+
var _super = _create_super(LayoutControlProperty);
|
|
77
77
|
function LayoutControlProperty(props) {
|
|
78
|
-
|
|
78
|
+
_class_call_check(this, LayoutControlProperty);
|
|
79
79
|
return _super.call(this, props);
|
|
80
80
|
}
|
|
81
81
|
return LayoutControlProperty;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _assert_this_initialized(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 _class_call_check(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
|
|
12
|
+
function _define_property(obj, key, value) {
|
|
13
13
|
if (key in obj) {
|
|
14
14
|
Object.defineProperty(obj, key, {
|
|
15
15
|
value: value,
|
|
@@ -22,11 +22,11 @@ function _defineProperty(obj, key, value) {
|
|
|
22
22
|
}
|
|
23
23
|
return obj;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
25
|
+
function _get_prototype_of(o) {
|
|
26
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
27
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
28
28
|
};
|
|
29
|
-
return
|
|
29
|
+
return _get_prototype_of(o);
|
|
30
30
|
}
|
|
31
31
|
function _inherits(subClass, superClass) {
|
|
32
32
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -39,26 +39,26 @@ function _inherits(subClass, superClass) {
|
|
|
39
39
|
configurable: true
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
if (superClass)
|
|
42
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
if (call && (
|
|
44
|
+
function _possible_constructor_return(self, call) {
|
|
45
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
46
46
|
return call;
|
|
47
47
|
}
|
|
48
|
-
return
|
|
48
|
+
return _assert_this_initialized(self);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
50
|
+
function _set_prototype_of(o, p) {
|
|
51
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
52
52
|
o.__proto__ = p;
|
|
53
53
|
return o;
|
|
54
54
|
};
|
|
55
|
-
return
|
|
55
|
+
return _set_prototype_of(o, p);
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
function _type_of(obj) {
|
|
58
58
|
"@swc/helpers - typeof";
|
|
59
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
|
-
}
|
|
61
|
-
function
|
|
60
|
+
}
|
|
61
|
+
function _is_native_reflect_construct() {
|
|
62
62
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
63
|
if (Reflect.construct.sham) return false;
|
|
64
64
|
if (typeof Proxy === "function") return true;
|
|
@@ -69,17 +69,17 @@ function _isNativeReflectConstruct() {
|
|
|
69
69
|
return false;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
var hasNativeReflectConstruct =
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
74
|
return function _createSuperInternal() {
|
|
75
|
-
var Super =
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
76
76
|
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget =
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
78
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
79
|
} else {
|
|
80
80
|
result = Super.apply(this, arguments);
|
|
81
81
|
}
|
|
82
|
-
return
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
import { RuntimeControl } from "../BaseControl";
|
|
@@ -88,16 +88,17 @@ import { defineControlArrayToProperty } from "../ControlArray";
|
|
|
88
88
|
var LayoutControl = /*#__PURE__*/ function(RuntimeControl) {
|
|
89
89
|
"use strict";
|
|
90
90
|
_inherits(LayoutControl, RuntimeControl);
|
|
91
|
-
var _super =
|
|
91
|
+
var _super = _create_super(LayoutControl);
|
|
92
92
|
function LayoutControl(props) {
|
|
93
|
-
|
|
93
|
+
_class_call_check(this, LayoutControl);
|
|
94
94
|
var _this;
|
|
95
|
+
var _props, _props1;
|
|
95
96
|
_this = _super.call(this, props);
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
_this.props = new LayoutControlProperty(props === null ||
|
|
100
|
-
defineControlArrayToProperty(
|
|
97
|
+
_define_property(_assert_this_initialized(_this), "controlType", "layout");
|
|
98
|
+
_define_property(_assert_this_initialized(_this), "children", void 0);
|
|
99
|
+
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
100
|
+
_this.props = new LayoutControlProperty((_props = props) === null || _props === void 0 ? void 0 : _props.props);
|
|
101
|
+
defineControlArrayToProperty(_assert_this_initialized(_this), "children", (_props1 = props) === null || _props1 === void 0 ? void 0 : _props1.children);
|
|
101
102
|
return _this;
|
|
102
103
|
}
|
|
103
104
|
return LayoutControl;
|