@byteluck-fe/model-driven-controls 2.8.5-beta.2 → 2.9.0-alpha.0
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/BatchDeleteButton/designer.js +3 -0
- package/dist/esm/baseControls/BatchPrintListButton/designer.js +3 -0
- package/dist/esm/baseControls/BatchPrintRecordListButton/designer.js +3 -0
- package/dist/esm/baseControls/BatchSubmissionListButton/designer.js +3 -0
- package/dist/esm/baseControls/Button/designer.js +6 -0
- package/dist/esm/baseControls/CreateFormListButton/designer.js +3 -0
- package/dist/esm/baseControls/ExportListButton/designer.js +3 -0
- package/dist/esm/baseControls/ExportRecordListButton/designer.js +3 -0
- package/dist/esm/baseControls/ImportRecordListButton/designer.js +3 -0
- package/dist/esm/baseControls/SubmissionRecordListButton/designer.js +3 -0
- package/dist/esm/columnControls/CustomColumn/designer.js +3 -0
- package/dist/esm/formControls/VueFormItem/designer.js +5 -1
- package/dist/esm/layoutControls/ActionBar/designer.js +19 -5
- package/dist/esm/layoutControls/ListView/designer.js +3 -0
- package/dist/esm/listControls/GridTable/designer.js +30 -1
- package/dist/esm/listControls/SubTable/designer.js +3 -0
- package/dist/esm/searchControls/SimpleSearch/designer.js +3 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/BatchDeleteButton/designer.d.ts +1 -0
- package/dist/types/baseControls/BatchPrintListButton/designer.d.ts +1 -0
- package/dist/types/baseControls/BatchPrintRecordListButton/designer.d.ts +1 -0
- package/dist/types/baseControls/BatchSubmissionListButton/designer.d.ts +1 -0
- package/dist/types/baseControls/Button/designer.d.ts +1 -0
- package/dist/types/baseControls/CreateFormListButton/designer.d.ts +1 -0
- package/dist/types/baseControls/ExportListButton/designer.d.ts +1 -0
- package/dist/types/baseControls/ExportRecordListButton/designer.d.ts +1 -0
- package/dist/types/baseControls/ImportRecordListButton/designer.d.ts +1 -0
- package/dist/types/baseControls/SubmissionRecordListButton/designer.d.ts +1 -0
- package/dist/types/columnControls/CustomColumn/designer.d.ts +1 -0
- package/dist/types/formControls/VueFormItem/designer.d.ts +1 -0
- package/dist/types/layoutControls/ActionBar/designer.d.ts +3 -0
- package/dist/types/layoutControls/ListView/designer.d.ts +3 -0
- package/dist/types/listControls/GridTable/designer.d.ts +8 -0
- package/dist/types/listControls/SubTable/designer.d.ts +3 -0
- package/dist/types/searchControls/SimpleSearch/designer.d.ts +3 -0
- package/package.json +5 -5
|
@@ -132,6 +132,9 @@ var BatchDeleteButtonControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
132
132
|
]);
|
|
133
133
|
return BatchDeleteButtonControl;
|
|
134
134
|
}(DesignerControl);
|
|
135
|
+
_define_property(BatchDeleteButtonControl, "slots", [
|
|
136
|
+
"grid-table-toolbar-slot"
|
|
137
|
+
]);
|
|
135
138
|
_define_property(BatchDeleteButtonControl, "controlEventKeys", [
|
|
136
139
|
"on_click"
|
|
137
140
|
]);
|
|
@@ -132,6 +132,9 @@ var BatchPrintListButtonControl = /*#__PURE__*/ function(DesignerButtonControl)
|
|
|
132
132
|
]);
|
|
133
133
|
return BatchPrintListButtonControl;
|
|
134
134
|
}(DesignerButtonControl);
|
|
135
|
+
_define_property(BatchPrintListButtonControl, "slots", [
|
|
136
|
+
"grid-table-toolbar-slot"
|
|
137
|
+
]);
|
|
135
138
|
_define_property(BatchPrintListButtonControl, "controlEventKeys", [
|
|
136
139
|
"on_click",
|
|
137
140
|
"on_click_finish"
|
|
@@ -132,6 +132,9 @@ var BatchPrintRecordListButton = /*#__PURE__*/ function(DesignerButtonControl) {
|
|
|
132
132
|
]);
|
|
133
133
|
return BatchPrintRecordListButton;
|
|
134
134
|
}(DesignerButtonControl);
|
|
135
|
+
_define_property(BatchPrintRecordListButton, "slots", [
|
|
136
|
+
"grid-table-toolbar-slot"
|
|
137
|
+
]);
|
|
135
138
|
_define_property(BatchPrintRecordListButton, "controlEventKeys", [
|
|
136
139
|
"on_click"
|
|
137
140
|
]);
|
|
@@ -132,6 +132,9 @@ var BatchSubmissionListButtonControl = /*#__PURE__*/ function(DesignerButtonCont
|
|
|
132
132
|
]);
|
|
133
133
|
return BatchSubmissionListButtonControl;
|
|
134
134
|
}(DesignerButtonControl);
|
|
135
|
+
_define_property(BatchSubmissionListButtonControl, "slots", [
|
|
136
|
+
"grid-table-toolbar-slot"
|
|
137
|
+
]);
|
|
135
138
|
_define_property(BatchSubmissionListButtonControl, "controlEventKeys", [
|
|
136
139
|
"on_click",
|
|
137
140
|
"on_click_finish"
|
|
@@ -98,6 +98,7 @@ function _create_super(Derived) {
|
|
|
98
98
|
}
|
|
99
99
|
import { DesignerControl, COMMON_SETTING_TYPE } from "@byteluck-fe/model-driven-core";
|
|
100
100
|
import { ButtonProperty } from "./property";
|
|
101
|
+
import { DESIGNER_SLOT } from "@byteluck-fe/model-driven-shared";
|
|
101
102
|
var ButtonControl = /*#__PURE__*/ function(DesignerControl) {
|
|
102
103
|
"use strict";
|
|
103
104
|
_inherits(ButtonControl, DesignerControl);
|
|
@@ -132,6 +133,11 @@ var ButtonControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
132
133
|
]);
|
|
133
134
|
return ButtonControl;
|
|
134
135
|
}(DesignerControl);
|
|
136
|
+
_define_property(ButtonControl, "slots", [
|
|
137
|
+
"grid-table-toolbar-slot",
|
|
138
|
+
"action-bar-slot",
|
|
139
|
+
DESIGNER_SLOT.DEFAULT
|
|
140
|
+
]);
|
|
135
141
|
//普通按钮去掉执行完成时事件
|
|
136
142
|
_define_property(ButtonControl, "controlEventKeys", [
|
|
137
143
|
"on_click"
|
|
@@ -132,6 +132,9 @@ var CreateFormListButtonControl = /*#__PURE__*/ function(DesignerButtonControl)
|
|
|
132
132
|
]);
|
|
133
133
|
return CreateFormListButtonControl;
|
|
134
134
|
}(DesignerButtonControl);
|
|
135
|
+
_define_property(CreateFormListButtonControl, "slots", [
|
|
136
|
+
"grid-table-toolbar-slot"
|
|
137
|
+
]);
|
|
135
138
|
_define_property(CreateFormListButtonControl, "controlEventKeys", [
|
|
136
139
|
"on_click",
|
|
137
140
|
"on_click_finish"
|
|
@@ -132,6 +132,9 @@ var ExportListButtonControl = /*#__PURE__*/ function(DesignerButtonControl) {
|
|
|
132
132
|
]);
|
|
133
133
|
return ExportListButtonControl;
|
|
134
134
|
}(DesignerButtonControl);
|
|
135
|
+
_define_property(ExportListButtonControl, "slots", [
|
|
136
|
+
"grid-table-toolbar-slot"
|
|
137
|
+
]);
|
|
135
138
|
_define_property(ExportListButtonControl, "controlEventKeys", [
|
|
136
139
|
"on_click",
|
|
137
140
|
"on_click_finish"
|
|
@@ -132,6 +132,9 @@ var ExportRecordListButtonControl = /*#__PURE__*/ function(DesignerButtonControl
|
|
|
132
132
|
]);
|
|
133
133
|
return ExportRecordListButtonControl;
|
|
134
134
|
}(DesignerButtonControl);
|
|
135
|
+
_define_property(ExportRecordListButtonControl, "slots", [
|
|
136
|
+
"grid-table-toolbar-slot"
|
|
137
|
+
]);
|
|
135
138
|
_define_property(ExportRecordListButtonControl, "controlEventKeys", [
|
|
136
139
|
"on_click"
|
|
137
140
|
]);
|
|
@@ -132,6 +132,9 @@ var ImportRecordListButtonControl = /*#__PURE__*/ function(DesignerButtonControl
|
|
|
132
132
|
]);
|
|
133
133
|
return ImportRecordListButtonControl;
|
|
134
134
|
}(DesignerButtonControl);
|
|
135
|
+
_define_property(ImportRecordListButtonControl, "slots", [
|
|
136
|
+
"grid-table-toolbar-slot"
|
|
137
|
+
]);
|
|
135
138
|
_define_property(ImportRecordListButtonControl, "controlEventKeys", [
|
|
136
139
|
"on_click",
|
|
137
140
|
"on_click_finish"
|
|
@@ -132,6 +132,9 @@ var SubmissionRecordListButtonControl = /*#__PURE__*/ function(DesignerButtonCon
|
|
|
132
132
|
]);
|
|
133
133
|
return SubmissionRecordListButtonControl;
|
|
134
134
|
}(DesignerButtonControl);
|
|
135
|
+
_define_property(SubmissionRecordListButtonControl, "slots", [
|
|
136
|
+
"grid-table-toolbar-slot"
|
|
137
|
+
]);
|
|
135
138
|
_define_property(SubmissionRecordListButtonControl, "controlEventKeys", [
|
|
136
139
|
"on_click"
|
|
137
140
|
]);
|
|
@@ -227,6 +227,9 @@ var CustomColumnControl = /*#__PURE__*/ function _target(DesignerColumnControl)
|
|
|
227
227
|
_define_property(CustomColumnControl, "controlType", "custom-column");
|
|
228
228
|
_define_property(CustomColumnControl, "controlName", "自定义");
|
|
229
229
|
_define_property(CustomColumnControl, "controlIcon", "custom-column");
|
|
230
|
+
_define_property(CustomColumnControl, "slots", [
|
|
231
|
+
"column-column-slot"
|
|
232
|
+
]);
|
|
230
233
|
_define_property(CustomColumnControl, "excludes", []);
|
|
231
234
|
_define_property(CustomColumnControl, "childrenMaxLength", CHILDREN_MAX_LENGTH);
|
|
232
235
|
_define_property(CustomColumnControl, "setting", [
|
|
@@ -98,7 +98,7 @@ function _create_super(Derived) {
|
|
|
98
98
|
}
|
|
99
99
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from "@byteluck-fe/model-driven-core";
|
|
100
100
|
import VueFormItemProperty from "./property";
|
|
101
|
-
import { FieldTypes } from "@byteluck-fe/model-driven-shared";
|
|
101
|
+
import { DESIGNER_SLOT, FieldTypes } from "@byteluck-fe/model-driven-shared";
|
|
102
102
|
var VueFormItemControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
103
103
|
"use strict";
|
|
104
104
|
_inherits(VueFormItemControl, DesignerFormControl);
|
|
@@ -135,6 +135,10 @@ var VueFormItemControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
135
135
|
}(DesignerFormControl);
|
|
136
136
|
_define_property(VueFormItemControl, "controlFieldType", FieldTypes.ANY);
|
|
137
137
|
_define_property(VueFormItemControl, "controlEventKeys", []);
|
|
138
|
+
_define_property(VueFormItemControl, "slots", [
|
|
139
|
+
"grid-table-toolbar-slot",
|
|
140
|
+
DESIGNER_SLOT.DEFAULT
|
|
141
|
+
]);
|
|
138
142
|
_define_property(VueFormItemControl, "setting", [
|
|
139
143
|
{
|
|
140
144
|
key: "data-bind-vue",
|
|
@@ -96,7 +96,7 @@ function _create_super(Derived) {
|
|
|
96
96
|
return _possible_constructor_return(this, result);
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
|
-
import { DesignerLayoutControl } from "@byteluck-fe/model-driven-core";
|
|
99
|
+
import { DesignerLayoutControl, COMMON_SETTING_TYPE } from "@byteluck-fe/model-driven-core";
|
|
100
100
|
import ActionBarControlProperty from "./property";
|
|
101
101
|
var ActionBarControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
102
102
|
"use strict";
|
|
@@ -133,12 +133,15 @@ var ActionBarControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
|
133
133
|
]);
|
|
134
134
|
return ActionBarControl;
|
|
135
135
|
}(DesignerLayoutControl);
|
|
136
|
+
_define_property(ActionBarControl, "slotPosition", {
|
|
137
|
+
default: "action-bar-slot"
|
|
138
|
+
});
|
|
136
139
|
_define_property(ActionBarControl, "excludes", []);
|
|
137
140
|
_define_property(ActionBarControl, "setting", [
|
|
138
|
-
{
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
},
|
|
141
|
+
// {
|
|
142
|
+
// key: 'action-buttons',
|
|
143
|
+
// visible: true,
|
|
144
|
+
// },
|
|
142
145
|
{
|
|
143
146
|
key: "action-position",
|
|
144
147
|
visible: true
|
|
@@ -150,6 +153,17 @@ _define_property(ActionBarControl, "setting", [
|
|
|
150
153
|
{
|
|
151
154
|
key: "buttons-align",
|
|
152
155
|
visible: true
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
key: "common-setting",
|
|
159
|
+
visible: true,
|
|
160
|
+
showItems: [
|
|
161
|
+
COMMON_SETTING_TYPE.IS_HIDE
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
key: "super-setting",
|
|
166
|
+
visible: true
|
|
153
167
|
}
|
|
154
168
|
]);
|
|
155
169
|
export default ActionBarControl;
|
|
@@ -133,6 +133,9 @@ var ListViewControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
|
133
133
|
]);
|
|
134
134
|
return ListViewControl;
|
|
135
135
|
}(DesignerLayoutControl);
|
|
136
|
+
_define_property(ListViewControl, "slotPosition", {
|
|
137
|
+
left: "list-view-left-slot"
|
|
138
|
+
});
|
|
136
139
|
_define_property(ListViewControl, "excludes", [
|
|
137
140
|
CONTROL_TYPE.ROW
|
|
138
141
|
]);
|
|
@@ -100,6 +100,13 @@ function _inherits(subClass, superClass) {
|
|
|
100
100
|
});
|
|
101
101
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
102
102
|
}
|
|
103
|
+
function _instanceof(left, right) {
|
|
104
|
+
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
105
|
+
return !!right[Symbol.hasInstance](left);
|
|
106
|
+
} else {
|
|
107
|
+
return left instanceof right;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
103
110
|
function _object_spread(target) {
|
|
104
111
|
for(var i = 1; i < arguments.length; i++){
|
|
105
112
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -286,7 +293,9 @@ import { GridTableControlProperty } from "./property";
|
|
|
286
293
|
import { DesignerListControl, defineControlArrayToProperty } from "@byteluck-fe/model-driven-core";
|
|
287
294
|
import { DesignerOrderColumnControl } from "../../columnControls/OrderColumn";
|
|
288
295
|
import { DesignerOperationColumnControl } from "../../columnControls/OperationColumn";
|
|
289
|
-
|
|
296
|
+
import { JSONCopy } from "@byteluck-fe/model-driven-shared";
|
|
297
|
+
var CHILDREN_MAX_LENGTH = 10000;
|
|
298
|
+
var GridTableControl = /*#__PURE__*/ function _target(DesignerListControl) {
|
|
290
299
|
"use strict";
|
|
291
300
|
_inherits(GridTableControl, DesignerListControl);
|
|
292
301
|
var _super = _create_super(GridTableControl);
|
|
@@ -297,6 +306,9 @@ var GridTableControl = /*#__PURE__*/ function(DesignerListControl) {
|
|
|
297
306
|
_this = _super.call(this, props);
|
|
298
307
|
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
299
308
|
_define_property(_assert_this_initialized(_this), "children", void 0);
|
|
309
|
+
_define_property(_assert_this_initialized(_this), "excludes", void 0);
|
|
310
|
+
_define_property(_assert_this_initialized(_this), "childrenMaxLength", void 0);
|
|
311
|
+
var _ref = _instanceof(this, GridTableControl) ? this.constructor : void 0, excludes = _ref.excludes, childrenMaxLength = _ref.childrenMaxLength;
|
|
300
312
|
_this.props = new GridTableControlProperty(_assert_this_initialized(_this), props === null || props === void 0 ? void 0 : props.props);
|
|
301
313
|
defineControlArrayToProperty(_assert_this_initialized(_this), "children", props === null || props === void 0 ? void 0 : props.children, undefined, "Designer");
|
|
302
314
|
if ((props === null || props === void 0 ? void 0 : props.props.headers) === undefined) {
|
|
@@ -308,9 +320,21 @@ var GridTableControl = /*#__PURE__*/ function(DesignerListControl) {
|
|
|
308
320
|
if ((props === null || props === void 0 ? void 0 : (_props_props = props.props) === null || _props_props === void 0 ? void 0 : _props_props.footers) === undefined) {
|
|
309
321
|
_this.props.footers = [];
|
|
310
322
|
}
|
|
323
|
+
_this.excludes = JSONCopy(excludes);
|
|
324
|
+
_this.childrenMaxLength = childrenMaxLength;
|
|
311
325
|
return _this;
|
|
312
326
|
}
|
|
313
327
|
_create_class(GridTableControl, [
|
|
328
|
+
{
|
|
329
|
+
key: "judgeJoinChildren",
|
|
330
|
+
value: function judgeJoinChildren(type) {
|
|
331
|
+
var canJoin = this.excludes === false || Array.isArray(this.excludes) && !this.excludes.includes(type);
|
|
332
|
+
if (canJoin) {
|
|
333
|
+
return this.childrenMaxLength > this.children.length;
|
|
334
|
+
}
|
|
335
|
+
return canJoin;
|
|
336
|
+
}
|
|
337
|
+
},
|
|
314
338
|
{
|
|
315
339
|
key: "toSchema",
|
|
316
340
|
value: function toSchema() {
|
|
@@ -384,11 +408,16 @@ var GridTableControl = /*#__PURE__*/ function(DesignerListControl) {
|
|
|
384
408
|
// 'on_list_mounted',
|
|
385
409
|
// 'on_list_splice',
|
|
386
410
|
// ]
|
|
411
|
+
_define_property(GridTableControl, "slotPosition", {
|
|
412
|
+
toolbar: "grid-table-toolbar-slot"
|
|
413
|
+
});
|
|
387
414
|
_define_property(GridTableControl, "setting", [
|
|
388
415
|
{
|
|
389
416
|
key: "list-fixed-header",
|
|
390
417
|
visible: true
|
|
391
418
|
}
|
|
392
419
|
]);
|
|
420
|
+
_define_property(GridTableControl, "excludes", []);
|
|
421
|
+
_define_property(GridTableControl, "childrenMaxLength", CHILDREN_MAX_LENGTH);
|
|
393
422
|
export default GridTableControl;
|
|
394
423
|
export { GridTableControl as DesignerGridTableControl };
|
|
@@ -167,6 +167,9 @@ _define_property(SubTableControl, "controlEventKeys", [
|
|
|
167
167
|
"on_list_before_insert",
|
|
168
168
|
"on_list_before_import"
|
|
169
169
|
]);
|
|
170
|
+
_define_property(SubTableControl, "slotPosition", {
|
|
171
|
+
toolbar: "subtable-toolbar-slot"
|
|
172
|
+
});
|
|
170
173
|
_define_property(SubTableControl, "setting", [
|
|
171
174
|
{
|
|
172
175
|
key: "subtable-datasource-bind",
|
|
@@ -99,6 +99,9 @@ var SimpleSearchControl = /*#__PURE__*/ function(DesignerSearchControl) {
|
|
|
99
99
|
return SimpleSearchControl;
|
|
100
100
|
}(DesignerSearchControl);
|
|
101
101
|
_define_property(SimpleSearchControl, "controlType", "simple-search");
|
|
102
|
+
_define_property(SimpleSearchControl, "slotPosition", {
|
|
103
|
+
default: "search"
|
|
104
|
+
});
|
|
102
105
|
_define_property(SimpleSearchControl, "setting", [
|
|
103
106
|
{
|
|
104
107
|
key: "grid-child-min-width",
|