@byteluck-fe/model-driven-controls 7.0.0-beta.5 → 7.0.0-beta.6
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/baseControls/BarChart/designer.js +11 -11
- package/dist/esm/baseControls/BarChart/property.js +73 -22
- package/dist/esm/baseControls/BatchDeleteButton/property.js +23 -15
- package/dist/esm/baseControls/BatchPrintListButton/property.js +14 -11
- package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +9 -8
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +12 -7
- package/dist/esm/baseControls/Button/property.js +27 -17
- package/dist/esm/baseControls/Comment/property.js +7 -7
- package/dist/esm/baseControls/CreateFormListButton/property.js +13 -10
- package/dist/esm/baseControls/Dashboard/property.js +21 -14
- package/dist/esm/baseControls/Divider/property.js +17 -12
- package/dist/esm/baseControls/ExportListButton/property.js +14 -11
- package/dist/esm/baseControls/ExportRecordListButton/property.js +9 -8
- package/dist/esm/baseControls/FormSelectButton/property.js +11 -9
- package/dist/esm/baseControls/Iframe/designer.js +4 -4
- package/dist/esm/baseControls/Iframe/property.js +10 -7
- package/dist/esm/baseControls/ImportRecordListButton/property.js +14 -11
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +24 -16
- package/dist/esm/baseControls/LineChart/designer.js +7 -7
- package/dist/esm/baseControls/LineChart/property.js +73 -22
- package/dist/esm/baseControls/Link/property.js +17 -12
- package/dist/esm/baseControls/ListSelectButton/property.js +15 -11
- package/dist/esm/baseControls/ListViewSelect/property.js +10 -9
- package/dist/esm/baseControls/OperationButton/property.js +17 -12
- package/dist/esm/baseControls/Pagination/property.js +5 -5
- package/dist/esm/baseControls/PieChart/designer.js +10 -10
- package/dist/esm/baseControls/PieChart/property.js +80 -20
- package/dist/esm/baseControls/ReferenceList/property.js +17 -12
- package/dist/esm/baseControls/SubmissionRecordListButton/property.js +9 -8
- package/dist/esm/baseControls/Text/designer.js +1 -1
- package/dist/esm/baseControls/Text/property.js +23 -15
- package/dist/esm/baseControls/TextOcrButton/property.js +24 -16
- package/dist/esm/baseControls/Title/property.js +6 -4
- package/dist/esm/baseControls/utils.js +1 -1
- package/dist/esm/columnControls/ApprovalStatusColumn/property.js +11 -9
- package/dist/esm/columnControls/ArrayColumn/property.js +13 -10
- package/dist/esm/columnControls/AutoNumberColumn/property.js +9 -8
- package/dist/esm/columnControls/CustomColumn/designer.js +0 -1
- package/dist/esm/columnControls/CustomColumn/property.js +11 -9
- package/dist/esm/columnControls/DecimalColumn/property.js +19 -13
- package/dist/esm/columnControls/DepartmentColumn/property.js +9 -8
- package/dist/esm/columnControls/EmployeeColumn/property.js +9 -8
- package/dist/esm/columnControls/FileColumn/property.js +9 -8
- package/dist/esm/columnControls/GroupColumn/property.js +7 -7
- package/dist/esm/columnControls/ImageColumn/property.js +7 -7
- package/dist/esm/columnControls/LocationColumn/property.js +9 -8
- package/dist/esm/columnControls/OperationColumn/designer.js +12 -16
- package/dist/esm/columnControls/OperationColumn/property.js +15 -11
- package/dist/esm/columnControls/OrderColumn/property.js +17 -12
- package/dist/esm/columnControls/PeopleColumn/property.js +7 -7
- package/dist/esm/columnControls/TextColumn/property.js +13 -10
- package/dist/esm/columnControls/TimescopeColumn/property.js +13 -10
- package/dist/esm/columnControls/TimestampColumn/property.js +13 -10
- package/dist/esm/columnControls/VarcharColumn/property.js +17 -12
- package/dist/esm/formControls/Address/property.js +17 -12
- package/dist/esm/formControls/Amount/property.js +29 -18
- package/dist/esm/formControls/Attachment/property.js +39 -23
- package/dist/esm/formControls/AutoNumber/property.js +11 -9
- package/dist/esm/formControls/Barcode/designer.js +41 -21
- package/dist/esm/formControls/Barcode/property.js +21 -13
- package/dist/esm/formControls/Barcode/schema.json +19 -8
- package/dist/esm/formControls/Calc/property.js +18 -10
- package/dist/esm/formControls/Cascader/property.js +31 -17
- package/dist/esm/formControls/Checkbox/property.js +31 -17
- package/dist/esm/formControls/Counter/property.js +18 -10
- package/dist/esm/formControls/DatePicker/property.js +32 -20
- package/dist/esm/formControls/DateRange/property.js +28 -18
- package/dist/esm/formControls/Department/property.js +27 -17
- package/dist/esm/formControls/Department2/property.js +40 -24
- package/dist/esm/formControls/ElectronicSignature/property.js +17 -12
- package/dist/esm/formControls/Employee/property.js +23 -15
- package/dist/esm/formControls/Employee2/property.js +38 -22
- package/dist/esm/formControls/Image/designer.js +8 -8
- package/dist/esm/formControls/Image/property.js +17 -8
- package/dist/esm/formControls/Input/property.js +20 -11
- package/dist/esm/formControls/Number/property.js +32 -17
- package/dist/esm/formControls/OrganizationSelection/property.js +41 -24
- package/dist/esm/formControls/QrCode/designer.js +47 -27
- package/dist/esm/formControls/QrCode/property.js +24 -17
- package/dist/esm/formControls/QrCode/schema.json +20 -9
- package/dist/esm/formControls/Radio/property.js +33 -20
- package/dist/esm/formControls/RichText/designer.js +1 -1
- package/dist/esm/formControls/RichText/property.js +22 -12
- package/dist/esm/formControls/Score/property.js +17 -10
- package/dist/esm/formControls/SearchDateRange/property.js +30 -19
- package/dist/esm/formControls/SearchInput/property.js +5 -5
- package/dist/esm/formControls/SearchNumberRange/property.js +17 -12
- package/dist/esm/formControls/Select/property.js +29 -18
- package/dist/esm/formControls/SelectMultiple/property.js +27 -17
- package/dist/esm/formControls/SelectRelation/property.js +31 -19
- package/dist/esm/formControls/Slider/designer.js +2 -1
- package/dist/esm/formControls/Slider/property.js +22 -17
- package/dist/esm/formControls/Switch/designer.js +15 -14
- package/dist/esm/formControls/Switch/property.js +19 -10
- package/dist/esm/formControls/Tag/designer.js +14 -13
- package/dist/esm/formControls/Tag/property.js +23 -15
- package/dist/esm/formControls/Textarea/property.js +20 -11
- package/dist/esm/formControls/TimePicker/property.js +20 -14
- package/dist/esm/formControls/TimeRange/property.js +24 -16
- package/dist/esm/formControls/Tree/property.js +39 -21
- package/dist/esm/formControls/VueFormItem/property.js +15 -11
- package/dist/esm/formControls/VuePage/property.js +15 -11
- package/dist/esm/formControls/WPS/designer.js +9 -9
- package/dist/esm/formControls/WPS/property.js +29 -18
- package/dist/esm/framework.js +135 -81
- package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
- package/dist/esm/layoutControls/ActionBar/property.js +11 -9
- package/dist/esm/layoutControls/ActionBar/runtime.js +2 -2
- package/dist/esm/layoutControls/AdvancedContainer/property.js +5 -5
- package/dist/esm/layoutControls/BlankContainer/designer.js +8 -7
- package/dist/esm/layoutControls/BlankContainer/property.js +15 -12
- package/dist/esm/layoutControls/CardGroup/property.js +20 -11
- package/dist/esm/layoutControls/Col/property.js +11 -9
- package/dist/esm/layoutControls/Collapse/designer.js +2 -2
- package/dist/esm/layoutControls/Collapse/property.js +9 -8
- package/dist/esm/layoutControls/CollapsePane/property.js +7 -7
- package/dist/esm/layoutControls/DataView/property.js +19 -13
- package/dist/esm/layoutControls/Grid/property.js +5 -5
- package/dist/esm/layoutControls/GridLayoutContainer/property.js +9 -8
- package/dist/esm/layoutControls/GridRow/property.js +5 -5
- package/dist/esm/layoutControls/GridTableColumn/property.js +25 -16
- package/dist/esm/layoutControls/ListView/property.js +28 -15
- package/dist/esm/layoutControls/Page/property.js +7 -7
- package/dist/esm/layoutControls/Position/property.js +13 -10
- package/dist/esm/layoutControls/PositioningContainer/property.js +5 -5
- package/dist/esm/layoutControls/Row/property.js +15 -11
- package/dist/esm/layoutControls/Step/designer.js +2 -2
- package/dist/esm/layoutControls/Step/property.js +27 -17
- package/dist/esm/layoutControls/StepPane/property.js +21 -14
- package/dist/esm/layoutControls/SubTableColumn/property.js +10 -6
- package/dist/esm/layoutControls/SubTableRow/property.js +5 -5
- package/dist/esm/layoutControls/Tab/designer.js +2 -2
- package/dist/esm/layoutControls/Tab/property.js +15 -11
- package/dist/esm/layoutControls/TabPane/property.js +7 -7
- package/dist/esm/layoutControls/TableLayout/property.js +35 -21
- package/dist/esm/layoutControls/TableLayoutCol/property.js +25 -16
- package/dist/esm/layoutControls/TableLayoutRow/property.js +9 -8
- package/dist/esm/layoutControls/TableLayoutWrapper/property.js +11 -9
- package/dist/esm/layoutControls/Toolbox/property.js +5 -5
- package/dist/esm/listControls/GridTable/designer.js +12 -17
- package/dist/esm/listControls/GridTable/property.js +15 -11
- package/dist/esm/listControls/SubTable/property.js +70 -36
- package/dist/esm/searchControls/SimpleSearch/property.js +29 -18
- package/dist/esm/searchControls/SimpleSearch/runtime.js +2 -2
- package/dist/esm/wrapControls/GridLayoutWrap/designer.js +8 -8
- package/dist/esm/wrapControls/GridLayoutWrap/property.js +7 -7
- package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +8 -8
- package/dist/index.umd.js +1 -1
- package/dist/types/formControls/Barcode/property.d.ts +5 -10
- package/dist/types/formControls/QrCode/property.d.ts +5 -10
- package/dist/types/layoutControls/BlankContainer/property.d.ts +1 -1
- package/package.json +2 -2
|
@@ -109,7 +109,7 @@ var BarChartControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
109
109
|
{
|
|
110
110
|
key: "controlIcon",
|
|
111
111
|
get: function get() {
|
|
112
|
-
return '
|
|
112
|
+
return 'iconBarchart';
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
{
|
|
@@ -165,44 +165,44 @@ _define_property(BarChartControl, "setting", [
|
|
|
165
165
|
key: 'common-select',
|
|
166
166
|
visible: true,
|
|
167
167
|
name: 'template',
|
|
168
|
-
label: '
|
|
168
|
+
label: getLocaleText('CMD.d6d01777541754654'),
|
|
169
169
|
default: 'default',
|
|
170
170
|
options: [
|
|
171
171
|
{
|
|
172
172
|
value: 'bar-basic',
|
|
173
|
-
label: '
|
|
173
|
+
label: getLocaleText('CMD.50c71777541662435')
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
value: 'bar-background',
|
|
177
|
-
label: '
|
|
177
|
+
label: getLocaleText('CMD.29961777541608579')
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
value: 'bar-waterfall',
|
|
181
|
-
label: '
|
|
181
|
+
label: getLocaleText('CMD.0de61777541732843')
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
value: 'bar-alternating',
|
|
185
|
-
label: '
|
|
185
|
+
label: getLocaleText('CMD.15241777541626614')
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
value: 'bar-multi-y',
|
|
189
|
-
label: '
|
|
189
|
+
label: getLocaleText('CMD.12c91777541629189')
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
value: 'bar-stacked',
|
|
193
|
-
label: '
|
|
193
|
+
label: getLocaleText('CMD.30e11777541664430')
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
196
|
value: 'bar-stacked-rounded',
|
|
197
|
-
label: '
|
|
197
|
+
label: getLocaleText('CMD.44721777541599841')
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
200
|
value: 'bar-stacked-horizontal',
|
|
201
|
-
label: '
|
|
201
|
+
label: getLocaleText('CMD.6f651777541666780')
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
value: 'bar-positive-negative',
|
|
205
|
-
label: '
|
|
205
|
+
label: getLocaleText('CMD.95b31777541669068')
|
|
206
206
|
}
|
|
207
207
|
]
|
|
208
208
|
},
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_bar_chart
|
|
3
|
+
* description: 柱状图组件。用于展示静态或动态数据图表,支持模板选择和字段映射,适合统计分析与看板展示场景。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
2
5
|
if (self === void 0) {
|
|
3
6
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
7
|
}
|
|
@@ -70,10 +73,7 @@ function _is_native_reflect_construct() {
|
|
|
70
73
|
return !!result;
|
|
71
74
|
})();
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
* name: rok_bar_chart
|
|
75
|
-
* description: 柱状图组件。用于展示静态或动态数据图表,支持模板选择和字段映射,适合统计分析与看板展示场景。
|
|
76
|
-
*/ import BarChartControl from './designer';
|
|
76
|
+
import BarChartControl from './designer';
|
|
77
77
|
import { MultistageFillingItem, Property, PropertyRules, DataSourceBind } from '@byteluck-fe/model-driven-core';
|
|
78
78
|
import { FONT_WEIGHT } from '../../framework';
|
|
79
79
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
@@ -93,39 +93,90 @@ var BarChartPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
93
93
|
}
|
|
94
94
|
return BarChartPropertyRules;
|
|
95
95
|
}(PropertyRules);
|
|
96
|
+
var defaultBasicBarOption = {
|
|
97
|
+
grid: {
|
|
98
|
+
left: '3%',
|
|
99
|
+
right: '4%',
|
|
100
|
+
bottom: '3%',
|
|
101
|
+
containLabel: true
|
|
102
|
+
},
|
|
103
|
+
xAxis: {
|
|
104
|
+
type: 'category',
|
|
105
|
+
data: [
|
|
106
|
+
'Mon',
|
|
107
|
+
'Tue',
|
|
108
|
+
'Wed',
|
|
109
|
+
'Thu',
|
|
110
|
+
'Fri',
|
|
111
|
+
'Sat',
|
|
112
|
+
'Sun'
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
yAxis: {
|
|
116
|
+
type: 'value'
|
|
117
|
+
},
|
|
118
|
+
series: [
|
|
119
|
+
{
|
|
120
|
+
type: 'bar',
|
|
121
|
+
data: [
|
|
122
|
+
120,
|
|
123
|
+
200,
|
|
124
|
+
150,
|
|
125
|
+
80,
|
|
126
|
+
70,
|
|
127
|
+
110,
|
|
128
|
+
130
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
};
|
|
96
133
|
var BarChartProperty = /*#__PURE__*/ function(Property) {
|
|
97
134
|
"use strict";
|
|
98
135
|
_inherits(BarChartProperty, Property);
|
|
99
136
|
function BarChartProperty(props) {
|
|
100
137
|
_class_call_check(this, BarChartProperty);
|
|
101
138
|
var _this;
|
|
102
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14;
|
|
103
139
|
var _props_multistageFilling;
|
|
104
140
|
_this = _call_super(this, BarChartProperty, [
|
|
105
141
|
props
|
|
106
142
|
]), _define_property(_this, "caption", void 0), _define_property(_this, "isHideCaption", void 0), _define_property(_this, "isShowCaptionTip", void 0), _define_property(_this, "labelPosition", 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, "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);
|
|
107
|
-
|
|
108
|
-
_this.
|
|
109
|
-
|
|
110
|
-
_this.
|
|
111
|
-
|
|
143
|
+
var _props_caption;
|
|
144
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : BarChartControl.controlName;
|
|
145
|
+
var _props_isHideCaption;
|
|
146
|
+
_this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
|
|
147
|
+
var _props_isShowCaptionTip;
|
|
148
|
+
_this.isShowCaptionTip = (_props_isShowCaptionTip = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _props_isShowCaptionTip !== void 0 ? _props_isShowCaptionTip : false;
|
|
149
|
+
var _props_labelPosition;
|
|
150
|
+
_this.labelPosition = (_props_labelPosition = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _props_labelPosition !== void 0 ? _props_labelPosition : 'top';
|
|
151
|
+
var _props_captionTip;
|
|
152
|
+
_this.captionTip = (_props_captionTip = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _props_captionTip !== void 0 ? _props_captionTip : '';
|
|
112
153
|
_this.captionColor = (props === null || props === void 0 ? void 0 : props.captionColor) || '';
|
|
113
154
|
_this.captionSize = (props === null || props === void 0 ? void 0 : props.captionSize) || '';
|
|
114
155
|
_this.isCaptionItalic = (props === null || props === void 0 ? void 0 : props.isCaptionItalic) || false;
|
|
115
|
-
|
|
116
|
-
_this.
|
|
117
|
-
|
|
118
|
-
_this.
|
|
156
|
+
var _props_captionFontWeight;
|
|
157
|
+
_this.captionFontWeight = (_props_captionFontWeight = props === null || props === void 0 ? void 0 : props.captionFontWeight) !== null && _props_captionFontWeight !== void 0 ? _props_captionFontWeight : FONT_WEIGHT.NORMAL;
|
|
158
|
+
var _props_isHide;
|
|
159
|
+
_this.isHide = (_props_isHide = props === null || props === void 0 ? void 0 : props.isHide) !== null && _props_isHide !== void 0 ? _props_isHide : false;
|
|
160
|
+
var _props_template;
|
|
161
|
+
_this.template = (_props_template = props === null || props === void 0 ? void 0 : props.template) !== null && _props_template !== void 0 ? _props_template : 'bar-basic';
|
|
162
|
+
var _props_optionJson;
|
|
163
|
+
_this.optionJson = (_props_optionJson = props === null || props === void 0 ? void 0 : props.optionJson) !== null && _props_optionJson !== void 0 ? _props_optionJson : JSON.stringify(defaultBasicBarOption, null, 2);
|
|
119
164
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
120
165
|
_this.filterItemDatasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind);
|
|
121
|
-
|
|
166
|
+
var _props_multistageFilling_map;
|
|
167
|
+
_this.multistageFilling = (_props_multistageFilling_map = props === null || props === void 0 ? void 0 : (_props_multistageFilling = props.multistageFilling) === null || _props_multistageFilling === void 0 ? void 0 : _props_multistageFilling.map(function(item) {
|
|
122
168
|
return new MultistageFillingItem(item);
|
|
123
|
-
})) !== null &&
|
|
124
|
-
|
|
125
|
-
_this.
|
|
126
|
-
|
|
127
|
-
_this.
|
|
128
|
-
|
|
169
|
+
})) !== null && _props_multistageFilling_map !== void 0 ? _props_multistageFilling_map : [];
|
|
170
|
+
var _props_defaultValue;
|
|
171
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
172
|
+
var _props_openMultistageFilling;
|
|
173
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
174
|
+
var _props_xField;
|
|
175
|
+
_this.xField = (_props_xField = props === null || props === void 0 ? void 0 : props.xField) !== null && _props_xField !== void 0 ? _props_xField : '';
|
|
176
|
+
var _props_yField;
|
|
177
|
+
_this.yField = (_props_yField = props === null || props === void 0 ? void 0 : props.yField) !== null && _props_yField !== void 0 ? _props_yField : '';
|
|
178
|
+
var _props_seriesConfig;
|
|
179
|
+
_this.seriesConfig = (_props_seriesConfig = props === null || props === void 0 ? void 0 : props.seriesConfig) !== null && _props_seriesConfig !== void 0 ? _props_seriesConfig : [];
|
|
129
180
|
return _this;
|
|
130
181
|
}
|
|
131
182
|
return BarChartProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_batch_delete_button
|
|
3
|
+
* description: 批量删除按钮组件。用于列表场景对多条选中数据执行批量删除操作。支持按钮内容、展示形式、颜色状态、图标、命令类型和加载态配置,适合高频批处理操作入口。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
2
5
|
if (self === void 0) {
|
|
3
6
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
7
|
}
|
|
@@ -70,10 +73,7 @@ function _is_native_reflect_construct() {
|
|
|
70
73
|
return !!result;
|
|
71
74
|
})();
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
* name: rok_batch_delete_button
|
|
75
|
-
* description: 批量删除按钮组件。用于列表场景对多条选中数据执行批量删除操作。支持按钮内容、展示形式、颜色状态、图标、命令类型和加载态配置,适合高频批处理操作入口。
|
|
76
|
-
*/ import { Property } from '@byteluck-fe/model-driven-core';
|
|
76
|
+
import { Property } from '@byteluck-fe/model-driven-core';
|
|
77
77
|
import BatchDeleteButtonControl from './designer';
|
|
78
78
|
var BatchDeleteButtonProperty = /*#__PURE__*/ function(Property) {
|
|
79
79
|
"use strict";
|
|
@@ -81,21 +81,29 @@ var BatchDeleteButtonProperty = /*#__PURE__*/ function(Property) {
|
|
|
81
81
|
function BatchDeleteButtonProperty(props) {
|
|
82
82
|
_class_call_check(this, BatchDeleteButtonProperty);
|
|
83
83
|
var _this;
|
|
84
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
|
|
85
84
|
_this = _call_super(this, BatchDeleteButtonProperty, [
|
|
86
85
|
props
|
|
87
86
|
]), _define_property(_this, "content", void 0), // public buttonType: 'primary' | 'secondary' | 'default' | 'danger'
|
|
88
87
|
_define_property(_this, "buttonType", void 0), _define_property(_this, "showType", void 0), _define_property(_this, "color", void 0), _define_property(_this, "icon", void 0), _define_property(_this, "defaultState", void 0), _define_property(_this, "command", void 0), _define_property(_this, "isLoading", void 0);
|
|
89
|
-
|
|
90
|
-
_this.
|
|
91
|
-
|
|
92
|
-
_this.
|
|
93
|
-
|
|
94
|
-
_this.
|
|
88
|
+
var _props_content;
|
|
89
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : BatchDeleteButtonControl.controlName;
|
|
90
|
+
var _props_icon;
|
|
91
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : BatchDeleteButtonControl.controlIcon;
|
|
92
|
+
var _props_buttonType;
|
|
93
|
+
_this.buttonType = (_props_buttonType = props === null || props === void 0 ? void 0 : props.buttonType) !== null && _props_buttonType !== void 0 ? _props_buttonType : 'primary';
|
|
94
|
+
var _props_showType;
|
|
95
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'iconText';
|
|
96
|
+
var _props_color;
|
|
97
|
+
_this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : 'danger';
|
|
98
|
+
var _props_isHide;
|
|
99
|
+
_this.isHide = (_props_isHide = props === null || props === void 0 ? void 0 : props.isHide) !== null && _props_isHide !== void 0 ? _props_isHide : false;
|
|
100
|
+
var _props_defaultState;
|
|
95
101
|
// @余石伟 按钮需要有默认icon
|
|
96
|
-
_this.defaultState = (
|
|
97
|
-
|
|
98
|
-
_this.
|
|
102
|
+
_this.defaultState = (_props_defaultState = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _props_defaultState !== void 0 ? _props_defaultState : 'default';
|
|
103
|
+
var _props_command;
|
|
104
|
+
_this.command = (_props_command = props === null || props === void 0 ? void 0 : props.command) !== null && _props_command !== void 0 ? _props_command : 'custom';
|
|
105
|
+
var _props_isLoading;
|
|
106
|
+
_this.isLoading = (_props_isLoading = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _props_isLoading !== void 0 ? _props_isLoading : false;
|
|
99
107
|
return _this;
|
|
100
108
|
}
|
|
101
109
|
return BatchDeleteButtonProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_batch_print_list_button
|
|
3
|
+
* description: 批量打印列表按钮组件。用于列表场景对选中数据批量发起打印。支持绑定多个打印模板、自动选择模板,并继承按钮样式、图标和命令配置,适合批量单据输出场景。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
2
5
|
if (self === void 0) {
|
|
3
6
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
7
|
}
|
|
@@ -70,10 +73,7 @@ function _is_native_reflect_construct() {
|
|
|
70
73
|
return !!result;
|
|
71
74
|
})();
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
* name: rok_batch_print_list_button
|
|
75
|
-
* description: 批量打印列表按钮组件。用于列表场景对选中数据批量发起打印。支持绑定多个打印模板、自动选择模板,并继承按钮样式、图标和命令配置,适合批量单据输出场景。
|
|
76
|
-
*/ import { PropertyRules } from '@byteluck-fe/model-driven-core';
|
|
76
|
+
import { PropertyRules } from '@byteluck-fe/model-driven-core';
|
|
77
77
|
import { ButtonProperty } from '../Button';
|
|
78
78
|
import BatchPrintListButtonControl from './designer';
|
|
79
79
|
import { PrintTemplate } from '../../framework';
|
|
@@ -100,17 +100,20 @@ var BatchPrintListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
100
100
|
function BatchPrintListButtonProperty(props) {
|
|
101
101
|
_class_call_check(this, BatchPrintListButtonProperty);
|
|
102
102
|
var _this;
|
|
103
|
-
var _ref, _ref1, _ref2, _ref3;
|
|
104
103
|
var _props_printTemplates;
|
|
105
104
|
_this = _call_super(this, BatchPrintListButtonProperty, [
|
|
106
105
|
props
|
|
107
106
|
]), _define_property(_this, "printTemplates", void 0), _define_property(_this, "autoSelectTemplate", void 0);
|
|
108
|
-
|
|
109
|
-
_this.
|
|
110
|
-
|
|
107
|
+
var _props_icon;
|
|
108
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : BatchPrintListButtonControl.controlIcon;
|
|
109
|
+
var _props_content;
|
|
110
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : BatchPrintListButtonControl.controlName;
|
|
111
|
+
var _props_printTemplates_map;
|
|
112
|
+
_this.printTemplates = (_props_printTemplates_map = props === null || props === void 0 ? void 0 : (_props_printTemplates = props.printTemplates) === null || _props_printTemplates === void 0 ? void 0 : _props_printTemplates.map(function(item) {
|
|
111
113
|
return new PrintTemplate(item);
|
|
112
|
-
})) !== null &&
|
|
113
|
-
|
|
114
|
+
})) !== null && _props_printTemplates_map !== void 0 ? _props_printTemplates_map : [];
|
|
115
|
+
var _props_autoSelectTemplate;
|
|
116
|
+
_this.autoSelectTemplate = (_props_autoSelectTemplate = props === null || props === void 0 ? void 0 : props.autoSelectTemplate) !== null && _props_autoSelectTemplate !== void 0 ? _props_autoSelectTemplate : false;
|
|
114
117
|
return _this;
|
|
115
118
|
}
|
|
116
119
|
return BatchPrintListButtonProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_batch_print_record_list_button
|
|
3
|
+
* description: 批量打印记录列表按钮组件。用于记录列表场景快速发起批量打印操作。支持沿用通用按钮的文案、样式、图标、颜色和命令配置,适合标准化批量打印入口。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
2
5
|
if (self === void 0) {
|
|
3
6
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
7
|
}
|
|
@@ -57,10 +60,7 @@ function _is_native_reflect_construct() {
|
|
|
57
60
|
return !!result;
|
|
58
61
|
})();
|
|
59
62
|
}
|
|
60
|
-
|
|
61
|
-
* name: rok_batch_print_record_list_button
|
|
62
|
-
* description: 批量打印记录列表按钮组件。用于记录列表场景快速发起批量打印操作。支持沿用通用按钮的文案、样式、图标、颜色和命令配置,适合标准化批量打印入口。
|
|
63
|
-
*/ import { ButtonProperty } from '../Button';
|
|
63
|
+
import { ButtonProperty } from '../Button';
|
|
64
64
|
import BatchPrintRecordListButton from './designer';
|
|
65
65
|
var BatchPrintRecordListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
66
66
|
"use strict";
|
|
@@ -68,12 +68,13 @@ var BatchPrintRecordListButtonProperty = /*#__PURE__*/ function(ButtonProperty)
|
|
|
68
68
|
function BatchPrintRecordListButtonProperty(props) {
|
|
69
69
|
_class_call_check(this, BatchPrintRecordListButtonProperty);
|
|
70
70
|
var _this;
|
|
71
|
-
var _ref, _ref1;
|
|
72
71
|
_this = _call_super(this, BatchPrintRecordListButtonProperty, [
|
|
73
72
|
props
|
|
74
73
|
]);
|
|
75
|
-
|
|
76
|
-
_this.
|
|
74
|
+
var _props_content;
|
|
75
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : BatchPrintRecordListButton.controlName;
|
|
76
|
+
var _props_icon;
|
|
77
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : BatchPrintRecordListButton.controlIcon;
|
|
77
78
|
return _this;
|
|
78
79
|
}
|
|
79
80
|
return BatchPrintRecordListButtonProperty;
|
|
@@ -106,16 +106,21 @@ var BatchSubmissionListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
106
106
|
function BatchSubmissionListButtonProperty(props) {
|
|
107
107
|
_class_call_check(this, BatchSubmissionListButtonProperty);
|
|
108
108
|
var _this;
|
|
109
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
110
109
|
_this = _call_super(this, BatchSubmissionListButtonProperty, [
|
|
111
110
|
props
|
|
112
111
|
]), _define_property(_this, "processKey", void 0), _define_property(_this, "initiatorMode", void 0), _define_property(_this, "fieldCode", void 0), _define_property(_this, "employeeId", void 0);
|
|
113
|
-
|
|
114
|
-
_this.
|
|
115
|
-
|
|
116
|
-
_this.
|
|
117
|
-
|
|
118
|
-
_this.
|
|
112
|
+
var _props_icon;
|
|
113
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : BatchSubmissionListButtonControl.controlIcon;
|
|
114
|
+
var _props_content;
|
|
115
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : BatchSubmissionListButtonControl.controlName;
|
|
116
|
+
var _props_initiatorMode;
|
|
117
|
+
_this.initiatorMode = (_props_initiatorMode = props === null || props === void 0 ? void 0 : props.initiatorMode) !== null && _props_initiatorMode !== void 0 ? _props_initiatorMode : 'currentInitiator';
|
|
118
|
+
var _props_processKey;
|
|
119
|
+
_this.processKey = (_props_processKey = props === null || props === void 0 ? void 0 : props.processKey) !== null && _props_processKey !== void 0 ? _props_processKey : '';
|
|
120
|
+
var _props_fieldCode;
|
|
121
|
+
_this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : '';
|
|
122
|
+
var _props_employeeId;
|
|
123
|
+
_this.employeeId = (_props_employeeId = props === null || props === void 0 ? void 0 : props.employeeId) !== null && _props_employeeId !== void 0 ? _props_employeeId : '';
|
|
119
124
|
return _this;
|
|
120
125
|
}
|
|
121
126
|
return BatchSubmissionListButtonProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_button
|
|
3
|
+
* description: 通用按钮组件。用于表单页、列表页等场景触发新建、编辑、查看、删除或自定义动作。支持按钮文案、样式类型、图标展示、颜色状态、命令类型和加载态配置。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
2
5
|
if (self === void 0) {
|
|
3
6
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
7
|
}
|
|
@@ -70,10 +73,7 @@ function _is_native_reflect_construct() {
|
|
|
70
73
|
return !!result;
|
|
71
74
|
})();
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
* name: rok_button
|
|
75
|
-
* description: 通用按钮组件。用于表单页、列表页等场景触发新建、编辑、查看、删除或自定义动作。支持按钮文案、样式类型、图标展示、颜色状态、命令类型和加载态配置。
|
|
76
|
-
*/ import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
77
77
|
import { Property, OptObject, ActionObject } from '@byteluck-fe/model-driven-core';
|
|
78
78
|
var ButtonProperty = /*#__PURE__*/ function(Property) {
|
|
79
79
|
"use strict";
|
|
@@ -81,22 +81,32 @@ var ButtonProperty = /*#__PURE__*/ function(Property) {
|
|
|
81
81
|
function ButtonProperty(props) {
|
|
82
82
|
_class_call_check(this, ButtonProperty);
|
|
83
83
|
var _this;
|
|
84
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10;
|
|
85
84
|
_this = _call_super(this, ButtonProperty, [
|
|
86
85
|
props
|
|
87
86
|
]), _define_property(_this, "content", void 0), _define_property(_this, "buttonType", void 0), _define_property(_this, "showType", void 0), _define_property(_this, "color", void 0), _define_property(_this, "icon", void 0), _define_property(_this, "defaultState", void 0), _define_property(_this, "command", void 0), _define_property(_this, "isLoading", void 0), _define_property(_this, "optObj", void 0), _define_property(_this, "actionObj", void 0), _define_property(_this, "optButtonType", void 0);
|
|
88
|
-
|
|
89
|
-
_this.
|
|
90
|
-
|
|
91
|
-
_this.
|
|
87
|
+
var _props_content;
|
|
88
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : getLocaleText('CMD.button', null, '按钮');
|
|
89
|
+
var _props_buttonType;
|
|
90
|
+
_this.buttonType = (_props_buttonType = props === null || props === void 0 ? void 0 : props.buttonType) !== null && _props_buttonType !== void 0 ? _props_buttonType : 'primary';
|
|
91
|
+
var _props_showType;
|
|
92
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'text';
|
|
93
|
+
var _props_color;
|
|
94
|
+
_this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : 'primary';
|
|
95
|
+
var _props_icon;
|
|
92
96
|
// @余石伟 按钮需要有默认icon
|
|
93
|
-
_this.icon = (
|
|
94
|
-
|
|
95
|
-
_this.
|
|
96
|
-
|
|
97
|
-
_this.
|
|
98
|
-
|
|
99
|
-
_this.
|
|
97
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : 'iconfenlei2';
|
|
98
|
+
var _props_defaultState;
|
|
99
|
+
_this.defaultState = (_props_defaultState = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _props_defaultState !== void 0 ? _props_defaultState : 'default';
|
|
100
|
+
var _props_command;
|
|
101
|
+
_this.command = (_props_command = props === null || props === void 0 ? void 0 : props.command) !== null && _props_command !== void 0 ? _props_command : 'custom';
|
|
102
|
+
var _props_isLoading;
|
|
103
|
+
_this.isLoading = (_props_isLoading = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _props_isLoading !== void 0 ? _props_isLoading : false;
|
|
104
|
+
var _props_optObj;
|
|
105
|
+
_this.optObj = new OptObject((_props_optObj = props === null || props === void 0 ? void 0 : props.optObj) !== null && _props_optObj !== void 0 ? _props_optObj : {});
|
|
106
|
+
var _props_actionObj;
|
|
107
|
+
_this.actionObj = new ActionObject((_props_actionObj = props === null || props === void 0 ? void 0 : props.actionObj) !== null && _props_actionObj !== void 0 ? _props_actionObj : {});
|
|
108
|
+
var _props_optButtonType;
|
|
109
|
+
_this.optButtonType = (_props_optButtonType = props === null || props === void 0 ? void 0 : props.optButtonType) !== null && _props_optButtonType !== void 0 ? _props_optButtonType : 'button';
|
|
100
110
|
return _this;
|
|
101
111
|
}
|
|
102
112
|
return ButtonProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_comment
|
|
3
|
+
* description: 评论组件。用于展示说明内容或结构化评论信息。支持配置评论内容以及多组评论字段、对齐方式、标题字号颜色和斜体样式,适合审批意见、备注说明等场景。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
2
5
|
if (self === void 0) {
|
|
3
6
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
7
|
}
|
|
@@ -70,21 +73,18 @@ function _is_native_reflect_construct() {
|
|
|
70
73
|
return !!result;
|
|
71
74
|
})();
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
* name: rok_comment
|
|
75
|
-
* description: 评论组件。用于展示说明内容或结构化评论信息。支持配置评论内容以及多组评论字段、对齐方式、标题字号颜色和斜体样式,适合审批意见、备注说明等场景。
|
|
76
|
-
*/ import { Property } from '@byteluck-fe/model-driven-core';
|
|
76
|
+
import { Property } from '@byteluck-fe/model-driven-core';
|
|
77
77
|
var CommentProperty = /*#__PURE__*/ function(Property) {
|
|
78
78
|
"use strict";
|
|
79
79
|
_inherits(CommentProperty, Property);
|
|
80
80
|
function CommentProperty(props) {
|
|
81
81
|
_class_call_check(this, CommentProperty);
|
|
82
82
|
var _this;
|
|
83
|
-
var _ref;
|
|
84
83
|
_this = _call_super(this, CommentProperty, [
|
|
85
84
|
props
|
|
86
85
|
]), _define_property(_this, "content", void 0), _define_property(_this, "commentOptions", void 0);
|
|
87
|
-
|
|
86
|
+
var _props_content;
|
|
87
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : '';
|
|
88
88
|
_this.commentOptions = (props === null || props === void 0 ? void 0 : props.commentOptions) || [];
|
|
89
89
|
return _this;
|
|
90
90
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_create_form_list_button
|
|
3
|
+
* description: 新建表单按钮组件。用于从列表或页面中打开指定表单发起新建。支持绑定目标表单和弹窗、新窗口、对话框、页签等打开方式,并继承按钮样式与图标能力。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
2
5
|
if (self === void 0) {
|
|
3
6
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
7
|
}
|
|
@@ -70,10 +73,7 @@ function _is_native_reflect_construct() {
|
|
|
70
73
|
return !!result;
|
|
71
74
|
})();
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
* name: rok_create_form_list_button
|
|
75
|
-
* description: 新建表单按钮组件。用于从列表或页面中打开指定表单发起新建。支持绑定目标表单和弹窗、新窗口、对话框、页签等打开方式,并继承按钮样式与图标能力。
|
|
76
|
-
*/ import { ButtonProperty } from '../Button';
|
|
76
|
+
import { ButtonProperty } from '../Button';
|
|
77
77
|
import CreateFormListButtonControl from './designer';
|
|
78
78
|
import { PropertyRules } from '@byteluck-fe/model-driven-core';
|
|
79
79
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
@@ -100,14 +100,17 @@ var CreateFormListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
100
100
|
function CreateFormListButtonProperty(props) {
|
|
101
101
|
_class_call_check(this, CreateFormListButtonProperty);
|
|
102
102
|
var _this;
|
|
103
|
-
var _ref, _ref1, _ref2, _ref3;
|
|
104
103
|
_this = _call_super(this, CreateFormListButtonProperty, [
|
|
105
104
|
props
|
|
106
105
|
]), _define_property(_this, "formKey", void 0), _define_property(_this, "openType", void 0);
|
|
107
|
-
|
|
108
|
-
_this.
|
|
109
|
-
|
|
110
|
-
_this.
|
|
106
|
+
var _props_icon;
|
|
107
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : CreateFormListButtonControl.controlIcon;
|
|
108
|
+
var _props_content;
|
|
109
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : CreateFormListButtonControl.controlName;
|
|
110
|
+
var _props_formKey;
|
|
111
|
+
_this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : '';
|
|
112
|
+
var _props_openType;
|
|
113
|
+
_this.openType = (_props_openType = props === null || props === void 0 ? void 0 : props.openType) !== null && _props_openType !== void 0 ? _props_openType : 'modal';
|
|
111
114
|
return _this;
|
|
112
115
|
}
|
|
113
116
|
return CreateFormListButtonProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_dashboard
|
|
3
|
+
* description: 仪表盘组件。用于在页面中嵌入并展示指定仪表盘内容。支持标题显示与布局、气泡提示、报表参数透出等配置,适合数据看板、统计分析和运营监控场景。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
2
5
|
if (self === void 0) {
|
|
3
6
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
7
|
}
|
|
@@ -70,10 +73,7 @@ function _is_native_reflect_construct() {
|
|
|
70
73
|
return !!result;
|
|
71
74
|
})();
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
* name: rok_dashboard
|
|
75
|
-
* description: 仪表盘组件。用于在页面中嵌入并展示指定仪表盘内容。支持标题显示与布局、气泡提示、报表参数透出等配置,适合数据看板、统计分析和运营监控场景。
|
|
76
|
-
*/ import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
77
77
|
import { Property, PropertyRules } from '@byteluck-fe/model-driven-core';
|
|
78
78
|
var DashboardPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
79
79
|
"use strict";
|
|
@@ -122,18 +122,25 @@ var DashboardProperty = /*#__PURE__*/ function(Property) {
|
|
|
122
122
|
function DashboardProperty(props) {
|
|
123
123
|
_class_call_check(this, DashboardProperty);
|
|
124
124
|
var _this;
|
|
125
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
|
|
126
125
|
_this = _call_super(this, DashboardProperty, [
|
|
127
126
|
props
|
|
128
127
|
]), _define_property(_this, "dashboardKey", void 0), _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, "labelPosition", void 0), _define_property(_this, "isShowReportParams", void 0), _define_property(_this, "reportParams", void 0);
|
|
129
|
-
|
|
130
|
-
_this.
|
|
131
|
-
|
|
132
|
-
_this.
|
|
133
|
-
|
|
134
|
-
_this.
|
|
135
|
-
|
|
136
|
-
_this.
|
|
128
|
+
var _props_dashboardKey;
|
|
129
|
+
_this.dashboardKey = (_props_dashboardKey = props === null || props === void 0 ? void 0 : props.dashboardKey) !== null && _props_dashboardKey !== void 0 ? _props_dashboardKey : '';
|
|
130
|
+
var _props_caption;
|
|
131
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : '';
|
|
132
|
+
var _props_isHideCaption;
|
|
133
|
+
_this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
|
|
134
|
+
var _props_isShowCaptionTip;
|
|
135
|
+
_this.isShowCaptionTip = (_props_isShowCaptionTip = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _props_isShowCaptionTip !== void 0 ? _props_isShowCaptionTip : false;
|
|
136
|
+
var _props_captionTip;
|
|
137
|
+
_this.captionTip = (_props_captionTip = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _props_captionTip !== void 0 ? _props_captionTip : '';
|
|
138
|
+
var _props_labelPosition;
|
|
139
|
+
_this.labelPosition = (_props_labelPosition = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _props_labelPosition !== void 0 ? _props_labelPosition : 'top';
|
|
140
|
+
var _props_isShowReportParams;
|
|
141
|
+
_this.isShowReportParams = (_props_isShowReportParams = props === null || props === void 0 ? void 0 : props.isShowReportParams) !== null && _props_isShowReportParams !== void 0 ? _props_isShowReportParams : false;
|
|
142
|
+
var _props_reportParams;
|
|
143
|
+
_this.reportParams = (_props_reportParams = props === null || props === void 0 ? void 0 : props.reportParams) !== null && _props_reportParams !== void 0 ? _props_reportParams : [];
|
|
137
144
|
return _this;
|
|
138
145
|
}
|
|
139
146
|
return DashboardProperty;
|