@byteluck-fe/model-driven-core 6.2.0-1-beta.13 → 6.2.0-1-beta.16

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.
Files changed (49) hide show
  1. package/README.md +69 -69
  2. package/dist/esm/common/BaseControl/designer.js +12 -13
  3. package/dist/esm/common/BaseControl/property.js +15 -15
  4. package/dist/esm/common/BaseControl/runtime.js +1 -2
  5. package/dist/esm/common/ColumnControl/property.js +28 -28
  6. package/dist/esm/common/FormControl/property.js +56 -56
  7. package/dist/esm/framework/index.js +380 -380
  8. package/dist/types/api-doc-index.d.ts +4 -4
  9. package/dist/types/common/BaseControl/designer.d.ts +71 -71
  10. package/dist/types/common/BaseControl/index.d.ts +13 -13
  11. package/dist/types/common/BaseControl/property.d.ts +44 -44
  12. package/dist/types/common/BaseControl/runtime.d.ts +23 -23
  13. package/dist/types/common/BaseControl/types.d.ts +35 -35
  14. package/dist/types/common/ColumnControl/designer.d.ts +20 -20
  15. package/dist/types/common/ColumnControl/index.d.ts +12 -12
  16. package/dist/types/common/ColumnControl/property.d.ts +74 -74
  17. package/dist/types/common/ColumnControl/runtime.d.ts +11 -11
  18. package/dist/types/common/ControlArray.d.ts +9 -9
  19. package/dist/types/common/FormControl/designer.d.ts +13 -13
  20. package/dist/types/common/FormControl/index.d.ts +12 -12
  21. package/dist/types/common/FormControl/property.d.ts +118 -118
  22. package/dist/types/common/FormControl/runtime.d.ts +11 -11
  23. package/dist/types/common/LayoutControl/designer.d.ts +21 -21
  24. package/dist/types/common/LayoutControl/index.d.ts +12 -12
  25. package/dist/types/common/LayoutControl/property.d.ts +6 -6
  26. package/dist/types/common/LayoutControl/runtime.d.ts +11 -11
  27. package/dist/types/common/ListControl/designer.d.ts +16 -16
  28. package/dist/types/common/ListControl/index.d.ts +12 -12
  29. package/dist/types/common/ListControl/property.d.ts +18 -18
  30. package/dist/types/common/ListControl/runtime.d.ts +12 -12
  31. package/dist/types/common/SearchViewControl/designer.d.ts +11 -11
  32. package/dist/types/common/SearchViewControl/index.d.ts +12 -12
  33. package/dist/types/common/SearchViewControl/property.d.ts +8 -8
  34. package/dist/types/common/SearchViewControl/runtime.d.ts +11 -11
  35. package/dist/types/common/Validator.d.ts +15 -15
  36. package/dist/types/common/WrapControl/designer.d.ts +11 -11
  37. package/dist/types/common/WrapControl/index.d.ts +12 -12
  38. package/dist/types/common/WrapControl/property.d.ts +6 -6
  39. package/dist/types/common/WrapControl/runtime.d.ts +11 -11
  40. package/dist/types/common/controlHooksEmitter.d.ts +4 -4
  41. package/dist/types/common/index.d.ts +12 -12
  42. package/dist/types/common/initLinkOperationRules.d.ts +6 -6
  43. package/dist/types/common/initOptionAndDataSourceRules.d.ts +10 -10
  44. package/dist/types/framework/RegisterControls.d.ts +37 -37
  45. package/dist/types/framework/index.d.ts +948 -948
  46. package/dist/types/framework/isDataBind.d.ts +2 -2
  47. package/dist/types/index.d.ts +4 -4
  48. package/dist/types/type.d.ts +91 -91
  49. package/package.json +3 -3
