@byteluck-fe/model-driven-core 7.0.0-beta.3 → 7.0.0-beta.8

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.
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: base_property
3
+ * description: 基础属性定义。提供控件通用的隐藏状态、类名、样式、标题和默认状态配置,是表单、布局、列表等属性模型的公共基类。
4
+ */ function _assert_this_initialized(self) {
2
5
  if (self === void 0) {
3
6
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
7
  }
@@ -141,11 +144,30 @@ var PropertyRuntimeRules = /*#__PURE__*/ function(Array1) {
141
144
  var caption = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : '';
142
145
  _class_call_check(this, Property);
143
146
  var _ref, _ref1;
144
- _define_property(this, "isHide", void 0);
145
- _define_property(this, "className", void 0);
146
- _define_property(this, "style", void 0);
147
- _define_property(this, "caption", void 0);
148
- _define_property(this, "defaultState", void 0);
147
+ /**
148
+ * 是否隐藏
149
+ * @public
150
+ * @defaultValue false
151
+ */ _define_property(this, "isHide", void 0);
152
+ /**
153
+ * 类名
154
+ * @public
155
+ * @noSchema
156
+ */ _define_property(this, "className", void 0);
157
+ /**
158
+ * 样式
159
+ * @public
160
+ * @noSchema
161
+ */ _define_property(this, "style", void 0);
162
+ /**
163
+ * 标题
164
+ * @public
165
+ * @defaultValue ''
166
+ */ _define_property(this, "caption", void 0);
167
+ /**
168
+ * 默认状态
169
+ * @public
170
+ */ _define_property(this, "defaultState", void 0);
149
171
  this.isHide = (_ref = props === null || props === void 0 ? void 0 : props.isHide) !== null && _ref !== void 0 ? _ref : false;
150
172
  this.style = new BaseStyle(props === null || props === void 0 ? void 0 : props.style);
151
173
  this.caption = (_ref1 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref1 !== void 0 ? _ref1 : caption;
@@ -70,7 +70,10 @@ function _is_native_reflect_construct() {
70
70
  return !!result;
71
71
  })();
72
72
  }
73
- import { Property, PropertyRules } from '../BaseControl';
73
+ /**
74
+ * name: base_column_control_property
75
+ * description: 列控件基础属性定义。提供列宽、标题、数据绑定、自适应宽度、冻结、排序、对齐、跨列、自动高度和子控件配置。
76
+ */ import { Property, PropertyRules } from '../BaseControl';
74
77
  import { initOptionAndDataSourceRules } from '../initOptionAndDataSourceRules';
75
78
  import { DataBind, AutoWidth } from '../../framework';
76
79
  import { getLocaleText } from '@byteluck-fe/locale-message';
@@ -108,7 +111,34 @@ var ColumnControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
108
111
  var _ref, _ref1, _ref2, _ref3, _ref4;
109
112
  _this = _call_super(this, ColumnControlProperty, [
110
113
  props
111
- ]), _define_property(_this, "widthType", void 0), _define_property(_this, "width", void 0), _define_property(_this, "caption", void 0), _define_property(_this, "dataBind", void 0), _define_property(_this, "autoWidth", void 0), _define_property(_this, "fixed", void 0), _define_property(_this, "sort", void 0), _define_property(_this, "align", void 0), _define_property(_this, "colSpan", void 0), _define_property(_this, "autoHeight", void 0), _define_property(_this, "children", void 0);
114
+ ]), /**
115
+ * 宽度类型
116
+ * @defaultValue 'auto'
117
+ */ _define_property(_this, "widthType", void 0), /**
118
+ * 宽度
119
+ * @defaultValue 150
120
+ */ _define_property(_this, "width", void 0), /**
121
+ * 标题
122
+ */ _define_property(_this, "caption", void 0), /**
123
+ * 绑定数据项
124
+ */ _define_property(_this, "dataBind", void 0), /**
125
+ * 自适应页面宽度
126
+ */ _define_property(_this, "autoWidth", void 0), /**
127
+ * 冻结
128
+ * @defaultValue 'none'
129
+ */ _define_property(_this, "fixed", void 0), /**
130
+ * 表头排序
131
+ * @defaultValue true
132
+ */ _define_property(_this, "sort", void 0), /**
133
+ * 对齐
134
+ */ _define_property(_this, "align", void 0), /**
135
+ * @internal
136
+ */ _define_property(_this, "colSpan", void 0), /**
137
+ * 自动高度
138
+ * @defaultValue false
139
+ */ _define_property(_this, "autoHeight", void 0), /**
140
+ * 子控件
141
+ */ _define_property(_this, "children", void 0);
112
142
  _this.width = (_ref = props === null || props === void 0 ? void 0 : props.width) !== null && _ref !== void 0 ? _ref : 150;
