@byteluck-fe/model-driven-core-all 6.2.0-beta.9 → 6.2.0-cyj.0

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.
@@ -1,7 +1,5 @@
1
1
  function _assert_this_initialized(self) {
2
- if (self === void 0) {
3
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
- }
2
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5
3
  return self;
6
4
  }
7
5
  function _call_super(_this, derived, args) {
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
9
7
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
8
  }
11
9
  function _class_call_check(instance, Constructor) {
12
- if (!(instance instanceof Constructor)) {
13
- throw new TypeError("Cannot call a class as a function");
14
- }
10
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
15
11
  }
16
12
  function _defineProperties(target, props) {
17
13
  for(var i = 0; i < props.length; i++){
@@ -35,9 +31,7 @@ function _define_property(obj, key, value) {
35
31
  configurable: true,
36
32
  writable: true
37
33
  });
38
- } else {
39
- obj[key] = value;
40
- }
34
+ } else obj[key] = value;
41
35
  return obj;
42
36
  }
43
37
  function _get_prototype_of(o) {
@@ -59,10 +53,16 @@ function _inherits(subClass, superClass) {
59
53
  });
60
54
  if (superClass) _set_prototype_of(subClass, superClass);
61
55
  }
56
+ function _is_native_reflect_construct() {
57
+ try {
58
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
59
+ } catch (_) {}
60
+ return (_is_native_reflect_construct = function() {
61
+ return !!result;
62
+ })();
63
+ }
62
64
  function _possible_constructor_return(self, call) {
63
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
64
- return call;
65
- }
65
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
66
66
  return _assert_this_initialized(self);
67
67
  }
68
68
  function _set_prototype_of(o, p) {
@@ -76,14 +76,6 @@ function _type_of(obj) {
76
76
  "@swc/helpers - typeof";
77
77
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
78
78
  }
79
- function _is_native_reflect_construct() {
80
- try {
81
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
82
- } catch (_) {}
83
- return (_is_native_reflect_construct = function() {
84
- return !!result;
85
- })();
86
- }
87
79
  import { RuntimeControl } from '@byteluck-fe/model-driven-core';
88
80
  import { DesignerControl } from '@byteluck-fe/model-driven-core';
89
81
  import { Property } from '@byteluck-fe/model-driven-core';
@@ -166,7 +158,7 @@ export function getHackerControl(comid, type, tipMessage) {
166
158
  }
167
159
  }
168
160
  },
169
- upgrade: function(schema) {
161
+ upgrade: function upgrade(schema) {
170
162
  return schema;
171
163
  }
172
164
  };
@@ -6,11 +6,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
6
6
  reject(error);
7
7
  return;
8
8
  }
9
- if (info.done) {
10
- resolve(value);
11
- } else {
12
- Promise.resolve(value).then(_next, _throw);
13
- }
9
+ if (info.done) resolve(value);
10
+ else Promise.resolve(value).then(_next, _throw);
14
11
  }
