@byteluck-fe/model-driven-core 6.2.0-beta.8 → 6.2.0-cyj.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.
- package/dist/esm/common/BaseControl/designer.js +23 -29
- package/dist/esm/common/BaseControl/property.js +16 -27
- package/dist/esm/common/BaseControl/runtime.js +4 -9
- package/dist/esm/common/ColumnControl/designer.js +17 -29
- package/dist/esm/common/ColumnControl/property.js +12 -20
- package/dist/esm/common/ColumnControl/runtime.js +12 -20
- package/dist/esm/common/ControlArray.js +4 -2
- package/dist/esm/common/FormControl/designer.js +12 -20
- package/dist/esm/common/FormControl/property.js +12 -20
- package/dist/esm/common/FormControl/runtime.js +12 -20
- package/dist/esm/common/LayoutControl/designer.js +37 -51
- package/dist/esm/common/LayoutControl/property.js +11 -17
- package/dist/esm/common/LayoutControl/runtime.js +12 -20
- package/dist/esm/common/ListControl/designer.js +35 -48
- package/dist/esm/common/ListControl/property.js +12 -20
- package/dist/esm/common/ListControl/runtime.js +12 -20
- package/dist/esm/common/SearchViewControl/designer.js +12 -20
- package/dist/esm/common/SearchViewControl/property.js +12 -20
- package/dist/esm/common/SearchViewControl/runtime.js +12 -20
- package/dist/esm/common/WrapControl/designer.js +12 -20
- package/dist/esm/common/WrapControl/property.js +11 -17
- package/dist/esm/common/WrapControl/runtime.js +12 -20
- package/dist/esm/framework/RegisterControls.js +2 -6
- package/dist/esm/framework/index.js +12 -20
- package/dist/index.umd.js +3 -1
- package/dist/types/framework/index.d.ts +1 -0
- package/package.json +3 -3
|
@@ -7,9 +7,7 @@ function _array_without_holes(arr) {
|
|
|
7
7
|
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
8
8
|
}
|
|
9
9
|
function _assert_this_initialized(self) {
|
|
10
|
-
if (self === void 0)
|
|
11
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
12
|
-
}
|
|
10
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
13
11
|
return self;
|
|
14
12
|
}
|
|
15
13
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -20,11 +18,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
20
18
|
reject(error);
|
|
21
19
|
return;
|
|
22
20
|
}
|
|
23
|
-
if (info.done)
|
|
24
|
-
|
|
25
|
-
} else {
|
|
26
|
-
Promise.resolve(value).then(_next, _throw);
|
|
27
|
-
}
|
|
21
|
+
if (info.done) resolve(value);
|
|
22
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
28
23
|
}
|
|
29
24
|
function _async_to_generator(fn) {
|
|
30
25
|
return function() {
|
|
@@ -46,9 +41,7 @@ function _call_super(_this, derived, args) {
|
|
|
46
41
|
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
47
42
|
}
|
|
48
43
|
function _class_call_check(instance, Constructor) {
|
|
49
|
-
if (!(instance instanceof Constructor))
|
|
50
|
-
throw new TypeError("Cannot call a class as a function");
|
|
51
|
-
}
|
|
44
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
52
45
|
}
|
|
53
46
|
function _defineProperties(target, props) {
|
|
54
47
|
for(var i = 0; i < props.length; i++){
|
|
@@ -72,22 +65,17 @@ function _define_property(obj, key, value) {
|
|
|
72
65
|
configurable: true,
|
|
73
66
|
writable: true
|
|
74
67
|
});
|
|
75
|
-
} else
|
|
76
|
-
obj[key] = value;
|
|
77
|
-
}
|
|
68
|
+
} else obj[key] = value;
|
|
78
69
|
return obj;
|
|
79
70
|
}
|
|
80
71
|
function _get(target, property, receiver) {
|
|
81
|
-
if (typeof Reflect !== "undefined" && Reflect.get)
|
|
82
|
-
|
|
83
|
-
} else {
|
|
72
|
+
if (typeof Reflect !== "undefined" && Reflect.get) _get = Reflect.get;
|
|
73
|
+
else {
|
|
84
74
|
_get = function get(target, property, receiver) {
|
|
85
75
|
var base = _super_prop_base(target, property);
|
|
86
76
|
if (!base) return;
|
|
87
77
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
88
|
-
if (desc.get)
|
|
89
|
-
return desc.get.call(receiver || target);
|
|
90
|
-
}
|
|
78
|
+
if (desc.get) return desc.get.call(receiver || target);
|
|
91
79
|
return desc.value;
|
|
92
80
|
};
|
|
93
81
|
}
|
|
@@ -113,17 +101,26 @@ function _inherits(subClass, superClass) {
|
|
|
113
101
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
114
102
|
}
|
|
115
103
|
function _instanceof(left, right) {
|
|
104
|
+
"@swc/helpers - instanceof";
|
|
116
105
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
117
106
|
return !!right[Symbol.hasInstance](left);
|
|
118
|
-
} else
|
|
119
|
-
|
|
120
|
-
|
|
107
|
+
} else return left instanceof right;
|
|
108
|
+
}
|
|
109
|
+
function _is_native_reflect_construct() {
|
|
110
|
+
try {
|
|
111
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
112
|
+
} catch (_) {}
|
|
113
|
+
return (_is_native_reflect_construct = function() {
|
|
114
|
+
return !!result;
|
|
115
|
+
})();
|
|
121
116
|
}
|
|
122
117
|
function _iterable_to_array(iter) {
|
|
123
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
118
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
119
|
+
return Array.from(iter);
|
|
120
|
+
}
|
|
124
121
|
}
|
|
125
122
|
function _non_iterable_spread() {
|
|
126
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
123
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
127
124
|
}
|
|
128
125
|
function _object_spread(target) {
|
|
129
126
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -155,9 +152,8 @@ function ownKeys(object, enumerableOnly) {
|
|
|
155
152
|
}
|
|
156
153
|
function _object_spread_props(target, source) {
|
|
157
154
|
source = source != null ? source : {};
|
|
158
|
-
if (Object.getOwnPropertyDescriptors)
|
|
159
|
-
|
|
160
|
-
} else {
|
|
155
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
156
|
+
else {
|
|
161
157
|
ownKeys(Object(source)).forEach(function(key) {
|
|
162
158
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
163
159
|
});
|
|
@@ -165,9 +161,7 @@ function _object_spread_props(target, source) {
|
|
|
165
161
|
return target;
|
|
166
162
|
}
|
|
167
163
|
function _possible_constructor_return(self, call) {
|
|
168
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
169
|
-
return call;
|
|
170
|
-
}
|
|
164
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
171
165
|
return _assert_this_initialized(self);
|
|
172
166
|
}
|
|
173
167
|
function _set_prototype_of(o, p) {
|
|
@@ -187,26 +181,6 @@ function _super_prop_base(object, property) {
|
|
|
187
181
|
function _to_consumable_array(arr) {
|
|
188
182
|
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
189
183
|
}
|
|
190
|
-
function _type_of(obj) {
|
|
191
|
-
"@swc/helpers - typeof";
|
|
192
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
193
|
-
}
|
|
194
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
195
|
-
if (!o) return;
|
|
196
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
197
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
198
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
199
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
200
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
201
|
-
}
|
|
202
|
-
function _is_native_reflect_construct() {
|
|
203
|
-
try {
|
|
204
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
205
|
-
} catch (_) {}
|
|
206
|
-
return (_is_native_reflect_construct = function() {
|
|
207
|
-
return !!result;
|
|
208
|
-
})();
|
|
209
|
-
}
|
|
210
184
|
function _ts_generator(thisArg, body) {
|
|
211
185
|
var f, y, t, _ = {
|
|
212
186
|
label: 0,
|
|
@@ -306,6 +280,18 @@ function _ts_generator(thisArg, body) {
|
|
|
306
280
|
};
|
|
307
281
|
}
|
|
308
282
|
}
|
|
283
|
+
function _type_of(obj) {
|
|
284
|
+
"@swc/helpers - typeof";
|
|
285
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
286
|
+
}
|
|
287
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
288
|
+
if (!o) return;
|
|
289
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
290
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
291
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
292
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
293
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
294
|
+
}
|
|
309
295
|
import { JSONCopy } from '@byteluck-fe/model-driven-shared';
|
|
310
296
|
import { DesignerControl } from '../BaseControl';
|
|
311
297
|
import LayoutControlProperty from './property';
|
|
@@ -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,14 +51,6 @@ 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
54
|
import { Property } from '../BaseControl';
|
|
61
55
|
var LayoutControlProperty = /*#__PURE__*/ function(Property) {
|
|
62
56
|
"use strict";
|
|
@@ -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 { RuntimeControl } from '../BaseControl';
|
|
74
66
|
import LayoutControlProperty from './property';
|
|
75
67
|
import { defineControlArrayToProperty } from '../ControlArray';
|
|
@@ -7,9 +7,7 @@ function _array_without_holes(arr) {
|
|
|
7
7
|
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
8
8
|
}
|
|
9
9
|
function _assert_this_initialized(self) {
|
|
10
|
-
if (self === void 0)
|
|
11
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
12
|
-
}
|
|
10
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
13
11
|
return self;
|
|
14
12
|
}
|
|
15
13
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -20,11 +18,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
20
18
|
reject(error);
|
|
21
19
|
return;
|
|
22
20
|
}
|
|
23
|
-
if (info.done)
|
|
24
|
-
|
|
25
|
-
} else {
|
|
26
|
-
Promise.resolve(value).then(_next, _throw);
|
|
27
|
-
}
|
|
21
|
+
if (info.done) resolve(value);
|
|
22
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
28
23
|
}
|
|
29
24
|
function _async_to_generator(fn) {
|
|
30
25
|
return function() {
|
|
@@ -46,9 +41,7 @@ function _call_super(_this, derived, args) {
|
|
|
46
41
|
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
47
42
|
}
|
|
48
43
|
function _class_call_check(instance, Constructor) {
|
|
49
|
-
if (!(instance instanceof Constructor))
|
|
50
|
-
throw new TypeError("Cannot call a class as a function");
|
|
51
|
-
}
|
|
44
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
52
45
|
}
|
|
53
46
|
function _defineProperties(target, props) {
|
|
54
47
|
for(var i = 0; i < props.length; i++){
|
|
@@ -72,22 +65,17 @@ function _define_property(obj, key, value) {
|
|
|
72
65
|
configurable: true,
|
|
73
66
|
writable: true
|
|
74
67
|
});
|
|
75
|
-
} else
|
|
76
|
-
obj[key] = value;
|
|
77
|
-
}
|
|
68
|
+
} else obj[key] = value;
|
|
78
69
|
return obj;
|
|
79
70
|
}
|
|
80
71
|
function _get(target, property, receiver) {
|
|
81
|
-
if (typeof Reflect !== "undefined" && Reflect.get)
|
|
82
|
-
|
|
83
|
-
} else {
|
|
72
|
+
if (typeof Reflect !== "undefined" && Reflect.get) _get = Reflect.get;
|
|
73
|
+
else {
|
|
84
74
|
_get = function get(target, property, receiver) {
|
|
85
75
|
var base = _super_prop_base(target, property);
|
|
86
76
|
if (!base) return;
|
|
87
77
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
88
|
-
if (desc.get)
|
|
89
|
-
return desc.get.call(receiver || target);
|
|
90
|
-
}
|
|
78
|
+
if (desc.get) return desc.get.call(receiver || target);
|
|
91
79
|
return desc.value;
|
|
92
80
|
};
|
|
93
81
|
}
|
|
@@ -112,11 +100,21 @@ function _inherits(subClass, superClass) {
|
|
|
112
100
|
});
|
|
113
101
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
114
102
|
}
|
|
103
|
+
function _is_native_reflect_construct() {
|
|
104
|
+
try {
|
|
105
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
106
|
+
} catch (_) {}
|
|
107
|
+
return (_is_native_reflect_construct = function() {
|
|
108
|
+
return !!result;
|
|
109
|
+
})();
|
|
110
|
+
}
|
|
115
111
|
function _iterable_to_array(iter) {
|
|
116
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
112
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
113
|
+
return Array.from(iter);
|
|
114
|
+
}
|
|
117
115
|
}
|
|
118
116
|
function _non_iterable_spread() {
|
|
119
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
117
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
120
118
|
}
|
|
121
119
|
function _object_spread(target) {
|
|
122
120
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -148,9 +146,8 @@ function ownKeys(object, enumerableOnly) {
|
|
|
148
146
|
}
|
|
149
147
|
function _object_spread_props(target, source) {
|
|
150
148
|
source = source != null ? source : {};
|
|
151
|
-
if (Object.getOwnPropertyDescriptors)
|
|
152
|
-
|
|
153
|
-
} else {
|
|
149
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
150
|
+
else {
|
|
154
151
|
ownKeys(Object(source)).forEach(function(key) {
|
|
155
152
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
156
153
|
});
|
|
@@ -158,9 +155,7 @@ function _object_spread_props(target, source) {
|
|
|
158
155
|
return target;
|
|
159
156
|
}
|
|
160
157
|
function _possible_constructor_return(self, call) {
|
|
161
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
162
|
-
return call;
|
|
163
|
-
}
|
|
158
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
164
159
|
return _assert_this_initialized(self);
|
|
165
160
|
}
|
|
166
161
|
function _set_prototype_of(o, p) {
|
|
@@ -180,26 +175,6 @@ function _super_prop_base(object, property) {
|
|
|
180
175
|
function _to_consumable_array(arr) {
|
|
181
176
|
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
182
177
|
}
|
|
183
|
-
function _type_of(obj) {
|
|
184
|
-
"@swc/helpers - typeof";
|
|
185
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
186
|
-
}
|
|
187
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
188
|
-
if (!o) return;
|
|
189
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
190
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
191
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
192
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
193
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
194
|
-
}
|
|
195
|
-
function _is_native_reflect_construct() {
|
|
196
|
-
try {
|
|
197
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
198
|
-
} catch (_) {}
|
|
199
|
-
return (_is_native_reflect_construct = function() {
|
|
200
|
-
return !!result;
|
|
201
|
-
})();
|
|
202
|
-
}
|
|
203
178
|
function _ts_generator(thisArg, body) {
|
|
204
179
|
var f, y, t, _ = {
|
|
205
180
|
label: 0,
|
|
@@ -299,6 +274,18 @@ function _ts_generator(thisArg, body) {
|
|
|
299
274
|
};
|
|
300
275
|
}
|
|
301
276
|
}
|
|
277
|
+
function _type_of(obj) {
|
|
278
|
+
"@swc/helpers - typeof";
|
|
279
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
280
|
+
}
|
|
281
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
282
|
+
if (!o) return;
|
|
283
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
284
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
285
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
286
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
287
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
288
|
+
}
|
|
302
289
|
import { DesignerControl } from '../BaseControl';
|
|
303
290
|
import ListControlProperty from './property';
|
|
304
291
|
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
@@ -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 { Property } from '../BaseControl';
|
|
74
66
|
import { defineControlArrayToProperty } from '../ControlArray';
|
|
75
67
|
var ListControlProperty = /*#__PURE__*/ function(Property) {
|
|
@@ -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) {
|