@byteluck-fe/model-driven-core 2.6.0-alpha.8 → 2.7.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/common/FormControl/property.js +4 -2
- package/dist/esm/framework/index.js +188 -131
- package/dist/index.umd.js +1 -1
- package/dist/types/common/BaseControl/property.d.ts +14 -0
- package/dist/types/common/FormControl/property.d.ts +4 -0
- package/dist/types/framework/index.d.ts +227 -1
- package/package.json +3 -3
|
@@ -188,8 +188,10 @@ var BaseControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRule
|
|
|
188
188
|
}
|
|
189
189
|
return BaseControlPropertyRuntimeRules;
|
|
190
190
|
}(PropertyRuntimeRules);
|
|
191
|
-
var BaseControlProperty =
|
|
192
|
-
|
|
191
|
+
var BaseControlProperty = /**
|
|
192
|
+
* 表单控件公共属性
|
|
193
|
+
* @public
|
|
194
|
+
*/ /*#__PURE__*/ function(Property1) {
|
|
193
195
|
"use strict";
|
|
194
196
|
_inherits(BaseControlProperty, Property1);
|
|
195
197
|
var _super = _createSuper(BaseControlProperty);
|
|
@@ -90,6 +90,7 @@ export * from './RegisterControls';
|
|
|
90
90
|
this.fieldCode = (ref1 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref1 !== void 0 ? ref1 : '';
|
|
91
91
|
var ref2;
|
|
92
92
|
this.fieldType = (ref2 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && ref2 !== void 0 ? ref2 : '';
|
|
93
|
+
this.aliasCode = props === null || props === void 0 ? void 0 : props.aliasCode;
|
|
93
94
|
};
|
|
94
95
|
export var AutoWidth = function AutoWidth(props) {
|
|
95
96
|
"use strict";
|
|
@@ -239,10 +240,16 @@ export var RightVariable = function RightVariable(props) {
|
|
|
239
240
|
var ref20;
|
|
240
241
|
this.displayBos = (ref20 = props === null || props === void 0 ? void 0 : props.displayBos) !== null && ref20 !== void 0 ? ref20 : [];
|
|
241
242
|
};
|
|
242
|
-
|
|
243
|
+
/**
|
|
244
|
+
* 连接符条件
|
|
245
|
+
* @public
|
|
246
|
+
*/ export var FieldFilterConditions = function FieldFilterConditions(props) {
|
|
243
247
|
"use strict";
|
|
244
248
|
_classCallCheck(this, FieldFilterConditions);
|
|
245
|
-
|
|
249
|
+
/**
|
|
250
|
+
* 类型:连接符条件
|
|
251
|
+
* @defaultValue 'conditions'
|
|
252
|
+
*/ this.type = 'conditions';
|
|
246
253
|
var ref25;
|
|
247
254
|
this.id = (ref25 = props === null || props === void 0 ? void 0 : props.id) !== null && ref25 !== void 0 ? ref25 : genNonDuplicateId();
|
|
248
255
|
var ref21;
|
|
@@ -267,10 +274,16 @@ export var FieldFilterConditions = function FieldFilterConditions(props) {
|
|
|
267
274
|
});
|
|
268
275
|
}
|
|
269
276
|
};
|
|
270
|
-
|
|
277
|
+
/**
|
|
278
|
+
* 字段过滤条件
|
|
279
|
+
* @public
|
|
280
|
+
*/ export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
271
281
|
"use strict";
|
|
272
282
|
_classCallCheck(this, FieldFilterCondition);
|
|
273
|
-
|
|
283
|
+
/**
|
|
284
|
+
* 类型
|
|
285
|
+
* @defaultValue 'condition'
|
|
286
|
+
*/ this.type = 'condition';
|
|
274
287
|
var ref;
|
|
275
288
|
this.id = (ref = props === null || props === void 0 ? void 0 : props.id) !== null && ref !== void 0 ? ref : genNonDuplicateId();
|
|
276
289
|
var ref26;
|
|
@@ -284,6 +297,15 @@ export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
|
284
297
|
this.leftVariableBo = new LeftVariable(props === null || props === void 0 ? void 0 : props.leftVariableBo);
|
|
285
298
|
this.rightVariableBo = new RightVariable(props === null || props === void 0 ? void 0 : props.rightVariableBo);
|
|
286
299
|
};
|
|
300
|
+
export var JoinRelation = function JoinRelation(props) {
|
|
301
|
+
"use strict";
|
|
302
|
+
_classCallCheck(this, JoinRelation);
|
|
303
|
+
var ref;
|
|
304
|
+
this.aliasCode = (ref = props === null || props === void 0 ? void 0 : props.aliasCode) !== null && ref !== void 0 ? ref : '';
|
|
305
|
+
this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
306
|
+
var ref30;
|
|
307
|
+
this.relationFields = (ref30 = props === null || props === void 0 ? void 0 : props.relationFields) !== null && ref30 !== void 0 ? ref30 : [];
|
|
308
|
+
};
|
|
287
309
|
/**
|
|
288
310
|
* 数据填充项
|
|
289
311
|
* @public
|
|
@@ -292,23 +314,29 @@ export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
|
292
314
|
_classCallCheck(this, MultistageFillingItem);
|
|
293
315
|
var ref;
|
|
294
316
|
this.controlId = (ref = props === null || props === void 0 ? void 0 : props.controlId) !== null && ref !== void 0 ? ref : '';
|
|
295
|
-
var ref30;
|
|
296
|
-
this.fieldCode = (ref30 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref30 !== void 0 ? ref30 : '';
|
|
297
317
|
var ref31;
|
|
298
|
-
this.
|
|
318
|
+
this.fieldCode = (ref31 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref31 !== void 0 ? ref31 : '';
|
|
299
319
|
var ref32;
|
|
300
|
-
this.
|
|
320
|
+
this.fieldType = (ref32 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && ref32 !== void 0 ? ref32 : '';
|
|
321
|
+
var ref33;
|
|
322
|
+
this.propName = (ref33 = props === null || props === void 0 ? void 0 : props.propName) !== null && ref33 !== void 0 ? ref33 : '';
|
|
301
323
|
};
|
|
302
|
-
|
|
324
|
+
/**
|
|
325
|
+
* 显示项
|
|
326
|
+
* @public
|
|
327
|
+
*/ export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
303
328
|
"use strict";
|
|
304
329
|
_classCallCheck(this, DisplayBoListItem);
|
|
305
330
|
var ref;
|
|
306
331
|
this.type = (ref = props === null || props === void 0 ? void 0 : props.type) !== null && ref !== void 0 ? ref : 'FIELD';
|
|
307
|
-
var
|
|
308
|
-
this.value = (
|
|
332
|
+
var ref34;
|
|
333
|
+
this.value = (ref34 = props === null || props === void 0 ? void 0 : props.value) !== null && ref34 !== void 0 ? ref34 : '';
|
|
309
334
|
this.fieldType = props === null || props === void 0 ? void 0 : props.fieldType;
|
|
310
335
|
};
|
|
311
|
-
|
|
336
|
+
/**
|
|
337
|
+
* 数据源排序项
|
|
338
|
+
* @public
|
|
339
|
+
*/ export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
312
340
|
"use strict";
|
|
313
341
|
_classCallCheck(this, DataSourceOrderItem);
|
|
314
342
|
var _columnName;
|
|
@@ -329,7 +357,7 @@ export var DataSourceDataSetValue = function DataSourceDataSetValue(props) {
|
|
|
329
357
|
export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
330
358
|
"use strict";
|
|
331
359
|
_classCallCheck(this, DataSourceParamItem);
|
|
332
|
-
var ref,
|
|
360
|
+
var ref, ref35;
|
|
333
361
|
var _id;
|
|
334
362
|
//字段ID,不可以当作随机数生成唯一编号
|
|
335
363
|
this.id = (_id = props.id) !== null && _id !== void 0 ? _id : '';
|
|
@@ -337,39 +365,39 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
337
365
|
this.limit = (_limit = props.limit) !== null && _limit !== void 0 ? _limit : 20;
|
|
338
366
|
var _formKey;
|
|
339
367
|
this.formKey = (_formKey = props.formKey) !== null && _formKey !== void 0 ? _formKey : '';
|
|
340
|
-
var ref35;
|
|
341
|
-
this.orders = (ref35 = (ref = props.orders) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
342
|
-
return new DataSourceOrderItem(item);
|
|
343
|
-
})) !== null && ref35 !== void 0 ? ref35 : [];
|
|
344
368
|
var ref36;
|
|
345
|
-
this.
|
|
346
|
-
return new
|
|
369
|
+
this.orders = (ref36 = (ref = props.orders) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
370
|
+
return new DataSourceOrderItem(item);
|
|
347
371
|
})) !== null && ref36 !== void 0 ? ref36 : [];
|
|
372
|
+
var ref37;
|
|
373
|
+
this.dataSet = (ref37 = (ref35 = props.dataSet) === null || ref35 === void 0 ? void 0 : ref35.map(function(item) {
|
|
374
|
+
return new DataSourceDataSetValue(item);
|
|
375
|
+
})) !== null && ref37 !== void 0 ? ref37 : [];
|
|
348
376
|
};
|
|
349
377
|
/**
|
|
350
378
|
* 给filters和orders赋值
|
|
351
379
|
* */ function callFiltersAndOrders(props) {
|
|
352
|
-
var ref,
|
|
353
|
-
var
|
|
354
|
-
this.filters = (
|
|
380
|
+
var ref, ref38;
|
|
381
|
+
var ref39;
|
|
382
|
+
this.filters = (ref39 = props === null || props === void 0 ? void 0 : (ref = props.filters) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
355
383
|
if (item.children !== undefined) {
|
|
356
384
|
return new FieldFilterConditions(item);
|
|
357
385
|
}
|
|
358
386
|
return new FieldFilterCondition(item);
|
|
359
|
-
})) !== null &&
|
|
360
|
-
var
|
|
361
|
-
this.viewFilters = (
|
|
387
|
+
})) !== null && ref39 !== void 0 ? ref39 : [];
|
|
388
|
+
var ref40;
|
|
389
|
+
this.viewFilters = (ref40 = props === null || props === void 0 ? void 0 : (ref38 = props.viewFilters) === null || ref38 === void 0 ? void 0 : ref38.map(function(item) {
|
|
362
390
|
if (item.children !== undefined) {
|
|
363
391
|
return new FieldFilterConditions(item);
|
|
364
392
|
}
|
|
365
393
|
return new FieldFilterCondition(item);
|
|
366
|
-
})) !== null &&
|
|
394
|
+
})) !== null && ref40 !== void 0 ? ref40 : [];
|
|
367
395
|
if (_instanceof(this, DataSourceBind) || _instanceof(this, FillPayloadBind)) {
|
|
368
|
-
var
|
|
369
|
-
var
|
|
370
|
-
this.orders = (
|
|
396
|
+
var ref41, ref42;
|
|
397
|
+
var ref43;
|
|
398
|
+
this.orders = (ref43 = (ref41 = props) === null || ref41 === void 0 ? void 0 : (ref42 = ref41.orders) === null || ref42 === void 0 ? void 0 : ref42.map(function(item) {
|
|
371
399
|
return new DataSourceOrderItem(item);
|
|
372
|
-
})) !== null &&
|
|
400
|
+
})) !== null && ref43 !== void 0 ? ref43 : [];
|
|
373
401
|
}
|
|
374
402
|
}
|
|
375
403
|
/**
|
|
@@ -378,15 +406,15 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
378
406
|
*/ export var DataSourceBind = function DataSourceBind(props) {
|
|
379
407
|
"use strict";
|
|
380
408
|
_classCallCheck(this, DataSourceBind);
|
|
381
|
-
var
|
|
382
|
-
this.dataCode = (
|
|
383
|
-
var ref43;
|
|
384
|
-
this.appId = (ref43 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref43 !== void 0 ? ref43 : '';
|
|
409
|
+
var ref50;
|
|
410
|
+
this.dataCode = (ref50 = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref50 !== void 0 ? ref50 : '';
|
|
385
411
|
var ref44;
|
|
386
|
-
this.
|
|
387
|
-
this.displayBoList = [];
|
|
412
|
+
this.appId = (ref44 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref44 !== void 0 ? ref44 : '';
|
|
388
413
|
var ref45;
|
|
389
|
-
this.
|
|
414
|
+
this.valueFieldCode = (ref45 = props === null || props === void 0 ? void 0 : props.valueFieldCode) !== null && ref45 !== void 0 ? ref45 : '';
|
|
415
|
+
this.displayBoList = [];
|
|
416
|
+
var ref46;
|
|
417
|
+
this.isOpenViewFilters = (ref46 = props === null || props === void 0 ? void 0 : props.isOpenViewFilters) !== null && ref46 !== void 0 ? ref46 : 0;
|
|
390
418
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.displayBoList)) {
|
|
391
419
|
var _this = this;
|
|
392
420
|
props === null || props === void 0 ? void 0 : props.displayBoList.map(function(item) {
|
|
@@ -394,10 +422,12 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
394
422
|
(ref = _this.displayBoList) === null || ref === void 0 ? void 0 : ref.push(new DisplayBoListItem(item));
|
|
395
423
|
});
|
|
396
424
|
}
|
|
397
|
-
var ref46;
|
|
398
|
-
this.showOrder = (ref46 = props === null || props === void 0 ? void 0 : props.showOrder) !== null && ref46 !== void 0 ? ref46 : true;
|
|
399
425
|
var ref47;
|
|
400
|
-
this.
|
|
426
|
+
this.keywordMapping = (ref47 = props === null || props === void 0 ? void 0 : props.keywordMapping) !== null && ref47 !== void 0 ? ref47 : '';
|
|
427
|
+
var ref48;
|
|
428
|
+
this.showOrder = (ref48 = props === null || props === void 0 ? void 0 : props.showOrder) !== null && ref48 !== void 0 ? ref48 : true;
|
|
429
|
+
var ref49;
|
|
430
|
+
this.svcCode = (ref49 = props === null || props === void 0 ? void 0 : props.svcCode) !== null && ref49 !== void 0 ? ref49 : '';
|
|
401
431
|
callFiltersAndOrders.call(this, props);
|
|
402
432
|
};
|
|
403
433
|
export var SelectedContentConfig = function SelectedContentConfig(props) {
|
|
@@ -405,45 +435,45 @@ export var SelectedContentConfig = function SelectedContentConfig(props) {
|
|
|
405
435
|
_classCallCheck(this, SelectedContentConfig);
|
|
406
436
|
var ref;
|
|
407
437
|
this.dataCode = (ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref !== void 0 ? ref : '';
|
|
408
|
-
var
|
|
409
|
-
this.displayBoList = (
|
|
438
|
+
var ref51;
|
|
439
|
+
this.displayBoList = (ref51 = props === null || props === void 0 ? void 0 : props.displayBoList) !== null && ref51 !== void 0 ? ref51 : [];
|
|
410
440
|
};
|
|
411
441
|
export var LinkOperationOption = function LinkOperationOption(props) {
|
|
412
442
|
"use strict";
|
|
413
443
|
_classCallCheck(this, LinkOperationOption);
|
|
414
444
|
var ref;
|
|
415
445
|
this.code = (ref = props === null || props === void 0 ? void 0 : props.code) !== null && ref !== void 0 ? ref : 'view';
|
|
416
|
-
var ref50;
|
|
417
|
-
this.color = (ref50 = props === null || props === void 0 ? void 0 : props.color) !== null && ref50 !== void 0 ? ref50 : 'primary';
|
|
418
|
-
var ref51;
|
|
419
|
-
this.command = (ref51 = props === null || props === void 0 ? void 0 : props.command) !== null && ref51 !== void 0 ? ref51 : 'view';
|
|
420
446
|
var ref52;
|
|
421
|
-
this.
|
|
447
|
+
this.color = (ref52 = props === null || props === void 0 ? void 0 : props.color) !== null && ref52 !== void 0 ? ref52 : 'primary';
|
|
422
448
|
var ref53;
|
|
423
|
-
this.
|
|
449
|
+
this.command = (ref53 = props === null || props === void 0 ? void 0 : props.command) !== null && ref53 !== void 0 ? ref53 : 'view';
|
|
424
450
|
var ref54;
|
|
425
|
-
this.
|
|
451
|
+
this.confirmMessage = (ref54 = props === null || props === void 0 ? void 0 : props.confirmMessage) !== null && ref54 !== void 0 ? ref54 : undefined;
|
|
426
452
|
var ref55;
|
|
427
|
-
this.
|
|
453
|
+
this.defaultState = (ref55 = props === null || props === void 0 ? void 0 : props.defaultState) !== null && ref55 !== void 0 ? ref55 : 'default';
|
|
428
454
|
var ref56;
|
|
429
|
-
this.
|
|
455
|
+
this.formKey = (ref56 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref56 !== void 0 ? ref56 : undefined;
|
|
430
456
|
var ref57;
|
|
431
|
-
this.
|
|
457
|
+
this.icon = (ref57 = props === null || props === void 0 ? void 0 : props.icon) !== null && ref57 !== void 0 ? ref57 : 'iconliulan1';
|
|
432
458
|
var ref58;
|
|
433
|
-
this.
|
|
459
|
+
this.needConfirm = (ref58 = props === null || props === void 0 ? void 0 : props.needConfirm) !== null && ref58 !== void 0 ? ref58 : false;
|
|
460
|
+
var ref59;
|
|
461
|
+
this.openType = (ref59 = props === null || props === void 0 ? void 0 : props.openType) !== null && ref59 !== void 0 ? ref59 : 'modal';
|
|
462
|
+
var ref60;
|
|
463
|
+
this.priorityProcess = (ref60 = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && ref60 !== void 0 ? ref60 : true;
|
|
434
464
|
};
|
|
435
465
|
export var CustomAttributeItem = function CustomAttributeItem(props) {
|
|
436
466
|
"use strict";
|
|
437
467
|
_classCallCheck(this, CustomAttributeItem);
|
|
438
468
|
var ref;
|
|
439
|
-
var ref59;
|
|
440
|
-
this.name = (ref59 = props === null || props === void 0 ? void 0 : props.name) !== null && ref59 !== void 0 ? ref59 : '';
|
|
441
|
-
var ref60;
|
|
442
|
-
this.key = (ref60 = props === null || props === void 0 ? void 0 : props.key) !== null && ref60 !== void 0 ? ref60 : '';
|
|
443
469
|
var ref61;
|
|
444
|
-
this.
|
|
470
|
+
this.name = (ref61 = props === null || props === void 0 ? void 0 : props.name) !== null && ref61 !== void 0 ? ref61 : '';
|
|
471
|
+
var ref62;
|
|
472
|
+
this.key = (ref62 = props === null || props === void 0 ? void 0 : props.key) !== null && ref62 !== void 0 ? ref62 : '';
|
|
473
|
+
var ref63;
|
|
474
|
+
this.value = (ref63 = props === null || props === void 0 ? void 0 : (ref = props.value) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
445
475
|
return new DisplayBoListItem(item);
|
|
446
|
-
})) !== null &&
|
|
476
|
+
})) !== null && ref63 !== void 0 ? ref63 : [];
|
|
447
477
|
};
|
|
448
478
|
export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
449
479
|
"use strict";
|
|
@@ -454,10 +484,10 @@ export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
454
484
|
var _this;
|
|
455
485
|
var ref;
|
|
456
486
|
_this = _super.call(this, props);
|
|
457
|
-
var
|
|
458
|
-
_this.attributes = (
|
|
487
|
+
var ref64;
|
|
488
|
+
_this.attributes = (ref64 = props === null || props === void 0 ? void 0 : (ref = props.attributes) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
459
489
|
return new CustomAttributeItem(item);
|
|
460
|
-
})) !== null &&
|
|
490
|
+
})) !== null && ref64 !== void 0 ? ref64 : [];
|
|
461
491
|
return _this;
|
|
462
492
|
}
|
|
463
493
|
return SuperDataSourceBind;
|
|
@@ -471,12 +501,12 @@ export var OrganizationDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
471
501
|
var _this;
|
|
472
502
|
var ref;
|
|
473
503
|
_this = _super.call(this, props);
|
|
474
|
-
var
|
|
475
|
-
_this.attributes = (
|
|
504
|
+
var ref65;
|
|
505
|
+
_this.attributes = (ref65 = props === null || props === void 0 ? void 0 : (ref = props.attributes) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
476
506
|
return new CustomAttributeItem(item);
|
|
477
|
-
})) !== null &&
|
|
478
|
-
var
|
|
479
|
-
_this.formCode = (
|
|
507
|
+
})) !== null && ref65 !== void 0 ? ref65 : [];
|
|
508
|
+
var ref66;
|
|
509
|
+
_this.formCode = (ref66 = props === null || props === void 0 ? void 0 : props.formCode) !== null && ref66 !== void 0 ? ref66 : '';
|
|
480
510
|
return _this;
|
|
481
511
|
}
|
|
482
512
|
return OrganizationDataSourceBind;
|
|
@@ -500,14 +530,14 @@ var FillBind = function FillBind(props) {
|
|
|
500
530
|
"use strict";
|
|
501
531
|
_classCallCheck(this, FillBind);
|
|
502
532
|
var ref;
|
|
503
|
-
var ref65;
|
|
504
|
-
this.dataCode = (ref65 = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref65 !== void 0 ? ref65 : '';
|
|
505
|
-
var ref66;
|
|
506
|
-
this.appId = (ref66 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref66 !== void 0 ? ref66 : '';
|
|
507
533
|
var ref67;
|
|
508
|
-
this.
|
|
534
|
+
this.dataCode = (ref67 = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref67 !== void 0 ? ref67 : '';
|
|
535
|
+
var ref68;
|
|
536
|
+
this.appId = (ref68 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref68 !== void 0 ? ref68 : '';
|
|
537
|
+
var ref69;
|
|
538
|
+
this.fillList = (ref69 = props === null || props === void 0 ? void 0 : (ref = props.fillList) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
509
539
|
return new MultistageFillingItem(item);
|
|
510
|
-
})) !== null &&
|
|
540
|
+
})) !== null && ref69 !== void 0 ? ref69 : [];
|
|
511
541
|
};
|
|
512
542
|
/**
|
|
513
543
|
* FillPayloadBind 填充配置
|
|
@@ -539,8 +569,8 @@ var FillBind = function FillBind(props) {
|
|
|
539
569
|
_this = _super.call(this, props);
|
|
540
570
|
var ref;
|
|
541
571
|
_this.mode = (ref = props === null || props === void 0 ? void 0 : props.mode) !== null && ref !== void 0 ? ref : 'current';
|
|
542
|
-
var
|
|
543
|
-
_this.multiple = (
|
|
572
|
+
var ref70;
|
|
573
|
+
_this.multiple = (ref70 = props === null || props === void 0 ? void 0 : props.multiple) !== null && ref70 !== void 0 ? ref70 : false;
|
|
544
574
|
return _this;
|
|
545
575
|
}
|
|
546
576
|
return FillBackBind;
|
|
@@ -550,20 +580,23 @@ export var Language = function Language(props) {
|
|
|
550
580
|
_classCallCheck(this, Language);
|
|
551
581
|
var ref;
|
|
552
582
|
this.zh = (ref = props === null || props === void 0 ? void 0 : props.zh) !== null && ref !== void 0 ? ref : '';
|
|
553
|
-
var
|
|
554
|
-
this.en = (
|
|
555
|
-
var
|
|
556
|
-
this.ja = (
|
|
583
|
+
var ref71;
|
|
584
|
+
this.en = (ref71 = props === null || props === void 0 ? void 0 : props.en) !== null && ref71 !== void 0 ? ref71 : '';
|
|
585
|
+
var ref72;
|
|
586
|
+
this.ja = (ref72 = props === null || props === void 0 ? void 0 : props.ja) !== null && ref72 !== void 0 ? ref72 : '';
|
|
557
587
|
};
|
|
558
|
-
|
|
588
|
+
/**
|
|
589
|
+
* 正则校验
|
|
590
|
+
* @public
|
|
591
|
+
*/ export var RegularRules = function RegularRules(props) {
|
|
559
592
|
"use strict";
|
|
560
593
|
_classCallCheck(this, RegularRules);
|
|
561
594
|
var ref;
|
|
562
595
|
this.stencilName = (ref = props === null || props === void 0 ? void 0 : props.stencilName) !== null && ref !== void 0 ? ref : '';
|
|
563
|
-
var
|
|
564
|
-
this.expression = (
|
|
565
|
-
var
|
|
566
|
-
this.errMessage = (
|
|
596
|
+
var ref73;
|
|
597
|
+
this.expression = (ref73 = props === null || props === void 0 ? void 0 : props.expression) !== null && ref73 !== void 0 ? ref73 : '';
|
|
598
|
+
var ref74;
|
|
599
|
+
this.errMessage = (ref74 = props === null || props === void 0 ? void 0 : props.errMessage) !== null && ref74 !== void 0 ? ref74 : '';
|
|
567
600
|
};
|
|
568
601
|
/**
|
|
569
602
|
* 选项设置-自定义选项
|
|
@@ -573,10 +606,10 @@ export var RegularRules = function RegularRules(props) {
|
|
|
573
606
|
_classCallCheck(this, OptionSetting);
|
|
574
607
|
var ref;
|
|
575
608
|
this.id = (ref = props === null || props === void 0 ? void 0 : props.id) !== null && ref !== void 0 ? ref : genNonDuplicateId(8);
|
|
576
|
-
var
|
|
577
|
-
this.label = (
|
|
578
|
-
var
|
|
579
|
-
this.value = (
|
|
609
|
+
var ref75;
|
|
610
|
+
this.label = (ref75 = props === null || props === void 0 ? void 0 : props.label) !== null && ref75 !== void 0 ? ref75 : '';
|
|
611
|
+
var ref76;
|
|
612
|
+
this.value = (ref76 = props === null || props === void 0 ? void 0 : props.value) !== null && ref76 !== void 0 ? ref76 : this.label;
|
|
580
613
|
};
|
|
581
614
|
export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
582
615
|
"use strict";
|
|
@@ -588,8 +621,8 @@ export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
588
621
|
_this = _super.call(this, props);
|
|
589
622
|
var ref;
|
|
590
623
|
_this.image = (ref = props === null || props === void 0 ? void 0 : props.image) !== null && ref !== void 0 ? ref : '';
|
|
591
|
-
var
|
|
592
|
-
_this.type = (
|
|
624
|
+
var ref77;
|
|
625
|
+
_this.type = (ref77 = props === null || props === void 0 ? void 0 : props.type) !== null && ref77 !== void 0 ? ref77 : 'src';
|
|
593
626
|
return _this;
|
|
594
627
|
}
|
|
595
628
|
return ImageOptionSetting;
|
|
@@ -606,11 +639,17 @@ export function initImageOptions(options) {
|
|
|
606
639
|
return new ImageOptionSetting(item);
|
|
607
640
|
})) !== null && ref !== void 0 ? ref : [];
|
|
608
641
|
}
|
|
609
|
-
|
|
642
|
+
/**
|
|
643
|
+
* 对象类型数据绑定配置
|
|
644
|
+
* @public
|
|
645
|
+
*/ export var ObjectDataBind = function ObjectDataBind() {
|
|
610
646
|
"use strict";
|
|
611
647
|
_classCallCheck(this, ObjectDataBind);
|
|
612
648
|
};
|
|
613
|
-
|
|
649
|
+
/**
|
|
650
|
+
* 金额控件数据绑定配置
|
|
651
|
+
* @public
|
|
652
|
+
*/ export var AmountDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
614
653
|
"use strict";
|
|
615
654
|
_inherits(AmountDataBind, ObjectDataBind);
|
|
616
655
|
var _super = _createSuper(AmountDataBind);
|
|
@@ -624,15 +663,21 @@ export var AmountDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
624
663
|
}
|
|
625
664
|
return AmountDataBind;
|
|
626
665
|
}(ObjectDataBind);
|
|
627
|
-
|
|
666
|
+
/**
|
|
667
|
+
* 金额控件值
|
|
668
|
+
* @public
|
|
669
|
+
*/ export var AmountValue = function AmountValue(props) {
|
|
628
670
|
"use strict";
|
|
629
671
|
_classCallCheck(this, AmountValue);
|
|
630
672
|
var ref;
|
|
631
673
|
this.amount = (ref = props === null || props === void 0 ? void 0 : props.amount) !== null && ref !== void 0 ? ref : '';
|
|
632
|
-
var
|
|
633
|
-
this.currency = (
|
|
674
|
+
var ref78;
|
|
675
|
+
this.currency = (ref78 = props === null || props === void 0 ? void 0 : props.currency) !== null && ref78 !== void 0 ? ref78 : AMOUNT_TYPE.CNY;
|
|
634
676
|
};
|
|
635
|
-
|
|
677
|
+
/**
|
|
678
|
+
* 日期区间数据绑定项
|
|
679
|
+
* @public
|
|
680
|
+
*/ export var RangeDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
636
681
|
"use strict";
|
|
637
682
|
_inherits(RangeDataBind, ObjectDataBind);
|
|
638
683
|
var _super = _createSuper(RangeDataBind);
|
|
@@ -646,31 +691,40 @@ export var RangeDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
646
691
|
}
|
|
647
692
|
return RangeDataBind;
|
|
648
693
|
}(ObjectDataBind);
|
|
649
|
-
|
|
694
|
+
/**
|
|
695
|
+
* 日期区间值
|
|
696
|
+
* @public
|
|
697
|
+
*/ export var RangeDateValue = function RangeDateValue(props) {
|
|
650
698
|
"use strict";
|
|
651
699
|
_classCallCheck(this, RangeDateValue);
|
|
652
700
|
var ref;
|
|
653
701
|
this.min = (ref = props === null || props === void 0 ? void 0 : props.min) !== null && ref !== void 0 ? ref : '';
|
|
654
|
-
var
|
|
655
|
-
this.max = (
|
|
702
|
+
var ref79;
|
|
703
|
+
this.max = (ref79 = props === null || props === void 0 ? void 0 : props.max) !== null && ref79 !== void 0 ? ref79 : '';
|
|
656
704
|
};
|
|
657
|
-
|
|
705
|
+
/**
|
|
706
|
+
* 地址值
|
|
707
|
+
* @public
|
|
708
|
+
*/ export var AddressValue = function AddressValue(props) {
|
|
658
709
|
"use strict";
|
|
659
710
|
_classCallCheck(this, AddressValue);
|
|
660
711
|
var ref;
|
|
661
712
|
this.city = (ref = props === null || props === void 0 ? void 0 : props.city) !== null && ref !== void 0 ? ref : '';
|
|
662
|
-
var ref78;
|
|
663
|
-
this.cityDisplay = (ref78 = props === null || props === void 0 ? void 0 : props.cityDisplay) !== null && ref78 !== void 0 ? ref78 : '';
|
|
664
|
-
var ref79;
|
|
665
|
-
this.district = (ref79 = props === null || props === void 0 ? void 0 : props.district) !== null && ref79 !== void 0 ? ref79 : '';
|
|
666
713
|
var ref80;
|
|
667
|
-
this.
|
|
714
|
+
this.cityDisplay = (ref80 = props === null || props === void 0 ? void 0 : props.cityDisplay) !== null && ref80 !== void 0 ? ref80 : '';
|
|
668
715
|
var ref81;
|
|
669
|
-
this.
|
|
716
|
+
this.district = (ref81 = props === null || props === void 0 ? void 0 : props.district) !== null && ref81 !== void 0 ? ref81 : '';
|
|
670
717
|
var ref82;
|
|
671
|
-
this.
|
|
718
|
+
this.districtDisplay = (ref82 = props === null || props === void 0 ? void 0 : props.districtDisplay) !== null && ref82 !== void 0 ? ref82 : '';
|
|
719
|
+
var ref83;
|
|
720
|
+
this.province = (ref83 = props === null || props === void 0 ? void 0 : props.province) !== null && ref83 !== void 0 ? ref83 : '';
|
|
721
|
+
var ref84;
|
|
722
|
+
this.provinceDisplay = (ref84 = props === null || props === void 0 ? void 0 : props.provinceDisplay) !== null && ref84 !== void 0 ? ref84 : '';
|
|
672
723
|
};
|
|
673
|
-
|
|
724
|
+
/**
|
|
725
|
+
* 计算公式数据绑定项
|
|
726
|
+
* @public
|
|
727
|
+
*/ export var CalcDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
674
728
|
"use strict";
|
|
675
729
|
_inherits(CalcDataBind, ObjectDataBind);
|
|
676
730
|
var _super = _createSuper(CalcDataBind);
|
|
@@ -684,13 +738,16 @@ export var CalcDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
684
738
|
}
|
|
685
739
|
return CalcDataBind;
|
|
686
740
|
}(ObjectDataBind);
|
|
687
|
-
|
|
741
|
+
/**
|
|
742
|
+
* 计算公式值
|
|
743
|
+
* @public
|
|
744
|
+
*/ export var CalcValue = function CalcValue(props) {
|
|
688
745
|
"use strict";
|
|
689
746
|
_classCallCheck(this, CalcValue);
|
|
690
747
|
var ref;
|
|
691
748
|
this.result = (ref = props === null || props === void 0 ? void 0 : props.result) !== null && ref !== void 0 ? ref : 0;
|
|
692
|
-
var
|
|
693
|
-
this.unit = (
|
|
749
|
+
var ref85;
|
|
750
|
+
this.unit = (ref85 = props === null || props === void 0 ? void 0 : props.unit) !== null && ref85 !== void 0 ? ref85 : '';
|
|
694
751
|
};
|
|
695
752
|
export var AMOUNT_TYPE;
|
|
696
753
|
(function(AMOUNT_TYPE) {
|
|
@@ -769,29 +826,29 @@ export var PAGE_STATUS;
|
|
|
769
826
|
_classCallCheck(this, OperationItem);
|
|
770
827
|
var ref;
|
|
771
828
|
this.isShow = (ref = props === null || props === void 0 ? void 0 : props.isShow) !== null && ref !== void 0 ? ref : true;
|
|
772
|
-
var ref84;
|
|
773
|
-
this.content = (ref84 = props === null || props === void 0 ? void 0 : props.content) !== null && ref84 !== void 0 ? ref84 : '';
|
|
774
|
-
var ref85;
|
|
775
|
-
this.formKey = (ref85 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref85 !== void 0 ? ref85 : '';
|
|
776
829
|
var ref86;
|
|
777
|
-
this.
|
|
830
|
+
this.content = (ref86 = props === null || props === void 0 ? void 0 : props.content) !== null && ref86 !== void 0 ? ref86 : '';
|
|
778
831
|
var ref87;
|
|
779
|
-
this.
|
|
832
|
+
this.formKey = (ref87 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref87 !== void 0 ? ref87 : '';
|
|
780
833
|
var ref88;
|
|
781
|
-
this.
|
|
834
|
+
this.openType = (ref88 = props === null || props === void 0 ? void 0 : props.openType) !== null && ref88 !== void 0 ? ref88 : 'modal';
|
|
835
|
+
var ref89;
|
|
836
|
+
this.type = (ref89 = props === null || props === void 0 ? void 0 : props.type) !== null && ref89 !== void 0 ? ref89 : '';
|
|
837
|
+
var ref90;
|
|
838
|
+
this.priorityProcess = (ref90 = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && ref90 !== void 0 ? ref90 : false;
|
|
782
839
|
};
|
|
783
840
|
export var ViewOperationItem = function ViewOperationItem(props) {
|
|
784
841
|
"use strict";
|
|
785
842
|
_classCallCheck(this, ViewOperationItem);
|
|
786
843
|
var ref;
|
|
787
|
-
var ref89;
|
|
788
|
-
this.id = (ref89 = props === null || props === void 0 ? void 0 : props.id) !== null && ref89 !== void 0 ? ref89 : genNonDuplicateId(8);
|
|
789
|
-
var ref90;
|
|
790
|
-
this.title = (ref90 = props === null || props === void 0 ? void 0 : props.title) !== null && ref90 !== void 0 ? ref90 : '';
|
|
791
844
|
var ref91;
|
|
792
|
-
this.
|
|
845
|
+
this.id = (ref91 = props === null || props === void 0 ? void 0 : props.id) !== null && ref91 !== void 0 ? ref91 : genNonDuplicateId(8);
|
|
846
|
+
var ref92;
|
|
847
|
+
this.title = (ref92 = props === null || props === void 0 ? void 0 : props.title) !== null && ref92 !== void 0 ? ref92 : '';
|
|
848
|
+
var ref93;
|
|
849
|
+
this.headers = (ref93 = props === null || props === void 0 ? void 0 : (ref = props.headers) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
793
850
|
return new ListBindHeaderItem(item);
|
|
794
|
-
})) !== null &&
|
|
851
|
+
})) !== null && ref93 !== void 0 ? ref93 : [];
|
|
795
852
|
callFiltersAndOrders.call(this, props);
|
|
796
853
|
};
|
|
797
854
|
/**
|
|
@@ -809,18 +866,18 @@ export var BaseStyle = function BaseStyle(props) {
|
|
|
809
866
|
_classCallCheck(this, BaseStyle);
|
|
810
867
|
var ref;
|
|
811
868
|
this.width = (ref = props === null || props === void 0 ? void 0 : props.width) !== null && ref !== void 0 ? ref : '';
|
|
812
|
-
var ref92;
|
|
813
|
-
this.height = (ref92 = props === null || props === void 0 ? void 0 : props.height) !== null && ref92 !== void 0 ? ref92 : '';
|
|
814
|
-
var ref93;
|
|
815
|
-
this.widthConfig = (ref93 = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && ref93 !== void 0 ? ref93 : 'fill';
|
|
816
869
|
var ref94;
|
|
817
|
-
this.
|
|
870
|
+
this.height = (ref94 = props === null || props === void 0 ? void 0 : props.height) !== null && ref94 !== void 0 ? ref94 : '';
|
|
871
|
+
var ref95;
|
|
872
|
+
this.widthConfig = (ref95 = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && ref95 !== void 0 ? ref95 : 'fill';
|
|
873
|
+
var ref96;
|
|
874
|
+
this.heightConfig = (ref96 = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && ref96 !== void 0 ? ref96 : 'fill';
|
|
818
875
|
};
|
|
819
876
|
export var OptObject = function OptObject(props) {
|
|
820
877
|
"use strict";
|
|
821
878
|
_classCallCheck(this, OptObject);
|
|
822
879
|
var ref;
|
|
823
880
|
this.optCode = (ref = props === null || props === void 0 ? void 0 : props.optCode) !== null && ref !== void 0 ? ref : '';
|
|
824
|
-
var
|
|
825
|
-
this.optType = (
|
|
881
|
+
var ref97;
|
|
882
|
+
this.optType = (ref97 = props === null || props === void 0 ? void 0 : props.optType) !== null && ref97 !== void 0 ? ref97 : '';
|
|
826
883
|
};
|