@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';
@@ -139,6 +139,16 @@ _define_property(BarChartControl, "setting", [
139
139
  ],
140
140
  visible: true
141
141
  },
142
+ {
143
+ key: 'caption-style',
144
+ showItems: [
145
+ COMMON_SETTING_TYPE.CAPTION_SIZE,
146
+ COMMON_SETTING_TYPE.CAPTION_COLOR,
147
+ COMMON_SETTING_TYPE.IS_CAPTION_ITALIC,
148
+ COMMON_SETTING_TYPE.CAPTION_FONT_WEIGHT
149
+ ],
150
+ visible: true
151
+ },
142
152
  {
143
153
  key: 'common-setting',
144
154
  visible: true,
@@ -196,6 +206,10 @@ _define_property(BarChartControl, "setting", [
196
206
  key: 'chart-setting',
197
207
  visible: true
198
208
  },
209
+ {
210
+ key: 'label-position',
211
+ visible: true
212
+ },
199
213
  {
200
214
  key: 'chart-data-bind',
201
215
  visible: true
@@ -75,39 +75,44 @@ function _is_native_reflect_construct() {
75
75
  * description: 柱状图组件。用于展示静态或动态数据图表,支持模板选择、数据模式切换和字段映射,适合统计分析与看板展示场景。
76
76
  */ import BarChartControl from './designer';
77
77
  import { MultistageFillingItem, Property, TreeDataSourceBind } from '@byteluck-fe/model-driven-core';
78
+ import { FONT_WEIGHT } from '../../framework';
78
79
  var BarChartProperty = /*#__PURE__*/ function(Property) {
79
80
  "use strict";
80
81
  _inherits(BarChartProperty, Property);
81
82
  function BarChartProperty(props) {
82
83
  _class_call_check(this, BarChartProperty);
83
84
  var _this;
84
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15;
85
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16;
85
86
  var _props_multistageFilling;
86
87
  _this = _call_super(this, BarChartProperty, [
87
88
  props
88
- ]), _define_property(_this, "caption", void 0), _define_property(_this, "isHideCaption", void 0), _define_property(_this, "isShowCaptionTip", void 0), _define_property(_this, "captionTip", void 0), _define_property(_this, "isHide", void 0), _define_property(_this, "template", void 0), _define_property(_this, "dataMode", void 0), _define_property(_this, "optionJson", void 0), _define_property(_this, "optionConfig", 'datasource'), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "filterItemDatasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "xField", void 0), _define_property(_this, "yField", void 0), _define_property(_this, "seriesConfig", void 0);
89
+ ]), _define_property(_this, "caption", void 0), _define_property(_this, "isHideCaption", void 0), _define_property(_this, "isShowCaptionTip", void 0), _define_property(_this, "captionTip", void 0), _define_property(_this, "captionSize", void 0), _define_property(_this, "captionColor", void 0), _define_property(_this, "isCaptionItalic", void 0), _define_property(_this, "captionFontWeight", void 0), _define_property(_this, "isHide", void 0), _define_property(_this, "template", void 0), _define_property(_this, "dataMode", void 0), _define_property(_this, "optionJson", void 0), _define_property(_this, "optionConfig", 'datasource'), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "filterItemDatasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "xField", void 0), _define_property(_this, "yField", void 0), _define_property(_this, "seriesConfig", void 0);
89
90
  _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : BarChartControl.controlName;
90
91
  _this.isHideCaption = (_ref1 = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _ref1 !== void 0 ? _ref1 : false;
91
92
  _this.isShowCaptionTip = (_ref2 = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _ref2 !== void 0 ? _ref2 : false;
92
93
  _this.captionTip = (_ref3 = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _ref3 !== void 0 ? _ref3 : '';
93
- _this.isHide = (_ref4 = props === null || props === void 0 ? void 0 : props.isHide) !== null && _ref4 !== void 0 ? _ref4 : false;
94
- _this.template = (_ref5 = props === null || props === void 0 ? void 0 : props.template) !== null && _ref5 !== void 0 ? _ref5 : 'bar-basic';
95
- _this.dataMode = (_ref6 = props === null || props === void 0 ? void 0 : props.dataMode) !== null && _ref6 !== void 0 ? _ref6 : 'static';
96
- _this.optionJson = (_ref7 = props === null || props === void 0 ? void 0 : props.optionJson) !== null && _ref7 !== void 0 ? _ref7 : '{}';
97
- _this.datasourceBind = new TreeDataSourceBind((_ref8 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref8 !== void 0 ? _ref8 : {
94
+ _this.captionColor = (props === null || props === void 0 ? void 0 : props.captionColor) || '';
95
+ _this.captionSize = (props === null || props === void 0 ? void 0 : props.captionSize) || '';
96
+ _this.isCaptionItalic = (props === null || props === void 0 ? void 0 : props.isCaptionItalic) || false;
97
+ _this.captionFontWeight = (_ref4 = props === null || props === void 0 ? void 0 : props.captionFontWeight) !== null && _ref4 !== void 0 ? _ref4 : FONT_WEIGHT.NORMAL;
98
+ _this.isHide = (_ref5 = props === null || props === void 0 ? void 0 : props.isHide) !== null && _ref5 !== void 0 ? _ref5 : false;
99
+ _this.template = (_ref6 = props === null || props === void 0 ? void 0 : props.template) !== null && _ref6 !== void 0 ? _ref6 : 'bar-basic';
100
+ _this.dataMode = (_ref7 = props === null || props === void 0 ? void 0 : props.dataMode) !== null && _ref7 !== void 0 ? _ref7 : 'static';
101
+ _this.optionJson = (_ref8 = props === null || props === void 0 ? void 0 : props.optionJson) !== null && _ref8 !== void 0 ? _ref8 : '{}';
102
+ _this.datasourceBind = new TreeDataSourceBind((_ref9 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref9 !== void 0 ? _ref9 : {
98
103
  attributes: BarChartControl.controlCustomAttributes
99
104
  });
100
- _this.filterItemDatasourceBind = new TreeDataSourceBind((_ref9 = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && _ref9 !== void 0 ? _ref9 : {
105
+ _this.filterItemDatasourceBind = new TreeDataSourceBind((_ref10 = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && _ref10 !== void 0 ? _ref10 : {
101
106
  attributes: BarChartControl.controlCustomAttributes
102
107
  });
103
- _this.multistageFilling = (_ref10 = props === null || props === void 0 ? void 0 : (_props_multistageFilling = props.multistageFilling) === null || _props_multistageFilling === void 0 ? void 0 : _props_multistageFilling.map(function(item) {
108
+ _this.multistageFilling = (_ref11 = props === null || props === void 0 ? void 0 : (_props_multistageFilling = props.multistageFilling) === null || _props_multistageFilling === void 0 ? void 0 : _props_multistageFilling.map(function(item) {
104
109
  return new MultistageFillingItem(item);
105
- })) !== null && _ref10 !== void 0 ? _ref10 : [];
106
- _this.defaultValue = (_ref11 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref11 !== void 0 ? _ref11 : [];
107
- _this.openMultistageFilling = (_ref12 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref12 !== void 0 ? _ref12 : false;
108
- _this.xField = (_ref13 = props === null || props === void 0 ? void 0 : props.xField) !== null && _ref13 !== void 0 ? _ref13 : '';
109
- _this.yField = (_ref14 = props === null || props === void 0 ? void 0 : props.yField) !== null && _ref14 !== void 0 ? _ref14 : '';
110
- _this.seriesConfig = (_ref15 = props === null || props === void 0 ? void 0 : props.seriesConfig) !== null && _ref15 !== void 0 ? _ref15 : [];
110
+ })) !== null && _ref11 !== void 0 ? _ref11 : [];
111
+ _this.defaultValue = (_ref12 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref12 !== void 0 ? _ref12 : [];
112
+ _this.openMultistageFilling = (_ref13 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref13 !== void 0 ? _ref13 : false;
113
+ _this.xField = (_ref14 = props === null || props === void 0 ? void 0 : props.xField) !== null && _ref14 !== void 0 ? _ref14 : '';
114
+ _this.yField = (_ref15 = props === null || props === void 0 ? void 0 : props.yField) !== null && _ref15 !== void 0 ? _ref15 : '';
115
+ _this.seriesConfig = (_ref16 = props === null || props === void 0 ? void 0 : props.seriesConfig) !== null && _ref16 !== void 0 ? _ref16 : [];
111
116
  return _this;
112
117
  }
113
118
  return BarChartProperty;
@@ -0,0 +1,207 @@
1
+ function _assert_this_initialized(self) {
2
+ if (self === void 0) {
3
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
+ }
5
+ return self;
6
+ }
7
+ function _call_super(_this, derived, args) {
8
+ derived = _get_prototype_of(derived);
9
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
+ }
11
+ function _class_call_check(instance, Constructor) {
12
+ if (!(instance instanceof Constructor)) {
13
+ throw new TypeError("Cannot call a class as a function");
14
+ }
15
+ }
16
+ function _defineProperties(target, props) {
17
+ for(var i = 0; i < props.length; i++){
18
+ var descriptor = props[i];
19
+ descriptor.enumerable = descriptor.enumerable || false;
20
+ descriptor.configurable = true;
21
+ if ("value" in descriptor) descriptor.writable = true;
22
+ Object.defineProperty(target, descriptor.key, descriptor);
23
+ }
24
+ }
25
+ function _create_class(Constructor, protoProps, staticProps) {
26
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
27
+ if (staticProps) _defineProperties(Constructor, staticProps);
28
+ return Constructor;
29
+ }
30
+ function _define_property(obj, key, value) {
31
+ if (key in obj) {
32
+ Object.defineProperty(obj, key, {
33
+ value: value,
34
+ enumerable: true,
35
+ configurable: true,
36
+ writable: true
37
+ });
38
+ } else {
39
+ obj[key] = value;
40
+ }
41
+ return obj;
42
+ }
43
+ function _get_prototype_of(o) {
44
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
45
+ return o.__proto__ || Object.getPrototypeOf(o);
46
+ };
47
+ return _get_prototype_of(o);
48
+ }
49
+ function _inherits(subClass, superClass) {
50
+ if (typeof superClass !== "function" && superClass !== null) {
51
+ throw new TypeError("Super expression must either be null or a function");
52
+ }
53
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
54
+ constructor: {
55
+ value: subClass,
56
+ writable: true,
57
+ configurable: true
58
+ }
59
+ });
60
+ if (superClass) _set_prototype_of(subClass, superClass);
61
+ }
62
+ function _possible_constructor_return(self, call) {
63
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
64
+ return call;
65
+ }
66
+ return _assert_this_initialized(self);
67
+ }
68
+ function _set_prototype_of(o, p) {
69
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
70
+ o.__proto__ = p;
71
+ return o;
72
+ };
73
+ return _set_prototype_of(o, p);
74
+ }
75
+ function _type_of(obj) {
76
+ "@swc/helpers - typeof";
77
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
78
+ }
79
+ function _is_native_reflect_construct() {
80
+ try {
81
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
82
+ } catch (_) {}
83
+ return (_is_native_reflect_construct = function() {
84
+ return !!result;
85
+ })();
86
+ }
87
+ import { COMMON_SETTING_TYPE, DesignerControl } from '@byteluck-fe/model-driven-core';
88
+ import { getLocaleText } from '@byteluck-fe/locale-message';
89
+ import LineChartProperty from './property';
90
+ var LineChartControl = /*#__PURE__*/ function(DesignerControl) {
91
+ "use strict";
92
+ _inherits(LineChartControl, DesignerControl);
93
+ function LineChartControl(props) {
94
+ _class_call_check(this, LineChartControl);
95
+ var _this;
96
+ _this = _call_super(this, LineChartControl, [
97
+ props
98
+ ]), _define_property(_this, "props", void 0);
99
+ _this.props = new LineChartProperty(props === null || props === void 0 ? void 0 : props.props);
100
+ return _this;
101
+ }
102
+ _create_class(LineChartControl, null, [
103
+ {
104
+ key: "controlName",
105
+ get: function get() {
106
+ return getLocaleText('CMD.lineChart', null, '折线图');
107
+ }
108
+ },
109
+ {
110
+ key: "controlIcon",
111
+ get: function get() {
112
+ return 'iconbiaodan_tubiao';
113
+ }
114
+ },
115
+ {
116
+ key: "controlType",
117
+ get: function get() {
118
+ return 'line-chart';
119
+ }
120
+ },
121
+ {
122
+ key: "controlCustomAttributes",
123
+ get: function get() {
124
+ return [];
125
+ }
126
+ }
127
+ ]);
128
+ return LineChartControl;
129
+ }(DesignerControl);
130
+ _define_property(LineChartControl, "controlEventKeys", [
131
+ 'on_chart_change'
132
+ ]);
133
+ _define_property(LineChartControl, "setting", [
134
+ {
135
+ key: 'caption',
136
+ showItems: [
137
+ COMMON_SETTING_TYPE.CAPTION,
138
+ COMMON_SETTING_TYPE.IS_HIDE_CAPTION
139
+ ],
140
+ visible: true
141
+ },
142
+ {
143
+ key: 'caption-style',
144
+ showItems: [
145
+ COMMON_SETTING_TYPE.CAPTION_SIZE,
146
+ COMMON_SETTING_TYPE.CAPTION_COLOR,
147
+ COMMON_SETTING_TYPE.IS_CAPTION_ITALIC,
148
+ COMMON_SETTING_TYPE.CAPTION_FONT_WEIGHT
149
+ ],
150
+ visible: true
151
+ },
152
+ {
153
+ key: 'common-setting',
154
+ visible: true,
155
+ showItems: [
156
+ COMMON_SETTING_TYPE.IS_HIDE,
157
+ COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
158
+ ]
159
+ },
160
+ {
161
+ key: 'common-select',
162
+ visible: true,
163
+ name: 'template',
164
+ label: '模版',
165
+ default: 'line-basic',
166
+ options: [
167
+ {
168
+ value: 'line-basic',
169
+ label: '基础折线图'
170
+ },
171
+ {
172
+ value: 'line-smooth',
173
+ label: '基础平滑折线图'
174
+ },
175
+ {
176
+ value: 'line-area',
177
+ label: '基础面积图'
178
+ },
179
+ {
180
+ value: 'line-stacked',
181
+ label: '堆叠折线图'
182
+ },
183
+ {
184
+ value: 'line-stacked-area',
185
+ label: '堆叠面积图'
186
+ }
187
+ ]
188
+ },
189
+ {
190
+ key: 'chart-setting',
191
+ visible: true
192
+ },
193
+ {
194
+ key: 'label-position',
195
+ visible: true
196
+ },
197
+ {
198
+ key: 'chart-data-bind',
199
+ visible: true
200
+ },
201
+ {
202
+ key: 'super-setting',
203
+ visible: true
204
+ }
205
+ ]);
206
+ export default LineChartControl;
207
+ export { LineChartControl as DesignerLineChartControl };
@@ -0,0 +1,11 @@
1
+ import Designer from './designer';
2
+ import Runtime from './runtime';
3
+ import Property from './property';
4
+ export default {
5
+ Designer: Designer,
6
+ Runtime: Runtime,
7
+ Property: Property
8
+ };
9
+ export * from './designer';
10
+ export * from './runtime';
11
+ export * from './property';
@@ -0,0 +1,129 @@
1
+ function _assert_this_initialized(self) {
2
+ if (self === void 0) {
3
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
+ }
5
+ return self;
6
+ }
7
+ function _call_super(_this, derived, args) {
8
+ derived = _get_prototype_of(derived);
9
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
+ }
11
+ function _class_call_check(instance, Constructor) {
12
+ if (!(instance instanceof Constructor)) {
13
+ throw new TypeError("Cannot call a class as a function");
14
+ }
15
+ }
16
+ function _define_property(obj, key, value) {
17
+ if (key in obj) {
18
+ Object.defineProperty(obj, key, {
19
+ value: value,
20
+ enumerable: true,
21
+ configurable: true,
22
+ writable: true
23
+ });
24
+ } else {
25
+ obj[key] = value;
26
+ }
27
+ return obj;
28
+ }
29
+ function _get_prototype_of(o) {
30
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
31
+ return o.__proto__ || Object.getPrototypeOf(o);
32
+ };
33
+ return _get_prototype_of(o);
34
+ }
35
+ function _inherits(subClass, superClass) {
36
+ if (typeof superClass !== "function" && superClass !== null) {
37
+ throw new TypeError("Super expression must either be null or a function");
38
+ }
39
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
40
+ constructor: {
41
+ value: subClass,
42
+ writable: true,
43
+ configurable: true
44
+ }
45
+ });
46
+ if (superClass) _set_prototype_of(subClass, superClass);
47
+ }
48
+ function _possible_constructor_return(self, call) {
49
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
50
+ return call;
51
+ }
52
+ return _assert_this_initialized(self);
53
+ }
54
+ function _set_prototype_of(o, p) {
55
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
56
+ o.__proto__ = p;
57
+ return o;
58
+ };
59
+ return _set_prototype_of(o, p);
60
+ }
61
+ function _type_of(obj) {
62
+ "@swc/helpers - typeof";
63
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
64
+ }
65
+ function _is_native_reflect_construct() {
66
+ try {
67
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
68
+ } catch (_) {}
69
+ return (_is_native_reflect_construct = function() {
70
+ return !!result;
71
+ })();
72
+ }
73
+ /**
74
+ * name: rok_line_chart
75
+ * description: 折线图组件。用于展示静态或动态趋势数据图表,支持模板选择、数据模式切换和字段映射,适合趋势分析与看板展示场景。
76
+ */ import LineChartControl from './designer';
77
+ import { MultistageFillingItem, Property, TreeDataSourceBind } from '@byteluck-fe/model-driven-core';
78
+ import { FONT_WEIGHT } from '../../framework';
79
+ var LineChartTemplate = /*#__PURE__*/ function(LineChartTemplate) {
80
+ LineChartTemplate["LINE_BASIC"] = "line-basic";
81
+ LineChartTemplate["LINE_SMOOTH"] = "line-smooth";
82
+ LineChartTemplate["LINE_AREA"] = "line-area";
83
+ LineChartTemplate["LINE_STACKED"] = "line-stacked";
84
+ LineChartTemplate["LINE_STACKED_AREA"] = "line-stacked-area";
85
+ return LineChartTemplate;
86
+ }(LineChartTemplate || {});
87
+ var LineChartProperty = /*#__PURE__*/ function(Property) {
88
+ "use strict";
89
+ _inherits(LineChartProperty, Property);
90
+ function LineChartProperty(props) {
91
+ _class_call_check(this, LineChartProperty);
92
+ var _this;
93
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16;
94
+ var _props_multistageFilling;
95
+ _this = _call_super(this, LineChartProperty, [
96
+ props
97
+ ]), _define_property(_this, "caption", void 0), _define_property(_this, "isHideCaption", void 0), _define_property(_this, "isShowCaptionTip", void 0), _define_property(_this, "captionTip", void 0), _define_property(_this, "captionSize", void 0), _define_property(_this, "captionColor", void 0), _define_property(_this, "isCaptionItalic", void 0), _define_property(_this, "captionFontWeight", void 0), _define_property(_this, "isHide", void 0), _define_property(_this, "template", void 0), _define_property(_this, "dataMode", void 0), _define_property(_this, "optionJson", void 0), _define_property(_this, "optionConfig", 'datasource'), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "filterItemDatasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "xField", void 0), _define_property(_this, "yField", void 0), _define_property(_this, "seriesConfig", void 0);
98
+ _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : LineChartControl.controlName;
99
+ _this.isHideCaption = (_ref1 = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _ref1 !== void 0 ? _ref1 : false;
100
+ _this.isShowCaptionTip = (_ref2 = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _ref2 !== void 0 ? _ref2 : false;
101
+ _this.captionTip = (_ref3 = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _ref3 !== void 0 ? _ref3 : '';
102
+ _this.captionColor = (props === null || props === void 0 ? void 0 : props.captionColor) || '';
103
+ _this.captionSize = (props === null || props === void 0 ? void 0 : props.captionSize) || '';
104
+ _this.isCaptionItalic = (props === null || props === void 0 ? void 0 : props.isCaptionItalic) || false;
105
+ _this.captionFontWeight = (_ref4 = props === null || props === void 0 ? void 0 : props.captionFontWeight) !== null && _ref4 !== void 0 ? _ref4 : FONT_WEIGHT.NORMAL;
106
+ _this.isHide = (_ref5 = props === null || props === void 0 ? void 0 : props.isHide) !== null && _ref5 !== void 0 ? _ref5 : false;
107
+ _this.template = (_ref6 = props === null || props === void 0 ? void 0 : props.template) !== null && _ref6 !== void 0 ? _ref6 : "line-basic";
108
+ _this.dataMode = (_ref7 = props === null || props === void 0 ? void 0 : props.dataMode) !== null && _ref7 !== void 0 ? _ref7 : 'static';
109
+ _this.optionJson = (_ref8 = props === null || props === void 0 ? void 0 : props.optionJson) !== null && _ref8 !== void 0 ? _ref8 : '{}';
110
+ _this.datasourceBind = new TreeDataSourceBind((_ref9 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref9 !== void 0 ? _ref9 : {
111
+ attributes: LineChartControl.controlCustomAttributes
112
+ });
113
+ _this.filterItemDatasourceBind = new TreeDataSourceBind((_ref10 = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && _ref10 !== void 0 ? _ref10 : {
114
+ attributes: LineChartControl.controlCustomAttributes
115
+ });
116
+ _this.multistageFilling = (_ref11 = props === null || props === void 0 ? void 0 : (_props_multistageFilling = props.multistageFilling) === null || _props_multistageFilling === void 0 ? void 0 : _props_multistageFilling.map(function(item) {
117
+ return new MultistageFillingItem(item);
118
+ })) !== null && _ref11 !== void 0 ? _ref11 : [];
119
+ _this.defaultValue = (_ref12 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref12 !== void 0 ? _ref12 : [];
120
+ _this.openMultistageFilling = (_ref13 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref13 !== void 0 ? _ref13 : false;
121
+ _this.xField = (_ref14 = props === null || props === void 0 ? void 0 : props.xField) !== null && _ref14 !== void 0 ? _ref14 : '';
122
+ _this.yField = (_ref15 = props === null || props === void 0 ? void 0 : props.yField) !== null && _ref15 !== void 0 ? _ref15 : '';
123
+ _this.seriesConfig = (_ref16 = props === null || props === void 0 ? void 0 : props.seriesConfig) !== null && _ref16 !== void 0 ? _ref16 : [];
124
+ return _this;
125
+ }
126
+ return LineChartProperty;
127
+ }(Property);
128
+ export default LineChartProperty;
129
+ export { LineChartProperty, LineChartTemplate };
@@ -0,0 +1,112 @@
1
+ function _assert_this_initialized(self) {
2
+ if (self === void 0) {
3
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
+ }
5
+ return self;
6
+ }
7
+ function _call_super(_this, derived, args) {
8
+ derived = _get_prototype_of(derived);
9
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
+ }
11
+ function _class_call_check(instance, Constructor) {
12
+ if (!(instance instanceof Constructor)) {
13
+ throw new TypeError("Cannot call a class as a function");
14
+ }
15
+ }
16
+ function _defineProperties(target, props) {
17
+ for(var i = 0; i < props.length; i++){
18
+ var descriptor = props[i];
19
+ descriptor.enumerable = descriptor.enumerable || false;
20
+ descriptor.configurable = true;
21
+ if ("value" in descriptor) descriptor.writable = true;
22
+ Object.defineProperty(target, descriptor.key, descriptor);
23
+ }
24
+ }
25
+ function _create_class(Constructor, protoProps, staticProps) {
26
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
27
+ if (staticProps) _defineProperties(Constructor, staticProps);
28
+ return Constructor;
29
+ }
30
+ function _define_property(obj, key, value) {
31
+ if (key in obj) {
32
+ Object.defineProperty(obj, key, {
33
+ value: value,
34
+ enumerable: true,
35
+ configurable: true,
36
+ writable: true
37
+ });
38
+ } else {
39
+ obj[key] = value;
40
+ }
41
+ return obj;
42
+ }
43
+ function _get_prototype_of(o) {
44
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
45
+ return o.__proto__ || Object.getPrototypeOf(o);
46
+ };
47
+ return _get_prototype_of(o);
48
+ }
49
+ function _inherits(subClass, superClass) {
50
+ if (typeof superClass !== "function" && superClass !== null) {
51
+ throw new TypeError("Super expression must either be null or a function");
52
+ }
53
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
54
+ constructor: {
55
+ value: subClass,
56
+ writable: true,
57
+ configurable: true
58
+ }
59
+ });
60
+ if (superClass) _set_prototype_of(subClass, superClass);
61
+ }
62
+ function _possible_constructor_return(self, call) {
63
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
64
+ return call;
65
+ }
66
+ return _assert_this_initialized(self);
67
+ }
68
+ function _set_prototype_of(o, p) {
69
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
70
+ o.__proto__ = p;
71
+ return o;
72
+ };
73
+ return _set_prototype_of(o, p);
74
+ }
75
+ function _type_of(obj) {
76
+ "@swc/helpers - typeof";
77
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
78
+ }
79
+ function _is_native_reflect_construct() {
80
+ try {
81
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
82
+ } catch (_) {}
83
+ return (_is_native_reflect_construct = function() {
84
+ return !!result;
85
+ })();
86
+ }
87
+ import { RuntimeControl } from '@byteluck-fe/model-driven-core';
88
+ import LineChartProperty from './property';
89
+ var LineChartControl = /*#__PURE__*/ function(RuntimeControl) {
90
+ "use strict";
91
+ _inherits(LineChartControl, RuntimeControl);
92
+ function LineChartControl(props) {
93
+ _class_call_check(this, LineChartControl);
94
+ var _this;
95
+ _this = _call_super(this, LineChartControl, [
96
+ props
97
+ ]), _define_property(_this, "props", void 0);
98
+ _this.props = new LineChartProperty(props === null || props === void 0 ? void 0 : props.props);
99
+ return _this;
100
+ }
101
+ _create_class(LineChartControl, null, [
102
+ {
103
+ key: "controlType",
104
+ get: function get() {
105
+ return 'line-chart';
106
+ }
107
+ }
108
+ ]);
109
+ return LineChartControl;
110
+ }(RuntimeControl);
111
+ export default LineChartControl;
112
+ export { LineChartControl as RuntimeLineChartControl };
@@ -139,6 +139,16 @@ _define_property(PieChartControl, "setting", [
139
139
  ],
140
140
  visible: true
141
141
  },
142
+ {
143
+ key: 'caption-style',
144
+ showItems: [
145
+ COMMON_SETTING_TYPE.CAPTION_SIZE,
146
+ COMMON_SETTING_TYPE.CAPTION_COLOR,
147
+ COMMON_SETTING_TYPE.IS_CAPTION_ITALIC,
148
+ COMMON_SETTING_TYPE.CAPTION_FONT_WEIGHT
149
+ ],
150
+ visible: true
151
+ },
142
152
  {
143
153
  key: 'common-setting',
144
154
  visible: true,
@@ -184,6 +194,10 @@ _define_property(PieChartControl, "setting", [
184
194
  key: 'chart-setting',
185
195
  visible: true
186
196
  },
197
+ {
198
+ key: 'label-position',
199
+ visible: true
200
+ },
187
201
  {
188
202
  key: 'chart-data-bind',
189
203
  visible: true
@@ -75,37 +75,42 @@ function _is_native_reflect_construct() {
75
75
  * description: 饼图组件。用于展示静态或动态数据图表,支持模板选择、数据模式切换和字段映射,适合统计分析与看板展示场景。
76
76
  */ import PieChartControl from './designer';
77
77
  import { MultistageFillingItem, Property, TreeDataSourceBind } from '@byteluck-fe/model-driven-core';
78
+ import { FONT_WEIGHT } from '../../framework';
78
79
  var PieChartProperty = /*#__PURE__*/ function(Property) {
79
80
  "use strict";
80
81
  _inherits(PieChartProperty, Property);
81
82
  function PieChartProperty(props) {
82
83
  _class_call_check(this, PieChartProperty);
83
84
  var _this;
84
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13;
85
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14;
85
86
  var _props_multistageFilling;
86
87
  _this = _call_super(this, PieChartProperty, [
87
88
  props
88
- ]), _define_property(_this, "caption", void 0), _define_property(_this, "isHideCaption", void 0), _define_property(_this, "isShowCaptionTip", void 0), _define_property(_this, "captionTip", void 0), _define_property(_this, "isHide", void 0), _define_property(_this, "template", void 0), _define_property(_this, "dataMode", void 0), _define_property(_this, "optionJson", void 0), _define_property(_this, "optionConfig", 'datasource'), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "filterItemDatasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "seriesConfig", void 0);
89
+ ]), _define_property(_this, "caption", void 0), _define_property(_this, "isHideCaption", void 0), _define_property(_this, "isShowCaptionTip", void 0), _define_property(_this, "captionTip", void 0), _define_property(_this, "captionSize", void 0), _define_property(_this, "captionColor", void 0), _define_property(_this, "isCaptionItalic", void 0), _define_property(_this, "captionFontWeight", void 0), _define_property(_this, "isHide", void 0), _define_property(_this, "template", void 0), _define_property(_this, "dataMode", void 0), _define_property(_this, "optionJson", void 0), _define_property(_this, "optionConfig", 'datasource'), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "filterItemDatasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "seriesConfig", void 0);
89
90
  _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : PieChartControl.controlName;
90
91
  _this.isHideCaption = (_ref1 = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _ref1 !== void 0 ? _ref1 : false;
91
92
  _this.isShowCaptionTip = (_ref2 = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _ref2 !== void 0 ? _ref2 : false;
92
93
  _this.captionTip = (_ref3 = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _ref3 !== void 0 ? _ref3 : '';
93
- _this.isHide = (_ref4 = props === null || props === void 0 ? void 0 : props.isHide) !== null && _ref4 !== void 0 ? _ref4 : false;
94
- _this.template = (_ref5 = props === null || props === void 0 ? void 0 : props.template) !== null && _ref5 !== void 0 ? _ref5 : 'pie-rounded-ring';
95
- _this.dataMode = (_ref6 = props === null || props === void 0 ? void 0 : props.dataMode) !== null && _ref6 !== void 0 ? _ref6 : 'static';
96
- _this.optionJson = (_ref7 = props === null || props === void 0 ? void 0 : props.optionJson) !== null && _ref7 !== void 0 ? _ref7 : '{}';
97
- _this.datasourceBind = new TreeDataSourceBind((_ref8 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref8 !== void 0 ? _ref8 : {
94
+ _this.captionColor = (props === null || props === void 0 ? void 0 : props.captionColor) || '';
95
+ _this.captionSize = (props === null || props === void 0 ? void 0 : props.captionSize) || '';
96
+ _this.isCaptionItalic = (props === null || props === void 0 ? void 0 : props.isCaptionItalic) || false;
97
+ _this.captionFontWeight = (_ref4 = props === null || props === void 0 ? void 0 : props.captionFontWeight) !== null && _ref4 !== void 0 ? _ref4 : FONT_WEIGHT.NORMAL;
98
+ _this.isHide = (_ref5 = props === null || props === void 0 ? void 0 : props.isHide) !== null && _ref5 !== void 0 ? _ref5 : false;
99
+ _this.template = (_ref6 = props === null || props === void 0 ? void 0 : props.template) !== null && _ref6 !== void 0 ? _ref6 : 'pie-rounded-ring';
100
+ _this.dataMode = (_ref7 = props === null || props === void 0 ? void 0 : props.dataMode) !== null && _ref7 !== void 0 ? _ref7 : 'static';
101
+ _this.optionJson = (_ref8 = props === null || props === void 0 ? void 0 : props.optionJson) !== null && _ref8 !== void 0 ? _ref8 : '{}';
102
+ _this.datasourceBind = new TreeDataSourceBind((_ref9 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref9 !== void 0 ? _ref9 : {
98
103
  attributes: PieChartControl.controlCustomAttributes
99
104
  });
100
- _this.filterItemDatasourceBind = new TreeDataSourceBind((_ref9 = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && _ref9 !== void 0 ? _ref9 : {
105
+ _this.filterItemDatasourceBind = new TreeDataSourceBind((_ref10 = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && _ref10 !== void 0 ? _ref10 : {
101
106
  attributes: PieChartControl.controlCustomAttributes
102
107
  });
103
- _this.multistageFilling = (_ref10 = props === null || props === void 0 ? void 0 : (_props_multistageFilling = props.multistageFilling) === null || _props_multistageFilling === void 0 ? void 0 : _props_multistageFilling.map(function(item) {
108
+ _this.multistageFilling = (_ref11 = props === null || props === void 0 ? void 0 : (_props_multistageFilling = props.multistageFilling) === null || _props_multistageFilling === void 0 ? void 0 : _props_multistageFilling.map(function(item) {
104
109
  return new MultistageFillingItem(item);
105
- })) !== null && _ref10 !== void 0 ? _ref10 : [];
106
- _this.defaultValue = (_ref11 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref11 !== void 0 ? _ref11 : [];
107
- _this.openMultistageFilling = (_ref12 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref12 !== void 0 ? _ref12 : false;
108
- _this.seriesConfig = (_ref13 = props === null || props === void 0 ? void 0 : props.seriesConfig) !== null && _ref13 !== void 0 ? _ref13 : [];
110
+ })) !== null && _ref11 !== void 0 ? _ref11 : [];
111
+ _this.defaultValue = (_ref12 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref12 !== void 0 ? _ref12 : [];
112
+ _this.openMultistageFilling = (_ref13 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref13 !== void 0 ? _ref13 : false;
113
+ _this.seriesConfig = (_ref14 = props === null || props === void 0 ? void 0 : props.seriesConfig) !== null && _ref14 !== void 0 ? _ref14 : [];
109
114
  return _this;
110
115
  }
111
116
  return PieChartProperty;