@byteluck-fe/model-driven-controls 4.41.0-lx0 → 5.3.0-1-beta4
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/api-doc-index.js +2 -1
- package/dist/esm/baseControls/BatchDeleteButton/designer.js +5 -1
- package/dist/esm/baseControls/BatchPrintListButton/designer.js +5 -1
- package/dist/esm/baseControls/BatchPrintListButton/property.js +2 -2
- package/dist/esm/baseControls/BatchPrintRecordListButton/designer.js +5 -1
- package/dist/esm/baseControls/BatchSubmissionListButton/designer.js +5 -1
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +3 -3
- package/dist/esm/baseControls/Button/designer.js +12 -1
- package/dist/esm/baseControls/Button/property.js +2 -1
- package/dist/esm/baseControls/CreateFormListButton/designer.js +5 -1
- package/dist/esm/baseControls/CreateFormListButton/property.js +2 -2
- package/dist/esm/baseControls/Dashboard/designer.js +2 -1
- package/dist/esm/baseControls/Dashboard/property.js +4 -4
- package/dist/esm/baseControls/Divider/designer.js +2 -1
- package/dist/esm/baseControls/ExportListButton/designer.js +5 -1
- package/dist/esm/baseControls/ExportListButton/property.js +2 -1
- package/dist/esm/baseControls/ExportRecordListButton/designer.js +5 -1
- package/dist/esm/baseControls/FormSelectButton/designer.js +2 -1
- package/dist/esm/baseControls/FormSelectButton/property.js +5 -7
- package/dist/esm/baseControls/ImportRecordListButton/designer.js +5 -1
- package/dist/esm/baseControls/InvoiceCheckButton/designer.js +2 -1
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +4 -4
- package/dist/esm/{formControls → baseControls}/Link/designer.js +6 -30
- package/dist/esm/{formControls → baseControls}/Link/property.js +6 -5
- package/dist/esm/baseControls/ListSelectButton/designer.js +2 -1
- package/dist/esm/baseControls/ListSelectButton/property.js +8 -5
- package/dist/esm/baseControls/ListViewSelect/designer.js +2 -1
- package/dist/esm/baseControls/ListViewSelect/property.js +3 -3
- package/dist/esm/baseControls/OperationButton/designer.js +2 -1
- package/dist/esm/baseControls/OperationButton/property.js +3 -3
- package/dist/esm/baseControls/Pagination/designer.js +2 -1
- package/dist/esm/{formControls/SensitivenInformation → baseControls/ReferenceList}/designer.js +25 -66
- package/dist/esm/baseControls/ReferenceList/property.js +139 -0
- package/dist/esm/baseControls/ReferenceList/runtime.js +112 -0
- package/dist/esm/baseControls/SubmissionRecordListButton/designer.js +5 -1
- package/dist/esm/baseControls/Text/designer.js +2 -1
- package/dist/esm/baseControls/Text/property.js +2 -1
- package/dist/esm/baseControls/TextOcrButton/designer.js +2 -1
- package/dist/esm/baseControls/TextOcrButton/property.js +5 -5
- package/dist/esm/baseControls/Title/designer.js +2 -1
- package/dist/esm/baseControls/Title/property.js +6 -6
- package/dist/esm/baseControls/index.js +2 -0
- package/dist/esm/baseControls/utils.js +4 -4
- package/dist/esm/columnControls/ApprovalStatusColumn/designer.js +6 -1
- package/dist/esm/columnControls/ArrayColumn/designer.js +6 -1
- package/dist/esm/columnControls/AutoNumberColumn/designer.js +6 -1
- package/dist/esm/columnControls/CustomColumn/designer.js +9 -1
- package/dist/esm/columnControls/CustomColumn/property.js +2 -2
- package/dist/esm/columnControls/DecimalColumn/designer.js +6 -1
- package/dist/esm/columnControls/DecimalColumn/property.js +4 -4
- package/dist/esm/columnControls/DepartmentColumn/designer.js +6 -1
- package/dist/esm/columnControls/EmployeeColumn/designer.js +7 -2
- package/dist/esm/columnControls/FileColumn/designer.js +11 -8
- package/dist/esm/columnControls/FileColumn/property.js +21 -1
- package/dist/esm/columnControls/ImageColumn/designer.js +6 -1
- package/dist/esm/columnControls/LocationColumn/designer.js +6 -1
- package/dist/esm/columnControls/OperationColumn/designer.js +6 -1
- package/dist/esm/columnControls/OperationColumn/property.js +3 -3
- package/dist/esm/columnControls/OrderColumn/designer.js +6 -1
- package/dist/esm/columnControls/PeopleColumn/designer.js +6 -1
- package/dist/esm/columnControls/TextColumn/designer.js +6 -1
- package/dist/esm/columnControls/TimescopeColumn/designer.js +6 -1
- package/dist/esm/columnControls/TimestampColumn/designer.js +6 -1
- package/dist/esm/columnControls/VarcharColumn/designer.js +4 -2
- package/dist/esm/columnControls/VarcharColumn/property.js +7 -4
- package/dist/esm/formControls/Address/designer.js +2 -10
- package/dist/esm/formControls/Address/property.js +5 -5
- package/dist/esm/formControls/Address/runtime.js +2 -1
- package/dist/esm/formControls/Amount/designer.js +6 -10
- package/dist/esm/formControls/Amount/property.js +14 -8
- package/dist/esm/formControls/Attachment/designer.js +8 -50
- package/dist/esm/formControls/Attachment/property.js +13 -16
- package/dist/esm/formControls/AutoNumber/designer.js +2 -10
- package/dist/esm/formControls/AutoNumber/property.js +2 -1
- package/dist/esm/formControls/Calc/designer.js +6 -10
- package/dist/esm/formControls/Calc/property.js +11 -5
- package/dist/esm/formControls/Checkbox/designer.js +6 -10
- package/dist/esm/formControls/Checkbox/property.js +8 -8
- package/dist/esm/formControls/DatePicker/designer.js +2 -10
- package/dist/esm/formControls/DatePicker/property.js +2 -1
- package/dist/esm/formControls/DateRange/designer.js +2 -10
- package/dist/esm/formControls/DateRange/property.js +3 -2
- package/dist/esm/formControls/Department/designer.js +2 -10
- package/dist/esm/formControls/Department/property.js +2 -1
- package/dist/esm/formControls/Department2/designer.js +3 -11
- package/dist/esm/formControls/Department2/property.js +27 -31
- package/dist/esm/formControls/ElectronicSignature/designer.js +2 -10
- package/dist/esm/formControls/ElectronicSignature/property.js +21 -7
- package/dist/esm/formControls/Employee/designer.js +2 -10
- package/dist/esm/formControls/Employee/property.js +2 -1
- package/dist/esm/formControls/Employee2/designer.js +11 -12
- package/dist/esm/formControls/Employee2/property.js +7 -4
- package/dist/esm/formControls/Image/designer.js +4 -17
- package/dist/esm/formControls/Image/property.js +2 -22
- package/dist/esm/formControls/Image/runtime.js +3 -2
- package/dist/esm/formControls/Input/designer.js +2 -10
- package/dist/esm/formControls/Input/property.js +11 -11
- package/dist/esm/formControls/Number/designer.js +2 -10
- package/dist/esm/formControls/Number/property.js +9 -9
- package/dist/esm/formControls/OrganizationSelection/designer.js +8 -11
- package/dist/esm/formControls/OrganizationSelection/property.js +4 -4
- package/dist/esm/formControls/Radio/designer.js +6 -10
- package/dist/esm/formControls/Radio/property.js +7 -6
- package/dist/esm/formControls/RichText/designer.js +2 -10
- package/dist/esm/formControls/RichText/property.js +9 -9
- package/dist/esm/formControls/Score/designer.js +2 -10
- package/dist/esm/formControls/Score/property.js +8 -8
- package/dist/esm/formControls/SearchDateRange/designer.js +2 -10
- package/dist/esm/formControls/SearchDateRange/property.js +3 -2
- package/dist/esm/formControls/SearchInput/designer.js +2 -10
- package/dist/esm/formControls/SearchNumberRange/designer.js +2 -10
- package/dist/esm/formControls/SearchNumberRange/property.js +5 -5
- package/dist/esm/formControls/Select/designer.js +6 -10
- package/dist/esm/formControls/Select/property.js +9 -9
- package/dist/esm/formControls/SelectMultiple/designer.js +6 -10
- package/dist/esm/formControls/SelectMultiple/property.js +9 -9
- package/dist/esm/formControls/SelectRelation/designer.js +48 -12
- package/dist/esm/formControls/SelectRelation/property.js +12 -7
- package/dist/esm/formControls/Textarea/designer.js +4 -11
- package/dist/esm/formControls/Textarea/property.js +24 -27
- package/dist/esm/formControls/Tree/designer.js +8 -12
- package/dist/esm/formControls/Tree/property.js +5 -5
- package/dist/esm/formControls/VueFormItem/designer.js +7 -11
- package/dist/esm/formControls/VuePage/designer.js +129 -0
- package/dist/esm/formControls/VuePage/index.js +11 -0
- package/dist/esm/formControls/VuePage/property.js +133 -0
- package/dist/esm/formControls/{SensitivenInformation → VuePage}/runtime.js +14 -14
- package/dist/esm/formControls/WPS/designer.js +2 -10
- package/dist/esm/formControls/WPS/property.js +6 -6
- package/dist/esm/formControls/index.js +1 -2
- package/dist/esm/framework.js +138 -0
- package/dist/esm/layoutControls/ActionBar/designer.js +21 -6
- package/dist/esm/layoutControls/AdvancedContainer/Setting.js +4 -3
- package/dist/esm/layoutControls/AdvancedContainer/designer.js +2 -1
- package/dist/esm/layoutControls/CardGroup/designer.js +4 -2
- package/dist/esm/layoutControls/CardGroup/property.js +6 -4
- package/dist/esm/layoutControls/Col/designer.js +3 -2
- package/dist/esm/layoutControls/DataView/designer.js +2 -1
- package/dist/esm/layoutControls/DataView/property.js +5 -4
- package/dist/esm/layoutControls/Grid/designer.js +2 -1
- package/dist/esm/layoutControls/GridLayoutContainer/designer.js +2 -1
- package/dist/esm/layoutControls/GridRow/designer.js +2 -1
- package/dist/esm/layoutControls/GridTableColumn/designer.js +2 -1
- package/dist/esm/layoutControls/ListView/designer.js +5 -1
- package/dist/esm/layoutControls/ListView/property.js +13 -28
- package/dist/esm/layoutControls/Page/Setting.js +6 -5
- package/dist/esm/layoutControls/Page/designer.js +2 -1
- package/dist/esm/layoutControls/Position/designer.js +2 -1
- package/dist/esm/layoutControls/PositioningContainer/Setting.js +4 -3
- package/dist/esm/layoutControls/PositioningContainer/designer.js +2 -1
- package/dist/esm/layoutControls/Row/designer.js +2 -1
- package/dist/esm/layoutControls/SubTableColumn/designer.js +4 -2
- package/dist/esm/layoutControls/SubTableColumn/property.js +4 -4
- package/dist/esm/layoutControls/SubTableRow/designer.js +2 -1
- package/dist/esm/layoutControls/Tab/designer.js +2 -1
- package/dist/esm/layoutControls/TabPane/designer.js +3 -3
- package/dist/esm/layoutControls/TabPane/property.js +2 -2
- package/dist/esm/layoutControls/Toolbox/designer.js +2 -1
- package/dist/esm/listControls/GridTable/designer.js +34 -7
- package/dist/esm/listControls/SubTable/designer.js +9 -6
- package/dist/esm/listControls/SubTable/property.js +33 -17
- package/dist/esm/searchControls/SimpleSearch/designer.js +3 -0
- package/dist/esm/searchControls/SimpleSearch/property.js +16 -3
- package/dist/esm/wrapControls/GridLayoutWrap/Setting.js +3 -2
- package/dist/esm/wrapControls/GridLayoutWrap/designer.js +2 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/api-doc-index.d.ts +2 -1
- package/dist/types/baseControls/BatchDeleteButton/designer.d.ts +1 -0
- package/dist/types/baseControls/BatchPrintListButton/designer.d.ts +1 -0
- package/dist/types/baseControls/BatchPrintRecordListButton/designer.d.ts +1 -0
- package/dist/types/baseControls/BatchSubmissionListButton/designer.d.ts +1 -0
- package/dist/types/baseControls/Button/designer.d.ts +1 -0
- package/dist/types/baseControls/CreateFormListButton/designer.d.ts +1 -0
- package/dist/types/baseControls/ExportListButton/designer.d.ts +1 -0
- package/dist/types/baseControls/ExportRecordListButton/designer.d.ts +1 -0
- package/dist/types/baseControls/FormSelectButton/property.d.ts +0 -1
- package/dist/types/baseControls/ImportRecordListButton/designer.d.ts +1 -0
- package/dist/types/{formControls → baseControls}/Link/designer.d.ts +2 -2
- package/dist/types/{formControls → baseControls}/Link/property.d.ts +2 -2
- package/dist/types/baseControls/ListSelectButton/property.d.ts +1 -0
- package/dist/types/baseControls/ReferenceList/designer.d.ts +14 -0
- package/dist/types/baseControls/ReferenceList/property.d.ts +22 -0
- package/dist/types/baseControls/ReferenceList/runtime.d.ts +9 -0
- package/dist/types/baseControls/ReferenceList/types.d.ts +0 -0
- package/dist/types/baseControls/SubmissionRecordListButton/designer.d.ts +1 -0
- package/dist/types/baseControls/index.d.ts +2 -0
- package/dist/types/columnControls/ApprovalStatusColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/ArrayColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/AutoNumberColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/CustomColumn/designer.d.ts +2 -1
- package/dist/types/columnControls/DecimalColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/DecimalColumn/property.d.ts +2 -2
- package/dist/types/columnControls/DepartmentColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/EmployeeColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/FileColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/FileColumn/property.d.ts +1 -0
- package/dist/types/columnControls/ImageColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/LocationColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/OperationColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/OrderColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/PeopleColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/TextColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/TimescopeColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/TimestampColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/VarcharColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/VarcharColumn/property.d.ts +7 -1
- package/dist/types/formControls/Amount/property.d.ts +6 -0
- package/dist/types/formControls/Attachment/designer.d.ts +0 -1
- package/dist/types/formControls/Attachment/property.d.ts +1 -10
- package/dist/types/formControls/Calc/property.d.ts +6 -0
- package/dist/types/formControls/Department2/property.d.ts +0 -4
- package/dist/types/formControls/Employee2/designer.d.ts +1 -0
- package/dist/types/formControls/Employee2/property.d.ts +1 -0
- package/dist/types/formControls/Image/designer.d.ts +0 -2
- package/dist/types/formControls/Image/property.d.ts +0 -5
- package/dist/types/formControls/Number/property.d.ts +2 -2
- package/dist/types/formControls/OrganizationSelection/designer.d.ts +1 -1
- package/dist/types/formControls/SelectRelation/designer.d.ts +1 -0
- package/dist/types/formControls/SelectRelation/property.d.ts +3 -1
- package/dist/types/formControls/Textarea/property.d.ts +4 -16
- package/dist/types/formControls/VueFormItem/designer.d.ts +1 -0
- package/dist/types/formControls/VuePage/designer.d.ts +15 -0
- package/dist/types/formControls/VuePage/index.d.ts +12 -0
- package/dist/types/formControls/VuePage/property.d.ts +18 -0
- package/dist/types/formControls/VuePage/runtime.d.ts +12 -0
- package/dist/types/formControls/VuePage/types.d.ts +0 -0
- package/dist/types/formControls/index.d.ts +1 -2
- package/dist/types/framework.d.ts +75 -1
- package/dist/types/layoutControls/ActionBar/designer.d.ts +3 -0
- package/dist/types/layoutControls/CardGroup/property.d.ts +1 -0
- package/dist/types/layoutControls/GridTableColumn/designer.d.ts +1 -1
- package/dist/types/layoutControls/ListView/designer.d.ts +3 -0
- package/dist/types/layoutControls/ListView/property.d.ts +2 -9
- package/dist/types/layoutControls/SubTableColumn/designer.d.ts +1 -1
- package/dist/types/layoutControls/SubTableRow/designer.d.ts +1 -1
- package/dist/types/listControls/GridTable/designer.d.ts +8 -0
- package/dist/types/listControls/GridTable/property.d.ts +1 -1
- package/dist/types/listControls/SubTable/designer.d.ts +3 -0
- package/dist/types/listControls/SubTable/property.d.ts +19 -0
- package/dist/types/searchControls/SimpleSearch/designer.d.ts +3 -0
- package/dist/types/searchControls/SimpleSearch/property.d.ts +13 -1
- package/dist/types/type.d.ts +5 -4
- package/package.json +5 -5
- package/dist/esm/formControls/SensitivenInformation/property.js +0 -206
- package/dist/types/formControls/SensitivenInformation/designer.d.ts +0 -15
- package/dist/types/formControls/SensitivenInformation/property.d.ts +0 -57
- package/dist/types/formControls/SensitivenInformation/runtime.d.ts +0 -12
- /package/dist/esm/{formControls → baseControls}/Link/index.js +0 -0
- /package/dist/esm/{formControls → baseControls}/Link/runtime.js +0 -0
- /package/dist/esm/{formControls → baseControls}/Link/types.js +0 -0
- /package/dist/esm/{formControls/SensitivenInformation → baseControls/ReferenceList}/index.js +0 -0
- /package/dist/esm/{formControls/SensitivenInformation → baseControls/ReferenceList}/types.js +0 -0
- /package/dist/{types/formControls/Link/types.d.ts → esm/formControls/VuePage/types.js} +0 -0
- /package/dist/types/{formControls → baseControls}/Link/index.d.ts +0 -0
- /package/dist/types/{formControls → baseControls}/Link/runtime.d.ts +0 -0
- /package/dist/types/{formControls/SensitivenInformation → baseControls/Link}/types.d.ts +0 -0
- /package/dist/types/{formControls/SensitivenInformation → baseControls/ReferenceList}/index.d.ts +0 -0
|
@@ -70,10 +70,11 @@ function _is_native_reflect_construct() {
|
|
|
70
70
|
return !!result;
|
|
71
71
|
})();
|
|
72
72
|
}
|
|
73
|
-
import {
|
|
74
|
-
|
|
73
|
+
import { Property } from '@byteluck-fe/model-driven-core';
|
|
74
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
75
|
+
var LinkProperty = /*#__PURE__*/ function(Property) {
|
|
75
76
|
"use strict";
|
|
76
|
-
_inherits(LinkProperty,
|
|
77
|
+
_inherits(LinkProperty, Property);
|
|
77
78
|
function LinkProperty(props) {
|
|
78
79
|
_class_call_check(this, LinkProperty);
|
|
79
80
|
var _this;
|
|
@@ -81,7 +82,7 @@ var LinkProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
81
82
|
props
|
|
82
83
|
]), _define_property(_this, "content", void 0), _define_property(_this, "url", void 0), _define_property(_this, "openMode", void 0);
|
|
83
84
|
var _props_content;
|
|
84
|
-
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : '我是一个链接';
|
|
85
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : getLocaleText('CMD.linkContent', null, '我是一个链接');
|
|
85
86
|
var _props_url;
|
|
86
87
|
_this.url = (_props_url = props === null || props === void 0 ? void 0 : props.url) !== null && _props_url !== void 0 ? _props_url : '';
|
|
87
88
|
var _props_openMode;
|
|
@@ -89,6 +90,6 @@ var LinkProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
89
90
|
return _this;
|
|
90
91
|
}
|
|
91
92
|
return LinkProperty;
|
|
92
|
-
}(
|
|
93
|
+
}(Property);
|
|
93
94
|
export default LinkProperty;
|
|
94
95
|
export { LinkProperty };
|
|
@@ -87,6 +87,7 @@ function _is_native_reflect_construct() {
|
|
|
87
87
|
import { COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
88
88
|
import { DesignerButtonControl } from '../Button';
|
|
89
89
|
import ListSelectButtonProperty from './property';
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
91
|
var ListSelectButtonControl = /*#__PURE__*/ function(DesignerButtonControl) {
|
|
91
92
|
"use strict";
|
|
92
93
|
_inherits(ListSelectButtonControl, DesignerButtonControl);
|
|
@@ -103,7 +104,7 @@ var ListSelectButtonControl = /*#__PURE__*/ function(DesignerButtonControl) {
|
|
|
103
104
|
{
|
|
104
105
|
key: "controlName",
|
|
105
106
|
get: function get() {
|
|
106
|
-
return '列表选择';
|
|
107
|
+
return getLocaleText('CMD.listSelectButton', null, '列表选择');
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
{
|
|
@@ -88,8 +88,8 @@ function _is_native_reflect_construct() {
|
|
|
88
88
|
import { ButtonProperty } from '../Button';
|
|
89
89
|
import ListSelectButtonControl from './designer';
|
|
90
90
|
import { PropertyRules, FillBackBind, FillPayloadBind, SelectedContentConfig, ListBind } from '@byteluck-fe/model-driven-core';
|
|
91
|
-
import { RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
92
91
|
import { createFillBindRules } from '../utils';
|
|
92
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
93
93
|
var ListSelectButtonPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
94
94
|
"use strict";
|
|
95
95
|
_inherits(ListSelectButtonPropertyRules, PropertyRules);
|
|
@@ -107,12 +107,12 @@ var ListSelectButtonPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
107
107
|
formKey: {
|
|
108
108
|
type: 'string',
|
|
109
109
|
required: true,
|
|
110
|
-
message:
|
|
110
|
+
message: getLocaleText('CMD.pleaseEnterList', null, '请绑定列表')
|
|
111
111
|
},
|
|
112
112
|
headers: {
|
|
113
113
|
type: 'array',
|
|
114
114
|
required: true,
|
|
115
|
-
message:
|
|
115
|
+
message: getLocaleText('CMD.pleaseSelectAtLeastOneColumn', null, '请至少选择一个显示字段')
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
}), _define_property(_this, "fillBack", {
|
|
@@ -121,7 +121,7 @@ var ListSelectButtonPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
121
121
|
mode: {
|
|
122
122
|
type: 'string',
|
|
123
123
|
required: true,
|
|
124
|
-
message:
|
|
124
|
+
message: getLocaleText('CMD.pleaseSelectFillBackMode', null, '请选择回填设置')
|
|
125
125
|
}
|
|
126
126
|
}, createFillBindRules())
|
|
127
127
|
});
|
|
@@ -153,7 +153,8 @@ var ListSelectButtonPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
153
153
|
* 回填配置
|
|
154
154
|
* @public
|
|
155
155
|
*/ _define_property(_this, "fillBack", void 0), // 展示已选明细
|
|
156
|
-
_define_property(_this, "showSelectedDetail", void 0), //
|
|
156
|
+
_define_property(_this, "showSelectedDetail", void 0), // 是否使用选中行填充
|
|
157
|
+
_define_property(_this, "isSelectedRowFill", void 0), // 展示已选内容配置字段
|
|
157
158
|
_define_property(_this, "selectedContentConfig", void 0);
|
|
158
159
|
var _props_content;
|
|
159
160
|
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : ListSelectButtonControl.controlName;
|
|
@@ -165,6 +166,8 @@ var ListSelectButtonPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
165
166
|
var _props_showSelectedDetail;
|
|
166
167
|
_this.showSelectedDetail = (_props_showSelectedDetail = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _props_showSelectedDetail !== void 0 ? _props_showSelectedDetail : false;
|
|
167
168
|
_this.selectedContentConfig = new SelectedContentConfig(props === null || props === void 0 ? void 0 : props.selectedContentConfig);
|
|
169
|
+
var _props_isSelectedRowFill;
|
|
170
|
+
_this.isSelectedRowFill = (_props_isSelectedRowFill = props === null || props === void 0 ? void 0 : props.isSelectedRowFill) !== null && _props_isSelectedRowFill !== void 0 ? _props_isSelectedRowFill : false;
|
|
168
171
|
var _props_disableFilling;
|
|
169
172
|
_this.disableFilling = (_props_disableFilling = props === null || props === void 0 ? void 0 : props.disableFilling) !== null && _props_disableFilling !== void 0 ? _props_disableFilling : true;
|
|
170
173
|
return _this;
|
|
@@ -86,6 +86,7 @@ function _is_native_reflect_construct() {
|
|
|
86
86
|
}
|
|
87
87
|
import { DesignerControl } from '@byteluck-fe/model-driven-core';
|
|
88
88
|
import ListViewSelectProperty from './property';
|
|
89
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
89
90
|
var ListViewSelectControl = /*#__PURE__*/ function(DesignerControl) {
|
|
90
91
|
"use strict";
|
|
91
92
|
_inherits(ListViewSelectControl, DesignerControl);
|
|
@@ -102,7 +103,7 @@ var ListViewSelectControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
102
103
|
{
|
|
103
104
|
key: "controlName",
|
|
104
105
|
get: function get() {
|
|
105
|
-
return '列表视图';
|
|
106
|
+
return getLocaleText('CMD.listViewSelect', null, '列表视图');
|
|
106
107
|
}
|
|
107
108
|
},
|
|
108
109
|
{
|
|
@@ -70,8 +70,8 @@ function _is_native_reflect_construct() {
|
|
|
70
70
|
return !!result;
|
|
71
71
|
})();
|
|
72
72
|
}
|
|
73
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
73
74
|
import { Property, PropertyRules, ViewOperationItem } from '@byteluck-fe/model-driven-core';
|
|
74
|
-
import { RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
75
75
|
var ListViewSelectPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
76
76
|
"use strict";
|
|
77
77
|
_inherits(ListViewSelectPropertyRules, PropertyRules);
|
|
@@ -94,13 +94,13 @@ var ListViewSelectPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
94
94
|
title: {
|
|
95
95
|
type: 'string',
|
|
96
96
|
required: true,
|
|
97
|
-
message:
|
|
97
|
+
message: getLocaleText('CMD.theViewNameCannotBeEmpty', null, '视图名称不能为空')
|
|
98
98
|
},
|
|
99
99
|
headers: {
|
|
100
100
|
type: 'array',
|
|
101
101
|
required: true,
|
|
102
102
|
min: 1,
|
|
103
|
-
message:
|
|
103
|
+
message: getLocaleText('CMD.pleaseSelectAtLeastOneColumn', null, '请至少选择一个显示字段')
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
}
|
|
@@ -86,6 +86,7 @@ function _is_native_reflect_construct() {
|
|
|
86
86
|
}
|
|
87
87
|
import { DesignerControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
88
88
|
import { OperationButtonProperty } from './property';
|
|
89
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
89
90
|
var OperationButtonControl = /*#__PURE__*/ function(DesignerControl) {
|
|
90
91
|
"use strict";
|
|
91
92
|
_inherits(OperationButtonControl, DesignerControl);
|
|
@@ -102,7 +103,7 @@ var OperationButtonControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
102
103
|
{
|
|
103
104
|
key: "controlName",
|
|
104
105
|
get: function get() {
|
|
105
|
-
return '操作按钮';
|
|
106
|
+
return getLocaleText('CMD.operationButton', null, '操作按钮');
|
|
106
107
|
}
|
|
107
108
|
},
|
|
108
109
|
{
|
|
@@ -71,7 +71,7 @@ function _is_native_reflect_construct() {
|
|
|
71
71
|
})();
|
|
72
72
|
}
|
|
73
73
|
import { Property, PropertyRules } from '@byteluck-fe/model-driven-core';
|
|
74
|
-
import {
|
|
74
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
75
75
|
var OperationButtonPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
76
76
|
"use strict";
|
|
77
77
|
_inherits(OperationButtonPropertyRules, PropertyRules);
|
|
@@ -88,7 +88,7 @@ var OperationButtonPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
88
88
|
_this.formKey = {
|
|
89
89
|
type: 'string',
|
|
90
90
|
required: true,
|
|
91
|
-
message:
|
|
91
|
+
message: getLocaleText('CMD.pleaseEnterForm', null, '请绑定表单')
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
return _this;
|
|
@@ -105,7 +105,7 @@ var OperationButtonProperty = /*#__PURE__*/ function(Property) {
|
|
|
105
105
|
props
|
|
106
106
|
]), _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);
|
|
107
107
|
var _props_content;
|
|
108
|
-
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : '按钮';
|
|
108
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : getLocaleText('CMD.button', null, '按钮');
|
|
109
109
|
_this.code = props === null || props === void 0 ? void 0 : props.code;
|
|
110
110
|
var _props_command;
|
|
111
111
|
_this.command = (_props_command = props === null || props === void 0 ? void 0 : props.command) !== null && _props_command !== void 0 ? _props_command : 'custom';
|
|
@@ -86,6 +86,7 @@ function _is_native_reflect_construct() {
|
|
|
86
86
|
}
|
|
87
87
|
import { DesignerControl } from '@byteluck-fe/model-driven-core';
|
|
88
88
|
import PaginationProperty from './property';
|
|
89
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
89
90
|
var PaginationControl = /*#__PURE__*/ function(DesignerControl) {
|
|
90
91
|
"use strict";
|
|
91
92
|
_inherits(PaginationControl, DesignerControl);
|
|
@@ -102,7 +103,7 @@ var PaginationControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
102
103
|
{
|
|
103
104
|
key: "controlName",
|
|
104
105
|
get: function get() {
|
|
105
|
-
return '分页';
|
|
106
|
+
return getLocaleText('CMD.pagination', null, '分页');
|
|
106
107
|
}
|
|
107
108
|
},
|
|
108
109
|
{
|
package/dist/esm/{formControls/SensitivenInformation → baseControls/ReferenceList}/designer.js
RENAMED
|
@@ -84,110 +84,69 @@ function _is_native_reflect_construct() {
|
|
|
84
84
|
return !!result;
|
|
85
85
|
})();
|
|
86
86
|
}
|
|
87
|
-
import {
|
|
88
|
-
import
|
|
89
|
-
import
|
|
90
|
-
var
|
|
87
|
+
import { COMMON_SETTING_TYPE, DesignerControl } from '@byteluck-fe/model-driven-core';
|
|
88
|
+
import ReferenceListProperty from './property';
|
|
89
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
|
+
var ReferenceListControl = /*#__PURE__*/ function(DesignerControl) {
|
|
91
91
|
"use strict";
|
|
92
|
-
_inherits(
|
|
93
|
-
function
|
|
94
|
-
_class_call_check(this,
|
|
92
|
+
_inherits(ReferenceListControl, DesignerControl);
|
|
93
|
+
function ReferenceListControl(props) {
|
|
94
|
+
_class_call_check(this, ReferenceListControl);
|
|
95
95
|
var _this;
|
|
96
|
-
_this = _call_super(this,
|
|
96
|
+
_this = _call_super(this, ReferenceListControl, [
|
|
97
97
|
props
|
|
98
98
|
]), _define_property(_this, "props", void 0);
|
|
99
|
-
_this.props = new
|
|
99
|
+
_this.props = new ReferenceListProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
100
100
|
return _this;
|
|
101
101
|
}
|
|
102
|
-
_create_class(
|
|
102
|
+
_create_class(ReferenceListControl, null, [
|
|
103
103
|
{
|
|
104
104
|
key: "controlName",
|
|
105
105
|
get: function get() {
|
|
106
|
-
return '
|
|
106
|
+
return getLocaleText('CMD.referenceList', null, '引用列表');
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
key: "controlIcon",
|
|
111
111
|
get: function get() {
|
|
112
|
-
return '
|
|
112
|
+
return 'iconliebiaoxuanze';
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
key: "controlType",
|
|
117
117
|
get: function get() {
|
|
118
|
-
return '
|
|
118
|
+
return 'reference-list';
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
]);
|
|
122
|
-
return
|
|
123
|
-
}(
|
|
124
|
-
_define_property(
|
|
125
|
-
'
|
|
126
|
-
'on_input',
|
|
127
|
-
'on_focus',
|
|
128
|
-
'on_blur'
|
|
122
|
+
return ReferenceListControl;
|
|
123
|
+
}(DesignerControl);
|
|
124
|
+
_define_property(ReferenceListControl, "controlEventKeys", [
|
|
125
|
+
'on_list_rowclick'
|
|
129
126
|
]);
|
|
130
|
-
_define_property(
|
|
131
|
-
_define_property(SensitivenInformationControl, "setting", [
|
|
132
|
-
{
|
|
133
|
-
key: 'data-bind',
|
|
134
|
-
visible: true
|
|
135
|
-
},
|
|
136
|
-
// { key: 'field-type', visible: true },
|
|
127
|
+
_define_property(ReferenceListControl, "setting", [
|
|
137
128
|
{
|
|
138
129
|
key: 'caption',
|
|
139
130
|
showItems: [
|
|
140
|
-
COMMON_SETTING_TYPE.CAPTION
|
|
141
|
-
COMMON_SETTING_TYPE.IS_HIDE_CAPTION
|
|
142
|
-
],
|
|
143
|
-
visible: true
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
key: 'caption-style',
|
|
147
|
-
showItems: [
|
|
148
|
-
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
149
|
-
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
150
|
-
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
131
|
+
COMMON_SETTING_TYPE.CAPTION
|
|
151
132
|
],
|
|
152
133
|
visible: true
|
|
153
134
|
},
|
|
154
|
-
{
|
|
155
|
-
key: 'label-position',
|
|
156
|
-
visible: true
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
key: 'default-state',
|
|
160
|
-
visible: true
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
key: 'placeholder',
|
|
164
|
-
visible: true
|
|
165
|
-
},
|
|
166
135
|
{
|
|
167
136
|
key: 'common-setting',
|
|
168
137
|
visible: true,
|
|
169
138
|
showItems: [
|
|
170
|
-
COMMON_SETTING_TYPE.REQUIRED,
|
|
171
139
|
COMMON_SETTING_TYPE.IS_HIDE,
|
|
172
|
-
COMMON_SETTING_TYPE.
|
|
173
|
-
COMMON_SETTING_TYPE.
|
|
174
|
-
COMMON_SETTING_TYPE.ENCRYPTED
|
|
140
|
+
COMMON_SETTING_TYPE.IS_SHOW_SIMPLE_SEARCH,
|
|
141
|
+
COMMON_SETTING_TYPE.IS_SHOW_TOOL_BAE
|
|
175
142
|
]
|
|
176
143
|
},
|
|
177
144
|
{
|
|
178
|
-
key: '
|
|
179
|
-
visible: true
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
key: 'min-length',
|
|
183
|
-
visible: true
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
key: 'default-value',
|
|
145
|
+
key: 'action-setting',
|
|
187
146
|
visible: true
|
|
188
147
|
},
|
|
189
148
|
{
|
|
190
|
-
key: '
|
|
149
|
+
key: 'line-height-setting',
|
|
191
150
|
visible: true
|
|
192
151
|
},
|
|
193
152
|
{
|
|
@@ -195,5 +154,5 @@ _define_property(SensitivenInformationControl, "setting", [
|
|
|
195
154
|
visible: true
|
|
196
155
|
}
|
|
197
156
|
]);
|
|
198
|
-
export default
|
|
199
|
-
export {
|
|
157
|
+
export default ReferenceListControl;
|
|
158
|
+
export { ReferenceListControl as ResignerreferenceListControl };
|
|
@@ -0,0 +1,139 @@
|
|
|
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
|
+
import { PropertyRules, Property } from '@byteluck-fe/model-driven-core';
|
|
74
|
+
import { ActionSetting, ListHeightSetting } from '../../framework';
|
|
75
|
+
import ReferenceListControl from './designer';
|
|
76
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
77
|
+
var ReferenceListPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
78
|
+
"use strict";
|
|
79
|
+
_inherits(ReferenceListPropertyRules, PropertyRules);
|
|
80
|
+
function ReferenceListPropertyRules(props) {
|
|
81
|
+
_class_call_check(this, ReferenceListPropertyRules);
|
|
82
|
+
var _this;
|
|
83
|
+
_this = _call_super(this, ReferenceListPropertyRules, [
|
|
84
|
+
props
|
|
85
|
+
]), _define_property(_this, "actionSetting", {
|
|
86
|
+
type: 'object',
|
|
87
|
+
fields: {
|
|
88
|
+
dataCode: {
|
|
89
|
+
type: 'string',
|
|
90
|
+
required: true,
|
|
91
|
+
message: getLocaleText('CMD.pleaseEnterDataCode', null, '请绑定业务模型')
|
|
92
|
+
},
|
|
93
|
+
formKey: {
|
|
94
|
+
type: 'string',
|
|
95
|
+
required: true,
|
|
96
|
+
message: getLocaleText('CMD.pleaseEnterList', null, '请绑定列表')
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
return _this;
|
|
101
|
+
}
|
|
102
|
+
return ReferenceListPropertyRules;
|
|
103
|
+
}(PropertyRules);
|
|
104
|
+
/**
|
|
105
|
+
* ReferenceList 引用列表
|
|
106
|
+
* @public
|
|
107
|
+
*/ var ReferenceListProperty = /*#__PURE__*/ function(Property) {
|
|
108
|
+
"use strict";
|
|
109
|
+
_inherits(ReferenceListProperty, Property);
|
|
110
|
+
function ReferenceListProperty(props) {
|
|
111
|
+
_class_call_check(this, ReferenceListProperty);
|
|
112
|
+
var _this;
|
|
113
|
+
_this = _call_super(this, ReferenceListProperty, [
|
|
114
|
+
props
|
|
115
|
+
]), // 是否显示查询栏
|
|
116
|
+
_define_property(_this, "isShowSimpleSearch", void 0), // 是否显示工具栏
|
|
117
|
+
_define_property(_this, "isShowToolbar", void 0), //动作设置
|
|
118
|
+
_define_property(_this, "actionSetting", void 0), //列表高度配置
|
|
119
|
+
_define_property(_this, "listHeightSetting", void 0), //列表高度配置
|
|
120
|
+
_define_property(_this, "isHideCaption", void 0);
|
|
121
|
+
var _props_caption;
|
|
122
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : ReferenceListControl.controlName;
|
|
123
|
+
var _props_isShowSimpleSearch;
|
|
124
|
+
_this.isShowSimpleSearch = (_props_isShowSimpleSearch = props === null || props === void 0 ? void 0 : props.isShowSimpleSearch) !== null && _props_isShowSimpleSearch !== void 0 ? _props_isShowSimpleSearch : true;
|
|
125
|
+
var _props_isShowToolbar;
|
|
126
|
+
_this.isShowToolbar = (_props_isShowToolbar = props === null || props === void 0 ? void 0 : props.isShowToolbar) !== null && _props_isShowToolbar !== void 0 ? _props_isShowToolbar : true;
|
|
127
|
+
var _props_isHideCaption;
|
|
128
|
+
_this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
|
|
129
|
+
var _ref;
|
|
130
|
+
_this.actionSetting = (_ref = new ActionSetting(props === null || props === void 0 ? void 0 : props.actionSetting)) !== null && _ref !== void 0 ? _ref : new ActionSetting();
|
|
131
|
+
var _ref1;
|
|
132
|
+
_this.listHeightSetting = (_ref1 = new ListHeightSetting(props === null || props === void 0 ? void 0 : props.listHeightSetting)) !== null && _ref1 !== void 0 ? _ref1 : new ListHeightSetting();
|
|
133
|
+
return _this;
|
|
134
|
+
}
|
|
135
|
+
return ReferenceListProperty;
|
|
136
|
+
}(Property);
|
|
137
|
+
_define_property(ReferenceListProperty, "Rules", ReferenceListPropertyRules);
|
|
138
|
+
export default ReferenceListProperty;
|
|
139
|
+
export { ReferenceListProperty, ReferenceListPropertyRules };
|
|
@@ -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 ReferenceListProperty from './property';
|
|
89
|
+
var ReferenceListControl = /*#__PURE__*/ function(RuntimeControl) {
|
|
90
|
+
"use strict";
|
|
91
|
+
_inherits(ReferenceListControl, RuntimeControl);
|
|
92
|
+
function ReferenceListControl(props) {
|
|
93
|
+
_class_call_check(this, ReferenceListControl);
|
|
94
|
+
var _this;
|
|
95
|
+
_this = _call_super(this, ReferenceListControl, [
|
|
96
|
+
props
|
|
97
|
+
]), _define_property(_this, "props", void 0);
|
|
98
|
+
_this.props = new ReferenceListProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
99
|
+
return _this;
|
|
100
|
+
}
|
|
101
|
+
_create_class(ReferenceListControl, null, [
|
|
102
|
+
{
|
|
103
|
+
key: "controlType",
|
|
104
|
+
get: function get() {
|
|
105
|
+
return 'reference-list';
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]);
|
|
109
|
+
return ReferenceListControl;
|
|
110
|
+
}(RuntimeControl);
|
|
111
|
+
export default ReferenceListControl;
|
|
112
|
+
export { ReferenceListControl as RuntimeReferenceListControl };
|
|
@@ -86,6 +86,7 @@ function _is_native_reflect_construct() {
|
|
|
86
86
|
}
|
|
87
87
|
import { DesignerButtonControl } from '../Button';
|
|
88
88
|
import SubmissionRecordListButtonProperty from './property';
|
|
89
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
89
90
|
var SubmissionRecordListButtonControl = /*#__PURE__*/ function(DesignerButtonControl) {
|
|
90
91
|
"use strict";
|
|
91
92
|
_inherits(SubmissionRecordListButtonControl, DesignerButtonControl);
|
|
@@ -102,7 +103,7 @@ var SubmissionRecordListButtonControl = /*#__PURE__*/ function(DesignerButtonCon
|
|
|
102
103
|
{
|
|
103
104
|
key: "controlName",
|
|
104
105
|
get: function get() {
|
|
105
|
-
return '批量提交记录';
|
|
106
|
+
return getLocaleText('CMD.submissionRecordListButton', null, '批量提交记录');
|
|
106
107
|
}
|
|
107
108
|
},
|
|
108
109
|
{
|
|
@@ -120,6 +121,9 @@ var SubmissionRecordListButtonControl = /*#__PURE__*/ function(DesignerButtonCon
|
|
|
120
121
|
]);
|
|
121
122
|
return SubmissionRecordListButtonControl;
|
|
122
123
|
}(DesignerButtonControl);
|
|
124
|
+
_define_property(SubmissionRecordListButtonControl, "slots", [
|
|
125
|
+
'grid-table-toolbar-slot'
|
|
126
|
+
]);
|
|
123
127
|
_define_property(SubmissionRecordListButtonControl, "controlEventKeys", [
|
|
124
128
|
'on_click'
|
|
125
129
|
]);
|
|
@@ -86,6 +86,7 @@ function _is_native_reflect_construct() {
|
|
|
86
86
|
}
|
|
87
87
|
import { DesignerControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
88
88
|
import TextProperty from './property';
|
|
89
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
89
90
|
var TextControl = /*#__PURE__*/ function(DesignerControl) {
|
|
90
91
|
"use strict";
|
|
91
92
|
_inherits(TextControl, DesignerControl);
|
|
@@ -102,7 +103,7 @@ var TextControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
102
103
|
{
|
|
103
104
|
key: "controlName",
|
|
104
105
|
get: function get() {
|
|
105
|
-
return '说明文字';
|
|
106
|
+
return getLocaleText('CMD.text', null, '说明文字');
|
|
106
107
|
}
|
|
107
108
|
},
|
|
108
109
|
{
|