@byteluck-fe/model-driven-controls 6.2.0-2-beta.2 → 7.0.0-1-bate1
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/formControls/Address/property.js +1 -1
- package/dist/esm/formControls/Attachment/property.js +6 -1
- package/dist/esm/formControls/Cascader/designer.js +231 -0
- package/dist/esm/formControls/Cascader/index.js +11 -0
- package/dist/esm/formControls/Cascader/property.js +166 -0
- package/dist/esm/formControls/Cascader/runtime.js +114 -0
- package/dist/esm/formControls/Cascader/types.js +0 -0
- package/dist/esm/formControls/Checkbox/designer.js +17 -0
- package/dist/esm/formControls/Checkbox/property.js +11 -1
- package/dist/esm/formControls/Image/designer.js +14 -0
- package/dist/esm/formControls/Image/property.js +6 -1
- package/dist/esm/formControls/Number/designer.js +4 -0
- package/dist/esm/formControls/Number/property.js +16 -1
- package/dist/esm/formControls/Radio/designer.js +17 -0
- package/dist/esm/formControls/Radio/property.js +11 -1
- package/dist/esm/formControls/Score/designer.js +11 -0
- package/dist/esm/formControls/Score/property.js +16 -1
- package/dist/esm/formControls/Select/designer.js +17 -0
- package/dist/esm/formControls/Select/property.js +11 -1
- package/dist/esm/formControls/SelectMultiple/designer.js +17 -0
- package/dist/esm/formControls/SelectMultiple/property.js +11 -1
- package/dist/esm/formControls/TimePicker/designer.js +193 -0
- package/dist/esm/formControls/TimePicker/index.js +11 -0
- package/dist/esm/formControls/TimePicker/property.js +108 -0
- package/dist/esm/formControls/TimePicker/runtime.js +114 -0
- package/dist/esm/formControls/TimePicker/types.js +0 -0
- package/dist/esm/formControls/TimeRange/designer.js +197 -0
- package/dist/esm/formControls/TimeRange/index.js +11 -0
- package/dist/esm/formControls/TimeRange/property.js +179 -0
- package/dist/esm/formControls/TimeRange/runtime.js +114 -0
- package/dist/esm/formControls/TimeRange/types.js +0 -0
- package/dist/esm/formControls/index.js +3 -0
- package/dist/esm/framework.js +16 -0
- package/dist/esm/layoutControls/CardGroup/designer.js +128 -0
- package/dist/esm/layoutControls/CardGroup/property.js +39 -4
- package/dist/esm/layoutControls/Col/property.js +3 -7
- package/dist/esm/layoutControls/CollapsePane/designer.js +129 -0
- package/dist/esm/layoutControls/CollapsePane/index.js +11 -0
- package/dist/esm/layoutControls/CollapsePane/property.js +93 -0
- package/dist/esm/layoutControls/CollapsePane/runtime.js +112 -0
- package/dist/esm/layoutControls/CollapsePane/types.js +0 -0
- package/dist/esm/layoutControls/Row/designer.js +16 -0
- package/dist/esm/layoutControls/Row/property.js +10 -2
- package/dist/esm/layoutControls/Step/designer.js +72 -0
- package/dist/esm/layoutControls/Step/property.js +51 -7
- package/dist/esm/layoutControls/Tab/designer.js +56 -0
- package/dist/esm/layoutControls/Tab/property.js +24 -1
- package/dist/esm/layoutControls/TableLayoutCol/property.js +2 -2
- package/dist/esm/layoutControls/collapse/designer.js +173 -0
- package/dist/esm/layoutControls/collapse/index.js +11 -0
- package/dist/esm/layoutControls/collapse/property.js +107 -0
- package/dist/esm/layoutControls/collapse/runtime.js +112 -0
- package/dist/esm/layoutControls/collapse/types.js +0 -0
- package/dist/esm/listControls/SubTable/designer.js +17 -0
- package/dist/esm/listControls/SubTable/property.js +6 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/formControls/Address/property.d.ts +2 -2
- package/dist/types/formControls/Attachment/property.d.ts +5 -0
- package/dist/types/formControls/Cascader/designer.d.ts +20 -0
- package/dist/types/formControls/Cascader/index.d.ts +12 -0
- package/dist/types/formControls/Cascader/property.d.ts +72 -0
- package/dist/types/formControls/Cascader/runtime.d.ts +12 -0
- package/dist/types/formControls/Cascader/types.d.ts +0 -0
- package/dist/types/formControls/Checkbox/property.d.ts +10 -0
- package/dist/types/formControls/Image/property.d.ts +5 -0
- package/dist/types/formControls/Number/property.d.ts +15 -0
- package/dist/types/formControls/Radio/property.d.ts +10 -0
- package/dist/types/formControls/Score/property.d.ts +15 -0
- package/dist/types/formControls/Select/property.d.ts +10 -0
- package/dist/types/formControls/SelectMultiple/property.d.ts +10 -0
- package/dist/types/formControls/TimePicker/designer.d.ts +14 -0
- package/dist/types/formControls/TimePicker/index.d.ts +12 -0
- package/dist/types/formControls/TimePicker/property.d.ts +11 -0
- package/dist/types/formControls/TimePicker/runtime.d.ts +12 -0
- package/dist/types/formControls/TimePicker/types.d.ts +0 -0
- package/dist/types/formControls/TimeRange/designer.d.ts +14 -0
- package/dist/types/formControls/TimeRange/index.d.ts +12 -0
- package/dist/types/formControls/TimeRange/property.d.ts +62 -0
- package/dist/types/formControls/TimeRange/runtime.d.ts +12 -0
- package/dist/types/formControls/TimeRange/types.d.ts +0 -0
- package/dist/types/formControls/index.d.ts +3 -0
- package/dist/types/framework.d.ts +26 -19
- package/dist/types/layoutControls/CardGroup/property.d.ts +39 -0
- package/dist/types/layoutControls/Col/property.d.ts +1 -2
- package/dist/types/layoutControls/CollapsePane/designer.d.ts +14 -0
- package/dist/types/layoutControls/CollapsePane/index.d.ts +12 -0
- package/dist/types/layoutControls/CollapsePane/property.d.ts +11 -0
- package/dist/types/layoutControls/CollapsePane/runtime.d.ts +9 -0
- package/dist/types/layoutControls/CollapsePane/types.d.ts +0 -0
- package/dist/types/layoutControls/Row/property.d.ts +6 -1
- package/dist/types/layoutControls/Step/property.d.ts +56 -1
- package/dist/types/layoutControls/Tab/property.d.ts +24 -0
- package/dist/types/layoutControls/TableLayoutCol/property.d.ts +3 -3
- package/dist/types/layoutControls/collapse/designer.d.ts +14 -0
- package/dist/types/layoutControls/collapse/index.d.ts +12 -0
- package/dist/types/layoutControls/collapse/property.d.ts +26 -0
- package/dist/types/layoutControls/collapse/runtime.d.ts +9 -0
- package/dist/types/layoutControls/collapse/types.d.ts +0 -0
- package/dist/types/listControls/SubTable/designer.d.ts +19 -0
- package/dist/types/listControls/SubTable/property.d.ts +5 -0
- package/dist/types/type.d.ts +4 -1
- package/dist/types/wrapControls/GridLayoutWrap/index.d.ts +1 -1
- package/package.json +5 -5
|
@@ -97,16 +97,51 @@ var CardGroupControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
97
97
|
props
|
|
98
98
|
]), /*
|
|
99
99
|
* 标题信息
|
|
100
|
-
* */ _define_property(_this, "caption", void 0), _define_property(_this, "isHideCaption", void 0),
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
|
|
100
|
+
* */ _define_property(_this, "caption", void 0), _define_property(_this, "isHideCaption", void 0), /**
|
|
101
|
+
* 卡片分组是否支持展开收起;可选项: none 不支持 | open 默认展开 | close 默认关闭
|
|
102
|
+
* @defaultValue none
|
|
103
|
+
*/ _define_property(_this, "collapse", void 0), /**
|
|
104
|
+
* 展示风格;default:默认;card:卡片;
|
|
105
|
+
* @defaultValue default
|
|
106
|
+
*/ _define_property(_this, "type", void 0), /**
|
|
107
|
+
* 描述信息
|
|
108
|
+
* @defaultValue
|
|
109
|
+
*/ _define_property(_this, "describe", void 0), /**
|
|
110
|
+
* 标签位置;left:左对齐;center:居中;right:右对齐;
|
|
111
|
+
* @defaultValue left
|
|
112
|
+
*/ _define_property(_this, "position", void 0), /**
|
|
113
|
+
* 标签类型;default:默认;warning:警告;success:成功;
|
|
114
|
+
* @defaultValue default
|
|
115
|
+
*/ _define_property(_this, "captionType", void 0), /**
|
|
116
|
+
* 边框类型;none:无边框;dotted:虚线;solid:实线
|
|
117
|
+
* @defaultValue none
|
|
118
|
+
*/ _define_property(_this, "borderType", void 0), /**
|
|
119
|
+
* 分割线;none:无分割线;dotted:虚线;solid:实线
|
|
120
|
+
* @defaultValue solid
|
|
121
|
+
*/ _define_property(_this, "divider", void 0), /**
|
|
122
|
+
* 显示阴影时机;never:从不显示;always:总是显示;hover:鼠标悬浮时显示;
|
|
123
|
+
* @defaultValue never
|
|
124
|
+
*/ _define_property(_this, "triggerShadow", void 0);
|
|
104
125
|
var _props_caption;
|
|
105
126
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : getLocaleText('CMD.cardGroup', null, '分组');
|
|
106
127
|
var _props_isHideCaption;
|
|
107
128
|
_this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
|
|
108
129
|
var _props_collapse;
|
|
109
130
|
_this.collapse = (_props_collapse = props === null || props === void 0 ? void 0 : props.collapse) !== null && _props_collapse !== void 0 ? _props_collapse : 'none';
|
|
131
|
+
var _props_describe;
|
|
132
|
+
_this.describe = (_props_describe = props === null || props === void 0 ? void 0 : props.describe) !== null && _props_describe !== void 0 ? _props_describe : '';
|
|
133
|
+
var _props_position;
|
|
134
|
+
_this.position = (_props_position = props === null || props === void 0 ? void 0 : props.position) !== null && _props_position !== void 0 ? _props_position : 'left';
|
|
135
|
+
var _props_captionType;
|
|
136
|
+
_this.captionType = (_props_captionType = props === null || props === void 0 ? void 0 : props.captionType) !== null && _props_captionType !== void 0 ? _props_captionType : 'default';
|
|
137
|
+
var _props_borderType;
|
|
138
|
+
_this.borderType = (_props_borderType = props === null || props === void 0 ? void 0 : props.borderType) !== null && _props_borderType !== void 0 ? _props_borderType : 'none';
|
|
139
|
+
var _props_divider;
|
|
140
|
+
_this.divider = (_props_divider = props === null || props === void 0 ? void 0 : props.divider) !== null && _props_divider !== void 0 ? _props_divider : 'solid';
|
|
141
|
+
var _props_triggerShadow;
|
|
142
|
+
_this.triggerShadow = (_props_triggerShadow = props === null || props === void 0 ? void 0 : props.triggerShadow) !== null && _props_triggerShadow !== void 0 ? _props_triggerShadow : 'never';
|
|
143
|
+
var _props_type;
|
|
144
|
+
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'default';
|
|
110
145
|
return _this;
|
|
111
146
|
}
|
|
112
147
|
return CardGroupControlProperty;
|
|
@@ -80,17 +80,13 @@ var ColControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
80
80
|
var _this;
|
|
81
81
|
_this = _call_super(this, ColControlProperty, [
|
|
82
82
|
props
|
|
83
|
-
]), _define_property(_this, "span", void 0), _define_property(_this, "offset", void 0),
|
|
84
|
-
_define_property(_this, "tableLayoutColSpan", void 0), // full 占满整行,'' 没有合并单元格,custom 自定义合并格数
|
|
85
|
-
_define_property(_this, "tableLayoutColSpanType", void 0);
|
|
83
|
+
]), _define_property(_this, "span", void 0), _define_property(_this, "offset", void 0), _define_property(_this, "isNoFull", void 0);
|
|
86
84
|
var _props_span;
|
|
87
85
|
_this.span = (_props_span = props === null || props === void 0 ? void 0 : props.span) !== null && _props_span !== void 0 ? _props_span : BASE_SPAN;
|
|
88
86
|
var _props_offset;
|
|
89
87
|
_this.offset = (_props_offset = props === null || props === void 0 ? void 0 : props.offset) !== null && _props_offset !== void 0 ? _props_offset : 0;
|
|
90
|
-
var
|
|
91
|
-
_this.
|
|
92
|
-
var _props_tableLayoutColSpanType;
|
|
93
|
-
_this.tableLayoutColSpanType = (_props_tableLayoutColSpanType = props === null || props === void 0 ? void 0 : props.tableLayoutColSpanType) !== null && _props_tableLayoutColSpanType !== void 0 ? _props_tableLayoutColSpanType : '';
|
|
88
|
+
var _props_isNoFull;
|
|
89
|
+
_this.isNoFull = (_props_isNoFull = props === null || props === void 0 ? void 0 : props.isNoFull) !== null && _props_isNoFull !== void 0 ? _props_isNoFull : false;
|
|
94
90
|
return _this;
|
|
95
91
|
}
|
|
96
92
|
return ColControlProperty;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
|
+
if (self === void 0) {
|
|
3
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
+
}
|
|
5
|
+
return self;
|
|
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
|
+
}
|
|
11
|
+
function _class_call_check(instance, Constructor) {
|
|
12
|
+
if (!(instance instanceof Constructor)) {
|
|
13
|
+
throw new TypeError("Cannot call a class as a function");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function _defineProperties(target, props) {
|
|
17
|
+
for(var i = 0; i < props.length; i++){
|
|
18
|
+
var descriptor = props[i];
|
|
19
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
20
|
+
descriptor.configurable = true;
|
|
21
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
22
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
26
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
27
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
28
|
+
return Constructor;
|
|
29
|
+
}
|
|
30
|
+
function _define_property(obj, key, value) {
|
|
31
|
+
if (key in obj) {
|
|
32
|
+
Object.defineProperty(obj, key, {
|
|
33
|
+
value: value,
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true,
|
|
36
|
+
writable: true
|
|
37
|
+
});
|
|
38
|
+
} else {
|
|
39
|
+
obj[key] = value;
|
|
40
|
+
}
|
|
41
|
+
return obj;
|
|
42
|
+
}
|
|
43
|
+
function _get_prototype_of(o) {
|
|
44
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
45
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46
|
+
};
|
|
47
|
+
return _get_prototype_of(o);
|
|
48
|
+
}
|
|
49
|
+
function _inherits(subClass, superClass) {
|
|
50
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
51
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
52
|
+
}
|
|
53
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
54
|
+
constructor: {
|
|
55
|
+
value: subClass,
|
|
56
|
+
writable: true,
|
|
57
|
+
configurable: true
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
61
|
+
}
|
|
62
|
+
function _possible_constructor_return(self, call) {
|
|
63
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
64
|
+
return call;
|
|
65
|
+
}
|
|
66
|
+
return _assert_this_initialized(self);
|
|
67
|
+
}
|
|
68
|
+
function _set_prototype_of(o, p) {
|
|
69
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
70
|
+
o.__proto__ = p;
|
|
71
|
+
return o;
|
|
72
|
+
};
|
|
73
|
+
return _set_prototype_of(o, p);
|
|
74
|
+
}
|
|
75
|
+
function _type_of(obj) {
|
|
76
|
+
"@swc/helpers - typeof";
|
|
77
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
78
|
+
}
|
|
79
|
+
function _is_native_reflect_construct() {
|
|
80
|
+
try {
|
|
81
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
82
|
+
} catch (_) {}
|
|
83
|
+
return (_is_native_reflect_construct = function() {
|
|
84
|
+
return !!result;
|
|
85
|
+
})();
|
|
86
|
+
}
|
|
87
|
+
import { CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
|
|
88
|
+
import { DesignerLayoutControl } from '@byteluck-fe/model-driven-core';
|
|
89
|
+
import CollapsePaneControlProperty from './property';
|
|
90
|
+
var CollapsePaneControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
91
|
+
"use strict";
|
|
92
|
+
_inherits(CollapsePaneControl, DesignerLayoutControl);
|
|
93
|
+
function CollapsePaneControl(props) {
|
|
94
|
+
_class_call_check(this, CollapsePaneControl);
|
|
95
|
+
var _this;
|
|
96
|
+
_this = _call_super(this, CollapsePaneControl, [
|
|
97
|
+
props
|
|
98
|
+
]), _define_property(_this, "props", void 0);
|
|
99
|
+
_this.props = new CollapsePaneControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
100
|
+
return _this;
|
|
101
|
+
}
|
|
102
|
+
_create_class(CollapsePaneControl, null, [
|
|
103
|
+
{
|
|
104
|
+
key: "controlName",
|
|
105
|
+
get: function get() {
|
|
106
|
+
return '折叠面板节点';
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
key: "controlType",
|
|
111
|
+
get: function get() {
|
|
112
|
+
return 'collapse-pane';
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
key: "controlIcon",
|
|
117
|
+
get: function get() {
|
|
118
|
+
return 'collapse-pane';
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
]);
|
|
122
|
+
return CollapsePaneControl;
|
|
123
|
+
}(DesignerLayoutControl);
|
|
124
|
+
_define_property(CollapsePaneControl, "excludes", [
|
|
125
|
+
CONTROL_TYPE.TAB
|
|
126
|
+
]);
|
|
127
|
+
_define_property(CollapsePaneControl, "setting", []);
|
|
128
|
+
export default CollapsePaneControl;
|
|
129
|
+
export { CollapsePaneControl as DesignerCollapsePaneControl };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Designer from './designer';
|
|
2
|
+
import Runtime from './runtime';
|
|
3
|
+
import Property from './property';
|
|
4
|
+
export default {
|
|
5
|
+
Designer: Designer,
|
|
6
|
+
Runtime: Runtime,
|
|
7
|
+
Property: Property
|
|
8
|
+
};
|
|
9
|
+
export * from './designer';
|
|
10
|
+
export * from './runtime';
|
|
11
|
+
export * from './property';
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
|
+
if (self === void 0) {
|
|
3
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
+
}
|
|
5
|
+
return self;
|
|
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
|
+
}
|
|
11
|
+
function _class_call_check(instance, Constructor) {
|
|
12
|
+
if (!(instance instanceof Constructor)) {
|
|
13
|
+
throw new TypeError("Cannot call a class as a function");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function _define_property(obj, key, value) {
|
|
17
|
+
if (key in obj) {
|
|
18
|
+
Object.defineProperty(obj, key, {
|
|
19
|
+
value: value,
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
writable: true
|
|
23
|
+
});
|
|
24
|
+
} else {
|
|
25
|
+
obj[key] = value;
|
|
26
|
+
}
|
|
27
|
+
return obj;
|
|
28
|
+
}
|
|
29
|
+
function _get_prototype_of(o) {
|
|
30
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
31
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
32
|
+
};
|
|
33
|
+
return _get_prototype_of(o);
|
|
34
|
+
}
|
|
35
|
+
function _inherits(subClass, superClass) {
|
|
36
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
37
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
38
|
+
}
|
|
39
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
40
|
+
constructor: {
|
|
41
|
+
value: subClass,
|
|
42
|
+
writable: true,
|
|
43
|
+
configurable: true
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
47
|
+
}
|
|
48
|
+
function _possible_constructor_return(self, call) {
|
|
49
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
50
|
+
return call;
|
|
51
|
+
}
|
|
52
|
+
return _assert_this_initialized(self);
|
|
53
|
+
}
|
|
54
|
+
function _set_prototype_of(o, p) {
|
|
55
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
56
|
+
o.__proto__ = p;
|
|
57
|
+
return o;
|
|
58
|
+
};
|
|
59
|
+
return _set_prototype_of(o, p);
|
|
60
|
+
}
|
|
61
|
+
function _type_of(obj) {
|
|
62
|
+
"@swc/helpers - typeof";
|
|
63
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
64
|
+
}
|
|
65
|
+
function _is_native_reflect_construct() {
|
|
66
|
+
try {
|
|
67
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
+
} catch (_) {}
|
|
69
|
+
return (_is_native_reflect_construct = function() {
|
|
70
|
+
return !!result;
|
|
71
|
+
})();
|
|
72
|
+
}
|
|
73
|
+
import { LayoutControlProperty } from '@byteluck-fe/model-driven-core';
|
|
74
|
+
var CollapsePaneControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
75
|
+
"use strict";
|
|
76
|
+
_inherits(CollapsePaneControlProperty, LayoutControlProperty);
|
|
77
|
+
function CollapsePaneControlProperty(props) {
|
|
78
|
+
_class_call_check(this, CollapsePaneControlProperty);
|
|
79
|
+
var _this;
|
|
80
|
+
_this = _call_super(this, CollapsePaneControlProperty, [
|
|
81
|
+
props
|
|
82
|
+
]), /**
|
|
83
|
+
* 面板头内容
|
|
84
|
+
* @defaultValue
|
|
85
|
+
*/ _define_property(_this, "header", void 0);
|
|
86
|
+
var _props_header;
|
|
87
|
+
_this.header = (_props_header = props === null || props === void 0 ? void 0 : props.header) !== null && _props_header !== void 0 ? _props_header : '分组';
|
|
88
|
+
return _this;
|
|
89
|
+
}
|
|
90
|
+
return CollapsePaneControlProperty;
|
|
91
|
+
}(LayoutControlProperty);
|
|
92
|
+
export default CollapsePaneControlProperty;
|
|
93
|
+
export { CollapsePaneControlProperty, };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
|
+
if (self === void 0) {
|
|
3
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
+
}
|
|
5
|
+
return self;
|
|
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
|
+
}
|
|
11
|
+
function _class_call_check(instance, Constructor) {
|
|
12
|
+
if (!(instance instanceof Constructor)) {
|
|
13
|
+
throw new TypeError("Cannot call a class as a function");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function _defineProperties(target, props) {
|
|
17
|
+
for(var i = 0; i < props.length; i++){
|
|
18
|
+
var descriptor = props[i];
|
|
19
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
20
|
+
descriptor.configurable = true;
|
|
21
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
22
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
26
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
27
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
28
|
+
return Constructor;
|
|
29
|
+
}
|
|
30
|
+
function _define_property(obj, key, value) {
|
|
31
|
+
if (key in obj) {
|
|
32
|
+
Object.defineProperty(obj, key, {
|
|
33
|
+
value: value,
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true,
|
|
36
|
+
writable: true
|
|
37
|
+
});
|
|
38
|
+
} else {
|
|
39
|
+
obj[key] = value;
|
|
40
|
+
}
|
|
41
|
+
return obj;
|
|
42
|
+
}
|
|
43
|
+
function _get_prototype_of(o) {
|
|
44
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
45
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46
|
+
};
|
|
47
|
+
return _get_prototype_of(o);
|
|
48
|
+
}
|
|
49
|
+
function _inherits(subClass, superClass) {
|
|
50
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
51
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
52
|
+
}
|
|
53
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
54
|
+
constructor: {
|
|
55
|
+
value: subClass,
|
|
56
|
+
writable: true,
|
|
57
|
+
configurable: true
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
61
|
+
}
|
|
62
|
+
function _possible_constructor_return(self, call) {
|
|
63
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
64
|
+
return call;
|
|
65
|
+
}
|
|
66
|
+
return _assert_this_initialized(self);
|
|
67
|
+
}
|
|
68
|
+
function _set_prototype_of(o, p) {
|
|
69
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
70
|
+
o.__proto__ = p;
|
|
71
|
+
return o;
|
|
72
|
+
};
|
|
73
|
+
return _set_prototype_of(o, p);
|
|
74
|
+
}
|
|
75
|
+
function _type_of(obj) {
|
|
76
|
+
"@swc/helpers - typeof";
|
|
77
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
78
|
+
}
|
|
79
|
+
function _is_native_reflect_construct() {
|
|
80
|
+
try {
|
|
81
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
82
|
+
} catch (_) {}
|
|
83
|
+
return (_is_native_reflect_construct = function() {
|
|
84
|
+
return !!result;
|
|
85
|
+
})();
|
|
86
|
+
}
|
|
87
|
+
import { RuntimeLayoutControl } from '@byteluck-fe/model-driven-core';
|
|
88
|
+
import CollapsePaneControlProperty from './property';
|
|
89
|
+
var CollapsePaneControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
|
|
90
|
+
"use strict";
|
|
91
|
+
_inherits(CollapsePaneControl, RuntimeLayoutControl);
|
|
92
|
+
function CollapsePaneControl(props) {
|
|
93
|
+
_class_call_check(this, CollapsePaneControl);
|
|
94
|
+
var _this;
|
|
95
|
+
_this = _call_super(this, CollapsePaneControl, [
|
|
96
|
+
props
|
|
97
|
+
]), _define_property(_this, "props", void 0);
|
|
98
|
+
_this.props = new CollapsePaneControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
99
|
+
return _this;
|
|
100
|
+
}
|
|
101
|
+
_create_class(CollapsePaneControl, null, [
|
|
102
|
+
{
|
|
103
|
+
key: "controlType",
|
|
104
|
+
get: function get() {
|
|
105
|
+
return 'collapse-pane';
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]);
|
|
109
|
+
return CollapsePaneControl;
|
|
110
|
+
}(RuntimeLayoutControl);
|
|
111
|
+
export default CollapsePaneControl;
|
|
112
|
+
export { CollapsePaneControl as RuntimeCollapsePaneControl };
|
|
File without changes
|
|
@@ -129,6 +129,22 @@ _define_property(RowControl, "setting", [
|
|
|
129
129
|
{
|
|
130
130
|
key: 'col-setting',
|
|
131
131
|
visible: true
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
key: 'row-gutter',
|
|
135
|
+
visible: true
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
key: 'row-align',
|
|
139
|
+
visible: true
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
key: 'row-justify',
|
|
143
|
+
visible: true
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
key: 'dynamic-margin-padding',
|
|
147
|
+
visible: true
|
|
132
148
|
}
|
|
133
149
|
]);
|
|
134
150
|
export default RowControl;
|
|
@@ -70,7 +70,7 @@ function _is_native_reflect_construct() {
|
|
|
70
70
|
return !!result;
|
|
71
71
|
})();
|
|
72
72
|
}
|
|
73
|
-
import { LayoutControlProperty } from '@byteluck-fe/model-driven-core';
|
|
73
|
+
import { LayoutControlProperty, Margin, Padding } from '@byteluck-fe/model-driven-core';
|
|
74
74
|
var RowControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
75
75
|
"use strict";
|
|
76
76
|
_inherits(RowControlProperty, LayoutControlProperty);
|
|
@@ -79,11 +79,19 @@ var RowControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
79
79
|
var _this;
|
|
80
80
|
_this = _call_super(this, RowControlProperty, [
|
|
81
81
|
props
|
|
82
|
-
]), _define_property(_this, "layoutMode", void 0), _define_property(_this, "gutter", void 0);
|
|
82
|
+
]), _define_property(_this, "layoutMode", void 0), _define_property(_this, "gutter", void 0), _define_property(_this, "align", void 0), _define_property(_this, "justify", void 0), _define_property(_this, "padding", void 0), _define_property(_this, "margin", void 0), _define_property(_this, "isFull", void 0);
|
|
83
83
|
var _props_layoutMode;
|
|
84
84
|
_this.layoutMode = (_props_layoutMode = props === null || props === void 0 ? void 0 : props.layoutMode) !== null && _props_layoutMode !== void 0 ? _props_layoutMode : 'select';
|
|
85
85
|
var _props_gutter;
|
|
86
86
|
_this.gutter = (_props_gutter = props === null || props === void 0 ? void 0 : props.gutter) !== null && _props_gutter !== void 0 ? _props_gutter : 0;
|
|
87
|
+
var _props_align;
|
|
88
|
+
_this.align = (_props_align = props === null || props === void 0 ? void 0 : props.align) !== null && _props_align !== void 0 ? _props_align : '';
|
|
89
|
+
var _props_justify;
|
|
90
|
+
_this.justify = (_props_justify = props === null || props === void 0 ? void 0 : props.justify) !== null && _props_justify !== void 0 ? _props_justify : '';
|
|
91
|
+
_this.padding = new Padding(props === null || props === void 0 ? void 0 : props.padding);
|
|
92
|
+
_this.margin = new Margin(props === null || props === void 0 ? void 0 : props.margin);
|
|
93
|
+
var _props_isFull;
|
|
94
|
+
_this.isFull = (_props_isFull = props === null || props === void 0 ? void 0 : props.isFull) !== null && _props_isFull !== void 0 ? _props_isFull : false;
|
|
87
95
|
return _this;
|
|
88
96
|
}
|
|
89
97
|
return RowControlProperty;
|
|
@@ -153,6 +153,78 @@ _define_property(StepControl, "setting", [
|
|
|
153
153
|
key: 'is-sticky',
|
|
154
154
|
visible: true
|
|
155
155
|
},
|
|
156
|
+
{
|
|
157
|
+
key: 'step',
|
|
158
|
+
visible: true
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
key: 'common-switch',
|
|
162
|
+
visible: true,
|
|
163
|
+
name: 'isCenter',
|
|
164
|
+
label: '居中对齐',
|
|
165
|
+
default: false
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
key: 'common-switch',
|
|
169
|
+
visible: true,
|
|
170
|
+
name: 'isStopStepClick',
|
|
171
|
+
label: '允许结束步骤点击',
|
|
172
|
+
default: false
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
key: 'common-select',
|
|
176
|
+
visible: true,
|
|
177
|
+
name: 'status',
|
|
178
|
+
label: '当前步骤状态',
|
|
179
|
+
default: 'process',
|
|
180
|
+
options: [
|
|
181
|
+
{
|
|
182
|
+
value: 'wait',
|
|
183
|
+
label: '等待'
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
value: 'process',
|
|
187
|
+
label: '进行中'
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
value: 'finish',
|
|
191
|
+
label: '完成'
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
value: 'error',
|
|
195
|
+
label: '错误'
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
key: 'common-select',
|
|
201
|
+
visible: true,
|
|
202
|
+
name: 'stopStatus',
|
|
203
|
+
label: '结束步骤状态',
|
|
204
|
+
default: 'finish',
|
|
205
|
+
options: [
|
|
206
|
+
{
|
|
207
|
+
value: 'wait',
|
|
208
|
+
label: '等待'
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
value: 'process',
|
|
212
|
+
label: '进行中'
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
value: 'finish',
|
|
216
|
+
label: '完成'
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
value: 'error',
|
|
220
|
+
label: '错误'
|
|
221
|
+
}
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
key: 'step-buttons',
|
|
226
|
+
visible: true
|
|
227
|
+
},
|
|
156
228
|
{
|
|
157
229
|
key: 'step-pane',
|
|
158
230
|
visible: true
|
|
@@ -70,7 +70,7 @@ function _is_native_reflect_construct() {
|
|
|
70
70
|
return !!result;
|
|
71
71
|
})();
|
|
72
72
|
}
|
|
73
|
-
import { LayoutControlProperty } from '@byteluck-fe/model-driven-core';
|
|
73
|
+
import { LayoutControlProperty, StepButtons } from '@byteluck-fe/model-driven-core';
|
|
74
74
|
var StepControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
75
75
|
"use strict";
|
|
76
76
|
_inherits(StepControlProperty, LayoutControlProperty);
|
|
@@ -79,12 +79,43 @@ var StepControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
79
79
|
var _this;
|
|
80
80
|
_this = _call_super(this, StepControlProperty, [
|
|
81
81
|
props
|
|
82
|
-
]),
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
]), /**
|
|
83
|
+
* 步骤条方向;horizontal:水平方向;vertical:垂直方向
|
|
84
|
+
* @defaultValue horizontal
|
|
85
|
+
*/ _define_property(_this, "direction", void 0), /**
|
|
86
|
+
* 标签放置位置;horizontal:水平方向;vertical:竖直方向
|
|
87
|
+
* @defaultValue horizontal
|
|
88
|
+
*/ _define_property(_this, "labelPlacement", void 0), /**
|
|
89
|
+
* 大小;small:迷你; default:普通;
|
|
90
|
+
* @defaultValue default
|
|
91
|
+
*/ _define_property(_this, "size", void 0), /**
|
|
92
|
+
* 步骤条类型;default:默认; navigation:导航
|
|
93
|
+
* @defaultValue default
|
|
94
|
+
*/ _define_property(_this, "type", void 0), /**
|
|
95
|
+
* 是否粘性
|
|
96
|
+
* @defaultValue false
|
|
97
|
+
*/ _define_property(_this, "isSticky", void 0), /**
|
|
98
|
+
* 步骤条间距,可输入%或px
|
|
99
|
+
* @defaultValue
|
|
100
|
+
*/ _define_property(_this, "step", void 0), /**
|
|
101
|
+
* 是否居中对齐
|
|
102
|
+
* @defaultValue false
|
|
103
|
+
*/ _define_property(_this, "isCenter", void 0), /**
|
|
104
|
+
* 是否允许结束步骤点击
|
|
105
|
+
* @defaultValue false
|
|
106
|
+
*/ _define_property(_this, "isStopStepClick", void 0), /**
|
|
107
|
+
* 当前步骤的状态,wait:等待; process:进行中; finish:完成; error:错误;
|
|
108
|
+
* @defaultValue process
|
|
109
|
+
*/ _define_property(_this, "status", void 0), /**
|
|
110
|
+
* 结束步骤的状态,wait:等待; process:进行中; finish:完成; error:错误;
|
|
111
|
+
* @defaultValue finish
|
|
112
|
+
*/ _define_property(_this, "stopStatus", void 0), /**
|
|
113
|
+
* 是否显示步骤条按钮
|
|
114
|
+
* @defaultValue false
|
|
115
|
+
*/ _define_property(_this, "isShowStepButton", void 0), /**
|
|
116
|
+
* 步骤条按钮配置
|
|
117
|
+
* @defaultValue {prev: {icon: 'iconleft', label: '上一步'}, next: {icon: 'iconxiangyou', label: '下一步'}, }
|
|
118
|
+
*/ _define_property(_this, "stepButtons", void 0);
|
|
88
119
|
var _props_direction;
|
|
89
120
|
_this.direction = (_props_direction = props === null || props === void 0 ? void 0 : props.direction) !== null && _props_direction !== void 0 ? _props_direction : 'horizontal';
|
|
90
121
|
var _props_labelPlacement;
|
|
@@ -95,6 +126,19 @@ var StepControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
95
126
|
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'default';
|
|
96
127
|
var _props_isSticky;
|
|
97
128
|
_this.isSticky = (_props_isSticky = props === null || props === void 0 ? void 0 : props.isSticky) !== null && _props_isSticky !== void 0 ? _props_isSticky : false;
|
|
129
|
+
var _props_step;
|
|
130
|
+
_this.step = (_props_step = props === null || props === void 0 ? void 0 : props.step) !== null && _props_step !== void 0 ? _props_step : '';
|
|
131
|
+
var _props_isCenter;
|
|
132
|
+
_this.isCenter = (_props_isCenter = props === null || props === void 0 ? void 0 : props.isCenter) !== null && _props_isCenter !== void 0 ? _props_isCenter : false;
|
|
133
|
+
var _props_isStopStepClick;
|
|
134
|
+
_this.isStopStepClick = (_props_isStopStepClick = props === null || props === void 0 ? void 0 : props.isStopStepClick) !== null && _props_isStopStepClick !== void 0 ? _props_isStopStepClick : false;
|
|
135
|
+
var _props_status;
|
|
136
|
+
_this.status = (_props_status = props === null || props === void 0 ? void 0 : props.status) !== null && _props_status !== void 0 ? _props_status : 'process';
|
|
137
|
+
var _props_stopStatus;
|
|
138
|
+
_this.stopStatus = (_props_stopStatus = props === null || props === void 0 ? void 0 : props.stopStatus) !== null && _props_stopStatus !== void 0 ? _props_stopStatus : 'finish';
|
|
139
|
+
var _props_isShowStepButton;
|
|
140
|
+
_this.isShowStepButton = (_props_isShowStepButton = props === null || props === void 0 ? void 0 : props.isShowStepButton) !== null && _props_isShowStepButton !== void 0 ? _props_isShowStepButton : false;
|
|
141
|
+
_this.stepButtons = new StepButtons(props === null || props === void 0 ? void 0 : props.stepButtons);
|
|
98
142
|
return _this;
|
|
99
143
|
}
|
|
100
144
|
return StepControlProperty;
|