@byteluck-fe/model-driven-controls 4.51.0-lx1 → 4.53.0-lx1

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.
@@ -1,9 +1,9 @@
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
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
7
  */ function _assert_this_initialized(self) {
8
8
  if (self === void 0) {
9
9
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
@@ -135,14 +135,14 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
135
135
  props
136
136
  ]), _define_property(_this, "defaultValue", void 0), // 默认格式和列表格式,原应用内是title和table
137
137
  _define_property(_this, "showType", void 0), _define_property(_this, "resultShowType", void 0), _define_property(_this, "attachmentAccept", void 0), _define_property(_this, "maxLimit", void 0), _define_property(_this, "minLimit", void 0), _define_property(_this, "isShowWatermark", void 0 // 是否开启水印
138
- ), _define_property(_this, "watermarkFx", void 0), /**
139
- * maxSize 存储大小,单位为Byte,默认值为100MB
140
- * */ _define_property(_this, "maxSize", void 0), /**
141
- * 禁止下载
142
- * default false
143
- */ _define_property(_this, "forbidDownload", void 0), /**
144
- * 访问控制
145
- * default false
138
+ ), _define_property(_this, "watermarkFx", void 0), /**
139
+ * maxSize 存储大小,单位为Byte,默认值为100MB
140
+ * */ _define_property(_this, "maxSize", void 0), /**
141
+ * 禁止下载
142
+ * default false
143
+ */ _define_property(_this, "forbidDownload", void 0), /**
144
+ * 访问控制
145
+ * default false
146
146
  */ _define_property(_this, "accessControl", void 0), _define_property(_this, "notRepeatFileName", void 0 // 是否禁止上传重复文件名的附件
147
147
  );
148
148
  var _props_defaultValue;
@@ -31,16 +31,16 @@ export var TitleConfigEnum = /*#__PURE__*/ function(TitleConfigEnum) {
31
31
  TitleConfigEnum["ShowProcessModelDiagram"] = "process_model_diagram";
32
32
  return TitleConfigEnum;
33
33
  }({});
34
- /**
35
- * 时间范围类型
34
+ /**
35
+ * 时间范围类型
36
36
  */ export var DATE_CONFIG_TYPE = /*#__PURE__*/ function(DATE_CONFIG_TYPE) {
37
37
  DATE_CONFIG_TYPE["EARLY_DATE"] = "earlyDate";
38
38
  DATE_CONFIG_TYPE["LATE_DATE"] = "lateDate";
39
39
  DATE_CONFIG_TYPE["UN_SELECT_ABLE_INTERVAL"] = "unSelectAbleInterval";
40
40
  return DATE_CONFIG_TYPE;
41
41
  }({});