113
143
  _this.widthType = (props === null || props === void 0 ? void 0 : props.widthType) || 'auto';
114
144
  _this.caption = (_ref1 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref1 !== void 0 ? _ref1 : '';
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: base_form_control_property
3
+ * description: 表单控件基础属性定义。提供字段绑定、标题展示、占位提示、默认值、必填校验、只读状态和气泡提示等表单通用配置。
4
+ */ function _assert_this_initialized(self) {
2
5
  if (self === void 0) {
3
6
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
7
  }
@@ -57,7 +57,10 @@ function _is_native_reflect_construct() {
57
57
  return !!result;
58
58
  })();
59
59
  }
60
- import { Property } from '../BaseControl';
60
+ /**
61
+ * name: base_layout_control_property
62
+ * description: 布局控件基础属性定义。继承通用属性能力,为行、列、容器、页签等布局类控件提供统一的属性模型。
63
+ */ import { Property } from '../BaseControl';
61
64
  var LayoutControlProperty = /*#__PURE__*/ function(Property) {
62
65
  "use strict";
63
66
  _inherits(LayoutControlProperty, Property);
@@ -70,7 +70,10 @@ function _is_native_reflect_construct() {
70
70
  return !!result;
71
71
  })();
72
72
  }
73
- import { Property } from '../BaseControl';
73
+ /**
74
+ * name: base_list_control_property
75
+ * description: 列表控件基础属性定义。提供表头、表尾、分页页码、每页条数、分页选项和总条数等列表通用配置。
76
+ */ import { Property } from '../BaseControl';
74
77
  import { defineControlArrayToProperty } from '../ControlArray';
75
78
  var ListControlProperty = /*#__PURE__*/ function(Property) {
76
79
  "use strict";
@@ -81,7 +84,19 @@ var ListControlProperty = /*#__PURE__*/ function(Property) {
81
84
  var _ref, _ref1, _ref2, _ref3;
82
85
  _this = _call_super(this, ListControlProperty, [
83
86
  props
84
- ]), _define_property(_this, "headers", void 0), _define_property(_this, "footers", void 0), _define_property(_this, "pageIndex", void 0), _define_property(_this, "pageSize", void 0), _define_property(_this, "pageSizeOptions", void 0), _define_property(_this, "totalCount", void 0);
87
+ ]), /**
88
+ * 表头控件
89
+ */ _define_property(_this, "headers", void 0), /**
90
+ * 表尾控件
91
+ */ _define_property(_this, "footers", void 0), /**
92
+ * 当前页码
93
+ */ _define_property(_this, "pageIndex", void 0), /**
94
+ * 每页条数
95
+ */ _define_property(_this, "pageSize", void 0), /**
96
+ * 每页条数选项
97
+ */ _define_property(_this, "pageSizeOptions", void 0), /**
98
+ * 总条数
99
+ */ _define_property(_this, "totalCount", void 0);
85
100
  defineControlArrayToProperty(_this, 'headers', props === null || props === void 0 ? void 0 : props.headers, parent, mode);
86
101
  defineControlArrayToProperty(_this, 'footers', props === null || props === void 0 ? void 0 : props.footers, parent);