package/README.md CHANGED
@@ -1,69 +1,69 @@
1
- # Core
2
- 引擎控件核心定义
3
-
4
- 定义了控件的基类和一些工具类的实现
5
-
6
- ```
7
- │ index.ts // 入口文件
8
- │ type.ts // 类型
9
-
10
- ├─common // 基础类
11
- │ │ ControlArray.ts // 控件数组,管理设计态和运行态的children和headers数组
12
- │ │ controlHooksEmitter.ts // 旧版设计态的控件事件发布,暂时不可废弃
13
- │ │ index.ts
14
- │ │ initOptionAndDataSourceRules.ts // 关联数据源和自定义选项的校验规则
15
- │ │ Validator.ts // 校验
16
- │ │
17
- │ ├─BaseControl // 基础控件
18
- │ │ designer.ts
19
- │ │ index.ts
20
- │ │ property.ts
21
- │ │ runtime.ts
22
- │ │ types.ts
23
- │ │
24
- │ ├─ColumnControl // 列控件
25
- │ │ designer.ts
26
- │ │ index.ts
27
- │ │ property.ts
28
- │ │ runtime.ts
29
- │ │ types.ts
30
- │ │
31
- │ ├─FormControl // 表单控件
32
- │ │ designer.ts
33
- │ │ index.ts
34
- │ │ property.ts
35
- │ │ runtime.ts
36
- │ │ types.ts
37
- │ │
38
- │ ├─LayoutControl // 布局控件
39
- │ │ designer.ts
40
- │ │ index.ts
41
- │ │ property.ts
42
- │ │ runtime.ts
43
- │ │ types.ts
44
- │ │
45
- │ ├─ListControl // 列表控件
46
- │ │ designer.ts
47
- │ │ index.ts
48
- │ │ property.ts
49
- │ │ runtime.ts
50
- │ │ types.ts
51
- │ │
52
- │ ├─SearchViewControl // 查询容器控件
53
- │ │ designer.ts
54
- │ │ index.ts
55
- │ │ property.ts
56
- │ │ runtime.ts
57
- │ │ types.ts
58
- │ │
59
- │ └─WrapControl // 容器控件
60
- │ designer.ts
61
- │ index.ts
62
- │ property.ts
63
- │ runtime.ts
64
- │ types.ts
65
-
66
- └─framework // 工具类
67
- index.ts // 很多工具类
68
- RegisterControls.ts // 注册和管理控件类,被Runtime和Designer继承
69
- ```
1
+ # Core
2
+ 引擎控件核心定义
3
+
4
+ 定义了控件的基类和一些工具类的实现
5
+
6
+ ```
7
+ │ index.ts // 入口文件
8
+ │ type.ts // 类型
9
+
10
+ ├─common // 基础类
11
+ │ │ ControlArray.ts // 控件数组,管理设计态和运行态的children和headers数组
12
+ │ │ controlHooksEmitter.ts // 旧版设计态的控件事件发布,暂时不可废弃
13
+ │ │ index.ts
14
+ │ │ initOptionAndDataSourceRules.ts // 关联数据源和自定义选项的校验规则
15
+ │ │ Validator.ts // 校验
16
+ │ │
17
+ │ ├─BaseControl // 基础控件
18
+ │ │ designer.ts
19
+ │ │ index.ts
20
+ │ │ property.ts
21
+ │ │ runtime.ts
22
+ │ │ types.ts
23
+ │ │
24
+ │ ├─ColumnControl // 列控件
25
+ │ │ designer.ts
26
+ │ │ index.ts
27
+ │ │ property.ts
28
+ │ │ runtime.ts
29
+ │ │ types.ts
30
+ │ │
31
+ │ ├─FormControl // 表单控件
32
+ │ │ designer.ts
33
+ │ │ index.ts
34
+ │ │ property.ts
35
+ │ │ runtime.ts
36
+ │ │ types.ts
37
+ │ │
38
+ │ ├─LayoutControl // 布局控件
39
+ │ │ designer.ts
40
+ │ │ index.ts
41
+ │ │ property.ts
42
+ │ │ runtime.ts
43
+ │ │ types.ts
44
+ │ │
45
+ │ ├─ListControl // 列表控件
46
+ │ │ designer.ts
47
+ │ │ index.ts
48
+ │ │ property.ts
49
+ │ │ runtime.ts
50
+ │ │ types.ts
51
+ │ │
52
+ │ ├─SearchViewControl // 查询容器控件
53
+ │ │ designer.ts
54
+ │ │ index.ts
55
+ │ │ property.ts
56
+ │ │ runtime.ts
57
+ │ │ types.ts
58
+ │ │
59
+ │ └─WrapControl // 容器控件
60
+ │ designer.ts
61
+ │ index.ts
62
+ │ property.ts
63
+ │ runtime.ts
64
+ │ types.ts
65
+
66
+ └─framework // 工具类
67
+ index.ts // 很多工具类
68
+ RegisterControls.ts // 注册和管理控件类,被Runtime和Designer继承
69
+ ```
@@ -220,8 +220,7 @@ var Control = /*#__PURE__*/ function _target() {
220
220
  function Control(props) {
221
221
  var _this = this;
222
222
  _class_call_check(this, Control);
223
- _define_property(this, "id", void 0 // 唯一标识符
224
- );
223
+ _define_property(this, "id", void 0); // 唯一标识符
225
224
  _define_property(this, "name", void 0);
226
225
  _define_property(this, "icon", void 0);
227
226
  _define_property(this, "type", void 0);
@@ -497,10 +496,10 @@ _define_property(Control, "removeSettingItem", removeSetting);
497
496
  _define_property(Control, "updateSettingItem", updateSetting);
498
497
  export default Control;
499
498
  export { Control as DesignerControl };
500
- /**
501
- * @function 删除控件或者实例上的setting的方法
502
- * @description 其中的this可能是DesignerControl的类,也可以是实例
503
- * @param keys 需要删除的key或key组成的数组
499
+ /**
500
+ * @function 删除控件或者实例上的setting的方法
501
+ * @description 其中的this可能是DesignerControl的类,也可以是实例
502
+ * @param keys 需要删除的key或key组成的数组
504
503
  * */ function removeSetting(keys) {
505
504
  var _this = this;
506
505
  var deleteKeys = Array.isArray(keys) ? keys : [
@@ -528,13 +527,13 @@ export { Control as DesignerControl };
528
527
  }
529
528
  });
530
529
  }
