@byteluck-fe/model-driven-settings 2.9.0-alpha.9 → 2.9.1-beta.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 (40) hide show
  1. package/README.md +30 -30
  2. package/dist/esm/default/createBaseFields.js +28 -28
  3. package/dist/esm/default/createFormBaseFields.js +40 -40
  4. package/dist/esm/default/index.js +2 -2
  5. package/dist/esm/index.js +4 -4
  6. package/dist/esm/initSettings.js +18 -18
  7. package/dist/esm/props/base.js +7 -7
  8. package/dist/esm/props/checkbox.js +13 -25
  9. package/dist/esm/props/custom.js +14 -25
  10. package/dist/esm/props/input-number.js +16 -30
  11. package/dist/esm/props/input.js +16 -31
  12. package/dist/esm/props/radio.js +14 -27
  13. package/dist/esm/props/select.js +14 -27
  14. package/dist/esm/props/switch.js +15 -29
  15. package/dist/esm/props/textarea.js +18 -35
  16. package/dist/esm/schema/group.js +2 -2
  17. package/dist/esm/schema/index.js +3 -3
  18. package/dist/esm/schema/setting.js +4 -4
  19. package/dist/esm/schema/tab.js +2 -2
  20. package/dist/index.umd.js +2 -2
  21. package/dist/types/default/createBaseFields.d.ts +2 -2
  22. package/dist/types/default/createFormBaseFields.d.ts +3 -3
  23. package/dist/types/default/index.d.ts +2 -2
  24. package/dist/types/defineInstance.d.ts +79 -83
  25. package/dist/types/index.d.ts +4 -4
  26. package/dist/types/initSettings.d.ts +14 -14
  27. package/dist/types/props/base.d.ts +21 -21
  28. package/dist/types/props/checkbox.d.ts +5 -5
  29. package/dist/types/props/custom.d.ts +5 -5
  30. package/dist/types/props/input-number.d.ts +7 -7
  31. package/dist/types/props/input.d.ts +8 -8
  32. package/dist/types/props/radio.d.ts +6 -6
  33. package/dist/types/props/select.d.ts +6 -6
  34. package/dist/types/props/switch.d.ts +7 -7
  35. package/dist/types/props/textarea.d.ts +10 -10
  36. package/dist/types/schema/group.d.ts +19 -19
  37. package/dist/types/schema/index.d.ts +3 -3
  38. package/dist/types/schema/setting.d.ts +69 -69
  39. package/dist/types/schema/tab.d.ts +15 -15
  40. package/package.json +4 -4
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
+ ```
@@ -1,61 +1,61 @@
1
1
  export function createBaseFields() {
2
2
  return [
3
3
  {
4
- label: "隐藏",
5
- key: "isHide",
6
- type: "boolean",
7
- component: "switch"
4
+ label: '隐藏',
5
+ key: 'isHide',
6
+ type: 'boolean',
7
+ component: 'switch'
8
8
  },
9
9
  {
10
- key: "superSetting",
11
- component: "super-setting"
10
+ key: 'superSetting',
11
+ component: 'super-setting'
12
12
  },
13
13
  {
14
- key: "style.width",
15
- component: "styleComponent",
14
+ key: 'style.width',
15
+ component: 'styleComponent',
16
16
  props: {
17
- configKey: "style.widthConfig",
17
+ configKey: 'style.widthConfig',
18
18
  options: [
19
- "px",
20
- "%",
21
- "fill",
22
- "hug"
19
+ 'px',
20
+ '%',
21
+ 'fill',
22
+ 'hug'
23
23
  ]
24
24
  },
25
25
  scopeEffect: function scopeEffect(driven, payload) {
26
26
  var oldParent = payload.oldParent, newParent = payload.newParent, instance = payload.instance;
27
- if ((oldParent === null || oldParent === void 0 ? void 0 : oldParent.type) === "advanced-container" && newParent.type === "positioning-container") {
28
- driven.setInstance(instance, "style.width", "");
29
- driven.setInstance(instance, "style.widthConfig", "fill");
27
+ if ((oldParent === null || oldParent === void 0 ? void 0 : oldParent.type) === 'advanced-container' && newParent.type === 'positioning-container') {
28
+ driven.setInstance(instance, 'style.width', '');
29
+ driven.setInstance(instance, 'style.widthConfig', 'fill');
30
30
  }
31
31
  if (newParent) {
32
32
  return {
33
- visible: newParent.type === "advanced-container"
33
+ visible: newParent.type === 'advanced-container'
34
34
  };
35
35
  }
36
36
  }
37
37
  },
38
38
  {
39
- key: "style.height",
40
- component: "styleComponent",
39
+ key: 'style.height',
40
+ component: 'styleComponent',
41
41
  props: {
42
- configKey: "style.heightConfig",
42
+ configKey: 'style.heightConfig',
43
43
  options: [
44
- "px",
45
- "%",
46
- "fill",
47
- "hug"
44
+ 'px',
45
+ '%',
46
+ 'fill',
47
+ 'hug'
48
48
  ]
49
49
  },
50
50
  scopeEffect: function scopeEffect(driven, payload) {
51
51
  var oldParent = payload.oldParent, newParent = payload.newParent, instance = payload.instance;
52
- if ((oldParent === null || oldParent === void 0 ? void 0 : oldParent.type) === "advanced-container" && newParent.type === "positioning-container") {
53
- driven.setInstance(instance, "style.height", "");
54
- driven.setInstance(instance, "style.heightConfig", "fill");
52
+ if ((oldParent === null || oldParent === void 0 ? void 0 : oldParent.type) === 'advanced-container' && newParent.type === 'positioning-container') {
53
+ driven.setInstance(instance, 'style.height', '');
54
+ driven.setInstance(instance, 'style.heightConfig', 'fill');
55
55
  }
56
56
  if (payload.newParent) {
57
57
  return {
58
- visible: payload.newParent.type === "advanced-container"
58
+ visible: payload.newParent.type === 'advanced-container'
59
59
  };
60
60
  }
61
61
  }
@@ -23,19 +23,19 @@ function _unsupported_iterable_to_array(o, minLen) {
23
23
  if (n === "Map" || n === "Set") return Array.from(n);
24
24
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
25
25
  }
26
- import { createBaseFields } from "./createBaseFields";
26
+ import { createBaseFields } from './createBaseFields';
27
27
  export function createFormBaseFields(defaultValues) {
28
28
  return _to_consumable_array(createBaseFields()).concat([
29
29
  {
30
- type: "DataBind",
31
- key: "dataBind",
32
- component: "data-bind",
30
+ type: 'DataBind',
31
+ key: 'dataBind',
32
+ component: 'data-bind',
33
33
  defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.dataBind
34
34
  },
35
35
  {
36
- key: "caption",
37
- type: "string",
38
- component: "input",
36
+ key: 'caption',
37
+ type: 'string',
38
+ component: 'input',
39
39
  props: {
40
40
  maxLength: 80,
41
41
  i18n: true
@@ -43,83 +43,83 @@ export function createFormBaseFields(defaultValues) {
43
43
  defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.caption,
44
44
  validator: function validator(value) {
45
45
  if (!value) {
46
- return "标题必填";
46
+ return '标题必填';
47
47
  }
48
48
  }
49
49
  },
50
50
  {
51
- label: "隐藏标题",
52
- key: "isHideCaption",
53
- type: "boolean",
54
- component: "switch",
51
+ label: '隐藏标题',
52
+ key: 'isHideCaption',
53
+ type: 'boolean',
54
+ component: 'switch',
55
55
  defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.isHideCaption,
56
56
  props: {
57
- showType: "checkbox"
57
+ showType: 'checkbox'
58
58
  },
59
59
  // 在明细表内隐藏
60
60
  scopeEffect: function scopeEffect(driven, payload) {
61
61
  var _payload_current, _payload_from;
62
62
  if (((_payload_current = payload.current) === null || _payload_current === void 0 ? void 0 : _payload_current.type) !== ((_payload_from = payload.from) === null || _payload_from === void 0 ? void 0 : _payload_from.type)) {
63
63
  //明细子表内默认开启
64
- if (payload.current.type === "subtable") {
65
- driven.setInstance(payload.control, "isHideCaption", true);
64
+ if (payload.current.type === 'subtable') {
65
+ driven.setInstance(payload.control, 'isHideCaption', true);
66
66
  }
67
67
  return {
68
- visible: payload.current.type !== "subtable"
68
+ visible: payload.current.type !== 'subtable'
69
69
  };
70
70
  }
71
71
  }
72
72
  },
73
73
  {
74
- key: "labelPosition",
75
- type: "string",
76
- component: "radio",
74
+ key: 'labelPosition',
75
+ type: 'string',
76
+ component: 'radio',
77
77
  defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.labelPosition,
78
78
  props: {
79
- showType: "solid",
79
+ showType: 'solid',
80
80
  options: [
81
81
  {
82
- label: "上下布局",
83
- value: "top"
82
+ label: '上下布局',
83
+ value: 'top'
84
84
  },
85
85
  {
86
- label: "左右布局",
87
- value: "left"
86
+ label: '左右布局',
87
+ value: 'left'
88
88
  }
89
89
  ]
90
90
  }
91
91
  },
92
92
  {
93
- key: "defaultState",
94
- type: "string",
95
- component: "radio",
93
+ key: 'defaultState',
94
+ type: 'string',
95
+ component: 'radio',
96
96
  defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.defaultState,
97
97
  props: {
98
- showType: "solid",
98
+ showType: 'solid',
99
99
  options: [
100
100
  {
101
- label: "普通",
102
- value: "default"
101
+ label: '普通',
102
+ value: 'default'
103
103
  },
104
104
  {
105
- label: "只读",
106
- value: "readonly"
105
+ label: '只读',
106
+ value: 'readonly'
107
107
  }
108
108
  ]
109
109
  }
110
110
  },
111
111
  {
112
- label: "必填",
113
- key: "required",
114
- type: "boolean",
115
- component: "switch",
112
+ label: '必填',
113
+ key: 'required',
114
+ type: 'boolean',
115
+ component: 'switch',
116
116
  defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.required
117
117
  },
118
118
  {
119
- label: "提示文字",
120
- key: "placeholder",
121
- type: "string",
122
- component: "input",
119
+ label: '提示文字',
120
+ key: 'placeholder',
121
+ type: 'string',
122
+ component: 'input',
123
123
  defaultValue: defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.placeholder,
124
124
  props: {
125
125
  maxLength: 80,
@@ -1,2 +1,2 @@
1
- export * from "./createBaseFields";
2
- export * from "./createFormBaseFields";
1
+ export * from './createBaseFields';
2
+ export * from './createFormBaseFields';
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export * from "./defineInstance";
2
- export * from "./initSettings";
3
- export * from "./schema";
4
- export * from "./default";
1
+ export * from './defineInstance';
2
+ export * from './initSettings';
3
+ export * from './schema';
4
+ export * from './default';
@@ -50,31 +50,31 @@ function _object_spread_props(target, source) {
50
50
  }
51
51
  return target;
52
52
  }
53
- import { Group, Setting } from "./schema";
54
- import { CustomProps } from "./props/custom";
55
- import { InputProps } from "./props/input";
56
- import { InputNumberProps } from "./props/input-number";
57
- import { SwitchProps } from "./props/switch";
58
- import { CheckboxProps } from "./props/checkbox";
59
- import { SelectProps } from "./props/select";
60
- import { RadioProps } from "./props/radio";
61
- import { TextareaProps } from "./props/textarea";
62
- import { isTabSchema, Tab } from "./schema/tab";
53
+ import { Group, Setting } from './schema';
54
+ import { CustomProps } from './props/custom';
55
+ import { InputProps } from './props/input';
56
+ import { InputNumberProps } from './props/input-number';
57
+ import { SwitchProps } from './props/switch';
58
+ import { CheckboxProps } from './props/checkbox';
59
+ import { SelectProps } from './props/select';
60
+ import { RadioProps } from './props/radio';
61
+ import { TextareaProps } from './props/textarea';
62
+ import { isTabSchema, Tab } from './schema/tab';
63
63
  function propsFactory(component, props) {
64
64
  switch(component){
65
- case "input":
65
+ case 'input':
66
66
  return new InputProps(props);
67
- case "textarea":
67
+ case 'textarea':
68
68
  return new TextareaProps(props);
69
- case "input-number":
69
+ case 'input-number':
70
70
  return new InputNumberProps(props);
71
- case "switch":
71
+ case 'switch':
72
72
  return new SwitchProps(props);
73
- case "radio":
73
+ case 'radio':
74
74
  return new RadioProps(props);
75
- case "checkbox":
75
+ case 'checkbox':
76
76
  return new CheckboxProps(props);
77
- case "select":
77
+ case 'select':
78
78
  return new SelectProps(props);
79
79
  default:
80
80
  return new CustomProps(props);
@@ -87,7 +87,7 @@ function buildSettingItem(settingMap) {
87
87
  return;
88
88
  }
89
89
  return new Setting(_object_spread_props(_object_spread({}, schema), {
90
- props: propsFactory(schema.component, "props" in schema ? schema.props : undefined)
90
+ props: propsFactory(schema.component, 'props' in schema ? schema.props : undefined)
91
91
  }));
92
92
  };
93
93
  }
@@ -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,6 +4,10 @@ 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
+ }
7
11
  function _class_call_check(instance, Constructor) {
8
12
  if (!(instance instanceof Constructor)) {
9
13
  throw new TypeError("Cannot call a class as a function");
@@ -59,39 +63,23 @@ function _type_of(obj) {
59
63
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
60
64
  }
61
65
  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;
65
66
  try {
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
- };
67
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
68
+ } catch (_) {}
69
+ return (_is_native_reflect_construct = function() {
70
+ return !!result;
71
+ })();
84
72
  }
85
- import { BaseProps } from "./base";
73
+ import { BaseProps } from './base';
86
74
  export var CheckboxProps = /*#__PURE__*/ function(BaseProps) {
87
75
  "use strict";
88
76
  _inherits(CheckboxProps, BaseProps);
89
- var _super = _create_super(CheckboxProps);
90
77
  function CheckboxProps(props) {
91
78
  _class_call_check(this, CheckboxProps);
92
79
  var _this;
93
- _this = _super.call(this, props);
94
- _define_property(_assert_this_initialized(_this), "options", void 0);
80
+ _this = _call_super(this, CheckboxProps, [
81
+ props
82
+ ]), _define_property(_this, "options", void 0);
95
83
  var _props_options;
96
84
  _this.options = (_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [];
97
85
  return _this;
@@ -12,6 +12,10 @@ 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
+ }
15
19
  function _class_call_check(instance, Constructor) {
16
20
  if (!(instance instanceof Constructor)) {
17
21
  throw new TypeError("Cannot call a class as a function");
@@ -92,39 +96,24 @@ function _unsupported_iterable_to_array(o, minLen) {
92
96
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
93
97
  }
94
98
  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;
98
99
  try {
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
- };
100
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
101
+ } catch (_) {}
102
+ return (_is_native_reflect_construct = function() {
103
+ return !!result;
104
+ })();
117
105
  }
118
- import { isPlainObject } from "@byteluck-fe/model-driven-shared";
119
- import { BaseProps } from "./base";
106
+ import { isPlainObject } from '@byteluck-fe/model-driven-shared';
107
+ import { BaseProps } from './base';
120
108
  export var CustomProps = /*#__PURE__*/ function(BaseProps) {
121
109
  "use strict";
122
110
  _inherits(CustomProps, BaseProps);
123
- var _super = _create_super(CustomProps);
124
111
  function CustomProps(props) {
125
112
  _class_call_check(this, CustomProps);
126
113
  var _this;
127
- _this = _super.call(this, props);
114
+ _this = _call_super(this, CustomProps, [
115
+ props
116
+ ]);
128
117
  if (isPlainObject(props)) {
129
118
  Object.entries(props).forEach(function(param) {
130
119
  var _param = _sliced_to_array(param, 2), key = _param[0], value = _param[1];
@@ -4,6 +4,10 @@ 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
+ }
7
11
  function _class_call_check(instance, Constructor) {
8
12
  if (!(instance instanceof Constructor)) {
9
13
  throw new TypeError("Cannot call a class as a function");
@@ -59,47 +63,29 @@ function _type_of(obj) {
59
63
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
60
64
  }
61
65
  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;
65
66
  try {
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
- };
67
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
68
+ } catch (_) {}
69
+ return (_is_native_reflect_construct = function() {
70
+ return !!result;
71
+ })();
84
72
  }
85
- import { BaseProps } from "./base";
73
+ import { BaseProps } from './base';
86
74
  export var InputNumberProps = /*#__PURE__*/ function(BaseProps) {
87
75
  "use strict";
88
76
  _inherits(InputNumberProps, BaseProps);
89
- var _super = _create_super(InputNumberProps);
90
77
  function InputNumberProps(props) {
91
78
  _class_call_check(this, InputNumberProps);
92
79
  var _this;
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);
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);
97
83
  var _props_max;
98
- _this.max = (_props_max = props === null || props === void 0 ? void 0 : props.max) !== null && _props_max !== void 0 ? _props_max : "";
84
+ _this.max = (_props_max = props === null || props === void 0 ? void 0 : props.max) !== null && _props_max !== void 0 ? _props_max : '';
99
85
  var _props_min;
100
- _this.min = (_props_min = props === null || props === void 0 ? void 0 : props.min) !== null && _props_min !== void 0 ? _props_min : "";
86
+ _this.min = (_props_min = props === null || props === void 0 ? void 0 : props.min) !== null && _props_min !== void 0 ? _props_min : '';
101
87
  var _props_placeholder;
102
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
88
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '';
103
89
  return _this;
104
90
  }
105
91
  return InputNumberProps;