@byteluck-fe/model-driven-settings 2.23.0-beta.12 → 2.23.0-beta.14

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.
package/README.md CHANGED
@@ -1,30 +1,30 @@
1
- # Settings
2
- 自定义控件设置
3
-
4
- ```
5
- │ defineInstance.ts // 定义控件函数
6
- │ index.ts
7
- │ initSettings.ts // 初始化setting,被外部引用
8
-
9
- ├─default // 内部默认值
10
- │ createBaseFields.ts // 基础控件的默认setting
11
- │ createFormBaseFields.ts // 表单控件的默认setting
12
- │ index.ts
13
-
14
- ├─props // 内置的setting控件
15
- │ base.ts
16
- │ checkbox.ts
17
- │ custom.ts
18
- │ input-number.ts
19
- │ input.ts
20
- │ radio.ts
21
- │ select.ts
22
- │ switch.ts
23
- │ textarea.ts
24
-
25
- └─schema // setting的容器和schema定义
26
- group.ts
27
- index.ts
28
- setting.ts
29
- tab.ts
30
- ```
1
+ # Settings
2
+ 自定义控件设置
3
+
4
+ ```
5
+ │ defineInstance.ts // 定义控件函数
6
+ │ index.ts
7
+ │ initSettings.ts // 初始化setting,被外部引用
8
+
9
+ ├─default // 内部默认值
10
+ │ createBaseFields.ts // 基础控件的默认setting
11
+ │ createFormBaseFields.ts // 表单控件的默认setting
12
+ │ index.ts
13
+
14
+ ├─props // 内置的setting控件
15
+ │ base.ts
16
+ │ checkbox.ts
17
+ │ custom.ts
18
+ │ input-number.ts
19
+ │ input.ts
20
+ │ radio.ts
21
+ │ select.ts
22
+ │ switch.ts
23
+ │ textarea.ts
24
+
25
+ └─schema // setting的容器和schema定义
26
+ group.ts
27
+ index.ts
28
+ setting.ts
29
+ tab.ts
30
+ ```
@@ -34,15 +34,15 @@ export var BaseProps = /*#__PURE__*/ function() {
34
34
  "use strict";
35
35
  function BaseProps(props) {
36
36
  _class_call_check(this, BaseProps);
37
- /**
38
- * 显示隐藏
37
+ /**
38
+ * 显示隐藏
39
39
  * */ _define_property(this, "visible", void 0);
40
- /**
41
- * 开启表达式
40
+ /**
41
+ * 开启表达式
42
42
  * */ _define_property(this, "expression", void 0);
43
- /**
44
- *
45
- * 是否改变父属性
43
+ /**
44
+ *
45
+ * 是否改变父属性
46
46
  */ _define_property(this, "updateParent", void 0);
47
47
  var _props_visible;
48
48
  this.visible = (_props_visible = props === null || props === void 0 ? void 0 : props.visible) !== null && _props_visible !== void 0 ? _props_visible : true;
@@ -4,10 +4,6 @@ function _assert_this_initialized(self) {
4
4
  }
5
5
  return self;
6
6
  }
7
- function _call_super(_this, derived, args) {
8
- derived = _get_prototype_of(derived);
9
- return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
- }
11
7
  function _class_call_check(instance, Constructor) {
12
8
  if (!(instance instanceof Constructor)) {
13
9
  throw new TypeError("Cannot call a class as a function");
@@ -63,23 +59,39 @@ function _type_of(obj) {
63
59
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
64
60
  }
65
61
  function _is_native_reflect_construct() {
62
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
63
+ if (Reflect.construct.sham) return false;
64
+ if (typeof Proxy === "function") return true;
66
65
  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
- })();
66
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
67
+ return true;
68
+ } catch (e) {
69
+ return false;
70
+ }
71
+ }
72
+ function _create_super(Derived) {
73
+ var hasNativeReflectConstruct = _is_native_reflect_construct();
74
+ return function _createSuperInternal() {
75
+ var Super = _get_prototype_of(Derived), result;
76
+ if (hasNativeReflectConstruct) {
77
+ var NewTarget = _get_prototype_of(this).constructor;
78
+ result = Reflect.construct(Super, arguments, NewTarget);
79
+ } else {
80
+ result = Super.apply(this, arguments);
81
+ }
82
+ return _possible_constructor_return(this, result);
83
+ };
72
84
  }
73
85
  import { BaseProps } from './base';
