@byteluck-fe/model-driven-controls 5.6.0-1-beta3 → 5.6.4-dpx-beta.1
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/property.js +10 -18
- package/dist/esm/baseControls/BatchPrintListButton/property.js +6 -9
- package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +3 -4
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +7 -12
- package/dist/esm/baseControls/Button/property.js +10 -18
- package/dist/esm/baseControls/CreateFormListButton/property.js +5 -8
- package/dist/esm/baseControls/Dashboard/designer.js +4 -0
- package/dist/esm/baseControls/Dashboard/property.js +15 -13
- package/dist/esm/baseControls/Divider/property.js +4 -5
- package/dist/esm/baseControls/ExportListButton/property.js +6 -9
- package/dist/esm/baseControls/ExportRecordListButton/property.js +3 -4
- package/dist/esm/baseControls/FormSelectButton/property.js +4 -6
- package/dist/esm/baseControls/ImportRecordListButton/property.js +6 -9
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +11 -19
- package/dist/esm/baseControls/Link/property.js +4 -6
- package/dist/esm/baseControls/ListSelectButton/property.js +6 -10
- package/dist/esm/baseControls/ListViewSelect/property.js +4 -5
- package/dist/esm/baseControls/OperationButton/property.js +9 -11
- package/dist/esm/baseControls/ReferenceList/property.js +7 -12
- package/dist/esm/baseControls/SubmissionRecordListButton/property.js +3 -4
- package/dist/esm/baseControls/Text/designer.js +4 -0
- package/dist/esm/baseControls/Text/property.js +13 -13
- package/dist/esm/baseControls/TextOcrButton/property.js +11 -19
- package/dist/esm/baseControls/Title/property.js +4 -6
- package/dist/esm/columnControls/ApprovalStatusColumn/property.js +4 -6
- package/dist/esm/columnControls/ArrayColumn/property.js +5 -8
- package/dist/esm/columnControls/AutoNumberColumn/property.js +3 -4
- package/dist/esm/columnControls/CustomColumn/designer.js +1 -0
- package/dist/esm/columnControls/CustomColumn/property.js +4 -6
- package/dist/esm/columnControls/DecimalColumn/property.js +8 -14
- package/dist/esm/columnControls/DepartmentColumn/property.js +3 -4
- package/dist/esm/columnControls/EmployeeColumn/designer.js +1 -1
- package/dist/esm/columnControls/EmployeeColumn/property.js +3 -4
- package/dist/esm/columnControls/FileColumn/property.js +3 -4
- package/dist/esm/columnControls/ImageColumn/property.js +2 -2
- package/dist/esm/columnControls/LocationColumn/property.js +3 -4
- package/dist/esm/columnControls/OperationColumn/designer.js +12 -4
- package/dist/esm/columnControls/OperationColumn/property.js +6 -10
- package/dist/esm/columnControls/OrderColumn/property.js +7 -12
- package/dist/esm/columnControls/PeopleColumn/property.js +2 -2
- package/dist/esm/columnControls/TextColumn/property.js +5 -8
- package/dist/esm/columnControls/TimescopeColumn/designer.js +2 -1
- package/dist/esm/columnControls/TimescopeColumn/property.js +7 -7
- package/dist/esm/columnControls/TimestampColumn/designer.js +2 -1
- package/dist/esm/columnControls/TimestampColumn/property.js +7 -7
- package/dist/esm/columnControls/VarcharColumn/property.js +7 -12
- package/dist/esm/formControls/Address/property.js +6 -10
- package/dist/esm/formControls/Address/runtime.js +1 -1
- package/dist/esm/formControls/Amount/property.js +14 -25
- package/dist/esm/formControls/Attachment/designer.js +5 -0
- package/dist/esm/formControls/Attachment/property.js +29 -36
- package/dist/esm/formControls/AutoNumber/property.js +4 -6
- package/dist/esm/formControls/Calc/property.js +10 -18
- package/dist/esm/formControls/Checkbox/designer.js +4 -0
- package/dist/esm/formControls/Checkbox/property.js +21 -28
- package/dist/esm/formControls/DatePicker/designer.js +4 -2
- package/dist/esm/formControls/DatePicker/property.js +14 -21
- package/dist/esm/formControls/DateRange/designer.js +4 -2
- package/dist/esm/formControls/DateRange/property.js +15 -22
- package/dist/esm/formControls/Department/property.js +12 -22
- package/dist/esm/formControls/Department2/designer.js +1 -1
- package/dist/esm/formControls/Department2/property.js +17 -32
- package/dist/esm/formControls/ElectronicSignature/property.js +7 -12
- package/dist/esm/formControls/Employee/property.js +10 -18
- package/dist/esm/formControls/Employee2/designer.js +5 -1
- package/dist/esm/formControls/Employee2/property.js +21 -34
- package/dist/esm/formControls/Image/designer.js +19 -15
- package/dist/esm/formControls/Image/property.js +28 -2
- package/dist/esm/formControls/Image/runtime.js +16 -10
- package/dist/esm/formControls/Input/designer.js +12 -0
- package/dist/esm/formControls/Input/property.js +23 -15
- package/dist/esm/formControls/Number/property.js +15 -27
- package/dist/esm/formControls/OrganizationSelection/designer.js +1 -1
- package/dist/esm/formControls/OrganizationSelection/property.js +19 -36
- package/dist/esm/formControls/Radio/designer.js +4 -0
- package/dist/esm/formControls/Radio/property.js +18 -23
- package/dist/esm/formControls/RichText/designer.js +16 -0
- package/dist/esm/formControls/RichText/property.js +48 -12
- package/dist/esm/formControls/Score/property.js +8 -13
- package/dist/esm/formControls/SearchDateRange/property.js +16 -24
- package/dist/esm/formControls/SearchNumberRange/property.js +7 -12
- package/dist/esm/formControls/Select/designer.js +4 -0
- package/dist/esm/formControls/Select/property.js +17 -21
- package/dist/esm/formControls/SelectMultiple/designer.js +4 -0
- package/dist/esm/formControls/SelectMultiple/property.js +16 -19
- package/dist/esm/formControls/SelectRelation/designer.js +4 -0
- package/dist/esm/formControls/SelectRelation/property.js +60 -66
- package/dist/esm/formControls/Textarea/designer.js +16 -0
- package/dist/esm/formControls/Textarea/property.js +60 -12
- package/dist/esm/formControls/Tree/designer.js +2 -2
- package/dist/esm/formControls/Tree/property.js +20 -37
- package/dist/esm/formControls/VueFormItem/property.js +6 -10
- package/dist/esm/formControls/VuePage/property.js +6 -10
- package/dist/esm/formControls/WPS/designer.js +9 -9
- package/dist/esm/formControls/WPS/property.js +13 -24
- package/dist/esm/framework.js +77 -113
- package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
- package/dist/esm/layoutControls/ActionBar/property.js +4 -6
- package/dist/esm/layoutControls/ActionBar/runtime.js +2 -2
- package/dist/esm/layoutControls/AdvancedContainer/Setting.js +3 -3
- package/dist/esm/layoutControls/CardGroup/property.js +4 -6
- package/dist/esm/layoutControls/Col/property.js +3 -4
- package/dist/esm/layoutControls/DataView/property.js +7 -12
- package/dist/esm/layoutControls/GridLayoutContainer/property.js +3 -4
- package/dist/esm/layoutControls/GridTableColumn/designer.js +1 -1
- package/dist/esm/layoutControls/GridTableColumn/property.js +11 -20
- package/dist/esm/layoutControls/ListView/property.js +13 -24
- package/dist/esm/layoutControls/Page/Setting.js +5 -5
- package/dist/esm/layoutControls/Page/property.js +2 -2
- package/dist/esm/layoutControls/Position/property.js +5 -8
- package/dist/esm/layoutControls/PositioningContainer/Setting.js +3 -3
- package/dist/esm/layoutControls/Row/property.js +3 -4
- package/dist/esm/layoutControls/Step/designer.js +166 -0
- package/dist/esm/layoutControls/Step/index.js +11 -0
- package/dist/esm/layoutControls/Step/property.js +99 -0
- package/dist/esm/layoutControls/Step/runtime.js +112 -0
- package/dist/esm/layoutControls/Step/types.js +0 -0
- package/dist/esm/layoutControls/StepPane/designer.js +130 -0
- package/dist/esm/layoutControls/StepPane/index.js +11 -0
- package/dist/esm/layoutControls/StepPane/property.js +116 -0
- package/dist/esm/layoutControls/StepPane/runtime.js +112 -0
- package/dist/esm/layoutControls/StepPane/types.js +0 -0
- package/dist/esm/layoutControls/SubTableColumn/property.js +6 -10
- package/dist/esm/layoutControls/Tab/designer.js +2 -2
- package/dist/esm/layoutControls/Tab/property.js +2 -2
- package/dist/esm/layoutControls/TabPane/property.js +2 -2
- package/dist/esm/layoutControls/index.js +2 -0
- package/dist/esm/listControls/GridTable/designer.js +13 -4
- package/dist/esm/listControls/GridTable/property.js +15 -19
- package/dist/esm/listControls/SubTable/designer.js +2 -1
- package/dist/esm/listControls/SubTable/property.js +37 -67
- package/dist/esm/searchControls/SimpleSearch/property.js +13 -24
- 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 +2 -2
- package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +8 -8
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/Dashboard/property.d.ts +5 -1
- package/dist/types/baseControls/OperationButton/property.d.ts +1 -0
- package/dist/types/baseControls/Text/property.d.ts +6 -0
- package/dist/types/columnControls/TimescopeColumn/property.d.ts +1 -0
- package/dist/types/columnControls/TimestampColumn/property.d.ts +1 -0
- package/dist/types/formControls/Attachment/property.d.ts +3 -0
- package/dist/types/formControls/Checkbox/property.d.ts +6 -0
- package/dist/types/formControls/DatePicker/property.d.ts +1 -0
- package/dist/types/formControls/DateRange/property.d.ts +1 -0
- package/dist/types/formControls/Employee2/property.d.ts +1 -0
- package/dist/types/formControls/Image/designer.d.ts +2 -0
- package/dist/types/formControls/Image/property.d.ts +3 -0
- package/dist/types/formControls/Image/runtime.d.ts +2 -0
- package/dist/types/formControls/Input/property.d.ts +17 -0
- package/dist/types/formControls/Radio/property.d.ts +6 -0
- package/dist/types/formControls/RichText/property.d.ts +30 -1
- package/dist/types/formControls/SearchDateRange/property.d.ts +1 -0
- package/dist/types/formControls/Select/property.d.ts +6 -0
- package/dist/types/formControls/SelectMultiple/property.d.ts +6 -0
- package/dist/types/formControls/SelectRelation/property.d.ts +6 -0
- package/dist/types/formControls/Textarea/property.d.ts +30 -1
- package/dist/types/framework.d.ts +8 -0
- package/dist/types/layoutControls/Step/designer.d.ts +14 -0
- package/dist/types/layoutControls/Step/index.d.ts +12 -0
- package/dist/types/layoutControls/Step/property.d.ts +11 -0
- package/dist/types/layoutControls/Step/runtime.d.ts +9 -0
- package/dist/types/layoutControls/Step/types.d.ts +0 -0
- package/dist/types/layoutControls/StepPane/designer.d.ts +14 -0
- package/dist/types/layoutControls/StepPane/index.d.ts +12 -0
- package/dist/types/layoutControls/StepPane/property.d.ts +14 -0
- package/dist/types/layoutControls/StepPane/runtime.d.ts +9 -0
- package/dist/types/layoutControls/StepPane/types.d.ts +0 -0
- package/dist/types/layoutControls/index.d.ts +2 -0
- package/dist/types/listControls/SubTable/property.d.ts +1 -0
- package/dist/types/type.d.ts +3 -1
- package/package.json +5 -5
|
@@ -155,6 +155,7 @@ var InputControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropert
|
|
|
155
155
|
function InputProperty(props) {
|
|
156
156
|
_class_call_check(this, InputProperty);
|
|
157
157
|
var _this;
|
|
158
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
|
|
158
159
|
_this = _call_super(this, InputProperty, [
|
|
159
160
|
props
|
|
160
161
|
]), /**
|
|
@@ -180,22 +181,29 @@ var InputControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropert
|
|
|
180
181
|
* 密码模式 '' | 'ALL_MASK' | 'LAST_FOUR_MASK'
|
|
181
182
|
* @defaultValue ''
|
|
182
183
|
* @public
|
|
183
|
-
*/ _define_property(_this, "encryptedMode", void 0)
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
184
|
+
*/ _define_property(_this, "encryptedMode", void 0), /**
|
|
185
|
+
* ai 显示内容搜索 false | true
|
|
186
|
+
* @defaultValue false
|
|
187
|
+
* @public
|
|
188
|
+
*/ _define_property(_this, "aiContentSearch", void 0), /**
|
|
189
|
+
* 在明细子表中自动高度
|
|
190
|
+
* @defaultValue false
|
|
191
|
+
*/ _define_property(_this, "autoHeight", void 0), /**
|
|
192
|
+
* 在明细子表中行数设置
|
|
193
|
+
* @defaultValue 1
|
|
194
|
+
* @public
|
|
195
|
+
*/ _define_property(_this, "lineEllipsis", void 0);
|
|
196
|
+
_this.maxLength = (_ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _ref !== void 0 ? _ref : 200;
|
|
197
|
+
_this.minLength = (_ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && _ref1 !== void 0 ? _ref1 : 0;
|
|
188
198
|
_this.regularRules = new RegularRules(props === null || props === void 0 ? void 0 : props.regularRules);
|
|
189
|
-
|
|
190
|
-
_this.
|
|
191
|
-
|
|
192
|
-
_this.
|
|
193
|
-
|
|
194
|
-
_this.
|
|
195
|
-
|
|
196
|
-
_this.
|
|
197
|
-
var _props_encryptedMode;
|
|
198
|
-
_this.encryptedMode = (_props_encryptedMode = props === null || props === void 0 ? void 0 : props.encryptedMode) !== null && _props_encryptedMode !== void 0 ? _props_encryptedMode : '';
|
|
199
|
+
_this.defaultValue = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
200
|
+
_this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : InputControl.controlName;
|
|
201
|
+
_this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
202
|
+
_this.encrypted = (_ref5 = props === null || props === void 0 ? void 0 : props.encrypted) !== null && _ref5 !== void 0 ? _ref5 : false;
|
|
203
|
+
_this.encryptedMode = (_ref6 = props === null || props === void 0 ? void 0 : props.encryptedMode) !== null && _ref6 !== void 0 ? _ref6 : '';
|
|
204
|
+
_this.aiContentSearch = (_ref7 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
205
|
+
_this.autoHeight = (_ref8 = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _ref8 !== void 0 ? _ref8 : false;
|
|
206
|
+
_this.lineEllipsis = (_ref9 = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _ref9 !== void 0 ? _ref9 : 1;
|
|
199
207
|
return _this;
|
|
200
208
|
}
|
|
201
209
|
return InputProperty;
|
|
@@ -138,7 +138,7 @@ var NumberControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProper
|
|
|
138
138
|
message: getLocaleText(max === undefined ? 'CMD.pleaseEnterAValueGreaterThanMin' : min === undefined ? 'CMD.pleaseEnterAValueLessThanMax' : 'CMD.pleaseEnterNumberRange', {
|
|
139
139
|
max: max,
|
|
140
140
|
min: min
|
|
141
|
-
}, max === undefined ? getLocaleText('CMD.
|
|
141
|
+
}, max === undefined ? getLocaleText('CMD.16921751712133509') : min === undefined ? getLocaleText('CMD.f0231751712135569') : getLocaleText('CMD.78ab1751712129046'))
|
|
142
142
|
});
|
|
143
143
|
if (props.regularRules.expression && props.regularRules.errMessage) {
|
|
144
144
|
_this.push({
|
|
@@ -159,6 +159,7 @@ var NumberControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProper
|
|
|
159
159
|
function NumberProperty(props) {
|
|
160
160
|
_class_call_check(this, NumberProperty);
|
|
161
161
|
var _this;
|
|
162
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12;
|
|
162
163
|
_this = _call_super(this, NumberProperty, [
|
|
163
164
|
props
|
|
164
165
|
]), /**
|
|
@@ -209,32 +210,19 @@ var NumberControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProper
|
|
|
209
210
|
* 正则校验
|
|
210
211
|
* @public
|
|
211
212
|
* */ _define_property(_this, "regularRules", void 0);
|
|
212
|
-
|
|
213
|
-
_this.
|
|
214
|
-
|
|
215
|
-
_this.
|
|
216
|
-
|
|
217
|
-
_this.
|
|
218
|
-
|
|
219
|
-
_this.
|
|
220
|
-
|
|
221
|
-
_this.
|
|
222
|
-
|
|
223
|
-
_this.
|
|
224
|
-
|
|
225
|
-
_this.showUpperCase = (_props_showUpperCase = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _props_showUpperCase !== void 0 ? _props_showUpperCase : false;
|
|
226
|
-
var _props_isShowUnit;
|
|
227
|
-
_this.isShowUnit = (_props_isShowUnit = props === null || props === void 0 ? void 0 : props.isShowUnit) !== null && _props_isShowUnit !== void 0 ? _props_isShowUnit : false;
|
|
228
|
-
var _props_unitPosition;
|
|
229
|
-
_this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : 'right';
|
|
230
|
-
var _props_unit;
|
|
231
|
-
_this.unit = (_props_unit = props === null || props === void 0 ? void 0 : props.unit) !== null && _props_unit !== void 0 ? _props_unit : '';
|
|
232
|
-
var _props_caption;
|
|
233
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : NumberControl.controlName;
|
|
234
|
-
var _props_placeholder;
|
|
235
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
236
|
-
var _props_defaultValue;
|
|
237
|
-
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
213
|
+
_this.rangeMin = (_ref = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref !== void 0 ? _ref : '';
|
|
214
|
+
_this.rangeMax = (_ref1 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
215
|
+
_this.numberType = (_ref2 = props === null || props === void 0 ? void 0 : props.numberType) !== null && _ref2 !== void 0 ? _ref2 : 'number';
|
|
216
|
+
_this.percentageFormat = (_ref3 = props === null || props === void 0 ? void 0 : props.percentageFormat) !== null && _ref3 !== void 0 ? _ref3 : false;
|
|
217
|
+
_this.micrometer = (_ref4 = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _ref4 !== void 0 ? _ref4 : false;
|
|
218
|
+
_this.precision = (_ref5 = props === null || props === void 0 ? void 0 : props.precision) !== null && _ref5 !== void 0 ? _ref5 : 0;
|
|
219
|
+
_this.showUpperCase = (_ref6 = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _ref6 !== void 0 ? _ref6 : false;
|
|
220
|
+
_this.isShowUnit = (_ref7 = props === null || props === void 0 ? void 0 : props.isShowUnit) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
221
|
+
_this.unitPosition = (_ref8 = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _ref8 !== void 0 ? _ref8 : 'right';
|
|
222
|
+
_this.unit = (_ref9 = props === null || props === void 0 ? void 0 : props.unit) !== null && _ref9 !== void 0 ? _ref9 : '';
|
|
223
|
+
_this.caption = (_ref10 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref10 !== void 0 ? _ref10 : NumberControl.controlName;
|
|
224
|
+
_this.placeholder = (_ref11 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref11 !== void 0 ? _ref11 : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
225
|
+
_this.defaultValue = (_ref12 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref12 !== void 0 ? _ref12 : '';
|
|
238
226
|
_this.regularRules = new RegularRules(props === null || props === void 0 ? void 0 : props.regularRules);
|
|
239
227
|
return _this;
|
|
240
228
|
}
|
|
@@ -161,7 +161,7 @@ var OrganizationSelectionControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
161
161
|
return [
|
|
162
162
|
{
|
|
163
163
|
key: 'displayBoList',
|
|
164
|
-
name: getLocaleText('CMD.
|
|
164
|
+
name: getLocaleText('CMD.895a1751712162322'),
|
|
165
165
|
required: true
|
|
166
166
|
}
|
|
167
167
|
];
|
|
@@ -124,6 +124,7 @@ var OrganizationSelectionProperty = /*#__PURE__*/ function(BaseControlProperty)
|
|
|
124
124
|
function OrganizationSelectionProperty(props) {
|
|
125
125
|
_class_call_check(this, OrganizationSelectionProperty);
|
|
126
126
|
var _this;
|
|
127
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17;
|
|
127
128
|
_this = _call_super(this, OrganizationSelectionProperty, [
|
|
128
129
|
props
|
|
129
130
|
]), /**
|
|
@@ -160,46 +161,28 @@ var OrganizationSelectionProperty = /*#__PURE__*/ function(BaseControlProperty)
|
|
|
160
161
|
), // 展示已选明细
|
|
161
162
|
_define_property(_this, "showSelectedDetail", void 0), // 展示已选内容配置字段
|
|
162
163
|
_define_property(_this, "selectedContentConfig", void 0);
|
|
163
|
-
|
|
164
|
-
_this.
|
|
165
|
-
|
|
166
|
-
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
167
|
-
var _props_range;
|
|
168
|
-
_this.range = (_props_range = props === null || props === void 0 ? void 0 : props.range) !== null && _props_range !== void 0 ? _props_range : 'all';
|
|
164
|
+
_this.showType = (_ref = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref !== void 0 ? _ref : 'default';
|
|
165
|
+
_this.multiple = (_ref1 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
166
|
+
_this.range = (_ref2 = props === null || props === void 0 ? void 0 : props.range) !== null && _ref2 !== void 0 ? _ref2 : 'all';
|
|
169
167
|
_this.listPageBind = new ListBind(props === null || props === void 0 ? void 0 : props.listPageBind);
|
|
170
|
-
|
|
171
|
-
_this.
|
|
172
|
-
|
|
173
|
-
_this.
|
|
174
|
-
|
|
175
|
-
_this.
|
|
176
|
-
|
|
177
|
-
_this.
|
|
178
|
-
var _props_showSubDept;
|
|
179
|
-
_this.showSubDept = (_props_showSubDept = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _props_showSubDept !== void 0 ? _props_showSubDept : true;
|
|
180
|
-
var _props_caption;
|
|
181
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : OrganizationSelectionControl.controlName;
|
|
182
|
-
var _props_placeholder;
|
|
183
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelectOrg', null, '请选择组织');
|
|
184
|
-
var _props_datasourceBind;
|
|
185
|
-
_this.datasourceBind = new OrganizationDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
168
|
+
_this.defaultValueType = (_ref3 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref3 !== void 0 ? _ref3 : 'none';
|
|
169
|
+
_this.rangeOptions = (_ref4 = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _ref4 !== void 0 ? _ref4 : [];
|
|
170
|
+
_this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
|
|
171
|
+
_this.displayLevel = (_ref6 = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _ref6 !== void 0 ? _ref6 : 1;
|
|
172
|
+
_this.showSubDept = (_ref7 = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _ref7 !== void 0 ? _ref7 : true;
|
|
173
|
+
_this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : OrganizationSelectionControl.controlName;
|
|
174
|
+
_this.placeholder = (_ref9 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref9 !== void 0 ? _ref9 : getLocaleText('CMD.pleaseSelectOrg', null, '请选择组织');
|
|
175
|
+
_this.datasourceBind = new OrganizationDataSourceBind((_ref10 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref10 !== void 0 ? _ref10 : {
|
|
186
176
|
attributes: OrganizationSelectionControl.controlCustomAttributes
|
|
187
177
|
});
|
|
188
|
-
|
|
189
|
-
_this.
|
|
190
|
-
|
|
191
|
-
_this.
|
|
192
|
-
|
|
193
|
-
_this.
|
|
194
|
-
var _props_organizingFunction;
|
|
195
|
-
_this.organizingFunction = (_props_organizingFunction = props === null || props === void 0 ? void 0 : props.organizingFunction) !== null && _props_organizingFunction !== void 0 ? _props_organizingFunction : undefined;
|
|
196
|
-
var _props_organizationView;
|
|
197
|
-
_this.organizationView = (_props_organizationView = props === null || props === void 0 ? void 0 : props.organizationView) !== null && _props_organizationView !== void 0 ? _props_organizationView : undefined;
|
|
198
|
-
var _props_showSelectedDetail;
|
|
199
|
-
_this.showSelectedDetail = (_props_showSelectedDetail = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _props_showSelectedDetail !== void 0 ? _props_showSelectedDetail : false;
|
|
178
|
+
_this.datasourceType = (_ref11 = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _ref11 !== void 0 ? _ref11 : DepartmentType.INTERNAL;
|
|
179
|
+
_this.businessScope = (_ref12 = props === null || props === void 0 ? void 0 : props.businessScope) !== null && _ref12 !== void 0 ? _ref12 : [];
|
|
180
|
+
_this.businessType = (_ref13 = props === null || props === void 0 ? void 0 : props.businessType) !== null && _ref13 !== void 0 ? _ref13 : AssignType.ALL;
|
|
181
|
+
_this.organizingFunction = (_ref14 = props === null || props === void 0 ? void 0 : props.organizingFunction) !== null && _ref14 !== void 0 ? _ref14 : undefined;
|
|
182
|
+
_this.organizationView = (_ref15 = props === null || props === void 0 ? void 0 : props.organizationView) !== null && _ref15 !== void 0 ? _ref15 : undefined;
|
|
183
|
+
_this.showSelectedDetail = (_ref16 = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _ref16 !== void 0 ? _ref16 : false;
|
|
200
184
|
_this.selectedContentConfig = new SelectedContentConfig(props === null || props === void 0 ? void 0 : props.selectedContentConfig);
|
|
201
|
-
|
|
202
|
-
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
185
|
+
_this.openMultistageFilling = (_ref17 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref17 !== void 0 ? _ref17 : false;
|
|
203
186
|
_this.multistageFilling = [];
|
|
204
187
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
205
188
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -90,6 +90,7 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
90
90
|
function RadioProperty(props) {
|
|
91
91
|
_class_call_check(this, RadioProperty);
|
|
92
92
|
var _this;
|
|
93
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11;
|
|
93
94
|
_this = _call_super(this, RadioProperty, [
|
|
94
95
|
props
|
|
95
96
|
]), _define_property(_this, "radioMode", void 0 // 选项排列方式 horizontal默认
|
|
@@ -99,9 +100,12 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
99
100
|
), _define_property(_this, "optionsOrder", void 0 // 选项排序
|
|
100
101
|
), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "interreaction", void 0 // 数据联动
|
|
101
102
|
), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
|
|
102
|
-
)
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
), /**
|
|
104
|
+
* ai 显示内容搜索 false | true
|
|
105
|
+
* @defaultValue false
|
|
106
|
+
* @public
|
|
107
|
+
*/ _define_property(_this, "aiContentSearch", void 0);
|
|
108
|
+
_this.options = initOptions((_ref = props === null || props === void 0 ? void 0 : props.options) !== null && _ref !== void 0 ? _ref : [
|
|
105
109
|
{
|
|
106
110
|
label: getLocaleText('CMD.optionOne', null, '选项一'),
|
|
107
111
|
value: getLocaleText('CMD.optionOne', null, '选项一')
|
|
@@ -115,27 +119,17 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
115
119
|
value: getLocaleText('CMD.optionThird', null, '选项三')
|
|
116
120
|
}
|
|
117
121
|
]);
|
|
118
|
-
|
|
119
|
-
_this.
|
|
120
|
-
|
|
121
|
-
_this.
|
|
122
|
-
|
|
123
|
-
_this.
|
|
124
|
-
var _props_optionsOrder;
|
|
125
|
-
_this.optionsOrder = (_props_optionsOrder = props === null || props === void 0 ? void 0 : props.optionsOrder) !== null && _props_optionsOrder !== void 0 ? _props_optionsOrder : false;
|
|
126
|
-
var _props_defaultShowOptions;
|
|
127
|
-
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
|
|
128
|
-
var _props_optionsFormat;
|
|
129
|
-
_this.optionsFormat = (_props_optionsFormat = props === null || props === void 0 ? void 0 : props.optionsFormat) !== null && _props_optionsFormat !== void 0 ? _props_optionsFormat : 'horizontal';
|
|
122
|
+
_this.radioMode = (_ref1 = props === null || props === void 0 ? void 0 : props.radioMode) !== null && _ref1 !== void 0 ? _ref1 : 'horizontal';
|
|
123
|
+
_this.optionConfig = (_ref2 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref2 !== void 0 ? _ref2 : 'custom';
|
|
124
|
+
_this.otherOption = (_ref3 = props === null || props === void 0 ? void 0 : props.otherOption) !== null && _ref3 !== void 0 ? _ref3 : false;
|
|
125
|
+
_this.optionsOrder = (_ref4 = props === null || props === void 0 ? void 0 : props.optionsOrder) !== null && _ref4 !== void 0 ? _ref4 : false;
|
|
126
|
+
_this.defaultShowOptions = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref5 !== void 0 ? _ref5 : true;
|
|
127
|
+
_this.optionsFormat = (_ref6 = props === null || props === void 0 ? void 0 : props.optionsFormat) !== null && _ref6 !== void 0 ? _ref6 : 'horizontal';
|
|
130
128
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
131
|
-
|
|
132
|
-
_this.
|
|
133
|
-
|
|
134
|
-
_this.
|
|
135
|
-
var _props_defaultValue;
|
|
136
|
-
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
137
|
-
var _props_openMultistageFilling;
|
|
138
|
-
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
129
|
+
_this.interreaction = (_ref7 = props === null || props === void 0 ? void 0 : props.interreaction) !== null && _ref7 !== void 0 ? _ref7 : [];
|
|
130
|
+
_this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : RadioControl.controlName;
|
|
131
|
+
_this.defaultValue = (_ref9 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref9 !== void 0 ? _ref9 : '';
|
|
132
|
+
_this.openMultistageFilling = (_ref10 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref10 !== void 0 ? _ref10 : false;
|
|
139
133
|
_this.multistageFilling = [];
|
|
140
134
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
141
135
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -143,6 +137,7 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
143
137
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
144
138
|
});
|
|
145
139
|
}
|
|
140
|
+
_this.aiContentSearch = (_ref11 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref11 !== void 0 ? _ref11 : false;
|
|
146
141
|
return _this;
|
|
147
142
|
}
|
|
148
143
|
return RadioProperty;
|
|
@@ -168,6 +168,22 @@ _define_property(RichTextControl, "setting", [
|
|
|
168
168
|
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
169
169
|
]
|
|
170
170
|
},
|
|
171
|
+
{
|
|
172
|
+
key: 'ai-content-search',
|
|
173
|
+
visible: false
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
key: 'ai-generation',
|
|
177
|
+
visible: true
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
key: 'column-autoHeight',
|
|
181
|
+
visible: false
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
key: 'column-line-ellipsis',
|
|
185
|
+
visible: false
|
|
186
|
+
},
|
|
171
187
|
{
|
|
172
188
|
key: 'max-length',
|
|
173
189
|
visible: true
|
|
@@ -70,7 +70,7 @@ function _is_native_reflect_construct() {
|
|
|
70
70
|
return !!result;
|
|
71
71
|
})();
|
|
72
72
|
}
|
|
73
|
-
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
73
|
+
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, initAiOptions } from '@byteluck-fe/model-driven-core';
|
|
74
74
|
import RichTextControl from './designer';
|
|
75
75
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
76
|
var RichTextControlPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
@@ -135,19 +135,55 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
135
135
|
function RichTextProperty(props) {
|
|
136
136
|
_class_call_check(this, RichTextProperty);
|
|
137
137
|
var _this;
|
|
138
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
|
|
138
139
|
_this = _call_super(this, RichTextProperty, [
|
|
139
140
|
props
|
|
140
|
-
]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "defaultValue", void 0)
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
141
|
+
]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "defaultValue", void 0), /**
|
|
142
|
+
* ai 显示内容搜索 false | true
|
|
143
|
+
* @defaultValue false
|
|
144
|
+
* @public
|
|
145
|
+
*/ _define_property(_this, "aiContentSearch", void 0), /**
|
|
146
|
+
* ai 生成 false | true
|
|
147
|
+
* @defaultValue false
|
|
148
|
+
* @public
|
|
149
|
+
*/ _define_property(_this, "aiGeneration", void 0), /**
|
|
150
|
+
* ai 生成对应的总结、丰富、翻译等options
|
|
151
|
+
* @defaultValue []
|
|
152
|
+
* @public
|
|
153
|
+
*/ _define_property(_this, "aiOptions", void 0), /**
|
|
154
|
+
* 在明细子表中自动高度
|
|
155
|
+
* @defaultValue false
|
|
156
|
+
*/ _define_property(_this, "autoHeight", void 0), /**
|
|
157
|
+
* 在明细子表中行数设置
|
|
158
|
+
* @defaultValue 1
|
|
159
|
+
* @public
|
|
160
|
+
*/ _define_property(_this, "lineEllipsis", void 0);
|
|
161
|
+
_this.maxLength = (_ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _ref !== void 0 ? _ref : 50000;
|
|
162
|
+
_this.minLength = (_ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && _ref1 !== void 0 ? _ref1 : 0;
|
|
163
|
+
_this.defaultValue = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
164
|
+
_this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : RichTextControl.controlName;
|
|
165
|
+
_this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
166
|
+
_this.aiContentSearch = (_ref5 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref5 !== void 0 ? _ref5 : false;
|
|
167
|
+
_this.aiGeneration = (_ref6 = props === null || props === void 0 ? void 0 : props.aiGeneration) !== null && _ref6 !== void 0 ? _ref6 : false;
|
|
168
|
+
_this.aiOptions = initAiOptions((_ref7 = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _ref7 !== void 0 ? _ref7 : [
|
|
169
|
+
{
|
|
170
|
+
label: getLocaleText('CMD.aiOptionOneLabel', null, '总结'),
|
|
171
|
+
cueWord: getLocaleText('CMD.aiOptionOneCurword', null, 'SUMM'),
|
|
172
|
+
checked: true
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
label: getLocaleText('CMD.aiOptionTwoLabel', null, '丰富'),
|
|
176
|
+
cueWord: getLocaleText('CMD.aiOptionTwoCurword', null, 'RICH'),
|
|
177
|
+
checked: false
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
label: getLocaleText('CMD.aiOptionThreeLabel', null, '翻译'),
|
|
181
|
+
cueWord: getLocaleText('CMD.aiOptionThreeCurword', null, 'TRANS'),
|
|
182
|
+
checked: false
|
|
183
|
+
}
|
|
184
|
+
]);
|
|
185
|
+
_this.autoHeight = (_ref8 = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _ref8 !== void 0 ? _ref8 : false;
|
|
186
|
+
_this.lineEllipsis = (_ref9 = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _ref9 !== void 0 ? _ref9 : 1;
|
|
151
187
|
return _this;
|
|
152
188
|
}
|
|
153
189
|
return RichTextProperty;
|
|
@@ -141,26 +141,21 @@ var ScoreProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
141
141
|
function ScoreProperty(props) {
|
|
142
142
|
_class_call_check(this, ScoreProperty);
|
|
143
143
|
var _this;
|
|
144
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
144
145
|
var _props_explain;
|
|
145
146
|
_this = _call_super(this, ScoreProperty, [
|
|
146
147
|
props
|
|
147
148
|
]), _define_property(_this, "totalScore", void 0), _define_property(_this, "scoreType", void 0), _define_property(_this, "isShowExplain", void 0), _define_property(_this, "explain", void 0), _define_property(_this, "defaultValue", void 0);
|
|
148
|
-
|
|
149
|
-
_this.
|
|
150
|
-
|
|
151
|
-
_this.
|
|
152
|
-
var _props_isShowExplain;
|
|
153
|
-
_this.isShowExplain = (_props_isShowExplain = props === null || props === void 0 ? void 0 : props.isShowExplain) !== null && _props_isShowExplain !== void 0 ? _props_isShowExplain : true;
|
|
154
|
-
var _props_explain_map;
|
|
155
|
-
_this.explain = (_props_explain_map = props === null || props === void 0 ? void 0 : (_props_explain = props.explain) === null || _props_explain === void 0 ? void 0 : _props_explain.map(function(item) {
|
|
149
|
+
_this.totalScore = (_ref = props === null || props === void 0 ? void 0 : props.totalScore) !== null && _ref !== void 0 ? _ref : 5;
|
|
150
|
+
_this.scoreType = (_ref1 = props === null || props === void 0 ? void 0 : props.scoreType) !== null && _ref1 !== void 0 ? _ref1 : SCORE_TYPE.STAR;
|
|
151
|
+
_this.isShowExplain = (_ref2 = props === null || props === void 0 ? void 0 : props.isShowExplain) !== null && _ref2 !== void 0 ? _ref2 : true;
|
|
152
|
+
_this.explain = (_ref3 = props === null || props === void 0 ? void 0 : (_props_explain = props.explain) === null || _props_explain === void 0 ? void 0 : _props_explain.map(function(item) {
|
|
156
153
|
return new Explain(item);
|
|
157
|
-
})) !== null &&
|
|
154
|
+
})) !== null && _ref3 !== void 0 ? _ref3 : Array(_this.totalScore).fill(undefined).map(function() {
|
|
158
155
|
return new Explain();
|
|
159
156
|
});
|
|
160
|
-
|
|
161
|
-
_this.
|
|
162
|
-
var _props_caption;
|
|
163
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : ScoreControl.controlName;
|
|
157
|
+
_this.defaultValue = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref4 !== void 0 ? _ref4 : 0;
|
|
158
|
+
_this.caption = (_ref5 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref5 !== void 0 ? _ref5 : ScoreControl.controlName;
|
|
164
159
|
return _this;
|
|
165
160
|
}
|
|
166
161
|
return ScoreProperty;
|
|
@@ -114,6 +114,7 @@ var SearchDateRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
114
114
|
function SearchDateRangeProperty(props) {
|
|
115
115
|
_class_call_check(this, SearchDateRangeProperty);
|
|
116
116
|
var _this;
|
|
117
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11;
|
|
117
118
|
var _props_limitDateList;
|
|
118
119
|
_this = _call_super(this, SearchDateRangeProperty, [
|
|
119
120
|
props
|
|
@@ -123,34 +124,25 @@ var SearchDateRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
123
124
|
), _define_property(_this, "dateFormat", void 0 //日期格式化字符串
|
|
124
125
|
), _define_property(_this, "commonTimeSetting", void 0 //常用时间配置
|
|
125
126
|
), _define_property(_this, "setValueType", void 0 // 日期默认值设置方式custom,now
|
|
126
|
-
), _define_property(_this, "defaultValue", void 0), _define_property(_this, "limitDateList", void 0)
|
|
127
|
-
|
|
128
|
-
_this.defaultValue = (
|
|
127
|
+
), _define_property(_this, "defaultValue", void 0), _define_property(_this, "limitDateList", void 0), _define_property(_this, "isInternational", void 0 //是否国际化
|
|
128
|
+
);
|
|
129
|
+
_this.defaultValue = (_ref = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref !== void 0 ? _ref : [
|
|
129
130
|
'',
|
|
130
131
|
''
|
|
131
132
|
];
|
|
132
|
-
|
|
133
|
-
_this.
|
|
134
|
-
|
|
135
|
-
_this.
|
|
136
|
-
|
|
137
|
-
_this.
|
|
138
|
-
|
|
139
|
-
_this.
|
|
140
|
-
|
|
141
|
-
_this.
|
|
142
|
-
var _props_rangeMax;
|
|
143
|
-
_this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
|
|
144
|
-
var _props_placeholderStart;
|
|
145
|
-
_this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : getLocaleText('CMD.startDate', null, '开始日期');
|
|
146
|
-
var _props_placeholderEnd;
|
|
147
|
-
_this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : getLocaleText('CMD.endDate', null, '结束日期');
|
|
148
|
-
var _props_caption;
|
|
149
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SearchDateRangeControl.controlName;
|
|
150
|
-
var _props_limitDateList_map;
|
|
151
|
-
_this.limitDateList = (_props_limitDateList_map = props === null || props === void 0 ? void 0 : (_props_limitDateList = props.limitDateList) === null || _props_limitDateList === void 0 ? void 0 : _props_limitDateList.map(function(item) {
|
|
133
|
+
_this.dateType = (_ref1 = props === null || props === void 0 ? void 0 : props.dateType) !== null && _ref1 !== void 0 ? _ref1 : DateType.DATE;
|
|
134
|
+
_this.dateFormat = (_ref2 = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
135
|
+
_this.commonTimeSetting = (_ref3 = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && _ref3 !== void 0 ? _ref3 : [];
|
|
136
|
+
_this.setValueType = (_ref4 = props === null || props === void 0 ? void 0 : props.setValueType) !== null && _ref4 !== void 0 ? _ref4 : 'custom';
|
|
137
|
+
_this.rangeMin = (_ref5 = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref5 !== void 0 ? _ref5 : '';
|
|
138
|
+
_this.rangeMax = (_ref6 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref6 !== void 0 ? _ref6 : '';
|
|
139
|
+
_this.placeholderStart = (_ref7 = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _ref7 !== void 0 ? _ref7 : getLocaleText('CMD.startDate', null, '开始日期');
|
|
140
|
+
_this.placeholderEnd = (_ref8 = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _ref8 !== void 0 ? _ref8 : getLocaleText('CMD.endDate', null, '结束日期');
|
|
141
|
+
_this.caption = (_ref9 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref9 !== void 0 ? _ref9 : SearchDateRangeControl.controlName;
|
|
142
|
+
_this.limitDateList = (_ref10 = props === null || props === void 0 ? void 0 : (_props_limitDateList = props.limitDateList) === null || _props_limitDateList === void 0 ? void 0 : _props_limitDateList.map(function(item) {
|
|
152
143
|
return new LimitDate(item);
|
|
153
|
-
})) !== null &&
|
|
144
|
+
})) !== null && _ref10 !== void 0 ? _ref10 : [];
|
|
145
|
+
_this.isInternational = (_ref11 = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _ref11 !== void 0 ? _ref11 : false;
|
|
154
146
|
return _this;
|
|
155
147
|
}
|
|
156
148
|
return SearchDateRangeProperty;
|
|
@@ -113,26 +113,21 @@ var SearchNumberRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
113
113
|
function SearchNumberRangeProperty(props) {
|
|
114
114
|
_class_call_check(this, SearchNumberRangeProperty);
|
|
115
115
|
var _this;
|
|
116
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
116
117
|
_this = _call_super(this, SearchNumberRangeProperty, [
|
|
117
118
|
props
|
|
118
119
|
]), _define_property(_this, "rangeMin", void 0), _define_property(_this, "rangeMax", void 0), _define_property(_this, "placeholderStart", void 0 // 数字区间开始的提示文字
|
|
119
120
|
), _define_property(_this, "placeholderEnd", void 0 // 数字区结束的提示文字
|
|
120
121
|
), _define_property(_this, "defaultValue", void 0);
|
|
121
|
-
|
|
122
|
-
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [
|
|
122
|
+
_this.defaultValue = (_ref = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref !== void 0 ? _ref : [
|
|
123
123
|
'',
|
|
124
124
|
''
|
|
125
125
|
];
|
|
126
|
-
|
|
127
|
-
_this.
|
|
128
|
-
|
|
129
|
-
_this.
|
|
130
|
-
|
|
131
|
-
_this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : getLocaleText('CMD.min', null, '最小值');
|
|
132
|
-
var _props_placeholderEnd;
|
|
133
|
-
_this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : getLocaleText('CMD.max', null, '最大值');
|
|
134
|
-
var _props_caption;
|
|
135
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SearchNumberRangeControl.controlName;
|
|
126
|
+
_this.rangeMin = (_ref1 = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
127
|
+
_this.rangeMax = (_ref2 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
128
|
+
_this.placeholderStart = (_ref3 = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _ref3 !== void 0 ? _ref3 : getLocaleText('CMD.min', null, '最小值');
|
|
129
|
+
_this.placeholderEnd = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _ref4 !== void 0 ? _ref4 : getLocaleText('CMD.max', null, '最大值');
|
|
130
|
+
_this.caption = (_ref5 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref5 !== void 0 ? _ref5 : SearchNumberRangeControl.controlName;
|
|
136
131
|
return _this;
|
|
137
132
|
}
|
|
138
133
|
return SearchNumberRangeProperty;
|