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

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.
Files changed (28) hide show
  1. package/dist/esm/common/BaseControl/designer.js +40 -41
  2. package/dist/esm/common/BaseControl/property.js +19 -31
  3. package/dist/esm/common/BaseControl/runtime.js +11 -20
  4. package/dist/esm/common/ColumnControl/designer.js +17 -29
  5. package/dist/esm/common/ColumnControl/property.js +18 -30
  6. package/dist/esm/common/ColumnControl/runtime.js +12 -20
  7. package/dist/esm/common/ControlArray.js +4 -2
  8. package/dist/esm/common/FormControl/designer.js +12 -20
  9. package/dist/esm/common/FormControl/property.js +26 -46
  10. package/dist/esm/common/FormControl/runtime.js +12 -20
  11. package/dist/esm/common/LayoutControl/designer.js +49 -55
  12. package/dist/esm/common/LayoutControl/property.js +11 -17
  13. package/dist/esm/common/LayoutControl/runtime.js +12 -20
  14. package/dist/esm/common/ListControl/designer.js +47 -52
  15. package/dist/esm/common/ListControl/property.js +17 -28
  16. package/dist/esm/common/ListControl/runtime.js +12 -20
  17. package/dist/esm/common/SearchViewControl/designer.js +12 -20
  18. package/dist/esm/common/SearchViewControl/property.js +12 -20
  19. package/dist/esm/common/SearchViewControl/runtime.js +12 -20
  20. package/dist/esm/common/WrapControl/designer.js +12 -20
  21. package/dist/esm/common/WrapControl/property.js +11 -17
  22. package/dist/esm/common/WrapControl/runtime.js +12 -20
  23. package/dist/esm/framework/RegisterControls.js +2 -6
  24. package/dist/esm/framework/index.js +231 -345
  25. package/dist/index.umd.js +3 -1
  26. package/dist/types/common/ColumnControl/designer.d.ts +4 -4
  27. package/dist/types/framework/index.d.ts +27 -26
  28. package/package.json +3 -3
@@ -17,11 +17,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
17
17
  reject(error);
18
18
  return;
19
19
  }
20
- if (info.done) {
21
- resolve(value);
22
- } else {
23
- Promise.resolve(value).then(_next, _throw);
24
- }
20
+ if (info.done) resolve(value);
21
+ else Promise.resolve(value).then(_next, _throw);
25
22
  }
26
23
  function _async_to_generator(fn) {
27
24
  return function() {
@@ -39,9 +36,7 @@ function _async_to_generator(fn) {
39
36
  };
40
37
  }
41
38
  function _class_call_check(instance, Constructor) {
42
- if (!(instance instanceof Constructor)) {
43
- throw new TypeError("Cannot call a class as a function");
44
- }
39
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
45
40
  }
46
41
  function _defineProperties(target, props) {
47
42
  for(var i = 0; i < props.length; i++){
@@ -65,26 +60,25 @@ function _define_property(obj, key, value) {
65
60
  configurable: true,
66
61
  writable: true
67
62
  });
68
- } else {
69
- obj[key] = value;
70
- }
63
+ } else obj[key] = value;
71
64
  return obj;
72
65
  }
73
66
  function _instanceof(left, right) {
67
+ "@swc/helpers - instanceof";
74
68
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
75
69
  return !!right[Symbol.hasInstance](left);
76
- } else {
77
- return left instanceof right;
78
- }
70
+ } else return left instanceof right;
79
71
  }
80
72
  function _iterable_to_array(iter) {
81
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
73
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
74
+ return Array.from(iter);
75
+ }
82
76
  }
83
77
  function _non_iterable_rest() {
84
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
78
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
85
79
  }
86
80
  function _non_iterable_spread() {
87
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
81
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
88
82
  }
