@byteluck-fe/model-driven-core 4.36.0-lx2 → 6.1.0-1-beta.2
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/BaseControl/designer.js +9 -2
- package/dist/esm/common/BaseControl/property.js +5 -0
- package/dist/esm/common/ColumnControl/property.js +6 -6
- package/dist/esm/common/FormControl/property.js +15 -32
- package/dist/esm/common/ListControl/designer.js +8 -10
- package/dist/esm/common/Validator.js +6 -4
- package/dist/esm/common/initLinkOperationRules.js +2 -2
- package/dist/esm/common/initOptionAndDataSourceRules.js +31 -30
- package/dist/esm/framework/RegisterControls.js +13 -13
- package/dist/esm/framework/index.js +115 -23
- package/dist/index.umd.js +1 -1
- package/dist/types/common/BaseControl/designer.d.ts +8 -0
- package/dist/types/common/BaseControl/property.d.ts +6 -0
- package/dist/types/common/FormControl/property.d.ts +0 -18
- package/dist/types/framework/index.d.ts +65 -18
- package/dist/types/framework/isDataBind.d.ts +1 -1
- package/package.json +3 -3
|
@@ -118,6 +118,30 @@ export var AutoWidth = function AutoWidth(props) {
|
|
|
118
118
|
var _props_flex;
|
|
119
119
|
this.flex = (_props_flex = props === null || props === void 0 ? void 0 : props.flex) !== null && _props_flex !== void 0 ? _props_flex : 1;
|
|
120
120
|
};
|
|
121
|
+
export var RowHeight = function RowHeight(props) {
|
|
122
|
+
"use strict";
|
|
123
|
+
_class_call_check(this, RowHeight);
|
|
124
|
+
_define_property(this, "rowHeightType", void 0);
|
|
125
|
+
_define_property(this, "minRows", void 0);
|
|
126
|
+
_define_property(this, "maxRows", void 0);
|
|
127
|
+
_define_property(this, "fiexdRow", void 0);
|
|
128
|
+
var _props_rowHeightType;
|
|
129
|
+
this.rowHeightType = (_props_rowHeightType = props === null || props === void 0 ? void 0 : props.rowHeightType) !== null && _props_rowHeightType !== void 0 ? _props_rowHeightType : 'fixed';
|
|
130
|
+
var _props_minRows;
|
|
131
|
+
this.minRows = (_props_minRows = props === null || props === void 0 ? void 0 : props.minRows) !== null && _props_minRows !== void 0 ? _props_minRows : 4;
|
|
132
|
+
var _props_maxRows;
|
|
133
|
+
this.maxRows = (_props_maxRows = props === null || props === void 0 ? void 0 : props.maxRows) !== null && _props_maxRows !== void 0 ? _props_maxRows : 20;
|
|
134
|
+
var _props_fiexdRow;
|
|
135
|
+
this.fiexdRow = (_props_fiexdRow = props === null || props === void 0 ? void 0 : props.fiexdRow) !== null && _props_fiexdRow !== void 0 ? _props_fiexdRow : 4;
|
|
136
|
+
};
|
|
137
|
+
export var MetaRowHeight = function MetaRowHeight(props) {
|
|
138
|
+
"use strict";
|
|
139
|
+
_class_call_check(this, MetaRowHeight);
|
|
140
|
+
_define_property(this, "pc", void 0);
|
|
141
|
+
_define_property(this, "mobile", void 0);
|
|
142
|
+
this.pc = new RowHeight(props === null || props === void 0 ? void 0 : props.pc);
|
|
143
|
+
this.mobile = new RowHeight(props === null || props === void 0 ? void 0 : props.mobile);
|
|
144
|
+
};
|
|
121
145
|
export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
122
146
|
"use strict";
|
|
123
147
|
_inherits(MetaWidth, AutoWidth);
|
|
@@ -468,6 +492,20 @@ export var JoinRelation = function JoinRelation(props) {
|
|
|
468
492
|
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : '';
|
|
469
493
|
this.fieldType = props === null || props === void 0 ? void 0 : props.fieldType;
|
|
470
494
|
};
|
|
495
|
+
export var OptionDisplayConfigItem = function OptionDisplayConfigItem(props) {
|
|
496
|
+
"use strict";
|
|
497
|
+
_class_call_check(this, OptionDisplayConfigItem);
|
|
498
|
+
/**
|
|
499
|
+
* 标题
|
|
500
|
+
*/ _define_property(this, "title", void 0);
|
|
501
|
+
/**
|
|
502
|
+
* 字段数据类型
|
|
503
|
+
*/ _define_property(this, "displayBoList", void 0);
|
|
504
|
+
var _props_title;
|
|
505
|
+
this.title = (_props_title = props === null || props === void 0 ? void 0 : props.title) !== null && _props_title !== void 0 ? _props_title : '';
|
|
506
|
+
var _props_displayBoList;
|
|
507
|
+
this.displayBoList = (_props_displayBoList = props === null || props === void 0 ? void 0 : props.displayBoList) !== null && _props_displayBoList !== void 0 ? _props_displayBoList : [];
|
|
508
|
+
};
|
|
471
509
|
/**
|
|
472
510
|
* 数据源排序项
|
|
473
511
|
* @public
|
|
@@ -936,6 +974,23 @@ export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
936
974
|
}
|
|
937
975
|
return ImageOptionSetting;
|
|
938
976
|
}(OptionSetting);
|
|
977
|
+
export var AiOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
978
|
+
"use strict";
|
|
979
|
+
_inherits(AiOptionSetting, OptionSetting);
|
|
980
|
+
function AiOptionSetting(props) {
|
|
981
|
+
_class_call_check(this, AiOptionSetting);
|
|
982
|
+
var _this;
|
|
983
|
+
_this = _call_super(this, AiOptionSetting, [
|
|
984
|
+
props
|
|
985
|
+
]), _define_property(_this, "cueWord", void 0), _define_property(_this, "checked", void 0);
|
|
986
|
+
var _props_cueWord;
|
|
987
|
+
_this.cueWord = (_props_cueWord = props === null || props === void 0 ? void 0 : props.cueWord) !== null && _props_cueWord !== void 0 ? _props_cueWord : '';
|
|
988
|
+
var _props_checked;
|
|
989
|
+
_this.checked = (_props_checked = props === null || props === void 0 ? void 0 : props.checked) !== null && _props_checked !== void 0 ? _props_checked : false;
|
|
990
|
+
return _this;
|
|
991
|
+
}
|
|
992
|
+
return AiOptionSetting;
|
|
993
|
+
}(OptionSetting);
|
|
939
994
|
export function initOptions(options) {
|
|
940
995
|
var _options_map;
|
|
941
996
|
return (_options_map = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
@@ -948,6 +1003,12 @@ export function initImageOptions(options) {
|
|
|
948
1003
|
return new ImageOptionSetting(item);
|
|
949
1004
|
})) !== null && _options_map !== void 0 ? _options_map : [];
|
|
950
1005
|
}
|
|
1006
|
+
export function initAiOptions(options) {
|
|
1007
|
+
var _options_map;
|
|
1008
|
+
return (_options_map = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
1009
|
+
return new AiOptionSetting(item);
|
|
1010
|
+
})) !== null && _options_map !== void 0 ? _options_map : [];
|
|
1011
|
+
}
|
|
951
1012
|
/**
|
|
952
1013
|
* 对象类型数据绑定配置
|
|
953
1014
|
* @public
|
|
@@ -1186,12 +1247,11 @@ export var AMOUNT_TYPE = /*#__PURE__*/ function(AMOUNT_TYPE) {
|
|
|
1186
1247
|
COMMON_SETTING_TYPE["REVISIONS_MODE"] = "revisionsMode";
|
|
1187
1248
|
COMMON_SETTING_TYPE["ALLOW_COPY_OPTIONS"] = "allowCopyOptions";
|
|
1188
1249
|
COMMON_SETTING_TYPE["IS_PASTE"] = "isPaste";
|
|
1189
|
-
COMMON_SETTING_TYPE["
|
|
1190
|
-
COMMON_SETTING_TYPE["
|
|
1191
|
-
COMMON_SETTING_TYPE["
|
|
1192
|
-
COMMON_SETTING_TYPE["
|
|
1193
|
-
COMMON_SETTING_TYPE["
|
|
1194
|
-
COMMON_SETTING_TYPE["ACCESS_CONTROL"] = "accessControl";
|
|
1250
|
+
COMMON_SETTING_TYPE["SORTABLE"] = "sortable";
|
|
1251
|
+
COMMON_SETTING_TYPE["IS_SHOW_SIMPLE_SEARCH"] = "isShowSimpleSearch";
|
|
1252
|
+
COMMON_SETTING_TYPE["IS_SHOW_TOOL_BAE"] = "isShowToolbar";
|
|
1253
|
+
COMMON_SETTING_TYPE["MAIN_DEPT_FLAG"] = "mainDeptFlag";
|
|
1254
|
+
COMMON_SETTING_TYPE["IS_INTERNATIONAL"] = "isInternational";
|
|
1195
1255
|
return COMMON_SETTING_TYPE;
|
|
1196
1256
|
}({});
|
|
1197
1257
|
export var PAGE_STATUS = /*#__PURE__*/ function(PAGE_STATUS) {
|
|
@@ -1318,7 +1378,7 @@ export var OptObject = function OptObject(props) {
|
|
|
1318
1378
|
export var RowStyleRule = function RowStyleRule(props) {
|
|
1319
1379
|
"use strict";
|
|
1320
1380
|
_class_call_check(this, RowStyleRule);
|
|
1321
|
-
var _props_filters;
|
|
1381
|
+
var _props_filters, _props_settings;
|
|
1322
1382
|
/**
|
|
1323
1383
|
* 规则编号
|
|
1324
1384
|
* @defaultValue guid
|
|
@@ -1329,22 +1389,18 @@ export var RowStyleRule = function RowStyleRule(props) {
|
|
|
1329
1389
|
* @defaultValue ''
|
|
1330
1390
|
* @public
|
|
1331
1391
|
*/ _define_property(this, "name", void 0);
|
|
1332
|
-
|
|
1333
|
-
* 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
|
|
1334
|
-
* @defaultValue 'theme'
|
|
1335
|
-
* @public
|
|
1336
|
-
*/ _define_property(this, "color", void 0);
|
|
1392
|
+
_define_property(this, "settings", void 0);
|
|
1337
1393
|
/**
|
|
1338
1394
|
* 过滤条件
|
|
1339
1395
|
* @defaultValue []
|
|
1340
1396
|
* @public
|
|
1341
1397
|
*/ _define_property(this, "filters", void 0);
|
|
1398
|
+
// 过滤
|
|
1399
|
+
_define_property(this, "script", void 0);
|
|
1342
1400
|
var _props_id;
|
|
1343
1401
|
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
1344
1402
|
var _props_name;
|
|
1345
1403
|
this.name = (_props_name = props === null || props === void 0 ? void 0 : props.name) !== null && _props_name !== void 0 ? _props_name : '';
|
|
1346
|
-
var _props_color;
|
|
1347
|
-
this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : 'theme';
|
|
1348
1404
|
var _props_filters_map;
|
|
1349
1405
|
this.filters = (_props_filters_map = props === null || props === void 0 ? void 0 : (_props_filters = props.filters) === null || _props_filters === void 0 ? void 0 : _props_filters.map(function(item) {
|
|
1350
1406
|
if (item.children !== undefined) {
|
|
@@ -1352,17 +1408,53 @@ export var RowStyleRule = function RowStyleRule(props) {
|
|
|
1352
1408
|
}
|
|
1353
1409
|
return new FieldFilterCondition(item);
|
|
1354
1410
|
})) !== null && _props_filters_map !== void 0 ? _props_filters_map : [];
|
|
1411
|
+
var _props_settings_map;
|
|
1412
|
+
this.settings = (props === null || props === void 0 ? void 0 : props.settings) && Array.isArray(props === null || props === void 0 ? void 0 : props.settings) ? (_props_settings_map = props === null || props === void 0 ? void 0 : (_props_settings = props.settings) === null || _props_settings === void 0 ? void 0 : _props_settings.map(function(item) {
|
|
1413
|
+
return new RowStyleSettings(item);
|
|
1414
|
+
})) !== null && _props_settings_map !== void 0 ? _props_settings_map : [] : [];
|
|
1415
|
+
this.script = props === null || props === void 0 ? void 0 : props.script;
|
|
1355
1416
|
};
|
|
1356
|
-
export var
|
|
1417
|
+
export var RowStyleSettings = function RowStyleSettings(props) {
|
|
1357
1418
|
"use strict";
|
|
1358
|
-
_class_call_check(this,
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1419
|
+
_class_call_check(this, RowStyleSettings);
|
|
1420
|
+
/**
|
|
1421
|
+
* 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
|
|
1422
|
+
* @defaultValue 'theme'
|
|
1423
|
+
* @public
|
|
1424
|
+
*/ _define_property(this, "color", void 0);
|
|
1425
|
+
/**
|
|
1426
|
+
* 生效列字段
|
|
1427
|
+
*/ _define_property(this, "fieldCodes", void 0);
|
|
1428
|
+
/**
|
|
1429
|
+
* 样式类型,background单元格背景色,fontColor单元格字体色
|
|
1430
|
+
*/ _define_property(this, "type", void 0);
|
|
1431
|
+
/**
|
|
1432
|
+
* 作用范围,row整行,col整列
|
|
1433
|
+
*/ _define_property(this, "scope", void 0);
|
|
1434
|
+
var _props_type;
|
|
1435
|
+
this.type = (_props_type = props.type) !== null && _props_type !== void 0 ? _props_type : 'background';
|
|
1436
|
+
var _props_fieldCodes;
|
|
1437
|
+
this.fieldCodes = (_props_fieldCodes = props.fieldCodes) !== null && _props_fieldCodes !== void 0 ? _props_fieldCodes : [];
|
|
1366
1438
|
var _props_color;
|
|
1367
1439
|
this.color = (_props_color = props.color) !== null && _props_color !== void 0 ? _props_color : 'theme';
|
|
1440
|
+
var _props_scope;
|
|
1441
|
+
this.scope = (_props_scope = props.scope) !== null && _props_scope !== void 0 ? _props_scope : 'row';
|
|
1442
|
+
};
|
|
1443
|
+
export var RowStyle = function RowStyle(props) {
|
|
1444
|
+
"use strict";
|
|
1445
|
+
_class_call_check(this, RowStyle);
|
|
1446
|
+
var _props_rules;
|
|
1447
|
+
_define_property(this, "type", void 0);
|
|
1448
|
+
_define_property(this, "interval", void 0);
|
|
1449
|
+
_define_property(this, "rules", void 0);
|
|
1450
|
+
var _props_type;
|
|
1451
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'none';
|
|
1452
|
+
var _props_interval;
|
|
1453
|
+
this.interval = (_props_interval = props === null || props === void 0 ? void 0 : props.interval) !== null && _props_interval !== void 0 ? _props_interval : {
|
|
1454
|
+
color: ''
|
|
1455
|
+
};
|
|
1456
|
+
var _props_rules_map;
|
|
1457
|
+
this.rules = (props === null || props === void 0 ? void 0 : props.rules) && Array.isArray(props === null || props === void 0 ? void 0 : props.rules) ? (_props_rules_map = props === null || props === void 0 ? void 0 : (_props_rules = props.rules) === null || _props_rules === void 0 ? void 0 : _props_rules.map(function(item) {
|
|
1458
|
+
return new RowStyleRule(item);
|
|
1459
|
+
})) !== null && _props_rules_map !== void 0 ? _props_rules_map : [] : [];
|
|
1368
1460
|
};
|