@byteluck-fe/model-driven-controls 6.2.0-2-beta.2 → 7.0.0-1-beta3
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/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/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/index.js +1 -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/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/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/index.d.ts +1 -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,173 @@
|
|
|
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 { DesignerLayoutControl } from '@byteluck-fe/model-driven-core';
|
|
88
|
+
import CollapseControlProperty from './property';
|
|
89
|
+
import { DesignerCollapsePaneControl } from '../CollapsePane';
|
|
90
|
+
var CollapseControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
91
|
+
"use strict";
|
|
92
|
+
_inherits(CollapseControl, DesignerLayoutControl);
|
|
93
|
+
function CollapseControl(props) {
|
|
94
|
+
_class_call_check(this, CollapseControl);
|
|
95
|
+
var _this;
|
|
96
|
+
_this = _call_super(this, CollapseControl, [
|
|
97
|
+
props
|
|
98
|
+
]), _define_property(_this, "props", void 0);
|
|
99
|
+
_this.props = new CollapseControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
100
|
+
var _props_children;
|
|
101
|
+
_this.children = (_props_children = props === null || props === void 0 ? void 0 : props.children) !== null && _props_children !== void 0 ? _props_children : [
|
|
102
|
+
new DesignerCollapsePaneControl(),
|
|
103
|
+
new DesignerCollapsePaneControl()
|
|
104
|
+
];
|
|
105
|
+
return _this;
|
|
106
|
+
}
|
|
107
|
+
_create_class(CollapseControl, null, [
|
|
108
|
+
{
|
|
109
|
+
key: "controlName",
|
|
110
|
+
get: function get() {
|
|
111
|
+
return '折叠面板';
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
key: "controlType",
|
|
116
|
+
get: function get() {
|
|
117
|
+
return 'collapse';
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
key: "controlIcon",
|
|
122
|
+
get: function get() {
|
|
123
|
+
return 'iconziyuan1';
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
]);
|
|
127
|
+
return CollapseControl;
|
|
128
|
+
}(DesignerLayoutControl);
|
|
129
|
+
_define_property(CollapseControl, "excludes", []);
|
|
130
|
+
_define_property(CollapseControl, "controlEventKeys", [
|
|
131
|
+
'on_change_collapse'
|
|
132
|
+
]);
|
|
133
|
+
_define_property(CollapseControl, "setting", [
|
|
134
|
+
{
|
|
135
|
+
key: 'common-switch',
|
|
136
|
+
visible: true,
|
|
137
|
+
name: 'accordion',
|
|
138
|
+
label: '手风琴模式',
|
|
139
|
+
default: false
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
key: 'common-switch',
|
|
143
|
+
visible: true,
|
|
144
|
+
name: 'bordered',
|
|
145
|
+
label: '边框风格',
|
|
146
|
+
default: true
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
key: 'common-switch',
|
|
150
|
+
visible: true,
|
|
151
|
+
name: 'isShowHighlightBar',
|
|
152
|
+
label: '标题左侧显示高亮条',
|
|
153
|
+
default: false
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
key: 'common-switch',
|
|
157
|
+
visible: true,
|
|
158
|
+
name: 'ghost',
|
|
159
|
+
label: '幽灵风格',
|
|
160
|
+
default: false,
|
|
161
|
+
tip: '使折叠面板透明且无边框'
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
key: 'collapse-pane',
|
|
165
|
+
visible: true
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
key: 'super-setting',
|
|
169
|
+
visible: true
|
|
170
|
+
}
|
|
171
|
+
]);
|
|
172
|
+
export default CollapseControl;
|
|
173
|
+
export { CollapseControl as DesignerCollapseControl };
|
|
@@ -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,107 @@
|
|
|
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 CollapseControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
75
|
+
"use strict";
|
|
76
|
+
_inherits(CollapseControlProperty, LayoutControlProperty);
|
|
77
|
+
function CollapseControlProperty(props) {
|
|
78
|
+
_class_call_check(this, CollapseControlProperty);
|
|
79
|
+
var _this;
|
|
80
|
+
_this = _call_super(this, CollapseControlProperty, [
|
|
81
|
+
props
|
|
82
|
+
]), /**
|
|
83
|
+
* 手风琴模式,始终只有一个面板处在激活状态
|
|
84
|
+
* @defaultValue false
|
|
85
|
+
*/ _define_property(_this, "accordion", void 0), /**
|
|
86
|
+
* 带边框风格的折叠面板
|
|
87
|
+
* @defaultValue true
|
|
88
|
+
*/ _define_property(_this, "bordered", void 0), /**
|
|
89
|
+
* 是否在标题左侧显示高亮条
|
|
90
|
+
* @defaultValue false
|
|
91
|
+
*/ _define_property(_this, "isShowHighlightBar", void 0), /**
|
|
92
|
+
* 幽灵折叠面板,使折叠面板透明且无边框
|
|
93
|
+
* @defaultValue false
|
|
94
|
+
*/ _define_property(_this, "ghost", void 0);
|
|
95
|
+
var _props_accordion;
|
|
96
|
+
_this.accordion = (_props_accordion = props === null || props === void 0 ? void 0 : props.accordion) !== null && _props_accordion !== void 0 ? _props_accordion : false;
|
|
97
|
+
_this.bordered = (props === null || props === void 0 ? void 0 : props.bordered) === false ? false : true;
|
|
98
|
+
var _props_isShowHighlightBar;
|
|
99
|
+
_this.isShowHighlightBar = (_props_isShowHighlightBar = props === null || props === void 0 ? void 0 : props.isShowHighlightBar) !== null && _props_isShowHighlightBar !== void 0 ? _props_isShowHighlightBar : false;
|
|
100
|
+
var _props_ghost;
|
|
101
|
+
_this.ghost = (_props_ghost = props === null || props === void 0 ? void 0 : props.ghost) !== null && _props_ghost !== void 0 ? _props_ghost : false;
|
|
102
|
+
return _this;
|
|
103
|
+
}
|
|
104
|
+
return CollapseControlProperty;
|
|
105
|
+
}(LayoutControlProperty);
|
|
106
|
+
export default CollapseControlProperty;
|
|
107
|
+
export { CollapseControlProperty };
|
|
@@ -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 CollapseControlProperty from './property';
|
|
89
|
+
var CollapseControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
|
|
90
|
+
"use strict";
|
|
91
|
+
_inherits(CollapseControl, RuntimeLayoutControl);
|
|
92
|
+
function CollapseControl(props) {
|
|
93
|
+
_class_call_check(this, CollapseControl);
|
|
94
|
+
var _this;
|
|
95
|
+
_this = _call_super(this, CollapseControl, [
|
|
96
|
+
props
|
|
97
|
+
]), _define_property(_this, "props", void 0);
|
|
98
|
+
_this.props = new CollapseControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
99
|
+
return _this;
|
|
100
|
+
}
|
|
101
|
+
_create_class(CollapseControl, null, [
|
|
102
|
+
{
|
|
103
|
+
key: "controlType",
|
|
104
|
+
get: function get() {
|
|
105
|
+
return 'collapse';
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]);
|
|
109
|
+
return CollapseControl;
|
|
110
|
+
}(RuntimeLayoutControl);
|
|
111
|
+
export default CollapseControl;
|
|
112
|
+
export { CollapseControl as RuntimeCollapseControl };
|
|
File without changes
|
|
@@ -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';
|