@byteluck-fe/model-driven-core-all 7.0.0-beta.4 → 7.0.0-beta.6

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.
@@ -166,7 +166,7 @@ export function getHackerControl(comid, type, tipMessage) {
166
166
  }
167
167
  }
168
168
  },
169
- upgrade: function upgrade(schema) {
169
+ upgrade: function(schema) {
170
170
  return schema;
171
171
  }
172
172
  };
@@ -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,17 +36,13 @@ function _ts_generator(thisArg, body) {
36
36
  },
37
37
  trys: [],
38
38
  ops: []
39
- }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
40
- return d(g, "next", {
41
- value: verb(0)
42
- }), d(g, "throw", {
43
- value: verb(1)
44
- }), d(g, "return", {
45
- value: verb(2)
46
- }), typeof Symbol === "function" && d(g, Symbol.iterator, {
47
- value: function() {
48
- return this;
49
- }
39
+ };
40
+ return g = {
41
+ next: verb(0),
42
+ "throw": verb(1),
43
+ "return": verb(2)
44
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
45
+ return this;
50
46
  }), g;
51
47
  function verb(n) {
52
48
  return function(v) {
@@ -58,7 +54,7 @@ function _ts_generator(thisArg, body) {
58
54
  }
59
55
  function step(op) {
60
56
  if (f) throw new TypeError("Generator is already executing.");
61
- while(g && (g = 0, op[0] && (_ = 0)), _)try {
57
+ while(_)try {
62
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;
63
59
  if (y = 0, t) op = [
64
60
  op[0] & 2,
@@ -154,7 +150,7 @@ export function loadScriptFromTag(url, globalModules) {
154
150
  var resetHackWindow = hackWindow(globalModules);
155
151
  script.src = url;
156
152
  script.type = 'text/javascript';
157
- var loadEnd = function loadEnd() {
153
+ var loadEnd = function() {
158
154
  document.head.removeChild(script);
159
155
  var index = jobs.findIndex(function(j) {
160
156
  return j === p;
@@ -212,7 +208,10 @@ export function loadRemoteControl(url, globalModules) {
212
208
  return loadScriptFromFetch(url, globalModules);
213
209
  }
214
210
  export function loadRemoteControls(urls, globalModules) {
215
- return _async_to_generator(function() {
211
+ return _loadRemoteControls.apply(this, arguments);
212
+ }
213
+ function _loadRemoteControls() {
214
+ _loadRemoteControls = _async_to_generator(function(urls, globalModules) {
216
215
  return _ts_generator(this, function(_state) {
217
216
  switch(_state.label){
218
217
  case 0:
@@ -229,5 +228,6 @@ export function loadRemoteControls(urls, globalModules) {
229
228
  ];
230
229
  }
231
230
  });
232
- })();
231
+ });
232
+ return _loadRemoteControls.apply(this, arguments);
233
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,17 +36,13 @@ function _ts_generator(thisArg, body) {
36
36
  },
37
37
  trys: [],
38
38
  ops: []
39
- }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
40
- return d(g, "next", {
41
- value: verb(0)
42
- }), d(g, "throw", {
43
- value: verb(1)
44
- }), d(g, "return", {
45
- value: verb(2)
46
- }), typeof Symbol === "function" && d(g, Symbol.iterator, {
47
- value: function() {
48
- return this;
49
- }
39
+ };
40
+ return g = {
41
+ next: verb(0),
42
+ "throw": verb(1),
43
+ "return": verb(2)
44
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
45
+ return this;
50
46
  }), g;
51
47
  function verb(n) {
52
48
  return function(v) {
@@ -58,7 +54,7 @@ function _ts_generator(thisArg, body) {
58
54
  }
59
55
  function step(op) {
60
56
  if (f) throw new TypeError("Generator is already executing.");
61
- while(g && (g = 0, op[0] && (_ = 0)), _)try {
57
+ while(_)try {
62
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;
63
59
  if (y = 0, t) op = [
64
60
  op[0] & 2,
@@ -130,7 +126,10 @@ import { getHackerControl } from './getHackerControl';
130
126
  import { nativeFetch, loadRemoteControl } from './loadRemoteScripts';
131
127
  import { getLocaleText } from '@byteluck-fe/locale-message';
132
128
  export function registerByteluckControls(url, payload) {
133
- return _async_to_generator(function() {
129
+ return _registerByteluckControls.apply(this, arguments);
130
+ }
131
+ function _registerByteluckControls() {
132
+ _registerByteluckControls = _async_to_generator(function(url, payload) {
134
133
  var version, byteluckControls, componentsStr, components, controls;
135
134
  return _ts_generator(this, function(_state) {
136
135
  switch(_state.label){
@@ -184,5 +183,6 @@ export function registerByteluckControls(url, payload) {
184
183
  ];
185
184
  }
186
185
  });
187
- })();
186
+ });
187
+ return _registerByteluckControls.apply(this, arguments);
188
188
  }
@@ -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,17 +82,13 @@ function _ts_generator(thisArg, body) {
82
82
  },
83
83
  trys: [],
84
84
  ops: []
85
- }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
86
- return d(g, "next", {
87
- value: verb(0)
88
- }), d(g, "throw", {
89
- value: verb(1)
90
- }), d(g, "return", {
91
- value: verb(2)
92
- }), typeof Symbol === "function" && d(g, Symbol.iterator, {
93
- value: function() {
94
- return this;
95
- }
85
+ };
86
+ return g = {
87
+ next: verb(0),
88
+ "throw": verb(1),
89
+ "return": verb(2)
90
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
91
+ return this;
96
92
  }), g;
97
93
  function verb(n) {
98
94
  return function(v) {
@@ -104,7 +100,7 @@ function _ts_generator(thisArg, body) {
104
100
  }
105
101
  function step(op) {
106
102
  if (f) throw new TypeError("Generator is already executing.");
107
- while(g && (g = 0, op[0] && (_ = 0)), _)try {
103
+ while(_)try {
108
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;
109
105
  if (y = 0, t) op = [
110
106
  op[0] & 2,
@@ -176,7 +172,10 @@ import { loadRemoteControl } from './loadRemoteScripts';
176
172
  import { warn } from '@byteluck-fe/model-driven-shared';
177
173
  import { getHackerControl } from './getHackerControl';
178
174
  export function registerCustomControls(componentList, components, refLibs, payload) {
179
- return _async_to_generator(function() {
175
+ return _registerCustomControls.apply(this, arguments);
176
+ }
177
+ function _registerCustomControls() {
178
+ _registerCustomControls = _async_to_generator(function(componentList, components, refLibs, payload) {
180
179
  var registered;
181
180
  return _ts_generator(this, function(_state) {
182
181
  switch(_state.label){
@@ -191,8 +190,8 @@ export function registerCustomControls(componentList, components, refLibs, paylo
191
190
  //qiyu 2022-4-18 逐个加载自定义组件,只有异常的组件加载为hackerControl
192
191
  return [
193
192
  4,
194
- Promise.all(components.map(function(item) {
195
- return _async_to_generator(function() {
193
+ Promise.all(components.map(/*#__PURE__*/ function() {
194
+ var _ref = _async_to_generator(function(item) {
196
195
  var isLoaded, control, url, e, link, reg, reg1, styleLink;
197
196
  return _ts_generator(this, function(_state) {
198
197
  switch(_state.label){
@@ -263,8 +262,11 @@ export function registerCustomControls(componentList, components, refLibs, paylo
263
262
  ];
264
263
  }
265
264
  });
266
- })();
267
- }))
265
+ });
266
+ return function(item) {
267
+ return _ref.apply(this, arguments);
268
+ };
269
+ }()))
268
270
  ];
269
271
  case 1:
270
272
  _state.sent();
@@ -290,7 +292,8 @@ export function registerCustomControls(componentList, components, refLibs, paylo
290
292
  ];
291
293
  }
292
294
  });
293
- })();
295
+ });
296
+ return _registerCustomControls.apply(this, arguments);
294
297
  }
295
298
  function pushControl(type, control, registered, isLoaded, props) {
296
299
  if (type === 'runtime') {