@byteluck-fe/model-driven-engine 2.2.7 → 2.2.11

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,27 +1,27 @@
1
- function _arrayLikeToArray(arr, len) {
1
+ function _array_like_to_array(arr, len) {
2
2
  if (len == null || len > arr.length) len = arr.length;
3
3
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
4
4
  return arr2;
5
5
  }
6
- function _arrayWithoutHoles(arr) {
7
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
6
+ function _array_without_holes(arr) {
7
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
8
8
  }
9
- function _iterableToArray(iter) {
9
+ function _iterable_to_array(iter) {
10
10
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
11
11
  }
12
- function _nonIterableSpread() {
12
+ function _non_iterable_spread() {
13
13
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
14
14
  }
15
- function _toConsumableArray(arr) {
16
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
15
+ function _to_consumable_array(arr) {
16
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
17
17
  }
18
- function _unsupportedIterableToArray(o, minLen) {
18
+ function _unsupported_iterable_to_array(o, minLen) {
19
19
  if (!o) return;
20
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
20
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
21
21
  var n = Object.prototype.toString.call(o).slice(8, -1);
22
22
  if (n === "Object" && o.constructor) n = o.constructor.name;
23
23
  if (n === "Map" || n === "Set") return Array.from(n);
24
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
24
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
25
25
  }
26
26
  var cc = console;
27
27
  import { CONTROL_BASE_TYPE, error, logerror } from "@byteluck-fe/model-driven-shared";
@@ -205,7 +205,7 @@ function flatInstanceForChildren(controls) {
205
205
  result.push(item);
206
206
  if (item.controlType === "layout") {
207
207
  var _result;
208
- (_result = result).push.apply(_result, _toConsumableArray(flatInstanceForChildren(item.children)));
208
+ (_result = result).push.apply(_result, _to_consumable_array(flatInstanceForChildren(item.children)));
209
209
  }
210
210
  });
211
211
  return result;