@byteluck-fe/model-driven-settings 2.4.1-beta.0 → 2.4.1-beta.2
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 +29 -29
- package/dist/esm/default/createFormBaseFields.js +56 -56
- package/dist/esm/default/index.js +2 -2
- package/dist/esm/defineInstance.js +1 -0
- package/dist/esm/index.js +4 -4
- package/dist/esm/initSettings.js +24 -48
- package/dist/esm/props/base.js +8 -27
- package/dist/esm/props/checkbox.js +27 -41
- package/dist/esm/props/custom.js +36 -36
- package/dist/esm/props/input-number.js +31 -47
- package/dist/esm/props/input.js +33 -50
- package/dist/esm/props/radio.js +29 -44
- package/dist/esm/props/select.js +29 -44
- package/dist/esm/props/switch.js +31 -47
- package/dist/esm/props/textarea.js +37 -56
- package/dist/esm/schema/group.js +7 -25
- package/dist/esm/schema/index.js +3 -3
- package/dist/esm/schema/setting.js +13 -36
- package/dist/esm/schema/tab.js +4 -19
- package/dist/index.umd.js +2 -2
- package/dist/types/defineInstance.d.ts +3 -3
- package/dist/types/initSettings.d.ts +2 -2
- package/dist/types/schema/setting.d.ts +2 -2
- package/package.json +3 -3
package/dist/esm/props/custom.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _arrayLikeToArray(arr, len) {
|
|
2
2
|
if (len == null || len > arr.length) len = arr.length;
|
|
3
3
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4
4
|
return arr2;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function _arrayWithHoles(arr) {
|
|
7
7
|
if (Array.isArray(arr)) return arr;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function _assertThisInitialized(self) {
|
|
10
10
|
if (self === void 0) {
|
|
11
11
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
12
12
|
}
|
|
13
13
|
return self;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function _classCallCheck(instance, Constructor) {
|
|
16
16
|
if (!(instance instanceof Constructor)) {
|
|
17
17
|
throw new TypeError("Cannot call a class as a function");
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
|
|
20
|
+
function _getPrototypeOf(o) {
|
|
21
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
22
22
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
23
23
|
};
|
|
24
|
-
return
|
|
24
|
+
return _getPrototypeOf(o);
|
|
25
25
|
}
|
|
26
26
|
function _inherits(subClass, superClass) {
|
|
27
27
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -34,9 +34,9 @@ function _inherits(subClass, superClass) {
|
|
|
34
34
|
configurable: true
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
-
if (superClass)
|
|
37
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function _iterableToArrayLimit(arr, i) {
|
|
40
40
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
41
41
|
if (_i == null) return;
|
|
42
42
|
var _arr = [];
|
|
@@ -60,38 +60,38 @@ function _iterable_to_array_limit(arr, i) {
|
|
|
60
60
|
}
|
|
61
61
|
return _arr;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function _nonIterableRest() {
|
|
64
64
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
if (call && (
|
|
66
|
+
function _possibleConstructorReturn(self, call) {
|
|
67
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
68
68
|
return call;
|
|
69
69
|
}
|
|
70
|
-
return
|
|
70
|
+
return _assertThisInitialized(self);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
|
|
72
|
+
function _setPrototypeOf(o, p) {
|
|
73
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
74
74
|
o.__proto__ = p;
|
|
75
75
|
return o;
|
|
76
76
|
};
|
|
77
|
-
return
|
|
77
|
+
return _setPrototypeOf(o, p);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function _slicedToArray(arr, i) {
|
|
80
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
var _typeof = function(obj) {
|
|
83
83
|
"@swc/helpers - typeof";
|
|
84
84
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
85
|
-
}
|
|
86
|
-
function
|
|
85
|
+
};
|
|
86
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
87
87
|
if (!o) return;
|
|
88
|
-
if (typeof o === "string") return
|
|
88
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
89
89
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
90
90
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
91
91
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
92
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
92
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function _isNativeReflectConstruct() {
|
|
95
95
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
96
96
|
if (Reflect.construct.sham) return false;
|
|
97
97
|
if (typeof Proxy === "function") return true;
|
|
@@ -102,32 +102,32 @@ function _is_native_reflect_construct() {
|
|
|
102
102
|
return false;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
var hasNativeReflectConstruct =
|
|
105
|
+
function _createSuper(Derived) {
|
|
106
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
107
107
|
return function _createSuperInternal() {
|
|
108
|
-
var Super =
|
|
108
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
109
109
|
if (hasNativeReflectConstruct) {
|
|
110
|
-
var NewTarget =
|
|
110
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
111
111
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
112
112
|
} else {
|
|
113
113
|
result = Super.apply(this, arguments);
|
|
114
114
|
}
|
|
115
|
-
return
|
|
115
|
+
return _possibleConstructorReturn(this, result);
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
|
-
import { isPlainObject } from
|
|
119
|
-
import { BaseProps } from
|
|
120
|
-
export var CustomProps = /*#__PURE__*/ function(
|
|
118
|
+
import { isPlainObject } from '@byteluck-fe/model-driven-shared';
|
|
119
|
+
import { BaseProps } from './base';
|
|
120
|
+
export var CustomProps = /*#__PURE__*/ function(BaseProps1) {
|
|
121
121
|
"use strict";
|
|
122
|
-
_inherits(CustomProps,
|
|
123
|
-
var _super =
|
|
122
|
+
_inherits(CustomProps, BaseProps1);
|
|
123
|
+
var _super = _createSuper(CustomProps);
|
|
124
124
|
function CustomProps(props) {
|
|
125
|
-
|
|
125
|
+
_classCallCheck(this, CustomProps);
|
|
126
126
|
var _this;
|
|
127
127
|
_this = _super.call(this, props);
|
|
128
128
|
if (isPlainObject(props)) {
|
|
129
129
|
Object.entries(props).forEach(function(param) {
|
|
130
|
-
var _param =
|
|
130
|
+
var _param = _slicedToArray(param, 2), key = _param[0], value = _param[1];
|
|
131
131
|
_this[key] = value;
|
|
132
132
|
});
|
|
133
133
|
}
|
|
@@ -1,32 +1,19 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _assertThisInitialized(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 _classCallCheck(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
|
-
|
|
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) {
|
|
12
|
+
function _getPrototypeOf(o) {
|
|
13
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
27
14
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
28
15
|
};
|
|
29
|
-
return
|
|
16
|
+
return _getPrototypeOf(o);
|
|
30
17
|
}
|
|
31
18
|
function _inherits(subClass, superClass) {
|
|
32
19
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -39,26 +26,26 @@ function _inherits(subClass, superClass) {
|
|
|
39
26
|
configurable: true
|
|
40
27
|
}
|
|
41
28
|
});
|
|
42
|
-
if (superClass)
|
|
29
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
43
30
|
}
|
|
44
|
-
function
|
|
45
|
-
if (call && (
|
|
31
|
+
function _possibleConstructorReturn(self, call) {
|
|
32
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
46
33
|
return call;
|
|
47
34
|
}
|
|
48
|
-
return
|
|
35
|
+
return _assertThisInitialized(self);
|
|
49
36
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
37
|
+
function _setPrototypeOf(o, p) {
|
|
38
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
52
39
|
o.__proto__ = p;
|
|
53
40
|
return o;
|
|
54
41
|
};
|
|
55
|
-
return
|
|
42
|
+
return _setPrototypeOf(o, p);
|
|
56
43
|
}
|
|
57
|
-
function
|
|
44
|
+
var _typeof = function(obj) {
|
|
58
45
|
"@swc/helpers - typeof";
|
|
59
46
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
|
-
}
|
|
61
|
-
function
|
|
47
|
+
};
|
|
48
|
+
function _isNativeReflectConstruct() {
|
|
62
49
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
50
|
if (Reflect.construct.sham) return false;
|
|
64
51
|
if (typeof Proxy === "function") return true;
|
|
@@ -69,37 +56,34 @@ function _is_native_reflect_construct() {
|
|
|
69
56
|
return false;
|
|
70
57
|
}
|
|
71
58
|
}
|
|
72
|
-
function
|
|
73
|
-
var hasNativeReflectConstruct =
|
|
59
|
+
function _createSuper(Derived) {
|
|
60
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
74
61
|
return function _createSuperInternal() {
|
|
75
|
-
var Super =
|
|
62
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
76
63
|
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget =
|
|
64
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
78
65
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
66
|
} else {
|
|
80
67
|
result = Super.apply(this, arguments);
|
|
81
68
|
}
|
|
82
|
-
return
|
|
69
|
+
return _possibleConstructorReturn(this, result);
|
|
83
70
|
};
|
|
84
71
|
}
|
|
85
|
-
import { BaseProps } from
|
|
86
|
-
export var InputNumberProps = /*#__PURE__*/ function(
|
|
72
|
+
import { BaseProps } from './base';
|
|
73
|
+
export var InputNumberProps = /*#__PURE__*/ function(BaseProps1) {
|
|
87
74
|
"use strict";
|
|
88
|
-
_inherits(InputNumberProps,
|
|
89
|
-
var _super =
|
|
75
|
+
_inherits(InputNumberProps, BaseProps1);
|
|
76
|
+
var _super = _createSuper(InputNumberProps);
|
|
90
77
|
function InputNumberProps(props) {
|
|
91
|
-
|
|
78
|
+
_classCallCheck(this, InputNumberProps);
|
|
92
79
|
var _this;
|
|
93
80
|
_this = _super.call(this, props);
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
_this.min = (_props_min = props === null || props === void 0 ? void 0 : props.min) !== null && _props_min !== void 0 ? _props_min : "";
|
|
101
|
-
var _props_placeholder;
|
|
102
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
|
|
81
|
+
var ref;
|
|
82
|
+
_this.max = (ref = props === null || props === void 0 ? void 0 : props.max) !== null && ref !== void 0 ? ref : '';
|
|
83
|
+
var ref1;
|
|
84
|
+
_this.min = (ref1 = props === null || props === void 0 ? void 0 : props.min) !== null && ref1 !== void 0 ? ref1 : '';
|
|
85
|
+
var ref2;
|
|
86
|
+
_this.placeholder = (ref2 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && ref2 !== void 0 ? ref2 : '';
|
|
103
87
|
return _this;
|
|
104
88
|
}
|
|
105
89
|
return InputNumberProps;
|
package/dist/esm/props/input.js
CHANGED
|
@@ -1,32 +1,19 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _assertThisInitialized(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 _classCallCheck(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
|
-
|
|
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) {
|
|
12
|
+
function _getPrototypeOf(o) {
|
|
13
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
27
14
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
28
15
|
};
|
|
29
|
-
return
|
|
16
|
+
return _getPrototypeOf(o);
|
|
30
17
|
}
|
|
31
18
|
function _inherits(subClass, superClass) {
|
|
32
19
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -39,26 +26,26 @@ function _inherits(subClass, superClass) {
|
|
|
39
26
|
configurable: true
|
|
40
27
|
}
|
|
41
28
|
});
|
|
42
|
-
if (superClass)
|
|
29
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
43
30
|
}
|
|
44
|
-
function
|
|
45
|
-
if (call && (
|
|
31
|
+
function _possibleConstructorReturn(self, call) {
|
|
32
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
46
33
|
return call;
|
|
47
34
|
}
|
|
48
|
-
return
|
|
35
|
+
return _assertThisInitialized(self);
|
|
49
36
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
37
|
+
function _setPrototypeOf(o, p) {
|
|
38
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
52
39
|
o.__proto__ = p;
|
|
53
40
|
return o;
|
|
54
41
|
};
|
|
55
|
-
return
|
|
42
|
+
return _setPrototypeOf(o, p);
|
|
56
43
|
}
|
|
57
|
-
function
|
|
44
|
+
var _typeof = function(obj) {
|
|
58
45
|
"@swc/helpers - typeof";
|
|
59
46
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
|
-
}
|
|
61
|
-
function
|
|
47
|
+
};
|
|
48
|
+
function _isNativeReflectConstruct() {
|
|
62
49
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
50
|
if (Reflect.construct.sham) return false;
|
|
64
51
|
if (typeof Proxy === "function") return true;
|
|
@@ -69,40 +56,36 @@ function _is_native_reflect_construct() {
|
|
|
69
56
|
return false;
|
|
70
57
|
}
|
|
71
58
|
}
|
|
72
|
-
function
|
|
73
|
-
var hasNativeReflectConstruct =
|
|
59
|
+
function _createSuper(Derived) {
|
|
60
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
74
61
|
return function _createSuperInternal() {
|
|
75
|
-
var Super =
|
|
62
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
76
63
|
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget =
|
|
64
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
78
65
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
66
|
} else {
|
|
80
67
|
result = Super.apply(this, arguments);
|
|
81
68
|
}
|
|
82
|
-
return
|
|
69
|
+
return _possibleConstructorReturn(this, result);
|
|
83
70
|
};
|
|
84
71
|
}
|
|
85
|
-
import { BaseProps } from
|
|
86
|
-
export var InputProps = /*#__PURE__*/ function(
|
|
72
|
+
import { BaseProps } from './base';
|
|
73
|
+
export var InputProps = /*#__PURE__*/ function(BaseProps1) {
|
|
87
74
|
"use strict";
|
|
88
|
-
_inherits(InputProps,
|
|
89
|
-
var _super =
|
|
75
|
+
_inherits(InputProps, BaseProps1);
|
|
76
|
+
var _super = _createSuper(InputProps);
|
|
90
77
|
function InputProps(props) {
|
|
91
|
-
|
|
78
|
+
_classCallCheck(this, InputProps);
|
|
92
79
|
var _this;
|
|
93
80
|
_this = _super.call(this, props);
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
var
|
|
99
|
-
_this.
|
|
100
|
-
var
|
|
101
|
-
_this.
|
|
102
|
-
var _props_placeholder;
|
|
103
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
|
|
104
|
-
var _props_i18n;
|
|
105
|
-
_this.i18n = (_props_i18n = props === null || props === void 0 ? void 0 : props.i18n) !== null && _props_i18n !== void 0 ? _props_i18n : false;
|
|
81
|
+
var ref;
|
|
82
|
+
_this.maxLength = (ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && ref !== void 0 ? ref : '';
|
|
83
|
+
var ref1;
|
|
84
|
+
_this.minLength = (ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && ref1 !== void 0 ? ref1 : '';
|
|
85
|
+
var ref2;
|
|
86
|
+
_this.placeholder = (ref2 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && ref2 !== void 0 ? ref2 : '';
|
|
87
|
+
var ref3;
|
|
88
|
+
_this.i18n = (ref3 = props === null || props === void 0 ? void 0 : props.i18n) !== null && ref3 !== void 0 ? ref3 : false;
|
|
106
89
|
return _this;
|
|
107
90
|
}
|
|
108
91
|
return InputProps;
|
package/dist/esm/props/radio.js
CHANGED
|
@@ -1,32 +1,19 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _assertThisInitialized(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 _classCallCheck(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
|
-
|
|
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) {
|
|
12
|
+
function _getPrototypeOf(o) {
|
|
13
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
27
14
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
28
15
|
};
|
|
29
|
-
return
|
|
16
|
+
return _getPrototypeOf(o);
|
|
30
17
|
}
|
|
31
18
|
function _inherits(subClass, superClass) {
|
|
32
19
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -39,26 +26,26 @@ function _inherits(subClass, superClass) {
|
|
|
39
26
|
configurable: true
|
|
40
27
|
}
|
|
41
28
|
});
|
|
42
|
-
if (superClass)
|
|
29
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
43
30
|
}
|
|
44
|
-
function
|
|
45
|
-
if (call && (
|
|
31
|
+
function _possibleConstructorReturn(self, call) {
|
|
32
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
46
33
|
return call;
|
|
47
34
|
}
|
|
48
|
-
return
|
|
35
|
+
return _assertThisInitialized(self);
|
|
49
36
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
37
|
+
function _setPrototypeOf(o, p) {
|
|
38
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
52
39
|
o.__proto__ = p;
|
|
53
40
|
return o;
|
|
54
41
|
};
|
|
55
|
-
return
|
|
42
|
+
return _setPrototypeOf(o, p);
|
|
56
43
|
}
|
|
57
|
-
function
|
|
44
|
+
var _typeof = function(obj) {
|
|
58
45
|
"@swc/helpers - typeof";
|
|
59
46
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
|
-
}
|
|
61
|
-
function
|
|
47
|
+
};
|
|
48
|
+
function _isNativeReflectConstruct() {
|
|
62
49
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
50
|
if (Reflect.construct.sham) return false;
|
|
64
51
|
if (typeof Proxy === "function") return true;
|
|
@@ -69,34 +56,32 @@ function _is_native_reflect_construct() {
|
|
|
69
56
|
return false;
|
|
70
57
|
}
|
|
71
58
|
}
|
|
72
|
-
function
|
|
73
|
-
var hasNativeReflectConstruct =
|
|
59
|
+
function _createSuper(Derived) {
|
|
60
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
74
61
|
return function _createSuperInternal() {
|
|
75
|
-
var Super =
|
|
62
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
76
63
|
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget =
|
|
64
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
78
65
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
66
|
} else {
|
|
80
67
|
result = Super.apply(this, arguments);
|
|
81
68
|
}
|
|
82
|
-
return
|
|
69
|
+
return _possibleConstructorReturn(this, result);
|
|
83
70
|
};
|
|
84
71
|
}
|
|
85
|
-
import { BaseProps } from
|
|
86
|
-
export var RadioProps = /*#__PURE__*/ function(
|
|
72
|
+
import { BaseProps } from './base';
|
|
73
|
+
export var RadioProps = /*#__PURE__*/ function(BaseProps1) {
|
|
87
74
|
"use strict";
|
|
88
|
-
_inherits(RadioProps,
|
|
89
|
-
var _super =
|
|
75
|
+
_inherits(RadioProps, BaseProps1);
|
|
76
|
+
var _super = _createSuper(RadioProps);
|
|
90
77
|
function RadioProps(props) {
|
|
91
|
-
|
|
78
|
+
_classCallCheck(this, RadioProps);
|
|
92
79
|
var _this;
|
|
93
80
|
_this = _super.call(this, props);
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
var
|
|
97
|
-
_this.
|
|
98
|
-
var _props_showType;
|
|
99
|
-
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : "outline";
|
|
81
|
+
var ref;
|
|
82
|
+
_this.options = (ref = props === null || props === void 0 ? void 0 : props.options) !== null && ref !== void 0 ? ref : [];
|
|
83
|
+
var ref1;
|
|
84
|
+
_this.showType = (ref1 = props === null || props === void 0 ? void 0 : props.showType) !== null && ref1 !== void 0 ? ref1 : 'outline';
|
|
100
85
|
return _this;
|
|
101
86
|
}
|
|
102
87
|
return RadioProps;
|
package/dist/esm/props/select.js
CHANGED
|
@@ -1,32 +1,19 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _assertThisInitialized(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 _classCallCheck(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
|
-
|
|
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) {
|
|
12
|
+
function _getPrototypeOf(o) {
|
|
13
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
27
14
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
28
15
|
};
|
|
29
|
-
return
|
|
16
|
+
return _getPrototypeOf(o);
|
|
30
17
|
}
|
|
31
18
|
function _inherits(subClass, superClass) {
|
|
32
19
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -39,26 +26,26 @@ function _inherits(subClass, superClass) {
|
|
|
39
26
|
configurable: true
|
|
40
27
|
}
|
|
41
28
|
});
|
|
42
|
-
if (superClass)
|
|
29
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
43
30
|
}
|
|
44
|
-
function
|
|
45
|
-
if (call && (
|
|
31
|
+
function _possibleConstructorReturn(self, call) {
|
|
32
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
46
33
|
return call;
|
|
47
34
|
}
|
|
48
|
-
return
|
|
35
|
+
return _assertThisInitialized(self);
|
|
49
36
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
37
|
+
function _setPrototypeOf(o, p) {
|
|
38
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
52
39
|
o.__proto__ = p;
|
|
53
40
|
return o;
|
|
54
41
|
};
|
|
55
|
-
return
|
|
42
|
+
return _setPrototypeOf(o, p);
|
|
56
43
|
}
|
|
57
|
-
function
|
|
44
|
+
var _typeof = function(obj) {
|
|
58
45
|
"@swc/helpers - typeof";
|
|
59
46
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
|
-
}
|
|
61
|
-
function
|
|
47
|
+
};
|
|
48
|
+
function _isNativeReflectConstruct() {
|
|
62
49
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
50
|
if (Reflect.construct.sham) return false;
|
|
64
51
|
if (typeof Proxy === "function") return true;
|
|
@@ -69,34 +56,32 @@ function _is_native_reflect_construct() {
|
|
|
69
56
|
return false;
|
|
70
57
|
}
|
|
71
58
|
}
|
|
72
|
-
function
|
|
73
|
-
var hasNativeReflectConstruct =
|
|
59
|
+
function _createSuper(Derived) {
|
|
60
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
74
61
|
return function _createSuperInternal() {
|
|
75
|
-
var Super =
|
|
62
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
76
63
|
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget =
|
|
64
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
78
65
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
66
|
} else {
|
|
80
67
|
result = Super.apply(this, arguments);
|
|
81
68
|
}
|
|
82
|
-
return
|
|
69
|
+
return _possibleConstructorReturn(this, result);
|
|
83
70
|
};
|
|
84
71
|
}
|
|
85
|
-
import { BaseProps } from
|
|
86
|
-
export var SelectProps = /*#__PURE__*/ function(
|
|
72
|
+
import { BaseProps } from './base';
|
|
73
|
+
export var SelectProps = /*#__PURE__*/ function(BaseProps1) {
|
|
87
74
|
"use strict";
|
|
88
|
-
_inherits(SelectProps,
|
|
89
|
-
var _super =
|
|
75
|
+
_inherits(SelectProps, BaseProps1);
|
|
76
|
+
var _super = _createSuper(SelectProps);
|
|
90
77
|
function SelectProps(props) {
|
|
91
|
-
|
|
78
|
+
_classCallCheck(this, SelectProps);
|
|
92
79
|
var _this;
|
|
93
80
|
_this = _super.call(this, props);
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
var
|
|
97
|
-
_this.
|
|
98
|
-
var _props_options;
|
|
99
|
-
_this.options = (_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [];
|
|
81
|
+
var ref;
|
|
82
|
+
_this.placeholder = (ref = props === null || props === void 0 ? void 0 : props.placeholder) !== null && ref !== void 0 ? ref : '';
|
|
83
|
+
var ref1;
|
|
84
|
+
_this.options = (ref1 = props === null || props === void 0 ? void 0 : props.options) !== null && ref1 !== void 0 ? ref1 : [];
|
|
100
85
|
return _this;
|
|
101
86
|
}
|
|
102
87
|
return SelectProps;
|