@byteluck-fe/model-driven-controls 2.8.1-beta → 2.8.5-beta.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/columnControls/TextColumn/property.js +2 -2
- package/dist/esm/formControls/Attachment/property.js +1 -14
- package/dist/esm/formControls/Image/designer.js +2 -9
- package/dist/esm/formControls/Image/property.js +1 -7
- package/dist/esm/framework.js +44 -0
- package/dist/esm/listControls/SubTable/property.js +9 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/columnControls/TextColumn/property.d.ts +1 -1
- package/dist/types/formControls/Attachment/property.d.ts +0 -2
- package/dist/types/framework.d.ts +14 -0
- package/dist/types/listControls/SubTable/property.d.ts +9 -0
- package/package.json +5 -5
|
@@ -110,7 +110,7 @@ var TextColumnControlPropertyRules = /*#__PURE__*/ function(ColumnControlPropert
|
|
|
110
110
|
_this = _super.call(this, props);
|
|
111
111
|
/**
|
|
112
112
|
* 保留富文本格式
|
|
113
|
-
* @defaultValue
|
|
113
|
+
* @defaultValue true
|
|
114
114
|
* @public
|
|
115
115
|
* */ _define_property(_assert_this_initialized(_this), "escapeHTML", void 0);
|
|
116
116
|
/**
|
|
@@ -127,7 +127,7 @@ var TextColumnControlPropertyRules = /*#__PURE__*/ function(ColumnControlPropert
|
|
|
127
127
|
*/ _define_property(_assert_this_initialized(_this), "linkOperationOption", void 0);
|
|
128
128
|
_define_property(_assert_this_initialized(_this), "lineEllipsis", void 0);
|
|
129
129
|
var _props_escapeHTML;
|
|
130
|
-
_this.escapeHTML = (_props_escapeHTML = props === null || props === void 0 ? void 0 : props.escapeHTML) !== null && _props_escapeHTML !== void 0 ? _props_escapeHTML :
|
|
130
|
+
_this.escapeHTML = (_props_escapeHTML = props === null || props === void 0 ? void 0 : props.escapeHTML) !== null && _props_escapeHTML !== void 0 ? _props_escapeHTML : true;
|
|
131
131
|
var _props_caption;
|
|
132
132
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerTextColumnControl.controlName;
|
|
133
133
|
var _props_lineEllipsis;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
-
* @Date: 2023-09-14 18:31:51
|
|
4
|
-
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
-
* @LastEditTime: 2023-09-19 15:49:31
|
|
6
|
-
* @FilePath: /model-driven/packages/controls/src/formControls/Attachment/property.ts
|
|
7
|
-
*/ function _assert_this_initialized(self) {
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
8
2
|
if (self === void 0) {
|
|
9
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
10
4
|
}
|
|
@@ -151,9 +145,6 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
151
145
|
_define_property(_assert_this_initialized(_this), "attachmentAccept", void 0);
|
|
152
146
|
_define_property(_assert_this_initialized(_this), "maxLimit", void 0);
|
|
153
147
|
_define_property(_assert_this_initialized(_this), "minLimit", void 0);
|
|
154
|
-
_define_property(_assert_this_initialized(_this), "isShowWatermark", void 0 // 是否开启水印
|
|
155
|
-
);
|
|
156
|
-
_define_property(_assert_this_initialized(_this), "watermarkFx", void 0);
|
|
157
148
|
/**
|
|
158
149
|
* maxSize 存储大小,单位为Byte,默认值为100MB
|
|
159
150
|
* */ _define_property(_assert_this_initialized(_this), "maxSize", void 0);
|
|
@@ -175,10 +166,6 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
175
166
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AttachmentControl.controlName;
|
|
176
167
|
var _props_placeholder;
|
|
177
168
|
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : "上传附件";
|
|
178
|
-
var _props_isShowWatermark;
|
|
179
|
-
_this.isShowWatermark = (_props_isShowWatermark = props === null || props === void 0 ? void 0 : props.isShowWatermark) !== null && _props_isShowWatermark !== void 0 ? _props_isShowWatermark : false;
|
|
180
|
-
var _props_watermarkFx;
|
|
181
|
-
_this.watermarkFx = (_props_watermarkFx = props === null || props === void 0 ? void 0 : props.watermarkFx) !== null && _props_watermarkFx !== void 0 ? _props_watermarkFx : {};
|
|
182
169
|
return _this;
|
|
183
170
|
}
|
|
184
171
|
return AttachmentProperty;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
-
* @Date: 2022-12-01 14:40:30
|
|
4
|
-
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
-
* @LastEditTime: 2023-09-19 15:50:38
|
|
6
|
-
* @FilePath: /model-driven/packages/controls/src/formControls/Image/designer.ts
|
|
7
|
-
*/ function _assert_this_initialized(self) {
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
8
2
|
if (self === void 0) {
|
|
9
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
10
4
|
}
|
|
@@ -176,8 +170,7 @@ _define_property(ImageControl, "setting", [
|
|
|
176
170
|
COMMON_SETTING_TYPE.REQUIRED,
|
|
177
171
|
COMMON_SETTING_TYPE.IS_HIDE,
|
|
178
172
|
COMMON_SETTING_TYPE.IS_HIDE_CAPTION,
|
|
179
|
-
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
180
|
-
COMMON_SETTING_TYPE.IS_SHOW_WATERMARK
|
|
173
|
+
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
181
174
|
]
|
|
182
175
|
},
|
|
183
176
|
{
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
-
* @Date: 2022-12-01 14:40:30
|
|
4
|
-
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
-
* @LastEditTime: 2023-09-19 14:56:27
|
|
6
|
-
* @FilePath: /model-driven/packages/controls/src/formControls/Image/property.ts
|
|
7
|
-
*/ function _assert_this_initialized(self) {
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
8
2
|
if (self === void 0) {
|
|
9
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
10
4
|
}
|
package/dist/esm/framework.js
CHANGED
|
@@ -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_importList;
|
|
240
|
+
_define_property(this, "templateType", void 0);
|
|
241
|
+
_define_property(this, "importList", 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_importList_map;
|
|
245
|
+
this.importList = (_props_importList_map = props === null || props === void 0 ? void 0 : (_props_importList = props.importList) === null || _props_importList === void 0 ? void 0 : _props_importList.map(function(item) {
|
|
246
|
+
return new ImportListBind(item);
|
|
247
|
+
})) !== null && _props_importList_map !== void 0 ? _props_importList_map : [];
|
|
248
|
+
};
|
|
249
|
+
export var ExportConfig = function ExportConfig(props) {
|
|
250
|
+
"use strict";
|
|
251
|
+
_class_call_check(this, ExportConfig);
|
|
252
|
+
var _props_exportList;
|
|
253
|
+
_define_property(this, "templateType", void 0);
|
|
254
|
+
_define_property(this, "exportList", 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_exportList_map;
|
|
258
|
+
this.exportList = (_props_exportList_map = props === null || props === void 0 ? void 0 : (_props_exportList = props.exportList) === null || _props_exportList === void 0 ? void 0 : _props_exportList.map(function(item) {
|
|
259
|
+
return new ExportTemplate(item);
|
|
260
|
+
})) !== null && _props_exportList_map !== void 0 ? _props_exportList_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, ""));
|
|
@@ -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;
|