87
102
  _this.pageIndex = (_ref = props === null || props === void 0 ? void 0 : props.pageIndex) !== null && _ref !== void 0 ? _ref : 1;
@@ -70,7 +70,10 @@ function _is_native_reflect_construct() {
70
70
  return !!result;
71
71
  })();
72
72
  }
73
- import { LayoutControlProperty } from '../LayoutControl';
73
+ /**
74
+ * name: base_search_control_property
75
+ * description: 查询控件基础属性定义。提供查询视图的数据项绑定配置,用于搜索区域控件与数据字段建立关联。
76
+ */ import { LayoutControlProperty } from '../LayoutControl';
74
77
  import { DataBind } from '../../framework';
75
78
  var SearchControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
76
79
  "use strict";
@@ -80,7 +83,9 @@ var SearchControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
80
83
  var _this;
81
84
  _this = _call_super(this, SearchControlProperty, [
82
85
  props
83
- ]), _define_property(_this, "dataBind", void 0);
86
+ ]), /**
87
+ * 绑定数据项
88
+ */ _define_property(_this, "dataBind", void 0);
84
89
  _this.dataBind = new DataBind(props === null || props === void 0 ? void 0 : props.dataBind);
85
90
  return _this;
86
91
  }
@@ -57,7 +57,10 @@ function _is_native_reflect_construct() {
57
57
  return !!result;
58
58
  })();
59
59
  }
60
- import { LayoutControlProperty } from '../LayoutControl';
60
+ /**
61
+ * name: base_wrap_control_property
62
+ * description: 包裹控件基础属性定义。继承布局属性能力,为外层包裹类控件提供统一的属性模型。
63
+ */ import { LayoutControlProperty } from '../LayoutControl';
61
64
  var WrapControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
62
65
  "use strict";
63
66
  _inherits(WrapControlProperty, LayoutControlProperty);
@@ -668,6 +668,175 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
668
668
  this.dataCode = (_ref1 = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref1 !== void 0 ? _ref1 : '';
669
669
  this.actionCode = (_ref2 = props === null || props === void 0 ? void 0 : props.actionCode) !== null && _ref2 !== void 0 ? _ref2 : '';
670
670
  };
