@byteluck-fe/model-driven-core-all 4.38.0-lx0 → 4.41.0-lx9

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, g, _ = {
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 _loadRemoteControls.apply(this, arguments);
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, g, _ = {
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,
@@ -125,10 +121,7 @@ function _ts_generator(thisArg, body) {
125
121
  import { getHackerControl } from './getHackerControl';
126
122
  import { nativeFetch, loadRemoteControl } from './loadRemoteScripts';
127
123
  export function registerByteluckControls(url, payload) {
128
- return _registerByteluckControls.apply(this, arguments);
129
- }
130
- function _registerByteluckControls() {
131
- _registerByteluckControls = _async_to_generator(function(url, payload) {
124
+ return _async_to_generator(function() {
132
125
  var version, byteluckControls, componentsStr, components, controls;
133
126
  return _ts_generator(this, function(_state) {
134
127
  switch(_state.label){
@@ -182,6 +175,5 @@ function _registerByteluckControls() {
182
175
  ];
183
176
  }
184
177
  });
185
- });
186
- return _registerByteluckControls.apply(this, arguments);
178
+ })();
187
179
  }
@@ -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, g, _ = {
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 _registerCustomControls.apply(this, arguments);
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(/*#__PURE__*/ function() {
194
- var _ref = _async_to_generator(function(item) {
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){
@@ -261,11 +254,8 @@ function _registerCustomControls() {
261
254
  ];
262
255
  }
263
256
  });
264
- });
265
- return function(item) {
266
- return _ref.apply(this, arguments);
267
- };
268
- }()))
257
+ })();
258
+ }))
269
259
  ];
270
260
  case 1:
271
261
  _state.sent();
@@ -291,8 +281,7 @@ function _registerCustomControls() {
291
281
  ];
292
282
  }
293
283
  });
294
- });
295
- return _registerCustomControls.apply(this, arguments);
284
+ })();
296
285
  }
297
286
  function pushControl(type, control, registered, isLoaded, props) {
298
287
  if (type === 'runtime') {