@byteluck-fe/model-driven-core 3.0.0-beta.2 → 4.34.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.
@@ -118,30 +118,6 @@ 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
- };
145
121
  export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
146
122
  "use strict";
147
123
  _inherits(MetaWidth, AutoWidth);
@@ -492,20 +468,6 @@ export var JoinRelation = function JoinRelation(props) {
492
468
  this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : '';
493
469
  this.fieldType = props === null || props === void 0 ? void 0 : props.fieldType;
494
470
  };
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
- };
509
471
  /**
510
472
  * 数据源排序项
511
473
  * @public
@@ -655,16 +617,6 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
655
617
  * @defaultValue true
656
618
  * @public
657
619
  */ _define_property(this, "showOrder", void 0);
658
- /**
659
- * 部门或者人员指定部门配置
660
- * @defaultValue {}
661
- * @public
662
- */ _define_property(this, "assignDepartment", void 0);
663
- /**
664
- * 部门或者人员指定部门配置是否开启
665
- * @defaultValue {}
666
- * @public
667
- */ _define_property(this, "openAssignDepartment", void 0);
668
620
  var _props_dataCode;
669
621
  this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : '';
670
622
  var _props_appId;
@@ -686,9 +638,6 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
686
638
  this.showOrder = (_props_showOrder = props === null || props === void 0 ? void 0 : props.showOrder) !== null && _props_showOrder !== void 0 ? _props_showOrder : true;
687
639
  var _props_svcCode;
688
640
  this.svcCode = (_props_svcCode = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _props_svcCode !== void 0 ? _props_svcCode : '';
689
- this.assignDepartment = new RightVariable(props === null || props === void 0 ? void 0 : props.assignDepartment);
690
- var _props_openAssignDepartment;
691
- this.openAssignDepartment = (_props_openAssignDepartment = props === null || props === void 0 ? void 0 : props.openAssignDepartment) !== null && _props_openAssignDepartment !== void 0 ? _props_openAssignDepartment : false;
692
641
  callFiltersAndOrders.call(this, props);
693
642
  };
694
643
  export var SelectedContentConfig = function SelectedContentConfig(props) {
@@ -974,23 +923,6 @@ export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
974
923
  }
975
924
  return ImageOptionSetting;
976
925
  }(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);
994
926
  export function initOptions(options) {
995
927
  var _options_map;
996
928
  return (_options_map = options === null || options === void 0 ? void 0 : options.map(function(item) {
@@ -1003,12 +935,6 @@ export function initImageOptions(options) {
1003
935
  return new ImageOptionSetting(item);
1004
936
  })) !== null && _options_map !== void 0 ? _options_map : [];
1005
937
  }
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
- }
1012
938
  /**
1013
939
  * 对象类型数据绑定配置
1014
940
  * @public
@@ -1239,10 +1165,6 @@ export var COMMON_SETTING_TYPE;
1239
1165
  COMMON_SETTING_TYPE["REVISIONS_MODE"] = "revisionsMode";
1240
1166
  COMMON_SETTING_TYPE["ALLOW_COPY_OPTIONS"] = "allowCopyOptions";
1241
1167
  COMMON_SETTING_TYPE["IS_PASTE"] = "isPaste";
1242
- COMMON_SETTING_TYPE["SORTABLE"] = "sortable";
1243
- COMMON_SETTING_TYPE["IS_SHOW_SIMPLE_SEARCH"] = "isShowSimpleSearch";
1244
- COMMON_SETTING_TYPE["IS_SHOW_TOOL_BAE"] = "isShowToolbar";
1245
- COMMON_SETTING_TYPE["MAIN_DEPT_FLAG"] = "mainDeptFlag";
1246
1168
  })(COMMON_SETTING_TYPE || (COMMON_SETTING_TYPE = {}));
1247
1169
  export var PAGE_STATUS;
1248
1170
  (function(PAGE_STATUS) {
@@ -1368,7 +1290,7 @@ export var OptObject = function OptObject(props) {
1368
1290
  export var RowStyleRule = function RowStyleRule(props) {
1369
1291
  "use strict";
1370
1292
  _class_call_check(this, RowStyleRule);
1371
- var _props_filters, _props_settings;
1293
+ var _props_filters;
1372
1294
  /**
1373
1295
  * 规则编号
1374
1296
  * @defaultValue guid
@@ -1379,18 +1301,22 @@ export var RowStyleRule = function RowStyleRule(props) {
1379
1301
  * @defaultValue ''
1380
1302
  * @public
1381
1303
  */ _define_property(this, "name", void 0);
