@byteluck-fe/model-driven-controls 2.7.0-beta.2 → 2.8.0-alpha.1
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/baseControls/Button/designer.js +2 -1
- package/dist/esm/baseControls/Button/property.js +4 -1
- package/dist/esm/baseControls/ExportListButton/property.js +3 -0
- package/dist/esm/baseControls/ImportRecordListButton/designer.js +2 -1
- package/dist/esm/baseControls/ImportRecordListButton/property.js +3 -0
- package/dist/esm/baseControls/Text/property.js +3 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/designer.js +140 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/index.js +11 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/property.js +127 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/runtime.js +104 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/types.js +0 -0
- package/dist/esm/columnControls/ArrayColumn/designer.js +8 -1
- package/dist/esm/columnControls/ArrayColumn/property.js +10 -8
- package/dist/esm/columnControls/AutoNumberColumn/designer.js +5 -1
- package/dist/esm/columnControls/CustomColumn/designer.js +4 -0
- package/dist/esm/columnControls/CustomColumn/property.js +25 -1
- package/dist/esm/columnControls/DecimalColumn/designer.js +8 -4
- package/dist/esm/columnControls/DepartmentColumn/designer.js +4 -0
- package/dist/esm/columnControls/EmployeeColumn/designer.js +4 -0
- package/dist/esm/columnControls/FileColumn/designer.js +4 -0
- package/dist/esm/columnControls/ImageColumn/designer.js +4 -0
- package/dist/esm/columnControls/LocationColumn/designer.js +5 -1
- package/dist/esm/columnControls/OrderColumn/designer.js +4 -0
- package/dist/esm/columnControls/PeopleColumn/designer.js +4 -0
- package/dist/esm/columnControls/TextColumn/designer.js +8 -0
- package/dist/esm/columnControls/TimescopeColumn/designer.js +4 -0
- package/dist/esm/columnControls/TimestampColumn/designer.js +4 -0
- package/dist/esm/columnControls/VarcharColumn/designer.js +9 -1
- package/dist/esm/columnControls/index.js +1 -0
- package/dist/esm/formControls/Attachment/property.js +4 -7
- package/dist/esm/formControls/DatePicker/designer.js +4 -1
- package/dist/esm/formControls/DateRange/designer.js +4 -1
- package/dist/esm/formControls/Image/designer.js +2 -9
- package/dist/esm/formControls/Image/property.js +2 -30
- package/dist/esm/formControls/SearchDateRange/designer.js +4 -1
- package/dist/esm/formControls/Select/designer.js +5 -1
- package/dist/esm/formControls/Select/property.js +38 -2
- package/dist/esm/formControls/SelectMultiple/designer.js +5 -1
- package/dist/esm/formControls/SelectMultiple/property.js +38 -2
- package/dist/esm/formControls/SelectRelation/designer.js +5 -3
- package/dist/esm/formControls/SelectRelation/property.js +19 -1
- package/dist/esm/framework.js +2 -2
- package/dist/esm/index.js +10 -2
- package/dist/esm/layoutControls/ActionBar/designer.js +156 -0
- package/dist/esm/layoutControls/ActionBar/index.js +11 -0
- package/dist/esm/layoutControls/ActionBar/property.js +111 -0
- package/dist/esm/layoutControls/ActionBar/runtime.js +125 -0
- package/dist/esm/layoutControls/ActionBar/types.js +0 -0
- package/dist/esm/layoutControls/Col/designer.js +1 -0
- package/dist/esm/layoutControls/GridLayoutContainer/designer.js +152 -0
- package/dist/esm/layoutControls/GridLayoutContainer/index.js +11 -0
- package/dist/esm/layoutControls/GridLayoutContainer/property.js +107 -0
- package/dist/esm/layoutControls/GridLayoutContainer/runtime.js +124 -0
- package/dist/esm/layoutControls/GridLayoutContainer/types.js +0 -0
- package/dist/esm/layoutControls/ListView/designer.js +4 -0
- package/dist/esm/layoutControls/ListView/property.js +89 -3
- package/dist/esm/layoutControls/index.js +2 -0
- package/dist/esm/listControls/GridTable/designer.js +4 -0
- package/dist/esm/listControls/GridTable/property.js +8 -0
- package/dist/esm/listControls/SubTable/designer.js +6 -2
- package/dist/esm/listControls/SubTable/property.js +9 -0
- package/dist/esm/searchControls/SimpleSearch/designer.js +8 -0
- package/dist/esm/searchControls/SimpleSearch/property.js +14 -0
- package/dist/esm/wrapControls/GridLayoutWrap/Setting.js +27 -0
- package/dist/esm/wrapControls/GridLayoutWrap/designer.js +144 -0
- package/dist/esm/wrapControls/GridLayoutWrap/index.js +20 -0
- package/dist/esm/wrapControls/GridLayoutWrap/property.js +101 -0
- package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +130 -0
- package/dist/esm/wrapControls/index.js +1 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/Button/property.d.ts +2 -1
- package/dist/types/baseControls/ExportListButton/property.d.ts +1 -0
- package/dist/types/baseControls/ImportRecordListButton/property.d.ts +1 -0
- package/dist/types/baseControls/Text/property.d.ts +1 -0
- package/dist/types/columnControls/ApprovalStatusColumn/designer.d.ts +14 -0
- package/dist/types/columnControls/ApprovalStatusColumn/index.d.ts +12 -0
- package/dist/types/columnControls/ApprovalStatusColumn/property.d.ts +29 -0
- package/dist/types/columnControls/ApprovalStatusColumn/runtime.d.ts +12 -0
- package/dist/types/columnControls/ApprovalStatusColumn/types.d.ts +0 -0
- package/dist/types/columnControls/ArrayColumn/property.d.ts +3 -1
- package/dist/types/columnControls/CustomColumn/property.d.ts +8 -1
- package/dist/types/columnControls/index.d.ts +1 -0
- package/dist/types/formControls/Attachment/property.d.ts +1 -0
- package/dist/types/formControls/Image/property.d.ts +0 -2
- package/dist/types/formControls/Select/property.d.ts +20 -1
- package/dist/types/formControls/SelectMultiple/property.d.ts +20 -1
- package/dist/types/formControls/SelectRelation/property.d.ts +8 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/layoutControls/ActionBar/designer.d.ts +13 -0
- package/dist/types/layoutControls/ActionBar/index.d.ts +12 -0
- package/dist/types/layoutControls/ActionBar/property.d.ts +9 -0
- package/dist/types/layoutControls/ActionBar/runtime.d.ts +10 -0
- package/dist/types/layoutControls/ActionBar/types.d.ts +0 -0
- package/dist/types/layoutControls/GridLayoutContainer/designer.d.ts +14 -0
- package/dist/types/layoutControls/GridLayoutContainer/index.d.ts +12 -0
- package/dist/types/layoutControls/GridLayoutContainer/property.d.ts +8 -0
- package/dist/types/layoutControls/GridLayoutContainer/runtime.d.ts +10 -0
- package/dist/types/layoutControls/GridLayoutContainer/types.d.ts +0 -0
- package/dist/types/layoutControls/ListView/property.d.ts +17 -1
- package/dist/types/layoutControls/index.d.ts +2 -0
- package/dist/types/listControls/GridTable/property.d.ts +1 -0
- package/dist/types/listControls/SubTable/property.d.ts +1 -0
- package/dist/types/searchControls/SimpleSearch/property.d.ts +12 -0
- package/dist/types/type.d.ts +9 -2
- package/dist/types/wrapControls/GridLayoutWrap/Setting.d.ts +2 -0
- package/dist/types/wrapControls/GridLayoutWrap/designer.d.ts +11 -0
- package/dist/types/wrapControls/GridLayoutWrap/index.d.ts +14 -0
- package/dist/types/wrapControls/GridLayoutWrap/property.d.ts +6 -0
- package/dist/types/wrapControls/GridLayoutWrap/runtime.d.ts +9 -0
- package/dist/types/wrapControls/index.d.ts +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1,124 @@
|
|
|
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 _class_call_check(instance, Constructor) {
|
|
8
|
+
if (!(instance instanceof Constructor)) {
|
|
9
|
+
throw new TypeError("Cannot call a class as a function");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function _defineProperties(target, props) {
|
|
13
|
+
for(var i = 0; i < props.length; i++){
|
|
14
|
+
var descriptor = props[i];
|
|
15
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
16
|
+
descriptor.configurable = true;
|
|
17
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
18
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
22
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
23
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
24
|
+
return Constructor;
|
|
25
|
+
}
|
|
26
|
+
function _define_property(obj, key, value) {
|
|
27
|
+
if (key in obj) {
|
|
28
|
+
Object.defineProperty(obj, key, {
|
|
29
|
+
value: value,
|
|
30
|
+
enumerable: true,
|
|
31
|
+
configurable: true,
|
|
32
|
+
writable: true
|
|
33
|
+
});
|
|
34
|
+
} else {
|
|
35
|
+
obj[key] = value;
|
|
36
|
+
}
|
|
37
|
+
return obj;
|
|
38
|
+
}
|
|
39
|
+
function _get_prototype_of(o) {
|
|
40
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
41
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
42
|
+
};
|
|
43
|
+
return _get_prototype_of(o);
|
|
44
|
+
}
|
|
45
|
+
function _inherits(subClass, superClass) {
|
|
46
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
47
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
48
|
+
}
|
|
49
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
50
|
+
constructor: {
|
|
51
|
+
value: subClass,
|
|
52
|
+
writable: true,
|
|
53
|
+
configurable: true
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
57
|
+
}
|
|
58
|
+
function _possible_constructor_return(self, call) {
|
|
59
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
60
|
+
return call;
|
|
61
|
+
}
|
|
62
|
+
return _assert_this_initialized(self);
|
|
63
|
+
}
|
|
64
|
+
function _set_prototype_of(o, p) {
|
|
65
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
66
|
+
o.__proto__ = p;
|
|
67
|
+
return o;
|
|
68
|
+
};
|
|
69
|
+
return _set_prototype_of(o, p);
|
|
70
|
+
}
|
|
71
|
+
function _type_of(obj) {
|
|
72
|
+
"@swc/helpers - typeof";
|
|
73
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
74
|
+
}
|
|
75
|
+
function _is_native_reflect_construct() {
|
|
76
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
77
|
+
if (Reflect.construct.sham) return false;
|
|
78
|
+
if (typeof Proxy === "function") return true;
|
|
79
|
+
try {
|
|
80
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
81
|
+
return true;
|
|
82
|
+
} catch (e) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function _create_super(Derived) {
|
|
87
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
88
|
+
return function _createSuperInternal() {
|
|
89
|
+
var Super = _get_prototype_of(Derived), result;
|
|
90
|
+
if (hasNativeReflectConstruct) {
|
|
91
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
92
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
93
|
+
} else {
|
|
94
|
+
result = Super.apply(this, arguments);
|
|
95
|
+
}
|
|
96
|
+
return _possible_constructor_return(this, result);
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
import { RuntimeLayoutControl } from "@byteluck-fe/model-driven-core";
|
|
100
|
+
import GridLayoutContainerControlProperty from "./property";
|
|
101
|
+
var GridLayoutContainerControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
|
|
102
|
+
"use strict";
|
|
103
|
+
_inherits(GridLayoutContainerControl, RuntimeLayoutControl);
|
|
104
|
+
var _super = _create_super(GridLayoutContainerControl);
|
|
105
|
+
function GridLayoutContainerControl(props) {
|
|
106
|
+
_class_call_check(this, GridLayoutContainerControl);
|
|
107
|
+
var _this;
|
|
108
|
+
_this = _super.call(this, props);
|
|
109
|
+
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
110
|
+
_this.props = new GridLayoutContainerControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
111
|
+
return _this;
|
|
112
|
+
}
|
|
113
|
+
_create_class(GridLayoutContainerControl, null, [
|
|
114
|
+
{
|
|
115
|
+
key: "controlType",
|
|
116
|
+
get: function get() {
|
|
117
|
+
return "grid-layout-container";
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
]);
|
|
121
|
+
return GridLayoutContainerControl;
|
|
122
|
+
}(RuntimeLayoutControl);
|
|
123
|
+
export default GridLayoutContainerControl;
|
|
124
|
+
export { GridLayoutContainerControl as RuntimeGridLayoutContainerControl };
|
|
File without changes
|
|
@@ -82,7 +82,7 @@ function _create_super(Derived) {
|
|
|
82
82
|
return _possible_constructor_return(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
import { LayoutControlProperty, PropertyRules, PropertyRuntimeRules, DataSourceBind, SubListPageConfig } from "@byteluck-fe/model-driven-core";
|
|
85
|
+
import { LayoutControlProperty, PropertyRules, PropertyRuntimeRules, DataSourceBind, SubListPageConfig, JoinRelation } from "@byteluck-fe/model-driven-core";
|
|
86
86
|
import { RulesMessage } from "@byteluck-fe/model-driven-shared";
|
|
87
87
|
import { initOptionAndDataSourceRules } from "@byteluck-fe/model-driven-core";
|
|
88
88
|
export var TriggerType;
|
|
@@ -124,13 +124,82 @@ export var TriggerType;
|
|
|
124
124
|
_define_property(_assert_this_initialized(_this), "datasourceBind", {
|
|
125
125
|
type: "any"
|
|
126
126
|
});
|
|
127
|
-
|
|
127
|
+
_define_property(_assert_this_initialized(_this), "joinRelation", [
|
|
128
|
+
{
|
|
129
|
+
type: "any"
|
|
130
|
+
}
|
|
131
|
+
]);
|
|
132
|
+
console.log("--ListViewControlPropertyRules--");
|
|
133
|
+
if (props.triggerType === 2 && props.isShowSubList) {
|
|
128
134
|
_this.triggerFieldCode = {
|
|
129
135
|
type: "string",
|
|
130
136
|
required: true,
|
|
131
137
|
message: RulesMessage.getMessage("pleaseEnterFieldCode")
|
|
132
138
|
};
|
|
133
139
|
}
|
|
140
|
+
if (props.isShowJoinRelation) {
|
|
141
|
+
_this.joinRelation = [
|
|
142
|
+
{
|
|
143
|
+
type: "object",
|
|
144
|
+
message: RulesMessage.getMessage("isNotObject")
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
type: "object",
|
|
148
|
+
fields: {
|
|
149
|
+
aliasCode: {
|
|
150
|
+
type: "string",
|
|
151
|
+
required: true,
|
|
152
|
+
message: RulesMessage.getMessage("pleaseEnterAliasCode")
|
|
153
|
+
},
|
|
154
|
+
datasourceBind: [
|
|
155
|
+
{
|
|
156
|
+
type: "object",
|
|
157
|
+
message: RulesMessage.getMessage("isNotObject")
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
type: "object",
|
|
161
|
+
fields: {
|
|
162
|
+
dataCode: {
|
|
163
|
+
type: "string",
|
|
164
|
+
required: true,
|
|
165
|
+
message: RulesMessage.getMessage("pleaseSelectDataCode")
|
|
166
|
+
},
|
|
167
|
+
svcCode: {
|
|
168
|
+
type: "string",
|
|
169
|
+
required: true,
|
|
170
|
+
message: RulesMessage.getMessage("pleaseSelectSvcCode")
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
relationFields: [
|
|
176
|
+
{
|
|
177
|
+
type: "array",
|
|
178
|
+
message: RulesMessage.getMessage("isNotArray")
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
type: "array",
|
|
182
|
+
defaultField: {
|
|
183
|
+
type: "object",
|
|
184
|
+
fields: {
|
|
185
|
+
joinFieldCode: {
|
|
186
|
+
type: "string",
|
|
187
|
+
required: true,
|
|
188
|
+
message: RulesMessage.getMessage("pleaseSelectJoinFieldCode")
|
|
189
|
+
},
|
|
190
|
+
mainFieldCode: {
|
|
191
|
+
type: "string",
|
|
192
|
+
required: true,
|
|
193
|
+
message: RulesMessage.getMessage("pleaseSelectMainFieldCode")
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
];
|
|
202
|
+
}
|
|
134
203
|
initOptionAndDataSourceRules.call(_assert_this_initialized(_this), {
|
|
135
204
|
optionConfig: "datasource",
|
|
136
205
|
datasourceBind: props.datasourceBind,
|
|
@@ -188,6 +257,13 @@ export var TriggerType;
|
|
|
188
257
|
* @public
|
|
189
258
|
*/ _define_property(_assert_this_initialized(_this), "sublistPage", void 0);
|
|
190
259
|
/**
|
|
260
|
+
* 显示连接表
|
|
261
|
+
*/ _define_property(_assert_this_initialized(_this), "isShowJoinRelation", void 0);
|
|
262
|
+
/**
|
|
263
|
+
* 连接表配置
|
|
264
|
+
* @public
|
|
265
|
+
*/ _define_property(_assert_this_initialized(_this), "joinRelation", void 0);
|
|
266
|
+
/**
|
|
191
267
|
* @internal
|
|
192
268
|
*/ _define_property(_assert_this_initialized(_this), "showType", void 0 //提供给关联单选中复用list-view的能力
|
|
193
269
|
);
|
|
@@ -223,16 +299,24 @@ export var TriggerType;
|
|
|
223
299
|
* @public
|
|
224
300
|
*/ _define_property(_assert_this_initialized(_this), "countType", void 0 //计数模式
|
|
225
301
|
);
|
|
302
|
+
/**
|
|
303
|
+
* 列表展示最多条数
|
|
304
|
+
* @defaultValue 100000
|
|
305
|
+
* @public
|
|
306
|
+
*/ _define_property(_assert_this_initialized(_this), "countLimit", void 0);
|
|
226
307
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
227
308
|
var _props_isLoading;
|
|
228
309
|
_this.isLoading = (_props_isLoading = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _props_isLoading !== void 0 ? _props_isLoading : false;
|
|
229
310
|
var _props_isShowSubList;
|
|
230
311
|
_this.isShowSubList = (_props_isShowSubList = props === null || props === void 0 ? void 0 : props.isShowSubList) !== null && _props_isShowSubList !== void 0 ? _props_isShowSubList : false;
|
|
231
312
|
var _props_triggerType;
|
|
232
|
-
_this.triggerType = (_props_triggerType = props === null || props === void 0 ? void 0 : props.triggerType) !== null && _props_triggerType !== void 0 ? _props_triggerType :
|
|
313
|
+
_this.triggerType = (_props_triggerType = props === null || props === void 0 ? void 0 : props.triggerType) !== null && _props_triggerType !== void 0 ? _props_triggerType : 1;
|
|
233
314
|
var _props_triggerFieldCode;
|
|
234
315
|
_this.triggerFieldCode = (_props_triggerFieldCode = props === null || props === void 0 ? void 0 : props.triggerFieldCode) !== null && _props_triggerFieldCode !== void 0 ? _props_triggerFieldCode : "";
|
|
235
316
|
_this.sublistPage = new SubListPageConfig(props === null || props === void 0 ? void 0 : props.sublistPage);
|
|
317
|
+
var _props_isShowJoinRelation;
|
|
318
|
+
_this.isShowJoinRelation = (_props_isShowJoinRelation = props === null || props === void 0 ? void 0 : props.isShowJoinRelation) !== null && _props_isShowJoinRelation !== void 0 ? _props_isShowJoinRelation : false;
|
|
319
|
+
_this.joinRelation = new JoinRelation(props === null || props === void 0 ? void 0 : props.joinRelation);
|
|
236
320
|
var _props_showType;
|
|
237
321
|
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : "stretch";
|
|
238
322
|
var _props_showFullScreen;
|
|
@@ -246,6 +330,8 @@ export var TriggerType;
|
|
|
246
330
|
var _props_isAllLoaded;
|
|
247
331
|
_this.isAllLoaded = (_props_isAllLoaded = props === null || props === void 0 ? void 0 : props.isAllLoaded) !== null && _props_isAllLoaded !== void 0 ? _props_isAllLoaded : true;
|
|
248
332
|
_this.countType = props === null || props === void 0 ? void 0 : props.countType;
|
|
333
|
+
var _props_countLimit;
|
|
334
|
+
_this.countLimit = (_props_countLimit = props === null || props === void 0 ? void 0 : props.countLimit) !== null && _props_countLimit !== void 0 ? _props_countLimit : 100000;
|
|
249
335
|
return _this;
|
|
250
336
|
}
|
|
251
337
|
return ListViewControlProperty;
|
|
@@ -6,6 +6,7 @@ export { default as CardGroup } from "./CardGroup";
|
|
|
6
6
|
export { default as SubTableColumn } from "./SubTableColumn";
|
|
7
7
|
export { default as SubTableRow } from "./SubTableRow";
|
|
8
8
|
export { default as GridTableColumn } from "./GridTableColumn";
|
|
9
|
+
export { default as GridLayoutContainer } from "./GridLayoutContainer";
|
|
9
10
|
export { default as Tab } from "./Tab";
|
|
10
11
|
export { default as TabPane } from "./TabPane";
|
|
11
12
|
export { default as Toolbox } from "./Toolbox";
|
|
@@ -15,3 +16,4 @@ export { default as Page } from "./Page";
|
|
|
15
16
|
export { default as AdvancedContainer } from "./AdvancedContainer";
|
|
16
17
|
export { default as PositioningContainer } from "./PositioningContainer";
|
|
17
18
|
export { default as Position } from "./Position";
|
|
19
|
+
export { default as ActionBar } from "./ActionBar";
|
|
@@ -293,6 +293,7 @@ var GridTableControl = /*#__PURE__*/ function(DesignerListControl) {
|
|
|
293
293
|
function GridTableControl(props) {
|
|
294
294
|
_class_call_check(this, GridTableControl);
|
|
295
295
|
var _this;
|
|
296
|
+
var _props_props;
|
|
296
297
|
_this = _super.call(this, props);
|
|
297
298
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
298
299
|
_define_property(_assert_this_initialized(_this), "children", void 0);
|
|
@@ -304,6 +305,9 @@ var GridTableControl = /*#__PURE__*/ function(DesignerListControl) {
|
|
|
304
305
|
new DesignerOperationColumnControl()
|
|
305
306
|
];
|
|
306
307
|
}
|
|
308
|
+
if ((props === null || props === void 0 ? void 0 : (_props_props = props.props) === null || _props_props === void 0 ? void 0 : _props_props.footers) === undefined) {
|
|
309
|
+
_this.props.footers = [];
|
|
310
|
+
}
|
|
307
311
|
return _this;
|
|
308
312
|
}
|
|
309
313
|
_create_class(GridTableControl, [
|
|
@@ -134,6 +134,14 @@ import { ListControlProperty } from "@byteluck-fe/model-driven-core";
|
|
|
134
134
|
_this.isShowSelection = (_props_isShowSelection = props === null || props === void 0 ? void 0 : props.isShowSelection) !== null && _props_isShowSelection !== void 0 ? _props_isShowSelection : false;
|
|
135
135
|
var _props_isShowCustomColumns;
|
|
136
136
|
_this.isShowCustomColumns = (_props_isShowCustomColumns = props === null || props === void 0 ? void 0 : props.isShowCustomColumns) !== null && _props_isShowCustomColumns !== void 0 ? _props_isShowCustomColumns : true;
|
|
137
|
+
var _props_pageSizeOptions;
|
|
138
|
+
_this.pageSizeOptions = (_props_pageSizeOptions = props === null || props === void 0 ? void 0 : props.pageSizeOptions) !== null && _props_pageSizeOptions !== void 0 ? _props_pageSizeOptions : [
|
|
139
|
+
10,
|
|
140
|
+
20,
|
|
141
|
+
50,
|
|
142
|
+
100,
|
|
143
|
+
500
|
|
144
|
+
];
|
|
137
145
|
return _this;
|
|
138
146
|
}
|
|
139
147
|
return GridTableControlProperty;
|
|
@@ -106,7 +106,7 @@ var SubTableControl = /*#__PURE__*/ function(DesignerListControl) {
|
|
|
106
106
|
function SubTableControl(props) {
|
|
107
107
|
_class_call_check(this, SubTableControl);
|
|
108
108
|
var _this;
|
|
109
|
-
var _props_props;
|
|
109
|
+
var _props_props, _props_props1;
|
|
110
110
|
_this = _super.call(this, props);
|
|
111
111
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
112
112
|
_this.props = new SubTableControlProperty(_assert_this_initialized(_this), props === null || props === void 0 ? void 0 : props.props);
|
|
@@ -118,6 +118,9 @@ var SubTableControl = /*#__PURE__*/ function(DesignerListControl) {
|
|
|
118
118
|
new DesignerSubTableColumnControl()
|
|
119
119
|
];
|
|
120
120
|
}
|
|
121
|
+
if ((props === null || props === void 0 ? void 0 : (_props_props1 = props.props) === null || _props_props1 === void 0 ? void 0 : _props_props1.footers) === undefined) {
|
|
122
|
+
_this.props.footers = [];
|
|
123
|
+
}
|
|
121
124
|
return _this;
|
|
122
125
|
}
|
|
123
126
|
_create_class(SubTableControl, [
|
|
@@ -187,7 +190,8 @@ _define_property(SubTableControl, "setting", [
|
|
|
187
190
|
showItems: [
|
|
188
191
|
COMMON_SETTING_TYPE.IS_HIDE,
|
|
189
192
|
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
|
|
190
|
-
COMMON_SETTING_TYPE.IS_PASTE
|
|
193
|
+
COMMON_SETTING_TYPE.IS_PASTE,
|
|
194
|
+
COMMON_SETTING_TYPE.SERVER_PAGINATION
|
|
191
195
|
]
|
|
192
196
|
},
|
|
193
197
|
{
|
|
@@ -379,6 +379,15 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
|
379
379
|
_this.mobileIsTile = (_props_mobileIsTile = props === null || props === void 0 ? void 0 : props.mobileIsTile) !== null && _props_mobileIsTile !== void 0 ? _props_mobileIsTile : false;
|
|
380
380
|
var _props_isPaste;
|
|
381
381
|
_this.isPaste = (_props_isPaste = props === null || props === void 0 ? void 0 : props.isPaste) !== null && _props_isPaste !== void 0 ? _props_isPaste : false;
|
|
382
|
+
var _props_pageSize;
|
|
383
|
+
_this.pageSize = (_props_pageSize = props === null || props === void 0 ? void 0 : props.pageSize) !== null && _props_pageSize !== void 0 ? _props_pageSize : 10;
|
|
384
|
+
var _props_pageSizeOptions;
|
|
385
|
+
_this.pageSizeOptions = (_props_pageSizeOptions = props === null || props === void 0 ? void 0 : props.pageSizeOptions) !== null && _props_pageSizeOptions !== void 0 ? _props_pageSizeOptions : [
|
|
386
|
+
10,
|
|
387
|
+
20,
|
|
388
|
+
50,
|
|
389
|
+
100
|
|
390
|
+
];
|
|
382
391
|
return _this;
|
|
383
392
|
}
|
|
384
393
|
return SubTableControlProperty;
|
|
@@ -100,6 +100,14 @@ var SimpleSearchControl = /*#__PURE__*/ function(DesignerSearchControl) {
|
|
|
100
100
|
}(DesignerSearchControl);
|
|
101
101
|
_define_property(SimpleSearchControl, "controlType", "simple-search");
|
|
102
102
|
_define_property(SimpleSearchControl, "setting", [
|
|
103
|
+
{
|
|
104
|
+
key: "grid-child-min-width",
|
|
105
|
+
visible: true
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
key: "grid-col-gap",
|
|
109
|
+
visible: true
|
|
110
|
+
},
|
|
103
111
|
{
|
|
104
112
|
key: "search-fields",
|
|
105
113
|
visible: true
|
|
@@ -144,6 +144,16 @@ var SimpleSearchControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRun
|
|
|
144
144
|
* @defaultValue []
|
|
145
145
|
* @public
|
|
146
146
|
*/ _define_property(_assert_this_initialized(_this), "queryTypeMap", void 0);
|
|
147
|
+
/**
|
|
148
|
+
* 控件宽度最小值
|
|
149
|
+
* @defaultValue 230
|
|
150
|
+
* @public
|
|
151
|
+
*/ _define_property(_assert_this_initialized(_this), "childMinWidth", void 0);
|
|
152
|
+
/**
|
|
153
|
+
* 控件间距
|
|
154
|
+
* @defaultValue 24
|
|
155
|
+
* @public
|
|
156
|
+
*/ _define_property(_assert_this_initialized(_this), "colGap", void 0);
|
|
147
157
|
var _props_searchType;
|
|
148
158
|
_this.searchType = (_props_searchType = props === null || props === void 0 ? void 0 : props.searchType) !== null && _props_searchType !== void 0 ? _props_searchType : "model";
|
|
149
159
|
var _props_labelPosition;
|
|
@@ -168,6 +178,10 @@ var SimpleSearchControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRun
|
|
|
168
178
|
});
|
|
169
179
|
var _props_queryTypeMap;
|
|
170
180
|
_this.queryTypeMap = (_props_queryTypeMap = props === null || props === void 0 ? void 0 : props.queryTypeMap) !== null && _props_queryTypeMap !== void 0 ? _props_queryTypeMap : [];
|
|
181
|
+
var _props_childMinWidth;
|
|
182
|
+
_this.childMinWidth = (_props_childMinWidth = props === null || props === void 0 ? void 0 : props.childMinWidth) !== null && _props_childMinWidth !== void 0 ? _props_childMinWidth : 230;
|
|
183
|
+
var _props_colGap;
|
|
184
|
+
_this.colGap = (_props_colGap = props === null || props === void 0 ? void 0 : props.colGap) !== null && _props_colGap !== void 0 ? _props_colGap : 24;
|
|
171
185
|
return _this;
|
|
172
186
|
}
|
|
173
187
|
return SimpleSearchControlProperty;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
+
* @Date: 2023-08-08 11:13:49
|
|
4
|
+
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
+
* @LastEditTime: 2023-08-09 14:06:17
|
|
6
|
+
* @FilePath: /model-driven/packages/controls/src/wrapControls/gridLayoutWrap/Setting.ts
|
|
7
|
+
*/ import { defineInstance } from "@byteluck-fe/model-driven-settings";
|
|
8
|
+
export default defineInstance({
|
|
9
|
+
fields: [
|
|
10
|
+
{
|
|
11
|
+
key: "wholeRow",
|
|
12
|
+
type: "boolean",
|
|
13
|
+
component: "switch",
|
|
14
|
+
label: "充满整行",
|
|
15
|
+
props: {
|
|
16
|
+
updateParent: true
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
groups: [
|
|
21
|
+
{
|
|
22
|
+
items: [
|
|
23
|
+
"wholeRow"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
});
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
+
* @Date: 2023-08-08 11:13:49
|
|
4
|
+
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
+
* @LastEditTime: 2023-08-09 11:26:04
|
|
6
|
+
* @FilePath: /model-driven/packages/controls/src/wrapControls/gridLayoutWrap/designer.ts
|
|
7
|
+
*/ function _assert_this_initialized(self) {
|
|
8
|
+
if (self === void 0) {
|
|
9
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
10
|
+
}
|
|
11
|
+
return self;
|
|
12
|
+
}
|
|
13
|
+
function _class_call_check(instance, Constructor) {
|
|
14
|
+
if (!(instance instanceof Constructor)) {
|
|
15
|
+
throw new TypeError("Cannot call a class as a function");
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function _defineProperties(target, props) {
|
|
19
|
+
for(var i = 0; i < props.length; i++){
|
|
20
|
+
var descriptor = props[i];
|
|
21
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
22
|
+
descriptor.configurable = true;
|
|
23
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
24
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
28
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
29
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
30
|
+
return Constructor;
|
|
31
|
+
}
|
|
32
|
+
function _define_property(obj, key, value) {
|
|
33
|
+
if (key in obj) {
|
|
34
|
+
Object.defineProperty(obj, key, {
|
|
35
|
+
value: value,
|
|
36
|
+
enumerable: true,
|
|
37
|
+
configurable: true,
|
|
38
|
+
writable: true
|
|
39
|
+
});
|
|
40
|
+
} else {
|
|
41
|
+
obj[key] = value;
|
|
42
|
+
}
|
|
43
|
+
return obj;
|
|
44
|
+
}
|
|
45
|
+
function _get_prototype_of(o) {
|
|
46
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
47
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
48
|
+
};
|
|
49
|
+
return _get_prototype_of(o);
|
|
50
|
+
}
|
|
51
|
+
function _inherits(subClass, superClass) {
|
|
52
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
53
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
54
|
+
}
|
|
55
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
56
|
+
constructor: {
|
|
57
|
+
value: subClass,
|
|
58
|
+
writable: true,
|
|
59
|
+
configurable: true
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
63
|
+
}
|
|
64
|
+
function _possible_constructor_return(self, call) {
|
|
65
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
66
|
+
return call;
|
|
67
|
+
}
|
|
68
|
+
return _assert_this_initialized(self);
|
|
69
|
+
}
|
|
70
|
+
function _set_prototype_of(o, p) {
|
|
71
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
72
|
+
o.__proto__ = p;
|
|
73
|
+
return o;
|
|
74
|
+
};
|
|
75
|
+
return _set_prototype_of(o, p);
|
|
76
|
+
}
|
|
77
|
+
function _type_of(obj) {
|
|
78
|
+
"@swc/helpers - typeof";
|
|
79
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
80
|
+
}
|
|
81
|
+
function _is_native_reflect_construct() {
|
|
82
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
83
|
+
if (Reflect.construct.sham) return false;
|
|
84
|
+
if (typeof Proxy === "function") return true;
|
|
85
|
+
try {
|
|
86
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
87
|
+
return true;
|
|
88
|
+
} catch (e) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
function _create_super(Derived) {
|
|
93
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
94
|
+
return function _createSuperInternal() {
|
|
95
|
+
var Super = _get_prototype_of(Derived), result;
|
|
96
|
+
if (hasNativeReflectConstruct) {
|
|
97
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
98
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
99
|
+
} else {
|
|
100
|
+
result = Super.apply(this, arguments);
|
|
101
|
+
}
|
|
102
|
+
return _possible_constructor_return(this, result);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
import { DesignerWrapControl } from "@byteluck-fe/model-driven-core";
|
|
106
|
+
import GridLayoutWrapProperty from "./property";
|
|
107
|
+
// import Setting from './Setting'
|
|
108
|
+
var GridLayoutWrapControl = /*#__PURE__*/ function(DesignerWrapControl) {
|
|
109
|
+
"use strict";
|
|
110
|
+
_inherits(GridLayoutWrapControl, DesignerWrapControl);
|
|
111
|
+
var _super = _create_super(GridLayoutWrapControl);
|
|
112
|
+
function GridLayoutWrapControl(props) {
|
|
113
|
+
_class_call_check(this, GridLayoutWrapControl);
|
|
114
|
+
var _this;
|
|
115
|
+
_this = _super.call(this, props);
|
|
116
|
+
// static readonly setting: any = Setting
|
|
117
|
+
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
118
|
+
_this.props = new GridLayoutWrapProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
119
|
+
return _this;
|
|
120
|
+
}
|
|
121
|
+
_create_class(GridLayoutWrapControl, null, [
|
|
122
|
+
{
|
|
123
|
+
key: "controlName",
|
|
124
|
+
get: function get() {
|
|
125
|
+
return "换行容器Wrap";
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
key: "controlIcon",
|
|
130
|
+
get: function get() {
|
|
131
|
+
return "page";
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
key: "controlType",
|
|
136
|
+
get: function get() {
|
|
137
|
+
return "grid-layout-wrap";
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
]);
|
|
141
|
+
return GridLayoutWrapControl;
|
|
142
|
+
}(DesignerWrapControl);
|
|
143
|
+
export default GridLayoutWrapControl;
|
|
144
|
+
export { GridLayoutWrapControl as DesignerGridLayoutWrapControl };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
+
* @Date: 2023-08-08 11:09:34
|
|
4
|
+
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
+
* @LastEditTime: 2023-08-09 11:02:28
|
|
6
|
+
* @FilePath: /model-driven/packages/controls/src/wrapControls/gridLayoutWrap/index.ts
|
|
7
|
+
*/ import Designer from "./designer";
|
|
8
|
+
import Runtime from "./runtime";
|
|
9
|
+
import Property from "./property";
|
|
10
|
+
import Setting from "./Setting";
|
|
11
|
+
export default {
|
|
12
|
+
Designer: Designer,
|
|
13
|
+
Runtime: Runtime,
|
|
14
|
+
Property: Property,
|
|
15
|
+
Setting: Setting
|
|
16
|
+
};
|
|
17
|
+
export * from "./designer";
|
|
18
|
+
export * from "./runtime";
|
|
19
|
+
export * from "./property";
|
|
20
|
+
export * from "./Setting";
|