@byteluck-fe/model-driven-settings 2.7.0-alpha.2 → 2.7.0-alpha.21
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/dist/esm/default/createBaseFields.js +4 -2
- package/dist/esm/default/createFormBaseFields.js +19 -18
- package/dist/esm/initSettings.js +7 -7
- package/dist/esm/props/base.js +32 -6
- package/dist/esm/props/checkbox.js +38 -23
- package/dist/esm/props/custom.js +32 -32
- package/dist/esm/props/input-number.js +42 -25
- package/dist/esm/props/input.js +44 -26
- package/dist/esm/props/radio.js +40 -24
- package/dist/esm/props/select.js +40 -24
- package/dist/esm/props/switch.js +42 -25
- package/dist/esm/props/textarea.js +48 -28
- package/dist/esm/schema/group.js +26 -3
- package/dist/esm/schema/setting.js +91 -41
- package/dist/esm/schema/tab.js +18 -3
- package/dist/index.umd.js +2 -2
- package/dist/types/props/base.d.ts +5 -0
- package/dist/types/schema/group.d.ts +1 -0
- package/package.json +4 -4
package/dist/esm/props/input.js
CHANGED
|
@@ -1,19 +1,32 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
2
|
if (self === void 0) {
|
|
3
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function _class_call_check(instance, Constructor) {
|
|
8
8
|
if (!(instance instanceof Constructor)) {
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
|
|
12
|
+
function _define_property(obj, key, value) {
|
|
13
|
+
if (key in obj) {
|
|
14
|
+
Object.defineProperty(obj, key, {
|
|
15
|
+
value: value,
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true
|
|
19
|
+
});
|
|
20
|
+
} else {
|
|
21
|
+
obj[key] = value;
|
|
22
|
+
}
|
|
23
|
+
return obj;
|
|
24
|
+
}
|
|
25
|
+
function _get_prototype_of(o) {
|
|
26
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
14
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
15
28
|
};
|
|
16
|
-
return
|
|
29
|
+
return _get_prototype_of(o);
|
|
17
30
|
}
|
|
18
31
|
function _inherits(subClass, superClass) {
|
|
19
32
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -26,26 +39,26 @@ function _inherits(subClass, superClass) {
|
|
|
26
39
|
configurable: true
|
|
27
40
|
}
|
|
28
41
|
});
|
|
29
|
-
if (superClass)
|
|
42
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
30
43
|
}
|
|
31
|
-
function
|
|
32
|
-
if (call && (
|
|
44
|
+
function _possible_constructor_return(self, call) {
|
|
45
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
33
46
|
return call;
|
|
34
47
|
}
|
|
35
|
-
return
|
|
48
|
+
return _assert_this_initialized(self);
|
|
36
49
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
50
|
+
function _set_prototype_of(o, p) {
|
|
51
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
39
52
|
o.__proto__ = p;
|
|
40
53
|
return o;
|
|
41
54
|
};
|
|
42
|
-
return
|
|
55
|
+
return _set_prototype_of(o, p);
|
|
43
56
|
}
|
|
44
|
-
|
|
57
|
+
function _type_of(obj) {
|
|
45
58
|
"@swc/helpers - typeof";
|
|
46
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
47
|
-
}
|
|
48
|
-
function
|
|
60
|
+
}
|
|
61
|
+
function _is_native_reflect_construct() {
|
|
49
62
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
50
63
|
if (Reflect.construct.sham) return false;
|
|
51
64
|
if (typeof Proxy === "function") return true;
|
|
@@ -56,36 +69,41 @@ function _isNativeReflectConstruct() {
|
|
|
56
69
|
return false;
|
|
57
70
|
}
|
|
58
71
|
}
|
|
59
|
-
function
|
|
60
|
-
var hasNativeReflectConstruct =
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
61
74
|
return function _createSuperInternal() {
|
|
62
|
-
var Super =
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
63
76
|
if (hasNativeReflectConstruct) {
|
|
64
|
-
var NewTarget =
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
65
78
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
66
79
|
} else {
|
|
67
80
|
result = Super.apply(this, arguments);
|
|
68
81
|
}
|
|
69
|
-
return
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
70
83
|
};
|
|
71
84
|
}
|
|
72
85
|
import { BaseProps } from "./base";
|
|
73
86
|
export var InputProps = /*#__PURE__*/ function(BaseProps) {
|
|
74
87
|
"use strict";
|
|
75
88
|
_inherits(InputProps, BaseProps);
|
|
76
|
-
var _super =
|
|
89
|
+
var _super = _create_super(InputProps);
|
|
77
90
|
function InputProps(props) {
|
|
78
|
-
|
|
91
|
+
_class_call_check(this, InputProps);
|
|
79
92
|
var _this;
|
|
93
|
+
var _props, _props1, _props2, _props3;
|
|
80
94
|
_this = _super.call(this, props);
|
|
95
|
+
_define_property(_assert_this_initialized(_this), "maxLength", void 0);
|
|
96
|
+
_define_property(_assert_this_initialized(_this), "minLength", void 0);
|
|
97
|
+
_define_property(_assert_this_initialized(_this), "placeholder", void 0);
|
|
98
|
+
_define_property(_assert_this_initialized(_this), "i18n", void 0);
|
|
81
99
|
var _props_maxLength;
|
|
82
|
-
_this.maxLength = (_props_maxLength = props === null ||
|
|
100
|
+
_this.maxLength = (_props_maxLength = (_props = props) === null || _props === void 0 ? void 0 : _props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : "";
|
|
83
101
|
var _props_minLength;
|
|
84
|
-
_this.minLength = (_props_minLength = props === null ||
|
|
102
|
+
_this.minLength = (_props_minLength = (_props1 = props) === null || _props1 === void 0 ? void 0 : _props1.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : "";
|
|
85
103
|
var _props_placeholder;
|
|
86
|
-
_this.placeholder = (_props_placeholder = props === null ||
|
|
104
|
+
_this.placeholder = (_props_placeholder = (_props2 = props) === null || _props2 === void 0 ? void 0 : _props2.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
|
|
87
105
|
var _props_i18n;
|
|
88
|
-
_this.i18n = (_props_i18n = props === null ||
|
|
106
|
+
_this.i18n = (_props_i18n = (_props3 = props) === null || _props3 === void 0 ? void 0 : _props3.i18n) !== null && _props_i18n !== void 0 ? _props_i18n : false;
|
|
89
107
|
return _this;
|
|
90
108
|
}
|
|
91
109
|
return InputProps;
|
package/dist/esm/props/radio.js
CHANGED
|
@@ -1,19 +1,32 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
2
|
if (self === void 0) {
|
|
3
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function _class_call_check(instance, Constructor) {
|
|
8
8
|
if (!(instance instanceof Constructor)) {
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
|
|
12
|
+
function _define_property(obj, key, value) {
|
|
13
|
+
if (key in obj) {
|
|
14
|
+
Object.defineProperty(obj, key, {
|
|
15
|
+
value: value,
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true
|
|
19
|
+
});
|
|
20
|
+
} else {
|
|
21
|
+
obj[key] = value;
|
|
22
|
+
}
|
|
23
|
+
return obj;
|
|
24
|
+
}
|
|
25
|
+
function _get_prototype_of(o) {
|
|
26
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
14
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
15
28
|
};
|
|
16
|
-
return
|
|
29
|
+
return _get_prototype_of(o);
|
|
17
30
|
}
|
|
18
31
|
function _inherits(subClass, superClass) {
|
|
19
32
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -26,26 +39,26 @@ function _inherits(subClass, superClass) {
|
|
|
26
39
|
configurable: true
|
|
27
40
|
}
|
|
28
41
|
});
|
|
29
|
-
if (superClass)
|
|
42
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
30
43
|
}
|
|
31
|
-
function
|
|
32
|
-
if (call && (
|
|
44
|
+
function _possible_constructor_return(self, call) {
|
|
45
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
33
46
|
return call;
|
|
34
47
|
}
|
|
35
|
-
return
|
|
48
|
+
return _assert_this_initialized(self);
|
|
36
49
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
50
|
+
function _set_prototype_of(o, p) {
|
|
51
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
39
52
|
o.__proto__ = p;
|
|
40
53
|
return o;
|
|
41
54
|
};
|
|
42
|
-
return
|
|
55
|
+
return _set_prototype_of(o, p);
|
|
43
56
|
}
|
|
44
|
-
|
|
57
|
+
function _type_of(obj) {
|
|
45
58
|
"@swc/helpers - typeof";
|
|
46
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
47
|
-
}
|
|
48
|
-
function
|
|
60
|
+
}
|
|
61
|
+
function _is_native_reflect_construct() {
|
|
49
62
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
50
63
|
if (Reflect.construct.sham) return false;
|
|
51
64
|
if (typeof Proxy === "function") return true;
|
|
@@ -56,32 +69,35 @@ function _isNativeReflectConstruct() {
|
|
|
56
69
|
return false;
|
|
57
70
|
}
|
|
58
71
|
}
|
|
59
|
-
function
|
|
60
|
-
var hasNativeReflectConstruct =
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
61
74
|
return function _createSuperInternal() {
|
|
62
|
-
var Super =
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
63
76
|
if (hasNativeReflectConstruct) {
|
|
64
|
-
var NewTarget =
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
65
78
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
66
79
|
} else {
|
|
67
80
|
result = Super.apply(this, arguments);
|
|
68
81
|
}
|
|
69
|
-
return
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
70
83
|
};
|
|
71
84
|
}
|
|
72
85
|
import { BaseProps } from "./base";
|
|
73
86
|
export var RadioProps = /*#__PURE__*/ function(BaseProps) {
|
|
74
87
|
"use strict";
|
|
75
88
|
_inherits(RadioProps, BaseProps);
|
|
76
|
-
var _super =
|
|
89
|
+
var _super = _create_super(RadioProps);
|
|
77
90
|
function RadioProps(props) {
|
|
78
|
-
|
|
91
|
+
_class_call_check(this, RadioProps);
|
|
79
92
|
var _this;
|
|
93
|
+
var _props, _props1;
|
|
80
94
|
_this = _super.call(this, props);
|
|
95
|
+
_define_property(_assert_this_initialized(_this), "options", void 0);
|
|
96
|
+
_define_property(_assert_this_initialized(_this), "showType", void 0);
|
|
81
97
|
var _props_options;
|
|
82
|
-
_this.options = (_props_options = props === null ||
|
|
98
|
+
_this.options = (_props_options = (_props = props) === null || _props === void 0 ? void 0 : _props.options) !== null && _props_options !== void 0 ? _props_options : [];
|
|
83
99
|
var _props_showType;
|
|
84
|
-
_this.showType = (_props_showType = props === null ||
|
|
100
|
+
_this.showType = (_props_showType = (_props1 = props) === null || _props1 === void 0 ? void 0 : _props1.showType) !== null && _props_showType !== void 0 ? _props_showType : "outline";
|
|
85
101
|
return _this;
|
|
86
102
|
}
|
|
87
103
|
return RadioProps;
|
package/dist/esm/props/select.js
CHANGED
|
@@ -1,19 +1,32 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
2
|
if (self === void 0) {
|
|
3
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function _class_call_check(instance, Constructor) {
|
|
8
8
|
if (!(instance instanceof Constructor)) {
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
|
|
12
|
+
function _define_property(obj, key, value) {
|
|
13
|
+
if (key in obj) {
|
|
14
|
+
Object.defineProperty(obj, key, {
|
|
15
|
+
value: value,
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true
|
|
19
|
+
});
|
|
20
|
+
} else {
|
|
21
|
+
obj[key] = value;
|
|
22
|
+
}
|
|
23
|
+
return obj;
|
|
24
|
+
}
|
|
25
|
+
function _get_prototype_of(o) {
|
|
26
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
14
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
15
28
|
};
|
|
16
|
-
return
|
|
29
|
+
return _get_prototype_of(o);
|
|
17
30
|
}
|
|
18
31
|
function _inherits(subClass, superClass) {
|
|
19
32
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -26,26 +39,26 @@ function _inherits(subClass, superClass) {
|
|
|
26
39
|
configurable: true
|
|
27
40
|
}
|
|
28
41
|
});
|
|
29
|
-
if (superClass)
|
|
42
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
30
43
|
}
|
|
31
|
-
function
|
|
32
|
-
if (call && (
|
|
44
|
+
function _possible_constructor_return(self, call) {
|
|
45
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
33
46
|
return call;
|
|
34
47
|
}
|
|
35
|
-
return
|
|
48
|
+
return _assert_this_initialized(self);
|
|
36
49
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
50
|
+
function _set_prototype_of(o, p) {
|
|
51
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
39
52
|
o.__proto__ = p;
|
|
40
53
|
return o;
|
|
41
54
|
};
|
|
42
|
-
return
|
|
55
|
+
return _set_prototype_of(o, p);
|
|
43
56
|
}
|
|
44
|
-
|
|
57
|
+
function _type_of(obj) {
|
|
45
58
|
"@swc/helpers - typeof";
|
|
46
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
47
|
-
}
|
|
48
|
-
function
|
|
60
|
+
}
|
|
61
|
+
function _is_native_reflect_construct() {
|
|
49
62
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
50
63
|
if (Reflect.construct.sham) return false;
|
|
51
64
|
if (typeof Proxy === "function") return true;
|
|
@@ -56,32 +69,35 @@ function _isNativeReflectConstruct() {
|
|
|
56
69
|
return false;
|
|
57
70
|
}
|
|
58
71
|
}
|
|
59
|
-
function
|
|
60
|
-
var hasNativeReflectConstruct =
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
61
74
|
return function _createSuperInternal() {
|
|
62
|
-
var Super =
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
63
76
|
if (hasNativeReflectConstruct) {
|
|
64
|
-
var NewTarget =
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
65
78
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
66
79
|
} else {
|
|
67
80
|
result = Super.apply(this, arguments);
|
|
68
81
|
}
|
|
69
|
-
return
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
70
83
|
};
|
|
71
84
|
}
|
|
72
85
|
import { BaseProps } from "./base";
|
|
73
86
|
export var SelectProps = /*#__PURE__*/ function(BaseProps) {
|
|
74
87
|
"use strict";
|
|
75
88
|
_inherits(SelectProps, BaseProps);
|
|
76
|
-
var _super =
|
|
89
|
+
var _super = _create_super(SelectProps);
|
|
77
90
|
function SelectProps(props) {
|
|
78
|
-
|
|
91
|
+
_class_call_check(this, SelectProps);
|
|
79
92
|
var _this;
|
|
93
|
+
var _props, _props1;
|
|
80
94
|
_this = _super.call(this, props);
|
|
95
|
+
_define_property(_assert_this_initialized(_this), "placeholder", void 0);
|
|
96
|
+
_define_property(_assert_this_initialized(_this), "options", void 0);
|
|
81
97
|
var _props_placeholder;
|
|
82
|
-
_this.placeholder = (_props_placeholder = props === null ||
|
|
98
|
+
_this.placeholder = (_props_placeholder = (_props = props) === null || _props === void 0 ? void 0 : _props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
|
|
83
99
|
var _props_options;
|
|
84
|
-
_this.options = (_props_options = props === null ||
|
|
100
|
+
_this.options = (_props_options = (_props1 = props) === null || _props1 === void 0 ? void 0 : _props1.options) !== null && _props_options !== void 0 ? _props_options : [];
|
|
85
101
|
return _this;
|
|
86
102
|
}
|
|
87
103
|
return SelectProps;
|
package/dist/esm/props/switch.js
CHANGED
|
@@ -1,19 +1,32 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
2
|
if (self === void 0) {
|
|
3
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function _class_call_check(instance, Constructor) {
|
|
8
8
|
if (!(instance instanceof Constructor)) {
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
|
|
12
|
+
function _define_property(obj, key, value) {
|
|
13
|
+
if (key in obj) {
|
|
14
|
+
Object.defineProperty(obj, key, {
|
|
15
|
+
value: value,
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true
|
|
19
|
+
});
|
|
20
|
+
} else {
|
|
21
|
+
obj[key] = value;
|
|
22
|
+
}
|
|
23
|
+
return obj;
|
|
24
|
+
}
|
|
25
|
+
function _get_prototype_of(o) {
|
|
26
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
14
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
15
28
|
};
|
|
16
|
-
return
|
|
29
|
+
return _get_prototype_of(o);
|
|
17
30
|
}
|
|
18
31
|
function _inherits(subClass, superClass) {
|
|
19
32
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -26,26 +39,26 @@ function _inherits(subClass, superClass) {
|
|
|
26
39
|
configurable: true
|
|
27
40
|
}
|
|
28
41
|
});
|
|
29
|
-
if (superClass)
|
|
42
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
30
43
|
}
|
|
31
|
-
function
|
|
32
|
-
if (call && (
|
|
44
|
+
function _possible_constructor_return(self, call) {
|
|
45
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
33
46
|
return call;
|
|
34
47
|
}
|
|
35
|
-
return
|
|
48
|
+
return _assert_this_initialized(self);
|
|
36
49
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
50
|
+
function _set_prototype_of(o, p) {
|
|
51
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
39
52
|
o.__proto__ = p;
|
|
40
53
|
return o;
|
|
41
54
|
};
|
|
42
|
-
return
|
|
55
|
+
return _set_prototype_of(o, p);
|
|
43
56
|
}
|
|
44
|
-
|
|
57
|
+
function _type_of(obj) {
|
|
45
58
|
"@swc/helpers - typeof";
|
|
46
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
47
|
-
}
|
|
48
|
-
function
|
|
60
|
+
}
|
|
61
|
+
function _is_native_reflect_construct() {
|
|
49
62
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
50
63
|
if (Reflect.construct.sham) return false;
|
|
51
64
|
if (typeof Proxy === "function") return true;
|
|
@@ -56,34 +69,38 @@ function _isNativeReflectConstruct() {
|
|
|
56
69
|
return false;
|
|
57
70
|
}
|
|
58
71
|
}
|
|
59
|
-
function
|
|
60
|
-
var hasNativeReflectConstruct =
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
61
74
|
return function _createSuperInternal() {
|
|
62
|
-
var Super =
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
63
76
|
if (hasNativeReflectConstruct) {
|
|
64
|
-
var NewTarget =
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
65
78
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
66
79
|
} else {
|
|
67
80
|
result = Super.apply(this, arguments);
|
|
68
81
|
}
|
|
69
|
-
return
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
70
83
|
};
|
|
71
84
|
}
|
|
72
85
|
import { BaseProps } from "./base";
|
|
73
86
|
export var SwitchProps = /*#__PURE__*/ function(BaseProps) {
|
|
74
87
|
"use strict";
|
|
75
88
|
_inherits(SwitchProps, BaseProps);
|
|
76
|
-
var _super =
|
|
89
|
+
var _super = _create_super(SwitchProps);
|
|
77
90
|
function SwitchProps(props) {
|
|
78
|
-
|
|
91
|
+
_class_call_check(this, SwitchProps);
|
|
79
92
|
var _this;
|
|
93
|
+
var _props, _props1, _props2;
|
|
80
94
|
_this = _super.call(this, props);
|
|
95
|
+
_define_property(_assert_this_initialized(_this), "showType", void 0);
|
|
96
|
+
_define_property(_assert_this_initialized(_this), "tips", void 0);
|
|
97
|
+
_define_property(_assert_this_initialized(_this), "disabled", void 0);
|
|
81
98
|
var _props_showType;
|
|
82
|
-
_this.showType = (_props_showType = props === null ||
|
|
99
|
+
_this.showType = (_props_showType = (_props = props) === null || _props === void 0 ? void 0 : _props.showType) !== null && _props_showType !== void 0 ? _props_showType : "switch";
|
|
83
100
|
var _props_tips;
|
|
84
|
-
_this.tips = (_props_tips = props === null ||
|
|
101
|
+
_this.tips = (_props_tips = (_props1 = props) === null || _props1 === void 0 ? void 0 : _props1.tips) !== null && _props_tips !== void 0 ? _props_tips : "";
|
|
85
102
|
var _props_disabled;
|
|
86
|
-
_this.disabled = (_props_disabled = props === null ||
|
|
103
|
+
_this.disabled = (_props_disabled = (_props2 = props) === null || _props2 === void 0 ? void 0 : _props2.disabled) !== null && _props_disabled !== void 0 ? _props_disabled : false;
|
|
87
104
|
return _this;
|
|
88
105
|
}
|
|
89
106
|
return SwitchProps;
|
|
@@ -1,19 +1,32 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
2
|
if (self === void 0) {
|
|
3
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function _class_call_check(instance, Constructor) {
|
|
8
8
|
if (!(instance instanceof Constructor)) {
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
|
|
12
|
+
function _define_property(obj, key, value) {
|
|
13
|
+
if (key in obj) {
|
|
14
|
+
Object.defineProperty(obj, key, {
|
|
15
|
+
value: value,
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true
|
|
19
|
+
});
|
|
20
|
+
} else {
|
|
21
|
+
obj[key] = value;
|
|
22
|
+
}
|
|
23
|
+
return obj;
|
|
24
|
+
}
|
|
25
|
+
function _get_prototype_of(o) {
|
|
26
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
14
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
15
28
|
};
|
|
16
|
-
return
|
|
29
|
+
return _get_prototype_of(o);
|
|
17
30
|
}
|
|
18
31
|
function _inherits(subClass, superClass) {
|
|
19
32
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -26,26 +39,26 @@ function _inherits(subClass, superClass) {
|
|
|
26
39
|
configurable: true
|
|
27
40
|
}
|
|
28
41
|
});
|
|
29
|
-
if (superClass)
|
|
42
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
30
43
|
}
|
|
31
|
-
function
|
|
32
|
-
if (call && (
|
|
44
|
+
function _possible_constructor_return(self, call) {
|
|
45
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
33
46
|
return call;
|
|
34
47
|
}
|
|
35
|
-
return
|
|
48
|
+
return _assert_this_initialized(self);
|
|
36
49
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
50
|
+
function _set_prototype_of(o, p) {
|
|
51
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
39
52
|
o.__proto__ = p;
|
|
40
53
|
return o;
|
|
41
54
|
};
|
|
42
|
-
return
|
|
55
|
+
return _set_prototype_of(o, p);
|
|
43
56
|
}
|
|
44
|
-
|
|
57
|
+
function _type_of(obj) {
|
|
45
58
|
"@swc/helpers - typeof";
|
|
46
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
47
|
-
}
|
|
48
|
-
function
|
|
60
|
+
}
|
|
61
|
+
function _is_native_reflect_construct() {
|
|
49
62
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
50
63
|
if (Reflect.construct.sham) return false;
|
|
51
64
|
if (typeof Proxy === "function") return true;
|
|
@@ -56,40 +69,47 @@ function _isNativeReflectConstruct() {
|
|
|
56
69
|
return false;
|
|
57
70
|
}
|
|
58
71
|
}
|
|
59
|
-
function
|
|
60
|
-
var hasNativeReflectConstruct =
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
61
74
|
return function _createSuperInternal() {
|
|
62
|
-
var Super =
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
63
76
|
if (hasNativeReflectConstruct) {
|
|
64
|
-
var NewTarget =
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
65
78
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
66
79
|
} else {
|
|
67
80
|
result = Super.apply(this, arguments);
|
|
68
81
|
}
|
|
69
|
-
return
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
70
83
|
};
|
|
71
84
|
}
|
|
72
85
|
import { BaseProps } from "./base";
|
|
73
86
|
export var TextareaProps = /*#__PURE__*/ function(BaseProps) {
|
|
74
87
|
"use strict";
|
|
75
88
|
_inherits(TextareaProps, BaseProps);
|
|
76
|
-
var _super =
|
|
89
|
+
var _super = _create_super(TextareaProps);
|
|
77
90
|
function TextareaProps(props) {
|
|
78
|
-
|
|
91
|
+
_class_call_check(this, TextareaProps);
|
|
79
92
|
var _this;
|
|
93
|
+
var _props, _props1, _props2, _props3, _props4, _props5;
|
|
80
94
|
_this = _super.call(this, props);
|
|
95
|
+
_define_property(_assert_this_initialized(_this), "maxLength", void 0);
|
|
96
|
+
_define_property(_assert_this_initialized(_this), "minLength", void 0);
|
|
97
|
+
_define_property(_assert_this_initialized(_this), "placeholder", void 0);
|
|
98
|
+
_define_property(_assert_this_initialized(_this), "i18n", void 0);
|
|
99
|
+
_define_property(_assert_this_initialized(_this), "maxRows", void 0);
|
|
100
|
+
_define_property(_assert_this_initialized(_this), "minRows", void 0);
|
|
81
101
|
var _props_maxLength;
|
|
82
|
-
_this.maxLength = (_props_maxLength = props === null ||
|
|
102
|
+
_this.maxLength = (_props_maxLength = (_props = props) === null || _props === void 0 ? void 0 : _props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : "";
|
|
83
103
|
var _props_minLength;
|
|
84
|
-
_this.minLength = (_props_minLength = props === null ||
|
|
104
|
+
_this.minLength = (_props_minLength = (_props1 = props) === null || _props1 === void 0 ? void 0 : _props1.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : "";
|
|
85
105
|
var _props_placeholder;
|
|
86
|
-
_this.placeholder = (_props_placeholder = props === null ||
|
|
106
|
+
_this.placeholder = (_props_placeholder = (_props2 = props) === null || _props2 === void 0 ? void 0 : _props2.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
|
|
87
107
|
var _props_maxRows;
|
|
88
|
-
_this.maxRows = (_props_maxRows = props === null ||
|
|
108
|
+
_this.maxRows = (_props_maxRows = (_props3 = props) === null || _props3 === void 0 ? void 0 : _props3.maxRows) !== null && _props_maxRows !== void 0 ? _props_maxRows : "";
|
|
89
109
|
var _props_minRows;
|
|
90
|
-
_this.minRows = (_props_minRows = props === null ||
|
|
110
|
+
_this.minRows = (_props_minRows = (_props4 = props) === null || _props4 === void 0 ? void 0 : _props4.minRows) !== null && _props_minRows !== void 0 ? _props_minRows : "";
|
|
91
111
|
var _props_i18n;
|
|
92
|
-
_this.i18n = (_props_i18n = props === null ||
|
|
112
|
+
_this.i18n = (_props_i18n = (_props5 = props) === null || _props5 === void 0 ? void 0 : _props5.i18n) !== null && _props_i18n !== void 0 ? _props_i18n : false;
|
|
93
113
|
return _this;
|
|
94
114
|
}
|
|
95
115
|
return TextareaProps;
|