@byteluck-fe/model-driven-controls 7.0.0-props.100 → 7.0.0-props.102

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.
@@ -15,6 +15,7 @@ export { default as ListSelectButton } from './baseControls/ListSelectButton/pro
15
15
  export { default as Pagination } from './baseControls/Pagination/property';
16
16
  export { default as Dashboard } from './baseControls/Dashboard/property';
17
17
  export { default as BarChart } from './baseControls/BarChart/property';
18
+ export { default as LineChart } from './baseControls/LineChart/property';
18
19
  export { default as PieChart } from './baseControls/PieChart/property';
19
20
  export { default as ListViewSelect } from './baseControls/ListViewSelect/property';
20
21
  export { default as TextOcrButton } from './baseControls/TextOcrButton/property';
@@ -1,4 +1,5 @@
1
1
  import { MultistageFillingItem, Property, PropertyInterface, TreeDataSourceBind } from '@byteluck-fe/model-driven-core';
2
+ import { FONT_WEIGHT } from '../../framework';
2
3
  type BarChartDataMode = 'static' | 'dynamic';
3
4
  interface BarChartYFieldItem {
4
5
  field: string;
@@ -35,6 +36,30 @@ interface BarChartPropertyInterface extends PropertyInterface {
35
36
  * @public
36
37
  */
37
38
  captionTip: string;
39
+ /**
40
+ * 标题大小
41
+ * @defaultValue ''
42
+ * @public
43
+ */
44
+ captionSize: string;
45
+ /**
46
+ * 标题颜色
47
+ * @defaultValue ''
48
+ * @public
49
+ */
50
+ captionColor: string;
51
+ /**
52
+ * 标题斜体
53
+ * @defaultValue false
54
+ * @public
55
+ */
56
+ isCaptionItalic: boolean;
57
+ /**
58
+ * 标题字重;取值:normal:常规;bold:粗体;lighter:更细;
59
+ * @defaultValue 'normal'
60
+ * @public
61
+ */
62
+ captionFontWeight: FONT_WEIGHT;
38
63
  /**
39
64
  * 是否隐藏组件
40
65
  * @defaultValue false
@@ -119,6 +144,10 @@ declare class BarChartProperty extends Property implements BarChartPropertyInter
119
144
  isHideCaption: boolean;
120
145
  isShowCaptionTip: boolean;
121
146
  captionTip: string;
147
+ captionSize: string;
148
+ captionColor: string;
149
+ isCaptionItalic: boolean;
150
+ captionFontWeight: FONT_WEIGHT;
122
151
  isHide: boolean;
123
152
  template: string;
124
153
  dataMode: BarChartDataMode;
@@ -0,0 +1,14 @@
1
+ import { DesignerControl, Schema, SettingOption } from '@byteluck-fe/model-driven-core';
2
+ import LineChartProperty from './property';
3
+ declare class LineChartControl 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 controlEventKeys: string[];
9
+ static readonly setting: SettingOption[];
10
+ props: LineChartProperty;
11
+ constructor(props?: Partial<Schema<'line-chart'>>);
12
+ }
13
+ export default LineChartControl;
14
+ export { LineChartControl as DesignerLineChartControl };
@@ -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,171 @@
1
+ import { MultistageFillingItem, Property, PropertyInterface, TreeDataSourceBind } from '@byteluck-fe/model-driven-core';
2
+ import { FONT_WEIGHT } from '../../framework';
3
+ type LineChartDataMode = 'static' | 'dynamic';
4
+ declare enum LineChartTemplate {
5
+ LINE_BASIC = "line-basic",
6
+ LINE_SMOOTH = "line-smooth",
7
+ LINE_AREA = "line-area",
8
+ LINE_STACKED = "line-stacked",
9
+ LINE_STACKED_AREA = "line-stacked-area"
10
+ }
11
+ interface LineChartSeriesConfigItem {
12
+ /**
13
+ * 宽表模式:series 对应的值字段
14
+ */
15
+ valueField?: string;
16
+ }
17
+ interface LineChartPropertyInterface extends PropertyInterface {
18
+ /**
19
+ * 标题
20
+ * @defaultValue '折线图'
21
+ * @public
22
+ */
23
+ caption: string;
24
+ /**
25
+ * 是否隐藏标题
26
+ * @defaultValue false
27
+ * @public
28
+ */
29
+ isHideCaption: boolean;
30
+ /**
31
+ * 是否显示气泡提示
32
+ * @defaultValue false
33
+ * @public
34
+ */
35
+ isShowCaptionTip: boolean;
36
+ /**
37
+ * 气泡提示语
38
+ * @defaultValue ''
39
+ * @public
40
+ */
41
+ captionTip: string;
42
+ /**
43
+ * 标题大小
44
+ * @defaultValue ''
45
+ * @public
46
+ */
47
+ captionSize: string;
48
+ /**
49
+ * 标题颜色
50
+ * @defaultValue ''
51
+ * @public
52
+ */
53
+ captionColor: string;
54
+ /**
55
+ * 标题斜体
56
+ * @defaultValue false
57
+ * @public
58
+ */
59
+ isCaptionItalic: boolean;
60
+ /**
61
+ * 标题字重;取值:normal:常规;bold:粗体;lighter:更细;
62
+ * @defaultValue 'normal'
63
+ * @public
64
+ */
65
+ captionFontWeight: FONT_WEIGHT;
66
+ /**
67
+ * 是否隐藏组件
68
+ * @defaultValue false
69
+ * @public
70
+ */
71
+ isHide: boolean;
72
+ /**
73
+ * 图表模板
74
+ * @defaultValue 'line-basic'
75
+ * @public
76
+ */
77
+ template: string;
78
+ /**
79
+ * 数据模式;取值:static:静态数据;dynamic:动态数据源;
80
+ * @defaultValue 'static'
81
+ * @public
82
+ */
83
+ dataMode: LineChartDataMode;
84
+ /**
85
+ * 图表 option JSON
86
+ * @defaultValue '{}'
87
+ * @public
88
+ */
89
+ optionJson: string;
90
+ /**
91
+ * 选项配置方式;取值:datasource:数据源;
92
+ * @defaultValue 'datasource'
93
+ * @public
94
+ */
95
+ optionConfig: 'datasource';
96
+ /**
97
+ * 数据源绑定
98
+ * @defaultValue new TreeDataSourceBind({ attributes: LineChartControl.controlCustomAttributes })
99
+ * @public
100
+ */
101
+ datasourceBind: TreeDataSourceBind;
102
+ /**
103
+ * 筛选项数据源绑定
104
+ * @defaultValue new TreeDataSourceBind({ attributes: LineChartControl.controlCustomAttributes })
105
+ * @public
106
+ */
107
+ filterItemDatasourceBind: TreeDataSourceBind;
108
+ /**
109
+ * 多级填充
110
+ * @defaultValue []
111
+ * @public
112
+ */
113
+ multistageFilling: MultistageFillingItem[];
114
+ /**
115
+ * 默认值
116
+ * @defaultValue []
117
+ * @public
118
+ */
119
+ defaultValue: string[];
120
+ /**
121
+ * 是否开启填充
122
+ * @defaultValue false
123
+ * @public
124
+ */
125
+ openMultistageFilling: boolean;
126
+ /**
127
+ * X 轴字段
128
+ * @defaultValue ''
129
+ * @public
130
+ */
131
+ xField: string;
132
+ /**
133
+ * Y 轴字段(单值映射场景)
134
+ * @defaultValue ''
135
+ * @public
136
+ */
137
+ yField: string;
138
+ /**
139
+ * 统一 series 配置;可同时覆盖宽表/长表/堆叠场景
140
+ * @defaultValue []
141
+ * @public
142
+ */
143
+ seriesConfig: LineChartSeriesConfigItem[];
144
+ }
145
+ declare class LineChartProperty extends Property implements LineChartPropertyInterface {
146
+ caption: string;
147
+ isHideCaption: boolean;
148
+ isShowCaptionTip: boolean;
149
+ captionTip: string;
150
+ captionSize: string;
151
+ captionColor: string;
152
+ isCaptionItalic: boolean;
153
+ captionFontWeight: FONT_WEIGHT;
154
+ isHide: boolean;
155
+ template: string;
156
+ dataMode: LineChartDataMode;
157
+ optionJson: string;
158
+ optionConfig: 'datasource';
159
+ datasourceBind: TreeDataSourceBind;
160
+ filterItemDatasourceBind: TreeDataSourceBind;
161
+ multistageFilling: MultistageFillingItem[];
162
+ defaultValue: string[];
163
+ openMultistageFilling: boolean;
164
+ xField: string;
165
+ yField: string;
166
+ seriesConfig: LineChartSeriesConfigItem[];
167
+ constructor(props?: Partial<LineChartProperty>);
168
+ }
169
+ export default LineChartProperty;
170
+ export type { LineChartDataMode, LineChartSeriesConfigItem, LineChartPropertyInterface, };
171
+ export { LineChartProperty, LineChartTemplate };
@@ -0,0 +1,9 @@
1
+ import { RuntimeControl, Schema } from '@byteluck-fe/model-driven-core';
2
+ import LineChartProperty from './property';
3
+ declare class LineChartControl extends RuntimeControl {
4
+ static get controlType(): string;
5
+ props: LineChartProperty;
6
+ constructor(props?: Partial<Schema<'line-chart'>>);
7
+ }
8
+ export default LineChartControl;
9
+ export { LineChartControl as RuntimeLineChartControl };
@@ -1,4 +1,5 @@
1
1
  import { MultistageFillingItem, Property, PropertyInterface, TreeDataSourceBind } from '@byteluck-fe/model-driven-core';
2
+ import { FONT_WEIGHT } from '../../framework';
2
3
  type PieChartDataMode = 'static' | 'dynamic';
3
4
  type PieSeriesDataConfig = {
4
5
  nameField?: string;
@@ -29,6 +30,30 @@ interface PieChartPropertyInterface extends PropertyInterface {
29
30
  * @public
30
31
  */
31
32
  captionTip: string;
33
+ /**
34
+ * 标题大小
35
+ * @defaultValue ''
36
+ * @public
37
+ */
38
+ captionSize: string;
39
+ /**
40
+ * 标题颜色
41
+ * @defaultValue ''
42
+ * @public
43
+ */
44
+ captionColor: string;
45
+ /**
46
+ * 标题斜体
47
+ * @defaultValue false
48
+ * @public
49
+ */
50
+ isCaptionItalic: boolean;
51
+ /**
52
+ * 标题字重;取值:normal:常规;bold:粗体;lighter:更细;
53
+ * @defaultValue 'normal'
54
+ * @public
55
+ */
56
+ captionFontWeight: FONT_WEIGHT;
32
57
  /**
33
58
  * 是否隐藏组件
34
59
  * @defaultValue false
@@ -101,6 +126,10 @@ declare class PieChartProperty extends Property implements PieChartPropertyInter
101
126
  isHideCaption: boolean;
102
127
  isShowCaptionTip: boolean;
103
128
  captionTip: string;
129
+ captionSize: string;
130
+ captionColor: string;
131
+ isCaptionItalic: boolean;
132
+ captionFontWeight: FONT_WEIGHT;
104
133
  isHide: boolean;
105
134
  template: string;
106
135
  dataMode: PieChartDataMode;
@@ -32,6 +32,8 @@ export { default as Dashboard } from './Dashboard';
32
32
  export type { DashboardPropertyInterface } from './Dashboard';
33
33
  export { default as BarChart } from './BarChart';
34
34
  export type { BarChartPropertyInterface } from './BarChart';
35
+ export { default as LineChart } from './LineChart';
36
+ export type { LineChartPropertyInterface } from './LineChart';
35
37
  export { default as PieChart } from './PieChart';
36
38
  export type { PieChartPropertyInterface } from './PieChart';
37
39
  export { default as ListViewSelect } from './ListViewSelect';
@@ -1,4 +1,4 @@
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';
1
+ import { Divider, Text, Link, Iframe, Button, Title, CreateFormListButton, BatchSubmissionListButton, SubmissionRecordListButton, ImportRecordListButton, ExportRecordListButton, ExportListButton, FormSelectButton, ListSelectButton, Pagination, Dashboard, BarChart, LineChart, 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';
@@ -24,6 +24,7 @@ declare module '@byteluck-fe/model-driven-core' {
24
24
  pagination: typeof Pagination;
25
25
  dashboard: typeof Dashboard;
26
26
  'bar-chart': typeof BarChart;
27
+ 'line-chart': typeof LineChart;
27
28
  'pie-chart': typeof PieChart;
28
29
  'list-view-select': typeof ListViewSelect;
29
30
  'text-ocr-button': typeof TextOcrButton;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-controls",
3
- "version": "7.0.0-props.100",
3
+ "version": "7.0.0-props.102",
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.99",
30
- "@byteluck-fe/model-driven-settings": "7.0.0-props.99",
31
- "@byteluck-fe/model-driven-shared": "7.0.0-props.99",
29
+ "@byteluck-fe/model-driven-core": "7.0.0-props.101",
30
+ "@byteluck-fe/model-driven-settings": "7.0.0-props.101",
31
+ "@byteluck-fe/model-driven-shared": "7.0.0-props.101",
32
32
  "async-validator": "3.5.1"
33
33
  },
34
- "gitHead": "1130268992df0e86137d9060939876c5e129313a"
34
+ "gitHead": "e3215fe4f9d14e37be72eb9ea2e85e5a969595ce"
35
35
  }