89
83
  function _object_spread(target) {
90
84
  for(var i = 1; i < arguments.length; i++){
@@ -107,18 +101,6 @@ function _to_array(arr) {
107
101
  function _to_consumable_array(arr) {
108
102
  return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
109
103
  }
110
- function _type_of(obj) {
111
- "@swc/helpers - typeof";
112
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
113
- }
114
- function _unsupported_iterable_to_array(o, minLen) {
115
- if (!o) return;
116
- if (typeof o === "string") return _array_like_to_array(o, minLen);
117
- var n = Object.prototype.toString.call(o).slice(8, -1);
118
- if (n === "Object" && o.constructor) n = o.constructor.name;
119
- if (n === "Map" || n === "Set") return Array.from(n);
120
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
121
- }
122
104
  function _ts_generator(thisArg, body) {
123
105
  var f, y, t, _ = {
124
106
  label: 0,
@@ -128,9 +110,17 @@ function _ts_generator(thisArg, body) {
128
110
  },
129
111
  trys: [],
130
112
  ops: []
131
- }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
132
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
133
- return this;
113
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
114
+ return d(g, "next", {
115
+ value: verb(0)
116
+ }), d(g, "throw", {
117
+ value: verb(1)
118
+ }), d(g, "return", {
119
+ value: verb(2)
120
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
121
+ value: function() {
122
+ return this;
123
+ }
134
124
  }), g;
135
125
  function verb(n) {
136
126
  return function(v) {
@@ -210,6 +200,18 @@ function _ts_generator(thisArg, body) {
210
200
  };
211
201
  }
212
202
  }
203
+ function _type_of(obj) {
204
+ "@swc/helpers - typeof";
205
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
206
+ }
207
+ function _unsupported_iterable_to_array(o, minLen) {
208
+ if (!o) return;
209
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
210
+ var n = Object.prototype.toString.call(o).slice(8, -1);
211
+ if (n === "Object" && o.constructor) n = o.constructor.name;
212
+ if (n === "Map" || n === "Set") return Array.from(n);
213
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
214
+ }
213
215
  import { getLocaleText } from '@byteluck-fe/locale-message';
214
216
  import Property from './property';
215
217
  import { genNonDuplicateId, JSONCopy, referenceError, updateValueFromKeys } from '@byteluck-fe/model-driven-shared';
@@ -220,6 +222,7 @@ var Control = /*#__PURE__*/ function _target() {
220
222
  function Control(props) {
221
223
  var _this = this;
222
224
  _class_call_check(this, Control);
225
+ var _ref, _ref1, _ref2, _ref3;
223
226
  _define_property(this, "id", void 0); // 唯一标识符
224
227
  _define_property(this, "name", void 0);
225
228
  _define_property(this, "icon", void 0);
@@ -236,22 +239,18 @@ var Control = /*#__PURE__*/ function _target() {
236
239
  _define_property(this, "updateSetting", updateSetting);
237
240
  _define_property(this, "removeSetting", removeSetting);
238
241
  this._callControlHooks('preInstance', props);
239
- var _ref = _instanceof(this, Control) ? this.constructor : void 0, controlName = _ref.controlName, controlIcon = _ref.controlIcon, controlType = _ref.controlType, controlFieldType = _ref.controlFieldType, controlEventKeys = _ref.controlEventKeys, controlCustomEvents = _ref.controlCustomEvents, name = _ref.name, setting = _ref.setting, slots = _ref.slots, slotPosition = _ref.slotPosition;
242
+ var _ref4 = _instanceof(this, Control) ? this.constructor : void 0, controlName = _ref4.controlName, controlIcon = _ref4.controlIcon, controlType = _ref4.controlType, controlFieldType = _ref4.controlFieldType, controlEventKeys = _ref4.controlEventKeys, controlCustomEvents = _ref4.controlCustomEvents, name = _ref4.name, setting = _ref4.setting, slots = _ref4.slots, slotPosition = _ref4.slotPosition;
240
243
  if (!(controlName && controlIcon && controlType)) {
241
244
  referenceError("The ".concat(name, " controlName,controlIcon,controlType is not define"));
242
245
  }
243
- var _props_id;
244
- this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(10);
246
+ this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : genNonDuplicateId(10);
245
247
  this.name = controlName;
246
248
  this.icon = controlIcon;
247
- var _props_type;
248
- this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : controlType;
249
+ this.type = (_ref1 = props === null || props === void 0 ? void 0 : props.type) !== null && _ref1 !== void 0 ? _ref1 : controlType;
249
250
  this.props = new Property(props === null || props === void 0 ? void 0 : props.props, (_instanceof(this, Control) ? this.constructor : void 0).controlName);
250
- var _props_controlType;
251
- this.controlType = (_props_controlType = props === null || props === void 0 ? void 0 : props.controlType) !== null && _props_controlType !== void 0 ? _props_controlType : 'base';
251
+ this.controlType = (_ref2 = props === null || props === void 0 ? void 0 : props.controlType) !== null && _ref2 !== void 0 ? _ref2 : 'base';
252
252
  this.setting = JSONCopy(setting);
253
- var _props_fieldType;
254
- this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : controlFieldType;
253
+ this.fieldType = (_ref3 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _ref3 !== void 0 ? _ref3 : controlFieldType;
255
254
  this.eventKeys = JSONCopy(controlEventKeys);
256
255
  this.customEvents = JSONCopy(controlCustomEvents);
257
256
  this.slots = JSONCopy(slots);
@@ -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,14 +7,11 @@ 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 _construct(Parent, args, Class) {
17
- if (_is_native_reflect_construct()) {
18
- _construct = Reflect.construct;
19
- } else {
13
+ if (_is_native_reflect_construct()) _construct = Reflect.construct;
14
+ else {
20
15
  _construct = function construct(Parent, args, Class) {
21
16
  var a = [
22
17
  null
@@ -38,9 +33,7 @@ function _define_property(obj, key, value) {
38
33
  configurable: true,
39
34
  writable: true
40
35
  });
41
- } else {
42
- obj[key] = value;
43
- }
36
+ } else obj[key] = value;
44
37
  return obj;
45
38
  }
46
39
  function _get_prototype_of(o) {
@@ -65,10 +58,16 @@ function _inherits(subClass, superClass) {
65
58
  function _is_native_function(fn) {
66
59
  return Function.toString.call(fn).indexOf("[native code]") !== -1;
67
60
  }
61
+ function _is_native_reflect_construct() {
62
+ try {
63
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
64
+ } catch (_) {}
65
+ return (_is_native_reflect_construct = function() {
66
+ return !!result;
67
+ })();
68
+ }
68
69
  function _possible_constructor_return(self, call) {
69
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
70
- return call;
71
- }
70
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
72
71
  return _assert_this_initialized(self);
73
72
  }
74
73
  function _set_prototype_of(o, p) {
@@ -84,11 +83,9 @@ function _type_of(obj) {
84
83
  }
85
84
  function _wrap_native_super(Class) {
86
85
  var _cache = typeof Map === "function" ? new Map() : undefined;
87
- _wrap_native_super = function wrapNativeSuper(Class) {
86
+ _wrap_native_super = function(Class) {
88
87
  if (Class === null || !_is_native_function(Class)) return Class;
89
- if (typeof Class !== "function") {
90
- throw new TypeError("Super expression must either be null or a function");
91
- }
88
+ if (typeof Class !== "function") throw new TypeError("Super expression must either be null or a function");
92
89
  if (typeof _cache !== "undefined") {
93
90
  if (_cache.has(Class)) return _cache.get(Class);
94
91
  _cache.set(Class, Wrapper);
@@ -108,14 +105,6 @@ function _wrap_native_super(Class) {
108
105
  };
109
106
  return _wrap_native_super(Class);
110
107
  }
111
- function _is_native_reflect_construct() {
112
- try {
113
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
114
- } catch (_) {}
115
- return (_is_native_reflect_construct = function() {
116
- return !!result;
117
- })();
118
- }
119
108
  import { BaseStyle } from '../../framework';
120
109
  var PropertyRules = function PropertyRules(props) {
121
110
  "use strict";
@@ -140,6 +129,7 @@ var PropertyRuntimeRules = /*#__PURE__*/ function(Array1) {
140
129
  "use strict";
141
130
  var caption = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : '';
142
131
  _class_call_check(this, Property);
132
+ var _ref, _ref1;
143
133
  /**
144
134
  * 是否隐藏
145
135
  * @public
@@ -157,11 +147,9 @@ var PropertyRuntimeRules = /*#__PURE__*/ function(Array1) {
157
147
  * @public
158
148
  * @defaultValue ''
159
149
  */ _define_property(this, "defaultState", void 0);
160
- var _props_isHide;
161
- this.isHide = (_props_isHide = props === null || props === void 0 ? void 0 : props.isHide) !== null && _props_isHide !== void 0 ? _props_isHide : false;
150
+ this.isHide = (_ref = props === null || props === void 0 ? void 0 : props.isHide) !== null && _ref !== void 0 ? _ref : false;
162
151
  this.style = new BaseStyle(props === null || props === void 0 ? void 0 : props.style);
163
- var _props_caption;
164
- this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : caption;
152
+ this.caption = (_ref1 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref1 !== void 0 ? _ref1 : caption;
165
153
  };
166
154
  _define_property(Property, "mode", void 0);
167
155
  _define_property(Property, "Rules", PropertyRules);
@@ -1,7 +1,5 @@
1
1
  function _class_call_check(instance, Constructor) {
2
- if (!(instance instanceof Constructor)) {
3
- throw new TypeError("Cannot call a class as a function");
4
- }
2
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
5
3
  }
6
4
  function _defineProperties(target, props) {
7
5
  for(var i = 0; i < props.length; i++){
@@ -25,17 +23,14 @@ function _define_property(obj, key, value) {
25
23
  configurable: true,
26
24
  writable: true
27
25
  });
28
- } else {
29
- obj[key] = value;
30
- }
26
+ } else obj[key] = value;
31
27
  return obj;
32
28
  }
33
29
  function _instanceof(left, right) {
30
+ "@swc/helpers - instanceof";
34
31
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
35
32
  return !!right[Symbol.hasInstance](left);
36
- } else {
37
- return left instanceof right;
38
- }
33
+ } else return left instanceof right;
39
34
  }
40
35
  import Property from './property';
41
36
  import { genNonDuplicateId, referenceError } from '@byteluck-fe/model-driven-shared';
@@ -44,6 +39,7 @@ var Control = /*#__PURE__*/ function _target() {
44
39
  "use strict";
45
40
  function Control(props) {
46
41
  _class_call_check(this, Control);
42
+ var _ref, _ref1, _ref2, _ref3, _ref4;
47
43
  _define_property(this, "id", void 0); // 唯一标识符
48
44
  _define_property(this, "type", void 0);
49
45
  _define_property(this, "controlType", void 0);
@@ -52,22 +48,17 @@ var Control = /*#__PURE__*/ function _target() {
52
48
  _define_property(this, "customEvents", []);
53
49
  _define_property(this, "pageStatus", void 0);
54
50
  _define_property(this, "parent", null);
55
- var _ref = _instanceof(this, Control) ? this.constructor : void 0, controlType = _ref.controlType, controlFieldType = _ref.controlFieldType, name = _ref.name, controlCustomEvents = _ref.controlCustomEvents;
51
+ var _ref5 = _instanceof(this, Control) ? this.constructor : void 0, controlType = _ref5.controlType, controlFieldType = _ref5.controlFieldType, name = _ref5.name, controlCustomEvents = _ref5.controlCustomEvents;
56
52
  if (!controlType) {
57
53
  referenceError("The ".concat(name, " controlType is not define"));
58
54
  }
59
- var _props_id;
60
- this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(10);
61
- var _props_type;
62
- this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : controlType;
55
+ this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : genNonDuplicateId(10);
56
+ this.type = (_ref1 = props === null || props === void 0 ? void 0 : props.type) !== null && _ref1 !== void 0 ? _ref1 : controlType;
63
57
  this.props = new Property(props === null || props === void 0 ? void 0 : props.props);
64
58
  this.customEvents = controlCustomEvents;
65
- var _props_controlType;
66
- this.controlType = (_props_controlType = props === null || props === void 0 ? void 0 : props.controlType) !== null && _props_controlType !== void 0 ? _props_controlType : 'base';
67
- var _props_fieldType;
68
- this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : controlFieldType;
69
- var _props_pageStatus;
70
- this.pageStatus = (_props_pageStatus = props === null || props === void 0 ? void 0 : props.pageStatus) !== null && _props_pageStatus !== void 0 ? _props_pageStatus : PAGE_STATUS.UNKNOWN;
59
+ this.controlType = (_ref2 = props === null || props === void 0 ? void 0 : props.controlType) !== null && _ref2 !== void 0 ? _ref2 : 'base';
60
+ this.fieldType = (_ref3 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _ref3 !== void 0 ? _ref3 : controlFieldType;
61
+ this.pageStatus = (_ref4 = props === null || props === void 0 ? void 0 : props.pageStatus) !== null && _ref4 !== void 0 ? _ref4 : PAGE_STATUS.UNKNOWN;
71
62
  }
72
63
  _create_class(Control, [
73
64
  {
@@ -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,22 +31,17 @@ 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(target, property, receiver) {
44
- if (typeof Reflect !== "undefined" && Reflect.get) {
45
- _get = Reflect.get;
46
- } else {
38
+ if (typeof Reflect !== "undefined" && Reflect.get) _get = Reflect.get;
39
+ else {
47
40
  _get = function get(target, property, receiver) {
48
41
  var base = _super_prop_base(target, property);
49
42
  if (!base) return;
50
43
  var desc = Object.getOwnPropertyDescriptor(base, property);
51
- if (desc.get) {
52
- return desc.get.call(receiver || target);
53
- }
44
+ if (desc.get) return desc.get.call(receiver || target);
54
45
  return desc.value;
55
46
  };
56
47
  }
@@ -75,6 +66,14 @@ function _inherits(subClass, superClass) {
75
66
  });
76
67
  if (superClass) _set_prototype_of(subClass, superClass);
77
68
  }
69
+ function _is_native_reflect_construct() {
70
+ try {
71
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
72
+ } catch (_) {}
73
+ return (_is_native_reflect_construct = function() {
74
+ return !!result;
75
+ })();
76
+ }
78
77
  function _object_spread(target) {
79
78
  for(var i = 1; i < arguments.length; i++){
80
79
  var source = arguments[i] != null ? arguments[i] : {};
@@ -105,9 +104,8 @@ function ownKeys(object, enumerableOnly) {
105
104
  }
106
105
  function _object_spread_props(target, source) {
107
106
  source = source != null ? source : {};
108
- if (Object.getOwnPropertyDescriptors) {
109
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
110
- } else {
107
+ if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
108
+ else {
111
109
  ownKeys(Object(source)).forEach(function(key) {
112
110
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
113
111
  });
@@ -115,9 +113,7 @@ function _object_spread_props(target, source) {
115
113
  return target;
116
114
  }
117
115
  function _possible_constructor_return(self, call) {
118
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
119
- return call;
120
- }
116
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
121
117
  return _assert_this_initialized(self);
122
118
  }
123
119
  function _set_prototype_of(o, p) {
@@ -138,14 +134,6 @@ function _type_of(obj) {
138
134
  "@swc/helpers - typeof";
139
135
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
140
136
  }
141
- function _is_native_reflect_construct() {
142
- try {
143
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
144
- } catch (_) {}
145
- return (_is_native_reflect_construct = function() {
146
- return !!result;
147
- })();
148
- }
149
137
  import { defineControlArrayToProperty } from '../ControlArray';
150
138
  import { DesignerControl } from '../BaseControl';
151
139
  import ColumnControlProperty from './property';
@@ -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 _define_property(obj, key, value) {
17
13
  if (key in obj) {
@@ -21,9 +17,7 @@ function _define_property(obj, key, value) {
21
17
  configurable: true,
22
18
  writable: true
23
19
  });
24
- } else {
25
- obj[key] = value;
26
- }
20
+ } else obj[key] = value;
27
21
  return obj;
28
22
  }
29
23
  function _get_prototype_of(o) {
@@ -45,10 +39,16 @@ function _inherits(subClass, superClass) {
45
39
  });
46
40
  if (superClass) _set_prototype_of(subClass, superClass);
47
41
  }
42
+ function _is_native_reflect_construct() {
43
+ try {
44
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
45
+ } catch (_) {}
46
+ return (_is_native_reflect_construct = function() {
47
+ return !!result;
48
+ })();
49
+ }
48
50
  function _possible_constructor_return(self, call) {
49
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
50
- return call;
51
- }
51
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
52
52
  return _assert_this_initialized(self);
53
53
  }
54
54
  function _set_prototype_of(o, p) {
@@ -62,14 +62,6 @@ function _type_of(obj) {
62
62
  "@swc/helpers - typeof";
63
63
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
64
64
  }
65
- function _is_native_reflect_construct() {
66
- try {
67
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
68
- } catch (_) {}
69
- return (_is_native_reflect_construct = function() {
70
- return !!result;
71
- })();
72
- }
73
65
  import { Property, PropertyRules } from '../BaseControl';
74
66
  import { initOptionAndDataSourceRules } from '../initOptionAndDataSourceRules';
75
67
  import { DataBind, AutoWidth } from '../../framework';
@@ -105,6 +97,7 @@ var ColumnControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
105
97
  function ColumnControlProperty(props) {
106
98
  _class_call_check(this, ColumnControlProperty);
107
99
  var _this;
100
+ var _ref, _ref1, _ref2, _ref3, _ref4;
108
101
  _this = _call_super(this, ColumnControlProperty, [
109
102
  props
110
103
  ]), /**
@@ -133,21 +126,16 @@ var ColumnControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
133
126
  * 自动高度
134
127
  * @defaultValue false
135
128
  */ _define_property(_this, "autoHeight", void 0), _define_property(_this, "children", void 0);
136
- var _props_width;
137
- _this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : 150;
129
+ _this.width = (_ref = props === null || props === void 0 ? void 0 : props.width) !== null && _ref !== void 0 ? _ref : 150;
138
130
  _this.widthType = (props === null || props === void 0 ? void 0 : props.widthType) || 'auto';
139
- var _props_caption;
140
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : '';
141
- var _props_fixed;
142
- _this.fixed = (_props_fixed = props === null || props === void 0 ? void 0 : props.fixed) !== null && _props_fixed !== void 0 ? _props_fixed : 'none';
131
+ _this.caption = (_ref1 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref1 !== void 0 ? _ref1 : '';
132
+ _this.fixed = (_ref2 = props === null || props === void 0 ? void 0 : props.fixed) !== null && _ref2 !== void 0 ? _ref2 : 'none';
143
133
  _this.autoWidth = new AutoWidth(props === null || props === void 0 ? void 0 : props.autoWidth);
144
134
  _this.dataBind = new DataBind(props === null || props === void 0 ? void 0 : props.dataBind);
145
- var _props_sort;
146
- _this.sort = (_props_sort = props === null || props === void 0 ? void 0 : props.sort) !== null && _props_sort !== void 0 ? _props_sort : true;
135
+ _this.sort = (_ref3 = props === null || props === void 0 ? void 0 : props.sort) !== null && _ref3 !== void 0 ? _ref3 : true;
147
136
  _this.align = props === null || props === void 0 ? void 0 : props.align;
148
137
  _this.colSpan = props === null || props === void 0 ? void 0 : props.colSpan;
149
- var _props_autoHeight;
150
- _this.autoHeight = (_props_autoHeight = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _props_autoHeight !== void 0 ? _props_autoHeight : false;
138
+ _this.autoHeight = (_ref4 = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _ref4 !== void 0 ? _ref4 : false;
151
139
  return _this;
152
140
  }
153
141
  return ColumnControlProperty;
@@ -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 _define_property(obj, key, value) {
17
13
  if (key in obj) {
@@ -21,9 +17,7 @@ function _define_property(obj, key, value) {
21
17
  configurable: true,
22
18
  writable: true
23
19
  });
24
- } else {
25
- obj[key] = value;
26
- }
20
+ } else obj[key] = value;
27
21
  return obj;
28
22
  }
29
23
  function _get_prototype_of(o) {
@@ -45,10 +39,16 @@ function _inherits(subClass, superClass) {
45
39
  });
46
40
  if (superClass) _set_prototype_of(subClass, superClass);
47
41
  }
42
+ function _is_native_reflect_construct() {
43
+ try {
44
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
45
+ } catch (_) {}
46
+ return (_is_native_reflect_construct = function() {
47
+ return !!result;
48
+ })();
49
+ }
48
50
  function _possible_constructor_return(self, call) {
49
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
50
- return call;
51
- }
51
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
52
52
  return _assert_this_initialized(self);
53
53
  }
54
54
  function _set_prototype_of(o, p) {
@@ -62,14 +62,6 @@ function _type_of(obj) {
62
62
  "@swc/helpers - typeof";
63
63
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
64
64
  }
65
- function _is_native_reflect_construct() {
66
- try {
67
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
68
- } catch (_) {}
69
- return (_is_native_reflect_construct = function() {
70
- return !!result;
71
- })();
72
- }
73
65
  import { defineControlArrayToProperty } from '../ControlArray';
74
66
  import { RuntimeControl } from '../BaseControl';
75
67
  import ColumnControlProperty from './property';
@@ -7,10 +7,12 @@ function _array_without_holes(arr) {
7
7
  if (Array.isArray(arr)) return _array_like_to_array(arr);
8
8
  }
9
9
  function _iterable_to_array(iter) {
10
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
10
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
11
+ return Array.from(iter);
12
+ }
11
13
  }
12
14
  function _non_iterable_spread() {
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.");
15
+ 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
16
  }
15
17
  function _to_consumable_array(arr) {
16
18
  return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();