74
86
  export var CheckboxProps = /*#__PURE__*/ function(BaseProps) {
75
87
  "use strict";
76
88
  _inherits(CheckboxProps, BaseProps);
89
+ var _super = _create_super(CheckboxProps);
77
90
  function CheckboxProps(props) {
78
91
  _class_call_check(this, CheckboxProps);
79
92
  var _this;
80
- _this = _call_super(this, CheckboxProps, [
81
- props
82
- ]), _define_property(_this, "options", void 0);
93
+ _this = _super.call(this, props);
94
+ _define_property(_assert_this_initialized(_this), "options", void 0);
83
95
  var _props_options;
84
96
  _this.options = (_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [];
85
97
  return _this;
@@ -12,10 +12,6 @@ function _assert_this_initialized(self) {
12
12
  }
13
13
  return self;
14
14
  }
15
- function _call_super(_this, derived, args) {
16
- derived = _get_prototype_of(derived);
17
- return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
18
- }
19
15
  function _class_call_check(instance, Constructor) {
20
16
  if (!(instance instanceof Constructor)) {
21
17
  throw new TypeError("Cannot call a class as a function");
@@ -96,24 +92,39 @@ function _unsupported_iterable_to_array(o, minLen) {
96
92
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
97
93
  }
98
94
  function _is_native_reflect_construct() {
95
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
96
+ if (Reflect.construct.sham) return false;
97
+ if (typeof Proxy === "function") return true;
99
98
  try {
100
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
101
- } catch (_) {}
102
- return (_is_native_reflect_construct = function() {
103
- return !!result;
104
- })();
99
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
100
+ return true;
101
+ } catch (e) {
102
+ return false;
103
+ }
104
+ }
105
+ function _create_super(Derived) {
106
+ var hasNativeReflectConstruct = _is_native_reflect_construct();
107
+ return function _createSuperInternal() {
108
+ var Super = _get_prototype_of(Derived), result;
109
+ if (hasNativeReflectConstruct) {
110
+ var NewTarget = _get_prototype_of(this).constructor;
111
+ result = Reflect.construct(Super, arguments, NewTarget);
112
+ } else {
113
+ result = Super.apply(this, arguments);
114
+ }
115
+ return _possible_constructor_return(this, result);
116
+ };
105
117
  }
106
118
  import { isPlainObject } from '@byteluck-fe/model-driven-shared';
107
119
  import { BaseProps } from './base';
108
120
  export var CustomProps = /*#__PURE__*/ function(BaseProps) {
109
121
  "use strict";
110
122
  _inherits(CustomProps, BaseProps);
123
+ var _super = _create_super(CustomProps);
111
124
  function CustomProps(props) {
112
125
  _class_call_check(this, CustomProps);
113
126
  var _this;
114
- _this = _call_super(this, CustomProps, [
115
- props
116
- ]);
127
+ _this = _super.call(this, props);
117
128
  if (isPlainObject(props)) {
118
129
  Object.entries(props).forEach(function(param) {
119
130
  var _param = _sliced_to_array(param, 2), key = _param[0], value = _param[1];
@@ -4,10 +4,6 @@ function _assert_this_initialized(self) {
4
4
  }
5
5
  return self;
6
6
  }
7
- function _call_super(_this, derived, args) {
8
- derived = _get_prototype_of(derived);
9
- return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
- }
11
7
  function _class_call_check(instance, Constructor) {
12
8
  if (!(instance instanceof Constructor)) {
13
9
  throw new TypeError("Cannot call a class as a function");
@@ -63,23 +59,41 @@ function _type_of(obj) {
63
59
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
64
60
  }
65
61
  function _is_native_reflect_construct() {
62
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
63
+ if (Reflect.construct.sham) return false;
64
+ if (typeof Proxy === "function") return true;
66
65
  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
- })();
66
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
67
+ return true;
68
+ } catch (e) {
69
+ return false;
70
+ }
71
+ }
72
+ function _create_super(Derived) {
73
+ var hasNativeReflectConstruct = _is_native_reflect_construct();
74
+ return function _createSuperInternal() {
75
+ var Super = _get_prototype_of(Derived), result;
76
+ if (hasNativeReflectConstruct) {
77
+ var NewTarget = _get_prototype_of(this).constructor;
78
+ result = Reflect.construct(Super, arguments, NewTarget);
79
+ } else {
80
+ result = Super.apply(this, arguments);
81
+ }
82
+ return _possible_constructor_return(this, result);
83
+ };
72
84
  }
73
85
  import { BaseProps } from './base';
74
86
  export var InputNumberProps = /*#__PURE__*/ function(BaseProps) {
75
87
  "use strict";
76
88
  _inherits(InputNumberProps, BaseProps);
89
+ var _super = _create_super(InputNumberProps);
77
90
  function InputNumberProps(props) {
78
91
  _class_call_check(this, InputNumberProps);
79
92
  var _this;
80
- _this = _call_super(this, InputNumberProps, [
81
- props
82
- ]), _define_property(_this, "max", void 0), _define_property(_this, "min", void 0), _define_property(_this, "placeholder", void 0);
93
+ _this = _super.call(this, props);
94
+ _define_property(_assert_this_initialized(_this), "max", void 0);
95
+ _define_property(_assert_this_initialized(_this), "min", void 0);
96
+ _define_property(_assert_this_initialized(_this), "placeholder", void 0);
83
97
  var _props_max;
84
98
  _this.max = (_props_max = props === null || props === void 0 ? void 0 : props.max) !== null && _props_max !== void 0 ? _props_max : '';
85
99
  var _props_min;
@@ -4,10 +4,6 @@ function _assert_this_initialized(self) {
4
4
  }
5
5
  return self;
6
6
  }
7
- function _call_super(_this, derived, args) {
8
- derived = _get_prototype_of(derived);
9
- return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
- }
11
7
  function _class_call_check(instance, Constructor) {
12
8
  if (!(instance instanceof Constructor)) {
13
9
  throw new TypeError("Cannot call a class as a function");
@@ -63,23 +59,42 @@ function _type_of(obj) {
63
59
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
64
60
  }
65
61
  function _is_native_reflect_construct() {
62
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
63
+ if (Reflect.construct.sham) return false;
64
+ if (typeof Proxy === "function") return true;
66
65
  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
- })();
66
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
67
+ return true;
68
+ } catch (e) {
69
+ return false;
70
+ }
71
+ }
72
+ function _create_super(Derived) {
73
+ var hasNativeReflectConstruct = _is_native_reflect_construct();
74
+ return function _createSuperInternal() {
75
+ var Super = _get_prototype_of(Derived), result;
76
+ if (hasNativeReflectConstruct) {
77
+ var NewTarget = _get_prototype_of(this).constructor;
78
+ result = Reflect.construct(Super, arguments, NewTarget);
79
+ } else {
80
+ result = Super.apply(this, arguments);
81
+ }
82
+ return _possible_constructor_return(this, result);
83
+ };
72
84
  }
73
85
  import { BaseProps } from './base';
74
86
  export var InputProps = /*#__PURE__*/ function(BaseProps) {
75
87
  "use strict";
76
88
  _inherits(InputProps, BaseProps);
89
+ var _super = _create_super(InputProps);
77
90
  function InputProps(props) {
78
91
  _class_call_check(this, InputProps);
79
92
  var _this;
80
- _this = _call_super(this, InputProps, [
81
- props
82
- ]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "placeholder", void 0), _define_property(_this, "i18n", void 0);
93
+ _this = _super.call(this, props);
94
+ _define_property(_assert_this_initialized(_this), "maxLength", void 0);
95
+ _define_property(_assert_this_initialized(_this), "minLength", void 0);
96
+ _define_property(_assert_this_initialized(_this), "placeholder", void 0);
97
+ _define_property(_assert_this_initialized(_this), "i18n", void 0);
83
98
  var _props_maxLength;
84
99
  _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : '';
85
100
  var _props_minLength;
@@ -4,10 +4,6 @@ function _assert_this_initialized(self) {
4
4
  }
5
5
  return self;
6
6
  }
7
- function _call_super(_this, derived, args) {
8
- derived = _get_prototype_of(derived);
9
- return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
- }
11
7
  function _class_call_check(instance, Constructor) {
12
8
  if (!(instance instanceof Constructor)) {
13
9
  throw new TypeError("Cannot call a class as a function");
@@ -63,23 +59,40 @@ function _type_of(obj) {
63
59
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
64
60
  }
65
61
  function _is_native_reflect_construct() {
62
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
63
+ if (Reflect.construct.sham) return false;
64
+ if (typeof Proxy === "function") return true;
66
65
  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
- })();
66
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
67
+ return true;
68
+ } catch (e) {
69
+ return false;
70
+ }
71
+ }
72
+ function _create_super(Derived) {
73
+ var hasNativeReflectConstruct = _is_native_reflect_construct();
74
+ return function _createSuperInternal() {
75
+ var Super = _get_prototype_of(Derived), result;
76
+ if (hasNativeReflectConstruct) {
77
+ var NewTarget = _get_prototype_of(this).constructor;
78
+ result = Reflect.construct(Super, arguments, NewTarget);
79
+ } else {
80
+ result = Super.apply(this, arguments);
81
+ }
82
+ return _possible_constructor_return(this, result);
83
+ };
72
84
  }
73
85
  import { BaseProps } from './base';
74
86
  export var RadioProps = /*#__PURE__*/ function(BaseProps) {
75
87
  "use strict";
76
88
  _inherits(RadioProps, BaseProps);
89
+ var _super = _create_super(RadioProps);
77
90
  function RadioProps(props) {
78
91
  _class_call_check(this, RadioProps);
79
92
  var _this;
80
- _this = _call_super(this, RadioProps, [
81
- props
82
- ]), _define_property(_this, "options", void 0), _define_property(_this, "showType", void 0);
93
+ _this = _super.call(this, props);
94
+ _define_property(_assert_this_initialized(_this), "options", void 0);
95
+ _define_property(_assert_this_initialized(_this), "showType", void 0);
83
96
  var _props_options;
84
97
  _this.options = (_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [];
85
98
  var _props_showType;
@@ -4,10 +4,6 @@ function _assert_this_initialized(self) {
4
4
  }
5
5
  return self;
6
6
  }
7
- function _call_super(_this, derived, args) {
8
- derived = _get_prototype_of(derived);
9
- return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
- }
11
7
  function _class_call_check(instance, Constructor) {
12
8
  if (!(instance instanceof Constructor)) {
13
9
  throw new TypeError("Cannot call a class as a function");
@@ -63,23 +59,40 @@ function _type_of(obj) {
63
59
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
64
60
  }
65
61
  function _is_native_reflect_construct() {
62
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
63
+ if (Reflect.construct.sham) return false;
64
+ if (typeof Proxy === "function") return true;
66
65
  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
- })();
66
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
67
+ return true;
68
+ } catch (e) {
69
+ return false;
70
+ }
71
+ }
72
+ function _create_super(Derived) {
73
+ var hasNativeReflectConstruct = _is_native_reflect_construct();
74
+ return function _createSuperInternal() {
75
+ var Super = _get_prototype_of(Derived), result;
76
+ if (hasNativeReflectConstruct) {
77
+ var NewTarget = _get_prototype_of(this).constructor;
78
+ result = Reflect.construct(Super, arguments, NewTarget);
79
+ } else {
80
+ result = Super.apply(this, arguments);
81
+ }
82
+ return _possible_constructor_return(this, result);
83
+ };
72
84
  }
73
85
  import { BaseProps } from './base';
74
86
  export var SelectProps = /*#__PURE__*/ function(BaseProps) {
75
87
  "use strict";
76
88
  _inherits(SelectProps, BaseProps);
89
+ var _super = _create_super(SelectProps);
77
90
  function SelectProps(props) {
78
91
  _class_call_check(this, SelectProps);
79
92
  var _this;
80
- _this = _call_super(this, SelectProps, [
81
- props
82
- ]), _define_property(_this, "placeholder", void 0), _define_property(_this, "options", void 0);
93
+ _this = _super.call(this, props);
94
+ _define_property(_assert_this_initialized(_this), "placeholder", void 0);
95
+ _define_property(_assert_this_initialized(_this), "options", void 0);
83
96
  var _props_placeholder;
84
97
  _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '';
85
98
  var _props_options;
@@ -4,10 +4,6 @@ function _assert_this_initialized(self) {
4
4
  }
5
5
  return self;
6
6
  }
7
- function _call_super(_this, derived, args) {
8
- derived = _get_prototype_of(derived);
9
- return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
- }
11
7
  function _class_call_check(instance, Constructor) {
12
8
  if (!(instance instanceof Constructor)) {
13
9
  throw new TypeError("Cannot call a class as a function");
@@ -63,23 +59,41 @@ function _type_of(obj) {
63
59
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
64
60
  }
65
61
  function _is_native_reflect_construct() {
62
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
63
+ if (Reflect.construct.sham) return false;
64
+ if (typeof Proxy === "function") return true;
66
65
  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
- })();
66
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
67
+ return true;
68
+ } catch (e) {
69
+ return false;
70
+ }
71
+ }
72
+ function _create_super(Derived) {
73
+ var hasNativeReflectConstruct = _is_native_reflect_construct();
74
+ return function _createSuperInternal() {
75
+ var Super = _get_prototype_of(Derived), result;
76
+ if (hasNativeReflectConstruct) {
77
+ var NewTarget = _get_prototype_of(this).constructor;
78
+ result = Reflect.construct(Super, arguments, NewTarget);
79
+ } else {
80
+ result = Super.apply(this, arguments);
81
+ }
82
+ return _possible_constructor_return(this, result);
83
+ };
72
84
  }
73
85
  import { BaseProps } from './base';
74
86
  export var SwitchProps = /*#__PURE__*/ function(BaseProps) {
75
87
  "use strict";
76
88
  _inherits(SwitchProps, BaseProps);
89
+ var _super = _create_super(SwitchProps);
77
90
  function SwitchProps(props) {
78
91
  _class_call_check(this, SwitchProps);
79
92
  var _this;
80
- _this = _call_super(this, SwitchProps, [
81
- props
82
- ]), _define_property(_this, "showType", void 0), _define_property(_this, "tips", void 0), _define_property(_this, "disabled", void 0);
93
+ _this = _super.call(this, props);
94
+ _define_property(_assert_this_initialized(_this), "showType", void 0);
95
+ _define_property(_assert_this_initialized(_this), "tips", void 0);
96
+ _define_property(_assert_this_initialized(_this), "disabled", void 0);
83
97
  var _props_showType;
84
98
  _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'switch';
85
99
  var _props_tips;
@@ -4,10 +4,6 @@ function _assert_this_initialized(self) {
4
4
  }
5
5
  return self;
6
6
  }
7
- function _call_super(_this, derived, args) {
8
- derived = _get_prototype_of(derived);
9
- return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
- }
11
7
  function _class_call_check(instance, Constructor) {
12
8
  if (!(instance instanceof Constructor)) {
13
9
  throw new TypeError("Cannot call a class as a function");
@@ -63,23 +59,44 @@ function _type_of(obj) {
63
59
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
64
60
  }
65
61
  function _is_native_reflect_construct() {
62
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
63
+ if (Reflect.construct.sham) return false;
64
+ if (typeof Proxy === "function") return true;
66
65
  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
- })();
66
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
67
+ return true;
68
+ } catch (e) {
69
+ return false;
70
+ }
71
+ }
72
+ function _create_super(Derived) {
73
+ var hasNativeReflectConstruct = _is_native_reflect_construct();
74
+ return function _createSuperInternal() {
75
+ var Super = _get_prototype_of(Derived), result;
76
+ if (hasNativeReflectConstruct) {
77
+ var NewTarget = _get_prototype_of(this).constructor;
78
+ result = Reflect.construct(Super, arguments, NewTarget);
79
+ } else {
80
+ result = Super.apply(this, arguments);
81
+ }
82
+ return _possible_constructor_return(this, result);
83
+ };
72
84
  }
73
85
  import { BaseProps } from './base';
74
86
  export var TextareaProps = /*#__PURE__*/ function(BaseProps) {
75
87
  "use strict";
76
88
  _inherits(TextareaProps, BaseProps);
89
+ var _super = _create_super(TextareaProps);
77
90
  function TextareaProps(props) {
78
91
  _class_call_check(this, TextareaProps);
79
92
  var _this;
80
- _this = _call_super(this, TextareaProps, [
81
- props
82
- ]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "placeholder", void 0), _define_property(_this, "i18n", void 0), _define_property(_this, "maxRows", void 0), _define_property(_this, "minRows", void 0);
93
+ _this = _super.call(this, props);
94
+ _define_property(_assert_this_initialized(_this), "maxLength", void 0);
95
+ _define_property(_assert_this_initialized(_this), "minLength", void 0);
96
+ _define_property(_assert_this_initialized(_this), "placeholder", void 0);
97
+ _define_property(_assert_this_initialized(_this), "i18n", void 0);
98
+ _define_property(_assert_this_initialized(_this), "maxRows", void 0);
99
+ _define_property(_assert_this_initialized(_this), "minRows", void 0);
83
100
  var _props_maxLength;
84
101
  _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : '';
85
102
  var _props_minLength;