@byteluck-fe/model-driven-controls 2.3.0 → 2.3.1-beta.13

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 (62) hide show
  1. package/dist/esm/api-doc-index.js +88 -0
  2. package/dist/esm/baseControls/ListSelectButton/designer.js +2 -1
  3. package/dist/esm/baseControls/ListSelectButton/property.js +4 -1
  4. package/dist/esm/columnControls/ArrayColumn/property.js +11 -3
  5. package/dist/esm/columnControls/AutoNumberColumn/property.js +4 -1
  6. package/dist/esm/columnControls/CustomColumn/property.js +4 -1
  7. package/dist/esm/columnControls/DecimalColumn/property.js +4 -1
  8. package/dist/esm/columnControls/DepartmentColumn/property.js +4 -1
  9. package/dist/esm/columnControls/EmployeeColumn/property.js +4 -1
  10. package/dist/esm/columnControls/FileColumn/property.js +3 -1
  11. package/dist/esm/columnControls/ImageColumn/property.js +3 -1
  12. package/dist/esm/columnControls/LocationColumn/property.js +4 -1
  13. package/dist/esm/columnControls/OperationColumn/property.js +4 -1
  14. package/dist/esm/columnControls/OrderColumn/property.js +4 -1
  15. package/dist/esm/columnControls/PeopleColumn/property.js +3 -1
  16. package/dist/esm/columnControls/TextColumn/property.js +4 -1
  17. package/dist/esm/columnControls/TimescopeColumn/property.js +4 -1
  18. package/dist/esm/columnControls/TimestampColumn/property.js +4 -1
  19. package/dist/esm/columnControls/VarcharColumn/property.js +4 -1
  20. package/dist/esm/formControls/Input/property.js +4 -1
  21. package/dist/esm/formControls/Number/property.js +4 -1
  22. package/dist/esm/formControls/SelectRelation/designer.js +6 -0
  23. package/dist/esm/formControls/SelectRelation/property.js +4 -1
  24. package/dist/esm/formControls/Textarea/property.js +4 -1
  25. package/dist/esm/layoutControls/DataView/property.js +7 -2
  26. package/dist/esm/layoutControls/ListView/property.js +10 -3
  27. package/dist/esm/layoutControls/SubTableColumn/property.js +0 -4
  28. package/dist/esm/listControls/GridTable/property.js +4 -1
  29. package/dist/esm/listControls/SubTable/designer.js +1 -0
  30. package/dist/esm/listControls/SubTable/property.js +5 -2
  31. package/dist/esm/searchControls/SimpleSearch/property.js +4 -1
  32. package/dist/index.umd.js +1 -1
  33. package/dist/types/api-doc-index.d.ts +88 -0
  34. package/dist/types/baseControls/ListSelectButton/property.d.ts +16 -0
  35. package/dist/types/columnControls/ArrayColumn/property.d.ts +22 -1
  36. package/dist/types/columnControls/AutoNumberColumn/property.d.ts +4 -0
  37. package/dist/types/columnControls/CustomColumn/property.d.ts +4 -0
  38. package/dist/types/columnControls/DecimalColumn/property.d.ts +23 -3
  39. package/dist/types/columnControls/DepartmentColumn/property.d.ts +6 -0
  40. package/dist/types/columnControls/EmployeeColumn/property.d.ts +8 -0
  41. package/dist/types/columnControls/FileColumn/property.d.ts +3 -0
  42. package/dist/types/columnControls/ImageColumn/property.d.ts +3 -0
  43. package/dist/types/columnControls/LocationColumn/property.d.ts +4 -0
  44. package/dist/types/columnControls/OperationColumn/property.d.ts +14 -0
  45. package/dist/types/columnControls/OrderColumn/property.d.ts +4 -0
  46. package/dist/types/columnControls/PeopleColumn/property.d.ts +3 -0
  47. package/dist/types/columnControls/TextColumn/property.d.ts +12 -1
  48. package/dist/types/columnControls/TimescopeColumn/property.d.ts +6 -0
  49. package/dist/types/columnControls/TimestampColumn/property.d.ts +6 -0
  50. package/dist/types/columnControls/VarcharColumn/property.d.ts +15 -1
  51. package/dist/types/formControls/Input/property.d.ts +33 -0
  52. package/dist/types/formControls/Number/property.d.ts +31 -1
  53. package/dist/types/formControls/SelectRelation/designer.d.ts +1 -0
  54. package/dist/types/formControls/SelectRelation/property.d.ts +40 -1
  55. package/dist/types/formControls/Textarea/property.d.ts +24 -0
  56. package/dist/types/layoutControls/DataView/property.d.ts +16 -0
  57. package/dist/types/layoutControls/ListView/property.d.ts +63 -0
  58. package/dist/types/layoutControls/SubTableColumn/property.d.ts +2 -11
  59. package/dist/types/listControls/GridTable/property.d.ts +28 -0
  60. package/dist/types/listControls/SubTable/property.d.ts +46 -11
  61. package/dist/types/searchControls/SimpleSearch/property.d.ts +32 -0
  62. package/package.json +5 -5
