@byteluck-fe/model-driven-controls 7.0.0-props.13 → 7.0.0-props.15
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 +18 -10
- package/dist/esm/baseControls/BatchPrintListButton/property.js +9 -6
- package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +4 -3
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +12 -7
- package/dist/esm/baseControls/Button/property.js +18 -10
- package/dist/esm/baseControls/Comment/property.js +2 -2
- package/dist/esm/baseControls/CreateFormListButton/property.js +8 -5
- package/dist/esm/baseControls/Dashboard/property.js +16 -9
- package/dist/esm/baseControls/Divider/designer.js +25 -0
- package/dist/esm/baseControls/Divider/property.js +14 -8
- package/dist/esm/baseControls/ExportListButton/property.js +9 -6
- package/dist/esm/baseControls/ExportRecordListButton/property.js +4 -3
- package/dist/esm/baseControls/FormSelectButton/property.js +6 -4
- package/dist/esm/baseControls/ImportRecordListButton/property.js +9 -6
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +19 -11
- package/dist/esm/baseControls/Link/property.js +18 -10
- package/dist/esm/baseControls/ListSelectButton/property.js +10 -6
- package/dist/esm/baseControls/ListViewSelect/property.js +5 -4
- package/dist/esm/baseControls/OperationButton/property.js +12 -7
- package/dist/esm/baseControls/ReferenceList/property.js +12 -7
- package/dist/esm/baseControls/SubmissionRecordListButton/property.js +4 -3
- package/dist/esm/baseControls/Text/property.js +16 -9
- package/dist/esm/baseControls/TextOcrButton/property.js +19 -11
- package/dist/esm/baseControls/Title/property.js +6 -4
- package/dist/esm/columnControls/ApprovalStatusColumn/property.js +6 -4
- package/dist/esm/columnControls/ArrayColumn/property.js +8 -5
- package/dist/esm/columnControls/AutoNumberColumn/property.js +4 -3
- package/dist/esm/columnControls/CustomColumn/property.js +6 -4
- package/dist/esm/columnControls/DecimalColumn/property.js +14 -8
- package/dist/esm/columnControls/DepartmentColumn/property.js +4 -3
- package/dist/esm/columnControls/EmployeeColumn/property.js +4 -3
- package/dist/esm/columnControls/FileColumn/property.js +4 -3
- package/dist/esm/columnControls/GroupColumn/property.js +2 -2
- package/dist/esm/columnControls/ImageColumn/property.js +2 -2
- package/dist/esm/columnControls/LocationColumn/property.js +4 -3
- package/dist/esm/columnControls/OperationColumn/designer.js +4 -12
- package/dist/esm/columnControls/OperationColumn/property.js +10 -6
- package/dist/esm/columnControls/OrderColumn/property.js +12 -7
- package/dist/esm/columnControls/PeopleColumn/property.js +2 -2
- package/dist/esm/columnControls/TextColumn/property.js +8 -5
- package/dist/esm/columnControls/TimescopeColumn/property.js +8 -5
- package/dist/esm/columnControls/TimestampColumn/property.js +8 -5
- package/dist/esm/columnControls/VarcharColumn/property.js +12 -7
- package/dist/esm/formControls/Address/property.js +10 -6
- package/dist/esm/formControls/Amount/property.js +24 -13
- package/dist/esm/formControls/Attachment/property.js +42 -26
- package/dist/esm/formControls/AutoNumber/property.js +6 -4
- package/dist/esm/formControls/Calc/property.js +18 -10
- package/dist/esm/formControls/Cascader/property.js +31 -17
- package/dist/esm/formControls/Checkbox/property.js +33 -18
- package/dist/esm/formControls/DatePicker/property.js +27 -15
- package/dist/esm/formControls/DateRange/property.js +23 -13
- package/dist/esm/formControls/Department/property.js +22 -12
- package/dist/esm/formControls/Department2/property.js +37 -20
- package/dist/esm/formControls/ElectronicSignature/property.js +12 -7
- package/dist/esm/formControls/Employee/property.js +18 -10
- package/dist/esm/formControls/Employee2/property.js +34 -18
- package/dist/esm/formControls/Image/designer.js +8 -8
- package/dist/esm/formControls/Image/property.js +14 -8
- package/dist/esm/formControls/Input/property.js +20 -11
- package/dist/esm/formControls/Number/property.js +32 -17
- package/dist/esm/formControls/OrganizationSelection/property.js +36 -19
- package/dist/esm/formControls/Radio/property.js +28 -15
- package/dist/esm/formControls/RichText/property.js +24 -13
- package/dist/esm/formControls/Score/property.js +19 -11
- package/dist/esm/formControls/SearchDateRange/property.js +25 -14
- package/dist/esm/formControls/SearchNumberRange/property.js +12 -7
- package/dist/esm/formControls/Select/property.js +26 -14
- package/dist/esm/formControls/SelectMultiple/property.js +24 -13
- package/dist/esm/formControls/SelectRelation/property.js +26 -14
- package/dist/esm/formControls/Textarea/property.js +20 -11
- package/dist/esm/formControls/TimePicker/property.js +15 -9
- package/dist/esm/formControls/TimeRange/property.js +19 -11
- package/dist/esm/formControls/Tree/property.js +39 -21
- package/dist/esm/formControls/VueFormItem/property.js +10 -6
- package/dist/esm/formControls/VuePage/property.js +10 -6
- package/dist/esm/formControls/WPS/designer.js +9 -9
- package/dist/esm/formControls/WPS/property.js +24 -13
- package/dist/esm/framework.js +121 -74
- package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
- package/dist/esm/layoutControls/ActionBar/property.js +6 -4
- package/dist/esm/layoutControls/ActionBar/runtime.js +2 -2
- package/dist/esm/layoutControls/CardGroup/property.js +20 -11
- package/dist/esm/layoutControls/Col/property.js +6 -4
- package/dist/esm/layoutControls/Collapse/designer.js +2 -2
- package/dist/esm/layoutControls/Collapse/property.js +6 -4
- package/dist/esm/layoutControls/CollapsePane/property.js +2 -2
- package/dist/esm/layoutControls/DataView/property.js +14 -8
- package/dist/esm/layoutControls/GridLayoutContainer/property.js +4 -3
- package/dist/esm/layoutControls/GridTableColumn/property.js +20 -11
- package/dist/esm/layoutControls/ListView/property.js +28 -15
- package/dist/esm/layoutControls/Page/property.js +2 -2
- package/dist/esm/layoutControls/Position/property.js +8 -5
- package/dist/esm/layoutControls/Row/property.js +10 -6
- package/dist/esm/layoutControls/Step/designer.js +2 -2
- package/dist/esm/layoutControls/Step/property.js +22 -12
- package/dist/esm/layoutControls/StepPane/property.js +16 -9
- package/dist/esm/layoutControls/SubTableColumn/property.js +10 -6
- package/dist/esm/layoutControls/Tab/designer.js +2 -2
- package/dist/esm/layoutControls/Tab/property.js +10 -6
- package/dist/esm/layoutControls/TabPane/property.js +2 -2
- package/dist/esm/layoutControls/TableLayout/property.js +30 -16
- package/dist/esm/layoutControls/TableLayoutCol/property.js +20 -11
- package/dist/esm/layoutControls/TableLayoutRow/property.js +4 -3
- package/dist/esm/layoutControls/TableLayoutWrapper/property.js +6 -4
- package/dist/esm/listControls/GridTable/designer.js +4 -12
- package/dist/esm/listControls/GridTable/property.js +19 -15
- package/dist/esm/listControls/SubTable/property.js +70 -36
- package/dist/esm/searchControls/SimpleSearch/property.js +24 -13
- 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/Divider/property.d.ts +7 -0
- package/package.json +5 -5
|
@@ -93,15 +93,18 @@ var TimescopeColumnControlProperty = /*#__PURE__*/ function(ColumnControlPropert
|
|
|
93
93
|
function TimescopeColumnControlProperty(props) {
|
|
94
94
|
_class_call_check(this, TimescopeColumnControlProperty);
|
|
95
95
|
var _this;
|
|
96
|
-
var _ref, _ref1, _ref2, _ref3;
|
|
97
96
|
_this = _call_super(this, TimescopeColumnControlProperty, [
|
|
98
97
|
props
|
|
99
98
|
]), _define_property(_this, "dateType", void 0), _define_property(_this, "showLinkOperation", void 0), _define_property(_this, "linkOperationOption", void 0), _define_property(_this, "isInternational", void 0);
|
|
100
|
-
|
|
101
|
-
_this.
|
|
99
|
+
var _props_dateType;
|
|
100
|
+
_this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
|
|
101
|
+
var _props_showLinkOperation;
|
|
102
|
+
_this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
|
|
102
103
|
_this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
|
|
103
|
-
|
|
104
|
-
_this.
|
|
104
|
+
var _props_caption;
|
|
105
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerTimescopeColumnControl.controlName;
|
|
106
|
+
var _props_isInternational;
|
|
107
|
+
_this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
|
|
105
108
|
return _this;
|
|
106
109
|
}
|
|
107
110
|
return TimescopeColumnControlProperty;
|
|
@@ -93,15 +93,18 @@ var TimestampColumnControlProperty = /*#__PURE__*/ function(ColumnControlPropert
|
|
|
93
93
|
function TimestampColumnControlProperty(props) {
|
|
94
94
|
_class_call_check(this, TimestampColumnControlProperty);
|
|
95
95
|
var _this;
|
|
96
|
-
var _ref, _ref1, _ref2, _ref3;
|
|
97
96
|
_this = _call_super(this, TimestampColumnControlProperty, [
|
|
98
97
|
props
|
|
99
98
|
]), _define_property(_this, "dateType", void 0), _define_property(_this, "showLinkOperation", void 0), _define_property(_this, "linkOperationOption", void 0), _define_property(_this, "isInternational", void 0);
|
|
100
|
-
|
|
101
|
-
_this.
|
|
99
|
+
var _props_dateType;
|
|
100
|
+
_this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
|
|
101
|
+
var _props_showLinkOperation;
|
|
102
|
+
_this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
|
|
102
103
|
_this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
|
|
103
|
-
|
|
104
|
-
_this.
|
|
104
|
+
var _props_caption;
|
|
105
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerTimestampColumnControl.controlName;
|
|
106
|
+
var _props_isInternational;
|
|
107
|
+
_this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
|
|
105
108
|
return _this;
|
|
106
109
|
}
|
|
107
110
|
return TimestampColumnControlProperty;
|
|
@@ -92,20 +92,25 @@ var VarcharColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty)
|
|
|
92
92
|
function VarcharColumnControlProperty(props) {
|
|
93
93
|
_class_call_check(this, VarcharColumnControlProperty);
|
|
94
94
|
var _this;
|
|
95
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
96
95
|
_this = _call_super(this, VarcharColumnControlProperty, [
|
|
97
96
|
props
|
|
98
97
|
]), _define_property(_this, "optionConfig", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "showLinkOperation", void 0), _define_property(_this, "linkOperationOption", void 0), _define_property(_this, "options", void 0), _define_property(_this, "lineEllipsis", void 0), _define_property(_this, "dictionaryTagConfig", void 0);
|
|
99
|
-
|
|
100
|
-
_this.
|
|
98
|
+
var _props_caption;
|
|
99
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerVarcharColumnControl.controlName;
|
|
100
|
+
var _props_optionConfig;
|
|
101
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'none';
|
|
101
102
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
102
|
-
|
|
103
|
+
var _props_options;
|
|
104
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
103
105
|
{}
|
|
104
106
|
]);
|
|
105
|
-
|
|
107
|
+
var _props_showLinkOperation;
|
|
108
|
+
_this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
|
|
106
109
|
_this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
|
|
107
|
-
|
|
108
|
-
_this.
|
|
110
|
+
var _props_lineEllipsis;
|
|
111
|
+
_this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
|
|
112
|
+
var _props_dictionaryTagConfig;
|
|
113
|
+
_this.dictionaryTagConfig = (_props_dictionaryTagConfig = props === null || props === void 0 ? void 0 : props.dictionaryTagConfig) !== null && _props_dictionaryTagConfig !== void 0 ? _props_dictionaryTagConfig : {
|
|
109
114
|
isTag: false
|
|
110
115
|
};
|
|
111
116
|
return _this;
|
|
@@ -122,19 +122,23 @@ var AddressProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
122
122
|
function AddressProperty(props) {
|
|
123
123
|
_class_call_check(this, AddressProperty);
|
|
124
124
|
var _this;
|
|
125
|
-
var _ref, _ref1, _ref2, _ref3, _ref4;
|
|
126
125
|
_this = _call_super(this, AddressProperty, [
|
|
127
126
|
props
|
|
128
127
|
]), _define_property(_this, "defaultValueType", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "addressType", void 0);
|
|
129
|
-
|
|
130
|
-
_this.
|
|
131
|
-
|
|
128
|
+
var _props_caption;
|
|
129
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AddressControl.controlName;
|
|
130
|
+
var _props_defaultValueType;
|
|
131
|
+
_this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : 'default';
|
|
132
|
+
var _props_addressType;
|
|
133
|
+
_this.addressType = (_props_addressType = props === null || props === void 0 ? void 0 : props.addressType) !== null && _props_addressType !== void 0 ? _props_addressType : [
|
|
132
134
|
'province',
|
|
133
135
|
'city',
|
|
134
136
|
'district'
|
|
135
137
|
];
|
|
136
|
-
|
|
137
|
-
_this.
|
|
138
|
+
var _props_defaultValue;
|
|
139
|
+
_this.defaultValue = new AddressValue((_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : {});
|
|
140
|
+
var _props_placeholder;
|
|
141
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseChooseAddress', null, '请选择地址');
|
|
138
142
|
return _this;
|
|
139
143
|
}
|
|
140
144
|
return AddressProperty;
|
|
@@ -200,33 +200,44 @@ var AmountProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
200
200
|
function AmountProperty(props) {
|
|
201
201
|
_class_call_check(this, AmountProperty);
|
|
202
202
|
var _this;
|
|
203
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11;
|
|
204
203
|
_this = _call_super(this, AmountProperty, [
|
|
205
204
|
props
|
|
206
205
|
]), _define_property(_this, "rangeMin", void 0), _define_property(_this, "rangeMax", void 0), _define_property(_this, "showUpperCase", void 0), _define_property(_this, "submitSelectCurrency", void 0), _define_property(_this, "micrometer", void 0), _define_property(_this, "precision", void 0), _define_property(_this, "unitPosition", void 0), _define_property(_this, "optionConfig", void 0), _define_property(_this, "dataBind", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "options", void 0);
|
|
207
|
-
|
|
208
|
-
_this.
|
|
209
|
-
|
|
210
|
-
_this.
|
|
211
|
-
|
|
206
|
+
var _props_rangeMin;
|
|
207
|
+
_this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
|
|
208
|
+
var _props_rangeMax;
|
|
209
|
+
_this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
|
|
210
|
+
var _props_optionConfig;
|
|
211
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'datasource';
|
|
212
|
+
var _props_micrometer;
|
|
213
|
+
_this.micrometer = (_props_micrometer = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _props_micrometer !== void 0 ? _props_micrometer : false;
|
|
214
|
+
var _props_precision;
|
|
215
|
+
_this.precision = (_props_precision = props === null || props === void 0 ? void 0 : props.precision) !== null && _props_precision !== void 0 ? _props_precision : 2;
|
|
212
216
|
_this.dataBind = new AmountDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
213
|
-
|
|
217
|
+
var _props_datasourceBind;
|
|
218
|
+
_this.datasourceBind = new DataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
214
219
|
displayBoList: [
|
|
215
220
|
new DisplayBoListItem({
|
|
216
221
|
value: 'name'
|
|
217
222
|
})
|
|
218
223
|
]
|
|
219
224
|
});
|
|
220
|
-
|
|
225
|
+
var _props_defaultValue;
|
|
226
|
+
_this.defaultValue = new AmountValue((_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : {
|
|
221
227
|
amount: '',
|
|
222
228
|
currency: AMOUNT_TYPE.CNY
|
|
223
229
|
});
|
|
224
|
-
|
|
230
|
+
var _props_unitPosition;
|
|
231
|
+
_this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : 'right';
|
|
225
232
|
_this.options = initOptions(props === null || props === void 0 ? void 0 : props.options);
|
|
226
|
-
|
|
227
|
-
_this.
|
|
228
|
-
|
|
229
|
-
_this.
|
|
233
|
+
var _props_caption;
|
|
234
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AmountControl.controlName;
|
|
235
|
+
var _props_placeholder;
|
|
236
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
237
|
+
var _props_submitSelectCurrency;
|
|
238
|
+
_this.submitSelectCurrency = (_props_submitSelectCurrency = props === null || props === void 0 ? void 0 : props.submitSelectCurrency) !== null && _props_submitSelectCurrency !== void 0 ? _props_submitSelectCurrency : false;
|
|
239
|
+
var _props_showUpperCase;
|
|
240
|
+
_this.showUpperCase = (_props_showUpperCase = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _props_showUpperCase !== void 0 ? _props_showUpperCase : false;
|
|
230
241
|
return _this;
|
|
231
242
|
}
|
|
232
243
|
return AmountProperty;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
+
* @Date: 2023-09-14 18:31:51
|
|
4
|
+
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
+
* @LastEditTime: 2023-09-19 15:49:31
|
|
6
|
+
* @FilePath: /model-driven/packages/controls/src/formControls/Attachment/property.ts
|
|
7
|
+
*/ function _assert_this_initialized(self) {
|
|
2
8
|
if (self === void 0) {
|
|
3
9
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
10
|
}
|
|
@@ -70,13 +76,7 @@ function _is_native_reflect_construct() {
|
|
|
70
76
|
return !!result;
|
|
71
77
|
})();
|
|
72
78
|
}
|
|
73
|
-
|
|
74
|
-
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
75
|
-
* @Date: 2023-09-14 18:31:51
|
|
76
|
-
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
77
|
-
* @LastEditTime: 2023-09-19 15:49:31
|
|
78
|
-
* @FilePath: /model-driven/packages/controls/src/formControls/Attachment/property.ts
|
|
79
|
-
*/ import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
79
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
80
80
|
import AttachmentControl from './designer';
|
|
81
81
|
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
82
82
|
var MB10 = 10485760;
|
|
@@ -131,31 +131,47 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
131
131
|
function AttachmentProperty(props) {
|
|
132
132
|
_class_call_check(this, AttachmentProperty);
|
|
133
133
|
var _this;
|
|
134
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16;
|
|
135
134
|
_this = _call_super(this, AttachmentProperty, [
|
|
136
135
|
props
|
|
137
136
|
]), _define_property(_this, "storageType", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "showType", void 0), _define_property(_this, "resultShowType", void 0), _define_property(_this, "attachmentAccept", void 0), _define_property(_this, "maxLimit", void 0), _define_property(_this, "minLimit", void 0), _define_property(_this, "isShowWatermark", void 0), _define_property(_this, "watermarkFx", void 0), _define_property(_this, "maxSize", void 0), _define_property(_this, "operation", void 0), _define_property(_this, "aiExplanation", void 0), _define_property(_this, "aiExplanationLength", void 0), _define_property(_this, "customOperation", void 0), _define_property(_this, "describe", void 0);
|
|
138
|
-
|
|
139
|
-
_this.
|
|
140
|
-
|
|
141
|
-
_this.
|
|
142
|
-
|
|
143
|
-
_this.
|
|
144
|
-
|
|
145
|
-
_this.
|
|
146
|
-
|
|
147
|
-
_this.
|
|
148
|
-
|
|
149
|
-
_this.
|
|
137
|
+
var _props_defaultValue;
|
|
138
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
139
|
+
var _props_showType;
|
|
140
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'default';
|
|
141
|
+
var _props_resultShowType;
|
|
142
|
+
_this.resultShowType = (_props_resultShowType = props === null || props === void 0 ? void 0 : props.resultShowType) !== null && _props_resultShowType !== void 0 ? _props_resultShowType : 'simple';
|
|
143
|
+
var _props_attachmentAccept;
|
|
144
|
+
_this.attachmentAccept = (_props_attachmentAccept = props === null || props === void 0 ? void 0 : props.attachmentAccept) !== null && _props_attachmentAccept !== void 0 ? _props_attachmentAccept : [];
|
|
145
|
+
var _props_maxLimit;
|
|
146
|
+
_this.maxLimit = (_props_maxLimit = props === null || props === void 0 ? void 0 : props.maxLimit) !== null && _props_maxLimit !== void 0 ? _props_maxLimit : 10;
|
|
147
|
+
var _props_minLimit;
|
|
148
|
+
_this.minLimit = (_props_minLimit = props === null || props === void 0 ? void 0 : props.minLimit) !== null && _props_minLimit !== void 0 ? _props_minLimit : 0;
|
|
149
|
+
var _props_maxSize;
|
|
150
|
+
_this.maxSize = (_props_maxSize = props === null || props === void 0 ? void 0 : props.maxSize) !== null && _props_maxSize !== void 0 ? _props_maxSize : MB100;
|
|
151
|
+
var _props_caption;
|
|
152
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AttachmentControl.controlName;
|
|
153
|
+
var _props_placeholder;
|
|
154
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.uploadFile', null, '上传附件');
|
|
155
|
+
var _props_isShowWatermark;
|
|
156
|
+
_this.isShowWatermark = (_props_isShowWatermark = props === null || props === void 0 ? void 0 : props.isShowWatermark) !== null && _props_isShowWatermark !== void 0 ? _props_isShowWatermark : false;
|
|
157
|
+
var _props_watermarkFx;
|
|
158
|
+
_this.watermarkFx = (_props_watermarkFx = props === null || props === void 0 ? void 0 : props.watermarkFx) !== null && _props_watermarkFx !== void 0 ? _props_watermarkFx : {};
|
|
159
|
+
var _props_operation;
|
|
160
|
+
_this.operation = (_props_operation = props === null || props === void 0 ? void 0 : props.operation) !== null && _props_operation !== void 0 ? _props_operation : [
|
|
150
161
|
'info',
|
|
151
162
|
'preview',
|
|
152
163
|
'download'
|
|
153
164
|
];
|
|
154
|
-
|
|
155
|
-
_this.
|
|
156
|
-
|
|
157
|
-
_this.
|
|
158
|
-
|
|
165
|
+
var _props_aiExplanation;
|
|
166
|
+
_this.aiExplanation = (_props_aiExplanation = props === null || props === void 0 ? void 0 : props.aiExplanation) !== null && _props_aiExplanation !== void 0 ? _props_aiExplanation : false;
|
|
167
|
+
var _props_aiExplanationLength;
|
|
168
|
+
_this.aiExplanationLength = (_props_aiExplanationLength = props === null || props === void 0 ? void 0 : props.aiExplanationLength) !== null && _props_aiExplanationLength !== void 0 ? _props_aiExplanationLength : 500;
|
|
169
|
+
var _props_storageType;
|
|
170
|
+
_this.storageType = (_props_storageType = props === null || props === void 0 ? void 0 : props.storageType) !== null && _props_storageType !== void 0 ? _props_storageType : 'local';
|
|
171
|
+
var _props_customOperation;
|
|
172
|
+
_this.customOperation = (_props_customOperation = props === null || props === void 0 ? void 0 : props.customOperation) !== null && _props_customOperation !== void 0 ? _props_customOperation : [];
|
|
173
|
+
var _props_describe;
|
|
174
|
+
_this.describe = (_props_describe = props === null || props === void 0 ? void 0 : props.describe) !== null && _props_describe !== void 0 ? _props_describe : '';
|
|
159
175
|
return _this;
|
|
160
176
|
}
|
|
161
177
|
return AttachmentProperty;
|
|
@@ -79,13 +79,15 @@ var AutoNumberProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
79
79
|
function AutoNumberProperty(props) {
|
|
80
80
|
_class_call_check(this, AutoNumberProperty);
|
|
81
81
|
var _this;
|
|
82
|
-
var _ref, _ref1, _ref2;
|
|
83
82
|
_this = _call_super(this, AutoNumberProperty, [
|
|
84
83
|
props
|
|
85
84
|
]), _define_property(_this, "defaultValue", void 0);
|
|
86
|
-
|
|
87
|
-
_this.
|
|
88
|
-
|
|
85
|
+
var _props_defaultValue;
|
|
86
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
87
|
+
var _props_caption;
|
|
88
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AutoNumberControl.controlName;
|
|
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 : getLocaleText('CMD.pleaseEnterAutonumber', null, '请输入自动编号');
|
|
89
91
|
return _this;
|
|
90
92
|
}
|
|
91
93
|
return AutoNumberProperty;
|
|
@@ -130,21 +130,29 @@ var CalcProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
130
130
|
function CalcProperty(props) {
|
|
131
131
|
_class_call_check(this, CalcProperty);
|
|
132
132
|
var _this;
|
|
133
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
|
|
134
133
|
_this = _call_super(this, CalcProperty, [
|
|
135
134
|
props
|
|
136
135
|
]), _define_property(_this, "precision", void 0), _define_property(_this, "micrometer", void 0), _define_property(_this, "showUpperCase", void 0), _define_property(_this, "scriptSrc", void 0), _define_property(_this, "scriptEcho", void 0), _define_property(_this, "dataBind", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "unitPosition", void 0), _define_property(_this, "calcOnMounted", void 0);
|
|
137
|
-
|
|
138
|
-
_this.
|
|
139
|
-
|
|
136
|
+
var _props_precision;
|
|
137
|
+
_this.precision = (_props_precision = props === null || props === void 0 ? void 0 : props.precision) !== null && _props_precision !== void 0 ? _props_precision : 0;
|
|
138
|
+
var _props_micrometer;
|
|
139
|
+
_this.micrometer = (_props_micrometer = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _props_micrometer !== void 0 ? _props_micrometer : false;
|
|
140
|
+
var _props_showUpperCase;
|
|
141
|
+
_this.showUpperCase = (_props_showUpperCase = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _props_showUpperCase !== void 0 ? _props_showUpperCase : false;
|
|
140
142
|
_this.dataBind = new CalcDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
141
143
|
_this.defaultValue = new CalcValue(props === null || props === void 0 ? void 0 : props.defaultValue);
|
|
142
|
-
|
|
143
|
-
_this.
|
|
144
|
-
|
|
145
|
-
_this.
|
|
146
|
-
|
|
147
|
-
_this.
|
|
144
|
+
var _props_caption;
|
|
145
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AmountControl.controlName;
|
|
146
|
+
var _props_unitPosition;
|
|
147
|
+
_this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : 'right';
|
|
148
|
+
var _props_placeholder;
|
|
149
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
150
|
+
var _props_scriptEcho;
|
|
151
|
+
_this.scriptEcho = (_props_scriptEcho = props === null || props === void 0 ? void 0 : props.scriptEcho) !== null && _props_scriptEcho !== void 0 ? _props_scriptEcho : [];
|
|
152
|
+
var _props_scriptSrc;
|
|
153
|
+
_this.scriptSrc = (_props_scriptSrc = props === null || props === void 0 ? void 0 : props.scriptSrc) !== null && _props_scriptSrc !== void 0 ? _props_scriptSrc : '';
|
|
154
|
+
var _props_calcOnMounted;
|
|
155
|
+
_this.calcOnMounted = (_props_calcOnMounted = props === null || props === void 0 ? void 0 : props.calcOnMounted) !== null && _props_calcOnMounted !== void 0 ? _props_calcOnMounted : false;
|
|
148
156
|
return _this;
|
|
149
157
|
}
|
|
150
158
|
return CalcProperty;
|
|
@@ -79,32 +79,46 @@ var CascaderProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
79
79
|
function CascaderProperty(props) {
|
|
80
80
|
_class_call_check(this, CascaderProperty);
|
|
81
81
|
var _this;
|
|
82
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14;
|
|
83
82
|
var _props_multistageFilling;
|
|
84
83
|
_this = _call_super(this, CascaderProperty, [
|
|
85
84
|
props
|
|
86
85
|
]), _define_property(_this, "showSearch", void 0), _define_property(_this, "multiple", void 0), _define_property(_this, "expandTrigger", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "allowClear", void 0), _define_property(_this, "showCheckedStrategy", void 0), _define_property(_this, "saveCheckedStrategy", void 0), _define_property(_this, "separator", void 0), _define_property(_this, "optionConfig", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "filterItemDatasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "openMultistageFilling", void 0);
|
|
87
|
-
|
|
88
|
-
_this.
|
|
89
|
-
|
|
90
|
-
_this.
|
|
91
|
-
|
|
92
|
-
_this.
|
|
93
|
-
|
|
94
|
-
_this.
|
|
95
|
-
|
|
96
|
-
_this.
|
|
97
|
-
|
|
86
|
+
var _props_caption;
|
|
87
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : CascaderControl.controlName;
|
|
88
|
+
var _props_placeholder;
|
|
89
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
|
|
90
|
+
var _props_multiple;
|
|
91
|
+
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
92
|
+
var _props_showSearch;
|
|
93
|
+
_this.showSearch = (_props_showSearch = props === null || props === void 0 ? void 0 : props.showSearch) !== null && _props_showSearch !== void 0 ? _props_showSearch : true;
|
|
94
|
+
var _props_expandTrigger;
|
|
95
|
+
_this.expandTrigger = (_props_expandTrigger = props === null || props === void 0 ? void 0 : props.expandTrigger) !== null && _props_expandTrigger !== void 0 ? _props_expandTrigger : 'click';
|
|
96
|
+
var _props_allowClear;
|
|
97
|
+
_this.allowClear = (_props_allowClear = props === null || props === void 0 ? void 0 : props.allowClear) !== null && _props_allowClear !== void 0 ? _props_allowClear : true;
|
|
98
|
+
var _props_showCheckedStrategy;
|
|
99
|
+
_this.showCheckedStrategy = (_props_showCheckedStrategy = props === null || props === void 0 ? void 0 : props.showCheckedStrategy) !== null && _props_showCheckedStrategy !== void 0 ? _props_showCheckedStrategy : '';
|
|
100
|
+
var _props_saveCheckedStrategy;
|
|
101
|
+
_this.saveCheckedStrategy = (_props_saveCheckedStrategy = props === null || props === void 0 ? void 0 : props.saveCheckedStrategy) !== null && _props_saveCheckedStrategy !== void 0 ? _props_saveCheckedStrategy : 'CHILD';
|
|
102
|
+
var _props_separator;
|
|
103
|
+
_this.separator = (_props_separator = props === null || props === void 0 ? void 0 : props.separator) !== null && _props_separator !== void 0 ? _props_separator : '/';
|
|
104
|
+
var _props_optionConfig;
|
|
105
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'custom';
|
|
106
|
+
var _props_datasourceBind;
|
|
107
|
+
_this.datasourceBind = new TreeDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
98
108
|
attributes: CascaderControl.controlCustomAttributes
|
|
99
109
|
});
|
|
100
|
-
|
|
110
|
+
var _props_filterItemDatasourceBind;
|
|
111
|
+
_this.filterItemDatasourceBind = new TreeDataSourceBind((_props_filterItemDatasourceBind = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && _props_filterItemDatasourceBind !== void 0 ? _props_filterItemDatasourceBind : {
|
|
101
112
|
attributes: CascaderControl.controlCustomAttributes
|
|
102
113
|
});
|
|
103
|
-
|
|
104
|
-
_this.
|
|
114
|
+
var _props_openMultistageFilling;
|
|
115
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
116
|
+
var _props_multistageFilling_map;
|
|
117
|
+
_this.multistageFilling = (_props_multistageFilling_map = props === null || props === void 0 ? void 0 : (_props_multistageFilling = props.multistageFilling) === null || _props_multistageFilling === void 0 ? void 0 : _props_multistageFilling.map(function(item) {
|
|
105
118
|
return new MultistageFillingItem(item);
|
|
106
|
-
})) !== null &&
|
|
107
|
-
|
|
119
|
+
})) !== null && _props_multistageFilling_map !== void 0 ? _props_multistageFilling_map : [];
|
|
120
|
+
var _props_defaultValue;
|
|
121
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
108
122
|
return _this;
|
|
109
123
|
}
|
|
110
124
|
return CascaderProperty;
|
|
@@ -90,7 +90,7 @@ var CheckboxPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRu
|
|
|
90
90
|
if (unlimitedMax) {
|
|
91
91
|
_this.limitMax.type = 'string';
|
|
92
92
|
}
|
|
93
|
-
var isUnlimited = function
|
|
93
|
+
var isUnlimited = function(value) {
|
|
94
94
|
return value === 'unlimited' ? undefined : value;
|
|
95
95
|
};
|
|
96
96
|
_this.limitMax.min = isUnlimited(props.limitMin);
|
|
@@ -125,7 +125,6 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
125
125
|
function CheckboxProperty(props) {
|
|
126
126
|
_class_call_check(this, CheckboxProperty);
|
|
127
127
|
var _this;
|
|
128
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15;
|
|
129
128
|
_this = _call_super(this, CheckboxProperty, [
|
|
130
129
|
props
|
|
131
130
|
]), _define_property(_this, "checkboxMode", void 0 // 选项排列方式 horizontal默认
|
|
@@ -148,7 +147,8 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
148
147
|
* 是否开启设置选项自定义颜色;仅当选项设置为自定义时该设置生效;
|
|
149
148
|
* @defaultValue false
|
|
150
149
|
*/ _define_property(_this, "isUseCustomColor", void 0);
|
|
151
|
-
|
|
150
|
+
var _props_options;
|
|
151
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
152
152
|
{
|
|
153
153
|
label: getLocaleText('CMD.optionOne', null, '选项一'),
|
|
154
154
|
value: getLocaleText('CMD.optionOne', null, '选项一')
|
|
@@ -162,21 +162,35 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
162
162
|
value: getLocaleText('CMD.optionThird', null, '选项三')
|
|
163
163
|
}
|
|
164
164
|
]);
|
|
165
|
-
|
|
166
|
-
_this.
|
|
167
|
-
|
|
168
|
-
_this.
|
|
169
|
-
|
|
170
|
-
_this.
|
|
165
|
+
var _props_checkboxMode;
|
|
166
|
+
_this.checkboxMode = (_props_checkboxMode = props === null || props === void 0 ? void 0 : props.checkboxMode) !== null && _props_checkboxMode !== void 0 ? _props_checkboxMode : 'horizontal';
|
|
167
|
+
var _props_optionConfig;
|
|
168
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'custom';
|
|
169
|
+
var _props_optionsOrder;
|
|
170
|
+
_this.optionsOrder = (_props_optionsOrder = props === null || props === void 0 ? void 0 : props.optionsOrder) !== null && _props_optionsOrder !== void 0 ? _props_optionsOrder : false;
|
|
171
|
+
var _props_otherOption;
|
|
172
|
+
_this.otherOption = (_props_otherOption = props === null || props === void 0 ? void 0 : props.otherOption) !== null && _props_otherOption !== void 0 ? _props_otherOption : false;
|
|
173
|
+
var _props_limitMin;
|
|
174
|
+
_this.limitMin = (_props_limitMin = props === null || props === void 0 ? void 0 : props.limitMin) !== null && _props_limitMin !== void 0 ? _props_limitMin : 'unlimited';
|
|
175
|
+
var _props_limitMax;
|
|
176
|
+
_this.limitMax = (_props_limitMax = props === null || props === void 0 ? void 0 : props.limitMax) !== null && _props_limitMax !== void 0 ? _props_limitMax : 'unlimited';
|
|
171
177
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
172
|
-
|
|
173
|
-
_this.
|
|
174
|
-
|
|
175
|
-
_this.
|
|
176
|
-
|
|
177
|
-
_this.
|
|
178
|
-
|
|
179
|
-
_this.
|
|
178
|
+
var _props_interreaction;
|
|
179
|
+
_this.interreaction = (_props_interreaction = props === null || props === void 0 ? void 0 : props.interreaction) !== null && _props_interreaction !== void 0 ? _props_interreaction : [];
|
|
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 : CheckboxControl.controlName;
|
|
182
|
+
var _props_defaultValue;
|
|
183
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
184
|
+
var _props_optionsFormat;
|
|
185
|
+
_this.optionsFormat = (_props_optionsFormat = props === null || props === void 0 ? void 0 : props.optionsFormat) !== null && _props_optionsFormat !== void 0 ? _props_optionsFormat : 'horizontal';
|
|
186
|
+
var _props_defaultShowOptions;
|
|
187
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
|
|
188
|
+
var _props_openMultistageFilling;
|
|
189
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
190
|
+
var _props_type;
|
|
191
|
+
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'default';
|
|
192
|
+
var _props_isUseCustomColor;
|
|
193
|
+
_this.isUseCustomColor = (_props_isUseCustomColor = props === null || props === void 0 ? void 0 : props.isUseCustomColor) !== null && _props_isUseCustomColor !== void 0 ? _props_isUseCustomColor : false;
|
|
180
194
|
_this.multistageFilling = [];
|
|
181
195
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
182
196
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -184,7 +198,8 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
184
198
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
185
199
|
});
|
|
186
200
|
}
|
|
187
|
-
|
|
201
|
+
var _props_aiContentSearch;
|
|
202
|
+
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
188
203
|
return _this;
|
|
189
204
|
}
|
|
190
205
|
return CheckboxProperty;
|
|
@@ -81,7 +81,6 @@ var DatePickerProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
81
81
|
function DatePickerProperty(props) {
|
|
82
82
|
_class_call_check(this, DatePickerProperty);
|
|
83
83
|
var _this;
|
|
84
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12;
|
|
85
84
|
var _props_limitDateList;
|
|
86
85
|
_this = _call_super(this, DatePickerProperty, [
|
|
87
86
|
props
|
|
@@ -89,25 +88,38 @@ var DatePickerProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
89
88
|
_define_property(_this, "allowDateRange", void 0), _define_property(_this, "filterWeekend", void 0), _define_property(_this, "isInternational", void 0), _define_property(_this, "isShowCustomDateFormat", void 0 //是否使用自定义格式化显示时间
|
|
90
89
|
), _define_property(_this, "customDateFormat", void 0 //自定义格式化显示时间
|
|
91
90
|
);
|
|
92
|
-
|
|
93
|
-
_this.
|
|
94
|
-
|
|
95
|
-
_this.
|
|
96
|
-
|
|
97
|
-
_this.
|
|
98
|
-
|
|
99
|
-
_this.
|
|
91
|
+
var _props_dateType;
|
|
92
|
+
_this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
|
|
93
|
+
var _props_dateFormat;
|
|
94
|
+
_this.dateFormat = (_props_dateFormat = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && _props_dateFormat !== void 0 ? _props_dateFormat : '';
|
|
95
|
+
var _props_commonTimeSetting;
|
|
96
|
+
_this.commonTimeSetting = (_props_commonTimeSetting = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && _props_commonTimeSetting !== void 0 ? _props_commonTimeSetting : [];
|
|
97
|
+
var _props_setValueType;
|
|
98
|
+
_this.setValueType = (_props_setValueType = props === null || props === void 0 ? void 0 : props.setValueType) !== null && _props_setValueType !== void 0 ? _props_setValueType : 'custom';
|
|
99
|
+
var _props_caption;
|
|
100
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DatePickerControl.controlName;
|
|
101
|
+
var _props_placeholder;
|
|
102
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnterDate', null, '请输入日期');
|
|
103
|
+
var _props_defaultValue;
|
|
104
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
105
|
+
var _props_limitDateList_map;
|
|
106
|
+
_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) {
|
|
100
107
|
return new LimitDate(item);
|
|
101
|
-
})) !== null &&
|
|
108
|
+
})) !== null && _props_limitDateList_map !== void 0 ? _props_limitDateList_map : [];
|
|
109
|
+
var _props_allowDateRange;
|
|
102
110
|
// this.multiple = props?.multiple ?? false
|
|
103
|
-
_this.allowDateRange = (
|
|
111
|
+
_this.allowDateRange = (_props_allowDateRange = props === null || props === void 0 ? void 0 : props.allowDateRange) !== null && _props_allowDateRange !== void 0 ? _props_allowDateRange : [
|
|
104
112
|
'',
|
|
105
113
|
''
|
|
106
114
|
];
|
|
107
|
-
|
|
108
|
-
_this.
|
|
109
|
-
|
|
110
|
-
_this.
|
|
115
|
+
var _props_filterWeekend;
|
|
116
|
+
_this.filterWeekend = (_props_filterWeekend = props === null || props === void 0 ? void 0 : props.filterWeekend) !== null && _props_filterWeekend !== void 0 ? _props_filterWeekend : false;
|
|
117
|
+
var _props_isInternational;
|
|
118
|
+
_this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
|
|
119
|
+
var _props_isShowCustomDateFormat;
|
|
120
|
+
_this.isShowCustomDateFormat = (_props_isShowCustomDateFormat = props === null || props === void 0 ? void 0 : props.isShowCustomDateFormat) !== null && _props_isShowCustomDateFormat !== void 0 ? _props_isShowCustomDateFormat : false;
|
|
121
|
+
var _props_customDateFormat;
|
|
122
|
+
_this.customDateFormat = (_props_customDateFormat = props === null || props === void 0 ? void 0 : props.customDateFormat) !== null && _props_customDateFormat !== void 0 ? _props_customDateFormat : '';
|
|
111
123
|
return _this;
|
|
112
124
|
}
|
|
113
125
|
return DatePickerProperty;
|