@byteluck-fe/model-driven-controls 7.0.0-props.71 → 7.0.0-props.73
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/api-doc-index.js +1 -0
- package/dist/esm/baseControls/Chart/designer.js +161 -0
- package/dist/esm/baseControls/Chart/index.js +11 -0
- package/dist/esm/baseControls/Chart/property.js +119 -0
- package/dist/esm/baseControls/Chart/runtime.js +112 -0
- package/dist/esm/baseControls/index.js +1 -0
- package/dist/esm/formControls/Slider/property.js +5 -6
- package/dist/index.umd.js +1 -1
- package/dist/types/api-doc-index.d.ts +1 -0
- package/dist/types/baseControls/Chart/designer.d.ts +13 -0
- package/dist/types/baseControls/Chart/index.d.ts +12 -0
- package/dist/types/baseControls/Chart/property.d.ts +154 -0
- package/dist/types/baseControls/Chart/runtime.d.ts +9 -0
- package/dist/types/baseControls/index.d.ts +2 -0
- package/dist/types/formControls/Slider/property.d.ts +0 -7
- package/dist/types/type.d.ts +2 -1
- package/package.json +5 -5
|
@@ -14,6 +14,7 @@ export { default as FormSelectButton } from './baseControls/FormSelectButton/pro
|
|
|
14
14
|
export { default as ListSelectButton } from './baseControls/ListSelectButton/property';
|
|
15
15
|
export { default as Pagination } from './baseControls/Pagination/property';
|
|
16
16
|
export { default as Dashboard } from './baseControls/Dashboard/property';
|
|
17
|
+
export { default as Chart } from './baseControls/Chart/property';
|
|
17
18
|
export { default as ListViewSelect } from './baseControls/ListViewSelect/property';
|
|
18
19
|
export { default as TextOcrButton } from './baseControls/TextOcrButton/property';
|
|
19
20
|
export { default as InvoiceCheckButton } from './baseControls/InvoiceCheckButton/property';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DesignerControl, Schema, SettingOption } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import ChartProperty from './property';
|
|
3
|
+
declare class ChartControl extends DesignerControl {
|
|
4
|
+
static get controlName(): string;
|
|
5
|
+
static get controlIcon(): string;
|
|
6
|
+
static get controlType(): string;
|
|
7
|
+
static get controlCustomAttributes(): never[];
|
|
8
|
+
static readonly setting: SettingOption[];
|
|
9
|
+
props: ChartProperty;
|
|
10
|
+
constructor(props?: Partial<Schema<'chart'>>);
|
|
11
|
+
}
|
|
12
|
+
export default ChartControl;
|
|
13
|
+
export { ChartControl as DesignerChartControl };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Designer from './designer';
|
|
2
|
+
import Runtime from './runtime';
|
|
3
|
+
import Property from './property';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
Designer: typeof Designer;
|
|
6
|
+
Runtime: typeof Runtime;
|
|
7
|
+
Property: typeof Property;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export * from './designer';
|
|
11
|
+
export * from './runtime';
|
|
12
|
+
export * from './property';
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { MultistageFillingItem, Property, PropertyInterface, TreeDataSourceBind } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
type ChartDataMode = 'static' | 'dynamic';
|
|
3
|
+
interface ChartYFieldItem {
|
|
4
|
+
field: string;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
interface ChartPropertyInterface extends PropertyInterface {
|
|
8
|
+
/**
|
|
9
|
+
* 标题
|
|
10
|
+
* @defaultValue '图表'
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
caption: string;
|
|
14
|
+
/**
|
|
15
|
+
* 是否隐藏标题
|
|
16
|
+
* @defaultValue false
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
isHideCaption: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* 是否显示气泡提示
|
|
22
|
+
* @defaultValue false
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
isShowCaptionTip: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* 气泡提示语
|
|
28
|
+
* @defaultValue ''
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
captionTip: string;
|
|
32
|
+
/**
|
|
33
|
+
* 是否隐藏组件
|
|
34
|
+
* @defaultValue false
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
isHide: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* 图表模板
|
|
40
|
+
* @defaultValue 'bar-basic'
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
template: string;
|
|
44
|
+
/**
|
|
45
|
+
* 数据模式;取值:static:静态数据;dynamic:动态数据源;
|
|
46
|
+
* @defaultValue 'static'
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
dataMode: ChartDataMode;
|
|
50
|
+
/**
|
|
51
|
+
* 图表 option JSON
|
|
52
|
+
* @defaultValue '{}'
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
optionJson: string;
|
|
56
|
+
/**
|
|
57
|
+
* 选项配置方式;取值:datasource:数据源;
|
|
58
|
+
* @defaultValue 'datasource'
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
optionConfig: 'datasource';
|
|
62
|
+
/**
|
|
63
|
+
* 数据源绑定
|
|
64
|
+
* @defaultValue new TreeDataSourceBind({ attributes: ChartControl.controlCustomAttributes })
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
datasourceBind: TreeDataSourceBind;
|
|
68
|
+
/**
|
|
69
|
+
* 筛选项数据源绑定
|
|
70
|
+
* @defaultValue new TreeDataSourceBind({ attributes: ChartControl.controlCustomAttributes })
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
filterItemDatasourceBind: TreeDataSourceBind;
|
|
74
|
+
/**
|
|
75
|
+
* 多级填充
|
|
76
|
+
* @defaultValue []
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
multistageFilling: MultistageFillingItem[];
|
|
80
|
+
/**
|
|
81
|
+
* 默认值
|
|
82
|
+
* @defaultValue []
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
defaultValue: string[];
|
|
86
|
+
/**
|
|
87
|
+
* 是否开启填充
|
|
88
|
+
* @defaultValue false
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
openMultistageFilling: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* X 轴字段
|
|
94
|
+
* @defaultValue ''
|
|
95
|
+
* @public
|
|
96
|
+
*/
|
|
97
|
+
xField: string;
|
|
98
|
+
/**
|
|
99
|
+
* Y 轴字段
|
|
100
|
+
* @defaultValue ''
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
|
+
yField: string;
|
|
104
|
+
/**
|
|
105
|
+
* 多 Y 轴字段
|
|
106
|
+
* @defaultValue []
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
109
|
+
yFields: ChartYFieldItem[];
|
|
110
|
+
/**
|
|
111
|
+
* 分组字段
|
|
112
|
+
* @defaultValue ''
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
groupField: string;
|
|
116
|
+
/**
|
|
117
|
+
* 名称字段
|
|
118
|
+
* @defaultValue ''
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
nameField: string;
|
|
122
|
+
/**
|
|
123
|
+
* 值字段
|
|
124
|
+
* @defaultValue ''
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
valueField: string;
|
|
128
|
+
}
|
|
129
|
+
declare class ChartProperty extends Property implements ChartPropertyInterface {
|
|
130
|
+
caption: string;
|
|
131
|
+
isHideCaption: boolean;
|
|
132
|
+
isShowCaptionTip: boolean;
|
|
133
|
+
captionTip: string;
|
|
134
|
+
isHide: boolean;
|
|
135
|
+
template: string;
|
|
136
|
+
dataMode: ChartDataMode;
|
|
137
|
+
optionJson: string;
|
|
138
|
+
optionConfig: 'datasource';
|
|
139
|
+
datasourceBind: TreeDataSourceBind;
|
|
140
|
+
filterItemDatasourceBind: TreeDataSourceBind;
|
|
141
|
+
multistageFilling: MultistageFillingItem[];
|
|
142
|
+
defaultValue: string[];
|
|
143
|
+
openMultistageFilling: boolean;
|
|
144
|
+
xField: string;
|
|
145
|
+
yField: string;
|
|
146
|
+
yFields: ChartYFieldItem[];
|
|
147
|
+
groupField: string;
|
|
148
|
+
nameField: string;
|
|
149
|
+
valueField: string;
|
|
150
|
+
constructor(props?: Partial<ChartProperty>);
|
|
151
|
+
}
|
|
152
|
+
export default ChartProperty;
|
|
153
|
+
export type { ChartDataMode, ChartPropertyInterface, ChartYFieldItem };
|
|
154
|
+
export { ChartProperty };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RuntimeControl, Schema } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import ChartProperty from './property';
|
|
3
|
+
declare class ChartControl extends RuntimeControl {
|
|
4
|
+
static get controlType(): string;
|
|
5
|
+
props: ChartProperty;
|
|
6
|
+
constructor(props?: Partial<Schema<'chart'>>);
|
|
7
|
+
}
|
|
8
|
+
export default ChartControl;
|
|
9
|
+
export { ChartControl as RuntimeChartControl };
|
|
@@ -30,6 +30,8 @@ export { default as Pagination } from './Pagination';
|
|
|
30
30
|
export type { PaginationPropertyInterface } from './Pagination';
|
|
31
31
|
export { default as Dashboard } from './Dashboard';
|
|
32
32
|
export type { DashboardPropertyInterface } from './Dashboard';
|
|
33
|
+
export { default as Chart } from './Chart';
|
|
34
|
+
export type { ChartPropertyInterface } from './Chart';
|
|
33
35
|
export { default as ListViewSelect } from './ListViewSelect';
|
|
34
36
|
export type { ListViewSelectPropertyInterface } from './ListViewSelect';
|
|
35
37
|
export { default as TextOcrButton } from './TextOcrButton';
|
|
@@ -35,12 +35,6 @@ interface SliderPropertyInterface extends BaseControlPropertyInterface {
|
|
|
35
35
|
* @public
|
|
36
36
|
*/
|
|
37
37
|
showInput: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* 是否显示提示标签
|
|
40
|
-
* @defaultValue true
|
|
41
|
-
* @public
|
|
42
|
-
*/
|
|
43
|
-
showTooltip: boolean;
|
|
44
38
|
/**
|
|
45
39
|
* 是否展示标记
|
|
46
40
|
* @defaultValue false
|
|
@@ -69,7 +63,6 @@ declare class SliderProperty extends BaseControlProperty implements SliderProper
|
|
|
69
63
|
min: number | '';
|
|
70
64
|
max: number | '';
|
|
71
65
|
step: number;
|
|
72
|
-
showTooltip: boolean;
|
|
73
66
|
showInput: boolean;
|
|
74
67
|
showMarks: boolean;
|
|
75
68
|
marks: Array<OptionSetting>;
|
package/dist/types/type.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Divider, Text, Link, Iframe, Button, Title, CreateFormListButton, BatchSubmissionListButton, SubmissionRecordListButton, ImportRecordListButton, ExportRecordListButton, ExportListButton, FormSelectButton, ListSelectButton, Pagination, Dashboard, ListViewSelect, TextOcrButton, InvoiceCheckButton, BatchPrintListButton, BatchPrintRecordListButton, OperationButton, ReferenceList, CommentControl } from './baseControls';
|
|
1
|
+
import { Divider, Text, Link, Iframe, Button, Title, CreateFormListButton, BatchSubmissionListButton, SubmissionRecordListButton, ImportRecordListButton, ExportRecordListButton, ExportListButton, FormSelectButton, ListSelectButton, Pagination, Dashboard, Chart, ListViewSelect, TextOcrButton, InvoiceCheckButton, BatchPrintListButton, BatchPrintRecordListButton, OperationButton, ReferenceList, CommentControl } from './baseControls';
|
|
2
2
|
import { Address, Amount, Attachment, AutoNumber, Checkbox, Cascader, Counter, DatePicker, DateRange, Department, Employee, Image, Input, Number, Slider, Switch, Radio, Score, Select, SelectMultiple, Textarea, RichText, Calc, SearchNumberRange, SearchDateRange, SearchInput, VueFormItem, SelectRelation, TimeRange, TimePicker, Tree, Employee2, ElectronicSignature, WPS, Department2, OrganizationSelection, VuePage, Tag, Barcode, QrCode } from './formControls';
|
|
3
3
|
import { CardGroup, BlankContainer, Col, Grid, GridRow, Row, SubTableColumn, SubTableRow, GridTableColumn, GridLayoutContainer, Tab, TabPane, Toolbox, ListView, DataView, Page, AdvancedContainer, PositioningContainer, Position, ActionBar, Step, StepPane, TableLayout, TableLayoutRow, TableLayoutCol, TableLayoutWrapper, Collapse, CollapsePane } from './layoutControls';
|
|
4
4
|
import { SubTable, GridTable } from './listControls';
|
|
@@ -23,6 +23,7 @@ declare module '@byteluck-fe/model-driven-core' {
|
|
|
23
23
|
'form-select-button': typeof FormSelectButton;
|
|
24
24
|
pagination: typeof Pagination;
|
|
25
25
|
dashboard: typeof Dashboard;
|
|
26
|
+
chart: typeof Chart;
|
|
26
27
|
'list-view-select': typeof ListViewSelect;
|
|
27
28
|
'text-ocr-button': typeof TextOcrButton;
|
|
28
29
|
'invoice-check-button': typeof InvoiceCheckButton;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-controls",
|
|
3
|
-
"version": "7.0.0-props.
|
|
3
|
+
"version": "7.0.0-props.73",
|
|
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": "7.0.0-props.
|
|
30
|
-
"@byteluck-fe/model-driven-settings": "7.0.0-props.
|
|
31
|
-
"@byteluck-fe/model-driven-shared": "7.0.0-props.
|
|
29
|
+
"@byteluck-fe/model-driven-core": "7.0.0-props.72",
|
|
30
|
+
"@byteluck-fe/model-driven-settings": "7.0.0-props.72",
|
|
31
|
+
"@byteluck-fe/model-driven-shared": "7.0.0-props.72",
|
|
32
32
|
"async-validator": "3.5.1"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "65d8cd3d2b67d4110159a6563ad8d1c28f76688f"
|
|
35
35
|
}
|