@byteluck-fe/model-driven-core 2.7.0-alpha.21 → 2.7.0-alpha.25
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 +62 -63
- package/dist/esm/common/BaseControl/property.js +57 -47
- package/dist/esm/common/BaseControl/runtime.js +23 -24
- package/dist/esm/common/ColumnControl/designer.js +26 -27
- package/dist/esm/common/ColumnControl/property.js +54 -55
- package/dist/esm/common/ColumnControl/runtime.js +26 -27
- package/dist/esm/common/ControlArray.js +12 -12
- package/dist/esm/common/FormControl/designer.js +28 -29
- package/dist/esm/common/FormControl/property.js +64 -65
- package/dist/esm/common/FormControl/runtime.js +27 -28
- package/dist/esm/common/LayoutControl/designer.js +62 -63
- package/dist/esm/common/LayoutControl/property.js +22 -22
- package/dist/esm/common/LayoutControl/runtime.js +28 -29
- package/dist/esm/common/ListControl/designer.js +59 -60
- package/dist/esm/common/ListControl/property.js +27 -28
- package/dist/esm/common/ListControl/runtime.js +30 -31
- package/dist/esm/common/SearchViewControl/designer.js +26 -27
- package/dist/esm/common/SearchViewControl/property.js +25 -26
- package/dist/esm/common/SearchViewControl/runtime.js +26 -27
- package/dist/esm/common/WrapControl/designer.js +26 -27
- package/dist/esm/common/WrapControl/property.js +22 -22
- package/dist/esm/common/WrapControl/runtime.js +26 -27
- package/dist/esm/framework/RegisterControls.js +12 -12
- package/dist/esm/framework/index.js +391 -431
- package/dist/esm/framework/isDataBind.js +1 -2
- package/dist/index.umd.js +1 -1
- package/package.json +3 -3
|
@@ -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 { DesignerControl } from "../BaseControl";
|
|
@@ -87,15 +87,14 @@ import ColumnControlProperty from "./property";
|
|
|
87
87
|
var ColumnControl = /*#__PURE__*/ function(DesignerControl) {
|
|
88
88
|
"use strict";
|
|
89
89
|
_inherits(ColumnControl, DesignerControl);
|
|
90
|
-
var _super =
|
|
90
|
+
var _super = _createSuper(ColumnControl);
|
|
91
91
|
function ColumnControl(props) {
|
|
92
|
-
|
|
92
|
+
_classCallCheck(this, ColumnControl);
|
|
93
93
|
var _this;
|
|
94
|
-
var _props;
|
|
95
94
|
_this = _super.call(this, props);
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
_this.props = new ColumnControlProperty(
|
|
95
|
+
_defineProperty(_assertThisInitialized(_this), "controlType", "column");
|
|
96
|
+
_defineProperty(_assertThisInitialized(_this), "props", void 0);
|
|
97
|
+
_this.props = new ColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
99
98
|
return _this;
|
|
100
99
|
}
|
|
101
100
|
return ColumnControl;
|
|
@@ -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, PropertyRules } from "../BaseControl";
|
|
@@ -89,17 +89,17 @@ import { DataBind, AutoWidth } from "../../framework";
|
|
|
89
89
|
var ColumnControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
90
90
|
"use strict";
|
|
91
91
|
_inherits(ColumnControlPropertyRules, PropertyRules);
|
|
92
|
-
var _super =
|
|
92
|
+
var _super = _createSuper(ColumnControlPropertyRules);
|
|
93
93
|
function ColumnControlPropertyRules(props) {
|
|
94
|
-
|
|
94
|
+
_classCallCheck(this, ColumnControlPropertyRules);
|
|
95
95
|
var _this;
|
|
96
96
|
_this = _super.call(this, props);
|
|
97
|
-
|
|
97
|
+
_defineProperty(_assertThisInitialized(_this), "caption", {
|
|
98
98
|
type: "string",
|
|
99
99
|
required: true,
|
|
100
100
|
message: RulesMessage.getMessage("pleaseEnterCaption")
|
|
101
101
|
});
|
|
102
|
-
|
|
102
|
+
_defineProperty(_assertThisInitialized(_this), "width", {
|
|
103
103
|
type: "number",
|
|
104
104
|
required: false,
|
|
105
105
|
message: RulesMessage.getMessage("pleaseEnterColumnWidth")
|
|
@@ -115,76 +115,75 @@ var ColumnControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
115
115
|
*/ var ColumnControlProperty = /*#__PURE__*/ function(Property) {
|
|
116
116
|
"use strict";
|
|
117
117
|
_inherits(ColumnControlProperty, Property);
|
|
118
|
-
var _super =
|
|
118
|
+
var _super = _createSuper(ColumnControlProperty);
|
|
119
119
|
function ColumnControlProperty(props) {
|
|
120
|
-
|
|
120
|
+
_classCallCheck(this, ColumnControlProperty);
|
|
121
121
|
var _this;
|
|
122
|
-
var _props, _props1, _props2, _props3, _props4, _props5, _props6, _props7, _props8, _props9;
|
|
123
122
|
_this = _super.call(this, props);
|
|
124
123
|
/**
|
|
125
124
|
* 宽度类型
|
|
126
125
|
* @defaultValue 'auto'
|
|
127
|
-
*/
|
|
126
|
+
*/ _defineProperty(_assertThisInitialized(_this), "widthType", void 0);
|
|
128
127
|
/**
|
|
129
128
|
* 宽度
|
|
130
129
|
* @defaultValue 150
|
|
131
|
-
*/
|
|
130
|
+
*/ _defineProperty(_assertThisInitialized(_this), "width", void 0);
|
|
132
131
|
/**
|
|
133
132
|
* 标题
|
|
134
|
-
*/
|
|
133
|
+
*/ _defineProperty(_assertThisInitialized(_this), "caption", void 0);
|
|
135
134
|
/**
|
|
136
135
|
* 绑定数据项
|
|
137
|
-
*/
|
|
136
|
+
*/ _defineProperty(_assertThisInitialized(_this), "dataBind", void 0);
|
|
138
137
|
/**
|
|
139
138
|
* 自适应页面宽度
|
|
140
|
-
*/
|
|
139
|
+
*/ _defineProperty(_assertThisInitialized(_this), "autoWidth", void 0);
|
|
141
140
|
/**
|
|
142
141
|
* 冻结
|
|
143
142
|
* @defaultValue 'none'
|
|
144
|
-
*/
|
|
143
|
+
*/ _defineProperty(_assertThisInitialized(_this), "fixed", void 0);
|
|
145
144
|
/**
|
|
146
145
|
* 表头排序
|
|
147
146
|
* @defaultValue true
|
|
148
|
-
*/
|
|
147
|
+
*/ _defineProperty(_assertThisInitialized(_this), "sort", void 0);
|
|
149
148
|
/**
|
|
150
149
|
* 对齐
|
|
151
|
-
*/
|
|
150
|
+
*/ _defineProperty(_assertThisInitialized(_this), "align", void 0);
|
|
152
151
|
/**
|
|
153
152
|
* @internal
|
|
154
|
-
*/
|
|
153
|
+
*/ _defineProperty(_assertThisInitialized(_this), "colSpan", void 0);
|
|
155
154
|
/**
|
|
156
155
|
* 自动高度
|
|
157
156
|
* @defaultValue false
|
|
158
|
-
*/
|
|
157
|
+
*/ _defineProperty(_assertThisInitialized(_this), "autoHeight", void 0);
|
|
159
158
|
var _props_width;
|
|
160
|
-
_this.width = (_props_width =
|
|
161
|
-
_this.widthType = (
|
|
159
|
+
_this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : 150;
|
|
160
|
+
_this.widthType = (props === null || props === void 0 ? void 0 : props.widthType) || "auto";
|
|
162
161
|
var _props_caption;
|
|
163
|
-
_this.caption = (_props_caption =
|
|
162
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : "";
|
|
164
163
|
var _props_fixed;
|
|
165
|
-
_this.fixed = (_props_fixed =
|
|
166
|
-
_this.autoWidth = new AutoWidth(
|
|
167
|
-
_this.dataBind = new DataBind(
|
|
164
|
+
_this.fixed = (_props_fixed = props === null || props === void 0 ? void 0 : props.fixed) !== null && _props_fixed !== void 0 ? _props_fixed : "none";
|
|
165
|
+
_this.autoWidth = new AutoWidth(props === null || props === void 0 ? void 0 : props.autoWidth);
|
|
166
|
+
_this.dataBind = new DataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
168
167
|
var _props_sort;
|
|
169
|
-
_this.sort = (_props_sort =
|
|
170
|
-
_this.align =
|
|
171
|
-
_this.colSpan =
|
|
168
|
+
_this.sort = (_props_sort = props === null || props === void 0 ? void 0 : props.sort) !== null && _props_sort !== void 0 ? _props_sort : true;
|
|
169
|
+
_this.align = props === null || props === void 0 ? void 0 : props.align;
|
|
170
|
+
_this.colSpan = props === null || props === void 0 ? void 0 : props.colSpan;
|
|
172
171
|
var _props_autoHeight;
|
|
173
|
-
_this.autoHeight = (_props_autoHeight =
|
|
172
|
+
_this.autoHeight = (_props_autoHeight = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _props_autoHeight !== void 0 ? _props_autoHeight : false;
|
|
174
173
|
return _this;
|
|
175
174
|
}
|
|
176
175
|
return ColumnControlProperty;
|
|
177
176
|
}(Property);
|
|
178
|
-
|
|
177
|
+
_defineProperty(ColumnControlProperty, "Rules", ColumnControlPropertyRules);
|
|
179
178
|
var ColumnOptionAndDataSourcePropertyRules = /*#__PURE__*/ function(ColumnControlPropertyRules) {
|
|
180
179
|
"use strict";
|
|
181
180
|
_inherits(ColumnOptionAndDataSourcePropertyRules, ColumnControlPropertyRules);
|
|
182
|
-
var _super =
|
|
181
|
+
var _super = _createSuper(ColumnOptionAndDataSourcePropertyRules);
|
|
183
182
|
function ColumnOptionAndDataSourcePropertyRules(props) {
|
|
184
|
-
|
|
183
|
+
_classCallCheck(this, ColumnOptionAndDataSourcePropertyRules);
|
|
185
184
|
var _this;
|
|
186
185
|
_this = _super.call(this, props);
|
|
187
|
-
|
|
186
|
+
_defineProperty(_assertThisInitialized(_this), "optionConfig", {
|
|
188
187
|
type: "enum",
|
|
189
188
|
enum: [
|
|
190
189
|
"custom",
|
|
@@ -193,19 +192,19 @@ var ColumnOptionAndDataSourcePropertyRules = /*#__PURE__*/ function(ColumnContro
|
|
|
193
192
|
],
|
|
194
193
|
message: RulesMessage.getMessage("PleaseSelectTheCorrectOptionSettings")
|
|
195
194
|
});
|
|
196
|
-
|
|
195
|
+
_defineProperty(_assertThisInitialized(_this), "options", [
|
|
197
196
|
{
|
|
198
197
|
type: "array",
|
|
199
198
|
message: RulesMessage.getMessage("isNotArray")
|
|
200
199
|
}
|
|
201
200
|
]);
|
|
202
|
-
|
|
201
|
+
_defineProperty(_assertThisInitialized(_this), "datasourceBind", [
|
|
203
202
|
{
|
|
204
203
|
type: "object",
|
|
205
204
|
message: RulesMessage.getMessage("isNotObject")
|
|
206
205
|
}
|
|
207
206
|
]);
|
|
208
|
-
initOptionAndDataSourceRules.call(
|
|
207
|
+
initOptionAndDataSourceRules.call(_assertThisInitialized(_this), props);
|
|
209
208
|
return _this;
|
|
210
209
|
}
|
|
211
210
|
return ColumnOptionAndDataSourcePropertyRules;
|
|
@@ -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 { RuntimeControl } from "../BaseControl";
|
|
@@ -87,15 +87,14 @@ import ColumnControlProperty from "./property";
|
|
|
87
87
|
var ColumnControl = /*#__PURE__*/ function(RuntimeControl) {
|
|
88
88
|
"use strict";
|
|
89
89
|
_inherits(ColumnControl, RuntimeControl);
|
|
90
|
-
var _super =
|
|
90
|
+
var _super = _createSuper(ColumnControl);
|
|
91
91
|
function ColumnControl(props) {
|
|
92
|
-
|
|
92
|
+
_classCallCheck(this, ColumnControl);
|
|
93
93
|
var _this;
|
|
94
|
-
var _props;
|
|
95
94
|
_this = _super.call(this, props);
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
_this.props = new ColumnControlProperty(
|
|
95
|
+
_defineProperty(_assertThisInitialized(_this), "controlType", "column");
|
|
96
|
+
_defineProperty(_assertThisInitialized(_this), "props", void 0);
|
|
97
|
+
_this.props = new ColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
99
98
|
return _this;
|
|
100
99
|
}
|
|
101
100
|
return ColumnControl;
|
|
@@ -1,27 +1,27 @@
|
|
|
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 _iterableToArray(iter) {
|
|
10
10
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function _nonIterableSpread() {
|
|
13
13
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
return
|
|
15
|
+
function _toConsumableArray(arr) {
|
|
16
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
19
19
|
if (!o) return;
|
|
20
|
-
if (typeof o === "string") return
|
|
20
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
21
21
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
22
22
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
23
23
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
24
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
24
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
25
25
|
}
|
|
26
26
|
import { isArray, isPlainObject } from "@byteluck-fe/model-driven-shared";
|
|
27
27
|
export function setPropertyDontEnum(obj, property) {
|
|
@@ -62,7 +62,7 @@ function proxyState(target, parent) {
|
|
|
62
62
|
return (_Reflect = Reflect).get.apply(_Reflect, [
|
|
63
63
|
t,
|
|
64
64
|
p
|
|
65
|
-
].concat(
|
|
65
|
+
].concat(_toConsumableArray(args)));
|
|
66
66
|
},
|
|
67
67
|
set: function set(t, property, value) {
|
|
68
68
|
for(var _len = arguments.length, args = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++){
|
|
@@ -77,7 +77,7 @@ function proxyState(target, parent) {
|
|
|
77
77
|
t,
|
|
78
78
|
property,
|
|
79
79
|
value
|
|
80
|
-
].concat(
|
|
80
|
+
].concat(_toConsumableArray(args)));
|
|
81
81
|
if (isPlainObject(value)) {
|
|
82
82
|
defineParent(value, parent);
|
|
83
83
|
}
|
|
@@ -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 { DesignerControl } from "../BaseControl";
|
|
@@ -87,24 +87,23 @@ import BaseControlProperty from "./property";
|
|
|
87
87
|
var FormControl = /*#__PURE__*/ function(DesignerControl) {
|
|
88
88
|
"use strict";
|
|
89
89
|
_inherits(FormControl, DesignerControl);
|
|
90
|
-
var _super =
|
|
90
|
+
var _super = _createSuper(FormControl);
|
|
91
91
|
function FormControl(props) {
|
|
92
|
-
|
|
92
|
+
_classCallCheck(this, FormControl);
|
|
93
93
|
var _this;
|
|
94
|
-
var _props;
|
|
95
94
|
_this = _super.call(this, props);
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
_this.props = new BaseControlProperty(
|
|
95
|
+
_defineProperty(_assertThisInitialized(_this), "controlType", "form");
|
|
96
|
+
_defineProperty(_assertThisInitialized(_this), "props", void 0);
|
|
97
|
+
_this.props = new BaseControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
99
98
|
return _this;
|
|
100
99
|
}
|
|
101
100
|
return FormControl;
|
|
102
101
|
}(DesignerControl);
|
|
103
|
-
|
|
102
|
+
_defineProperty(FormControl, "controlEventKeys", [
|
|
104
103
|
"on_change",
|
|
105
104
|
"on_focus",
|
|
106
105
|
"on_blur"
|
|
107
106
|
]);
|
|
108
|
-
|
|
107
|
+
_defineProperty(FormControl, "controlCustomAttributes", void 0);
|
|
109
108
|
export default FormControl;
|
|
110
109
|
export { FormControl as DesignerFormControl };
|