1382
- _define_property(this, "settings", void 0);
1304
+ /**
1305
+ * 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
1306
+ * @defaultValue 'theme'
1307
+ * @public
1308
+ */ _define_property(this, "color", void 0);
1383
1309
  /**
1384
1310
  * 过滤条件
1385
1311
  * @defaultValue []
1386
1312
  * @public
1387
1313
  */ _define_property(this, "filters", void 0);
1388
- // 过滤
1389
- _define_property(this, "script", void 0);
1390
1314
  var _props_id;
1391
1315
  this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
1392
1316
  var _props_name;
1393
1317
  this.name = (_props_name = props === null || props === void 0 ? void 0 : props.name) !== null && _props_name !== void 0 ? _props_name : '';
1318
+ var _props_color;
1319
+ this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : 'theme';
1394
1320
  var _props_filters_map;
1395
1321
  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) {
1396
1322
  if (item.children !== undefined) {
@@ -1398,53 +1324,17 @@ export var RowStyleRule = function RowStyleRule(props) {
1398
1324
  }
1399
1325
  return new FieldFilterCondition(item);
1400
1326
  })) !== null && _props_filters_map !== void 0 ? _props_filters_map : [];
1401
- var _props_settings_map;
1402
- 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) {
1403
- return new RowStyleSettings(item);
1404
- })) !== null && _props_settings_map !== void 0 ? _props_settings_map : [] : [];
1405
- this.script = props === null || props === void 0 ? void 0 : props.script;
1406
1327
  };
1407
- export var RowStyleSettings = function RowStyleSettings(props) {
1328
+ export var RowStyleRuleScript = function RowStyleRuleScript(props) {
1408
1329
  "use strict";
1409
- _class_call_check(this, RowStyleSettings);
1410
- /**
1411
- * 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
1412
- * @defaultValue 'theme'
1413
- * @public
1414
- */ _define_property(this, "color", void 0);
1415
- /**
1416
- * 生效列字段
1417
- */ _define_property(this, "fieldCodes", void 0);
1418
- /**
1419
- * 样式类型,background单元格背景色,fontColor单元格字体色
1420
- */ _define_property(this, "type", void 0);
1421
- /**
1422
- * 作用范围,row整行,col整列
1423
- */ _define_property(this, "scope", void 0);
1424
- var _props_type;
1425
- this.type = (_props_type = props.type) !== null && _props_type !== void 0 ? _props_type : 'background';
1426
- var _props_fieldCodes;
1427
- this.fieldCodes = (_props_fieldCodes = props.fieldCodes) !== null && _props_fieldCodes !== void 0 ? _props_fieldCodes : [];
1330
+ _class_call_check(this, RowStyleRuleScript);
1331
+ _define_property(this, "id", void 0);
1332
+ _define_property(this, "script", void 0);
1333
+ _define_property(this, "color", void 0);
1334
+ var _props_id;
1335
+ this.id = (_props_id = props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
1336
+ var _props_script;
1337
+ this.script = (_props_script = props.script) !== null && _props_script !== void 0 ? _props_script : '';
1428
1338
  var _props_color;
1429
1339
  this.color = (_props_color = props.color) !== null && _props_color !== void 0 ? _props_color : 'theme';
1430
- var _props_scope;
1431
- this.scope = (_props_scope = props.scope) !== null && _props_scope !== void 0 ? _props_scope : 'row';
1432
- };
1433
- export var RowStyle = function RowStyle(props) {
1434
- "use strict";
1435
- _class_call_check(this, RowStyle);
1436
- var _props_rules;
1437
- _define_property(this, "type", void 0);
1438
- _define_property(this, "interval", void 0);
1439
- _define_property(this, "rules", void 0);
1440
- var _props_type;
1441
- this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'none';
1442
- var _props_interval;
1443
- this.interval = (_props_interval = props === null || props === void 0 ? void 0 : props.interval) !== null && _props_interval !== void 0 ? _props_interval : {
1444
- color: ''
1445
- };
1446
- var _props_rules_map;
1447
- 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) {
1448
- return new RowStyleRule(item);
1449
- })) !== null && _props_rules_map !== void 0 ? _props_rules_map : [] : [];
1450
1340
  };