@byteluck-fe/model-driven-core 2.7.0-alpha.2 → 2.7.0-alpha.21
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 +259 -220
- package/dist/esm/common/BaseControl/property.js +68 -53
- package/dist/esm/common/BaseControl/runtime.js +37 -15
- package/dist/esm/common/ColumnControl/designer.js +39 -24
- package/dist/esm/common/ColumnControl/property.js +97 -48
- package/dist/esm/common/ColumnControl/runtime.js +39 -24
- package/dist/esm/common/ControlArray.js +12 -12
- package/dist/esm/common/FormControl/designer.js +42 -26
- package/dist/esm/common/FormControl/property.js +130 -69
- package/dist/esm/common/FormControl/runtime.js +40 -24
- package/dist/esm/common/LayoutControl/designer.js +151 -116
- package/dist/esm/common/LayoutControl/property.js +22 -22
- package/dist/esm/common/LayoutControl/runtime.js +41 -25
- package/dist/esm/common/ListControl/designer.js +141 -106
- package/dist/esm/common/ListControl/property.js +40 -23
- package/dist/esm/common/ListControl/runtime.js +43 -27
- package/dist/esm/common/SearchViewControl/designer.js +39 -24
- package/dist/esm/common/SearchViewControl/property.js +38 -23
- package/dist/esm/common/SearchViewControl/runtime.js +39 -24
- package/dist/esm/common/WrapControl/designer.js +39 -24
- package/dist/esm/common/WrapControl/property.js +22 -22
- package/dist/esm/common/WrapControl/runtime.js +39 -24
- package/dist/esm/framework/RegisterControls.js +215 -130
- package/dist/esm/framework/index.js +714 -248
- package/dist/esm/framework/isDataBind.js +8 -0
- package/dist/esm/index.js +1 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/common/ColumnControl/property.d.ts +1 -1
- package/dist/types/common/ListControl/property.d.ts +2 -0
- package/dist/types/framework/index.d.ts +3 -2
- package/dist/types/framework/isDataBind.d.ts +2 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,19 +1,32 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
2
|
if (self === void 0) {
|
|
3
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function _class_call_check(instance, Constructor) {
|
|
8
8
|
if (!(instance instanceof Constructor)) {
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
|
|
12
|
+
function _define_property(obj, key, value) {
|
|
13
|
+
if (key in obj) {
|
|
14
|
+
Object.defineProperty(obj, key, {
|
|
15
|
+
value: value,
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true
|
|
19
|
+
});
|
|
20
|
+
} else {
|
|
21
|
+
obj[key] = value;
|
|
22
|
+
}
|
|
23
|
+
return obj;
|
|
24
|
+
}
|
|
25
|
+
function _get_prototype_of(o) {
|
|
26
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
14
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
15
28
|
};
|
|
16
|
-
return
|
|
29
|
+
return _get_prototype_of(o);
|
|
17
30
|
}
|
|
18
31
|
function _inherits(subClass, superClass) {
|
|
19
32
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -26,26 +39,26 @@ function _inherits(subClass, superClass) {
|
|
|
26
39
|
configurable: true
|
|
27
40
|
}
|
|
28
41
|
});
|
|
29
|
-
if (superClass)
|
|
42
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
30
43
|
}
|
|
31
|
-
function
|
|
32
|
-
if (call && (
|
|
44
|
+
function _possible_constructor_return(self, call) {
|
|
45
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
33
46
|
return call;
|
|
34
47
|
}
|
|
35
|
-
return
|
|
48
|
+
return _assert_this_initialized(self);
|
|
36
49
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
50
|
+
function _set_prototype_of(o, p) {
|
|
51
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
39
52
|
o.__proto__ = p;
|
|
40
53
|
return o;
|
|
41
54
|
};
|
|
42
|
-
return
|
|
55
|
+
return _set_prototype_of(o, p);
|
|
43
56
|
}
|
|
44
|
-
|
|
57
|
+
function _type_of(obj) {
|
|
45
58
|
"@swc/helpers - typeof";
|
|
46
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
47
|
-
}
|
|
48
|
-
function
|
|
60
|
+
}
|
|
61
|
+
function _is_native_reflect_construct() {
|
|
49
62
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
50
63
|
if (Reflect.construct.sham) return false;
|
|
51
64
|
if (typeof Proxy === "function") return true;
|
|
@@ -56,17 +69,17 @@ function _isNativeReflectConstruct() {
|
|
|
56
69
|
return false;
|
|
57
70
|
}
|
|
58
71
|
}
|
|
59
|
-
function
|
|
60
|
-
var hasNativeReflectConstruct =
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
61
74
|
return function _createSuperInternal() {
|
|
62
|
-
var Super =
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
63
76
|
if (hasNativeReflectConstruct) {
|
|
64
|
-
var NewTarget =
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
65
78
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
66
79
|
} else {
|
|
67
80
|
result = Super.apply(this, arguments);
|
|
68
81
|
}
|
|
69
|
-
return
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
70
83
|
};
|
|
71
84
|
}
|
|
72
85
|
import WrapControlProperty from "./property";
|
|
@@ -74,13 +87,15 @@ import { RuntimeLayoutControl } from "../LayoutControl";
|
|
|
74
87
|
var WrapControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
|
|
75
88
|
"use strict";
|
|
76
89
|
_inherits(WrapControl, RuntimeLayoutControl);
|
|
77
|
-
var _super =
|
|
90
|
+
var _super = _create_super(WrapControl);
|
|
78
91
|
function WrapControl(props) {
|
|
79
|
-
|
|
92
|
+
_class_call_check(this, WrapControl);
|
|
80
93
|
var _this;
|
|
94
|
+
var _props;
|
|
81
95
|
_this = _super.call(this, props);
|
|
82
|
-
_this
|
|
83
|
-
_this
|
|
96
|
+
_define_property(_assert_this_initialized(_this), "controlType", "wrap");
|
|
97
|
+
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
98
|
+
_this.props = new WrapControlProperty((_props = props) === null || _props === void 0 ? void 0 : _props.props);
|
|
84
99
|
return _this;
|
|
85
100
|
}
|
|
86
101
|
return WrapControl;
|
|
@@ -1,149 +1,234 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _class_call_check(instance, Constructor) {
|
|
2
2
|
if (!(instance instanceof Constructor)) {
|
|
3
3
|
throw new TypeError("Cannot call a class as a function");
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
|
+
function _defineProperties(target, props) {
|
|
7
|
+
for(var i = 0; i < props.length; i++){
|
|
8
|
+
var descriptor = props[i];
|
|
9
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
10
|
+
descriptor.configurable = true;
|
|
11
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
12
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
16
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
17
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
18
|
+
return Constructor;
|
|
19
|
+
}
|
|
20
|
+
function _define_property(obj, key, value) {
|
|
21
|
+
if (key in obj) {
|
|
22
|
+
Object.defineProperty(obj, key, {
|
|
23
|
+
value: value,
|
|
24
|
+
enumerable: true,
|
|
25
|
+
configurable: true,
|
|
26
|
+
writable: true
|
|
27
|
+
});
|
|
28
|
+
} else {
|
|
29
|
+
obj[key] = value;
|
|
30
|
+
}
|
|
31
|
+
return obj;
|
|
32
|
+
}
|
|
6
33
|
import { error, CONTROL_BASE_TYPE, warn } from "@byteluck-fe/model-driven-shared";
|
|
7
34
|
var baseStaticControls = [];
|
|
8
35
|
export var RegisterControls = /*#__PURE__*/ function() {
|
|
9
36
|
"use strict";
|
|
10
37
|
function RegisterControls(type) {
|
|
11
|
-
|
|
12
|
-
this
|
|
13
|
-
this
|
|
14
|
-
this
|
|
38
|
+
_class_call_check(this, RegisterControls);
|
|
39
|
+
_define_property(this, "registeredControlTypes", new Set());
|
|
40
|
+
_define_property(this, "controlConfigMap", new Map());
|
|
41
|
+
_define_property(this, "_controls", []);
|
|
42
|
+
_define_property(this, "_type", void 0);
|
|
15
43
|
this._type = type;
|
|
16
44
|
this._initControls(type);
|
|
17
45
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
//
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
return this;
|
|
47
|
-
};
|
|
48
|
-
_proto.isLayoutControl = function isLayoutControl(// @ts-ignore
|
|
49
|
-
schema) {
|
|
50
|
-
return schema.controlType === CONTROL_BASE_TYPE.LAYOUT;
|
|
51
|
-
};
|
|
52
|
-
// @ts-ignore
|
|
53
|
-
_proto.isFormControl = function isFormControl(schema) {
|
|
54
|
-
return schema.controlType === CONTROL_BASE_TYPE.FORM;
|
|
55
|
-
};
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
_proto.isListControl = function isListControl(schema) {
|
|
58
|
-
return schema.controlType === CONTROL_BASE_TYPE.LIST;
|
|
59
|
-
};
|
|
60
|
-
_proto.isColumnControl = function isColumnControl(// @ts-ignore
|
|
61
|
-
schema) {
|
|
62
|
-
return schema.controlType === CONTROL_BASE_TYPE.COLUMN;
|
|
63
|
-
};
|
|
64
|
-
_proto.createControl = function createControl(schema, beforeCreateInstance) {
|
|
65
|
-
var _this = this;
|
|
66
|
-
if (Array.isArray(schema)) {
|
|
67
|
-
return schema.map(function(item) {
|
|
68
|
-
return _this.createControl(item, beforeCreateInstance);
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
// @ts-ignore
|
|
72
|
-
if (schema.children) {
|
|
73
|
-
// @ts-ignore
|
|
74
|
-
schema.children = schema.children.map(function(item) {
|
|
75
|
-
return _this.createControl(item, beforeCreateInstance);
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
// @ts-ignore
|
|
79
|
-
if (this.isListControl(schema) && schema.props.headers) {
|
|
80
|
-
// @ts-ignore
|
|
81
|
-
schema.props.headers = schema.props.headers.map(function(item) {
|
|
82
|
-
return(// @ts-ignore
|
|
83
|
-
_this.createControl(item, beforeCreateInstance));
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
// @ts-ignore
|
|
87
|
-
var Constructor = this.getControlFormType(schema.type);
|
|
88
|
-
if (Constructor) {
|
|
89
|
-
// @ts-ignore
|
|
90
|
-
var createSchema = schema;
|
|
91
|
-
if (typeof beforeCreateInstance === "function") {
|
|
92
|
-
var result = beforeCreateInstance(createSchema);
|
|
93
|
-
if (result) {
|
|
94
|
-
createSchema = result;
|
|
46
|
+
_create_class(RegisterControls, [
|
|
47
|
+
{
|
|
48
|
+
key: "registerControlConfig",
|
|
49
|
+
value: function registerControlConfig(type, config) {
|
|
50
|
+
this.controlConfigMap.set(type, config);
|
|
51
|
+
return this;
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
key: "getControlConfig",
|
|
56
|
+
value: function getControlConfig(type) {
|
|
57
|
+
return this.controlConfigMap.get(type);
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
key: "getControls",
|
|
62
|
+
value: function getControls() {
|
|
63
|
+
return this._controls;
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
key: "register",
|
|
68
|
+
value: // 注册控件
|
|
69
|
+
function register(control) {
|
|
70
|
+
// @ts-ignore
|
|
71
|
+
if (!control.__is_control__) {
|
|
72
|
+
// @ts-ignore
|
|
73
|
+
error("".concat(control.name, " is not a Control"));
|
|
95
74
|
}
|
|
75
|
+
var repeatRegisterIndex = this._controls.findIndex(function(item) {
|
|
76
|
+
return item.controlType === control.controlType;
|
|
77
|
+
});
|
|
78
|
+
if (repeatRegisterIndex > -1) {
|
|
79
|
+
// @ts-ignore
|
|
80
|
+
warn("The ".concat(control.controlType, " is repeat register, So it overwrites the one that was registered before."));
|
|
81
|
+
this._controls.splice(repeatRegisterIndex, 1);
|
|
82
|
+
}
|
|
83
|
+
this.registeredControlTypes.add(control.controlType);
|
|
84
|
+
this._controls.push(control);
|
|
85
|
+
return this;
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
key: "isLayoutControl",
|
|
90
|
+
value: function isLayoutControl(// @ts-ignore
|
|
91
|
+
schema) {
|
|
92
|
+
return schema.controlType === CONTROL_BASE_TYPE.LAYOUT;
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
key: "isFormControl",
|
|
97
|
+
value: // @ts-ignore
|
|
98
|
+
function isFormControl(schema) {
|
|
99
|
+
return schema.controlType === CONTROL_BASE_TYPE.FORM;
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
key: "isListControl",
|
|
104
|
+
value: // @ts-ignore
|
|
105
|
+
function isListControl(schema) {
|
|
106
|
+
return schema.controlType === CONTROL_BASE_TYPE.LIST;
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
key: "isColumnControl",
|
|
111
|
+
value: function isColumnControl(// @ts-ignore
|
|
112
|
+
schema) {
|
|
113
|
+
return schema.controlType === CONTROL_BASE_TYPE.COLUMN;
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
key: "createControl",
|
|
118
|
+
value: function createControl(schema, beforeCreateInstance) {
|
|
119
|
+
var _this = this;
|
|
120
|
+
if (Array.isArray(schema)) {
|
|
121
|
+
return schema.map(function(item) {
|
|
122
|
+
return _this.createControl(item, beforeCreateInstance);
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
// @ts-ignore
|
|
126
|
+
if (schema.children) {
|
|
127
|
+
// @ts-ignore
|
|
128
|
+
schema.children = schema.children.map(function(item) {
|
|
129
|
+
return _this.createControl(item, beforeCreateInstance);
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
if (this.isListControl(schema)) {
|
|
133
|
+
// @ts-ignore
|
|
134
|
+
var props = schema.props;
|
|
135
|
+
if (props.headers) {
|
|
136
|
+
// @ts-ignore
|
|
137
|
+
props.headers = props.headers.map(function(item) {
|
|
138
|
+
return(// @ts-ignore
|
|
139
|
+
_this.createControl(item, beforeCreateInstance));
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
// list类型的控件,允许存在footer
|
|
143
|
+
if (props.footers) {
|
|
144
|
+
// @ts-ignore
|
|
145
|
+
props.footers = props.footers.map(function(item) {
|
|
146
|
+
var newctl;
|
|
147
|
+
// footers 允许有空存在
|
|
148
|
+
if (item) {
|
|
149
|
+
// @ts-ignore
|
|
150
|
+
newctl = _this.createControl(item, beforeCreateInstance);
|
|
151
|
+
}
|
|
152
|
+
return newctl;
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
// @ts-ignore
|
|
157
|
+
var Constructor = this.getControlFormType(schema.type);
|
|
158
|
+
if (Constructor) {
|
|
159
|
+
// @ts-ignore
|
|
160
|
+
var createSchema = schema;
|
|
161
|
+
if (typeof beforeCreateInstance === "function") {
|
|
162
|
+
var result = beforeCreateInstance(createSchema);
|
|
163
|
+
if (result) {
|
|
164
|
+
createSchema = result;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
// @ts-ignore
|
|
168
|
+
var control = new Constructor(createSchema);
|
|
169
|
+
// this.defineParentToChildren(control)
|
|
170
|
+
return control;
|
|
171
|
+
} else {
|
|
172
|
+
error(// @ts-ignore
|
|
173
|
+
"The constructor of ".concat(schema.type, " could not be found, please confirm that the constructor has been registered"));
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
key: "createControlInstance",
|
|
179
|
+
value: function createControlInstance(type, initSchema) {
|
|
180
|
+
var Constructor = this.getControlFormType(type);
|
|
181
|
+
if (Constructor) {
|
|
182
|
+
// @ts-ignore
|
|
183
|
+
return new Constructor(initSchema);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
key: "getControlFormType",
|
|
189
|
+
value: // 根据xtype获取控件类
|
|
190
|
+
function getControlFormType(type) {
|
|
191
|
+
// @ts-ignore
|
|
192
|
+
return this._controls.find(function(Control) {
|
|
193
|
+
return Control.controlType === type;
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
key: "_initControls",
|
|
199
|
+
value: // 初始化_controls,得到所有可用控件类组成的扁平数组
|
|
200
|
+
function _initControls(type) {
|
|
201
|
+
var _this = this;
|
|
202
|
+
this.constructor.staticControls.forEach(function(item) {
|
|
203
|
+
_this.register(item[type]);
|
|
204
|
+
});
|
|
96
205
|
}
|
|
97
|
-
// @ts-ignore
|
|
98
|
-
var control = new Constructor(createSchema);
|
|
99
|
-
// this.defineParentToChildren(control)
|
|
100
|
-
return control;
|
|
101
|
-
} else {
|
|
102
|
-
error(// @ts-ignore
|
|
103
|
-
"The constructor of ".concat(schema.type, " could not be found, please confirm that the constructor has been registered"));
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
_proto.createControlInstance = function createControlInstance(type, initSchema) {
|
|
107
|
-
var Constructor = this.getControlFormType(type);
|
|
108
|
-
if (Constructor) {
|
|
109
|
-
// @ts-ignore
|
|
110
|
-
return new Constructor(initSchema);
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
// 根据xtype获取控件类
|
|
114
|
-
_proto.getControlFormType = function getControlFormType(type) {
|
|
115
|
-
// @ts-ignore
|
|
116
|
-
return this._controls.find(function(Control) {
|
|
117
|
-
return Control.controlType === type;
|
|
118
|
-
});
|
|
119
|
-
};
|
|
120
|
-
// 初始化_controls,得到所有可用控件类组成的扁平数组
|
|
121
|
-
_proto._initControls = function _initControls(type) {
|
|
122
|
-
var _this = this;
|
|
123
|
-
this.constructor.staticControls.forEach(function(item) {
|
|
124
|
-
_this.register(item[type]);
|
|
125
|
-
});
|
|
126
|
-
};
|
|
127
|
-
RegisterControls.register = function register(control) {
|
|
128
|
-
var Designer = control.Designer, Runtime = control.Runtime;
|
|
129
|
-
if (!Designer || !Runtime || !Designer.__is_control__ || !Runtime.__is_control__) {
|
|
130
|
-
error("".concat(control, " is can't register as a Control"));
|
|
131
206
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
207
|
+
], [
|
|
208
|
+
{
|
|
209
|
+
key: "register",
|
|
210
|
+
value: function register(control) {
|
|
211
|
+
var Designer = control.Designer, Runtime = control.Runtime;
|
|
212
|
+
if (!Designer || !Runtime || !Designer.__is_control__ || !Runtime.__is_control__) {
|
|
213
|
+
error("".concat(control, " is can't register as a Control"));
|
|
214
|
+
}
|
|
215
|
+
var repeatRegisterIndex = this.staticControls.findIndex(function(item) {
|
|
216
|
+
return item.Designer.controlType === Designer.controlType;
|
|
217
|
+
});
|
|
218
|
+
if (repeatRegisterIndex > -1) {
|
|
219
|
+
warn("The ".concat(Designer.controlType, " is repeat register, So it overwrites the one that was registered before."));
|
|
220
|
+
this.staticControls.splice(repeatRegisterIndex, 1);
|
|
221
|
+
}
|
|
222
|
+
this.staticRegisteredTypes.add(Designer.controlType);
|
|
223
|
+
this.staticControls.push(control);
|
|
224
|
+
return this;
|
|
225
|
+
}
|
|
138
226
|
}
|
|
139
|
-
|
|
140
|
-
this.staticControls.push(control);
|
|
141
|
-
return this;
|
|
142
|
-
};
|
|
227
|
+
]);
|
|
143
228
|
return RegisterControls;
|
|
144
229
|
}();
|
|
145
|
-
RegisterControls
|
|
146
|
-
RegisterControls
|
|
230
|
+
_define_property(RegisterControls, "staticControls", baseStaticControls);
|
|
231
|
+
_define_property(RegisterControls, "staticRegisteredTypes", new Set(baseStaticControls.map(function(item) {
|
|
147
232
|
return item.Designer.controlType;
|
|
148
|
-
}));
|
|
149
|
-
RegisterControls
|
|
233
|
+
})));
|
|
234
|
+
_define_property(RegisterControls, "staticRegisteredConfigs", new Map());
|