@byteluck-fe/model-driven-core 4.36.0-lx2 → 5.5.0-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 +91 -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 +58 -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
|
|
@@ -1186,12 +1224,10 @@ export var AMOUNT_TYPE = /*#__PURE__*/ function(AMOUNT_TYPE) {
|
|
|
1186
1224
|
COMMON_SETTING_TYPE["REVISIONS_MODE"] = "revisionsMode";
|
|
1187
1225
|
COMMON_SETTING_TYPE["ALLOW_COPY_OPTIONS"] = "allowCopyOptions";
|
|
1188
1226
|
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";
|
|
1227
|
+
COMMON_SETTING_TYPE["SORTABLE"] = "sortable";
|
|
1228
|
+
COMMON_SETTING_TYPE["IS_SHOW_SIMPLE_SEARCH"] = "isShowSimpleSearch";
|
|
1229
|
+
COMMON_SETTING_TYPE["IS_SHOW_TOOL_BAE"] = "isShowToolbar";
|
|
1230
|
+
COMMON_SETTING_TYPE["MAIN_DEPT_FLAG"] = "mainDeptFlag";
|
|
1195
1231
|
return COMMON_SETTING_TYPE;
|
|
1196
1232
|
}({});
|
|
1197
1233
|
export var PAGE_STATUS = /*#__PURE__*/ function(PAGE_STATUS) {
|
|
@@ -1318,7 +1354,7 @@ export var OptObject = function OptObject(props) {
|
|
|
1318
1354
|
export var RowStyleRule = function RowStyleRule(props) {
|
|
1319
1355
|
"use strict";
|
|
1320
1356
|
_class_call_check(this, RowStyleRule);
|
|
1321
|
-
var _props_filters;
|
|
1357
|
+
var _props_filters, _props_settings;
|
|
1322
1358
|
/**
|
|
1323
1359
|
* 规则编号
|
|
1324
1360
|
* @defaultValue guid
|
|
@@ -1329,22 +1365,18 @@ export var RowStyleRule = function RowStyleRule(props) {
|
|
|
1329
1365
|
* @defaultValue ''
|
|
1330
1366
|
* @public
|
|
1331
1367
|
*/ _define_property(this, "name", void 0);
|
|
1332
|
-
|
|
1333
|
-
* 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
|
|
1334
|
-
* @defaultValue 'theme'
|
|
1335
|
-
* @public
|
|
1336
|
-
*/ _define_property(this, "color", void 0);
|
|
1368
|
+
_define_property(this, "settings", void 0);
|
|
1337
1369
|
/**
|
|
1338
1370
|
* 过滤条件
|
|
1339
1371
|
* @defaultValue []
|
|
1340
1372
|
* @public
|
|
1341
1373
|
*/ _define_property(this, "filters", void 0);
|
|
1374
|
+
// 过滤
|
|
1375
|
+
_define_property(this, "script", void 0);
|
|
1342
1376
|
var _props_id;
|
|
1343
1377
|
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
1344
1378
|
var _props_name;
|
|
1345
1379
|
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
1380
|
var _props_filters_map;
|
|
1349
1381
|
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
1382
|
if (item.children !== undefined) {
|
|
@@ -1352,17 +1384,53 @@ export var RowStyleRule = function RowStyleRule(props) {
|
|
|
1352
1384
|
}
|
|
1353
1385
|
return new FieldFilterCondition(item);
|
|
1354
1386
|
})) !== null && _props_filters_map !== void 0 ? _props_filters_map : [];
|
|
1387
|
+
var _props_settings_map;
|
|
1388
|
+
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) {
|
|
1389
|
+
return new RowStyleSettings(item);
|
|
1390
|
+
})) !== null && _props_settings_map !== void 0 ? _props_settings_map : [] : [];
|
|
1391
|
+
this.script = props === null || props === void 0 ? void 0 : props.script;
|
|
1355
1392
|
};
|
|
1356
|
-
export var
|
|
1393
|
+
export var RowStyleSettings = function RowStyleSettings(props) {
|
|
1357
1394
|
"use strict";
|
|
1358
|
-
_class_call_check(this,
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1395
|
+
_class_call_check(this, RowStyleSettings);
|
|
1396
|
+
/**
|
|
1397
|
+
* 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
|
|
1398
|
+
* @defaultValue 'theme'
|
|
1399
|
+
* @public
|
|
1400
|
+
*/ _define_property(this, "color", void 0);
|
|
1401
|
+
/**
|
|
1402
|
+
* 生效列字段
|
|
1403
|
+
*/ _define_property(this, "fieldCodes", void 0);
|
|
1404
|
+
/**
|
|
1405
|
+
* 样式类型,background单元格背景色,fontColor单元格字体色
|
|
1406
|
+
*/ _define_property(this, "type", void 0);
|
|
1407
|
+
/**
|
|
1408
|
+
* 作用范围,row整行,col整列
|
|
1409
|
+
*/ _define_property(this, "scope", void 0);
|
|
1410
|
+
var _props_type;
|
|
1411
|
+
this.type = (_props_type = props.type) !== null && _props_type !== void 0 ? _props_type : 'background';
|
|
1412
|
+
var _props_fieldCodes;
|
|
1413
|
+
this.fieldCodes = (_props_fieldCodes = props.fieldCodes) !== null && _props_fieldCodes !== void 0 ? _props_fieldCodes : [];
|
|
1366
1414
|
var _props_color;
|
|
1367
1415
|
this.color = (_props_color = props.color) !== null && _props_color !== void 0 ? _props_color : 'theme';
|
|
1416
|
+
var _props_scope;
|
|
1417
|
+
this.scope = (_props_scope = props.scope) !== null && _props_scope !== void 0 ? _props_scope : 'row';
|
|
1418
|
+
};
|
|
1419
|
+
export var RowStyle = function RowStyle(props) {
|
|
1420
|
+
"use strict";
|
|
1421
|
+
_class_call_check(this, RowStyle);
|
|
1422
|
+
var _props_rules;
|
|
1423
|
+
_define_property(this, "type", void 0);
|
|
1424
|
+
_define_property(this, "interval", void 0);
|
|
1425
|
+
_define_property(this, "rules", void 0);
|
|
1426
|
+
var _props_type;
|
|
1427
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'none';
|
|
1428
|
+
var _props_interval;
|
|
1429
|
+
this.interval = (_props_interval = props === null || props === void 0 ? void 0 : props.interval) !== null && _props_interval !== void 0 ? _props_interval : {
|
|
1430
|
+
color: ''
|
|
1431
|
+
};
|
|
1432
|
+
var _props_rules_map;
|
|
1433
|
+
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) {
|
|
1434
|
+
return new RowStyleRule(item);
|
|
1435
|
+
})) !== null && _props_rules_map !== void 0 ? _props_rules_map : [] : [];
|
|
1368
1436
|
};
|