@byteluck-fe/model-driven-core 2.3.12 → 2.3.16
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 +57 -57
- package/dist/esm/common/BaseControl/property.js +54 -43
- package/dist/esm/common/BaseControl/runtime.js +17 -17
- package/dist/esm/common/ColumnControl/designer.js +25 -25
- package/dist/esm/common/ColumnControl/property.js +44 -44
- package/dist/esm/common/ColumnControl/runtime.js +25 -25
- package/dist/esm/common/ControlArray.js +13 -13
- package/dist/esm/common/FormControl/designer.js +27 -27
- package/dist/esm/common/FormControl/property.js +53 -53
- package/dist/esm/common/FormControl/runtime.js +26 -26
- package/dist/esm/common/LayoutControl/designer.js +61 -61
- package/dist/esm/common/LayoutControl/property.js +22 -22
- package/dist/esm/common/LayoutControl/runtime.js +27 -27
- package/dist/esm/common/ListControl/designer.js +58 -58
- package/dist/esm/common/ListControl/property.js +25 -25
- package/dist/esm/common/ListControl/runtime.js +30 -30
- package/dist/esm/common/SearchViewControl/designer.js +25 -25
- package/dist/esm/common/SearchViewControl/property.js +24 -24
- package/dist/esm/common/SearchViewControl/runtime.js +25 -25
- package/dist/esm/common/WrapControl/designer.js +25 -25
- package/dist/esm/common/WrapControl/property.js +22 -22
- package/dist/esm/common/WrapControl/runtime.js +25 -25
- package/dist/esm/framework/RegisterControls.js +12 -12
- package/dist/esm/framework/index.js +209 -209
- package/dist/index.umd.js +1 -1
- package/package.json +3 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _arrayLikeToArray(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 _arrayWithoutHoles(arr) {
|
|
7
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function _assertThisInitialized(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 _asyncToGenerator(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 _async_to_generator(fn) {
|
|
|
41
41
|
});
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function _classCallCheck(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 _createClass(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 _defineProperty(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 = _superPropBase(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);
|
|
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 _getPrototypeOf(o) {
|
|
93
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
94
94
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
95
95
|
};
|
|
96
|
-
return
|
|
96
|
+
return _getPrototypeOf(o);
|
|
97
97
|
}
|
|
98
98
|
function _inherits(subClass, superClass) {
|
|
99
99
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -106,15 +106,15 @@ function _inherits(subClass, superClass) {
|
|
|
106
106
|
configurable: true
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
|
-
if (superClass)
|
|
109
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function _iterableToArray(iter) {
|
|
112
112
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function _nonIterableSpread() {
|
|
115
115
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function _objectSpread(target) {
|
|
118
118
|
for(var i = 1; i < arguments.length; i++){
|
|
119
119
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
120
120
|
var ownKeys = Object.keys(source);
|
|
@@ -124,7 +124,7 @@ function _object_spread(target) {
|
|
|
124
124
|
}));
|
|
125
125
|
}
|
|
126
126
|
ownKeys.forEach(function(key) {
|
|
127
|
-
|
|
127
|
+
_defineProperty(target, key, source[key]);
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
return target;
|
|
@@ -142,7 +142,7 @@ function ownKeys(object, enumerableOnly) {
|
|
|
142
142
|
}
|
|
143
143
|
return keys;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function _objectSpreadProps(target, source) {
|
|
146
146
|
source = source != null ? source : {};
|
|
147
147
|
if (Object.getOwnPropertyDescriptors) {
|
|
148
148
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
@@ -153,42 +153,42 @@ function _object_spread_props(target, source) {
|
|
|
153
153
|
}
|
|
154
154
|
return target;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
if (call && (
|
|
156
|
+
function _possibleConstructorReturn(self, call) {
|
|
157
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
158
158
|
return call;
|
|
159
159
|
}
|
|
160
|
-
return
|
|
160
|
+
return _assertThisInitialized(self);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
|
|
162
|
+
function _setPrototypeOf(o, p) {
|
|
163
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
164
164
|
o.__proto__ = p;
|
|
165
165
|
return o;
|
|
166
166
|
};
|
|
167
|
-
return
|
|
167
|
+
return _setPrototypeOf(o, p);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function _superPropBase(object, property) {
|
|
170
170
|
while(!Object.prototype.hasOwnProperty.call(object, property)){
|
|
171
|
-
object =
|
|
171
|
+
object = _getPrototypeOf(object);
|
|
172
172
|
if (object === null) break;
|
|
173
173
|
}
|
|
174
174
|
return object;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
return
|
|
176
|
+
function _toConsumableArray(arr) {
|
|
177
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
var _typeof = function(obj) {
|
|
180
180
|
"@swc/helpers - typeof";
|
|
181
181
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
182
|
-
}
|
|
183
|
-
function
|
|
182
|
+
};
|
|
183
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
184
184
|
if (!o) return;
|
|
185
|
-
if (typeof o === "string") return
|
|
185
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
186
186
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
187
187
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
188
188
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
189
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
189
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function _isNativeReflectConstruct() {
|
|
192
192
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
193
193
|
if (Reflect.construct.sham) return false;
|
|
194
194
|
if (typeof Proxy === "function") return true;
|
|
@@ -199,20 +199,20 @@ function _is_native_reflect_construct() {
|
|
|
199
199
|
return false;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
var hasNativeReflectConstruct =
|
|
202
|
+
function _createSuper(Derived) {
|
|
203
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
204
204
|
return function _createSuperInternal() {
|
|
205
|
-
var Super =
|
|
205
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
206
206
|
if (hasNativeReflectConstruct) {
|
|
207
|
-
var NewTarget =
|
|
207
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
208
208
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
209
209
|
} else {
|
|
210
210
|
result = Super.apply(this, arguments);
|
|
211
211
|
}
|
|
212
|
-
return
|
|
212
|
+
return _possibleConstructorReturn(this, result);
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
var __generator = this && this.__generator || function(thisArg, body) {
|
|
216
216
|
var f, y, t, g, _ = {
|
|
217
217
|
label: 0,
|
|
218
218
|
sent: function() {
|
|
@@ -306,33 +306,33 @@ function _ts_generator(thisArg, body) {
|
|
|
306
306
|
done: true
|
|
307
307
|
};
|
|
308
308
|
}
|
|
309
|
-
}
|
|
309
|
+
};
|
|
310
310
|
import { DesignerControl } from "../BaseControl";
|
|
311
311
|
import ListControlProperty from "./property";
|
|
312
312
|
import { FieldTypes } from "@byteluck-fe/model-driven-shared";
|
|
313
313
|
var ListControl = /*#__PURE__*/ function(DesignerControl) {
|
|
314
314
|
"use strict";
|
|
315
315
|
_inherits(ListControl, DesignerControl);
|
|
316
|
-
var _super =
|
|
316
|
+
var _super = _createSuper(ListControl);
|
|
317
317
|
function ListControl(props) {
|
|
318
|
-
|
|
318
|
+
_classCallCheck(this, ListControl);
|
|
319
319
|
var _this;
|
|
320
320
|
_this = _super.call(this, props);
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
_this.props = new ListControlProperty(
|
|
321
|
+
_defineProperty(_assertThisInitialized(_this), "controlType", "list");
|
|
322
|
+
_defineProperty(_assertThisInitialized(_this), "props", void 0);
|
|
323
|
+
_this.props = new ListControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props);
|
|
324
324
|
return _this;
|
|
325
325
|
}
|
|
326
|
-
|
|
326
|
+
_createClass(ListControl, [
|
|
327
327
|
{
|
|
328
328
|
key: "validate",
|
|
329
329
|
value: function validate(messages, ignore) {
|
|
330
330
|
var _this = this;
|
|
331
331
|
var _this1 = this, _superprop_get_validate = function() {
|
|
332
|
-
return _get(
|
|
332
|
+
return _get(_getPrototypeOf(ListControl.prototype), "validate", _this);
|
|
333
333
|
};
|
|
334
|
-
return
|
|
335
|
-
return
|
|
334
|
+
return _asyncToGenerator(function() {
|
|
335
|
+
return __generator(this, function(_state) {
|
|
336
336
|
switch(_state.label){
|
|
337
337
|
case 0:
|
|
338
338
|
return [
|
|
@@ -361,7 +361,7 @@ var ListControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
361
361
|
{
|
|
362
362
|
key: "toDataBindModel",
|
|
363
363
|
value: function toDataBindModel() {
|
|
364
|
-
var listModel = _get(
|
|
364
|
+
var listModel = _get(_getPrototypeOf(ListControl.prototype), "toDataBindModel", this).call(this);
|
|
365
365
|
var result = listModel ? [
|
|
366
366
|
listModel
|
|
367
367
|
] : [];
|
|
@@ -372,7 +372,7 @@ var ListControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
372
372
|
var filteredModel = model.filter(function(item) {
|
|
373
373
|
return !!item;
|
|
374
374
|
});
|
|
375
|
-
return
|
|
375
|
+
return _toConsumableArray(arr).concat(_toConsumableArray(filteredModel));
|
|
376
376
|
}
|
|
377
377
|
model && arr.push(model);
|
|
378
378
|
return arr;
|
|
@@ -382,12 +382,12 @@ var ListControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
382
382
|
{
|
|
383
383
|
key: "toSchema",
|
|
384
384
|
value: function toSchema() {
|
|
385
|
-
var superSchema = _get(
|
|
385
|
+
var superSchema = _get(_getPrototypeOf(ListControl.prototype), "toSchema", this).call(this);
|
|
386
386
|
var headers = this.props.headers.map(function(item) {
|
|
387
387
|
return item.toSchema();
|
|
388
388
|
});
|
|
389
|
-
return
|
|
390
|
-
props:
|
|
389
|
+
return _objectSpreadProps(_objectSpread({}, superSchema), {
|
|
390
|
+
props: _objectSpreadProps(_objectSpread({}, this.props), {
|
|
391
391
|
headers: headers
|
|
392
392
|
})
|
|
393
393
|
});
|
|
@@ -396,6 +396,6 @@ var ListControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
396
396
|
]);
|
|
397
397
|
return ListControl;
|
|
398
398
|
}(DesignerControl);
|
|
399
|
-
|
|
399
|
+
_defineProperty(ListControl, "controlFieldType", FieldTypes.LIST);
|
|
400
400
|
export default ListControl;
|
|
401
401
|
export { ListControl as DesignerListControl };
|
|
@@ -1,15 +1,15 @@
|
|
|
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
|
|
12
|
+
function _defineProperty(obj, key, value) {
|
|
13
13
|
if (key in obj) {
|
|
14
14
|
Object.defineProperty(obj, key, {
|
|
15
15
|
value: value,
|
|
@@ -22,11 +22,11 @@ function _define_property(obj, key, value) {
|
|
|
22
22
|
}
|
|
23
23
|
return obj;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
25
|
+
function _getPrototypeOf(o) {
|
|
26
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
27
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
28
28
|
};
|
|
29
|
-
return
|
|
29
|
+
return _getPrototypeOf(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) _setPrototypeOf(subClass, superClass);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
if (call && (
|
|
44
|
+
function _possibleConstructorReturn(self, call) {
|
|
45
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
46
46
|
return call;
|
|
47
47
|
}
|
|
48
|
-
return
|
|
48
|
+
return _assertThisInitialized(self);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
50
|
+
function _setPrototypeOf(o, p) {
|
|
51
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
52
52
|
o.__proto__ = p;
|
|
53
53
|
return o;
|
|
54
54
|
};
|
|
55
|
-
return
|
|
55
|
+
return _setPrototypeOf(o, p);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
var _typeof = function(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 _isNativeReflectConstruct() {
|
|
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 _is_native_reflect_construct() {
|
|
|
69
69
|
return false;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
var hasNativeReflectConstruct =
|
|
72
|
+
function _createSuper(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
74
74
|
return function _createSuperInternal() {
|
|
75
|
-
var Super =
|
|
75
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
76
76
|
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget =
|
|
77
|
+
var NewTarget = _getPrototypeOf(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 _possibleConstructorReturn(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
import { Property } from "../BaseControl";
|
|
@@ -87,13 +87,13 @@ import { defineControlArrayToProperty } from "../ControlArray";
|
|
|
87
87
|
var ListControlProperty = /*#__PURE__*/ function(Property) {
|
|
88
88
|
"use strict";
|
|
89
89
|
_inherits(ListControlProperty, Property);
|
|
90
|
-
var _super =
|
|
90
|
+
var _super = _createSuper(ListControlProperty);
|
|
91
91
|
function ListControlProperty(parent, props) {
|
|
92
|
-
|
|
92
|
+
_classCallCheck(this, ListControlProperty);
|
|
93
93
|
var _this;
|
|
94
94
|
_this = _super.call(this, props);
|
|
95
|
-
|
|
96
|
-
defineControlArrayToProperty(
|
|
95
|
+
_defineProperty(_assertThisInitialized(_this), "headers", void 0);
|
|
96
|
+
defineControlArrayToProperty(_assertThisInitialized(_this), "headers", props === null || props === void 0 ? void 0 : props.headers, parent);
|
|
97
97
|
return _this;
|
|
98
98
|
}
|
|
99
99
|
return ListControlProperty;
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
}
|
|
@@ -18,12 +18,12 @@ function _defineProperties(target, props) {
|
|
|
18
18
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
22
22
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
23
23
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
24
24
|
return Constructor;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function _defineProperty(obj, key, value) {
|
|
27
27
|
if (key in obj) {
|
|
28
28
|
Object.defineProperty(obj, key, {
|
|
29
29
|
value: value,
|
|
@@ -36,11 +36,11 @@ function _define_property(obj, key, value) {
|
|
|
36
36
|
}
|
|
37
37
|
return obj;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
|
|
39
|
+
function _getPrototypeOf(o) {
|
|
40
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
41
41
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
42
42
|
};
|
|
43
|
-
return
|
|
43
|
+
return _getPrototypeOf(o);
|
|
44
44
|
}
|
|
45
45
|
function _inherits(subClass, superClass) {
|
|
46
46
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -53,26 +53,26 @@ function _inherits(subClass, superClass) {
|
|
|
53
53
|
configurable: true
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
|
-
if (superClass)
|
|
56
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
if (call && (
|
|
58
|
+
function _possibleConstructorReturn(self, call) {
|
|
59
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
60
60
|
return call;
|
|
61
61
|
}
|
|
62
|
-
return
|
|
62
|
+
return _assertThisInitialized(self);
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
|
|
64
|
+
function _setPrototypeOf(o, p) {
|
|
65
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
66
66
|
o.__proto__ = p;
|
|
67
67
|
return o;
|
|
68
68
|
};
|
|
69
|
-
return
|
|
69
|
+
return _setPrototypeOf(o, p);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
var _typeof = function(obj) {
|
|
72
72
|
"@swc/helpers - typeof";
|
|
73
73
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
74
|
-
}
|
|
75
|
-
function
|
|
74
|
+
};
|
|
75
|
+
function _isNativeReflectConstruct() {
|
|
76
76
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
77
77
|
if (Reflect.construct.sham) return false;
|
|
78
78
|
if (typeof Proxy === "function") return true;
|
|
@@ -83,17 +83,17 @@ function _is_native_reflect_construct() {
|
|
|
83
83
|
return false;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
var hasNativeReflectConstruct =
|
|
86
|
+
function _createSuper(Derived) {
|
|
87
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
88
88
|
return function _createSuperInternal() {
|
|
89
|
-
var Super =
|
|
89
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
90
90
|
if (hasNativeReflectConstruct) {
|
|
91
|
-
var NewTarget =
|
|
91
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
92
92
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
93
93
|
} else {
|
|
94
94
|
result = Super.apply(this, arguments);
|
|
95
95
|
}
|
|
96
|
-
return
|
|
96
|
+
return _possibleConstructorReturn(this, result);
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
import { RuntimeControl } from "../BaseControl";
|
|
@@ -102,19 +102,19 @@ import { defineControlArrayToProperty } from "../ControlArray";
|
|
|
102
102
|
var ListControl = /*#__PURE__*/ function(RuntimeControl) {
|
|
103
103
|
"use strict";
|
|
104
104
|
_inherits(ListControl, RuntimeControl);
|
|
105
|
-
var _super =
|
|
105
|
+
var _super = _createSuper(ListControl);
|
|
106
106
|
function ListControl(props) {
|
|
107
|
-
|
|
107
|
+
_classCallCheck(this, ListControl);
|
|
108
108
|
var _this;
|
|
109
109
|
_this = _super.call(this, props);
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
_this.props = new ListControlProperty(
|
|
114
|
-
defineControlArrayToProperty(
|
|
110
|
+
_defineProperty(_assertThisInitialized(_this), "controlType", "list");
|
|
111
|
+
_defineProperty(_assertThisInitialized(_this), "children", void 0);
|
|
112
|
+
_defineProperty(_assertThisInitialized(_this), "props", void 0);
|
|
113
|
+
_this.props = new ListControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props);
|
|
114
|
+
defineControlArrayToProperty(_assertThisInitialized(_this), "children", props === null || props === void 0 ? void 0 : props.children);
|
|
115
115
|
return _this;
|
|
116
116
|
}
|
|
117
|
-
|
|
117
|
+
_createClass(ListControl, [
|
|
118
118
|
{
|
|
119
119
|
key: "length",
|
|
120
120
|
get: function get() {
|
|
@@ -1,15 +1,15 @@
|
|
|
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
|
|
12
|
+
function _defineProperty(obj, key, value) {
|
|
13
13
|
if (key in obj) {
|
|
14
14
|
Object.defineProperty(obj, key, {
|
|
15
15
|
value: value,
|
|
@@ -22,11 +22,11 @@ function _define_property(obj, key, value) {
|
|
|
22
22
|
}
|
|
23
23
|
return obj;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
25
|
+
function _getPrototypeOf(o) {
|
|
26
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
27
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
28
28
|
};
|
|
29
|
-
return
|
|
29
|
+
return _getPrototypeOf(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) _setPrototypeOf(subClass, superClass);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
if (call && (
|
|
44
|
+
function _possibleConstructorReturn(self, call) {
|
|
45
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
46
46
|
return call;
|
|
47
47
|
}
|
|
48
|
-
return
|
|
48
|
+
return _assertThisInitialized(self);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
50
|
+
function _setPrototypeOf(o, p) {
|
|
51
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
52
52
|
o.__proto__ = p;
|
|
53
53
|
return o;
|
|
54
54
|
};
|
|
55
|
-
return
|
|
55
|
+
return _setPrototypeOf(o, p);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
var _typeof = function(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 _isNativeReflectConstruct() {
|
|
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 _is_native_reflect_construct() {
|
|
|
69
69
|
return false;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
var hasNativeReflectConstruct =
|
|
72
|
+
function _createSuper(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
74
74
|
return function _createSuperInternal() {
|
|
75
|
-
var Super =
|
|
75
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
76
76
|
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget =
|
|
77
|
+
var NewTarget = _getPrototypeOf(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 _possibleConstructorReturn(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
import SearchControlProperty from "./property";
|
|
@@ -87,13 +87,13 @@ import { DesignerLayoutControl } from "../LayoutControl";
|
|
|
87
87
|
var SearchControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
88
88
|
"use strict";
|
|
89
89
|
_inherits(SearchControl, DesignerLayoutControl);
|
|
90
|
-
var _super =
|
|
90
|
+
var _super = _createSuper(SearchControl);
|
|
91
91
|
function SearchControl(props) {
|
|
92
|
-
|
|
92
|
+
_classCallCheck(this, SearchControl);
|
|
93
93
|
var _this;
|
|
94
94
|
_this = _super.call(this, props);
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
_defineProperty(_assertThisInitialized(_this), "controlType", "search");
|
|
96
|
+
_defineProperty(_assertThisInitialized(_this), "props", void 0);
|
|
97
97
|
_this.props = new SearchControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
98
98
|
return _this;
|
|
99
99
|
}
|