@byteluck-fe/model-driven-engine 2.7.0-alpha.23 → 2.7.0-alpha.25

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,10 +1,10 @@
1
- function _class_call_check(instance, Constructor) {
1
+ function _classCallCheck(instance, Constructor) {
2
2
  if (!(instance instanceof Constructor)) {
3
3
  throw new TypeError("Cannot call a class as a function");
4
4
  }
5
5
  }
6
6
  var Plugin = function Plugin() {
7
7
  "use strict";
8
- _class_call_check(this, Plugin);
8
+ _classCallCheck(this, Plugin);
9
9
  };
10
10
  export { Plugin };
@@ -1,10 +1,10 @@
1
- function _assert_this_initialized(self) {
1
+ function _assertThisInitialized(self) {
2
2
  if (self === void 0) {
3
3
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
4
  }
5
5
  return self;
6
6
  }
7
- function _class_call_check(instance, Constructor) {
7
+ function _classCallCheck(instance, Constructor) {
8
8
  if (!(instance instanceof Constructor)) {
9
9
  throw new TypeError("Cannot call a class as a function");
10
10
  }
@@ -18,12 +18,12 @@ function _defineProperties(target, props) {
18
18
  Object.defineProperty(target, descriptor.key, descriptor);
19
19
  }
20
20
  }
21
- function _create_class(Constructor, protoProps, staticProps) {
21
+ function _createClass(Constructor, protoProps, staticProps) {
22
22
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
23
23
  if (staticProps) _defineProperties(Constructor, staticProps);
24
24
  return Constructor;
25
25
  }
26
- function _define_property(obj, key, value) {
26
+ function _defineProperty(obj, key, value) {
27
27
  if (key in obj) {
28
28
  Object.defineProperty(obj, key, {
29
29
  value: value,
@@ -36,11 +36,11 @@ function _define_property(obj, key, value) {
36
36
  }
37
37
  return obj;
38
38
  }
39
- function _get_prototype_of(o) {
40
- _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
39
+ function _getPrototypeOf(o) {
40
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
41
41
  return o.__proto__ || Object.getPrototypeOf(o);
42
42
  };
43
- return _get_prototype_of(o);
43
+ return _getPrototypeOf(o);
44
44
  }
45
45
  function _inherits(subClass, superClass) {
46
46
  if (typeof superClass !== "function" && superClass !== null) {
@@ -53,26 +53,26 @@ function _inherits(subClass, superClass) {
53
53
  configurable: true
54
54
  }
55
55
  });
56
- if (superClass) _set_prototype_of(subClass, superClass);
56
+ if (superClass) _setPrototypeOf(subClass, superClass);
57
57
  }
58
- function _possible_constructor_return(self, call) {
59
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
58
+ function _possibleConstructorReturn(self, call) {
59
+ if (call && (_typeof(call) === "object" || typeof call === "function")) {
60
60
  return call;
61
61
  }
62
- return _assert_this_initialized(self);
62
+ return _assertThisInitialized(self);
63
63
  }
64
- function _set_prototype_of(o, p) {
65
- _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
64
+ function _setPrototypeOf(o, p) {
65
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
66
66
  o.__proto__ = p;
67
67
  return o;
68
68
  };
69
- return _set_prototype_of(o, p);
69
+ return _setPrototypeOf(o, p);
70
70
  }
71
- function _type_of(obj) {
71
+ var _typeof = function(obj) {
72
72
  "@swc/helpers - typeof";
73
73
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
74
- }
75
- function _is_native_reflect_construct() {
74
+ };
75
+ function _isNativeReflectConstruct() {
76
76
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
77
77
  if (Reflect.construct.sham) return false;
78
78
  if (typeof Proxy === "function") return true;
@@ -83,17 +83,17 @@ function _is_native_reflect_construct() {
83
83
  return false;
84
84
  }
85
85
  }
86
- function _create_super(Derived) {
87
- var hasNativeReflectConstruct = _is_native_reflect_construct();
86
+ function _createSuper(Derived) {
87
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
88
88
  return function _createSuperInternal() {
89
- var Super = _get_prototype_of(Derived), result;
89
+ var Super = _getPrototypeOf(Derived), result;
90
90
  if (hasNativeReflectConstruct) {
91
- var NewTarget = _get_prototype_of(this).constructor;
91
+ var NewTarget = _getPrototypeOf(this).constructor;
92
92
  result = Reflect.construct(Super, arguments, NewTarget);
93
93
  } else {
94
94
  result = Super.apply(this, arguments);
95
95
  }
96
- return _possible_constructor_return(this, result);
96
+ return _possibleConstructorReturn(this, result);
97
97
  };
98
98
  }
99
99
  import { RegisterControls } from "@byteluck-fe/model-driven-core";
@@ -102,22 +102,22 @@ import { hasChildrenControl, loopDataViewControl, loopFormControl } from "../uti
102
102
  export var Runtime = /*#__PURE__*/ function(RegisterControls) {
103
103
  "use strict";
104
104
  _inherits(Runtime, RegisterControls);
105
- var _super = _create_super(Runtime);
105
+ var _super = _createSuper(Runtime);
106
106
  function Runtime(props) {
107
- _class_call_check(this, Runtime);
107
+ _classCallCheck(this, Runtime);
108
108
  var _this;
109
109
  _this = _super.call(this, "Runtime");
110
- _define_property(_assert_this_initialized(_this), "_schema", void 0);
111
- _define_property(_assert_this_initialized(_this), "_instance", void 0);
112
- _define_property(_assert_this_initialized(_this), "_flatInstances", []);
113
- _define_property(_assert_this_initialized(_this), "_instanceMap", {});
110
+ _defineProperty(_assertThisInitialized(_this), "_schema", void 0);
111
+ _defineProperty(_assertThisInitialized(_this), "_instance", void 0);
112
+ _defineProperty(_assertThisInitialized(_this), "_flatInstances", []);
113
+ _defineProperty(_assertThisInitialized(_this), "_instanceMap", {});
114
114
  var schema = props.schema;
115
115
  _this._schema = schema;
116
116
  _this._instance = _this.createControl(schema, props.beforeCreateInstance);
117
117
  _this.getFlatInstances();
118
118
  return _this;
119
119
  }
120
- _create_class(Runtime, [
120
+ _createClass(Runtime, [
121
121
  {
122
122
  key: "getFlatInstances",
123
123
  value: function getFlatInstances() {
@@ -1,4 +1,4 @@
1
- function _class_call_check(instance, Constructor) {
1
+ function _classCallCheck(instance, Constructor) {
2
2
  if (!(instance instanceof Constructor)) {
3
3
  throw new TypeError("Cannot call a class as a function");
4
4
  }
@@ -12,12 +12,12 @@ function _defineProperties(target, props) {
12
12
  Object.defineProperty(target, descriptor.key, descriptor);
13
13
  }
14
14
  }
15
- function _create_class(Constructor, protoProps, staticProps) {
15
+ function _createClass(Constructor, protoProps, staticProps) {
16
16
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
17
17
  if (staticProps) _defineProperties(Constructor, staticProps);
18
18
  return Constructor;
19
19
  }
20
- function _define_property(obj, key, value) {
20
+ function _defineProperty(obj, key, value) {
21
21
  if (key in obj) {
22
22
  Object.defineProperty(obj, key, {
23
23
  value: value,
@@ -30,7 +30,7 @@ function _define_property(obj, key, value) {
30
30
  }
31
31
  return obj;
32
32
  }
33
- function _object_spread(target) {
33
+ function _objectSpread(target) {
34
34
  for(var i = 1; i < arguments.length; i++){
35
35
  var source = arguments[i] != null ? arguments[i] : {};
36
36
  var ownKeys = Object.keys(source);
@@ -40,7 +40,7 @@ function _object_spread(target) {
40
40
  }));
41
41
  }
42
42
  ownKeys.forEach(function(key) {
43
- _define_property(target, key, source[key]);
43
+ _defineProperty(target, key, source[key]);
44
44
  });
45
45
  }
46
46
  return target;
@@ -51,13 +51,13 @@ import { loopDataViewControl, loopFormControl, buildUUID } from "../utils/runtim
51
51
  var Store = /*#__PURE__*/ function() {
52
52
  "use strict";
53
53
  function Store(props) {
54
- _class_call_check(this, Store);
55
- _define_property(this, "emptyState", void 0);
56
- _define_property(this, "state", void 0);
57
- _define_property(this, "dataBindMapping", void 0 // 主要提供给二开使用
54
+ _classCallCheck(this, Store);
55
+ _defineProperty(this, "emptyState", void 0);
56
+ _defineProperty(this, "state", void 0);
57
+ _defineProperty(this, "dataBindMapping", void 0 // 主要提供给二开使用
58
58
  );
59
- _define_property(this, "controlIdMapping", void 0);
60
- _define_property(this, "defaultState", void 0);
59
+ _defineProperty(this, "controlIdMapping", void 0);
60
+ _defineProperty(this, "defaultState", void 0);
61
61
  var _init = init(props.instance), state = _init.state, emptyState = _init.emptyState, databindMapping = _init.databindMapping, controlidMapping = _init.controlidMapping, defaultState = _init.defaultState;
62
62
  this.emptyState = emptyState;
63
63
  this.state = state;
@@ -65,7 +65,7 @@ var Store = /*#__PURE__*/ function() {
65
65
  this.controlIdMapping = controlidMapping;
66
66
  this.defaultState = defaultState;
67
67
  }
68
- _create_class(Store, [
68
+ _createClass(Store, [
69
69
  {
70
70
  /**
71
71
  * 使用该方法仅改变数据,不会表单触发事件。明细表可全量赋值也可根据rowIndex进行单独设置
@@ -200,7 +200,6 @@ var Store = /*#__PURE__*/ function() {
200
200
  {
201
201
  key: "getDataBind",
202
202
  value: function getDataBind(controlId) {
203
- var _result;
204
203
  var result = this.controlIdMapping[controlId];
205
204
  if (result) {
206
205
  return result.dataBind;
@@ -216,7 +215,7 @@ var Store = /*#__PURE__*/ function() {
216
215
  }
217
216
  }
218
217
  }
219
- return (_result = result) === null || _result === void 0 ? void 0 : _result.dataBind;
218
+ return result === null || result === void 0 ? void 0 : result.dataBind;
220
219
  }
221
220
  }
222
221
  ]);
@@ -269,7 +268,7 @@ item) {
269
268
  });
270
269
  var _item_props_defaultRows, _fill_map;
271
270
  dataViewState[item.id] = (_fill_map = new Array((_item_props_defaultRows = item.props.defaultRows) !== null && _item_props_defaultRows !== void 0 ? _item_props_defaultRows : 1).fill(0).map(function() {
272
- return _object_spread({
271
+ return _objectSpread({
273
272
  uid: "new:" + buildUUID("uid")
274
273
  }, JSONCopy(emptyTemplate));
275
274
  })) !== null && _fill_map !== void 0 ? _fill_map : [];
@@ -280,7 +279,7 @@ function buildDataBindMapping(data, dataViewId, // @ts-ignore
280
279
  item) {
281
280
  // if (item instanceof RuntimeFormControl) {
282
281
  if (item.controlType === CONTROL_BASE_TYPE.FORM) {
283
- var _item_props_dataBind, _item_props;
282
+ var _item_props, _item_props_dataBind;
284
283
  // if (item.props.dataBind instanceof ObjectDataBind) {
285
284
  if (!isDataBind(item.props.dataBind)) {
286
285
  // 特殊的dataBind,比如:金额是currency+amount两个key组成的,日期区间,继承自ObjectDataBind的需要通过Object.keys拿到多个databind
@@ -388,7 +387,7 @@ item) {
388
387
  loopFormSchema(item.props.headers, function(formControl) {
389
388
  var _data_item_id;
390
389
  var _data_item_id_children;
391
- Object.assign((_data_item_id_children = (_data_item_id = data[item.id]) === null || _data_item_id === void 0 ? void 0 : _data_item_id.children) !== null && _data_item_id_children !== void 0 ? _data_item_id_children : {}, _define_property({}, formControl.id, {
390
+ Object.assign((_data_item_id_children = (_data_item_id = data[item.id]) === null || _data_item_id === void 0 ? void 0 : _data_item_id.children) !== null && _data_item_id_children !== void 0 ? _data_item_id_children : {}, _defineProperty({}, formControl.id, {
392
391
  dataBind: formControl.props.dataBind
393
392
  }));
394
393
  });
@@ -1,18 +1,18 @@
1
- function _array_like_to_array(arr, len) {
1
+ function _arrayLikeToArray(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 _array_with_holes(arr) {
6
+ function _arrayWithHoles(arr) {
7
7
  if (Array.isArray(arr)) return arr;
8
8
  }
9
- function _assert_this_initialized(self) {
9
+ function _assertThisInitialized(self) {
10
10
  if (self === void 0) {
11
11
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
12
12
  }
13
13
  return self;
14
14
  }
15
- function _class_call_check(instance, Constructor) {
15
+ function _classCallCheck(instance, Constructor) {
16
16
  if (!(instance instanceof Constructor)) {
17
17
  throw new TypeError("Cannot call a class as a function");
18
18
  }
@@ -26,12 +26,12 @@ function _defineProperties(target, props) {
26
26
  Object.defineProperty(target, descriptor.key, descriptor);
27
27
  }
28
28
  }
29
- function _create_class(Constructor, protoProps, staticProps) {
29
+ function _createClass(Constructor, protoProps, staticProps) {
30
30
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
31
31
  if (staticProps) _defineProperties(Constructor, staticProps);
32
32
  return Constructor;
33
33
  }
34
- function _define_property(obj, key, value) {
34
+ function _defineProperty(obj, key, value) {
35
35
  if (key in obj) {
36
36
  Object.defineProperty(obj, key, {
37
37
  value: value,
@@ -44,11 +44,11 @@ function _define_property(obj, key, value) {
44
44
  }
45
45
  return obj;
46
46
  }
47
- function _get_prototype_of(o) {
48
- _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
47
+ function _getPrototypeOf(o) {
48
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
49
49
  return o.__proto__ || Object.getPrototypeOf(o);
50
50
  };
51
- return _get_prototype_of(o);
51
+ return _getPrototypeOf(o);
52
52
  }
53
53
  function _inherits(subClass, superClass) {
54
54
  if (typeof superClass !== "function" && superClass !== null) {
@@ -61,9 +61,9 @@ function _inherits(subClass, superClass) {
61
61
  configurable: true
62
62
  }
63
63
  });
64
- if (superClass) _set_prototype_of(subClass, superClass);
64
+ if (superClass) _setPrototypeOf(subClass, superClass);
65
65
  }
66
- function _iterable_to_array_limit(arr, i) {
66
+ function _iterableToArrayLimit(arr, i) {
67
67
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
68
68
  if (_i == null) return;
69
69
  var _arr = [];
@@ -87,10 +87,10 @@ function _iterable_to_array_limit(arr, i) {
87
87
  }
88
88
  return _arr;
89
89
  }
90
- function _non_iterable_rest() {
90
+ function _nonIterableRest() {
91
91
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
92
92
  }
93
- function _object_spread(target) {
93
+ function _objectSpread(target) {
94
94
  for(var i = 1; i < arguments.length; i++){
95
95
  var source = arguments[i] != null ? arguments[i] : {};
96
96
  var ownKeys = Object.keys(source);
@@ -100,40 +100,40 @@ function _object_spread(target) {
100
100
  }));
101
101
  }
102
102
  ownKeys.forEach(function(key) {
103
- _define_property(target, key, source[key]);
103
+ _defineProperty(target, key, source[key]);
104
104
  });
105
105
  }
106
106
  return target;
107
107
  }
108
- function _possible_constructor_return(self, call) {
109
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
108
+ function _possibleConstructorReturn(self, call) {
109
+ if (call && (_typeof(call) === "object" || typeof call === "function")) {
110
110
  return call;
111
111
  }
112
- return _assert_this_initialized(self);
112
+ return _assertThisInitialized(self);
113
113
  }
114
- function _set_prototype_of(o, p) {
115
- _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
114
+ function _setPrototypeOf(o, p) {
115
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
116
116
  o.__proto__ = p;
117
117
  return o;
118
118
  };
119
- return _set_prototype_of(o, p);
119
+ return _setPrototypeOf(o, p);
120
120
  }
121
- function _sliced_to_array(arr, i) {
122
- return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
121
+ function _slicedToArray(arr, i) {
122
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
123
123
  }
124
- function _type_of(obj) {
124
+ var _typeof = function(obj) {
125
125
  "@swc/helpers - typeof";
126
126
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
127
- }
128
- function _unsupported_iterable_to_array(o, minLen) {
127
+ };
128
+ function _unsupportedIterableToArray(o, minLen) {
129
129
  if (!o) return;
130
- if (typeof o === "string") return _array_like_to_array(o, minLen);
130
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
131
131
  var n = Object.prototype.toString.call(o).slice(8, -1);
132
132
  if (n === "Object" && o.constructor) n = o.constructor.name;
133
133
  if (n === "Map" || n === "Set") return Array.from(n);
134
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
134
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
135
135
  }
136
- function _is_native_reflect_construct() {
136
+ function _isNativeReflectConstruct() {
137
137
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
138
138
  if (Reflect.construct.sham) return false;
139
139
  if (typeof Proxy === "function") return true;
@@ -144,17 +144,17 @@ function _is_native_reflect_construct() {
144
144
  return false;
145
145
  }
146
146
  }
147
- function _create_super(Derived) {
148
- var hasNativeReflectConstruct = _is_native_reflect_construct();
147
+ function _createSuper(Derived) {
148
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
149
149
  return function _createSuperInternal() {
150
- var Super = _get_prototype_of(Derived), result;
150
+ var Super = _getPrototypeOf(Derived), result;
151
151
  if (hasNativeReflectConstruct) {
152
- var NewTarget = _get_prototype_of(this).constructor;
152
+ var NewTarget = _getPrototypeOf(this).constructor;
153
153
  result = Reflect.construct(Super, arguments, NewTarget);
154
154
  } else {
155
155
  result = Super.apply(this, arguments);
156
156
  }
157
- return _possible_constructor_return(this, result);
157
+ return _possibleConstructorReturn(this, result);
158
158
  };
159
159
  }
160
160
  import { isArray, isFunction, isString, isJSONArray, isJSONObject, isNumber, isNumberAndEmptyStringArray, isPlainObject, isStringArray, FieldTypes, isObject } from "@byteluck-fe/model-driven-shared";
@@ -162,17 +162,17 @@ import { AddressValue, AmountValue, CalcValue, RangeDateValue } from "@byteluck-
162
162
  import { camelizeKeys } from "humps";
163
163
  var ValueChecker = function ValueChecker() {
164
164
  "use strict";
165
- _class_call_check(this, ValueChecker);
165
+ _classCallCheck(this, ValueChecker);
166
166
  };
167
167
  var StringValueChecker = /*#__PURE__*/ function(ValueChecker) {
168
168
  "use strict";
169
169
  _inherits(StringValueChecker, ValueChecker);
170
- var _super = _create_super(StringValueChecker);
170
+ var _super = _createSuper(StringValueChecker);
171
171
  function StringValueChecker() {
172
- _class_call_check(this, StringValueChecker);
172
+ _classCallCheck(this, StringValueChecker);
173
173
  return _super.apply(this, arguments);
174
174
  }
175
- _create_class(StringValueChecker, [
175
+ _createClass(StringValueChecker, [
176
176
  {
177
177
  key: "validate",
178
178
  value: function validate(value) {
@@ -200,12 +200,12 @@ var StringValueChecker = /*#__PURE__*/ function(ValueChecker) {
200
200
  var NumberValueChecker = /*#__PURE__*/ function(ValueChecker) {
201
201
  "use strict";
202
202
  _inherits(NumberValueChecker, ValueChecker);
203
- var _super = _create_super(NumberValueChecker);
203
+ var _super = _createSuper(NumberValueChecker);
204
204
  function NumberValueChecker() {
205
- _class_call_check(this, NumberValueChecker);
205
+ _classCallCheck(this, NumberValueChecker);
206
206
  return _super.apply(this, arguments);
207
207
  }
208
- _create_class(NumberValueChecker, [
208
+ _createClass(NumberValueChecker, [
209
209
  {
210
210
  // 数字类型允许是空字符串,用于置空数据
211
211
  key: "validate",
@@ -232,12 +232,12 @@ var NumberValueChecker = /*#__PURE__*/ function(ValueChecker) {
232
232
  var StringArrayValueChecker = /*#__PURE__*/ function(ValueChecker) {
233
233
  "use strict";
234
234
  _inherits(StringArrayValueChecker, ValueChecker);
235
- var _super = _create_super(StringArrayValueChecker);
235
+ var _super = _createSuper(StringArrayValueChecker);
236
236
  function StringArrayValueChecker() {
237
- _class_call_check(this, StringArrayValueChecker);
237
+ _classCallCheck(this, StringArrayValueChecker);
238
238
  return _super.apply(this, arguments);
239
239
  }
240
- _create_class(StringArrayValueChecker, [
240
+ _createClass(StringArrayValueChecker, [
241
241
  {
242
242
  key: "validate",
243
243
  value: function validate(value) {
@@ -277,12 +277,12 @@ var StringArrayValueChecker = /*#__PURE__*/ function(ValueChecker) {
277
277
  var NumberArrayValueChecker = /*#__PURE__*/ function(ValueChecker) {
278
278
  "use strict";
279
279
  _inherits(NumberArrayValueChecker, ValueChecker);
280
- var _super = _create_super(NumberArrayValueChecker);
280
+ var _super = _createSuper(NumberArrayValueChecker);
281
281
  function NumberArrayValueChecker() {
282
- _class_call_check(this, NumberArrayValueChecker);
282
+ _classCallCheck(this, NumberArrayValueChecker);
283
283
  return _super.apply(this, arguments);
284
284
  }
285
- _create_class(NumberArrayValueChecker, [
285
+ _createClass(NumberArrayValueChecker, [
286
286
  {
287
287
  key: "validate",
288
288
  value: function validate(value) {
@@ -328,12 +328,12 @@ var NumberArrayValueChecker = /*#__PURE__*/ function(ValueChecker) {
328
328
  var MoneyValueChecker = /*#__PURE__*/ function(ValueChecker) {
329
329
  "use strict";
330
330
  _inherits(MoneyValueChecker, ValueChecker);
331
- var _super = _create_super(MoneyValueChecker);
331
+ var _super = _createSuper(MoneyValueChecker);
332
332
  function MoneyValueChecker() {
333
- _class_call_check(this, MoneyValueChecker);
333
+ _classCallCheck(this, MoneyValueChecker);
334
334
  return _super.apply(this, arguments);
335
335
  }
336
- _create_class(MoneyValueChecker, [
336
+ _createClass(MoneyValueChecker, [
337
337
  {
338
338
  key: "validate",
339
339
  value: function validate(value) {
@@ -345,19 +345,18 @@ var MoneyValueChecker = /*#__PURE__*/ function(ValueChecker) {
345
345
  key: "transform",
346
346
  value: function transform(value, oldValue) {
347
347
  if (value === undefined || value === null || value === "") {
348
- var _oldValue;
349
348
  return new AmountValue({
350
- currency: (_oldValue = oldValue) === null || _oldValue === void 0 ? void 0 : _oldValue.currency
349
+ currency: oldValue === null || oldValue === void 0 ? void 0 : oldValue.currency
351
350
  });
352
351
  }
353
352
  var result;
354
353
  if (isPlainObject(value)) {
355
- result = new AmountValue(_object_spread({}, oldValue, value));
354
+ result = new AmountValue(_objectSpread({}, oldValue, value));
356
355
  }
357
356
  if (isString(value) && isJSONObject(value)) {
358
357
  try {
359
358
  var newValue = JSON.parse(value);
360
- result = new AmountValue(_object_spread({}, oldValue, newValue));
359
+ result = new AmountValue(_objectSpread({}, oldValue, newValue));
361
360
  } catch (e) {}
362
361
  }
363
362
  if (result) {
@@ -380,12 +379,12 @@ var MoneyValueChecker = /*#__PURE__*/ function(ValueChecker) {
380
379
  var TimeScopeValueChecker = /*#__PURE__*/ function(ValueChecker) {
381
380
  "use strict";
382
381
  _inherits(TimeScopeValueChecker, ValueChecker);
383
- var _super = _create_super(TimeScopeValueChecker);
382
+ var _super = _createSuper(TimeScopeValueChecker);
384
383
  function TimeScopeValueChecker() {
385
- _class_call_check(this, TimeScopeValueChecker);
384
+ _classCallCheck(this, TimeScopeValueChecker);
386
385
  return _super.apply(this, arguments);
387
386
  }
388
- _create_class(TimeScopeValueChecker, [
387
+ _createClass(TimeScopeValueChecker, [
389
388
  {
390
389
  key: "validate",
391
390
  value: function validate(value) {
@@ -401,12 +400,12 @@ var TimeScopeValueChecker = /*#__PURE__*/ function(ValueChecker) {
401
400
  }
402
401
  var result;
403
402
  if (isPlainObject(value)) {
404
- result = new RangeDateValue(_object_spread({}, oldValue, value));
403
+ result = new RangeDateValue(_objectSpread({}, oldValue, value));
405
404
  }
406
405
  if (isString(value) && isJSONObject(value)) {
407
406
  try {
408
407
  var newValue = JSON.parse(value);
409
- result = new RangeDateValue(_object_spread({}, oldValue, newValue));
408
+ result = new RangeDateValue(_objectSpread({}, oldValue, newValue));
410
409
  } catch (e) {}
411
410
  }
412
411
  if (result) {
@@ -428,12 +427,12 @@ var TimeScopeValueChecker = /*#__PURE__*/ function(ValueChecker) {
428
427
  var CalcValueChecker = /*#__PURE__*/ function(ValueChecker) {
429
428
  "use strict";
430
429
  _inherits(CalcValueChecker, ValueChecker);
431
- var _super = _create_super(CalcValueChecker);
430
+ var _super = _createSuper(CalcValueChecker);
432
431
  function CalcValueChecker() {
433
- _class_call_check(this, CalcValueChecker);
432
+ _classCallCheck(this, CalcValueChecker);
434
433
  return _super.apply(this, arguments);
435
434
  }
436
- _create_class(CalcValueChecker, [
435
+ _createClass(CalcValueChecker, [
437
436
  {
438
437
  key: "validate",
439
438
  value: function validate(value) {
@@ -445,19 +444,18 @@ var CalcValueChecker = /*#__PURE__*/ function(ValueChecker) {
445
444
  key: "transform",
446
445
  value: function transform(value, oldValue) {
447
446
  if (value === undefined || value === null || value === "") {
448
- var _oldValue;
449
447
  return new CalcValue({
450
- unit: (_oldValue = oldValue) === null || _oldValue === void 0 ? void 0 : _oldValue.unit
448
+ unit: oldValue === null || oldValue === void 0 ? void 0 : oldValue.unit
451
449
  });
452
450
  }
453
451
  var result;
454
452
  if (isPlainObject(value)) {
455
- result = new CalcValue(_object_spread({}, oldValue, value));
453
+ result = new CalcValue(_objectSpread({}, oldValue, value));
456
454
  }
457
455
  if (isString(value) && isJSONObject(value)) {
458
456
  try {
459
457
  var newValue = JSON.parse(value);
460
- result = new CalcValue(_object_spread({}, oldValue, newValue));
458
+ result = new CalcValue(_objectSpread({}, oldValue, newValue));
461
459
  } catch (e) {}
462
460
  }
463
461
  if (result) {
@@ -480,12 +478,12 @@ var CalcValueChecker = /*#__PURE__*/ function(ValueChecker) {
480
478
  var AddressValueChecker = /*#__PURE__*/ function(ValueChecker) {
481
479
  "use strict";
482
480
  _inherits(AddressValueChecker, ValueChecker);
483
- var _super = _create_super(AddressValueChecker);
481
+ var _super = _createSuper(AddressValueChecker);
484
482
  function AddressValueChecker() {
485
- _class_call_check(this, AddressValueChecker);
483
+ _classCallCheck(this, AddressValueChecker);
486
484
  return _super.apply(this, arguments);
487
485
  }
488
- _create_class(AddressValueChecker, [
486
+ _createClass(AddressValueChecker, [
489
487
  {
490
488
  key: "validate",
491
489
  value: function validate(value) {
@@ -511,12 +509,12 @@ var AddressValueChecker = /*#__PURE__*/ function(ValueChecker) {
511
509
  }
512
510
  var result;
513
511
  if (isPlainObject(value)) {
514
- result = new AddressValue(_object_spread({}, oldValue, camelizeKeys(value)));
512
+ result = new AddressValue(_objectSpread({}, oldValue, camelizeKeys(value)));
515
513
  }
516
514
  if (isString(value) && isJSONObject(value)) {
517
515
  try {
518
516
  var newValue = JSON.parse(value);
519
- result = new AddressValue(_object_spread({}, oldValue, camelizeKeys(newValue)));
517
+ result = new AddressValue(_objectSpread({}, oldValue, camelizeKeys(newValue)));
520
518
  } catch (e) {}
521
519
  }
522
520
  if (result) {
@@ -541,9 +539,9 @@ var AddressValueChecker = /*#__PURE__*/ function(ValueChecker) {
541
539
  var ValueCheckerFactory = /*#__PURE__*/ function() {
542
540
  "use strict";
543
541
  function ValueCheckerFactory() {
544
- _class_call_check(this, ValueCheckerFactory);
542
+ _classCallCheck(this, ValueCheckerFactory);
545
543
  }
546
- _create_class(ValueCheckerFactory, null, [
544
+ _createClass(ValueCheckerFactory, null, [
547
545
  {
548
546
  key: "getValueChecker",
549
547
  value: function getValueChecker(fieldType) {
@@ -623,7 +621,7 @@ export function checkerValue(fieldType, key, value, oldValue) {
623
621
  }
624
622
  export function checkerSubtableValue(fieldTypeMap, value, emptyValue) {
625
623
  return Object.entries(fieldTypeMap).reduce(function(result, param) {
626
- var _param = _sliced_to_array(param, 2), key = _param[0], fieldType = _param[1];
624
+ var _param = _slicedToArray(param, 2), key = _param[0], fieldType = _param[1];
627
625
  var nowValue = value[key];
628
626
  result[key] = checkerValue(fieldType, key, nowValue, emptyValue[key]);
629
627
  return result;