@byteluck-fe/model-driven-controls 2.8.1-alpha.10 → 2.8.1-alpha.14

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.
Files changed (36) hide show
  1. package/dist/esm/baseControls/BatchDeleteButton/designer.js +3 -0
  2. package/dist/esm/baseControls/BatchPrintListButton/designer.js +3 -0
  3. package/dist/esm/baseControls/BatchPrintRecordListButton/designer.js +3 -0
  4. package/dist/esm/baseControls/BatchSubmissionListButton/designer.js +3 -0
  5. package/dist/esm/baseControls/Button/designer.js +6 -0
  6. package/dist/esm/baseControls/CreateFormListButton/designer.js +3 -0
  7. package/dist/esm/baseControls/ExportListButton/designer.js +3 -0
  8. package/dist/esm/baseControls/ExportRecordListButton/designer.js +3 -0
  9. package/dist/esm/baseControls/ImportRecordListButton/designer.js +3 -0
  10. package/dist/esm/baseControls/SubmissionRecordListButton/designer.js +3 -0
  11. package/dist/esm/columnControls/CustomColumn/designer.js +3 -0
  12. package/dist/esm/framework.js +44 -0
  13. package/dist/esm/layoutControls/ActionBar/designer.js +3 -0
  14. package/dist/esm/layoutControls/ListView/designer.js +3 -0
  15. package/dist/esm/listControls/GridTable/designer.js +3 -0
  16. package/dist/esm/listControls/SubTable/designer.js +3 -0
  17. package/dist/esm/listControls/SubTable/property.js +9 -1
  18. package/dist/index.umd.js +1 -1
  19. package/dist/types/baseControls/BatchDeleteButton/designer.d.ts +1 -0
  20. package/dist/types/baseControls/BatchPrintListButton/designer.d.ts +1 -0
  21. package/dist/types/baseControls/BatchPrintRecordListButton/designer.d.ts +1 -0
  22. package/dist/types/baseControls/BatchSubmissionListButton/designer.d.ts +1 -0
  23. package/dist/types/baseControls/Button/designer.d.ts +1 -0
  24. package/dist/types/baseControls/CreateFormListButton/designer.d.ts +1 -0
  25. package/dist/types/baseControls/ExportListButton/designer.d.ts +1 -0
  26. package/dist/types/baseControls/ExportRecordListButton/designer.d.ts +1 -0
  27. package/dist/types/baseControls/ImportRecordListButton/designer.d.ts +1 -0
  28. package/dist/types/baseControls/SubmissionRecordListButton/designer.d.ts +1 -0
  29. package/dist/types/columnControls/CustomColumn/designer.d.ts +1 -0
  30. package/dist/types/framework.d.ts +14 -0
  31. package/dist/types/layoutControls/ActionBar/designer.d.ts +3 -0
  32. package/dist/types/layoutControls/ListView/designer.d.ts +3 -0
  33. package/dist/types/listControls/GridTable/designer.d.ts +3 -0
  34. package/dist/types/listControls/SubTable/designer.d.ts +3 -0
  35. package/dist/types/listControls/SubTable/property.d.ts +9 -0
  36. 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", [
@@ -227,6 +227,50 @@ export var WPSSetting = function WPSSetting(props) {
227
227
  this.watermark = new WpsOperationItem(props === null || props === void 0 ? void 0 : props.watermark);
228
228
  this.autoRename = new WpsOperationItem(props === null || props === void 0 ? void 0 : props.autoRename);
229
229
  };
