@byteluck-fe/model-driven-controls 7.0.0-props.70 → 7.0.0-props.72

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,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 };
@@ -48,7 +48,7 @@ interface DividerPropertyInterface extends PropertyInterface {
48
48
  */
49
49
  isCaptionItalic: boolean;
50
50
  /**
51
- * 标题字重;取值:normal:常规;bold:粗体;lighter:更细;bolder:更粗;
51
+ * 标题字重;取值:normal:常规;bold:粗体;lighter:更细;
52
52
  * @defaultValue 'normal'
53
53
  * @public
54
54
  */
@@ -54,7 +54,7 @@ interface TextPropertyInterface extends PropertyInterface {
54
54
  */
55
55
  isCaptionItalic: boolean;
56
56
  /**
57
- * 标题字重;取值:normal:常规;bold:粗体;lighter:更细;bolder:更粗;
57
+ * 标题字重;取值:normal:常规;bold:粗体;lighter:更细;
58
58
  * @defaultValue 'normal'
59
59
  * @public
60
60
  */
@@ -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';
@@ -154,11 +154,7 @@ export declare enum FONT_WEIGHT {
154
154
  /**
155
155
  * 更细
156
156
  */
157
- LIGHTER = "lighter",
158
- /**
159
- * 更粗
160
- */
161
- BOLDER = "bolder"
157
+ LIGHTER = "lighter"
162
158
  }
163
159
  export declare class UndersignedPerson {
164
160
  /**
@@ -34,7 +34,7 @@ interface BlankContainerPropertyInterface extends LayoutControlPropertyInterface
34
34
  */
35
35
  isCaptionItalic: boolean;
36
36
  /**
37
- * 标题字重;取值:normal:常规;bold:粗体;lighter:更细;bolder:更粗;
37
+ * 标题字重;取值:normal:常规;bold:粗体;lighter:更细;
38
38
  * @defaultValue 'normal'
39
39
  * @public
40
40
  */
@@ -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.70",
3
+ "version": "7.0.0-props.72",
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.69",
30
- "@byteluck-fe/model-driven-settings": "7.0.0-props.69",
31
- "@byteluck-fe/model-driven-shared": "7.0.0-props.64",
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": "202ca275ef4217672d1393e61b8288e2e6106129"
34
+ "gitHead": "bfb135d77993f9debd6b27cc30d605163a8f49ff"
35
35
  }