@byteluck-fe/model-driven-core 7.0.0-props.10 → 7.0.0-props.116

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 (33) hide show
  1. package/dist/esm/common/BaseControl/designer.js +23 -29
  2. package/dist/esm/common/BaseControl/property.js +16 -27
  3. package/dist/esm/common/BaseControl/runtime.js +4 -9
  4. package/dist/esm/common/ColumnControl/designer.js +17 -29
  5. package/dist/esm/common/ColumnControl/property.js +12 -20
  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 +25 -31
  10. package/dist/esm/common/FormControl/runtime.js +12 -20
  11. package/dist/esm/common/LayoutControl/designer.js +37 -51
  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 +35 -48
  15. package/dist/esm/common/ListControl/property.js +12 -20
  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 +70 -29
  25. package/dist/index.umd.js +3 -1
  26. package/dist/types/common/BaseControl/property.d.ts +11 -2
  27. package/dist/types/common/BaseControl/types.d.ts +4 -0
  28. package/dist/types/common/ColumnControl/property.d.ts +3 -0
  29. package/dist/types/common/FormControl/property.d.ts +14 -0
  30. package/dist/types/common/ListControl/property.d.ts +18 -0
  31. package/dist/types/common/SearchViewControl/property.d.ts +3 -0
  32. package/dist/types/framework/index.d.ts +31 -0
  33. 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,
@@ -218,6 +200,18 @@ function _ts_generator(thisArg, body) {
218
200
  };
219
201
  }
220
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
+ }
221
215
  import { getLocaleText } from '@byteluck-fe/locale-message';
222
216
  import Property from './property';
223
217
  import { genNonDuplicateId, JSONCopy, referenceError, updateValueFromKeys } from '@byteluck-fe/model-driven-shared';
@@ -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";
@@ -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';
@@ -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';
@@ -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();
@@ -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 { DesignerControl } from '../BaseControl';
74
66
  import BaseControlProperty from './property';
75
67
  var FormControl = /*#__PURE__*/ function(DesignerControl) {
@@ -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 { JSONCopy } from '@byteluck-fe/model-driven-shared';
74
66
  import { Property, PropertyRules, PropertyRuntimeRules } from '../BaseControl';
75
67
  import { initOptionAndDataSourceRules } from '../initOptionAndDataSourceRules';
@@ -193,25 +185,27 @@ var BaseControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRule
193
185
  function BaseControlProperty(props) {
194
186
  _class_call_check(this, BaseControlProperty);
195
187
  var _this;
196
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12;
188
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14;
197
189
  _this = _call_super(this, BaseControlProperty, [
198
190
  props
199
- ]), _define_property(_this, "caption", void 0), _define_property(_this, "captionSize", void 0), _define_property(_this, "captionColor", void 0), _define_property(_this, "isCaptionItalic", void 0), _define_property(_this, "isHideCaption", void 0), _define_property(_this, "isShowCaptionTip", void 0), _define_property(_this, "captionTip", void 0), _define_property(_this, "labelPosition", void 0), _define_property(_this, "dataBind", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "placeholder", void 0), _define_property(_this, "defaultState", void 0), _define_property(_this, "required", void 0), _define_property(_this, "requiredMessage", void 0);
191
+ ]), _define_property(_this, "caption", void 0), _define_property(_this, "captionSize", void 0), _define_property(_this, "captionColor", void 0), _define_property(_this, "isCaptionItalic", void 0), _define_property(_this, "captionFontWeight", void 0), _define_property(_this, "className", void 0), _define_property(_this, "isHideCaption", void 0), _define_property(_this, "isShowCaptionTip", void 0), _define_property(_this, "captionTip", void 0), _define_property(_this, "labelPosition", void 0), _define_property(_this, "dataBind", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "placeholder", void 0), _define_property(_this, "defaultState", void 0), _define_property(_this, "required", void 0), _define_property(_this, "requiredMessage", void 0);
200
192
  _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : '';
201
193
  _this.captionSize = (_ref1 = props === null || props === void 0 ? void 0 : props.captionSize) !== null && _ref1 !== void 0 ? _ref1 : '';
202
194
  _this.captionColor = (_ref2 = props === null || props === void 0 ? void 0 : props.captionColor) !== null && _ref2 !== void 0 ? _ref2 : '';
203
195
  _this.isCaptionItalic = (_ref3 = props === null || props === void 0 ? void 0 : props.isCaptionItalic) !== null && _ref3 !== void 0 ? _ref3 : false;
204
- _this.isHideCaption = (_ref4 = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _ref4 !== void 0 ? _ref4 : false;
205
- _this.isShowCaptionTip = (_ref5 = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _ref5 !== void 0 ? _ref5 : false;
206
- _this.captionTip = (_ref6 = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _ref6 !== void 0 ? _ref6 : '';
207
- _this.defaultState = (_ref7 = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _ref7 !== void 0 ? _ref7 : 'default';
208
- _this.labelPosition = (_ref8 = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _ref8 !== void 0 ? _ref8 : 'top';
209
- _this.placeholder = (_ref9 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref9 !== void 0 ? _ref9 : '';
210
- _this.required = (_ref10 = props === null || props === void 0 ? void 0 : props.required) !== null && _ref10 !== void 0 ? _ref10 : false;
211
- _this.requiredMessage = (_ref11 = props === null || props === void 0 ? void 0 : props.requiredMessage) !== null && _ref11 !== void 0 ? _ref11 : '';
196
+ _this.captionFontWeight = (_ref4 = props === null || props === void 0 ? void 0 : props.captionFontWeight) !== null && _ref4 !== void 0 ? _ref4 : 'normal';
197
+ _this.className = (_ref5 = props === null || props === void 0 ? void 0 : props.className) !== null && _ref5 !== void 0 ? _ref5 : [];
198
+ _this.isHideCaption = (_ref6 = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _ref6 !== void 0 ? _ref6 : false;
199
+ _this.isShowCaptionTip = (_ref7 = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _ref7 !== void 0 ? _ref7 : false;
200
+ _this.captionTip = (_ref8 = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _ref8 !== void 0 ? _ref8 : '';
201
+ _this.defaultState = (_ref9 = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _ref9 !== void 0 ? _ref9 : 'default';
202
+ _this.labelPosition = (_ref10 = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _ref10 !== void 0 ? _ref10 : 'top';
203
+ _this.placeholder = (_ref11 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref11 !== void 0 ? _ref11 : '';
204
+ _this.required = (_ref12 = props === null || props === void 0 ? void 0 : props.required) !== null && _ref12 !== void 0 ? _ref12 : false;
205
+ _this.requiredMessage = (_ref13 = props === null || props === void 0 ? void 0 : props.requiredMessage) !== null && _ref13 !== void 0 ? _ref13 : '';
212
206
  //form 组件优先初始化DataBind
213
207
  _this.dataBind = new DataBind(props === null || props === void 0 ? void 0 : props.dataBind);
214
- _this.defaultValue = (_ref12 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref12 !== void 0 ? _ref12 : '';
208
+ _this.defaultValue = (_ref14 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref14 !== void 0 ? _ref14 : '';
215
209
  return _this;
216
210
  }
217
211
  return BaseControlProperty;