671
+ /**
672
+ * 业务行动服务信息
673
+ * @public
674
+ */ export var BizActionServiceName = function BizActionServiceName(props) {
675
+ "use strict";
676
+ _class_call_check(this, BizActionServiceName);
677
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
678
+ /**
679
+ * 业务行动编码
680
+ * @defaultValue ''
681
+ * @public
682
+ */ _define_property(this, "actionCode", void 0);
683
+ /**
684
+ * 数据编码
685
+ * @defaultValue ''
686
+ * @public
687
+ */ _define_property(this, "dataCode", void 0);
688
+ /**
689
+ * 名称
690
+ * @defaultValue ''
691
+ * @public
692
+ */ _define_property(this, "name", void 0);
693
+ /**
694
+ * 应用名称
695
+ * @defaultValue ''
696
+ * @public
697
+ */ _define_property(this, "appName", void 0);
698
+ /**
699
+ * 数据名称
700
+ * @defaultValue ''
701
+ * @public
702
+ */ _define_property(this, "dataName", void 0);
703
+ /**
704
+ * 业务行动名称
705
+ * @defaultValue ''
706
+ * @public
707
+ */ _define_property(this, "actionName", void 0);
708
+ /**
709
+ * 展示名称
710
+ * @defaultValue ''
711
+ * @public
712
+ */ _define_property(this, "displayName", void 0);
713
+ /**
714
+ * 服务类型
715
+ * @defaultValue ''
716
+ * @public
717
+ */ _define_property(this, "svcTypeEnum", void 0);
718
+ this.actionCode = (_ref = props === null || props === void 0 ? void 0 : props.actionCode) !== null && _ref !== void 0 ? _ref : '';
719
+ this.dataCode = (_ref1 = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref1 !== void 0 ? _ref1 : '';
720
+ this.name = (_ref2 = props === null || props === void 0 ? void 0 : props.name) !== null && _ref2 !== void 0 ? _ref2 : '';
721
+ this.appName = (_ref3 = props === null || props === void 0 ? void 0 : props.appName) !== null && _ref3 !== void 0 ? _ref3 : '';
722
+ this.dataName = (_ref4 = props === null || props === void 0 ? void 0 : props.dataName) !== null && _ref4 !== void 0 ? _ref4 : '';
723
+ this.actionName = (_ref5 = props === null || props === void 0 ? void 0 : props.actionName) !== null && _ref5 !== void 0 ? _ref5 : '';
724
+ this.displayName = (_ref6 = props === null || props === void 0 ? void 0 : props.displayName) !== null && _ref6 !== void 0 ? _ref6 : '';
725
+ this.svcTypeEnum = (_ref7 = props === null || props === void 0 ? void 0 : props.svcTypeEnum) !== null && _ref7 !== void 0 ? _ref7 : '';
726
+ };
727
+ /**
728
+ * 业务行动右值变量
729
+ * @public
730
+ */ export var BizActionRightVariable = function BizActionRightVariable(props) {
731
+ "use strict";
732
+ _class_call_check(this, BizActionRightVariable);
733
+ var _ref, _ref1, _ref2;
734
+ /**
735
+ * 变量类型
736
+ * @defaultValue 'custom'
737
+ * @public
738
+ */ _define_property(this, "type", void 0);
739
+ /**
740
+ * 变量值
741
+ * @defaultValue []
742
+ * @public
743
+ */ _define_property(this, "value", void 0);
744
+ /**
745
+ * 展示对象
746
+ * @defaultValue []
747
+ * @public
748
+ */ _define_property(this, "displayBos", void 0);
749
+ this.type = (_ref = props === null || props === void 0 ? void 0 : props.type) !== null && _ref !== void 0 ? _ref : 'custom';
750
+ this.value = (_ref1 = props === null || props === void 0 ? void 0 : props.value) !== null && _ref1 !== void 0 ? _ref1 : [];
751
+ this.displayBos = (_ref2 = props === null || props === void 0 ? void 0 : props.displayBos) !== null && _ref2 !== void 0 ? _ref2 : [];
752
+ };
753
+ /**
754
+ * 业务行动入参
755
+ * @public
756
+ */ export var BizActionInputParam = function BizActionInputParam(props) {
757
+ "use strict";
758
+ _class_call_check(this, BizActionInputParam);
759
+ var _ref, _ref1, _ref2, _ref3;
760
+ /**
761
+ * 参数ID
762
+ * @defaultValue ''
763
+ * @public
764
+ */ _define_property(this, "id", void 0);
765
+ /**
766
+ * 参数名称
767
+ * @defaultValue ''
768
+ * @public
769
+ */ _define_property(this, "name", void 0);
770
+ /**
771
+ * 是否必填
772
+ * @defaultValue false
773
+ * @public
774
+ */ _define_property(this, "required", void 0);
775
+ /**
776
+ * 参数类型
777
+ * @defaultValue ''
778
+ * @public
779
+ */ _define_property(this, "paramType", void 0);
780
+ /**
781
+ * 参数右值变量
782
+ * @defaultValue new BizActionRightVariable()
783
+ * @public
784
+ */ _define_property(this, "rightVariableBo", void 0);
785
+ this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : '';
786
+ this.name = (_ref1 = props === null || props === void 0 ? void 0 : props.name) !== null && _ref1 !== void 0 ? _ref1 : '';
787
+ this.required = (_ref2 = props === null || props === void 0 ? void 0 : props.required) !== null && _ref2 !== void 0 ? _ref2 : false;
788
+ this.paramType = (_ref3 = props === null || props === void 0 ? void 0 : props.paramType) !== null && _ref3 !== void 0 ? _ref3 : '';
789
+ this.rightVariableBo = new BizActionRightVariable(props === null || props === void 0 ? void 0 : props.rightVariableBo);
790
+ };
791
+ /**
792
+ * 业务行动配置
793
+ * @public
794
+ */ export var BizActionObject = function BizActionObject(props) {
795
+ "use strict";
796
+ _class_call_check(this, BizActionObject);
797
+ var _ref;
798
+ var _props_inputParam;
799
+ /**
800
+ * 服务信息
801
+ * @defaultValue new BizActionServiceName()
802
+ * @public
803
+ */ _define_property(this, "serviceName", void 0);
804
+ /**
805
+ * 入参列表
806
+ * @defaultValue []
807
+ * @public
808
+ */ _define_property(this, "inputParam", void 0);
809
+ this.serviceName = new BizActionServiceName(props === null || props === void 0 ? void 0 : props.serviceName);
810
+ this.inputParam = (_ref = props === null || props === void 0 ? void 0 : (_props_inputParam = props.inputParam) === null || _props_inputParam === void 0 ? void 0 : _props_inputParam.map(function(item) {
811
+ return new BizActionInputParam(item);
812
+ })) !== null && _ref !== void 0 ? _ref : [];
813
+ };
814
+ /**
815
+ * 操作行动项配置
816
+ * @public
817
+ */ export var ActionObject = function ActionObject(props) {
818
+ "use strict";
819
+ _class_call_check(this, ActionObject);
820
+ var _ref, _ref1;
821
+ /**
822
+ * 行动编码
823
+ * @defaultValue ''
824
+ * @public
825
+ */ _define_property(this, "actionCode", void 0);
826
+ /**
827
+ * 行动类型
828
+ * @defaultValue ''
829
+ * @public
830
+ */ _define_property(this, "actionType", void 0);
831
+ /**
832
+ * 业务行动配置
833
+ * @defaultValue new BizActionObject()
834
+ * @public
835
+ */ _define_property(this, "bizAction", void 0);
836
+ this.actionCode = (_ref = props === null || props === void 0 ? void 0 : props.actionCode) !== null && _ref !== void 0 ? _ref : '';
837
+ this.actionType = (_ref1 = props === null || props === void 0 ? void 0 : props.actionType) !== null && _ref1 !== void 0 ? _ref1 : '';
838
+ this.bizAction = new BizActionObject(props === null || props === void 0 ? void 0 : props.bizAction);
839
+ };
671
840
  export var SelectedContentConfig = function SelectedContentConfig(props) {
672
841
  "use strict";
673
842
  _class_call_check(this, SelectedContentConfig);
@@ -1315,7 +1484,7 @@ export var BaseStyle = function BaseStyle(props) {
1315
1484
  export var OptObject = function OptObject(props) {
1316
1485
  "use strict";
1317
1486
  _class_call_check(this, OptObject);
1318
- var _ref, _ref1, _ref2;
1487
+ var _ref, _ref1;
1319
1488
  /**
1320
1489
  * 操作项编码
1321
1490
  * @defaultValue ''
@@ -1326,14 +1495,8 @@ export var OptObject = function OptObject(props) {
1326
1495
  * @defaultValue ''
1327
1496
  * @public
1328
1497
  */ _define_property(this, "optType", void 0);
1329
- /**
1330
- * 行动项绑定的业务行动配置
1331
- * @defaultValue {}
1332
- * @public
1333
- */ _define_property(this, "bizAction", void 0);
1334
1498
  this.optCode = (_ref = props === null || props === void 0 ? void 0 : props.optCode) !== null && _ref !== void 0 ? _ref : '';
1335
1499
  this.optType = (_ref1 = props === null || props === void 0 ? void 0 : props.optType) !== null && _ref1 !== void 0 ? _ref1 : '';
1336
- this.bizAction = (_ref2 = props === null || props === void 0 ? void 0 : props.bizAction) !== null && _ref2 !== void 0 ? _ref2 : {};
1337
1500
  };
1338
1501
  export var RowStyleRule = function RowStyleRule(props) {
1339
1502
  "use strict";