@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
|
@@ -124,32 +124,49 @@ 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;
|
|
128
127
|
_this = _call_super(this, OrganizationSelectionProperty, [
|
|
129
128
|
props
|
|
130
129
|
]), _define_property(_this, "showType", void 0), _define_property(_this, "range", void 0), _define_property(_this, "defaultValueType", void 0), _define_property(_this, "multiple", void 0), _define_property(_this, "rangeOptions", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "displayLevel", void 0), _define_property(_this, "showSubDept", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "listPageBind", void 0), _define_property(_this, "datasourceType", void 0), _define_property(_this, "businessType", void 0), _define_property(_this, "businessScope", void 0), _define_property(_this, "organizingFunction", void 0), _define_property(_this, "organizationView", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "showSelectedDetail", void 0), _define_property(_this, "selectedContentConfig", void 0);
|
|
131
|
-
|
|
132
|
-
_this.
|
|
133
|
-
|
|
130
|
+
var _props_showType;
|
|
131
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'default';
|
|
132
|
+
var _props_multiple;
|
|
133
|
+
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
134
|
+
var _props_range;
|
|
135
|
+
_this.range = (_props_range = props === null || props === void 0 ? void 0 : props.range) !== null && _props_range !== void 0 ? _props_range : 'all';
|
|
134
136
|
_this.listPageBind = new ListBind(props === null || props === void 0 ? void 0 : props.listPageBind);
|
|
135
|
-
|
|
136
|
-
_this.
|
|
137
|
-
|
|
138
|
-
_this.
|
|
139
|
-
|
|
140
|
-
_this.
|
|
141
|
-
|
|
142
|
-
_this.
|
|
137
|
+
var _props_defaultValueType;
|
|
138
|
+
_this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : 'none';
|
|
139
|
+
var _props_rangeOptions;
|
|
140
|
+
_this.rangeOptions = (_props_rangeOptions = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _props_rangeOptions !== void 0 ? _props_rangeOptions : [];
|
|
141
|
+
var _props_defaultValue;
|
|
142
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
143
|
+
var _props_displayLevel;
|
|
144
|
+
_this.displayLevel = (_props_displayLevel = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _props_displayLevel !== void 0 ? _props_displayLevel : 1;
|
|
145
|
+
var _props_showSubDept;
|
|
146
|
+
_this.showSubDept = (_props_showSubDept = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _props_showSubDept !== void 0 ? _props_showSubDept : true;
|
|
147
|
+
var _props_caption;
|
|
148
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : OrganizationSelectionControl.controlName;
|
|
149
|
+
var _props_placeholder;
|
|
150
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelectOrg', null, '请选择组织');
|
|
151
|
+
var _props_datasourceBind;
|
|
152
|
+
_this.datasourceBind = new OrganizationDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
143
153
|
attributes: OrganizationSelectionControl.controlCustomAttributes
|
|
144
154
|
});
|
|
145
|
-
|
|
146
|
-
_this.
|
|
147
|
-
|
|
148
|
-
_this.
|
|
149
|
-
|
|
150
|
-
_this.
|
|
155
|
+
var _props_datasourceType;
|
|
156
|
+
_this.datasourceType = (_props_datasourceType = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _props_datasourceType !== void 0 ? _props_datasourceType : DepartmentType.INTERNAL;
|
|
157
|
+
var _props_businessScope;
|
|
158
|
+
_this.businessScope = (_props_businessScope = props === null || props === void 0 ? void 0 : props.businessScope) !== null && _props_businessScope !== void 0 ? _props_businessScope : [];
|
|
159
|
+
var _props_businessType;
|
|
160
|
+
_this.businessType = (_props_businessType = props === null || props === void 0 ? void 0 : props.businessType) !== null && _props_businessType !== void 0 ? _props_businessType : AssignType.ALL;
|
|
161
|
+
var _props_organizingFunction;
|
|
162
|
+
_this.organizingFunction = (_props_organizingFunction = props === null || props === void 0 ? void 0 : props.organizingFunction) !== null && _props_organizingFunction !== void 0 ? _props_organizingFunction : undefined;
|
|
163
|
+
var _props_organizationView;
|
|
164
|
+
_this.organizationView = (_props_organizationView = props === null || props === void 0 ? void 0 : props.organizationView) !== null && _props_organizationView !== void 0 ? _props_organizationView : undefined;
|
|
165
|
+
var _props_showSelectedDetail;
|
|
166
|
+
_this.showSelectedDetail = (_props_showSelectedDetail = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _props_showSelectedDetail !== void 0 ? _props_showSelectedDetail : false;
|
|
151
167
|
_this.selectedContentConfig = new SelectedContentConfig(props === null || props === void 0 ? void 0 : props.selectedContentConfig);
|
|
152
|
-
|
|
168
|
+
var _props_openMultistageFilling;
|
|
169
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
153
170
|
_this.multistageFilling = [];
|
|
154
171
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
155
172
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -90,11 +90,11 @@ 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, _ref12, _ref13;
|
|
94
93
|
_this = _call_super(this, RadioProperty, [
|
|
95
94
|
props
|
|
96
95
|
]), _define_property(_this, "radioMode", void 0), _define_property(_this, "options", void 0), _define_property(_this, "optionConfig", void 0), _define_property(_this, "optionsFormat", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "otherOption", void 0), _define_property(_this, "optionsOrder", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "interreaction", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "type", void 0), _define_property(_this, "isUseCustomColor", void 0);
|
|
97
|
-
|
|
96
|
+
var _props_options;
|
|
97
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
98
98
|
{
|
|
99
99
|
label: getLocaleText('CMD.optionOne', null, '选项一'),
|
|
100
100
|
value: getLocaleText('CMD.optionOne', null, '选项一')
|
|
@@ -108,19 +108,31 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
108
108
|
value: getLocaleText('CMD.optionThird', null, '选项三')
|
|
109
109
|
}
|
|
110
110
|
]);
|
|
111
|
-
|
|
112
|
-
_this.
|
|
113
|
-
|
|
114
|
-
_this.
|
|
115
|
-
|
|
116
|
-
_this.
|
|
111
|
+
var _props_radioMode;
|
|
112
|
+
_this.radioMode = (_props_radioMode = props === null || props === void 0 ? void 0 : props.radioMode) !== null && _props_radioMode !== void 0 ? _props_radioMode : 'horizontal';
|
|
113
|
+
var _props_optionConfig;
|
|
114
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'custom';
|
|
115
|
+
var _props_otherOption;
|
|
116
|
+
_this.otherOption = (_props_otherOption = props === null || props === void 0 ? void 0 : props.otherOption) !== null && _props_otherOption !== void 0 ? _props_otherOption : false;
|
|
117
|
+
var _props_optionsOrder;
|
|
118
|
+
_this.optionsOrder = (_props_optionsOrder = props === null || props === void 0 ? void 0 : props.optionsOrder) !== null && _props_optionsOrder !== void 0 ? _props_optionsOrder : false;
|
|
119
|
+
var _props_defaultShowOptions;
|
|
120
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
|
|
121
|
+
var _props_optionsFormat;
|
|
122
|
+
_this.optionsFormat = (_props_optionsFormat = props === null || props === void 0 ? void 0 : props.optionsFormat) !== null && _props_optionsFormat !== void 0 ? _props_optionsFormat : 'horizontal';
|
|
117
123
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
118
|
-
|
|
119
|
-
_this.
|
|
120
|
-
|
|
121
|
-
_this.
|
|
122
|
-
|
|
123
|
-
_this.
|
|
124
|
+
var _props_interreaction;
|
|
125
|
+
_this.interreaction = (_props_interreaction = props === null || props === void 0 ? void 0 : props.interreaction) !== null && _props_interreaction !== void 0 ? _props_interreaction : [];
|
|
126
|
+
var _props_caption;
|
|
127
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : RadioControl.controlName;
|
|
128
|
+
var _props_defaultValue;
|
|
129
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
130
|
+
var _props_openMultistageFilling;
|
|
131
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
132
|
+
var _props_type;
|
|
133
|
+
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'default';
|
|
134
|
+
var _props_isUseCustomColor;
|
|
135
|
+
_this.isUseCustomColor = (_props_isUseCustomColor = props === null || props === void 0 ? void 0 : props.isUseCustomColor) !== null && _props_isUseCustomColor !== void 0 ? _props_isUseCustomColor : false;
|
|
124
136
|
_this.multistageFilling = [];
|
|
125
137
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
126
138
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -128,7 +140,8 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
128
140
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
129
141
|
});
|
|
130
142
|
}
|
|
131
|
-
|
|
143
|
+
var _props_aiContentSearch;
|
|
144
|
+
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
132
145
|
return _this;
|
|
133
146
|
}
|
|
134
147
|
return RadioProperty;
|
|
@@ -135,14 +135,17 @@ 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, _ref10, _ref11;
|
|
139
138
|
_this = _call_super(this, RichTextProperty, [
|
|
140
139
|
props
|
|
141
140
|
]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "height", void 0), _define_property(_this, "toolbarOptions", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "aiGeneration", void 0), _define_property(_this, "aiOptions", void 0), _define_property(_this, "autoHeight", void 0), _define_property(_this, "lineEllipsis", void 0);
|
|
142
|
-
|
|
143
|
-
_this.
|
|
144
|
-
|
|
145
|
-
_this.
|
|
141
|
+
var _props_maxLength;
|
|
142
|
+
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
|
|
143
|
+
var _props_minLength;
|
|
144
|
+
_this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : 0;
|
|
145
|
+
var _props_height;
|
|
146
|
+
_this.height = (_props_height = props === null || props === void 0 ? void 0 : props.height) !== null && _props_height !== void 0 ? _props_height : 400;
|
|
147
|
+
var _props_toolbarOptions;
|
|
148
|
+
_this.toolbarOptions = (_props_toolbarOptions = props === null || props === void 0 ? void 0 : props.toolbarOptions) !== null && _props_toolbarOptions !== void 0 ? _props_toolbarOptions : [
|
|
146
149
|
'undo',
|
|
147
150
|
'redo',
|
|
148
151
|
'|',
|
|
@@ -180,12 +183,18 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
180
183
|
'|',
|
|
181
184
|
'fullscreen'
|
|
182
185
|
];
|
|
183
|
-
|
|
184
|
-
_this.
|
|
185
|
-
|
|
186
|
-
_this.
|
|
187
|
-
|
|
188
|
-
_this.
|
|
186
|
+
var _props_defaultValue;
|
|
187
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
188
|
+
var _props_caption;
|
|
189
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : RichTextControl.controlName;
|
|
190
|
+
var _props_placeholder;
|
|
191
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
192
|
+
var _props_aiContentSearch;
|
|
193
|
+
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
194
|
+
var _props_aiGeneration;
|
|
195
|
+
_this.aiGeneration = (_props_aiGeneration = props === null || props === void 0 ? void 0 : props.aiGeneration) !== null && _props_aiGeneration !== void 0 ? _props_aiGeneration : false;
|
|
196
|
+
var _props_aiOptions;
|
|
197
|
+
_this.aiOptions = initAiOptions((_props_aiOptions = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _props_aiOptions !== void 0 ? _props_aiOptions : [
|
|
189
198
|
{
|
|
190
199
|
label: getLocaleText('CMD.aiOptionOneLabel', null, '总结'),
|
|
191
200
|
cueWord: getLocaleText('CMD.aiOptionOneCurword', null, 'SUMM'),
|
|
@@ -202,8 +211,10 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
202
211
|
checked: false
|
|
203
212
|
}
|
|
204
213
|
]);
|
|
205
|
-
|
|
206
|
-
_this.
|
|
214
|
+
var _props_autoHeight;
|
|
215
|
+
_this.autoHeight = (_props_autoHeight = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _props_autoHeight !== void 0 ? _props_autoHeight : false;
|
|
216
|
+
var _props_lineEllipsis;
|
|
217
|
+
_this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
|
|
207
218
|
return _this;
|
|
208
219
|
}
|
|
209
220
|
return RichTextProperty;
|
|
@@ -141,24 +141,32 @@ 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, _ref6, _ref7, _ref8;
|
|
145
144
|
var _props_explain;
|
|
146
145
|
_this = _call_super(this, ScoreProperty, [
|
|
147
146
|
props
|
|
148
147
|
]), _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), _define_property(_this, "canHalf", void 0), _define_property(_this, "explainColor", void 0), _define_property(_this, "isShowCurrentScore", void 0);
|
|
149
|
-
|
|
150
|
-
_this.
|
|
151
|
-
|
|
152
|
-
_this.
|
|
148
|
+
var _props_totalScore;
|
|
149
|
+
_this.totalScore = (_props_totalScore = props === null || props === void 0 ? void 0 : props.totalScore) !== null && _props_totalScore !== void 0 ? _props_totalScore : 5;
|
|
150
|
+
var _props_scoreType;
|
|
151
|
+
_this.scoreType = (_props_scoreType = props === null || props === void 0 ? void 0 : props.scoreType) !== null && _props_scoreType !== void 0 ? _props_scoreType : SCORE_TYPE.STAR;
|
|
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) {
|
|
153
156
|
return new Explain(item);
|
|
154
|
-
})) !== null &&
|
|
157
|
+
})) !== null && _props_explain_map !== void 0 ? _props_explain_map : Array(_this.totalScore).fill(undefined).map(function() {
|
|
155
158
|
return new Explain();
|
|
156
159
|
});
|
|
157
|
-
|
|
158
|
-
_this.
|
|
159
|
-
|
|
160
|
-
_this.
|
|
161
|
-
|
|
160
|
+
var _props_defaultValue;
|
|
161
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : 0;
|
|
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;
|
|
164
|
+
var _props_canHalf;
|
|
165
|
+
_this.canHalf = (_props_canHalf = props === null || props === void 0 ? void 0 : props.canHalf) !== null && _props_canHalf !== void 0 ? _props_canHalf : false;
|
|
166
|
+
var _props_explainColor;
|
|
167
|
+
_this.explainColor = (_props_explainColor = props === null || props === void 0 ? void 0 : props.explainColor) !== null && _props_explainColor !== void 0 ? _props_explainColor : 'primary';
|
|
168
|
+
var _props_isShowCurrentScore;
|
|
169
|
+
_this.isShowCurrentScore = (_props_isShowCurrentScore = props === null || props === void 0 ? void 0 : props.isShowCurrentScore) !== null && _props_isShowCurrentScore !== void 0 ? _props_isShowCurrentScore : false;
|
|
162
170
|
return _this;
|
|
163
171
|
}
|
|
164
172
|
return ScoreProperty;
|
|
@@ -114,28 +114,39 @@ 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;
|
|
118
117
|
var _props_limitDateList;
|
|
119
118
|
_this = _call_super(this, SearchDateRangeProperty, [
|
|
120
119
|
props
|
|
121
120
|
]), _define_property(_this, "rangeMin", void 0), _define_property(_this, "rangeMax", void 0), _define_property(_this, "placeholderStart", void 0), _define_property(_this, "placeholderEnd", void 0), _define_property(_this, "dateType", void 0), _define_property(_this, "dateFormat", void 0), _define_property(_this, "commonTimeSetting", void 0), _define_property(_this, "setValueType", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "limitDateList", void 0), _define_property(_this, "isInternational", void 0);
|
|
122
|
-
|
|
121
|
+
var _props_defaultValue;
|
|
122
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [
|
|
123
123
|
'',
|
|
124
124
|
''
|
|
125
125
|
];
|
|
126
|
-
|
|
127
|
-
_this.
|
|
128
|
-
|
|
129
|
-
_this.
|
|
130
|
-
|
|
131
|
-
_this.
|
|
132
|
-
|
|
133
|
-
_this.
|
|
134
|
-
|
|
135
|
-
_this.
|
|
126
|
+
var _props_dateType;
|
|
127
|
+
_this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
|
|
128
|
+
var _props_dateFormat;
|
|
129
|
+
_this.dateFormat = (_props_dateFormat = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && _props_dateFormat !== void 0 ? _props_dateFormat : '';
|
|
130
|
+
var _props_commonTimeSetting;
|
|
131
|
+
_this.commonTimeSetting = (_props_commonTimeSetting = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && _props_commonTimeSetting !== void 0 ? _props_commonTimeSetting : [];
|
|
132
|
+
var _props_setValueType;
|
|
133
|
+
_this.setValueType = (_props_setValueType = props === null || props === void 0 ? void 0 : props.setValueType) !== null && _props_setValueType !== void 0 ? _props_setValueType : 'custom';
|
|
134
|
+
var _props_rangeMin;
|
|
135
|
+
_this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
|
|
136
|
+
var _props_rangeMax;
|
|
137
|
+
_this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
|
|
138
|
+
var _props_placeholderStart;
|
|
139
|
+
_this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : getLocaleText('CMD.startDate', null, '开始日期');
|
|
140
|
+
var _props_placeholderEnd;
|
|
141
|
+
_this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : getLocaleText('CMD.endDate', null, '结束日期');
|
|
142
|
+
var _props_caption;
|
|
143
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SearchDateRangeControl.controlName;
|
|
144
|
+
var _props_limitDateList_map;
|
|
145
|
+
_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) {
|
|
136
146
|
return new LimitDate(item);
|
|
137
|
-
})) !== null &&
|
|
138
|
-
|
|
147
|
+
})) !== null && _props_limitDateList_map !== void 0 ? _props_limitDateList_map : [];
|
|
148
|
+
var _props_isInternational;
|
|
149
|
+
_this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
|
|
139
150
|
return _this;
|
|
140
151
|
}
|
|
141
152
|
return SearchDateRangeProperty;
|
|
@@ -113,19 +113,24 @@ 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;
|
|
117
116
|
_this = _call_super(this, SearchNumberRangeProperty, [
|
|
118
117
|
props
|
|
119
118
|
]), _define_property(_this, "rangeMin", void 0), _define_property(_this, "rangeMax", void 0), _define_property(_this, "placeholderStart", void 0), _define_property(_this, "placeholderEnd", void 0), _define_property(_this, "defaultValue", void 0);
|
|
120
|
-
|
|
119
|
+
var _props_defaultValue;
|
|
120
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [
|
|
121
121
|
'',
|
|
122
122
|
''
|
|
123
123
|
];
|
|
124
|
-
|
|
125
|
-
_this.
|
|
126
|
-
|
|
127
|
-
_this.
|
|
128
|
-
|
|
124
|
+
var _props_rangeMin;
|
|
125
|
+
_this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
|
|
126
|
+
var _props_rangeMax;
|
|
127
|
+
_this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
|
|
128
|
+
var _props_placeholderStart;
|
|
129
|
+
_this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : getLocaleText('CMD.min', null, '最小值');
|
|
130
|
+
var _props_placeholderEnd;
|
|
131
|
+
_this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : getLocaleText('CMD.max', null, '最大值');
|
|
132
|
+
var _props_caption;
|
|
133
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SearchNumberRangeControl.controlName;
|
|
129
134
|
return _this;
|
|
130
135
|
}
|
|
131
136
|
return SearchNumberRangeProperty;
|
|
@@ -103,12 +103,12 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
103
103
|
function SelectProperty(props) {
|
|
104
104
|
_class_call_check(this, SelectProperty);
|
|
105
105
|
var _this;
|
|
106
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12;
|
|
107
106
|
_this = _call_super(this, SelectProperty, [
|
|
108
107
|
props
|
|
109
108
|
]), _define_property(_this, "options", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "optionConfig", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "allowCopyOptions", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "viewFormModelType", void 0), _define_property(_this, "canViewForm", void 0 //https://www.tapd.cn/49877295/prong/stories/view/1149877295001003559
|
|
110
109
|
), _define_property(_this, "formBind", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "type", void 0), _define_property(_this, "isUseCustomColor", void 0);
|
|
111
|
-
|
|
110
|
+
var _props_options;
|
|
111
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
112
112
|
{
|
|
113
113
|
label: getLocaleText('CMD.optionOne', null, '选项一'),
|
|
114
114
|
value: getLocaleText('CMD.optionOne', null, '选项一')
|
|
@@ -122,16 +122,25 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
122
122
|
value: getLocaleText('CMD.optionThird', null, '选项三')
|
|
123
123
|
}
|
|
124
124
|
]);
|
|
125
|
-
|
|
126
|
-
_this.
|
|
125
|
+
var _props_defaultShowOptions;
|
|
126
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
|
|
127
|
+
var _props_optionConfig;
|
|
128
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'custom';
|
|
127
129
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
128
|
-
|
|
129
|
-
_this.
|
|
130
|
-
|
|
131
|
-
_this.
|
|
132
|
-
|
|
133
|
-
_this.
|
|
134
|
-
|
|
130
|
+
var _props_caption;
|
|
131
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectControl.controlName;
|
|
132
|
+
var _props_placeholder;
|
|
133
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
|
|
134
|
+
var _props_defaultValue;
|
|
135
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
136
|
+
var _props_allowCopyOptions;
|
|
137
|
+
_this.allowCopyOptions = (_props_allowCopyOptions = props === null || props === void 0 ? void 0 : props.allowCopyOptions) !== null && _props_allowCopyOptions !== void 0 ? _props_allowCopyOptions : false;
|
|
138
|
+
var _props_openMultistageFilling;
|
|
139
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
140
|
+
var _props_type;
|
|
141
|
+
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'default';
|
|
142
|
+
var _props_isUseCustomColor;
|
|
143
|
+
_this.isUseCustomColor = (_props_isUseCustomColor = props === null || props === void 0 ? void 0 : props.isUseCustomColor) !== null && _props_isUseCustomColor !== void 0 ? _props_isUseCustomColor : false;
|
|
135
144
|
_this.multistageFilling = [];
|
|
136
145
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
137
146
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -139,10 +148,13 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
139
148
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
140
149
|
});
|
|
141
150
|
}
|
|
142
|
-
|
|
143
|
-
_this.
|
|
151
|
+
var _props_canViewForm;
|
|
152
|
+
_this.canViewForm = (_props_canViewForm = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _props_canViewForm !== void 0 ? _props_canViewForm : false;
|
|
153
|
+
var _props_viewFormModelType;
|
|
154
|
+
_this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : 'window';
|
|
144
155
|
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
145
|
-
|
|
156
|
+
var _props_aiContentSearch;
|
|
157
|
+
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
146
158
|
return _this;
|
|
147
159
|
}
|
|
148
160
|
return SelectProperty;
|
|
@@ -119,12 +119,12 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
119
119
|
function SelectMultipleProperty(props) {
|
|
120
120
|
_class_call_check(this, SelectMultipleProperty);
|
|
121
121
|
var _this;
|
|
122
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11;
|
|
123
122
|
_this = _call_super(this, SelectMultipleProperty, [
|
|
124
123
|
props
|
|
125
124
|
]), _define_property(_this, "options", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "optionConfig", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "viewFormModelType", void 0), _define_property(_this, "canViewForm", void 0 //https://www.tapd.cn/49877295/prong/stories/view/1149877295001003559
|
|
126
125
|
), _define_property(_this, "formBind", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "type", void 0), _define_property(_this, "isUseCustomColor", void 0);
|
|
127
|
-
|
|
126
|
+
var _props_options;
|
|
127
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
128
128
|
{
|
|
129
129
|
label: getLocaleText('CMD.optionOne', null, '选项一'),
|
|
130
130
|
value: getLocaleText('CMD.optionOne', null, '选项一')
|
|
@@ -138,15 +138,23 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
138
138
|
value: getLocaleText('CMD.optionThird', null, '选项三')
|
|
139
139
|
}
|
|
140
140
|
]);
|
|
141
|
-
|
|
142
|
-
_this.
|
|
141
|
+
var _props_defaultShowOptions;
|
|
142
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
|
|
143
|
+
var _props_optionConfig;
|
|
144
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'custom';
|
|
143
145
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
144
|
-
|
|
145
|
-
_this.
|
|
146
|
-
|
|
147
|
-
_this.
|
|
148
|
-
|
|
149
|
-
_this.
|
|
146
|
+
var _props_caption;
|
|
147
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectMultipleControl.controlName;
|
|
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.pleaseSelect', null, '请选择');
|
|
150
|
+
var _props_defaultValue;
|
|
151
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
152
|
+
var _props_openMultistageFilling;
|
|
153
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
154
|
+
var _props_type;
|
|
155
|
+
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'default';
|
|
156
|
+
var _props_isUseCustomColor;
|
|
157
|
+
_this.isUseCustomColor = (_props_isUseCustomColor = props === null || props === void 0 ? void 0 : props.isUseCustomColor) !== null && _props_isUseCustomColor !== void 0 ? _props_isUseCustomColor : false;
|
|
150
158
|
_this.multistageFilling = [];
|
|
151
159
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
152
160
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -154,10 +162,13 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
154
162
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
155
163
|
});
|
|
156
164
|
}
|
|
157
|
-
|
|
158
|
-
_this.
|
|
165
|
+
var _props_canViewForm;
|
|
166
|
+
_this.canViewForm = (_props_canViewForm = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _props_canViewForm !== void 0 ? _props_canViewForm : false;
|
|
167
|
+
var _props_viewFormModelType;
|
|
168
|
+
_this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : 'window';
|
|
159
169
|
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
160
|
-
|
|
170
|
+
var _props_aiContentSearch;
|
|
171
|
+
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
161
172
|
return _this;
|
|
162
173
|
}
|
|
163
174
|
return SelectMultipleProperty;
|
|
@@ -126,20 +126,26 @@ var SelectRelationProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
126
126
|
function SelectRelationProperty(props) {
|
|
127
127
|
_class_call_check(this, SelectRelationProperty);
|
|
128
128
|
var _this;
|
|
129
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12;
|
|
130
129
|
_this = _call_super(this, SelectRelationProperty, [
|
|
131
130
|
props
|
|
132
131
|
]), _define_property(_this, "options", void 0), _define_property(_this, "optionConfig", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "listPageBind", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "viewFormModelType", void 0), _define_property(_this, "canViewForm", void 0 //https://www.tapd.cn/49877295/prong/stories/view/1149877295001003559
|
|
133
132
|
), _define_property(_this, "formBind", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "showSelectedDetail", void 0), _define_property(_this, "selectedContentConfig", void 0), _define_property(_this, "optionDisplayConfig", void 0), _define_property(_this, "canSearch", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "defaultShowOptions", void 0);
|
|
134
|
-
|
|
135
|
-
_this.
|
|
133
|
+
var _props_options;
|
|
134
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : []);
|
|
135
|
+
var _props_optionConfig;
|
|
136
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'datasource';
|
|
136
137
|
_this.listPageBind = new ListBind(props === null || props === void 0 ? void 0 : props.listPageBind);
|
|
137
138
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
138
|
-
|
|
139
|
-
_this.
|
|
140
|
-
|
|
141
|
-
_this.
|
|
142
|
-
|
|
139
|
+
var _props_caption;
|
|
140
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectRelationControl.controlName;
|
|
141
|
+
var _props_placeholder;
|
|
142
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
|
|
143
|
+
var _props_defaultValue;
|
|
144
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
145
|
+
var _props_openMultistageFilling;
|
|
146
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
147
|
+
var _props_showSelectedDetail;
|
|
148
|
+
_this.showSelectedDetail = (_props_showSelectedDetail = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _props_showSelectedDetail !== void 0 ? _props_showSelectedDetail : false;
|
|
143
149
|
_this.selectedContentConfig = new SelectedContentConfig(props === null || props === void 0 ? void 0 : props.selectedContentConfig);
|
|
144
150
|
_this.multistageFilling = [];
|
|
145
151
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
@@ -148,13 +154,19 @@ var SelectRelationProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
148
154
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
149
155
|
});
|
|
150
156
|
}
|
|
151
|
-
|
|
152
|
-
_this.
|
|
157
|
+
var _props_canViewForm;
|
|
158
|
+
_this.canViewForm = (_props_canViewForm = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _props_canViewForm !== void 0 ? _props_canViewForm : false;
|
|
159
|
+
var _props_viewFormModelType;
|
|
160
|
+
_this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : 'window';
|
|
153
161
|
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
154
|
-
|
|
155
|
-
_this.
|
|
156
|
-
|
|
157
|
-
_this.
|
|
162
|
+
var _props_optionDisplayConfig;
|
|
163
|
+
_this.optionDisplayConfig = (_props_optionDisplayConfig = props === null || props === void 0 ? void 0 : props.optionDisplayConfig) !== null && _props_optionDisplayConfig !== void 0 ? _props_optionDisplayConfig : [];
|
|
164
|
+
var _props_canSearch;
|
|
165
|
+
_this.canSearch = (_props_canSearch = props === null || props === void 0 ? void 0 : props.canSearch) !== null && _props_canSearch !== void 0 ? _props_canSearch : false;
|
|
166
|
+
var _props_aiContentSearch;
|
|
167
|
+
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
168
|
+
var _props_defaultShowOptions;
|
|
169
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : false;
|
|
158
170
|
return _this;
|
|
159
171
|
}
|
|
160
172
|
return SelectRelationProperty;
|