@byteluck-fe/model-driven-settings 2.7.0-alpha.8 → 2.7.0-beta.4
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/createFormBaseFields.js +11 -11
- package/dist/esm/initSettings.js +7 -7
- package/dist/esm/props/base.js +7 -13
- package/dist/esm/props/checkbox.js +24 -24
- package/dist/esm/props/custom.js +32 -32
- package/dist/esm/props/input-number.js +26 -26
- package/dist/esm/props/input.js +27 -27
- package/dist/esm/props/radio.js +25 -25
- package/dist/esm/props/select.js +25 -25
- package/dist/esm/props/switch.js +26 -26
- package/dist/esm/props/textarea.js +29 -29
- package/dist/esm/schema/group.js +9 -14
- package/dist/esm/schema/setting.js +15 -15
- package/dist/esm/schema/tab.js +6 -6
- package/dist/index.umd.js +2 -2
- package/dist/types/props/base.d.ts +0 -5
- package/dist/types/schema/group.d.ts +0 -1
- package/package.json +4 -4
package/dist/esm/props/radio.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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
|
|
12
|
+
function _define_property(obj, key, value) {
|
|
13
13
|
if (key in obj) {
|
|
14
14
|
Object.defineProperty(obj, key, {
|
|
15
15
|
value: value,
|
|
@@ -22,11 +22,11 @@ function _defineProperty(obj, key, value) {
|
|
|
22
22
|
}
|
|
23
23
|
return obj;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
25
|
+
function _get_prototype_of(o) {
|
|
26
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
27
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
28
28
|
};
|
|
29
|
-
return
|
|
29
|
+
return _get_prototype_of(o);
|
|
30
30
|
}
|
|
31
31
|
function _inherits(subClass, superClass) {
|
|
32
32
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -39,26 +39,26 @@ function _inherits(subClass, superClass) {
|
|
|
39
39
|
configurable: true
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
if (superClass)
|
|
42
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
if (call && (
|
|
44
|
+
function _possible_constructor_return(self, call) {
|
|
45
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
46
46
|
return call;
|
|
47
47
|
}
|
|
48
|
-
return
|
|
48
|
+
return _assert_this_initialized(self);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
50
|
+
function _set_prototype_of(o, p) {
|
|
51
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
52
52
|
o.__proto__ = p;
|
|
53
53
|
return o;
|
|
54
54
|
};
|
|
55
|
-
return
|
|
55
|
+
return _set_prototype_of(o, p);
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
function _type_of(obj) {
|
|
58
58
|
"@swc/helpers - typeof";
|
|
59
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
|
-
}
|
|
61
|
-
function
|
|
60
|
+
}
|
|
61
|
+
function _is_native_reflect_construct() {
|
|
62
62
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
63
|
if (Reflect.construct.sham) return false;
|
|
64
64
|
if (typeof Proxy === "function") return true;
|
|
@@ -69,30 +69,30 @@ function _isNativeReflectConstruct() {
|
|
|
69
69
|
return false;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
var hasNativeReflectConstruct =
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
74
|
return function _createSuperInternal() {
|
|
75
|
-
var Super =
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
76
76
|
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget =
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
78
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
79
|
} else {
|
|
80
80
|
result = Super.apply(this, arguments);
|
|
81
81
|
}
|
|
82
|
-
return
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
import { BaseProps } from "./base";
|
|
86
86
|
export var RadioProps = /*#__PURE__*/ function(BaseProps) {
|
|
87
87
|
"use strict";
|
|
88
88
|
_inherits(RadioProps, BaseProps);
|
|
89
|
-
var _super =
|
|
89
|
+
var _super = _create_super(RadioProps);
|
|
90
90
|
function RadioProps(props) {
|
|
91
|
-
|
|
91
|
+
_class_call_check(this, RadioProps);
|
|
92
92
|
var _this;
|
|
93
93
|
_this = _super.call(this, props);
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
_define_property(_assert_this_initialized(_this), "options", void 0);
|
|
95
|
+
_define_property(_assert_this_initialized(_this), "showType", void 0);
|
|
96
96
|
var _props_options;
|
|
97
97
|
_this.options = (_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [];
|
|
98
98
|
var _props_showType;
|
package/dist/esm/props/select.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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
|
|
12
|
+
function _define_property(obj, key, value) {
|
|
13
13
|
if (key in obj) {
|
|
14
14
|
Object.defineProperty(obj, key, {
|
|
15
15
|
value: value,
|
|
@@ -22,11 +22,11 @@ function _defineProperty(obj, key, value) {
|
|
|
22
22
|
}
|
|
23
23
|
return obj;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
25
|
+
function _get_prototype_of(o) {
|
|
26
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
27
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
28
28
|
};
|
|
29
|
-
return
|
|
29
|
+
return _get_prototype_of(o);
|
|
30
30
|
}
|
|
31
31
|
function _inherits(subClass, superClass) {
|
|
32
32
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -39,26 +39,26 @@ function _inherits(subClass, superClass) {
|
|
|
39
39
|
configurable: true
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
if (superClass)
|
|
42
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
if (call && (
|
|
44
|
+
function _possible_constructor_return(self, call) {
|
|
45
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
46
46
|
return call;
|
|
47
47
|
}
|
|
48
|
-
return
|
|
48
|
+
return _assert_this_initialized(self);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
50
|
+
function _set_prototype_of(o, p) {
|
|
51
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
52
52
|
o.__proto__ = p;
|
|
53
53
|
return o;
|
|
54
54
|
};
|
|
55
|
-
return
|
|
55
|
+
return _set_prototype_of(o, p);
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
function _type_of(obj) {
|
|
58
58
|
"@swc/helpers - typeof";
|
|
59
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
|
-
}
|
|
61
|
-
function
|
|
60
|
+
}
|
|
61
|
+
function _is_native_reflect_construct() {
|
|
62
62
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
63
|
if (Reflect.construct.sham) return false;
|
|
64
64
|
if (typeof Proxy === "function") return true;
|
|
@@ -69,30 +69,30 @@ function _isNativeReflectConstruct() {
|
|
|
69
69
|
return false;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
var hasNativeReflectConstruct =
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
74
|
return function _createSuperInternal() {
|
|
75
|
-
var Super =
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
76
76
|
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget =
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
78
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
79
|
} else {
|
|
80
80
|
result = Super.apply(this, arguments);
|
|
81
81
|
}
|
|
82
|
-
return
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
import { BaseProps } from "./base";
|
|
86
86
|
export var SelectProps = /*#__PURE__*/ function(BaseProps) {
|
|
87
87
|
"use strict";
|
|
88
88
|
_inherits(SelectProps, BaseProps);
|
|
89
|
-
var _super =
|
|
89
|
+
var _super = _create_super(SelectProps);
|
|
90
90
|
function SelectProps(props) {
|
|
91
|
-
|
|
91
|
+
_class_call_check(this, SelectProps);
|
|
92
92
|
var _this;
|
|
93
93
|
_this = _super.call(this, props);
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
_define_property(_assert_this_initialized(_this), "placeholder", void 0);
|
|
95
|
+
_define_property(_assert_this_initialized(_this), "options", void 0);
|
|
96
96
|
var _props_placeholder;
|
|
97
97
|
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "";
|
|
98
98
|
var _props_options;
|
package/dist/esm/props/switch.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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
|
|
12
|
+
function _define_property(obj, key, value) {
|
|
13
13
|
if (key in obj) {
|
|
14
14
|
Object.defineProperty(obj, key, {
|
|
15
15
|
value: value,
|
|
@@ -22,11 +22,11 @@ function _defineProperty(obj, key, value) {
|
|
|
22
22
|
}
|
|
23
23
|
return obj;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
25
|
+
function _get_prototype_of(o) {
|
|
26
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
27
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
28
28
|
};
|
|
29
|
-
return
|
|
29
|
+
return _get_prototype_of(o);
|
|
30
30
|
}
|
|
31
31
|
function _inherits(subClass, superClass) {
|
|
32
32
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -39,26 +39,26 @@ function _inherits(subClass, superClass) {
|
|
|
39
39
|
configurable: true
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
if (superClass)
|
|
42
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
if (call && (
|
|
44
|
+
function _possible_constructor_return(self, call) {
|
|
45
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
46
46
|
return call;
|
|
47
47
|
}
|
|
48
|
-
return
|
|
48
|
+
return _assert_this_initialized(self);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
50
|
+
function _set_prototype_of(o, p) {
|
|
51
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
52
52
|
o.__proto__ = p;
|
|
53
53
|
return o;
|
|
54
54
|
};
|
|
55
|
-
return
|
|
55
|
+
return _set_prototype_of(o, p);
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
function _type_of(obj) {
|
|
58
58
|
"@swc/helpers - typeof";
|
|
59
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
|
-
}
|
|
61
|
-
function
|
|
60
|
+
}
|
|
61
|
+
function _is_native_reflect_construct() {
|
|
62
62
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
63
|
if (Reflect.construct.sham) return false;
|
|
64
64
|
if (typeof Proxy === "function") return true;
|
|
@@ -69,31 +69,31 @@ function _isNativeReflectConstruct() {
|
|
|
69
69
|
return false;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
var hasNativeReflectConstruct =
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
74
|
return function _createSuperInternal() {
|
|
75
|
-
var Super =
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
76
76
|
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget =
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
78
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
79
|
} else {
|
|
80
80
|
result = Super.apply(this, arguments);
|
|
81
81
|
}
|
|
82
|
-
return
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
import { BaseProps } from "./base";
|
|
86
86
|
export var SwitchProps = /*#__PURE__*/ function(BaseProps) {
|
|
87
87
|
"use strict";
|
|
88
88
|
_inherits(SwitchProps, BaseProps);
|
|
89
|
-
var _super =
|
|
89
|
+
var _super = _create_super(SwitchProps);
|
|
90
90
|
function SwitchProps(props) {
|
|
91
|
-
|
|
91
|
+
_class_call_check(this, SwitchProps);
|
|
92
92
|
var _this;
|
|
93
93
|
_this = _super.call(this, props);
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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);
|
|
97
97
|
var _props_showType;
|
|
98
98
|
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : "switch";
|
|
99
99
|
var _props_tips;
|
|
@@ -1,15 +1,15 @@
|
|
|
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
|
|
12
|
+
function _define_property(obj, key, value) {
|
|
13
13
|
if (key in obj) {
|
|
14
14
|
Object.defineProperty(obj, key, {
|
|
15
15
|
value: value,
|
|
@@ -22,11 +22,11 @@ function _defineProperty(obj, key, value) {
|
|
|
22
22
|
}
|
|
23
23
|
return obj;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
25
|
+
function _get_prototype_of(o) {
|
|
26
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
27
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
28
28
|
};
|
|
29
|
-
return
|
|
29
|
+
return _get_prototype_of(o);
|
|
30
30
|
}
|
|
31
31
|
function _inherits(subClass, superClass) {
|
|
32
32
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -39,26 +39,26 @@ function _inherits(subClass, superClass) {
|
|
|
39
39
|
configurable: true
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
if (superClass)
|
|
42
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
if (call && (
|
|
44
|
+
function _possible_constructor_return(self, call) {
|
|
45
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
46
46
|
return call;
|
|
47
47
|
}
|
|
48
|
-
return
|
|
48
|
+
return _assert_this_initialized(self);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
50
|
+
function _set_prototype_of(o, p) {
|
|
51
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
52
52
|
o.__proto__ = p;
|
|
53
53
|
return o;
|
|
54
54
|
};
|
|
55
|
-
return
|
|
55
|
+
return _set_prototype_of(o, p);
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
function _type_of(obj) {
|
|
58
58
|
"@swc/helpers - typeof";
|
|
59
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
|
-
}
|
|
61
|
-
function
|
|
60
|
+
}
|
|
61
|
+
function _is_native_reflect_construct() {
|
|
62
62
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
63
|
if (Reflect.construct.sham) return false;
|
|
64
64
|
if (typeof Proxy === "function") return true;
|
|
@@ -69,34 +69,34 @@ function _isNativeReflectConstruct() {
|
|
|
69
69
|
return false;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
var hasNativeReflectConstruct =
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
74
|
return function _createSuperInternal() {
|
|
75
|
-
var Super =
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
76
76
|
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget =
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
78
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
79
|
} else {
|
|
80
80
|
result = Super.apply(this, arguments);
|
|
81
81
|
}
|
|
82
|
-
return
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
import { BaseProps } from "./base";
|
|
86
86
|
export var TextareaProps = /*#__PURE__*/ function(BaseProps) {
|
|
87
87
|
"use strict";
|
|
88
88
|
_inherits(TextareaProps, BaseProps);
|
|
89
|
-
var _super =
|
|
89
|
+
var _super = _create_super(TextareaProps);
|
|
90
90
|
function TextareaProps(props) {
|
|
91
|
-
|
|
91
|
+
_class_call_check(this, TextareaProps);
|
|
92
92
|
var _this;
|
|
93
93
|
_this = _super.call(this, props);
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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);
|
|
100
100
|
var _props_maxLength;
|
|
101
101
|
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : "";
|
|
102
102
|
var _props_minLength;
|
package/dist/esm/schema/group.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _class_call_check(instance, Constructor) {
|
|
2
2
|
if (!(instance instanceof Constructor)) {
|
|
3
3
|
throw new TypeError("Cannot call a class as a function");
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function _define_property(obj, key, value) {
|
|
7
7
|
if (key in obj) {
|
|
8
8
|
Object.defineProperty(obj, key, {
|
|
9
9
|
value: value,
|
|
@@ -18,22 +18,17 @@ function _defineProperty(obj, key, value) {
|
|
|
18
18
|
}
|
|
19
19
|
export var Group = function Group(schema) {
|
|
20
20
|
"use strict";
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
_defineProperty(this, "visible", void 0);
|
|
21
|
+
_class_call_check(this, Group);
|
|
22
|
+
_define_property(this, "type", "group");
|
|
23
|
+
_define_property(this, "title", void 0);
|
|
24
|
+
_define_property(this, "required", void 0);
|
|
25
|
+
_define_property(this, "items", void 0);
|
|
26
|
+
_define_property(this, "tips", void 0);
|
|
27
|
+
_define_property(this, "fromId", void 0);
|
|
29
28
|
var _schema_title;
|
|
30
29
|
this.title = (_schema_title = schema.title) !== null && _schema_title !== void 0 ? _schema_title : "";
|
|
31
30
|
var _schema_required;
|
|
32
31
|
this.required = (_schema_required = schema.required) !== null && _schema_required !== void 0 ? _schema_required : false;
|
|
33
32
|
this.items = schema.items;
|
|
34
33
|
this.tips = schema.tips;
|
|
35
|
-
this.visible = schema.items.some(function(item) {
|
|
36
|
-
var _item_props;
|
|
37
|
-
return (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.visible;
|
|
38
|
-
});
|
|
39
34
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _class_call_check(instance, Constructor) {
|
|
2
2
|
if (!(instance instanceof Constructor)) {
|
|
3
3
|
throw new TypeError("Cannot call a class as a function");
|
|
4
4
|
}
|
|
@@ -12,12 +12,12 @@ function _defineProperties(target, props) {
|
|
|
12
12
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
16
16
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
17
17
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
18
18
|
return Constructor;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function _define_property(obj, key, value) {
|
|
21
21
|
if (key in obj) {
|
|
22
22
|
Object.defineProperty(obj, key, {
|
|
23
23
|
value: value,
|
|
@@ -35,17 +35,17 @@ import { error, isPlainObject, noop } from "@byteluck-fe/model-driven-shared";
|
|
|
35
35
|
export var Setting = /*#__PURE__*/ function() {
|
|
36
36
|
"use strict";
|
|
37
37
|
function Setting(schema) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
38
|
+
_class_call_check(this, Setting);
|
|
39
|
+
_define_property(this, "type", void 0);
|
|
40
|
+
_define_property(this, "label", void 0);
|
|
41
|
+
_define_property(this, "key", void 0);
|
|
42
|
+
_define_property(this, "component", void 0);
|
|
43
|
+
_define_property(this, "effect", void 0);
|
|
44
|
+
_define_property(this, "scopeEffect", void 0);
|
|
45
|
+
_define_property(this, "defaultValue", void 0);
|
|
46
|
+
_define_property(this, "validator", void 0);
|
|
47
|
+
_define_property(this, "props", void 0);
|
|
48
|
+
_define_property(this, "effectKeys", void 0);
|
|
49
49
|
this.type = schema.type;
|
|
50
50
|
this.label = schema.label;
|
|
51
51
|
this.key = schema.key;
|
|
@@ -61,7 +61,7 @@ export var Setting = /*#__PURE__*/ function() {
|
|
|
61
61
|
// private init
|
|
62
62
|
this.effectKeys = Object.keys(this.effect);
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
_create_class(Setting, [
|
|
65
65
|
{
|
|
66
66
|
key: "filterEffects",
|
|
67
67
|
value: function filterEffects(effectKey) {
|
package/dist/esm/schema/tab.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _class_call_check(instance, Constructor) {
|
|
2
2
|
if (!(instance instanceof Constructor)) {
|
|
3
3
|
throw new TypeError("Cannot call a class as a function");
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function _define_property(obj, key, value) {
|
|
7
7
|
if (key in obj) {
|
|
8
8
|
Object.defineProperty(obj, key, {
|
|
9
9
|
value: value,
|
|
@@ -21,10 +21,10 @@ export function isTabSchema(schema) {
|
|
|
21
21
|
}
|
|
22
22
|
export var Tab = function Tab(schema) {
|
|
23
23
|
"use strict";
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
_class_call_check(this, Tab);
|
|
25
|
+
_define_property(this, "type", "tab");
|
|
26
|
+
_define_property(this, "title", void 0);
|
|
27
|
+
_define_property(this, "items", void 0);
|
|
28
28
|
this.title = schema.title;
|
|
29
29
|
this.items = schema.items;
|
|
30
30
|
};
|