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