@byteluck-fe/model-driven-settings 2.8.2-beta.1 → 2.8.2-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -30
- package/dist/esm/default/createBaseFields.js +28 -28
- package/dist/esm/default/createFormBaseFields.js +40 -40
- package/dist/esm/default/index.js +2 -2
- package/dist/esm/index.js +4 -4
- package/dist/esm/initSettings.js +18 -18
- package/dist/esm/props/base.js +7 -7
- package/dist/esm/props/checkbox.js +13 -25
- package/dist/esm/props/custom.js +14 -25
- package/dist/esm/props/input-number.js +16 -30
- package/dist/esm/props/input.js +16 -31
- package/dist/esm/props/radio.js +14 -27
- package/dist/esm/props/select.js +14 -27
- package/dist/esm/props/switch.js +15 -29
- package/dist/esm/props/textarea.js +18 -35
- package/dist/esm/schema/group.js +2 -2
- package/dist/esm/schema/index.js +3 -3
- package/dist/esm/schema/setting.js +3 -3
- package/dist/esm/schema/tab.js +2 -2
- package/dist/index.umd.js +2 -2
- package/dist/types/default/createBaseFields.d.ts +2 -2
- package/dist/types/default/createFormBaseFields.d.ts +3 -3
- package/dist/types/default/index.d.ts +2 -2
- package/dist/types/defineInstance.d.ts +79 -79
- package/dist/types/index.d.ts +4 -4
- package/dist/types/initSettings.d.ts +14 -14
- package/dist/types/props/base.d.ts +21 -21
- package/dist/types/props/checkbox.d.ts +5 -5
- package/dist/types/props/custom.d.ts +5 -5
- package/dist/types/props/input-number.d.ts +7 -7
- package/dist/types/props/input.d.ts +8 -8
- package/dist/types/props/radio.d.ts +6 -6
- package/dist/types/props/select.d.ts +6 -6
- package/dist/types/props/switch.d.ts +7 -7
- package/dist/types/props/textarea.d.ts +10 -10
- package/dist/types/schema/group.d.ts +19 -19
- package/dist/types/schema/index.d.ts +3 -3
- package/dist/types/schema/setting.d.ts +69 -69
- package/dist/types/schema/tab.d.ts +15 -15
- package/package.json +4 -4
package/dist/esm/props/input.js
CHANGED
|
@@ -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,48 +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
|
-
|
|
68
|
-
|
|
69
|
-
return
|
|
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
|
|
73
|
+
import { BaseProps } from './base';
|
|
86
74
|
export var InputProps = /*#__PURE__*/ function(BaseProps) {
|
|
87
75
|
"use strict";
|
|
88
76
|
_inherits(InputProps, BaseProps);
|
|
89
|
-
var _super = _create_super(InputProps);
|
|
90
77
|
function InputProps(props) {
|
|
91
78
|
_class_call_check(this, InputProps);
|
|
92
79
|
var _this;
|
|
93
|
-
_this =
|
|
94
|
-
|
|
95
|
-
_define_property(
|
|
96
|
-
_define_property(_assert_this_initialized(_this), "placeholder", void 0);
|
|
97
|
-
_define_property(_assert_this_initialized(_this), "i18n", void 0);
|
|
80
|
+
_this = _call_super(this, InputProps, [
|
|
81
|
+
props
|
|
82
|
+
]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "placeholder", void 0), _define_property(_this, "i18n", void 0);
|
|
98
83
|
var _props_maxLength;
|
|
99
|
-
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength :
|
|
84
|
+
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : '';
|
|
100
85
|
var _props_minLength;
|
|
101
|
-
_this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength :
|
|
86
|
+
_this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : '';
|
|
102
87
|
var _props_placeholder;
|
|
103
|
-
_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 : '';
|
|
104
89
|
var _props_i18n;
|
|
105
90
|
_this.i18n = (_props_i18n = props === null || props === void 0 ? void 0 : props.i18n) !== null && _props_i18n !== void 0 ? _props_i18n : false;
|
|
106
91
|
return _this;
|
package/dist/esm/props/radio.js
CHANGED
|
@@ -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,44 +63,27 @@ 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
|
-
|
|
68
|
-
|
|
69
|
-
return
|
|
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
|
|
73
|
+
import { BaseProps } from './base';
|
|
86
74
|
export var RadioProps = /*#__PURE__*/ function(BaseProps) {
|
|
87
75
|
"use strict";
|
|
88
76
|
_inherits(RadioProps, BaseProps);
|
|
89
|
-
var _super = _create_super(RadioProps);
|
|
90
77
|
function RadioProps(props) {
|
|
91
78
|
_class_call_check(this, RadioProps);
|
|
92
79
|
var _this;
|
|
93
|
-
_this =
|
|
94
|
-
|
|
95
|
-
_define_property(
|
|
80
|
+
_this = _call_super(this, RadioProps, [
|
|
81
|
+
props
|
|
82
|
+
]), _define_property(_this, "options", void 0), _define_property(_this, "showType", void 0);
|
|
96
83
|
var _props_options;
|
|
97
84
|
_this.options = (_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [];
|
|
98
85
|
var _props_showType;
|
|
99
|
-
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType :
|
|
86
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'outline';
|
|
100
87
|
return _this;
|
|
101
88
|
}
|
|
102
89
|
return RadioProps;
|
package/dist/esm/props/select.js
CHANGED
|
@@ -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,42 +63,25 @@ 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
|
-
|
|
68
|
-
|
|
69
|
-
return
|
|
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
|
|
73
|
+
import { BaseProps } from './base';
|
|
86
74
|
export var SelectProps = /*#__PURE__*/ function(BaseProps) {
|
|
87
75
|
"use strict";
|
|
88
76
|
_inherits(SelectProps, BaseProps);
|
|
89
|
-
var _super = _create_super(SelectProps);
|
|
90
77
|
function SelectProps(props) {
|
|
91
78
|
_class_call_check(this, SelectProps);
|
|
92
79
|
var _this;
|
|
93
|
-
_this =
|
|
94
|
-
|
|
95
|
-
_define_property(
|
|
80
|
+
_this = _call_super(this, SelectProps, [
|
|
81
|
+
props
|
|
82
|
+
]), _define_property(_this, "placeholder", void 0), _define_property(_this, "options", void 0);
|
|
96
83
|
var _props_placeholder;
|
|
97
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder :
|
|
84
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '';
|
|
98
85
|
var _props_options;
|
|
99
86
|
_this.options = (_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [];
|
|
100
87
|
return _this;
|
package/dist/esm/props/switch.js
CHANGED
|
@@ -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,45 +63,27 @@ 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
|
-
|
|
68
|
-
|
|
69
|
-
return
|
|
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
|
|
73
|
+
import { BaseProps } from './base';
|
|
86
74
|
export var SwitchProps = /*#__PURE__*/ function(BaseProps) {
|
|
87
75
|
"use strict";
|
|
88
76
|
_inherits(SwitchProps, BaseProps);
|
|
89
|
-
var _super = _create_super(SwitchProps);
|
|
90
77
|
function SwitchProps(props) {
|
|
91
78
|
_class_call_check(this, SwitchProps);
|
|
92
79
|
var _this;
|
|
93
|
-
_this =
|
|
94
|
-
|
|
95
|
-
_define_property(
|
|
96
|
-
_define_property(_assert_this_initialized(_this), "disabled", void 0);
|
|
80
|
+
_this = _call_super(this, SwitchProps, [
|
|
81
|
+
props
|
|
82
|
+
]), _define_property(_this, "showType", void 0), _define_property(_this, "tips", void 0), _define_property(_this, "disabled", void 0);
|
|
97
83
|
var _props_showType;
|
|
98
|
-
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType :
|
|
84
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'switch';
|
|
99
85
|
var _props_tips;
|
|
100
|
-
_this.tips = (_props_tips = props === null || props === void 0 ? void 0 : props.tips) !== null && _props_tips !== void 0 ? _props_tips :
|
|
86
|
+
_this.tips = (_props_tips = props === null || props === void 0 ? void 0 : props.tips) !== null && _props_tips !== void 0 ? _props_tips : '';
|
|
101
87
|
var _props_disabled;
|
|
102
88
|
_this.disabled = (_props_disabled = props === null || props === void 0 ? void 0 : props.disabled) !== null && _props_disabled !== void 0 ? _props_disabled : false;
|
|
103
89
|
return _this;
|
|
@@ -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,54 +63,33 @@ 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
|
-
|
|
68
|
-
|
|
69
|
-
return
|
|
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
|
|
73
|
+
import { BaseProps } from './base';
|
|
86
74
|
export var TextareaProps = /*#__PURE__*/ function(BaseProps) {
|
|
87
75
|
"use strict";
|
|
88
76
|
_inherits(TextareaProps, BaseProps);
|
|
89
|
-
var _super = _create_super(TextareaProps);
|
|
90
77
|
function TextareaProps(props) {
|
|
91
78
|
_class_call_check(this, TextareaProps);
|
|
92
79
|
var _this;
|
|
93
|
-
_this =
|
|
94
|
-
|
|
95
|
-
_define_property(
|
|
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);
|
|
80
|
+
_this = _call_super(this, TextareaProps, [
|
|
81
|
+
props
|
|
82
|
+
]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "placeholder", void 0), _define_property(_this, "i18n", void 0), _define_property(_this, "maxRows", void 0), _define_property(_this, "minRows", void 0);
|
|
100
83
|
var _props_maxLength;
|
|
101
|
-
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength :
|
|
84
|
+
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : '';
|
|
102
85
|
var _props_minLength;
|
|
103
|
-
_this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength :
|
|
86
|
+
_this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : '';
|
|
104
87
|
var _props_placeholder;
|
|
105
|
-
_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 : '';
|
|
106
89
|
var _props_maxRows;
|
|
107
|
-
_this.maxRows = (_props_maxRows = props === null || props === void 0 ? void 0 : props.maxRows) !== null && _props_maxRows !== void 0 ? _props_maxRows :
|
|
90
|
+
_this.maxRows = (_props_maxRows = props === null || props === void 0 ? void 0 : props.maxRows) !== null && _props_maxRows !== void 0 ? _props_maxRows : '';
|
|
108
91
|
var _props_minRows;
|
|
109
|
-
_this.minRows = (_props_minRows = props === null || props === void 0 ? void 0 : props.minRows) !== null && _props_minRows !== void 0 ? _props_minRows :
|
|
92
|
+
_this.minRows = (_props_minRows = props === null || props === void 0 ? void 0 : props.minRows) !== null && _props_minRows !== void 0 ? _props_minRows : '';
|
|
110
93
|
var _props_i18n;
|
|
111
94
|
_this.i18n = (_props_i18n = props === null || props === void 0 ? void 0 : props.i18n) !== null && _props_i18n !== void 0 ? _props_i18n : false;
|
|
112
95
|
return _this;
|
package/dist/esm/schema/group.js
CHANGED
|
@@ -19,7 +19,7 @@ function _define_property(obj, key, value) {
|
|
|
19
19
|
export var Group = function Group(schema) {
|
|
20
20
|
"use strict";
|
|
21
21
|
_class_call_check(this, Group);
|
|
22
|
-
_define_property(this, "type",
|
|
22
|
+
_define_property(this, "type", 'group');
|
|
23
23
|
_define_property(this, "title", void 0);
|
|
24
24
|
_define_property(this, "required", void 0);
|
|
25
25
|
_define_property(this, "items", void 0);
|
|
@@ -27,7 +27,7 @@ export var Group = function Group(schema) {
|
|
|
27
27
|
_define_property(this, "fromId", void 0);
|
|
28
28
|
_define_property(this, "visible", void 0);
|
|
29
29
|
var _schema_title;
|
|
30
|
-
this.title = (_schema_title = schema.title) !== null && _schema_title !== void 0 ? _schema_title :
|
|
30
|
+
this.title = (_schema_title = schema.title) !== null && _schema_title !== void 0 ? _schema_title : '';
|
|
31
31
|
var _schema_required;
|
|
32
32
|
this.required = (_schema_required = schema.required) !== null && _schema_required !== void 0 ? _schema_required : false;
|
|
33
33
|
this.items = schema.items;
|
package/dist/esm/schema/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './setting';
|
|
2
|
+
export * from './group';
|
|
3
|
+
export * from './tab';
|
|
@@ -30,8 +30,8 @@ function _define_property(obj, key, value) {
|
|
|
30
30
|
}
|
|
31
31
|
return obj;
|
|
32
32
|
}
|
|
33
|
-
import { BaseProps } from
|
|
34
|
-
import { error, isPlainObject, noop } from
|
|
33
|
+
import { BaseProps } from '../props/base';
|
|
34
|
+
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) {
|
|
@@ -66,7 +66,7 @@ export var Setting = /*#__PURE__*/ function() {
|
|
|
66
66
|
key: "filterEffects",
|
|
67
67
|
value: function filterEffects(effectKey) {
|
|
68
68
|
var _this = this;
|
|
69
|
-
if (effectKey ===
|
|
69
|
+
if (effectKey === '') {
|
|
70
70
|
return Object.values(this.effect);
|
|
71
71
|
}
|
|
72
72
|
return this.effectKeys.filter(function(key) {
|
package/dist/esm/schema/tab.js
CHANGED
|
@@ -17,12 +17,12 @@ function _define_property(obj, key, value) {
|
|
|
17
17
|
return obj;
|
|
18
18
|
}
|
|
19
19
|
export function isTabSchema(schema) {
|
|
20
|
-
return
|
|
20
|
+
return 'type' in schema && schema.type === 'tab';
|
|
21
21
|
}
|
|
22
22
|
export var Tab = function Tab(schema) {
|
|
23
23
|
"use strict";
|
|
24
24
|
_class_call_check(this, Tab);
|
|
25
|
-
_define_property(this, "type",
|
|
25
|
+
_define_property(this, "type", 'tab');
|
|
26
26
|
_define_property(this, "title", void 0);
|
|
27
27
|
_define_property(this, "items", void 0);
|
|
28
28
|
this.title = schema.title;
|