42
- /**
43
- * 时间限制类型
42
+ /**
43
+ * 时间限制类型
44
44
  */ export var DATE_LIMIT_TYPE = /*#__PURE__*/ function(DATE_LIMIT_TYPE) {
45
45
  DATE_LIMIT_TYPE["FILE_IN_TIME"] = "filledInTime";
46
46
  DATE_LIMIT_TYPE["BEFORE_TIME"] = "beforeTime";
@@ -48,8 +48,8 @@ export var TitleConfigEnum = /*#__PURE__*/ function(TitleConfigEnum) {
48
48
  DATE_LIMIT_TYPE["TIME_SPECIFIED"] = "timeSpecified";
49
49
  return DATE_LIMIT_TYPE;
50
50
  }({});
51
- /**
52
- * 时间限制范围
51
+ /**
52
+ * 时间限制范围
53
53
  */ export var LimitDate = function LimitDate() {
54
54
  "use strict";
55
55
  var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
@@ -102,23 +102,23 @@ export var LINE_STYLE = /*#__PURE__*/ function(LINE_STYLE) {
102
102
  export var UndersignedPerson = function UndersignedPerson(props) {
103
103
  "use strict";
104
104
  _class_call_check(this, UndersignedPerson);
105
- /**
106
- * 签署人类型
105
+ /**
106
+ * 签署人类型
107
107
  * */ _define_property(this, "type", void 0);
108
- /**
109
- * 签署人
108
+ /**
109
+ * 签署人
110
110
  * */ _define_property(this, "person", void 0);
111
- /**
112
- * 签章类型
111
+ /**
112
+ * 签章类型
113
113
  * */ _define_property(this, "signatureType", void 0);
114
- /**
115
- * 手机号
114
+ /**
115
+ * 手机号
116
116
  * */ _define_property(this, "telephone", void 0);
117
- /**
118
- * 公司名称
117
+ /**
118
+ * 公司名称
119
119
  * */ _define_property(this, "company", void 0);
120
- /**
121
- * 备注
120
+ /**
121
+ * 备注
122
122
  * */ _define_property(this, "remark", void 0);
123
123
  var _props_type;
124
124
  this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'private';
@@ -143,20 +143,20 @@ export var ElectronicSignatureConfig = function ElectronicSignatureConfig(props)
143
143
  "use strict";
144
144
  _class_call_check(this, ElectronicSignatureConfig);
145
145
  var _props_undersignedList;
146
- /**
147
- * 签署文件
146
+ /**
147
+ * 签署文件
148
148
  * */ _define_property(this, "fileControl", void 0);
149
- /**
150
- * 签署人
149
+ /**
150
+ * 签署人
151
151
  * */ _define_property(this, "undersignedList", void 0);
152
- /**
153
- * 签署状态
152
+ /**
153
+ * 签署状态
154
154
  * */ _define_property(this, "statusControl", void 0);
155
- /**
156
- * 签署完成文件
155
+ /**
156
+ * 签署完成文件
157
157
  * */ _define_property(this, "completeControl", void 0);
158
- /**
159
- * 签署完成时间
158
+ /**
159
+ * 签署完成时间
160
160
  * */ _define_property(this, "completeTimeControl", void 0);
161
161
  var _props_fileControl;
162
162
  this.fileControl = (_props_fileControl = props === null || props === void 0 ? void 0 : props.fileControl) !== null && _props_fileControl !== void 0 ? _props_fileControl : '';
@@ -268,16 +268,16 @@ export var FlexStyleConfig = function FlexStyleConfig(props) {
268
268
  var _props_alignItems;
269
269
  this.alignItems = (_props_alignItems = props === null || props === void 0 ? void 0 : props.alignItems) !== null && _props_alignItems !== void 0 ? _props_alignItems : 'flex-start';
270
270
  };
271
- /**
272
- * 加密类型
271
+ /**
272
+ * 加密类型
273
273
  */ export var EncryptTypeEnum = /*#__PURE__*/ function(EncryptTypeEnum) {
274
274
  EncryptTypeEnum["NO_MASK"] = "NO_MASK";
275
275
  EncryptTypeEnum["LAST_FOUR_MASK"] = "LAST_FOUR_MASK";
276
276
  EncryptTypeEnum["ALL_MASK"] = "ALL_MASK";
277
277
  return EncryptTypeEnum;
278
278
  }({});
279
- /**
280
- * 新人员 内部组织 or 外部组织
279
+ /**
280
+ * 新人员 内部组织 or 外部组织
281
281
  */ export var OrganizeType = /*#__PURE__*/ function(OrganizeType) {
282
282
  OrganizeType["ALL"] = "ALL";
283
283
  OrganizeType["INTERNAL"] = "INTERNAL";
@@ -285,23 +285,23 @@ export var FlexStyleConfig = function FlexStyleConfig(props) {
285
285
  OrganizeType["INTERNAL_EXTERNAL"] = "INTERNAL_EXTERNAL";
286
286
  return OrganizeType;
287
287
  }({});
288
- /**
289
- * 新部门 行政 or 业务
288
+ /**
289
+ * 新部门 行政 or 业务
290
290
  */ export var DepartmentType = /*#__PURE__*/ function(DepartmentType) {
291
291
  DepartmentType["INTERNAL_BUSINESS"] = "INTERNAL_BUSINESS";
292
292
  DepartmentType["INTERNAL"] = "INTERNAL";
293
293
  DepartmentType["BUSINESS"] = "BUSINESS";
294
294
  return DepartmentType;
295
295
  }({});
296
- /**
297
- * 指定或者全部
296
+ /**
297
+ * 指定或者全部
298
298
  */ export var AssignType = /*#__PURE__*/ function(AssignType) {
299
299
  AssignType["ALL"] = "all";
300
300
  AssignType["ASSIGN"] = "assign";
301
301
  return AssignType;
302
302
  }({});
303
- /**
304
- * 内部组织类型
303
+ /**
304
+ * 内部组织类型
305
305
  */ export var InternalType = /*#__PURE__*/ function(InternalType) {
306
306
  InternalType["ALL"] = "all";
307
307
  InternalType["ADMIN"] = "admin";
@@ -154,7 +154,8 @@ _define_property(SubTableControl, "controlEventKeys", [
154
154
  'on_list_delete',
155
155
  'on_list_before_insert',
156
156
  'on_list_before_import',
157
- 'on_list_after_import'
157
+ 'on_list_after_import',
158
+ 'on_sublist_actions'
158
159
  ]);
159
160
  _define_property(SubTableControl, "setting", [
160
161
  {
@@ -199,6 +200,10 @@ _define_property(SubTableControl, "setting", [
199
200
  key: 'orders-setting',
200
201
  visible: true
201
202
  },
203
+ {
204
+ key: 'field-orders-setting',
205
+ visible: true
206
+ },
202
207
  {
203
208
  key: 'print-setting',
204
209
  visible: true
@@ -163,9 +163,9 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
163
163
  }
164
164
  return SubtableControlRuntimeRules;
165
165
  }(PropertyRuntimeRules);
166
- /**
167
- * SubTable 明细表
168
- * @public
166
+ /**
167
+ * SubTable 明细表
168
+ * @public
169
169
  */ var SubTableControlProperty = /*#__PURE__*/ function(ListControlProperty) {
170
170
  "use strict";
171
171
  _inherits(SubTableControlProperty, ListControlProperty);
@@ -176,107 +176,108 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
176
176
  parent,
177
177
  props,
178
178
  SubTableControlProperty.mode
179
- ]), /**
180
- * 标题
181
- * */ _define_property(_this, "caption", void 0), /**
182
- * 标题布局
183
- * @defaultValue 'top'
184
- * @public
185
- * */ _define_property(_this, "labelPosition", void 0), /**
186
- * 隐藏标题
187
- * @defaultValue false
188
- * @public
189
- * */ _define_property(_this, "isHideCaption", void 0), /**
190
- * 开启气泡提示
191
- * @defaultValue false
192
- * @public
193
- * */ _define_property(_this, "isShowCaptionTip", void 0), /**
194
- * 气泡提示语
195
- * @defaultValue ''
196
- * @public
197
- * */ _define_property(_this, "captionTip", void 0), /**
198
- * 默认状态 default=普通 readonly=只读
199
- * @defaultValue 'default'
200
- * @public
201
- * */ _define_property(_this, "defaultState", void 0), /**
202
- * 最小填写行数,并且是默认行数
203
- * @defaultValue 1
204
- * @public
205
- * */ _define_property(_this, "limitRows", void 0), /**
206
- * 最多填写行数
207
- * @defaultValue
208
- * @public
209
- * */ _define_property(_this, "maxRows", void 0), /**
210
- * 默认填写行数
211
- * @defaultValue 1
212
- * @public
213
- * */ _define_property(_this, "defaultRows", void 0), /**
214
- * 绑定数据源
215
- * @public
216
- * */ _define_property(_this, "datasourceBind", void 0), /**
217
- * 打印配置 col=纵向打印|row=横向打印
218
- * @defaultValue 'row'
219
- * @public
220
- * */ _define_property(_this, "printMode", void 0), /**
221
- * 打开方式(查看,编辑,创建)
222
- * default列表模式|modal表单模式
223
- * @defaultValue 'default'
224
- * @public
225
- * */ _define_property(_this, "openType", void 0), /**
226
- * openType=modal表单模式,formKey为绑定的表单
227
- * @defaultValue ''
228
- * @public
229
- * */ _define_property(_this, "formKey", void 0), /**
230
- * 使用自定义高度
231
- * @defaultValue false
232
- * @public
233
- * */ _define_property(_this, "useCustomHeight", void 0), /**
234
- * 用户自定义最大高度,默认480
235
- * @defaultValue 480
236
- * @public
237
- * */ _define_property(_this, "maxHeight", void 0), /**
238
- * 可以新增
239
- * */ _define_property(_this, "canAdd", void 0), /**
240
- * 可以删除
241
- * */ _define_property(_this, "canDelete", void 0), /**
242
- * 可以查看
243
- * */ _define_property(_this, "canCheck", void 0), /**
244
- * 可以编辑
245
- * */ _define_property(_this, "canEdit", void 0), /**
246
- * 可以导入
247
- * */ _define_property(_this, "canImport", void 0), /**
248
- * 可以导出
249
- * */ _define_property(_this, "canExport", void 0), /**
250
- * 可以清除
251
- * */ _define_property(_this, "canClear", void 0), /**
252
- * 是否展示粘贴按钮
253
- * */ _define_property(_this, "isPaste", void 0), /**
254
- * 移动端展现形式 tile=平铺|list=列表
255
- * @defaultValue 'list'
256
- * @public
257
- * */ _define_property(_this, "mobileShowType", void 0), /**
258
- * 移动端默认展示条数
259
- * @defaultValue tile 5 | list 10
260
- * @public
261
- * */ _define_property(_this, "mobileDefaultNum", void 0), /**
262
- * 数据收起简述
263
- * @defaultValue
264
- * @public
265
- * */ _define_property(_this, "dataStorageDoc", void 0), /**
266
- * 开启后端分页
267
- * */ _define_property(_this, "serverPagination", void 0), /**
268
- * 固定列 字段
269
- * @defaultValue []
270
- * @public
271
- * */ _define_property(_this, "fixedColumn", void 0), /**
272
- * 移动端平铺行展示标题
273
- * @defaultValue '明细'
274
- * @public
275
- * */ _define_property(_this, "mobileRowCaption", void 0), /**
276
- * 移动端平铺数据流开关
277
- * @defaultValue false
278
- * @public
279
- * */ _define_property(_this, "mobileIsTile", void 0);
179
+ ]), /**
180
+ * 标题
181
+ * */ _define_property(_this, "caption", void 0), /**
182
+ * 标题布局
183
+ * @defaultValue 'top'
184
+ * @public
185
+ * */ _define_property(_this, "labelPosition", void 0), /**
186
+ * 隐藏标题
187
+ * @defaultValue false
188
+ * @public
189
+ * */ _define_property(_this, "isHideCaption", void 0), /**
190
+ * 开启气泡提示
191
+ * @defaultValue false
192
+ * @public
193
+ * */ _define_property(_this, "isShowCaptionTip", void 0), /**
194
+ * 气泡提示语
195
+ * @defaultValue ''
196
+ * @public
197
+ * */ _define_property(_this, "captionTip", void 0), /**
198
+ * 默认状态 default=普通 readonly=只读
199
+ * @defaultValue 'default'
200
+ * @public
201
+ * */ _define_property(_this, "defaultState", void 0), /**
202
+ * 最小填写行数,并且是默认行数
203
+ * @defaultValue 1
204
+ * @public
205
+ * */ _define_property(_this, "limitRows", void 0), /**
206
+ * 最多填写行数
207
+ * @defaultValue
208
+ * @public
209
+ * */ _define_property(_this, "maxRows", void 0), /**
210
+ * 默认填写行数
211
+ * @defaultValue 1
212
+ * @public
213
+ * */ _define_property(_this, "defaultRows", void 0), /**
214
+ * 绑定数据源
215
+ * @public
216
+ * */ _define_property(_this, "datasourceBind", void 0), /**
217
+ * 打印配置 col=纵向打印|row=横向打印
218
+ * @defaultValue 'row'
219
+ * @public
220
+ * */ _define_property(_this, "printMode", void 0), /**
221
+ * 打开方式(查看,编辑,创建)
222
+ * default列表模式|modal表单模式
223
+ * @defaultValue 'default'
224
+ * @public
225
+ * */ _define_property(_this, "openType", void 0), /**
226
+ * openType=modal表单模式,formKey为绑定的表单
227
+ * @defaultValue ''
228
+ * @public
229
+ * */ _define_property(_this, "formKey", void 0), /**
230
+ * 使用自定义高度
231
+ * @defaultValue false
232
+ * @public
233
+ * */ _define_property(_this, "useCustomHeight", void 0), /**
234
+ * 用户自定义最大高度,默认480
235
+ * @defaultValue 480
236
+ * @public
237
+ * */ _define_property(_this, "maxHeight", void 0), /**
238
+ * 可以新增
239
+ * */ _define_property(_this, "canAdd", void 0), /**
240
+ * 可以删除
241
+ * */ _define_property(_this, "canDelete", void 0), /**
242
+ * 可以查看
243
+ * */ _define_property(_this, "canCheck", void 0), /**
244
+ * 可以编辑
245
+ * */ _define_property(_this, "canEdit", void 0), /**
246
+ * 可以导入
247
+ * */ _define_property(_this, "canImport", void 0), /**
248
+ * 可以导出
249
+ * */ _define_property(_this, "canExport", void 0), /**
250
+ * 可以清除
251
+ * */ _define_property(_this, "canClear", void 0), /**
252
+ * 是否展示粘贴按钮
253
+ * */ _define_property(_this, "isPaste", void 0), /**
254
+ * 移动端展现形式 tile=平铺|list=列表
255
+ * @defaultValue 'list'
256
+ * @public
257
+ * */ _define_property(_this, "mobileShowType", void 0), /**
258
+ * 移动端默认展示条数
259
+ * @defaultValue tile 5 | list 10
260
+ * @public
261
+ * */ _define_property(_this, "mobileDefaultNum", void 0), /**
262
+ * 数据收起简述
263
+ * @defaultValue
264
+ * @public
265
+ * */ _define_property(_this, "dataStorageDoc", void 0), /**
266
+ * 开启后端分页
267
+ * */ _define_property(_this, "serverPagination", void 0), /**
268
+ * 固定列 字段
269
+ * @defaultValue []
270
+ * @public
271
+ * */ _define_property(_this, "fixedColumn", void 0), /**
272
+ * 移动端平铺行展示标题
273
+ * @defaultValue '明细'
274
+ * @public
275
+ * */ _define_property(_this, "mobileRowCaption", void 0), /**
276
+ * 移动端平铺数据流开关
277
+ * @defaultValue false
278
+ * @public
279
+ * */ _define_property(_this, "mobileIsTile", void 0), // 明细子表列头排序字段设置
280
+ _define_property(_this, "fieldOrders", void 0);
280
281
  var _props_caption;
281
282
  _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SubTableControl.controlName;
282
283
  var _props_isHideCaption;
@@ -345,6 +346,8 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
345
346
  50,
346
347
  100
347
348
  ];
349
+ var _props_fieldOrders;
350
+ _this.fieldOrders = (_props_fieldOrders = props === null || props === void 0 ? void 0 : props.fieldOrders) !== null && _props_fieldOrders !== void 0 ? _props_fieldOrders : [];
348
351
  return _this;
349
352
  }
350
353
  return SubTableControlProperty;