230
+ export var ImportListBind = function ImportListBind(props) {
231
+ "use strict";
232
+ _class_call_check(this, ImportListBind);
233
+ _define_property(this, "dataCode", void 0);
234
+ this.dataCode = props.dataCode;
235
+ };
236
+ export var ImportConfig = function ImportConfig(props) {
237
+ "use strict";
238
+ _class_call_check(this, ImportConfig);
239
+ var _props_templateList;
240
+ _define_property(this, "templateType", void 0);
241
+ _define_property(this, "templateList", void 0);
242
+ var _props_templateType;
243
+ this.templateType = (_props_templateType = props === null || props === void 0 ? void 0 : props.templateType) !== null && _props_templateType !== void 0 ? _props_templateType : "system";
244
+ var _props_templateList_map;
245
+ this.templateList = (_props_templateList_map = props === null || props === void 0 ? void 0 : (_props_templateList = props.templateList) === null || _props_templateList === void 0 ? void 0 : _props_templateList.map(function(item) {
246
+ return new ImportListBind(item);
247
+ })) !== null && _props_templateList_map !== void 0 ? _props_templateList_map : [];
248
+ };
249
+ export var ExportConfig = function ExportConfig(props) {
250
+ "use strict";
251
+ _class_call_check(this, ExportConfig);
252
+ var _props_templateList;
253
+ _define_property(this, "templateType", void 0);
254
+ _define_property(this, "templateList", void 0);
255
+ var _props_templateType;
256
+ this.templateType = (_props_templateType = props === null || props === void 0 ? void 0 : props.templateType) !== null && _props_templateType !== void 0 ? _props_templateType : "system";
257
+ var _props_templateList_map;
258
+ this.templateList = (_props_templateList_map = props === null || props === void 0 ? void 0 : (_props_templateList = props.templateList) === null || _props_templateList === void 0 ? void 0 : _props_templateList.map(function(item) {
259
+ return new ExportTemplate(item);
260
+ })) !== null && _props_templateList_map !== void 0 ? _props_templateList_map : [
261
+ new ExportTemplate({
262
+ id: "default",
263
+ name: "默认模板",
264
+ appId: "default",
265
+ dataCode: "default",
266
+ svcCode: "default",
267
+ fieldList: [
268
+ ""
269
+ ],
270
+ active: true
271
+ })
272
+ ];
273
+ };
230
274
  export var SUBTABLE_DEFAULT_MAX_HEIGHT = 480;
231
275
  export function initExpression(expression) {
232
276
  return new RegExp(expression.replace(/^\/|\/$/g, ""));
@@ -133,6 +133,9 @@ 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
141
  {
@@ -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
  ]);
@@ -384,6 +384,9 @@ var GridTableControl = /*#__PURE__*/ function(DesignerListControl) {
384
384
  // 'on_list_mounted',
385
385
  // 'on_list_splice',
386
386
  // ]
387
+ _define_property(GridTableControl, "slotPosition", {
388
+ toolbar: "grid-table-toolbar-slot"
389
+ });
387
390
  _define_property(GridTableControl, "setting", [
388
391
  {
389
392
  key: "list-fixed-header",
@@ -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",
@@ -85,7 +85,7 @@ function _create_super(Derived) {
85
85
  import SubTableControl from "./designer";
86
86
  import { ListControlProperty, PropertyRules, PropertyRuntimeRules, DataSourceBind, DataStorageDoc } from "@byteluck-fe/model-driven-core";
87
87
  import { RulesMessage } from "@byteluck-fe/model-driven-shared";
88
- import { SUBTABLE_DEFAULT_MAX_HEIGHT } from "../../framework";
88
+ import { SUBTABLE_DEFAULT_MAX_HEIGHT, ExportConfig, ImportConfig } from "../../framework";
89
89
  var SubTableControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
90
90
  "use strict";
91
91
  _inherits(SubTableControlPropertyRules, PropertyRules);
@@ -279,9 +279,15 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
279
279
  * 可以导入
280
280
  * */ _define_property(_assert_this_initialized(_this), "canImport", void 0);
281
281
  /**
282
+ * 导入配置
283
+ * */ _define_property(_assert_this_initialized(_this), "importConfig", void 0);
284
+ /**
282
285
  * 可以导出
283
286
  * */ _define_property(_assert_this_initialized(_this), "canExport", void 0);
284
287
  /**
288
+ * 导出配置
289
+ * */ _define_property(_assert_this_initialized(_this), "exportConfig", void 0);
290
+ /**
285
291
  * 可以清除
286
292
  * */ _define_property(_assert_this_initialized(_this), "canClear", void 0);
287
293
  /**
@@ -388,6 +394,8 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
388
394
  50,
389
395
  100
390
396
  ];
397
+ _this.importConfig = new ImportConfig(props === null || props === void 0 ? void 0 : props.importConfig);
398
+ _this.exportConfig = new ExportConfig(props === null || props === void 0 ? void 0 : props.exportConfig);
391
399
  return _this;
392
400
  }
393
401
  return SubTableControlProperty;