531
- /**
532
- * @function 修改控件或者实例上的setting的方法
533
- * @description 其中的this可能是DesignerControl的类,也可以是实例
534
- * @param settingKey 需要修改的key或者key组成的数组
535
- * @param value 修改之后的visible值
536
- * @param value.showItems 需要添加或替换的showItems
537
- * @param value.type 默认是replace替换,可以更改为push新增
530
+ /**
531
+ * @function 修改控件或者实例上的setting的方法
532
+ * @description 其中的this可能是DesignerControl的类,也可以是实例
533
+ * @param settingKey 需要修改的key或者key组成的数组
534
+ * @param value 修改之后的visible值
535
+ * @param value.showItems 需要添加或替换的showItems
536
+ * @param value.type 默认是replace替换,可以更改为push新增
538
537
  * */ function updateSetting(settingKey, value) {
539
538
  var _this = this;
540
539
  var keys = typeof settingKey === 'string' ? [
@@ -133,29 +133,29 @@ var PropertyRuntimeRules = /*#__PURE__*/ function(Array1) {
133
133
  }
134
134
  return PropertyRuntimeRules;
135
135
  }(_wrap_native_super(Array));
136
- /**
137
- * 全局属性
138
- * @public
136
+ /**
137
+ * 全局属性
138
+ * @public
139
139
  */ var Property = function Property(props) {
140
140
  "use strict";
141
141
  var caption = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : '';
142
142
  _class_call_check(this, Property);
143
- /**
144
- * 是否隐藏
145
- * @public
146
- * @defaultValue false
143
+ /**
144
+ * 是否隐藏
145
+ * @public
146
+ * @defaultValue false
147
147
  */ _define_property(this, "isHide", void 0);
148
148
  _define_property(this, "className", void 0);
149
149
  _define_property(this, "style", void 0);
150
- /**
151
- * 标题
152
- * @public
153
- * @defaultValue ''
150
+ /**
151
+ * 标题
152
+ * @public
153
+ * @defaultValue ''
154
154
  */ _define_property(this, "caption", void 0);
155
- /**
156
- * 标题
157
- * @public
158
- * @defaultValue ''
155
+ /**
156
+ * 标题
157
+ * @public
158
+ * @defaultValue ''
159
159
  */ _define_property(this, "defaultState", void 0);
160
160
  var _props_isHide;
161
161
  this.isHide = (_props_isHide = props === null || props === void 0 ? void 0 : props.isHide) !== null && _props_isHide !== void 0 ? _props_isHide : false;
@@ -44,8 +44,7 @@ var Control = /*#__PURE__*/ function _target() {
44
44
  "use strict";
45
45
  function Control(props) {
46
46
  _class_call_check(this, Control);
47
- _define_property(this, "id", void 0 // 唯一标识符
48
- );
47
+ _define_property(this, "id", void 0); // 唯一标识符
49
48
  _define_property(this, "type", void 0);
50
49
  _define_property(this, "controlType", void 0);
51
50
  _define_property(this, "props", void 0);
@@ -96,9 +96,9 @@ var ColumnControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
96
96
  }
97
97
  return ColumnControlPropertyRules;
98
98
  }(PropertyRules);
99
- /**
100
- * 列基本属性
101
- * @public
99
+ /**
100
+ * 列基本属性
101
+ * @public
102
102
  */ var ColumnControlProperty = /*#__PURE__*/ function(Property) {
103
103
  "use strict";
104
104
  _inherits(ColumnControlProperty, Property);
@@ -107,31 +107,31 @@ var ColumnControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
107
107
  var _this;
108
108
  _this = _call_super(this, ColumnControlProperty, [
109
109
  props
110
- ]), /**
111
- * 宽度类型
112
- * @defaultValue 'auto'
113
- */ _define_property(_this, "widthType", void 0), /**
114
- * 宽度
115
- * @defaultValue 150
116
- */ _define_property(_this, "width", void 0), /**
117
- * 标题
118
- */ _define_property(_this, "caption", void 0), /**
119
- * 绑定数据项
120
- */ _define_property(_this, "dataBind", void 0), /**
121
- * 自适应页面宽度
122
- */ _define_property(_this, "autoWidth", void 0), /**
123
- * 冻结
124
- * @defaultValue 'none'
125
- */ _define_property(_this, "fixed", void 0), /**
126
- * 表头排序
127
- * @defaultValue true
128
- */ _define_property(_this, "sort", void 0), /**
129
- * 对齐
130
- */ _define_property(_this, "align", void 0), /**
131
- * @internal
132
- */ _define_property(_this, "colSpan", void 0), /**
133
- * 自动高度
134
- * @defaultValue false
110
+ ]), /**
111
+ * 宽度类型
112
+ * @defaultValue 'auto'
113
+ */ _define_property(_this, "widthType", void 0), /**
114
+ * 宽度
115
+ * @defaultValue 150
116
+ */ _define_property(_this, "width", void 0), /**
117
+ * 标题
118
+ */ _define_property(_this, "caption", void 0), /**
119
+ * 绑定数据项
120
+ */ _define_property(_this, "dataBind", void 0), /**
121
+ * 自适应页面宽度
122
+ */ _define_property(_this, "autoWidth", void 0), /**
123
+ * 冻结
124
+ * @defaultValue 'none'
125
+ */ _define_property(_this, "fixed", void 0), /**
126
+ * 表头排序
127
+ * @defaultValue true
128
+ */ _define_property(_this, "sort", void 0), /**
129
+ * 对齐
130
+ */ _define_property(_this, "align", void 0), /**
131
+ * @internal
132
+ */ _define_property(_this, "colSpan", void 0), /**
133
+ * 自动高度
134
+ * @defaultValue false
135
135
  */ _define_property(_this, "autoHeight", void 0), _define_property(_this, "children", void 0);
136
136
  var _props_width;
137
137
  _this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : 150;
@@ -184,9 +184,9 @@ var BaseControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRule
184
184
  }
185
185
  return BaseControlPropertyRuntimeRules;
186
186
  }(PropertyRuntimeRules);
187
- /**
188
- * 表单控件公共属性
189
- * @public
187
+ /**
188
+ * 表单控件公共属性
189
+ * @public
190
190
  */ var BaseControlProperty = /*#__PURE__*/ function(Property) {
191
191
  "use strict";
192
192
  _inherits(BaseControlProperty, Property);
@@ -195,59 +195,59 @@ var BaseControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRule
195
195
  var _this;
196
196
  _this = _call_super(this, BaseControlProperty, [
197
197
  props
198
- ]), /**
199
- * 标题
200
- * @defaultValue ''
201
- * @public
202
- */ _define_property(_this, "caption", void 0), /**
203
- * 标题大小
204
- * @defaultValue ''
205
- * @public
206
- */ _define_property(_this, "captionSize", void 0), /**
207
- * 标题颜色
208
- * @defaultValue ''
209
- * @public
210
- */ _define_property(_this, "captionColor", void 0), /**
211
- * 标题斜体
212
- * @defaultValue false
213
- * @public
214
- */ _define_property(_this, "isCaptionItalic", void 0), /**
215
- * 隐藏标题
216
- * @defaultValue false
217
- * @public
218
- */ _define_property(_this, "isHideCaption", void 0), /**
219
- * 显示气泡提示
220
- * @defaultValue false
221
- * @public
222
- */ _define_property(_this, "isShowCaptionTip", void 0), /**
223
- * 气泡提示语
224
- * @defaultValue ''
225
- * @public
226
- */ _define_property(_this, "captionTip", void 0), /**
227
- * 标题布局
228
- * @defaultValue ''
229
- * @public
230
- */ _define_property(_this, "labelPosition", void 0), /**
231
- * 绑定数据项
232
- * @public
233
- */ _define_property(_this, "dataBind", void 0), /**
234
- * 默认值
235
- * @public
236
- */ _define_property(_this, "defaultValue", void 0), /**
237
- * 提示文字
238
- * @defaultValue ''
239
- * @public
240
- */ _define_property(_this, "placeholder", void 0), /**
241
- * 默认状态
242
- * @defaultValue 'default'
243
- * @public
244
- */ _define_property(_this, "defaultState", void 0), /**
245
- * 必填
246
- * @defaultValue false
247
- * @public
248
- */ _define_property(_this, "required", void 0), /**
249
- * 必填提示文案
250
- * @defaultValue ''
198
+ ]), /**
199
+ * 标题
200
+ * @defaultValue ''
201
+ * @public
202
+ */ _define_property(_this, "caption", void 0), /**
203
+ * 标题大小
204
+ * @defaultValue ''
205
+ * @public
206
+ */ _define_property(_this, "captionSize", void 0), /**
207
+ * 标题颜色
208
+ * @defaultValue ''
209
+ * @public
210
+ */ _define_property(_this, "captionColor", void 0), /**
211
+ * 标题斜体
212
+ * @defaultValue false
213
+ * @public
214
+ */ _define_property(_this, "isCaptionItalic", void 0), /**
215
+ * 隐藏标题
216
+ * @defaultValue false
217
+ * @public
218
+ */ _define_property(_this, "isHideCaption", void 0), /**
219
+ * 显示气泡提示
220
+ * @defaultValue false
221
+ * @public
222
+ */ _define_property(_this, "isShowCaptionTip", void 0), /**
223
+ * 气泡提示语
224
+ * @defaultValue ''
225
+ * @public
226
+ */ _define_property(_this, "captionTip", void 0), /**
227
+ * 标题布局
228
+ * @defaultValue ''
229
+ * @public
230
+ */ _define_property(_this, "labelPosition", void 0), /**
231
+ * 绑定数据项
232
+ * @public
233
+ */ _define_property(_this, "dataBind", void 0), /**
234
+ * 默认值
235
+ * @public
236
+ */ _define_property(_this, "defaultValue", void 0), /**
237
+ * 提示文字
238
+ * @defaultValue ''
239
+ * @public
240
+ */ _define_property(_this, "placeholder", void 0), /**
241
+ * 默认状态
242
+ * @defaultValue 'default'
243
+ * @public
244
+ */ _define_property(_this, "defaultState", void 0), /**
245
+ * 必填
246
+ * @defaultValue false
247
+ * @public
248
+ */ _define_property(_this, "required", void 0), /**
249
+ * 必填提示文案
250
+ * @defaultValue ''
251
251
  */ _define_property(_this, "requiredMessage", void 0);
252
252
  var _props_caption;
253
253
  _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : '';