@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
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_list_select_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
|
}
|
|
@@ -85,10 +88,7 @@ function _is_native_reflect_construct() {
|
|
|
85
88
|
return !!result;
|
|
86
89
|
})();
|
|
87
90
|
}
|
|
88
|
-
|
|
89
|
-
* name: rok_list_select_button
|
|
90
|
-
* description: 列表选择按钮组件。用于打开列表页选择数据并回填到当前页面。支持查询过滤、目标列表绑定、回填设置、选中行填充和已选内容展示配置,适合数据引用、关联选择和批量带回场景。
|
|
91
|
-
*/ import { ButtonProperty } from '../Button';
|
|
91
|
+
import { ButtonProperty } from '../Button';
|
|
92
92
|
import ListSelectButtonControl from './designer';
|
|
93
93
|
import { PropertyRules, FillBackBind, FillPayloadBind, SelectedContentConfig, ListBind } from '@byteluck-fe/model-driven-core';
|
|
94
94
|
import { createFillBindRules } from '../utils';
|
|
@@ -141,19 +141,23 @@ var ListSelectButtonPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
141
141
|
function ListSelectButtonProperty(props) {
|
|
142
142
|
_class_call_check(this, ListSelectButtonProperty);
|
|
143
143
|
var _this;
|
|
144
|
-
var _ref, _ref1, _ref2, _ref3, _ref4;
|
|
145
144
|
_this = _call_super(this, ListSelectButtonProperty, [
|
|
146
145
|
props
|
|
147
146
|
]), _define_property(_this, "fillPayload", void 0), _define_property(_this, "listPageBind", void 0), _define_property(_this, "disableFilling", void 0), _define_property(_this, "fillBack", void 0), _define_property(_this, "showSelectedDetail", void 0), _define_property(_this, "isSelectedRowFill", void 0), _define_property(_this, "selectedContentConfig", void 0);
|
|
148
|
-
|
|
149
|
-
_this.
|
|
147
|
+
var _props_content;
|
|
148
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : ListSelectButtonControl.controlName;
|
|
149
|
+
var _props_icon;
|
|
150
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : ListSelectButtonControl.controlIcon;
|
|
150
151
|
_this.fillPayload = new FillPayloadBind(props === null || props === void 0 ? void 0 : props.fillPayload);
|
|
151
152
|
_this.listPageBind = new ListBind(props === null || props === void 0 ? void 0 : props.listPageBind);
|
|
152
153
|
_this.fillBack = new FillBackBind(props === null || props === void 0 ? void 0 : props.fillBack);
|
|
153
|
-
|
|
154
|
+
var _props_showSelectedDetail;
|
|
155
|
+
_this.showSelectedDetail = (_props_showSelectedDetail = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _props_showSelectedDetail !== void 0 ? _props_showSelectedDetail : false;
|
|
154
156
|
_this.selectedContentConfig = new SelectedContentConfig(props === null || props === void 0 ? void 0 : props.selectedContentConfig);
|
|
155
|
-
|
|
156
|
-
_this.
|
|
157
|
+
var _props_isSelectedRowFill;
|
|
158
|
+
_this.isSelectedRowFill = (_props_isSelectedRowFill = props === null || props === void 0 ? void 0 : props.isSelectedRowFill) !== null && _props_isSelectedRowFill !== void 0 ? _props_isSelectedRowFill : false;
|
|
159
|
+
var _props_disableFilling;
|
|
160
|
+
_this.disableFilling = (_props_disableFilling = props === null || props === void 0 ? void 0 : props.disableFilling) !== null && _props_disableFilling !== void 0 ? _props_disableFilling : true;
|
|
157
161
|
return _this;
|
|
158
162
|
}
|
|
159
163
|
return ListSelectButtonProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_list_view_select
|
|
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_list_view_select
|
|
75
|
-
* description: 列表视图切换组件。用于在多个列表视图之间切换展示方式。支持下拉选择或页签切换模式,并可配置多组视图标题和显示字段,适合同一数据源下的多视角查看场景。
|
|
76
|
-
*/ import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
77
77
|
import { Property, PropertyRules, ViewOperationItem } from '@byteluck-fe/model-driven-core';
|
|
78
78
|
var ListViewSelectPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
79
79
|
"use strict";
|
|
@@ -118,15 +118,16 @@ var ListViewSelectProperty = /*#__PURE__*/ function(Property) {
|
|
|
118
118
|
function ListViewSelectProperty(props) {
|
|
119
119
|
_class_call_check(this, ListViewSelectProperty);
|
|
120
120
|
var _this;
|
|
121
|
-
var _ref, _ref1;
|
|
122
121
|
var _props_viewList;
|
|
123
122
|
_this = _call_super(this, ListViewSelectProperty, [
|
|
124
123
|
props
|
|
125
124
|
]), _define_property(_this, "showType", void 0), _define_property(_this, "viewList", void 0);
|
|
126
|
-
|
|
127
|
-
_this.
|
|
125
|
+
var _props_showType;
|
|
126
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'select';
|
|
127
|
+
var _props_viewList_map;
|
|
128
|
+
_this.viewList = (_props_viewList_map = props === null || props === void 0 ? void 0 : (_props_viewList = props.viewList) === null || _props_viewList === void 0 ? void 0 : _props_viewList.map(function(item) {
|
|
128
129
|
return new ViewOperationItem(item);
|
|
129
|
-
})) !== null &&
|
|
130
|
+
})) !== null && _props_viewList_map !== void 0 ? _props_viewList_map : [];
|
|
130
131
|
return _this;
|
|
131
132
|
}
|
|
132
133
|
return ListViewSelectProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_operation_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_operation_button
|
|
75
|
-
* description: 操作按钮组件。用于列表或页面中定义单条数据的编辑、查看、删除或自定义操作。支持命令类型、表单绑定、打开方式、确认提示、自定义参数、加载态和同步删除流程数据等能力。
|
|
76
|
-
*/ import { Property, PropertyRules } from '@byteluck-fe/model-driven-core';
|
|
76
|
+
import { Property, PropertyRules } from '@byteluck-fe/model-driven-core';
|
|
77
77
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
78
78
|
var OperationButtonPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
79
79
|
"use strict";
|
|
@@ -104,24 +104,29 @@ var OperationButtonProperty = /*#__PURE__*/ function(Property) {
|
|
|
104
104
|
function OperationButtonProperty(props) {
|
|
105
105
|
_class_call_check(this, OperationButtonProperty);
|
|
106
106
|
var _this;
|
|
107
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
108
107
|
_this = _call_super(this, OperationButtonProperty, [
|
|
109
108
|
props
|
|
110
109
|
]), _define_property(_this, "content", void 0), _define_property(_this, "code", void 0), _define_property(_this, "command", void 0), _define_property(_this, "color", void 0), _define_property(_this, "icon", void 0), _define_property(_this, "formKey", void 0), _define_property(_this, "openType", void 0), _define_property(_this, "needConfirm", void 0), _define_property(_this, "confirmMessage", void 0), _define_property(_this, "options", void 0), _define_property(_this, "defaultState", void 0), _define_property(_this, "priorityProcess", void 0), _define_property(_this, "isLoading", void 0), _define_property(_this, "isSyncDelete", void 0);
|
|
111
|
-
|
|
110
|
+
var _props_content;
|
|
111
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : getLocaleText('CMD.button', null, '按钮');
|
|
112
112
|
_this.code = props === null || props === void 0 ? void 0 : props.code;
|
|
113
|
-
|
|
114
|
-
_this.
|
|
113
|
+
var _props_command;
|
|
114
|
+
_this.command = (_props_command = props === null || props === void 0 ? void 0 : props.command) !== null && _props_command !== void 0 ? _props_command : 'custom';
|
|
115
|
+
var _props_color;
|
|
116
|
+
_this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : 'primary';
|
|
115
117
|
_this.icon = props === null || props === void 0 ? void 0 : props.icon;
|
|
116
118
|
_this.formKey = props === null || props === void 0 ? void 0 : props.formKey;
|
|
117
119
|
_this.openType = props === null || props === void 0 ? void 0 : props.openType;
|
|
118
120
|
_this.needConfirm = props === null || props === void 0 ? void 0 : props.needConfirm;
|
|
119
121
|
_this.confirmMessage = props === null || props === void 0 ? void 0 : props.confirmMessage;
|
|
120
122
|
_this.options = props === null || props === void 0 ? void 0 : props.options;
|
|
121
|
-
|
|
123
|
+
var _props_defaultState;
|
|
124
|
+
_this.defaultState = (_props_defaultState = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _props_defaultState !== void 0 ? _props_defaultState : 'default';
|
|
122
125
|
_this.priorityProcess = props === null || props === void 0 ? void 0 : props.priorityProcess;
|
|
123
|
-
|
|
124
|
-
_this.
|
|
126
|
+
var _props_isLoading;
|
|
127
|
+
_this.isLoading = (_props_isLoading = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _props_isLoading !== void 0 ? _props_isLoading : false;
|
|
128
|
+
var _props_isSyncDelete;
|
|
129
|
+
_this.isSyncDelete = (_props_isSyncDelete = props === null || props === void 0 ? void 0 : props.isSyncDelete) !== null && _props_isSyncDelete !== void 0 ? _props_isSyncDelete : false;
|
|
125
130
|
return _this;
|
|
126
131
|
}
|
|
127
132
|
return OperationButtonProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_pagination
|
|
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_pagination
|
|
75
|
-
* description: 分页组件。用于列表或数据展示场景进行分页导航与页码切换。适合作为标准分页容器配置项,为大数据量列表提供分段浏览能力。
|
|
76
|
-
*/ import { Property, PropertyRules, PropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
76
|
+
import { Property, PropertyRules, PropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
77
77
|
var PaginationPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
78
78
|
"use strict";
|
|
79
79
|
_inherits(PaginationPropertyRules, PropertyRules);
|
|
@@ -109,7 +109,7 @@ var PieChartControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
109
109
|
{
|
|
110
110
|
key: "controlIcon",
|
|
111
111
|
get: function get() {
|
|
112
|
-
return '
|
|
112
|
+
return 'iconPiechart';
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
{
|
|
@@ -150,7 +150,7 @@ _define_property(PieChartControl, "setting", [
|
|
|
150
150
|
visible: true
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
|
-
key: '
|
|
153
|
+
key: 'label-position',
|
|
154
154
|
visible: true
|
|
155
155
|
},
|
|
156
156
|
{
|
|
@@ -165,37 +165,37 @@ _define_property(PieChartControl, "setting", [
|
|
|
165
165
|
key: 'common-select',
|
|
166
166
|
visible: true,
|
|
167
167
|
name: 'template',
|
|
168
|
-
label: '
|
|
168
|
+
label: getLocaleText('CMD.f5361777541754658'),
|
|
169
169
|
default: 'default',
|
|
170
170
|
options: [
|
|
171
171
|
{
|
|
172
172
|
value: 'pie-rounded-ring',
|
|
173
|
-
label: '
|
|
173
|
+
label: getLocaleText('CMD.81a51777541679974')
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
value: 'pie-ring',
|
|
177
|
-
label: '
|
|
177
|
+
label: getLocaleText('CMD.a4281777541734255')
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
value: 'pie-half-ring',
|
|
181
|
-
label: '
|
|
181
|
+
label: getLocaleText('CMD.24b41777541692257')
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
value: 'pie-gap',
|
|
185
|
-
label: '
|
|
185
|
+
label: getLocaleText('CMD.5ce91777541640370')
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
value: 'pie-rose',
|
|
189
|
-
label: '
|
|
189
|
+
label: getLocaleText('CMD.3f911777541602899')
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
value: 'pie-texture',
|
|
193
|
-
label: '
|
|
193
|
+
label: getLocaleText('CMD.13a21777541694793')
|
|
194
194
|
}
|
|
195
195
|
]
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
|
-
key: '
|
|
198
|
+
key: 'chart-setting',
|
|
199
199
|
visible: true
|
|
200
200
|
},
|
|
201
201
|
{
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_pie_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,14 +73,59 @@ function _is_native_reflect_construct() {
|
|
|
70
73
|
return !!result;
|
|
71
74
|
})();
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
* name: rok_pie_chart
|
|
75
|
-
* description: 饼图组件。用于展示静态或动态数据图表,支持模板选择和字段映射,适合统计分析与看板展示场景。
|
|
76
|
-
*/ import PieChartControl from './designer';
|
|
76
|
+
import PieChartControl 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';
|
|
80
80
|
import { createChartSeriesConfigRule } from '../utils';
|
|
81
|
+
var defaultPieOption = {
|
|
82
|
+
"tooltip": {
|
|
83
|
+
"trigger": "item"
|
|
84
|
+
},
|
|
85
|
+
"legend": {
|
|
86
|
+
"top": "bottom"
|
|
87
|
+
},
|
|
88
|
+
"series": [
|
|
89
|
+
{
|
|
90
|
+
"type": "pie",
|
|
91
|
+
"radius": [
|
|
92
|
+
"40%",
|
|
93
|
+
"70%"
|
|
94
|
+
],
|
|
95
|
+
"itemStyle": {
|
|
96
|
+
"borderRadius": 10
|
|
97
|
+
},
|
|
98
|
+
"data": [
|
|
99
|
+
{
|
|
100
|
+
"value": 1048,
|
|
101
|
+
"name": getLocaleText('CMD.31801777541696784')
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"value": 735,
|
|
105
|
+
"name": getLocaleText('CMD.30781777541698808')
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"value": 580,
|
|
109
|
+
"name": getLocaleText('CMD.53ce1777541700854')
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"value": 484,
|
|
113
|
+
"name": getLocaleText('CMD.aab91777541703228')
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"value": 300,
|
|
117
|
+
"name": getLocaleText('CMD.cb9d1777541704940')
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"grid": {
|
|
123
|
+
"left": "3%",
|
|
124
|
+
"right": "4%",
|
|
125
|
+
"bottom": "3%",
|
|
126
|
+
"containLabel": true
|
|
127
|
+
}
|
|
128
|
+
};
|
|
81
129
|
var PieChartPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
82
130
|
"use strict";
|
|
83
131
|
_inherits(PieChartPropertyRules, PropertyRules);
|
|
@@ -97,31 +145,43 @@ var PieChartProperty = /*#__PURE__*/ function(Property) {
|
|
|
97
145
|
function PieChartProperty(props) {
|
|
98
146
|
_class_call_check(this, PieChartProperty);
|
|
99
147
|
var _this;
|
|
100
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12;
|
|
101
148
|
var _props_multistageFilling;
|
|
102
149
|
_this = _call_super(this, PieChartProperty, [
|
|
103
150
|
props
|
|
104
151
|
]), _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, "seriesConfig", void 0);
|
|
105
|
-
|
|
106
|
-
_this.
|
|
107
|
-
|
|
108
|
-
_this.
|
|
109
|
-
|
|
152
|
+
var _props_caption;
|
|
153
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : PieChartControl.controlName;
|
|
154
|
+
var _props_isHideCaption;
|
|
155
|
+
_this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
|
|
156
|
+
var _props_isShowCaptionTip;
|
|
157
|
+
_this.isShowCaptionTip = (_props_isShowCaptionTip = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _props_isShowCaptionTip !== void 0 ? _props_isShowCaptionTip : false;
|
|
158
|
+
var _props_labelPosition;
|
|
159
|
+
_this.labelPosition = (_props_labelPosition = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _props_labelPosition !== void 0 ? _props_labelPosition : 'top';
|
|
160
|
+
var _props_captionTip;
|
|
161
|
+
_this.captionTip = (_props_captionTip = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _props_captionTip !== void 0 ? _props_captionTip : '';
|
|
110
162
|
_this.captionColor = (props === null || props === void 0 ? void 0 : props.captionColor) || '';
|
|
111
163
|
_this.captionSize = (props === null || props === void 0 ? void 0 : props.captionSize) || '';
|
|
112
164
|
_this.isCaptionItalic = (props === null || props === void 0 ? void 0 : props.isCaptionItalic) || false;
|
|
113
|
-
|
|
114
|
-
_this.
|
|
115
|
-
|
|
116
|
-
_this.
|
|
165
|
+
var _props_captionFontWeight;
|
|
166
|
+
_this.captionFontWeight = (_props_captionFontWeight = props === null || props === void 0 ? void 0 : props.captionFontWeight) !== null && _props_captionFontWeight !== void 0 ? _props_captionFontWeight : FONT_WEIGHT.NORMAL;
|
|
167
|
+
var _props_isHide;
|
|
168
|
+
_this.isHide = (_props_isHide = props === null || props === void 0 ? void 0 : props.isHide) !== null && _props_isHide !== void 0 ? _props_isHide : false;
|
|
169
|
+
var _props_template;
|
|
170
|
+
_this.template = (_props_template = props === null || props === void 0 ? void 0 : props.template) !== null && _props_template !== void 0 ? _props_template : 'pie-rounded-ring';
|
|
171
|
+
var _props_optionJson;
|
|
172
|
+
_this.optionJson = (_props_optionJson = props === null || props === void 0 ? void 0 : props.optionJson) !== null && _props_optionJson !== void 0 ? _props_optionJson : JSON.stringify(defaultPieOption, null, 2);
|
|
117
173
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
118
174
|
_this.filterItemDatasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind);
|
|
119
|
-
|
|
175
|
+
var _props_multistageFilling_map;
|
|
176
|
+
_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) {
|
|
120
177
|
return new MultistageFillingItem(item);
|
|
121
|
-
})) !== null &&
|
|
122
|
-
|
|
123
|
-
_this.
|
|
124
|
-
|
|
178
|
+
})) !== null && _props_multistageFilling_map !== void 0 ? _props_multistageFilling_map : [];
|
|
179
|
+
var _props_defaultValue;
|
|
180
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
181
|
+
var _props_openMultistageFilling;
|
|
182
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
183
|
+
var _props_seriesConfig;
|
|
184
|
+
_this.seriesConfig = (_props_seriesConfig = props === null || props === void 0 ? void 0 : props.seriesConfig) !== null && _props_seriesConfig !== void 0 ? _props_seriesConfig : [];
|
|
125
185
|
return _this;
|
|
126
186
|
}
|
|
127
187
|
return PieChartProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_reference_list
|
|
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_reference_list
|
|
75
|
-
* description: 引用列表组件。用于在当前页面嵌入并展示关联业务列表。支持业务模型与列表绑定、查询栏与工具栏开关、列表高度配置和标题隐藏设置,适合关联数据查看与引用明细场景。
|
|
76
|
-
*/ import { PropertyRules, Property } from '@byteluck-fe/model-driven-core';
|
|
76
|
+
import { PropertyRules, Property } from '@byteluck-fe/model-driven-core';
|
|
77
77
|
import { ActionSetting, ListHeightSetting } from '../../framework';
|
|
78
78
|
import ReferenceListControl from './designer';
|
|
79
79
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
@@ -113,16 +113,21 @@ var ReferenceListPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
113
113
|
function ReferenceListProperty(props) {
|
|
114
114
|
_class_call_check(this, ReferenceListProperty);
|
|
115
115
|
var _this;
|
|
116
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
117
116
|
_this = _call_super(this, ReferenceListProperty, [
|
|
118
117
|
props
|
|
119
118
|
]), _define_property(_this, "isShowSimpleSearch", void 0), _define_property(_this, "isShowToolbar", void 0), _define_property(_this, "actionSetting", void 0), _define_property(_this, "listHeightSetting", void 0), _define_property(_this, "isHideCaption", void 0);
|
|
120
|
-
|
|
121
|
-
_this.
|
|
122
|
-
|
|
123
|
-
_this.
|
|
124
|
-
|
|
125
|
-
_this.
|
|
119
|
+
var _props_caption;
|
|
120
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : ReferenceListControl.controlName;
|
|
121
|
+
var _props_isShowSimpleSearch;
|
|
122
|
+
_this.isShowSimpleSearch = (_props_isShowSimpleSearch = props === null || props === void 0 ? void 0 : props.isShowSimpleSearch) !== null && _props_isShowSimpleSearch !== void 0 ? _props_isShowSimpleSearch : true;
|
|
123
|
+
var _props_isShowToolbar;
|
|
124
|
+
_this.isShowToolbar = (_props_isShowToolbar = props === null || props === void 0 ? void 0 : props.isShowToolbar) !== null && _props_isShowToolbar !== void 0 ? _props_isShowToolbar : true;
|
|
125
|
+
var _props_isHideCaption;
|
|
126
|
+
_this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
|
|
127
|
+
var _ref;
|
|
128
|
+
_this.actionSetting = (_ref = new ActionSetting(props === null || props === void 0 ? void 0 : props.actionSetting)) !== null && _ref !== void 0 ? _ref : new ActionSetting();
|
|
129
|
+
var _ref1;
|
|
130
|
+
_this.listHeightSetting = (_ref1 = new ListHeightSetting(props === null || props === void 0 ? void 0 : props.listHeightSetting)) !== null && _ref1 !== void 0 ? _ref1 : new ListHeightSetting();
|
|
126
131
|
return _this;
|
|
127
132
|
}
|
|
128
133
|
return ReferenceListProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_submission_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_submission_record_list_button
|
|
62
|
-
* description: 提交记录列表按钮组件。用于记录列表场景快速发起提交操作。支持沿用通用按钮的文案、样式、图标、颜色和命令配置,适合作为标准提交流程入口。
|
|
63
|
-
*/ import { ButtonProperty } from '../Button';
|
|
63
|
+
import { ButtonProperty } from '../Button';
|
|
64
64
|
import SubmissionRecordListButtonControl from './designer';
|
|
65
65
|
var SubmissionRecordListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
66
66
|
"use strict";
|
|
@@ -68,12 +68,13 @@ var SubmissionRecordListButtonProperty = /*#__PURE__*/ function(ButtonProperty)
|
|
|
68
68
|
function SubmissionRecordListButtonProperty(props) {
|
|
69
69
|
_class_call_check(this, SubmissionRecordListButtonProperty);
|
|
70
70
|
var _this;
|
|
71
|
-
var _ref, _ref1;
|
|
72
71
|
_this = _call_super(this, SubmissionRecordListButtonProperty, [
|
|
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 : SubmissionRecordListButtonControl.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 : SubmissionRecordListButtonControl.controlIcon;
|
|
77
78
|
return _this;
|
|
78
79
|
}
|
|
79
80
|
return SubmissionRecordListButtonProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_text
|
|
3
|
+
* description: 文本说明组件。用于展示说明文字、图文信息或图片内容。支持内容、图标、对齐方式、展示形态、标题样式、AI 内容搜索、标签化展示、关闭配置和背景配置,适合提示说明与信息展示场景。
|
|
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_text
|
|
75
|
-
* description: 文本说明组件。用于展示说明文字、图文信息或图片内容。支持内容、图标、对齐方式、展示形态、标题样式、AI 内容搜索、标签化展示、关闭配置和背景配置,适合提示说明与信息展示场景。
|
|
76
|
-
*/ import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
77
77
|
import { Property } from '@byteluck-fe/model-driven-core';
|
|
78
78
|
import { FONT_WEIGHT } from '../../framework';
|
|
79
79
|
var TextProperty = /*#__PURE__*/ function(Property) {
|
|
@@ -82,7 +82,6 @@ var TextProperty = /*#__PURE__*/ function(Property) {
|
|
|
82
82
|
function TextProperty(props) {
|
|
83
83
|
_class_call_check(this, TextProperty);
|
|
84
84
|
var _this;
|
|
85
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
|
|
86
85
|
_this = _call_super(this, TextProperty, [
|
|
87
86
|
props
|
|
88
87
|
]), // public dataBind: DataBind
|
|
@@ -95,20 +94,29 @@ var TextProperty = /*#__PURE__*/ function(Property) {
|
|
|
95
94
|
_this.captionColor = (props === null || props === void 0 ? void 0 : props.captionColor) || '';
|
|
96
95
|
_this.captionSize = (props === null || props === void 0 ? void 0 : props.captionSize) || '';
|
|
97
96
|
_this.isCaptionItalic = (props === null || props === void 0 ? void 0 : props.isCaptionItalic) || false;
|
|
98
|
-
|
|
99
|
-
_this.
|
|
100
|
-
|
|
101
|
-
_this.
|
|
102
|
-
|
|
103
|
-
_this.
|
|
104
|
-
|
|
105
|
-
_this.
|
|
97
|
+
var _props_captionFontWeight;
|
|
98
|
+
_this.captionFontWeight = (_props_captionFontWeight = props === null || props === void 0 ? void 0 : props.captionFontWeight) !== null && _props_captionFontWeight !== void 0 ? _props_captionFontWeight : FONT_WEIGHT.NORMAL;
|
|
99
|
+
var _props_icon;
|
|
100
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : 'page-hint';
|
|
101
|
+
var _props_showState;
|
|
102
|
+
_this.showState = (_props_showState = props === null || props === void 0 ? void 0 : props.showState) !== null && _props_showState !== void 0 ? _props_showState : 'text';
|
|
103
|
+
var _props_content;
|
|
104
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : getLocaleText('CMD.text', null, '说明文字');
|
|
105
|
+
var _props_align;
|
|
106
|
+
_this.align = (_props_align = props === null || props === void 0 ? void 0 : props.align) !== null && _props_align !== void 0 ? _props_align : '';
|
|
107
|
+
var _props_aiContentSearch;
|
|
108
|
+
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
109
|
+
var _props_isLabel;
|
|
110
|
+
_this.isLabel = (_props_isLabel = props === null || props === void 0 ? void 0 : props.isLabel) !== null && _props_isLabel !== void 0 ? _props_isLabel : false;
|
|
111
|
+
var _props_background;
|
|
112
|
+
_this.background = (_props_background = props === null || props === void 0 ? void 0 : props.background) !== null && _props_background !== void 0 ? _props_background : {
|
|
106
113
|
type: 'backgroundColor',
|
|
107
114
|
backgroundColor: '',
|
|
108
115
|
backgroundImage: '',
|
|
109
116
|
placementMode: 'contain'
|
|
110
117
|
};
|
|
111
|
-
|
|
118
|
+
var _props_close;
|
|
119
|
+
_this.close = (_props_close = props === null || props === void 0 ? void 0 : props.close) !== null && _props_close !== void 0 ? _props_close : {
|
|
112
120
|
show: false,
|
|
113
121
|
text: getLocaleText('CMD.closeText', null, '关闭')
|
|
114
122
|
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_text_ocr_button
|
|
3
|
+
* description: 文字识别按钮组件。用于上传或识别文本图片内容并将结果回填到表单字段。支持识别类型、标题展示、气泡提示和多字段填充配置,适合证照采集、票据录入和 OCR 辅助录入场景。
|
|
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_text_ocr_button
|
|
75
|
-
* description: 文字识别按钮组件。用于上传或识别文本图片内容并将结果回填到表单字段。支持识别类型、标题展示、气泡提示和多字段填充配置,适合证照采集、票据录入和 OCR 辅助录入场景。
|
|
76
|
-
*/ import { ButtonProperty } from '../Button';
|
|
76
|
+
import { ButtonProperty } from '../Button';
|
|
77
77
|
import TextOcrButtonControl from './designer';
|
|
78
78
|
import { PropertyRules, MultistageFillingItem } from '@byteluck-fe/model-driven-core';
|
|
79
79
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
@@ -131,22 +131,30 @@ var TextOcrButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
131
131
|
function TextOcrButtonProperty(props) {
|
|
132
132
|
_class_call_check(this, TextOcrButtonProperty);
|
|
133
133
|
var _this;
|
|
134
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
|
|
135
134
|
var _props_fillList;
|
|
136
135
|
_this = _call_super(this, TextOcrButtonProperty, [
|
|
137
136
|
props
|
|
138
137
|
]), _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, "ocrType", void 0), _define_property(_this, "fillList", void 0);
|
|
139
|
-
|
|
140
|
-
_this.
|
|
141
|
-
|
|
142
|
-
_this.
|
|
143
|
-
|
|
144
|
-
_this.
|
|
145
|
-
|
|
146
|
-
_this.
|
|
147
|
-
|
|
138
|
+
var _props_caption;
|
|
139
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TextOcrButtonControl.controlName;
|
|
140
|
+
var _props_isHideCaption;
|
|
141
|
+
_this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
|
|
142
|
+
var _props_isShowCaptionTip;
|
|
143
|
+
_this.isShowCaptionTip = (_props_isShowCaptionTip = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _props_isShowCaptionTip !== void 0 ? _props_isShowCaptionTip : false;
|
|
144
|
+
var _props_captionTip;
|
|
145
|
+
_this.captionTip = (_props_captionTip = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _props_captionTip !== void 0 ? _props_captionTip : '';
|
|
146
|
+
var _props_labelPosition;
|
|
147
|
+
_this.labelPosition = (_props_labelPosition = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _props_labelPosition !== void 0 ? _props_labelPosition : 'top';
|
|
148
|
+
var _props_content;
|
|
149
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : TextOcrButtonControl.controlName;
|
|
150
|
+
var _props_icon;
|
|
151
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : TextOcrButtonControl.controlIcon;
|
|
152
|
+
var _props_ocrType;
|
|
153
|
+
_this.ocrType = (_props_ocrType = props === null || props === void 0 ? void 0 : props.ocrType) !== null && _props_ocrType !== void 0 ? _props_ocrType : '';
|
|
154
|
+
var _props_fillList_map;
|
|
155
|
+
_this.fillList = (_props_fillList_map = props === null || props === void 0 ? void 0 : (_props_fillList = props.fillList) === null || _props_fillList === void 0 ? void 0 : _props_fillList.map(function(item) {
|
|
148
156
|
return new MultistageFillingItem(item);
|
|
149
|
-
})) !== null &&
|
|
157
|
+
})) !== null && _props_fillList_map !== void 0 ? _props_fillList_map : [];
|
|
150
158
|
return _this;
|
|
151
159
|
}
|
|
152
160
|
return TextOcrButtonProperty;
|