@byteluck-fe/model-driven-controls 2.23.0-beta.11 → 2.23.0-beta.12
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/BatchDeleteButton/designer.js +2 -2
- package/dist/esm/baseControls/BatchPrintListButton/designer.js +2 -2
- package/dist/esm/baseControls/BatchPrintListButton/property.js +2 -2
- package/dist/esm/baseControls/BatchPrintRecordListButton/designer.js +2 -2
- package/dist/esm/baseControls/BatchSubmissionListButton/designer.js +2 -2
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +3 -3
- package/dist/esm/baseControls/Button/designer.js +3 -2
- package/dist/esm/baseControls/Button/property.js +2 -2
- package/dist/esm/baseControls/CreateFormListButton/designer.js +2 -2
- package/dist/esm/baseControls/CreateFormListButton/property.js +2 -2
- package/dist/esm/baseControls/Dashboard/designer.js +2 -2
- package/dist/esm/baseControls/Dashboard/property.js +4 -4
- package/dist/esm/baseControls/Divider/designer.js +2 -2
- package/dist/esm/baseControls/ExportListButton/designer.js +2 -2
- package/dist/esm/baseControls/ExportListButton/property.js +2 -2
- package/dist/esm/baseControls/ExportRecordListButton/designer.js +2 -2
- package/dist/esm/baseControls/FormSelectButton/designer.js +2 -2
- package/dist/esm/baseControls/FormSelectButton/property.js +4 -4
- package/dist/esm/baseControls/ImportRecordListButton/designer.js +2 -2
- package/dist/esm/baseControls/InvoiceCheckButton/designer.js +2 -2
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +4 -4
- package/dist/esm/baseControls/Link/designer.js +2 -2
- package/dist/esm/baseControls/Link/property.js +2 -2
- package/dist/esm/baseControls/ListSelectButton/designer.js +2 -2
- package/dist/esm/baseControls/ListSelectButton/property.js +4 -4
- package/dist/esm/baseControls/ListViewSelect/designer.js +2 -2
- package/dist/esm/baseControls/ListViewSelect/property.js +3 -3
- package/dist/esm/baseControls/OperationButton/designer.js +2 -2
- package/dist/esm/baseControls/OperationButton/property.js +3 -3
- package/dist/esm/baseControls/Pagination/designer.js +2 -2
- package/dist/esm/baseControls/SubmissionRecordListButton/designer.js +2 -2
- package/dist/esm/baseControls/Text/designer.js +2 -2
- package/dist/esm/baseControls/Text/property.js +2 -2
- package/dist/esm/baseControls/TextOcrButton/designer.js +2 -2
- package/dist/esm/baseControls/TextOcrButton/property.js +5 -5
- package/dist/esm/baseControls/Title/designer.js +2 -2
- package/dist/esm/baseControls/Title/property.js +6 -6
- package/dist/esm/baseControls/utils.js +4 -4
- package/dist/esm/columnControls/ApprovalStatusColumn/designer.js +2 -2
- package/dist/esm/columnControls/ArrayColumn/designer.js +3 -2
- package/dist/esm/columnControls/AutoNumberColumn/designer.js +3 -2
- package/dist/esm/columnControls/CustomColumn/designer.js +3 -2
- package/dist/esm/columnControls/CustomColumn/property.js +2 -2
- package/dist/esm/columnControls/DecimalColumn/designer.js +3 -2
- package/dist/esm/columnControls/DepartmentColumn/designer.js +3 -2
- package/dist/esm/columnControls/EmployeeColumn/designer.js +3 -2
- package/dist/esm/columnControls/FileColumn/designer.js +3 -2
- package/dist/esm/columnControls/ImageColumn/designer.js +3 -2
- package/dist/esm/columnControls/LocationColumn/designer.js +3 -2
- package/dist/esm/columnControls/OperationColumn/designer.js +2 -2
- package/dist/esm/columnControls/OperationColumn/property.js +3 -3
- package/dist/esm/columnControls/OrderColumn/designer.js +2 -2
- package/dist/esm/columnControls/PeopleColumn/designer.js +3 -2
- package/dist/esm/columnControls/TextColumn/designer.js +3 -2
- package/dist/esm/columnControls/TimescopeColumn/designer.js +3 -2
- package/dist/esm/columnControls/TimestampColumn/designer.js +3 -2
- package/dist/esm/columnControls/VarcharColumn/designer.js +3 -2
- package/dist/esm/formControls/Address/designer.js +3 -2
- package/dist/esm/formControls/Address/property.js +5 -5
- package/dist/esm/formControls/Amount/designer.js +3 -2
- package/dist/esm/formControls/Amount/property.js +8 -8
- package/dist/esm/formControls/Attachment/designer.js +3 -2
- package/dist/esm/formControls/Attachment/property.js +5 -5
- package/dist/esm/formControls/AutoNumber/designer.js +3 -2
- package/dist/esm/formControls/AutoNumber/property.js +2 -2
- package/dist/esm/formControls/Calc/designer.js +3 -2
- package/dist/esm/formControls/Calc/property.js +5 -5
- package/dist/esm/formControls/Checkbox/designer.js +3 -2
- package/dist/esm/formControls/Checkbox/property.js +2 -2
- package/dist/esm/formControls/DatePicker/designer.js +3 -2
- package/dist/esm/formControls/DatePicker/property.js +3 -2
- package/dist/esm/formControls/DateRange/designer.js +3 -2
- package/dist/esm/formControls/DateRange/property.js +4 -3
- package/dist/esm/formControls/Department/designer.js +3 -2
- package/dist/esm/formControls/Department/property.js +2 -2
- package/dist/esm/formControls/Department2/designer.js +3 -2
- package/dist/esm/formControls/Department2/property.js +4 -4
- package/dist/esm/formControls/ElectronicSignature/designer.js +3 -2
- package/dist/esm/formControls/ElectronicSignature/property.js +9 -8
- package/dist/esm/formControls/Employee/designer.js +3 -2
- package/dist/esm/formControls/Employee/property.js +2 -2
- package/dist/esm/formControls/Employee2/designer.js +3 -2
- package/dist/esm/formControls/Employee2/property.js +4 -4
- package/dist/esm/formControls/Image/designer.js +4 -3
- package/dist/esm/formControls/Image/runtime.js +3 -3
- package/dist/esm/formControls/Input/designer.js +3 -2
- package/dist/esm/formControls/Input/property.js +10 -10
- package/dist/esm/formControls/Number/designer.js +3 -2
- package/dist/esm/formControls/Number/property.js +8 -8
- package/dist/esm/formControls/OrganizationSelection/designer.js +3 -2
- package/dist/esm/formControls/OrganizationSelection/property.js +4 -4
- package/dist/esm/formControls/Radio/designer.js +3 -2
- package/dist/esm/formControls/RichText/designer.js +3 -2
- package/dist/esm/formControls/RichText/property.js +9 -9
- package/dist/esm/formControls/Score/designer.js +3 -2
- package/dist/esm/formControls/Score/property.js +8 -8
- package/dist/esm/formControls/SearchDateRange/designer.js +3 -2
- package/dist/esm/formControls/SearchDateRange/property.js +4 -3
- package/dist/esm/formControls/SearchInput/designer.js +2 -2
- package/dist/esm/formControls/SearchNumberRange/designer.js +3 -2
- package/dist/esm/formControls/SearchNumberRange/property.js +5 -5
- package/dist/esm/formControls/Select/designer.js +3 -2
- package/dist/esm/formControls/Select/property.js +3 -3
- package/dist/esm/formControls/SelectMultiple/designer.js +3 -2
- package/dist/esm/formControls/SelectMultiple/property.js +3 -3
- package/dist/esm/formControls/SelectRelation/designer.js +3 -2
- package/dist/esm/formControls/SelectRelation/property.js +6 -6
- package/dist/esm/formControls/Textarea/designer.js +3 -2
- package/dist/esm/formControls/Textarea/property.js +9 -9
- package/dist/esm/formControls/Tree/designer.js +3 -2
- package/dist/esm/formControls/Tree/property.js +5 -5
- package/dist/esm/formControls/VueFormItem/designer.js +3 -2
- package/dist/esm/formControls/VuePage/designer.js +3 -2
- package/dist/esm/formControls/WPS/designer.js +3 -2
- package/dist/esm/formControls/WPS/property.js +6 -6
- package/dist/esm/framework.js +3 -2
- package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
- package/dist/esm/layoutControls/AdvancedContainer/designer.js +2 -2
- package/dist/esm/layoutControls/CardGroup/designer.js +3 -2
- package/dist/esm/layoutControls/CardGroup/property.js +3 -3
- package/dist/esm/layoutControls/Col/designer.js +3 -2
- package/dist/esm/layoutControls/DataView/designer.js +2 -2
- package/dist/esm/layoutControls/DataView/property.js +5 -5
- package/dist/esm/layoutControls/Grid/designer.js +3 -2
- package/dist/esm/layoutControls/GridLayoutContainer/designer.js +3 -2
- package/dist/esm/layoutControls/GridRow/designer.js +3 -2
- package/dist/esm/layoutControls/ListView/designer.js +3 -2
- package/dist/esm/layoutControls/ListView/property.js +10 -10
- package/dist/esm/layoutControls/Page/designer.js +2 -2
- package/dist/esm/layoutControls/Position/designer.js +2 -2
- package/dist/esm/layoutControls/PositioningContainer/designer.js +2 -2
- package/dist/esm/layoutControls/Row/designer.js +3 -2
- package/dist/esm/layoutControls/SubTableColumn/designer.js +3 -2
- package/dist/esm/layoutControls/SubTableColumn/property.js +4 -4
- package/dist/esm/layoutControls/SubTableRow/designer.js +3 -2
- package/dist/esm/layoutControls/Tab/designer.js +3 -2
- package/dist/esm/layoutControls/TabPane/designer.js +4 -4
- package/dist/esm/layoutControls/TabPane/property.js +2 -2
- package/dist/esm/layoutControls/Toolbox/designer.js +3 -2
- package/dist/esm/listControls/GridTable/designer.js +3 -2
- package/dist/esm/listControls/SubTable/designer.js +2 -2
- package/dist/esm/listControls/SubTable/property.js +15 -15
- package/dist/esm/searchControls/SimpleSearch/property.js +3 -3
- package/dist/esm/wrapControls/GridLayoutWrap/Setting.js +3 -3
- package/dist/esm/wrapControls/GridLayoutWrap/designer.js +2 -2
- package/dist/index.umd.js +1 -1
- package/package.json +5 -5
|
@@ -109,7 +109,8 @@ function _is_native_reflect_construct() {
|
|
|
109
109
|
}
|
|
110
110
|
import { DesignerColumnControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
111
111
|
import TimestampColumnControlProperty from './property';
|
|
112
|
-
import { FieldTypes
|
|
112
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
113
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
113
114
|
var TimestampColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
|
|
114
115
|
"use strict";
|
|
115
116
|
_inherits(TimestampColumnControl, DesignerColumnControl);
|
|
@@ -138,7 +139,7 @@ var TimestampColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
|
|
|
138
139
|
return TimestampColumnControl;
|
|
139
140
|
}(DesignerColumnControl);
|
|
140
141
|
_define_property(TimestampColumnControl, "controlType", 'timestamp-column');
|
|
141
|
-
_define_property(TimestampColumnControl, "controlName",
|
|
142
|
+
_define_property(TimestampColumnControl, "controlName", getLocaleText('CMD.timestamp', null, '日期'));
|
|
142
143
|
_define_property(TimestampColumnControl, "controlIcon", 'timestamp-column');
|
|
143
144
|
_define_property(TimestampColumnControl, "controlFieldType", FieldTypes.TIMESTAMP);
|
|
144
145
|
_define_property(TimestampColumnControl, "setting", [
|
|
@@ -72,7 +72,8 @@ function _is_native_reflect_construct() {
|
|
|
72
72
|
}
|
|
73
73
|
import { DesignerColumnControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
74
74
|
import VarcharColumnControlProperty from './property';
|
|
75
|
-
import { FieldTypes
|
|
75
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
76
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
77
|
var VarcharColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
|
|
77
78
|
"use strict";
|
|
78
79
|
_inherits(VarcharColumnControl, DesignerColumnControl);
|
|
@@ -88,7 +89,7 @@ var VarcharColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
|
|
|
88
89
|
return VarcharColumnControl;
|
|
89
90
|
}(DesignerColumnControl);
|
|
90
91
|
_define_property(VarcharColumnControl, "controlType", 'varchar-column');
|
|
91
|
-
_define_property(VarcharColumnControl, "controlName",
|
|
92
|
+
_define_property(VarcharColumnControl, "controlName", getLocaleText('CMD.varchar', null, '短文本'));
|
|
92
93
|
_define_property(VarcharColumnControl, "controlIcon", 'varchar-column');
|
|
93
94
|
_define_property(VarcharColumnControl, "controlFieldType", FieldTypes.VARCHAR);
|
|
94
95
|
_define_property(VarcharColumnControl, "setting", [
|
|
@@ -85,8 +85,9 @@ function _is_native_reflect_construct() {
|
|
|
85
85
|
})();
|
|
86
86
|
}
|
|
87
87
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
88
|
-
import { FieldTypes
|
|
88
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
89
89
|
import AddressProperty from './property';
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
91
|
var AddressControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
91
92
|
"use strict";
|
|
92
93
|
_inherits(AddressControl, DesignerFormControl);
|
|
@@ -103,7 +104,7 @@ var AddressControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
103
104
|
{
|
|
104
105
|
key: "controlName",
|
|
105
106
|
get: function get() {
|
|
106
|
-
return
|
|
107
|
+
return getLocaleText('CMD.address', null, '地址');
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
{
|
|
@@ -72,7 +72,7 @@ function _is_native_reflect_construct() {
|
|
|
72
72
|
}
|
|
73
73
|
import { BaseControlProperty, BaseControlPropertyRuntimeRules, AddressValue } from '@byteluck-fe/model-driven-core';
|
|
74
74
|
import AddressControl from './designer';
|
|
75
|
-
import {
|
|
75
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
76
|
var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeRules) {
|
|
77
77
|
"use strict";
|
|
78
78
|
_inherits(AddressControlPropertyRuntimeRules, BaseControlPropertyRuntimeRules);
|
|
@@ -92,7 +92,7 @@ var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPrope
|
|
|
92
92
|
province: {
|
|
93
93
|
type: 'string',
|
|
94
94
|
required: props.required,
|
|
95
|
-
message:
|
|
95
|
+
message: getLocaleText('CMD.pleaseSelectProvince', null, '请选择省')
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
};
|
|
@@ -100,14 +100,14 @@ var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPrope
|
|
|
100
100
|
valueValidate.fields.city = {
|
|
101
101
|
type: 'string',
|
|
102
102
|
required: props.required,
|
|
103
|
-
message:
|
|
103
|
+
message: getLocaleText('CMD.pleaseSelectCity', null, '请选择市')
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
if (props.addressType.includes('district')) {
|
|
107
107
|
valueValidate.fields.district = {
|
|
108
108
|
type: 'string',
|
|
109
109
|
required: props.required,
|
|
110
|
-
message:
|
|
110
|
+
message: getLocaleText('CMD.pleaseSelectDistrict', null, '请选择区')
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
113
|
_this.push(valueValidate);
|
|
@@ -149,7 +149,7 @@ var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPrope
|
|
|
149
149
|
var _props_defaultValue;
|
|
150
150
|
_this.defaultValue = new AddressValue((_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : {});
|
|
151
151
|
var _props_placeholder;
|
|
152
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder :
|
|
152
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseChooseAddress', null, '请选择地址');
|
|
153
153
|
return _this;
|
|
154
154
|
}
|
|
155
155
|
return AddressProperty;
|
|
@@ -108,8 +108,9 @@ function _is_native_reflect_construct() {
|
|
|
108
108
|
})();
|
|
109
109
|
}
|
|
110
110
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
111
|
-
import { FieldTypes
|
|
111
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
112
112
|
import AmountProperty from './property';
|
|
113
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
113
114
|
var AmountControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
114
115
|
"use strict";
|
|
115
116
|
_inherits(AmountControl, DesignerFormControl);
|
|
@@ -139,7 +140,7 @@ var AmountControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
139
140
|
{
|
|
140
141
|
key: "controlName",
|
|
141
142
|
get: function get() {
|
|
142
|
-
return
|
|
143
|
+
return getLocaleText('CMD.amount', null, '金额');
|
|
143
144
|
}
|
|
144
145
|
},
|
|
145
146
|
{
|
|
@@ -111,7 +111,7 @@ function _is_native_reflect_construct() {
|
|
|
111
111
|
}
|
|
112
112
|
import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, AMOUNT_TYPE, AmountDataBind, AmountValue, DataSourceBind, DisplayBoListItem, initOptions } from '@byteluck-fe/model-driven-core';
|
|
113
113
|
import AmountControl from './designer';
|
|
114
|
-
import {
|
|
114
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
115
115
|
var AmountPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules) {
|
|
116
116
|
"use strict";
|
|
117
117
|
_inherits(AmountPropertyRules, OptionAndDataSourcePropertyRules);
|
|
@@ -128,7 +128,7 @@ var AmountPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRule
|
|
|
128
128
|
type: 'number',
|
|
129
129
|
min: undefined,
|
|
130
130
|
max: undefined,
|
|
131
|
-
message:
|
|
131
|
+
message: getLocaleText('CMD.pleaseEnterNumberRange', null, '请输入大于等于{min}且小于等于{max}的数值')
|
|
132
132
|
}
|
|
133
133
|
]
|
|
134
134
|
}
|
|
@@ -139,15 +139,15 @@ var AmountPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRule
|
|
|
139
139
|
var amountMin = props.rangeMin === '' ? undefined : props.rangeMin;
|
|
140
140
|
_this.defaultValue.fields.amount[0].max = amountMax;
|
|
141
141
|
_this.defaultValue.fields.amount[0].min = amountMin;
|
|
142
|
-
_this.defaultValue.fields.amount[0].message =
|
|
142
|
+
_this.defaultValue.fields.amount[0].message = getLocaleText('CMD.pleaseEnterNumberRange', {
|
|
143
143
|
max: amountMax,
|
|
144
144
|
min: amountMin
|
|
145
|
-
});
|
|
145
|
+
}, '请输入大于等于{min}且小于等于{max}的数值');
|
|
146
146
|
if (amountMin && amountMax !== undefined) {
|
|
147
147
|
_this.rangeMax = {
|
|
148
148
|
type: 'number',
|
|
149
149
|
min: amountMin,
|
|
150
|
-
message:
|
|
150
|
+
message: getLocaleText('CMD.numberRangeSetError', null, '数值范围设置有误')
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
153
|
return _this;
|
|
@@ -179,10 +179,10 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
|
|
|
179
179
|
type: 'number',
|
|
180
180
|
min: amountMin,
|
|
181
181
|
max: amountMax,
|
|
182
|
-
message:
|
|
182
|
+
message: getLocaleText(amountMax === undefined ? 'CMD.pleaseEnterAValueGreaterThanMin' : amountMin === undefined ? 'CMD.pleaseEnterAValueLessThanMax' : 'CMD.pleaseEnterNumberRange', {
|
|
183
183
|
max: amountMax,
|
|
184
184
|
min: amountMin
|
|
185
|
-
})
|
|
185
|
+
}, amountMax === undefined ? '请输入大于等于{min}的数值' : amountMin === undefined ? '请输入小于等于{max}的数值' : '请输入大于等于{min}且小于等于{max}的数值')
|
|
186
186
|
}
|
|
187
187
|
],
|
|
188
188
|
currency: {
|
|
@@ -267,7 +267,7 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
|
|
|
267
267
|
var _props_caption;
|
|
268
268
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AmountControl.controlName;
|
|
269
269
|
var _props_placeholder;
|
|
270
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder :
|
|
270
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
271
271
|
var _props_submitSelectCurrency;
|
|
272
272
|
_this.submitSelectCurrency = (_props_submitSelectCurrency = props === null || props === void 0 ? void 0 : props.submitSelectCurrency) !== null && _props_submitSelectCurrency !== void 0 ? _props_submitSelectCurrency : false;
|
|
273
273
|
var _props_showUpperCase;
|
|
@@ -86,7 +86,8 @@ function _is_native_reflect_construct() {
|
|
|
86
86
|
}
|
|
87
87
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
88
88
|
import AttachmentProperty from './property';
|
|
89
|
-
import { FieldTypes
|
|
89
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
91
|
var AttachmentControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
91
92
|
"use strict";
|
|
92
93
|
_inherits(AttachmentControl, DesignerFormControl);
|
|
@@ -103,7 +104,7 @@ var AttachmentControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
103
104
|
{
|
|
104
105
|
key: "controlName",
|
|
105
106
|
get: function get() {
|
|
106
|
-
return
|
|
107
|
+
return getLocaleText('CMD.file', null, '附件');
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
{
|
|
@@ -76,9 +76,9 @@ function _is_native_reflect_construct() {
|
|
|
76
76
|
return !!result;
|
|
77
77
|
})();
|
|
78
78
|
}
|
|
79
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
79
80
|
import AttachmentControl from './designer';
|
|
80
81
|
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
81
|
-
import { RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
82
82
|
var MB10 = 10485760;
|
|
83
83
|
var MB100 = 104857600;
|
|
84
84
|
var MB1000 = 1048576000;
|
|
@@ -94,7 +94,7 @@ var AttachmentControlPropertyRules = /*#__PURE__*/ function(BaseControlPropertyR
|
|
|
94
94
|
type: 'number',
|
|
95
95
|
min: 0,
|
|
96
96
|
max: MB1000,
|
|
97
|
-
message:
|
|
97
|
+
message: getLocaleText('CMD.attachmentMaxSize', null, '附件大小必须在0MB至1000MB之间')
|
|
98
98
|
});
|
|
99
99
|
return _this;
|
|
100
100
|
}
|
|
@@ -116,10 +116,10 @@ var AttachmentControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPr
|
|
|
116
116
|
type: 'array',
|
|
117
117
|
max: props.maxLimit,
|
|
118
118
|
min: props.minLimit,
|
|
119
|
-
message:
|
|
119
|
+
message: getLocaleText('CMD.attachmentLimitError', {
|
|
120
120
|
max: props.maxLimit,
|
|
121
121
|
min: props.minLimit
|
|
122
|
-
})
|
|
122
|
+
}, '附件上传的数量超过了限制')
|
|
123
123
|
});
|
|
124
124
|
return _this;
|
|
125
125
|
}
|
|
@@ -155,7 +155,7 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
155
155
|
var _props_caption;
|
|
156
156
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AttachmentControl.controlName;
|
|
157
157
|
var _props_placeholder;
|
|
158
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder :
|
|
158
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.uploadFile', null, '上传附件');
|
|
159
159
|
var _props_isShowWatermark;
|
|
160
160
|
_this.isShowWatermark = (_props_isShowWatermark = props === null || props === void 0 ? void 0 : props.isShowWatermark) !== null && _props_isShowWatermark !== void 0 ? _props_isShowWatermark : false;
|
|
161
161
|
var _props_watermarkFx;
|
|
@@ -85,8 +85,9 @@ function _is_native_reflect_construct() {
|
|
|
85
85
|
})();
|
|
86
86
|
}
|
|
87
87
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
88
|
-
import { FieldTypes
|
|
88
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
89
89
|
import AutoNumberProperty from './property';
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
91
|
var AutoNumberControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
91
92
|
"use strict";
|
|
92
93
|
_inherits(AutoNumberControl, DesignerFormControl);
|
|
@@ -103,7 +104,7 @@ var AutoNumberControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
103
104
|
{
|
|
104
105
|
key: "controlName",
|
|
105
106
|
get: function get() {
|
|
106
|
-
return
|
|
107
|
+
return getLocaleText('CMD.autoNumber', null, '自动编号');
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
{
|
|
@@ -70,9 +70,9 @@ function _is_native_reflect_construct() {
|
|
|
70
70
|
return !!result;
|
|
71
71
|
})();
|
|
72
72
|
}
|
|
73
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
73
74
|
import AutoNumberControl from './designer';
|
|
74
75
|
import { BaseControlProperty } from '@byteluck-fe/model-driven-core';
|
|
75
|
-
import { RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
76
76
|
var AutoNumberProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
77
77
|
"use strict";
|
|
78
78
|
_inherits(AutoNumberProperty, BaseControlProperty);
|
|
@@ -87,7 +87,7 @@ var AutoNumberProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
87
87
|
var _props_caption;
|
|
88
88
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AutoNumberControl.controlName;
|
|
89
89
|
var _props_placeholder;
|
|
90
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder :
|
|
90
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnterAutonumber', null, '请输入自动编号');
|
|
91
91
|
return _this;
|
|
92
92
|
}
|
|
93
93
|
return AutoNumberProperty;
|
|
@@ -108,8 +108,9 @@ function _is_native_reflect_construct() {
|
|
|
108
108
|
})();
|
|
109
109
|
}
|
|
110
110
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
111
|
-
import { FieldTypes
|
|
111
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
112
112
|
import { CalcProperty } from './property';
|
|
113
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
113
114
|
var CalcControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
114
115
|
"use strict";
|
|
115
116
|
_inherits(CalcControl, DesignerFormControl);
|
|
@@ -139,7 +140,7 @@ var CalcControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
139
140
|
{
|
|
140
141
|
key: "controlName",
|
|
141
142
|
get: function get() {
|
|
142
|
-
return
|
|
143
|
+
return getLocaleText('CMD.calc', null, '计算公式');
|
|
143
144
|
}
|
|
144
145
|
},
|
|
145
146
|
{
|
|
@@ -72,7 +72,7 @@ function _is_native_reflect_construct() {
|
|
|
72
72
|
}
|
|
73
73
|
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, CalcDataBind, CalcValue } from '@byteluck-fe/model-driven-core';
|
|
74
74
|
import AmountControl from './designer';
|
|
75
|
-
import {
|
|
75
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
76
|
var CalcControlPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
77
77
|
"use strict";
|
|
78
78
|
_inherits(CalcControlPropertyRules, BaseControlPropertyRules);
|
|
@@ -106,17 +106,17 @@ var CalcControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProperty
|
|
|
106
106
|
}
|
|
107
107
|
_this.push({
|
|
108
108
|
type: 'object',
|
|
109
|
-
message:
|
|
109
|
+
message: getLocaleText('CMD.isNotObject', null, '请输入一个对象'),
|
|
110
110
|
fields: {
|
|
111
111
|
result: [
|
|
112
112
|
{
|
|
113
113
|
type: 'number',
|
|
114
|
-
message:
|
|
114
|
+
message: getLocaleText('CMD.isNotNumber', null, '请输入一个数字')
|
|
115
115
|
}
|
|
116
116
|
],
|
|
117
117
|
unit: {
|
|
118
118
|
type: 'string',
|
|
119
|
-
message:
|
|
119
|
+
message: getLocaleText('CMD.isNotString', null, '请输入一个字符串')
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
});
|
|
@@ -171,7 +171,7 @@ var CalcProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
171
171
|
var _props_unitPosition;
|
|
172
172
|
_this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : 'right';
|
|
173
173
|
var _props_placeholder;
|
|
174
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder :
|
|
174
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
175
175
|
var _props_scriptEcho;
|
|
176
176
|
_this.scriptEcho = (_props_scriptEcho = props === null || props === void 0 ? void 0 : props.scriptEcho) !== null && _props_scriptEcho !== void 0 ? _props_scriptEcho : [];
|
|
177
177
|
var _props_scriptSrc;
|
|
@@ -85,8 +85,9 @@ function _is_native_reflect_construct() {
|
|
|
85
85
|
})();
|
|
86
86
|
}
|
|
87
87
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
88
|
-
import { FieldTypes
|
|
88
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
89
89
|
import CheckboxProperty from './property';
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
91
|
var CheckboxControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
91
92
|
"use strict";
|
|
92
93
|
_inherits(CheckboxControl, DesignerFormControl);
|
|
@@ -103,7 +104,7 @@ var CheckboxControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
103
104
|
{
|
|
104
105
|
key: "controlName",
|
|
105
106
|
get: function get() {
|
|
106
|
-
return
|
|
107
|
+
return getLocaleText('CMD.checkBox', null, '多选');
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
{
|
|
@@ -72,7 +72,7 @@ function _is_native_reflect_construct() {
|
|
|
72
72
|
}
|
|
73
73
|
import CheckboxControl from './designer';
|
|
74
74
|
import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions } from '@byteluck-fe/model-driven-core';
|
|
75
|
-
import {
|
|
75
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
76
|
var CheckboxPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules) {
|
|
77
77
|
"use strict";
|
|
78
78
|
_inherits(CheckboxPropertyRules, OptionAndDataSourcePropertyRules);
|
|
@@ -84,7 +84,7 @@ var CheckboxPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRu
|
|
|
84
84
|
]), _define_property(_this, "limitMax", {
|
|
85
85
|
type: 'number',
|
|
86
86
|
min: undefined,
|
|
87
|
-
message:
|
|
87
|
+
message: getLocaleText('CMD.PleaseReselectTheOptionalQuantity', null, '请重新选择可选数量')
|
|
88
88
|
});
|
|
89
89
|
var unlimitedMax = props.limitMax === 'unlimited';
|
|
90
90
|
if (unlimitedMax) {
|
|
@@ -108,8 +108,9 @@ function _is_native_reflect_construct() {
|
|
|
108
108
|
})();
|
|
109
109
|
}
|
|
110
110
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
111
|
-
import { FieldTypes
|
|
111
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
112
112
|
import DatePickerProperty from './property';
|
|
113
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
113
114
|
var DatePickerControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
114
115
|
"use strict";
|
|
115
116
|
_inherits(DatePickerControl, DesignerFormControl);
|
|
@@ -138,7 +139,7 @@ var DatePickerControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
138
139
|
{
|
|
139
140
|
key: "controlName",
|
|
140
141
|
get: function get() {
|
|
141
|
-
return
|
|
142
|
+
return getLocaleText('CMD.timestamp', null, '日期');
|
|
142
143
|
}
|
|
143
144
|
},
|
|
144
145
|
{
|
|
@@ -72,8 +72,9 @@ function _is_native_reflect_construct() {
|
|
|
72
72
|
}
|
|
73
73
|
import DatePickerControl from './designer';
|
|
74
74
|
import { BaseControlProperty } from '@byteluck-fe/model-driven-core';
|
|
75
|
-
import { DateType
|
|
75
|
+
import { DateType } from '@byteluck-fe/model-driven-shared';
|
|
76
76
|
import { LimitDate } from '../../framework';
|
|
77
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
77
78
|
var DatePickerProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
78
79
|
"use strict";
|
|
79
80
|
_inherits(DatePickerProperty, BaseControlProperty);
|
|
@@ -103,7 +104,7 @@ var DatePickerProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
103
104
|
var _props_caption;
|
|
104
105
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DatePickerControl.controlName;
|
|
105
106
|
var _props_placeholder;
|
|
106
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder :
|
|
107
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnterDate', null, '请输入日期');
|
|
107
108
|
var _props_defaultValue;
|
|
108
109
|
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
109
110
|
var _props_limitDateList_map;
|
|
@@ -108,8 +108,9 @@ function _is_native_reflect_construct() {
|
|
|
108
108
|
})();
|
|
109
109
|
}
|
|
110
110
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
111
|
-
import { FieldTypes
|
|
111
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
112
112
|
import DateRangeProperty from './property';
|
|
113
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
113
114
|
var DateRangeControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
114
115
|
"use strict";
|
|
115
116
|
_inherits(DateRangeControl, DesignerFormControl);
|
|
@@ -138,7 +139,7 @@ var DateRangeControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
138
139
|
{
|
|
139
140
|
key: "controlName",
|
|
140
141
|
get: function get() {
|
|
141
|
-
return
|
|
142
|
+
return getLocaleText('CMD.timescope', null, '日期区间');
|
|
142
143
|
}
|
|
143
144
|
},
|
|
144
145
|
{
|
|
@@ -72,8 +72,9 @@ function _is_native_reflect_construct() {
|
|
|
72
72
|
}
|
|
73
73
|
import { BaseControlProperty, BaseControlPropertyRuntimeRules, RangeDataBind, RangeDateValue } from '@byteluck-fe/model-driven-core';
|
|
74
74
|
import DateRangeControl from './designer';
|
|
75
|
-
import { DateType
|
|
75
|
+
import { DateType } from '@byteluck-fe/model-driven-shared';
|
|
76
76
|
import { LimitDate } from '../../framework';
|
|
77
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
77
78
|
var DateRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeRules) {
|
|
78
79
|
"use strict";
|
|
79
80
|
_inherits(DateRangePropertyRuntimeRules, BaseControlPropertyRuntimeRules);
|
|
@@ -177,9 +178,9 @@ var DateRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRu
|
|
|
177
178
|
var _props_rangeMax;
|
|
178
179
|
_this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
|
|
179
180
|
var _props_placeholderStart;
|
|
180
|
-
_this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart :
|
|
181
|
+
_this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : getLocaleText('CMD.pleaseSelectStartDate', null, '请选择开始日期');
|
|
181
182
|
var _props_placeholderEnd;
|
|
182
|
-
_this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd :
|
|
183
|
+
_this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : getLocaleText('CMD.pleaseSelectEndDate', null, '请选择结束日期');
|
|
183
184
|
var _props_caption;
|
|
184
185
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DateRangeControl.controlName;
|
|
185
186
|
var _props_limitDateList_map;
|
|
@@ -108,8 +108,9 @@ function _is_native_reflect_construct() {
|
|
|
108
108
|
})();
|
|
109
109
|
}
|
|
110
110
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
111
|
-
import { FieldTypes
|
|
111
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
112
112
|
import DepartmentProperty from './property';
|
|
113
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
113
114
|
var DepartmentControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
114
115
|
"use strict";
|
|
115
116
|
_inherits(DepartmentControl, DesignerFormControl);
|
|
@@ -151,7 +152,7 @@ var DepartmentControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
151
152
|
]);
|
|
152
153
|
return DepartmentControl;
|
|
153
154
|
}(DesignerFormControl);
|
|
154
|
-
_define_property(DepartmentControl, "controlName",
|
|
155
|
+
_define_property(DepartmentControl, "controlName", getLocaleText('CMD.department', null, '部门'));
|
|
155
156
|
_define_property(DepartmentControl, "controlFieldType", FieldTypes.DEPARTMENTS);
|
|
156
157
|
_define_property(DepartmentControl, "setting", [
|
|
157
158
|
{
|
|
@@ -70,9 +70,9 @@ function _is_native_reflect_construct() {
|
|
|
70
70
|
return !!result;
|
|
71
71
|
})();
|
|
72
72
|
}
|
|
73
|
-
import { RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
74
73
|
import DepartmentControl from './designer';
|
|
75
74
|
import { BaseControlProperty, BaseControlPropertyRuntimeRules, MultistageFillingItem } from '@byteluck-fe/model-driven-core';
|
|
75
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
76
|
var DepartmentPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeRules) {
|
|
77
77
|
"use strict";
|
|
78
78
|
_inherits(DepartmentPropertyRuntimeRules, BaseControlPropertyRuntimeRules);
|
|
@@ -136,7 +136,7 @@ var DepartmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
136
136
|
var _props_caption;
|
|
137
137
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DepartmentControl.controlName;
|
|
138
138
|
var _props_placeholder;
|
|
139
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder :
|
|
139
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelectDept', null, '请选择部门');
|
|
140
140
|
var _props_openMultistageFilling;
|
|
141
141
|
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
142
142
|
_this.multistageFilling = [];
|
|
@@ -108,8 +108,9 @@ function _is_native_reflect_construct() {
|
|
|
108
108
|
})();
|
|
109
109
|
}
|
|
110
110
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
111
|
-
import { FieldTypes
|
|
111
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
112
112
|
import Department2Property from './property';
|
|
113
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
113
114
|
var Department2Control = /*#__PURE__*/ function(DesignerFormControl) {
|
|
114
115
|
"use strict";
|
|
115
116
|
_inherits(Department2Control, DesignerFormControl);
|
|
@@ -163,7 +164,7 @@ var Department2Control = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
163
164
|
]);
|
|
164
165
|
return Department2Control;
|
|
165
166
|
}(DesignerFormControl);
|
|
166
|
-
_define_property(Department2Control, "controlName",
|
|
167
|
+
_define_property(Department2Control, "controlName", getLocaleText('CMD.department', null, '部门'));
|
|
167
168
|
_define_property(Department2Control, "controlFieldType", FieldTypes.DEPARTMENTS);
|
|
168
169
|
_define_property(Department2Control, "setting", [
|
|
169
170
|
{
|
|
@@ -72,8 +72,8 @@ function _is_native_reflect_construct() {
|
|
|
72
72
|
}
|
|
73
73
|
import Department2Control from './designer';
|
|
74
74
|
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, initSuperDataSourceRules, MultistageFillingItem, SuperDataSourceBind } from '@byteluck-fe/model-driven-core';
|
|
75
|
-
import { RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
76
75
|
import { DepartmentType, AssignType } from '../../framework';
|
|
76
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
77
77
|
var Department2PropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
78
78
|
"use strict";
|
|
79
79
|
_inherits(Department2PropertyRules, BaseControlPropertyRules);
|
|
@@ -85,7 +85,7 @@ var Department2PropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules)
|
|
|
85
85
|
]), _define_property(_this, "datasourceBind", [
|
|
86
86
|
{
|
|
87
87
|
type: 'object',
|
|
88
|
-
message:
|
|
88
|
+
message: getLocaleText('CMD.isNotObject', null, '请输入一个对象')
|
|
89
89
|
}
|
|
90
90
|
]), _define_property(_this, "businessScope", {
|
|
91
91
|
type: 'any'
|
|
@@ -95,7 +95,7 @@ var Department2PropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules)
|
|
|
95
95
|
_this.businessScope = {
|
|
96
96
|
type: 'array',
|
|
97
97
|
required: true,
|
|
98
|
-
message:
|
|
98
|
+
message: getLocaleText('CMD.pleaseAssignBusiness', null, '请选择指定业务部门')
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
101
|
return _this;
|
|
@@ -172,7 +172,7 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
172
172
|
var _props_caption;
|
|
173
173
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : Department2Control.controlName;
|
|
174
174
|
var _props_placeholder;
|
|
175
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder :
|
|
175
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelectDept', null, '请选择部门');
|
|
176
176
|
var _props_datasourceBind;
|
|
177
177
|
_this.datasourceBind = new SuperDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
178
178
|
attributes: Department2Control.controlCustomAttributes
|
|
@@ -85,8 +85,9 @@ function _is_native_reflect_construct() {
|
|
|
85
85
|
})();
|
|
86
86
|
}
|
|
87
87
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
88
|
-
import { FieldTypes
|
|
88
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
89
89
|
import ElectronicSignatureProperty from './property';
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
91
|
var ElectronicSignatureControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
91
92
|
"use strict";
|
|
92
93
|
_inherits(ElectronicSignatureControl, DesignerFormControl);
|
|
@@ -103,7 +104,7 @@ var ElectronicSignatureControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
103
104
|
{
|
|
104
105
|
key: "controlName",
|
|
105
106
|
get: function get() {
|
|
106
|
-
return
|
|
107
|
+
return getLocaleText('CMD.electronicSignature', null, '电子签章');
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
{
|