@byteluck-fe/model-driven-controls 7.0.0-props.92 → 7.0.0-props.94

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.
@@ -14,7 +14,8 @@ 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
+ export { default as BarChart } from './baseControls/BarChart/property';
18
+ export { default as PieChart } from './baseControls/PieChart/property';
18
19
  export { default as ListViewSelect } from './baseControls/ListViewSelect/property';
19
20
  export { default as TextOcrButton } from './baseControls/TextOcrButton/property';
20
21
  export { default as InvoiceCheckButton } from './baseControls/InvoiceCheckButton/property';
@@ -1,13 +1,13 @@
1
1
  import { DesignerControl, Schema, SettingOption } from '@byteluck-fe/model-driven-core';
2
- import ChartProperty from './property';
3
- declare class ChartControl extends DesignerControl {
2
+ import BarChartProperty from './property';
3
+ declare class BarChartControl extends DesignerControl {
4
4
  static get controlName(): string;
5
5
  static get controlIcon(): string;
6
6
  static get controlType(): string;
7
7
  static get controlCustomAttributes(): never[];
8
8
  static readonly setting: SettingOption[];
9
- props: ChartProperty;
10
- constructor(props?: Partial<Schema<'chart'>>);
9
+ props: BarChartProperty;
10
+ constructor(props?: Partial<Schema<'bar-chart'>>);
11
11
  }
12
- export default ChartControl;
13
- export { ChartControl as DesignerChartControl };
12
+ export default BarChartControl;
13
+ export { BarChartControl as DesignerBarChartControl };
@@ -1,13 +1,13 @@
1
1
  import { MultistageFillingItem, Property, PropertyInterface, TreeDataSourceBind } from '@byteluck-fe/model-driven-core';
2
- type ChartDataMode = 'static' | 'dynamic';
3
- interface ChartYFieldItem {
2
+ type BarChartDataMode = 'static' | 'dynamic';
3
+ interface BarChartYFieldItem {
4
4
  field: string;
5
5
  name: string;
6
6
  }
7
- interface ChartPropertyInterface extends PropertyInterface {
7
+ interface BarChartPropertyInterface extends PropertyInterface {
8
8
  /**
9
9
  * 标题
10
- * @defaultValue '图表'
10
+ * @defaultValue '柱状图'
11
11
  * @public
12
12
  */
13
13
  caption: string;
@@ -46,7 +46,7 @@ interface ChartPropertyInterface extends PropertyInterface {
46
46
  * @defaultValue 'static'
47
47
  * @public
48
48
  */
49
- dataMode: ChartDataMode;
49
+ dataMode: BarChartDataMode;
50
50
  /**
51
51
  * 图表 option JSON
52
52
  * @defaultValue '{}'
@@ -61,13 +61,13 @@ interface ChartPropertyInterface extends PropertyInterface {
61
61
  optionConfig: 'datasource';
62
62
  /**
63
63
  * 数据源绑定
64
- * @defaultValue new TreeDataSourceBind({ attributes: ChartControl.controlCustomAttributes })
64
+ * @defaultValue new TreeDataSourceBind({ attributes: BarChartControl.controlCustomAttributes })
65
65
  * @public
66
66
  */
67
67
  datasourceBind: TreeDataSourceBind;
68
68
  /**
69
69
  * 筛选项数据源绑定
70
- * @defaultValue new TreeDataSourceBind({ attributes: ChartControl.controlCustomAttributes })
70
+ * @defaultValue new TreeDataSourceBind({ attributes: BarChartControl.controlCustomAttributes })
71
71
  * @public
72
72
  */
73
73
  filterItemDatasourceBind: TreeDataSourceBind;
@@ -106,7 +106,7 @@ interface ChartPropertyInterface extends PropertyInterface {
106
106
  * @defaultValue []
107
107
  * @public
108
108
  */
109
- yFields: ChartYFieldItem[];
109
+ yFields: BarChartYFieldItem[];
110
110
  /**
111
111
  * 分组字段
112
112
  * @defaultValue ''
@@ -126,14 +126,14 @@ interface ChartPropertyInterface extends PropertyInterface {
126
126
  */
127
127
  valueField: string;
128
128
  }
129
- declare class ChartProperty extends Property implements ChartPropertyInterface {
129
+ declare class BarChartProperty extends Property implements BarChartPropertyInterface {
130
130
  caption: string;
131
131
  isHideCaption: boolean;
132
132
  isShowCaptionTip: boolean;
133
133
  captionTip: string;
134
134
  isHide: boolean;
135
135
  template: string;
136
- dataMode: ChartDataMode;
136
+ dataMode: BarChartDataMode;
137
137
  optionJson: string;
138
138
  optionConfig: 'datasource';
139
139
  datasourceBind: TreeDataSourceBind;
@@ -143,12 +143,12 @@ declare class ChartProperty extends Property implements ChartPropertyInterface {
143
143
  openMultistageFilling: boolean;
144
144
  xField: string;
145
145
  yField: string;
146
- yFields: ChartYFieldItem[];
146
+ yFields: BarChartYFieldItem[];
147
147
  groupField: string;
148
148
  nameField: string;
149
149
  valueField: string;
150
- constructor(props?: Partial<ChartProperty>);
150
+ constructor(props?: Partial<BarChartProperty>);
151
151
  }
152
- export default ChartProperty;
153
- export type { ChartDataMode, ChartPropertyInterface, ChartYFieldItem };
154
- export { ChartProperty };
152
+ export default BarChartProperty;
153
+ export type { BarChartDataMode, BarChartPropertyInterface, BarChartYFieldItem };
154
+ export { BarChartProperty };
@@ -0,0 +1,9 @@
1
+ import { RuntimeControl, Schema } from '@byteluck-fe/model-driven-core';
2
+ import BarChartProperty from './property';
3
+ declare class BarChartControl extends RuntimeControl {
4
+ static get controlType(): string;
5
+ props: BarChartProperty;
6
+ constructor(props?: Partial<Schema<'bar-chart'>>);
7
+ }
8
+ export default BarChartControl;
9
+ export { BarChartControl as RuntimeBarChartControl };
@@ -0,0 +1,13 @@
1
+ import { DesignerControl, Schema, SettingOption } from '@byteluck-fe/model-driven-core';
2
+ import PieChartProperty from './property';
3
+ declare class PieChartControl 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: PieChartProperty;
10
+ constructor(props?: Partial<Schema<'pie-chart'>>);
11
+ }
12
+ export default PieChartControl;
13
+ export { PieChartControl as DesignerPieChartControl };
@@ -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 PieChartDataMode = 'static' | 'dynamic';
3
+ interface PieChartYFieldItem {
4
+ field: string;
5
+ name: string;
6
+ }
7
+ interface PieChartPropertyInterface 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 'pie-rounded-ring'
41
+ * @public
42
+ */
43
+ template: string;
44
+ /**
45
+ * 数据模式;取值:static:静态数据;dynamic:动态数据源;
46
+ * @defaultValue 'static'
47
+ * @public
48
+ */
49
+ dataMode: PieChartDataMode;
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: PieChartControl.controlCustomAttributes })
65
+ * @public
66
+ */
67
+ datasourceBind: TreeDataSourceBind;
68
+ /**
69
+ * 筛选项数据源绑定
70
+ * @defaultValue new TreeDataSourceBind({ attributes: PieChartControl.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: PieChartYFieldItem[];
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 PieChartProperty extends Property implements PieChartPropertyInterface {
130
+ caption: string;
131
+ isHideCaption: boolean;
132
+ isShowCaptionTip: boolean;
133
+ captionTip: string;
134
+ isHide: boolean;
135
+ template: string;
136
+ dataMode: PieChartDataMode;
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: PieChartYFieldItem[];
147
+ groupField: string;
148
+ nameField: string;
149
+ valueField: string;
150
+ constructor(props?: Partial<PieChartProperty>);
151
+ }
152
+ export default PieChartProperty;
153
+ export type { PieChartDataMode, PieChartPropertyInterface, PieChartYFieldItem };
154
+ export { PieChartProperty };
@@ -0,0 +1,9 @@
1
+ import { RuntimeControl, Schema } from '@byteluck-fe/model-driven-core';
2
+ import PieChartProperty from './property';
3
+ declare class PieChartControl extends RuntimeControl {
4
+ static get controlType(): string;
5
+ props: PieChartProperty;
6
+ constructor(props?: Partial<Schema<'pie-chart'>>);
7
+ }
8
+ export default PieChartControl;
9
+ export { PieChartControl as RuntimePieChartControl };
@@ -30,8 +30,10 @@ 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
+ export { default as BarChart } from './BarChart';
34
+ export type { BarChartPropertyInterface } from './BarChart';
35
+ export { default as PieChart } from './PieChart';
36
+ export type { PieChartPropertyInterface } from './PieChart';
35
37
  export { default as ListViewSelect } from './ListViewSelect';
36
38
  export type { ListViewSelectPropertyInterface } from './ListViewSelect';
37
39
  export { default as TextOcrButton } from './TextOcrButton';
@@ -1,4 +1,4 @@
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';
1
+ import { Divider, Text, Link, Iframe, Button, Title, CreateFormListButton, BatchSubmissionListButton, SubmissionRecordListButton, ImportRecordListButton, ExportRecordListButton, ExportListButton, FormSelectButton, ListSelectButton, Pagination, Dashboard, BarChart, PieChart, 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,7 +23,8 @@ 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
+ 'bar-chart': typeof BarChart;
27
+ 'pie-chart': typeof PieChart;
27
28
  'list-view-select': typeof ListViewSelect;
28
29
  'text-ocr-button': typeof TextOcrButton;
29
30
  '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.92",
3
+ "version": "7.0.0-props.94",
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.72",
30
- "@byteluck-fe/model-driven-settings": "7.0.0-props.72",
31
- "@byteluck-fe/model-driven-shared": "7.0.0-props.72",
29
+ "@byteluck-fe/model-driven-core": "7.0.0-props.94",
30
+ "@byteluck-fe/model-driven-settings": "7.0.0-props.94",
31
+ "@byteluck-fe/model-driven-shared": "7.0.0-props.94",
32
32
  "async-validator": "3.5.1"
33
33
  },
34
- "gitHead": "67cd8bc4c29bc4b2ebfc7da4e7ba85f3396485b0"
34
+ "gitHead": "06eb423735c35d0dbb0bb16f3d2030ac53f8633c"
35
35
  }
@@ -1,9 +0,0 @@
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 };