@byteluck-fe/model-driven-core 7.0.0-props.99 → 7.1.0-beta.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/README.md +7 -0
- package/dist/contracts/index.js +1 -0
- package/dist/contracts/index.mjs +1 -0
- package/dist/esm/common/BaseControl/designer.js +47 -29
- package/dist/esm/common/BaseControl/property.js +44 -33
- package/dist/esm/common/BaseControl/runtime.js +3 -9
- package/dist/esm/common/ColumnControl/designer.js +17 -29
- package/dist/esm/common/ColumnControl/property.js +44 -22
- 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 +16 -21
- package/dist/esm/common/FormControl/runtime.js +12 -20
- package/dist/esm/common/LayoutControl/designer.js +36 -51
- package/dist/esm/common/LayoutControl/property.js +15 -18
- 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 +29 -22
- 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 +19 -22
- 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 +15 -18
- package/dist/esm/common/WrapControl/runtime.js +12 -20
- package/dist/esm/contracts/build-info.js +36 -0
- package/dist/esm/contracts/diagnostics.js +29 -0
- package/dist/esm/contracts/index.js +4 -0
- package/dist/esm/contracts/page-model.js +1 -0
- package/dist/esm/contracts/versions.js +9 -0
- package/dist/esm/framework/RegisterControls.js +2 -6
- package/dist/esm/framework/index.js +216 -20
- package/dist/index.umd.js +3 -1
- package/dist/types/common/BaseControl/designer.d.ts +14 -0
- package/dist/types/common/BaseControl/property.d.ts +28 -0
- package/dist/types/common/ColumnControl/property.d.ts +42 -0
- package/dist/types/common/LayoutControl/property.d.ts +4 -0
- package/dist/types/common/ListControl/property.d.ts +22 -0
- package/dist/types/common/SearchViewControl/property.d.ts +7 -0
- package/dist/types/common/WrapControl/property.d.ts +4 -0
- package/dist/types/contracts/build-info.d.ts +25 -0
- package/dist/types/contracts/diagnostics.d.ts +14 -0
- package/dist/types/contracts/index.d.ts +4 -0
- package/dist/types/contracts/page-model.d.ts +72 -0
- package/dist/types/contracts/versions.d.ts +16 -0
- package/dist/types/framework/index.d.ts +195 -0
- package/package.json +27 -5
|
@@ -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 { DesignerControl } from '../BaseControl';
|
|
74
66
|
import BaseControlProperty from './property';
|
|
75
67
|
var FormControl = /*#__PURE__*/ function(DesignerControl) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: base_form_control_property
|
|
3
|
+
* description: 表单控件基础属性定义。提供字段绑定、标题展示、占位提示、默认值、必填校验、只读状态和气泡提示等表单通用配置。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
5
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5
6
|
return self;
|
|
6
7
|
}
|
|
7
8
|
function _call_super(_this, derived, args) {
|
|
@@ -9,9 +10,7 @@ function _call_super(_this, derived, args) {
|
|
|
9
10
|
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
11
|
}
|
|
11
12
|
function _class_call_check(instance, Constructor) {
|
|
12
|
-
if (!(instance instanceof Constructor))
|
|
13
|
-
throw new TypeError("Cannot call a class as a function");
|
|
14
|
-
}
|
|
13
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
15
14
|
}
|
|
16
15
|
function _define_property(obj, key, value) {
|
|
17
16
|
if (key in obj) {
|
|
@@ -21,9 +20,7 @@ function _define_property(obj, key, value) {
|
|
|
21
20
|
configurable: true,
|
|
22
21
|
writable: true
|
|
23
22
|
});
|
|
24
|
-
} else
|
|
25
|
-
obj[key] = value;
|
|
26
|
-
}
|
|
23
|
+
} else obj[key] = value;
|
|
27
24
|
return obj;
|
|
28
25
|
}
|
|
29
26
|
function _get_prototype_of(o) {
|
|
@@ -45,10 +42,16 @@ function _inherits(subClass, superClass) {
|
|
|
45
42
|
});
|
|
46
43
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
47
44
|
}
|
|
45
|
+
function _is_native_reflect_construct() {
|
|
46
|
+
try {
|
|
47
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
48
|
+
} catch (_) {}
|
|
49
|
+
return (_is_native_reflect_construct = function() {
|
|
50
|
+
return !!result;
|
|
51
|
+
})();
|
|
52
|
+
}
|
|
48
53
|
function _possible_constructor_return(self, call) {
|
|
49
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
50
|
-
return call;
|
|
51
|
-
}
|
|
54
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
52
55
|
return _assert_this_initialized(self);
|
|
53
56
|
}
|
|
54
57
|
function _set_prototype_of(o, p) {
|
|
@@ -62,14 +65,6 @@ function _type_of(obj) {
|
|
|
62
65
|
"@swc/helpers - typeof";
|
|
63
66
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
64
67
|
}
|
|
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
68
|
import { JSONCopy } from '@byteluck-fe/model-driven-shared';
|
|
74
69
|
import { Property, PropertyRules, PropertyRuntimeRules } from '../BaseControl';
|
|
75
70
|
import { initOptionAndDataSourceRules } from '../initOptionAndDataSourceRules';
|
|
@@ -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 BaseControlProperty from './property';
|
|
75
67
|
var FormControl = /*#__PURE__*/ function(RuntimeControl) {
|
|
@@ -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
|
}
|
|
@@ -116,15 +104,23 @@ function _instanceof(left, right) {
|
|
|
116
104
|
"@swc/helpers - instanceof";
|
|
117
105
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
118
106
|
return !!right[Symbol.hasInstance](left);
|
|
119
|
-
} else
|
|
120
|
-
|
|
121
|
-
|
|
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
|
+
})();
|
|
122
116
|
}
|
|
123
117
|
function _iterable_to_array(iter) {
|
|
124
|
-
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
|
+
}
|
|
125
121
|
}
|
|
126
122
|
function _non_iterable_spread() {
|
|
127
|
-
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.");
|
|
128
124
|
}
|
|
129
125
|
function _object_spread(target) {
|
|
130
126
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -156,9 +152,8 @@ function ownKeys(object, enumerableOnly) {
|
|
|
156
152
|
}
|
|
157
153
|
function _object_spread_props(target, source) {
|
|
158
154
|
source = source != null ? source : {};
|
|
159
|
-
if (Object.getOwnPropertyDescriptors)
|
|
160
|
-
|
|
161
|
-
} else {
|
|
155
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
156
|
+
else {
|
|
162
157
|
ownKeys(Object(source)).forEach(function(key) {
|
|
163
158
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
164
159
|
});
|
|
@@ -166,9 +161,7 @@ function _object_spread_props(target, source) {
|
|
|
166
161
|
return target;
|
|
167
162
|
}
|
|
168
163
|
function _possible_constructor_return(self, call) {
|
|
169
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
170
|
-
return call;
|
|
171
|
-
}
|
|
164
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
172
165
|
return _assert_this_initialized(self);
|
|
173
166
|
}
|
|
174
167
|
function _set_prototype_of(o, p) {
|
|
@@ -188,26 +181,6 @@ function _super_prop_base(object, property) {
|
|
|
188
181
|
function _to_consumable_array(arr) {
|
|
189
182
|
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
190
183
|
}
|
|
191
|
-
function _type_of(obj) {
|
|
192
|
-
"@swc/helpers - typeof";
|
|
193
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
194
|
-
}
|
|
195
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
196
|
-
if (!o) return;
|
|
197
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
198
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
199
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
200
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
201
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
202
|
-
}
|
|
203
|
-
function _is_native_reflect_construct() {
|
|
204
|
-
try {
|
|
205
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
206
|
-
} catch (_) {}
|
|
207
|
-
return (_is_native_reflect_construct = function() {
|
|
208
|
-
return !!result;
|
|
209
|
-
})();
|
|
210
|
-
}
|
|
211
184
|
function _ts_generator(thisArg, body) {
|
|
212
185
|
var f, y, t, _ = {
|
|
213
186
|
label: 0,
|
|
@@ -307,6 +280,18 @@ function _ts_generator(thisArg, body) {
|
|
|
307
280
|
};
|
|
308
281
|
}
|
|
309
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
|
+
}
|
|
310
295
|
import { JSONCopy } from '@byteluck-fe/model-driven-shared';
|
|
311
296
|
import { DesignerControl } from '../BaseControl';
|
|
312
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,15 +51,10 @@ 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
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return (_is_native_reflect_construct = function() {
|
|
57
|
-
return !!result;
|
|
58
|
-
})();
|
|
59
|
-
}
|
|
60
|
-
import { Property } from '../BaseControl';
|
|
54
|
+
/**
|
|
55
|
+
* name: base_layout_control_property
|
|
56
|
+
* description: 布局控件基础属性定义。继承通用属性能力,为行、列、容器、页签等布局类控件提供统一的属性模型。
|
|
57
|
+
*/ import { Property } from '../BaseControl';
|
|
61
58
|
var LayoutControlProperty = /*#__PURE__*/ function(Property) {
|
|
62
59
|
"use strict";
|
|
63
60
|
_inherits(LayoutControlProperty, 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 _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';
|