15
12
  function _async_to_generator(fn) {
16
13
  return function() {
@@ -36,9 +33,17 @@ function _ts_generator(thisArg, body) {
36
33
  },
37
34
  trys: [],
38
35
  ops: []
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() {
41
- return this;
36
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
37
+ return d(g, "next", {
38
+ value: verb(0)
39
+ }), d(g, "throw", {
40
+ value: verb(1)
41
+ }), d(g, "return", {
42
+ value: verb(2)
43
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
44
+ value: function() {
45
+ return this;
46
+ }
42
47
  }), g;
43
48
  function verb(n) {
44
49
  return function(v) {
@@ -146,7 +151,7 @@ export function loadScriptFromTag(url, globalModules) {
146
151
  var resetHackWindow = hackWindow(globalModules);
147
152
  script.src = url;
148
153
  script.type = 'text/javascript';
149
- var loadEnd = function() {
154
+ var loadEnd = function loadEnd() {
150
155
  document.head.removeChild(script);
151
156
  var index = jobs.findIndex(function(j) {
152
157
  return j === p;
@@ -6,11 +6,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
6
6
  reject(error);
7
7
  return;
8
8
  }
9
- if (info.done) {
10
- resolve(value);
11
- } else {
12
- Promise.resolve(value).then(_next, _throw);
13
- }
9
+ if (info.done) resolve(value);
10
+ else Promise.resolve(value).then(_next, _throw);
14
11
  }
15
12
  function _async_to_generator(fn) {
16
13
  return function() {
@@ -36,9 +33,17 @@ function _ts_generator(thisArg, body) {
36
33
  },
37
34
  trys: [],
38
35
  ops: []
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() {
41
- return this;
36
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
37
+ return d(g, "next", {
38
+ value: verb(0)
39
+ }), d(g, "throw", {
40
+ value: verb(1)
41
+ }), d(g, "return", {
42
+ value: verb(2)
43
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
44
+ value: function() {
45
+ return this;
46
+ }
42
47
  }), g;
43
48
  function verb(n) {
44
49
  return function(v) {
@@ -14,11 +14,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
14
14
  reject(error);
15
15
  return;
16
16
  }
17
- if (info.done) {
18
- resolve(value);
19
- } else {
20
- Promise.resolve(value).then(_next, _throw);
21
- }
17
+ if (info.done) resolve(value);
18
+ else Promise.resolve(value).then(_next, _throw);
22
19
  }
23
20
  function _async_to_generator(fn) {
24
21
  return function() {
@@ -60,19 +57,11 @@ function _iterable_to_array_limit(arr, i) {
60
57
  return _arr;
61
58
  }
62
59
  function _non_iterable_rest() {
63
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
60
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
64
61
  }
65
62
  function _sliced_to_array(arr, i) {
66
63
  return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
67
64
  }
68
- function _unsupported_iterable_to_array(o, minLen) {
69
- if (!o) return;
70
- if (typeof o === "string") return _array_like_to_array(o, minLen);
71
- var n = Object.prototype.toString.call(o).slice(8, -1);
72
- if (n === "Object" && o.constructor) n = o.constructor.name;
73
- if (n === "Map" || n === "Set") return Array.from(n);
74
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
75
- }
76
65
  function _ts_generator(thisArg, body) {
77
66
  var f, y, t, _ = {
78
67
  label: 0,
@@ -82,9 +71,17 @@ function _ts_generator(thisArg, body) {
82
71
  },
83
72
  trys: [],
84
73
  ops: []
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() {
87
- return this;
74
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
75
+ return d(g, "next", {
76
+ value: verb(0)
77
+ }), d(g, "throw", {
78
+ value: verb(1)
79
+ }), d(g, "return", {
80
+ value: verb(2)
81
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
82
+ value: function() {
83
+ return this;
84
+ }
88
85
  }), g;
89
86
  function verb(n) {
90
87
  return function(v) {
@@ -164,6 +161,14 @@ function _ts_generator(thisArg, body) {
164
161
  };
165
162
  }
166
163
  }
164
+ function _unsupported_iterable_to_array(o, minLen) {
165
+ if (!o) return;
166
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
167
+ var n = Object.prototype.toString.call(o).slice(8, -1);
168
+ if (n === "Object" && o.constructor) n = o.constructor.name;
169
+ if (n === "Map" || n === "Set") return Array.from(n);
170
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
171
+ }
167
172
  import { loadRemoteControl } from './loadRemoteScripts';
168
173
  import { warn } from '@byteluck-fe/model-driven-shared';
169
174
  import { getHackerControl } from './getHackerControl';
@@ -31,7 +31,7 @@ function _iterable_to_array_limit(arr, i) {
31
31
  return _arr;
32
32
  }
33
33
  function _non_iterable_rest() {
34
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
34
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
35
35
  }
36
36
  function _sliced_to_array(arr, i) {
37
37
  return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();