@byteluck-fe/model-driven-core 4.36.0-lx2 → 6.1.0-1-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/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 +1 -0
- 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 +114 -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 +64 -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,10 @@ 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["FORBID_DOWNLOAD"] = "forbidDownload";
|
|
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";
|
|
1195
1254
|
return COMMON_SETTING_TYPE;
|
|
1196
1255
|
}({});
|
|
1197
1256
|
export var PAGE_STATUS = /*#__PURE__*/ function(PAGE_STATUS) {
|
|
@@ -1318,7 +1377,7 @@ export var OptObject = function OptObject(props) {
|
|
|
1318
1377
|
export var RowStyleRule = function RowStyleRule(props) {
|
|
1319
1378
|
"use strict";
|
|
1320
1379
|
_class_call_check(this, RowStyleRule);
|
|
1321
|
-
var _props_filters;
|
|
1380
|
+
var _props_filters, _props_settings;
|
|
1322
1381
|
/**
|
|
1323
1382
|
* 规则编号
|
|
1324
1383
|
* @defaultValue guid
|
|
@@ -1329,22 +1388,18 @@ export var RowStyleRule = function RowStyleRule(props) {
|
|
|
1329
1388
|
* @defaultValue ''
|
|
1330
1389
|
* @public
|
|
1331
1390
|
*/ _define_property(this, "name", void 0);
|
|
1332
|
-
|
|
1333
|
-
* 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
|
|
1334
|
-
* @defaultValue 'theme'
|
|
1335
|
-
* @public
|
|
1336
|
-
*/ _define_property(this, "color", void 0);
|
|
1391
|
+
_define_property(this, "settings", void 0);
|
|
1337
1392
|
/**
|
|
1338
1393
|
* 过滤条件
|
|
1339
1394
|
* @defaultValue []
|
|
1340
1395
|
* @public
|
|
1341
1396
|
*/ _define_property(this, "filters", void 0);
|
|
1397
|
+
// 过滤
|
|
1398
|
+
_define_property(this, "script", void 0);
|
|
1342
1399
|
var _props_id;
|
|
1343
1400
|
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
1344
1401
|
var _props_name;
|
|
1345
1402
|
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
1403
|
var _props_filters_map;
|
|
1349
1404
|
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
1405
|
if (item.children !== undefined) {
|
|
@@ -1352,17 +1407,53 @@ export var RowStyleRule = function RowStyleRule(props) {
|
|
|
1352
1407
|
}
|
|
1353
1408
|
return new FieldFilterCondition(item);
|
|
1354
1409
|
})) !== null && _props_filters_map !== void 0 ? _props_filters_map : [];
|
|
1410
|
+
var _props_settings_map;
|
|
1411
|
+
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) {
|
|
1412
|
+
return new RowStyleSettings(item);
|
|
1413
|
+
})) !== null && _props_settings_map !== void 0 ? _props_settings_map : [] : [];
|
|
1414
|
+
this.script = props === null || props === void 0 ? void 0 : props.script;
|
|
1355
1415
|
};
|
|
1356
|
-
export var
|
|
1416
|
+
export var RowStyleSettings = function RowStyleSettings(props) {
|
|
1357
1417
|
"use strict";
|
|
1358
|
-
_class_call_check(this,
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1418
|
+
_class_call_check(this, RowStyleSettings);
|
|
1419
|
+
/**
|
|
1420
|
+
* 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
|
|
1421
|
+
* @defaultValue 'theme'
|
|
1422
|
+
* @public
|
|
1423
|
+
*/ _define_property(this, "color", void 0);
|
|
1424
|
+
/**
|
|
1425
|
+
* 生效列字段
|
|
1426
|
+
*/ _define_property(this, "fieldCodes", void 0);
|
|
1427
|
+
/**
|
|
1428
|
+
* 样式类型,background单元格背景色,fontColor单元格字体色
|
|
1429
|
+
*/ _define_property(this, "type", void 0);
|
|
1430
|
+
/**
|
|
1431
|
+
* 作用范围,row整行,col整列
|
|
1432
|
+
*/ _define_property(this, "scope", void 0);
|
|
1433
|
+
var _props_type;
|
|
1434
|
+
this.type = (_props_type = props.type) !== null && _props_type !== void 0 ? _props_type : 'background';
|
|
1435
|
+
var _props_fieldCodes;
|
|
1436
|
+
this.fieldCodes = (_props_fieldCodes = props.fieldCodes) !== null && _props_fieldCodes !== void 0 ? _props_fieldCodes : [];
|
|
1366
1437
|
var _props_color;
|
|
1367
1438
|
this.color = (_props_color = props.color) !== null && _props_color !== void 0 ? _props_color : 'theme';
|
|
1439
|
+
var _props_scope;
|
|
1440
|
+
this.scope = (_props_scope = props.scope) !== null && _props_scope !== void 0 ? _props_scope : 'row';
|
|
1441
|
+
};
|
|
1442
|
+
export var RowStyle = function RowStyle(props) {
|
|
1443
|
+
"use strict";
|
|
1444
|
+
_class_call_check(this, RowStyle);
|
|
1445
|
+
var _props_rules;
|
|
1446
|
+
_define_property(this, "type", void 0);
|
|
1447
|
+
_define_property(this, "interval", void 0);
|
|
1448
|
+
_define_property(this, "rules", void 0);
|
|
1449
|
+
var _props_type;
|
|
1450
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'none';
|
|
1451
|
+
var _props_interval;
|
|
1452
|
+
this.interval = (_props_interval = props === null || props === void 0 ? void 0 : props.interval) !== null && _props_interval !== void 0 ? _props_interval : {
|
|
1453
|
+
color: ''
|
|
1454
|
+
};
|
|
1455
|
+
var _props_rules_map;
|
|
1456
|
+
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) {
|
|
1457
|
+
return new RowStyleRule(item);
|
|
1458
|
+
})) !== null && _props_rules_map !== void 0 ? _props_rules_map : [] : [];
|
|
1368
1459
|
};
|