@byteluck-fe/model-driven-core-all 4.36.0-lx5 → 4.38.0-lx0
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.
|
@@ -28,7 +28,7 @@ function _async_to_generator(fn) {
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
function _ts_generator(thisArg, body) {
|
|
31
|
-
var f, y, t, _ = {
|
|
31
|
+
var f, y, t, g, _ = {
|
|
32
32
|
label: 0,
|
|
33
33
|
sent: function() {
|
|
34
34
|
if (t[0] & 1) throw t[1];
|
|
@@ -36,8 +36,12 @@ function _ts_generator(thisArg, body) {
|
|
|
36
36
|
},
|
|
37
37
|
trys: [],
|
|
38
38
|
ops: []
|
|
39
|
-
}
|
|
40
|
-
return g
|
|
39
|
+
};
|
|
40
|
+
return g = {
|
|
41
|
+
next: verb(0),
|
|
42
|
+
"throw": verb(1),
|
|
43
|
+
"return": verb(2)
|
|
44
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
41
45
|
return this;
|
|
42
46
|
}), g;
|
|
43
47
|
function verb(n) {
|
|
@@ -50,7 +54,7 @@ function _ts_generator(thisArg, body) {
|
|
|
50
54
|
}
|
|
51
55
|
function step(op) {
|
|
52
56
|
if (f) throw new TypeError("Generator is already executing.");
|
|
53
|
-
while(
|
|
57
|
+
while(_)try {
|
|
54
58
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
55
59
|
if (y = 0, t) op = [
|
|
56
60
|
op[0] & 2,
|
|
@@ -204,7 +208,10 @@ export function loadRemoteControl(url, globalModules) {
|
|
|
204
208
|
return loadScriptFromFetch(url, globalModules);
|
|
205
209
|
}
|
|
206
210
|
export function loadRemoteControls(urls, globalModules) {
|
|
207
|
-
return
|
|
211
|
+
return _loadRemoteControls.apply(this, arguments);
|
|
212
|
+
}
|
|
213
|
+
function _loadRemoteControls() {
|
|
214
|
+
_loadRemoteControls = _async_to_generator(function(urls, globalModules) {
|
|
208
215
|
return _ts_generator(this, function(_state) {
|
|
209
216
|
switch(_state.label){
|
|
210
217
|
case 0:
|
|
@@ -221,5 +228,6 @@ export function loadRemoteControls(urls, globalModules) {
|
|
|
221
228
|
];
|
|
222
229
|
}
|
|
223
230
|
});
|
|
224
|
-
})
|
|
231
|
+
});
|
|
232
|
+
return _loadRemoteControls.apply(this, arguments);
|
|
225
233
|
}
|
|
@@ -28,7 +28,7 @@ function _async_to_generator(fn) {
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
function _ts_generator(thisArg, body) {
|
|
31
|
-
var f, y, t, _ = {
|
|
31
|
+
var f, y, t, g, _ = {
|
|
32
32
|
label: 0,
|
|
33
33
|
sent: function() {
|
|
34
34
|
if (t[0] & 1) throw t[1];
|
|
@@ -36,8 +36,12 @@ function _ts_generator(thisArg, body) {
|
|
|
36
36
|
},
|
|
37
37
|
trys: [],
|
|
38
38
|
ops: []
|
|
39
|
-
}
|
|
40
|
-
return g
|
|
39
|
+
};
|
|
40
|
+
return g = {
|
|
41
|
+
next: verb(0),
|
|
42
|
+
"throw": verb(1),
|
|
43
|
+
"return": verb(2)
|
|
44
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
41
45
|
return this;
|
|
42
46
|
}), g;
|
|
43
47
|
function verb(n) {
|
|
@@ -50,7 +54,7 @@ function _ts_generator(thisArg, body) {
|
|
|
50
54
|
}
|
|
51
55
|
function step(op) {
|
|
52
56
|
if (f) throw new TypeError("Generator is already executing.");
|
|
53
|
-
while(
|
|
57
|
+
while(_)try {
|
|
54
58
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
55
59
|
if (y = 0, t) op = [
|
|
56
60
|
op[0] & 2,
|
|
@@ -121,7 +125,10 @@ function _ts_generator(thisArg, body) {
|
|
|
121
125
|
import { getHackerControl } from './getHackerControl';
|
|
122
126
|
import { nativeFetch, loadRemoteControl } from './loadRemoteScripts';
|
|
123
127
|
export function registerByteluckControls(url, payload) {
|
|
124
|
-
return
|
|
128
|
+
return _registerByteluckControls.apply(this, arguments);
|
|
129
|
+
}
|
|
130
|
+
function _registerByteluckControls() {
|
|
131
|
+
_registerByteluckControls = _async_to_generator(function(url, payload) {
|
|
125
132
|
var version, byteluckControls, componentsStr, components, controls;
|
|
126
133
|
return _ts_generator(this, function(_state) {
|
|
127
134
|
switch(_state.label){
|
|
@@ -175,5 +182,6 @@ export function registerByteluckControls(url, payload) {
|
|
|
175
182
|
];
|
|
176
183
|
}
|
|
177
184
|
});
|
|
178
|
-
})
|
|
185
|
+
});
|
|
186
|
+
return _registerByteluckControls.apply(this, arguments);
|
|
179
187
|
}
|
|
@@ -74,7 +74,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
74
74
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
75
75
|
}
|
|
76
76
|
function _ts_generator(thisArg, body) {
|
|
77
|
-
var f, y, t, _ = {
|
|
77
|
+
var f, y, t, g, _ = {
|
|
78
78
|
label: 0,
|
|
79
79
|
sent: function() {
|
|
80
80
|
if (t[0] & 1) throw t[1];
|
|
@@ -82,8 +82,12 @@ function _ts_generator(thisArg, body) {
|
|
|
82
82
|
},
|
|
83
83
|
trys: [],
|
|
84
84
|
ops: []
|
|
85
|
-
}
|
|
86
|
-
return g
|
|
85
|
+
};
|
|
86
|
+
return g = {
|
|
87
|
+
next: verb(0),
|
|
88
|
+
"throw": verb(1),
|
|
89
|
+
"return": verb(2)
|
|
90
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
87
91
|
return this;
|
|
88
92
|
}), g;
|
|
89
93
|
function verb(n) {
|
|
@@ -96,7 +100,7 @@ function _ts_generator(thisArg, body) {
|
|
|
96
100
|
}
|
|
97
101
|
function step(op) {
|
|
98
102
|
if (f) throw new TypeError("Generator is already executing.");
|
|
99
|
-
while(
|
|
103
|
+
while(_)try {
|
|
100
104
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
101
105
|
if (y = 0, t) op = [
|
|
102
106
|
op[0] & 2,
|
|
@@ -168,7 +172,10 @@ import { loadRemoteControl } from './loadRemoteScripts';
|
|
|
168
172
|
import { warn } from '@byteluck-fe/model-driven-shared';
|
|
169
173
|
import { getHackerControl } from './getHackerControl';
|
|
170
174
|
export function registerCustomControls(componentList, components, refLibs, payload) {
|
|
171
|
-
return
|
|
175
|
+
return _registerCustomControls.apply(this, arguments);
|
|
176
|
+
}
|
|
177
|
+
function _registerCustomControls() {
|
|
178
|
+
_registerCustomControls = _async_to_generator(function(componentList, components, refLibs, payload) {
|
|
172
179
|
var registered;
|
|
173
180
|
return _ts_generator(this, function(_state) {
|
|
174
181
|
switch(_state.label){
|
|
@@ -183,8 +190,8 @@ export function registerCustomControls(componentList, components, refLibs, paylo
|
|
|
183
190
|
//qiyu 2022-4-18 逐个加载自定义组件,只有异常的组件加载为hackerControl
|
|
184
191
|
return [
|
|
185
192
|
4,
|
|
186
|
-
Promise.all(components.map(function(
|
|
187
|
-
|
|
193
|
+
Promise.all(components.map(/*#__PURE__*/ function() {
|
|
194
|
+
var _ref = _async_to_generator(function(item) {
|
|
188
195
|
var isLoaded, control, url, e, link, reg, reg1, styleLink;
|
|
189
196
|
return _ts_generator(this, function(_state) {
|
|
190
197
|
switch(_state.label){
|
|
@@ -254,8 +261,11 @@ export function registerCustomControls(componentList, components, refLibs, paylo
|
|
|
254
261
|
];
|
|
255
262
|
}
|
|
256
263
|
});
|
|
257
|
-
})
|
|
258
|
-
|
|
264
|
+
});
|
|
265
|
+
return function(item) {
|
|
266
|
+
return _ref.apply(this, arguments);
|
|
267
|
+
};
|
|
268
|
+
}()))
|
|
259
269
|
];
|
|
260
270
|
case 1:
|
|
261
271
|
_state.sent();
|
|
@@ -281,7 +291,8 @@ export function registerCustomControls(componentList, components, refLibs, paylo
|
|
|
281
291
|
];
|
|
282
292
|
}
|
|
283
293
|
});
|
|
284
|
-
})
|
|
294
|
+
});
|
|
295
|
+
return _registerCustomControls.apply(this, arguments);
|
|
285
296
|
}
|
|
286
297
|
function pushControl(type, control, registered, isLoaded, props) {
|
|
287
298
|
if (type === 'runtime') {
|