@@ -2,14 +2,30 @@ import { LayoutControlProperty, PropertyRuntimeRules, DataSourceBind, OperationI
2
2
  declare class DataViewControlPropertyRuntimeRules extends PropertyRuntimeRules {
3
3
  constructor(props: DataViewControlProperty);
4
4
  }
5
+ /**
6
+ * DataView 表单页
7
+ * @public
8
+ */
5
9
  declare class DataViewControlProperty extends LayoutControlProperty {
10
+ /**
11
+ * @internal
12
+ */
6
13
  static readonly RuntimeRules: typeof DataViewControlPropertyRuntimeRules;
7
14
  save: OperationItem;
8
15
  cancel: OperationItem;
9
16
  saveAs: OperationItem;
10
17
  print: OperationItem;
11
18
  custom: OperationItem[];
19
+ /**
20
+ * 加载中
21
+ * @defaultValue false
22
+ * @public
23
+ */
12
24
  isLoading: boolean;
25
+ /**
26
+ * 绑定业务模型
27
+ * @public
28
+ */
13
29
  datasourceBind: DataSourceBind;
14
30
  constructor(props?: Partial<DataViewControlProperty>);
15
31
  }
@@ -1,30 +1,93 @@
1
1
  import { RuleItem } from 'async-validator';
2
2
  import { LayoutControlProperty, PropertyRules, PropertyRuntimeRules, DataSourceBind, SubListPageConfig } from '@byteluck-fe/model-driven-core';
3
+ /**
4
+ * @internal
5
+ */
3
6
  export declare enum TriggerType {
4
7
  CLICK_ROW = 1,
5
8
  CLICK_CELL = 2
6
9
  }
10
+ /**
11
+ * @internal
12
+ */
7
13
  declare class ListViewControlPropertyRuntimeRules extends PropertyRuntimeRules {
8
14
  constructor(props: ListViewControlProperty);
9
15
  }
16
+ /**
17
+ * @internal
18
+ */
10
19
  declare class ListViewControlPropertyRules extends PropertyRules {
11
20
  triggerFieldCode: RuleItem;
12
21
  datasourceBind: RuleItem;
13
22
  constructor(props: ListViewControlProperty);
14
23
  }
24
+ /**
25
+ * ListView 列表
26
+ * @public
27
+ */
15
28
  declare class ListViewControlProperty extends LayoutControlProperty {
16
29
  static readonly Rules: typeof ListViewControlPropertyRules;
17
30
  static readonly RuntimeRules: typeof ListViewControlPropertyRuntimeRules;
31
+ /**
32
+ * 数据高级设置
33
+ * @public
34
+ */
18
35
  datasourceBind: DataSourceBind;
36
+ /**
37
+ * 加载中
38
+ * @defaultValue false
39
+ * @public
40
+ */
19
41
  isLoading: boolean;
42
+ /**
43
+ * 显示明细表
44
+ * @defaultValue false
45
+ * @public
46
+ */
20
47
  isShowSubList: boolean;
48
+ /**
49
+ * 触发时机 1=整行,2=字段
50
+ * @defaultValue 1
51
+ * @public
52
+ */
21
53
  triggerType: TriggerType;
54
+ /**
55
+ * 触发字段
56
+ * @public
57
+ */
22
58
  triggerFieldCode: string;
59
+ /**
60
+ * 抽屉内容配置
61
+ * @public
62
+ */
23
63
  sublistPage: SubListPageConfig;
64
+ /**
65
+ * @internal
66
+ */
24
67
  showType: 'stretch' | 'shrink';
68
+ /**
69
+ * 全屏显示
70
+ * @defaultValue false
71
+ * @public
72
+ */
25
73
  showFullScreen: boolean;
74
+ /**
75
+ * 固定表头
76
+ * @defaultValue false
77
+ * @public
78
+ */
26
79
  isFixedHeader: boolean;
80
+ /**
81
+ * 加载全部数据
82
+ * @defaultValue true
83
+ * @public
84
+ */
27
85
  isAllLoaded: boolean;
86
+ /**
87
+ * 计数模式
88
+ * @defaultValue 'async'
89
+ * @public
90
+ */
28
91
  countType?: 'sync' | 'async' | 'none';
29
92
  constructor(props?: Partial<ListViewControlProperty>);
30
93
  }
@@ -9,19 +9,10 @@ declare class SubTableColumnControlPropertyRules extends PropertyRules {
9
9
  declare class SubTableColumnControlProperty extends LayoutControlProperty {
10
10
  static readonly Rules: typeof SubTableColumnControlPropertyRules;
11
11
  /**
12
- * 设置宽度类型
13
- * px 像素 auto 自适应 percent百分比
14
- * */
15
- widthType: 'px' | 'auto' | 'percent';
16
- /**
17
- * 设置宽度在移动和pc 宽度
18
- * pc 电脑端 mobile 手机端
12
+ * 设置宽度在移动和pc - 宽度
13
+ * pc 电脑端 mobile -手机端
19
14
  * */
20
15
  metaAutoWidth: MetaAutoWidth;
21
- /**
22
- * 列宽
23
- * */
24
- width: number;
25
16
  /**
26
17
  * 列标题
27
18
  * */
@@ -2,11 +2,39 @@ import { DesignerColumnControl, ListControlProperty, RuntimeColumnControl } from
2
2
  import { ColumnControlsKeys, MODE, Schema } from '@byteluck-fe/model-driven-core';
3
3
  import { DesignerGridTableControl } from './designer';
4
4
  import { RuntimeGridTableControl } from './runtime';
5
+ /**
6
+ * GridTable 表格组件
7
+ * @public
8
+ */
5
9
  declare class GridTableControlProperty<Mode extends MODE | 'Schema', Control extends object = Mode extends 'Runtime' ? RuntimeColumnControl : Mode extends 'Designer' ? DesignerColumnControl : Schema<ColumnControlsKeys>> extends ListControlProperty<Mode, Control> {
10
+ /**
11
+ * 冻结表头
12
+ * @defaultValue false
13
+ * @public
14
+ */
6
15
  isFixedHeader: boolean;
16
+ /**
17
+ * 选择类型
18
+ * @public
19
+ */
7
20
  selectionType: undefined | 'checkbox' | 'radio';
21
+ /**
22
+ * 显示工具栏
23
+ * @defaultValue true
24
+ * @public
25
+ */
8
26
  isShowToolbar: boolean;
27
+ /**
28
+ * 显示选择框
29
+ * @defaultValue false
30
+ * @public
31
+ */
9
32
  isShowSelection: boolean;
33
+ /**
34
+ * 显示自定义表头
35
+ * @defaultValue true
36
+ * @public
37
+ */
10
38
  isShowCustomColumns: boolean;
11
39
  constructor(parent: DesignerGridTableControl | RuntimeGridTableControl, props?: Partial<GridTableControlProperty<Mode> & {
12
40
  headers: Control[];
@@ -15,6 +15,10 @@ declare class SubTableControlPropertyRules extends PropertyRules {
15
15
  declare class SubtableControlRuntimeRules extends PropertyRuntimeRules {
16
16
  constructor(props: SubTableControlProperty<'Runtime'>);
17
17
  }
18
+ /**
19
+ * SubTable 明细表
20
+ * @public
21
+ */
18
22
  declare class SubTableControlProperty<Mode extends MODE | 'Schema', Control extends object = Mode extends 'Runtime' ? RuntimeSubTableColumnControl : Mode extends 'Designer' ? DesignerSubTableColumnControl : Schema<'subtable-column'>> extends ListControlProperty<Mode, Control> {
19
23
  static readonly Rules: typeof SubTableControlPropertyRules;
20
24
  static readonly RuntimeRules: typeof SubtableControlRuntimeRules;
@@ -23,54 +27,81 @@ declare class SubTableControlProperty<Mode extends MODE | 'Schema', Control exte
23
27
  * */
24
28
  caption: string;
25
29
  /**
26
- * 标题布局 top和left
30
+ * 标题布局
31
+ * @defaultValue 'top'
32
+ * @public
27
33
  * */
28
34
  labelPosition: 'top' | 'left';
29
35
  /**
30
- * 是否隐藏标题
36
+ * 隐藏标题
37
+ * @defaultValue false
38
+ * @public
31
39
  * */
32
40
  isHideCaption: boolean;
33
41
  /**
34
- * 是否开启气泡提示
42
+ * 开启气泡提示
43
+ * @defaultValue false
44
+ * @public
35
45
  * */
36
46
  isShowCaptionTip: boolean;
37
47
  /**
38
48
  * 气泡提示语
49
+ * @defaultValue ''
50
+ * @public
39
51
  * */
40
52
  captionTip: string;
41
53
  /**
42
- * 默认状态 default普通 readonly只读
54
+ * 默认状态 default=普通 readonly=只读
55
+ * @defaultValue 'default'
56
+ * @public
43
57
  * */
44
58
  defaultState: 'default' | 'readonly';
45
59
  /**
46
60
  * 最小填写行数,并且是默认行数
61
+ * @defaultValue 1
62
+ * @public
47
63
  * */
48
64
  limitRows: number;
65
+ /**
66
+ * 默认填写行数
67
+ * @defaultValue 1
68
+ * @public
69
+ * */
49
70
  defaultRows: number;
50
71
  /**
51
72
  * 绑定数据源
73
+ * @public
52
74
  * */
53
75
  datasourceBind: DataSourceBind;
54
76
  /**
55
- * 打印配置
56
- * col纵向打印 row横向打印
77
+ * 打印配置 col=纵向打印|row=横向打印
78
+ * @defaultValue 'row'
79
+ * @public
57
80
  * */
58
81
  printMode: 'col' | 'row';
59
82
  /**
60
83
  * 打开方式(查看,编辑,创建)
61
- * default列表模式 modal表单模式
84
+ * default列表模式|modal表单模式
85
+ * @defaultValue 'default'
86
+ * @public
62
87
  * */
63
88
  openType: 'default' | 'modal' | 'dialog';
64
89
  /**
65
- * openedMode = form的时候,formKey为绑定的表单
90
+ * openType=modal表单模式,formKey为绑定的表单
91
+ * @defaultValue ''
92
+ * @public
66
93
  * */
67
94
  formKey: string;
68
95
  /**
69
96
  * 使用自定义高度
97
+ * @defaultValue false
98
+ * @public
70
99
  * */
71
100
  useCustomHeight: boolean;
72
101
  /**
73
102
  * 用户自定义最大高度,默认480
103
+ * @defaultValue 480
104
+ * @public
74
105
  * */
75
106
  maxHeight: number;
76
107
  /**
@@ -102,13 +133,15 @@ declare class SubTableControlProperty<Mode extends MODE | 'Schema', Control exte
102
133
  * */
103
134
  canClear: boolean;
104
135
  /**
105
- * 移动端展现形式
106
- * tile 平铺 list列表
136
+ * 移动端展现形式 tile=平铺|list=列表
137
+ * @defaultValue 'list'
138
+ * @public
107
139
  * */
108
140
  mobileShowType: 'tile' | 'list';
109
141
  /**
110
142
  * 数据收起简述
111
- * tile 平铺 list列表
143
+ * @defaultValue
144
+ * @public
112
145
  * */
113
146
  dataStorageDoc: DataStorageDoc;
114
147
  /**
@@ -117,6 +150,8 @@ declare class SubTableControlProperty<Mode extends MODE | 'Schema', Control exte
117
150
  serverPagination: boolean;
118
151
  /**
119
152
  * 固定列 字段
153
+ * @defaultValue []
154
+ * @public
120
155
  * */
121
156
  fixedColumn: string[];
122
157
  constructor(parent: DesignerSubTableControl | RuntimeSubTableControl, props?: Partial<SubTableControlProperty<Mode> & {
@@ -7,14 +7,46 @@ interface queryTypeMap {
7
7
  declare class SimpleSearchControlPropertyRuntimeRules extends PropertyRuntimeRules {
8
8
  constructor(props: SimpleSearchControlProperty);
9
9
  }
10
+ /**
11
+ * SimpleSearch 搜索栏
12
+ * @public
13
+ */
10
14
  declare class SimpleSearchControlProperty extends SearchControlProperty {
15
+ /**
16
+ * 查询按钮
17
+ * @public
18
+ */
11
19
  search: OperationItem;
12
20
  static readonly RuntimeRules: typeof SimpleSearchControlPropertyRuntimeRules;
21
+ /**
22
+ * 取消按钮
23
+ * @public
24
+ */
13
25
  cancel: OperationItem;
26
+ /**
27
+ * 标题布局
28
+ * @defaultValue 'top'
29
+ * @public
30
+ */
14
31
  labelPosition: 'top' | 'left';
32
+ /**
33
+ * 默认状态
34
+ * @defaultValue 'mini'
35
+ * @public
36
+ */
15
37
  viewType: 'mini' | 'full';
38
+ /**
39
+ * 加载中
40
+ * @defaultValue false
41
+ * @public
42
+ */
16
43
  isLoading: boolean;
17
44
  custom: OperationItem[];
45
+ /**
46
+ * 筛选条件-查询设置
47
+ * @defaultValue []
48
+ * @public
49
+ */
18
50
  queryTypeMap: queryTypeMap[];
19
51
  constructor(props?: Partial<SimpleSearchControlProperty>);
20
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-controls",
3
- "version": "2.3.0",
3
+ "version": "2.3.1-beta.13",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -26,10 +26,10 @@
26
26
  "postpublish": "node ../../scripts/postpublish.js"
27
27
  },
28
28
  "dependencies": {
29
- "@byteluck-fe/model-driven-core": "2.2.2-beta.17",
30
- "@byteluck-fe/model-driven-settings": "2.2.2-beta.17",
31
- "@byteluck-fe/model-driven-shared": "2.2.2-beta.14",
29
+ "@byteluck-fe/model-driven-core": "2.3.1-beta.8",
30
+ "@byteluck-fe/model-driven-settings": "2.3.1-beta.8",
31
+ "@byteluck-fe/model-driven-shared": "2.3.1-beta.6",
32
32
  "async-validator": "3.5.1"
33
33
  },
34
- "gitHead": "e5c5408e9ef3166a7d348e48f15c7bcf596ccb29"
34
+ "gitHead": "170ba33c4385b0375a6e70ac269d95ce08b9bae1"
35
35
  }