@byteluck-fe/model-driven-controls 7.0.0-props.7 → 7.0.0-props.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/baseControls/BatchDeleteButton/property.js +10 -18
- package/dist/esm/baseControls/BatchPrintListButton/property.js +6 -9
- package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +3 -4
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +7 -12
- package/dist/esm/baseControls/Button/property.js +10 -18
- package/dist/esm/baseControls/Comment/property.js +2 -2
- package/dist/esm/baseControls/CreateFormListButton/property.js +5 -8
- package/dist/esm/baseControls/Dashboard/property.js +9 -16
- package/dist/esm/baseControls/Divider/designer.js +33 -1
- package/dist/esm/baseControls/Divider/property.js +12 -7
- package/dist/esm/baseControls/ExportListButton/property.js +6 -9
- package/dist/esm/baseControls/ExportRecordListButton/property.js +3 -4
- package/dist/esm/baseControls/FormSelectButton/property.js +4 -6
- package/dist/esm/baseControls/ImportRecordListButton/property.js +6 -9
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +11 -19
- package/dist/esm/baseControls/Link/designer.js +33 -0
- package/dist/esm/baseControls/Link/property.js +9 -7
- package/dist/esm/baseControls/ListSelectButton/property.js +6 -10
- package/dist/esm/baseControls/ListViewSelect/property.js +4 -5
- package/dist/esm/baseControls/OperationButton/property.js +7 -12
- package/dist/esm/baseControls/ReferenceList/property.js +7 -12
- package/dist/esm/baseControls/SubmissionRecordListButton/property.js +3 -4
- package/dist/esm/baseControls/Text/designer.js +8 -0
- package/dist/esm/baseControls/Text/property.js +18 -13
- package/dist/esm/baseControls/TextOcrButton/property.js +11 -19
- package/dist/esm/baseControls/Title/property.js +4 -6
- package/dist/esm/columnControls/ApprovalStatusColumn/property.js +4 -6
- package/dist/esm/columnControls/ArrayColumn/property.js +5 -8
- package/dist/esm/columnControls/AutoNumberColumn/property.js +3 -4
- package/dist/esm/columnControls/CustomColumn/property.js +4 -6
- package/dist/esm/columnControls/DecimalColumn/property.js +8 -14
- package/dist/esm/columnControls/DepartmentColumn/property.js +3 -4
- package/dist/esm/columnControls/EmployeeColumn/property.js +3 -4
- package/dist/esm/columnControls/FileColumn/property.js +3 -4
- package/dist/esm/columnControls/GroupColumn/designer.js +2 -1
- 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 +3 -4
- package/dist/esm/columnControls/OperationColumn/designer.js +12 -4
- package/dist/esm/columnControls/OperationColumn/property.js +6 -10
- package/dist/esm/columnControls/OrderColumn/property.js +7 -12
- package/dist/esm/columnControls/PeopleColumn/property.js +2 -2
- package/dist/esm/columnControls/TextColumn/property.js +5 -8
- package/dist/esm/columnControls/TimescopeColumn/property.js +5 -8
- package/dist/esm/columnControls/TimestampColumn/property.js +5 -8
- package/dist/esm/columnControls/VarcharColumn/property.js +7 -12
- package/dist/esm/formControls/Address/property.js +6 -10
- package/dist/esm/formControls/Amount/property.js +13 -24
- package/dist/esm/formControls/Attachment/property.js +26 -42
- package/dist/esm/formControls/AutoNumber/property.js +4 -6
- package/dist/esm/formControls/Calc/property.js +10 -18
- package/dist/esm/formControls/Cascader/property.js +17 -31
- package/dist/esm/formControls/Checkbox/property.js +18 -33
- package/dist/esm/formControls/DatePicker/designer.js +4 -0
- package/dist/esm/formControls/DatePicker/property.js +19 -25
- package/dist/esm/formControls/DateRange/property.js +13 -23
- package/dist/esm/formControls/Department/property.js +12 -22
- package/dist/esm/formControls/Department2/designer.js +8 -0
- package/dist/esm/formControls/Department2/property.js +29 -34
- package/dist/esm/formControls/ElectronicSignature/property.js +7 -12
- package/dist/esm/formControls/Employee/property.js +10 -18
- package/dist/esm/formControls/Employee2/designer.js +4 -0
- package/dist/esm/formControls/Employee2/property.js +19 -33
- package/dist/esm/formControls/Image/designer.js +8 -8
- package/dist/esm/formControls/Image/property.js +8 -14
- package/dist/esm/formControls/Input/property.js +11 -20
- package/dist/esm/formControls/Number/property.js +17 -32
- package/dist/esm/formControls/OrganizationSelection/property.js +19 -36
- package/dist/esm/formControls/Radio/property.js +15 -28
- package/dist/esm/formControls/RichText/designer.js +8 -0
- package/dist/esm/formControls/RichText/property.js +51 -21
- package/dist/esm/formControls/Score/property.js +11 -19
- package/dist/esm/formControls/SearchDateRange/property.js +14 -25
- package/dist/esm/formControls/SearchNumberRange/property.js +7 -12
- package/dist/esm/formControls/Select/property.js +14 -26
- package/dist/esm/formControls/SelectMultiple/property.js +13 -24
- package/dist/esm/formControls/SelectRelation/property.js +14 -26
- package/dist/esm/formControls/Textarea/property.js +11 -20
- package/dist/esm/formControls/TimePicker/property.js +8 -13
- package/dist/esm/formControls/TimeRange/property.js +10 -17
- package/dist/esm/formControls/Tree/designer.js +2 -1
- package/dist/esm/formControls/Tree/property.js +44 -38
- package/dist/esm/formControls/VueFormItem/property.js +6 -10
- package/dist/esm/formControls/VuePage/property.js +6 -10
- package/dist/esm/formControls/WPS/designer.js +9 -9
- package/dist/esm/formControls/WPS/property.js +13 -24
- package/dist/esm/framework.js +81 -121
- package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
- package/dist/esm/layoutControls/ActionBar/property.js +4 -6
- package/dist/esm/layoutControls/ActionBar/runtime.js +2 -2
- package/dist/esm/layoutControls/CardGroup/property.js +11 -20
- package/dist/esm/layoutControls/Col/property.js +4 -6
- package/dist/esm/layoutControls/Collapse/designer.js +2 -2
- package/dist/esm/layoutControls/Collapse/property.js +4 -6
- package/dist/esm/layoutControls/CollapsePane/property.js +2 -2
- package/dist/esm/layoutControls/DataView/property.js +12 -13
- package/dist/esm/layoutControls/GridLayoutContainer/property.js +3 -4
- package/dist/esm/layoutControls/GridTableColumn/property.js +11 -20
- package/dist/esm/layoutControls/ListView/property.js +15 -28
- package/dist/esm/layoutControls/Page/property.js +2 -2
- package/dist/esm/layoutControls/Position/property.js +5 -8
- package/dist/esm/layoutControls/Row/property.js +6 -10
- package/dist/esm/layoutControls/Step/designer.js +2 -2
- package/dist/esm/layoutControls/Step/property.js +12 -22
- package/dist/esm/layoutControls/StepPane/property.js +9 -16
- package/dist/esm/layoutControls/SubTableColumn/property.js +6 -10
- package/dist/esm/layoutControls/Tab/designer.js +2 -2
- package/dist/esm/layoutControls/Tab/property.js +6 -10
- package/dist/esm/layoutControls/TabPane/property.js +2 -2
- package/dist/esm/layoutControls/TableLayout/designer.js +6 -1
- package/dist/esm/layoutControls/TableLayout/property.js +18 -29
- package/dist/esm/layoutControls/TableLayoutCol/property.js +11 -20
- package/dist/esm/layoutControls/TableLayoutRow/property.js +3 -4
- package/dist/esm/layoutControls/TableLayoutWrapper/property.js +4 -6
- package/dist/esm/listControls/GridTable/designer.js +12 -4
- package/dist/esm/listControls/GridTable/property.js +15 -19
- package/dist/esm/listControls/SubTable/property.js +36 -70
- package/dist/esm/searchControls/SimpleSearch/property.js +13 -24
- package/dist/esm/searchControls/SimpleSearch/runtime.js +2 -2
- package/dist/esm/wrapControls/GridLayoutWrap/designer.js +8 -8
- package/dist/esm/wrapControls/GridLayoutWrap/property.js +2 -2
- package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +8 -8
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/Divider/property.d.ts +28 -1
- package/dist/types/baseControls/Link/property.d.ts +8 -0
- package/dist/types/baseControls/Text/property.d.ts +29 -0
- package/dist/types/columnControls/GroupColumn/designer.d.ts +1 -1
- package/dist/types/formControls/DatePicker/property.d.ts +4 -0
- package/dist/types/formControls/Department2/property.d.ts +14 -1
- package/dist/types/formControls/Employee2/property.d.ts +2 -0
- package/dist/types/formControls/RichText/property.d.ts +4 -0
- package/dist/types/formControls/Tree/property.d.ts +31 -0
- package/dist/types/framework.d.ts +6 -0
- package/dist/types/layoutControls/DataView/property.d.ts +5 -0
- package/dist/types/layoutControls/TableLayout/property.d.ts +2 -0
- package/dist/types/layoutControls/TableLayoutCol/property.d.ts +5 -5
- package/package.json +5 -5
|
@@ -156,42 +156,27 @@ var NumberProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
156
156
|
function NumberProperty(props) {
|
|
157
157
|
_class_call_check(this, NumberProperty);
|
|
158
158
|
var _this;
|
|
159
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15;
|
|
159
160
|
_this = _call_super(this, NumberProperty, [
|
|
160
161
|
props
|
|
161
162
|
]), _define_property(_this, "rangeMin", void 0), _define_property(_this, "rangeMax", void 0), _define_property(_this, "numberType", void 0), _define_property(_this, "percentageFormat", void 0), _define_property(_this, "micrometer", void 0), _define_property(_this, "precision", void 0), _define_property(_this, "showUpperCase", void 0), _define_property(_this, "isShowUnit", void 0), _define_property(_this, "unitPosition", void 0), _define_property(_this, "unit", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "regularRules", void 0), _define_property(_this, "isShowControlButton", void 0), _define_property(_this, "controlButtonPosition", void 0), _define_property(_this, "step", void 0);
|
|
162
|
-
|
|
163
|
-
_this.
|
|
164
|
-
|
|
165
|
-
_this.
|
|
166
|
-
|
|
167
|
-
_this.
|
|
168
|
-
|
|
169
|
-
_this.
|
|
170
|
-
|
|
171
|
-
_this.
|
|
172
|
-
|
|
173
|
-
_this.
|
|
174
|
-
|
|
175
|
-
_this.showUpperCase = (_props_showUpperCase = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _props_showUpperCase !== void 0 ? _props_showUpperCase : false;
|
|
176
|
-
var _props_isShowUnit;
|
|
177
|
-
_this.isShowUnit = (_props_isShowUnit = props === null || props === void 0 ? void 0 : props.isShowUnit) !== null && _props_isShowUnit !== void 0 ? _props_isShowUnit : false;
|
|
178
|
-
var _props_unitPosition;
|
|
179
|
-
_this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : 'right';
|
|
180
|
-
var _props_unit;
|
|
181
|
-
_this.unit = (_props_unit = props === null || props === void 0 ? void 0 : props.unit) !== null && _props_unit !== void 0 ? _props_unit : '';
|
|
182
|
-
var _props_caption;
|
|
183
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : NumberControl.controlName;
|
|
184
|
-
var _props_placeholder;
|
|
185
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
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 : '';
|
|
163
|
+
_this.rangeMin = (_ref = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref !== void 0 ? _ref : '';
|
|
164
|
+
_this.rangeMax = (_ref1 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
165
|
+
_this.numberType = (_ref2 = props === null || props === void 0 ? void 0 : props.numberType) !== null && _ref2 !== void 0 ? _ref2 : 'number';
|
|
166
|
+
_this.percentageFormat = (_ref3 = props === null || props === void 0 ? void 0 : props.percentageFormat) !== null && _ref3 !== void 0 ? _ref3 : false;
|
|
167
|
+
_this.micrometer = (_ref4 = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _ref4 !== void 0 ? _ref4 : false;
|
|
168
|
+
_this.precision = (_ref5 = props === null || props === void 0 ? void 0 : props.precision) !== null && _ref5 !== void 0 ? _ref5 : 0;
|
|
169
|
+
_this.showUpperCase = (_ref6 = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _ref6 !== void 0 ? _ref6 : false;
|
|
170
|
+
_this.isShowUnit = (_ref7 = props === null || props === void 0 ? void 0 : props.isShowUnit) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
171
|
+
_this.unitPosition = (_ref8 = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _ref8 !== void 0 ? _ref8 : 'right';
|
|
172
|
+
_this.unit = (_ref9 = props === null || props === void 0 ? void 0 : props.unit) !== null && _ref9 !== void 0 ? _ref9 : '';
|
|
173
|
+
_this.caption = (_ref10 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref10 !== void 0 ? _ref10 : NumberControl.controlName;
|
|
174
|
+
_this.placeholder = (_ref11 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref11 !== void 0 ? _ref11 : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
175
|
+
_this.defaultValue = (_ref12 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref12 !== void 0 ? _ref12 : '';
|
|
188
176
|
_this.regularRules = new RegularRules(props === null || props === void 0 ? void 0 : props.regularRules);
|
|
189
|
-
|
|
190
|
-
_this.
|
|
191
|
-
|
|
192
|
-
_this.controlButtonPosition = (_props_controlButtonPosition = props === null || props === void 0 ? void 0 : props.controlButtonPosition) !== null && _props_controlButtonPosition !== void 0 ? _props_controlButtonPosition : 'between';
|
|
193
|
-
var _props_step;
|
|
194
|
-
_this.step = (_props_step = props === null || props === void 0 ? void 0 : props.step) !== null && _props_step !== void 0 ? _props_step : 1;
|
|
177
|
+
_this.isShowControlButton = (_ref13 = props === null || props === void 0 ? void 0 : props.isShowControlButton) !== null && _ref13 !== void 0 ? _ref13 : false;
|
|
178
|
+
_this.controlButtonPosition = (_ref14 = props === null || props === void 0 ? void 0 : props.controlButtonPosition) !== null && _ref14 !== void 0 ? _ref14 : 'between';
|
|
179
|
+
_this.step = (_ref15 = props === null || props === void 0 ? void 0 : props.step) !== null && _ref15 !== void 0 ? _ref15 : 1;
|
|
195
180
|
return _this;
|
|
196
181
|
}
|
|
197
182
|
return NumberProperty;
|
|
@@ -124,49 +124,32 @@ var OrganizationSelectionProperty = /*#__PURE__*/ function(BaseControlProperty)
|
|
|
124
124
|
function OrganizationSelectionProperty(props) {
|
|
125
125
|
_class_call_check(this, OrganizationSelectionProperty);
|
|
126
126
|
var _this;
|
|
127
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17;
|
|
127
128
|
_this = _call_super(this, OrganizationSelectionProperty, [
|
|
128
129
|
props
|
|
129
130
|
]), _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);
|
|
130
|
-
|
|
131
|
-
_this.
|
|
132
|
-
|
|
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';
|
|
131
|
+
_this.showType = (_ref = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref !== void 0 ? _ref : 'default';
|
|
132
|
+
_this.multiple = (_ref1 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
133
|
+
_this.range = (_ref2 = props === null || props === void 0 ? void 0 : props.range) !== null && _ref2 !== void 0 ? _ref2 : 'all';
|
|
136
134
|
_this.listPageBind = new ListBind(props === null || props === void 0 ? void 0 : props.listPageBind);
|
|
137
|
-
|
|
138
|
-
_this.
|
|
139
|
-
|
|
140
|
-
_this.
|
|
141
|
-
|
|
142
|
-
_this.
|
|
143
|
-
|
|
144
|
-
_this.
|
|
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 : {
|
|
135
|
+
_this.defaultValueType = (_ref3 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref3 !== void 0 ? _ref3 : 'none';
|
|
136
|
+
_this.rangeOptions = (_ref4 = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _ref4 !== void 0 ? _ref4 : [];
|
|
137
|
+
_this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
|
|
138
|
+
_this.displayLevel = (_ref6 = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _ref6 !== void 0 ? _ref6 : 1;
|
|
139
|
+
_this.showSubDept = (_ref7 = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _ref7 !== void 0 ? _ref7 : true;
|
|
140
|
+
_this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : OrganizationSelectionControl.controlName;
|
|
141
|
+
_this.placeholder = (_ref9 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref9 !== void 0 ? _ref9 : getLocaleText('CMD.pleaseSelectOrg', null, '请选择组织');
|
|
142
|
+
_this.datasourceBind = new OrganizationDataSourceBind((_ref10 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref10 !== void 0 ? _ref10 : {
|
|
153
143
|
attributes: OrganizationSelectionControl.controlCustomAttributes
|
|
154
144
|
});
|
|
155
|
-
|
|
156
|
-
_this.
|
|
157
|
-
|
|
158
|
-
_this.
|
|
159
|
-
|
|
160
|
-
_this.
|
|
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;
|
|
145
|
+
_this.datasourceType = (_ref11 = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _ref11 !== void 0 ? _ref11 : DepartmentType.INTERNAL;
|
|
146
|
+
_this.businessScope = (_ref12 = props === null || props === void 0 ? void 0 : props.businessScope) !== null && _ref12 !== void 0 ? _ref12 : [];
|
|
147
|
+
_this.businessType = (_ref13 = props === null || props === void 0 ? void 0 : props.businessType) !== null && _ref13 !== void 0 ? _ref13 : AssignType.ALL;
|
|
148
|
+
_this.organizingFunction = (_ref14 = props === null || props === void 0 ? void 0 : props.organizingFunction) !== null && _ref14 !== void 0 ? _ref14 : undefined;
|
|
149
|
+
_this.organizationView = (_ref15 = props === null || props === void 0 ? void 0 : props.organizationView) !== null && _ref15 !== void 0 ? _ref15 : undefined;
|
|
150
|
+
_this.showSelectedDetail = (_ref16 = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _ref16 !== void 0 ? _ref16 : false;
|
|
167
151
|
_this.selectedContentConfig = new SelectedContentConfig(props === null || props === void 0 ? void 0 : props.selectedContentConfig);
|
|
168
|
-
|
|
169
|
-
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
152
|
+
_this.openMultistageFilling = (_ref17 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref17 !== void 0 ? _ref17 : false;
|
|
170
153
|
_this.multistageFilling = [];
|
|
171
154
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
172
155
|
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;
|
|
93
94
|
_this = _call_super(this, RadioProperty, [
|
|
94
95
|
props
|
|
95
96
|
]), _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);
|
|
96
|
-
|
|
97
|
-
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
97
|
+
_this.options = initOptions((_ref = props === null || props === void 0 ? void 0 : props.options) !== null && _ref !== void 0 ? _ref : [
|
|
98
98
|
{
|
|
99
99
|
label: getLocaleText('CMD.optionOne', null, '选项一'),
|
|
100
100
|
value: getLocaleText('CMD.optionOne', null, '选项一')
|
|
@@ -108,31 +108,19 @@ 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.
|
|
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';
|
|
111
|
+
_this.radioMode = (_ref1 = props === null || props === void 0 ? void 0 : props.radioMode) !== null && _ref1 !== void 0 ? _ref1 : 'horizontal';
|
|
112
|
+
_this.optionConfig = (_ref2 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref2 !== void 0 ? _ref2 : 'custom';
|
|
113
|
+
_this.otherOption = (_ref3 = props === null || props === void 0 ? void 0 : props.otherOption) !== null && _ref3 !== void 0 ? _ref3 : false;
|
|
114
|
+
_this.optionsOrder = (_ref4 = props === null || props === void 0 ? void 0 : props.optionsOrder) !== null && _ref4 !== void 0 ? _ref4 : false;
|
|
115
|
+
_this.defaultShowOptions = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref5 !== void 0 ? _ref5 : true;
|
|
116
|
+
_this.optionsFormat = (_ref6 = props === null || props === void 0 ? void 0 : props.optionsFormat) !== null && _ref6 !== void 0 ? _ref6 : 'horizontal';
|
|
123
117
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
124
|
-
|
|
125
|
-
_this.
|
|
126
|
-
|
|
127
|
-
_this.
|
|
128
|
-
|
|
129
|
-
_this.
|
|
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;
|
|
118
|
+
_this.interreaction = (_ref7 = props === null || props === void 0 ? void 0 : props.interreaction) !== null && _ref7 !== void 0 ? _ref7 : [];
|
|
119
|
+
_this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : RadioControl.controlName;
|
|
120
|
+
_this.defaultValue = (_ref9 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref9 !== void 0 ? _ref9 : '';
|
|
121
|
+
_this.openMultistageFilling = (_ref10 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref10 !== void 0 ? _ref10 : false;
|
|
122
|
+
_this.type = (_ref11 = props === null || props === void 0 ? void 0 : props.type) !== null && _ref11 !== void 0 ? _ref11 : 'default';
|
|
123
|
+
_this.isUseCustomColor = (_ref12 = props === null || props === void 0 ? void 0 : props.isUseCustomColor) !== null && _ref12 !== void 0 ? _ref12 : false;
|
|
136
124
|
_this.multistageFilling = [];
|
|
137
125
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
138
126
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -140,8 +128,7 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
140
128
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
141
129
|
});
|
|
142
130
|
}
|
|
143
|
-
|
|
144
|
-
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
131
|
+
_this.aiContentSearch = (_ref13 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref13 !== void 0 ? _ref13 : false;
|
|
145
132
|
return _this;
|
|
146
133
|
}
|
|
147
134
|
return RadioProperty;
|
|
@@ -201,6 +201,14 @@ _define_property(RichTextControl, "setting", [
|
|
|
201
201
|
key: 'min-length',
|
|
202
202
|
visible: true
|
|
203
203
|
},
|
|
204
|
+
{
|
|
205
|
+
key: 'height',
|
|
206
|
+
visible: true
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
key: 'toolbar-options',
|
|
210
|
+
visible: true
|
|
211
|
+
},
|
|
204
212
|
{
|
|
205
213
|
key: 'rich-text',
|
|
206
214
|
visible: true
|
|
@@ -135,25 +135,57 @@ 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;
|
|
138
139
|
_this = _call_super(this, RichTextProperty, [
|
|
139
140
|
props
|
|
140
|
-
]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "defaultValue", void 0), _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);
|
|
141
|
-
|
|
142
|
-
_this.
|
|
143
|
-
|
|
144
|
-
_this.
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
141
|
+
]), _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
|
+
_this.maxLength = (_ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _ref !== void 0 ? _ref : 50000;
|
|
143
|
+
_this.minLength = (_ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && _ref1 !== void 0 ? _ref1 : 0;
|
|
144
|
+
_this.height = (_ref2 = props === null || props === void 0 ? void 0 : props.height) !== null && _ref2 !== void 0 ? _ref2 : 400;
|
|
145
|
+
_this.toolbarOptions = (_ref3 = props === null || props === void 0 ? void 0 : props.toolbarOptions) !== null && _ref3 !== void 0 ? _ref3 : [
|
|
146
|
+
'undo',
|
|
147
|
+
'redo',
|
|
148
|
+
'|',
|
|
149
|
+
'forecolor',
|
|
150
|
+
'backcolor',
|
|
151
|
+
'bold',
|
|
152
|
+
'italic',
|
|
153
|
+
'underline',
|
|
154
|
+
'strikethrough',
|
|
155
|
+
'link',
|
|
156
|
+
'|',
|
|
157
|
+
'alignleft',
|
|
158
|
+
'aligncenter',
|
|
159
|
+
'alignright',
|
|
160
|
+
'alignjustify',
|
|
161
|
+
'outdent',
|
|
162
|
+
'indent',
|
|
163
|
+
'|',
|
|
164
|
+
'styles',
|
|
165
|
+
'fontfamily',
|
|
166
|
+
'fontsize',
|
|
167
|
+
'|',
|
|
168
|
+
'bullist',
|
|
169
|
+
'numlist',
|
|
170
|
+
'|',
|
|
171
|
+
'blockquote',
|
|
172
|
+
'subscript',
|
|
173
|
+
'superscript',
|
|
174
|
+
'removeformat',
|
|
175
|
+
'|',
|
|
176
|
+
'table',
|
|
177
|
+
'image',
|
|
178
|
+
'hr',
|
|
179
|
+
'preview',
|
|
180
|
+
'|',
|
|
181
|
+
'fullscreen'
|
|
182
|
+
];
|
|
183
|
+
_this.defaultValue = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref4 !== void 0 ? _ref4 : '';
|
|
184
|
+
_this.caption = (_ref5 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref5 !== void 0 ? _ref5 : RichTextControl.controlName;
|
|
185
|
+
_this.placeholder = (_ref6 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref6 !== void 0 ? _ref6 : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
186
|
+
_this.aiContentSearch = (_ref7 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
187
|
+
_this.aiGeneration = (_ref8 = props === null || props === void 0 ? void 0 : props.aiGeneration) !== null && _ref8 !== void 0 ? _ref8 : false;
|
|
188
|
+
_this.aiOptions = initAiOptions((_ref9 = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _ref9 !== void 0 ? _ref9 : [
|
|
157
189
|
{
|
|
158
190
|
label: getLocaleText('CMD.aiOptionOneLabel', null, '总结'),
|
|
159
191
|
cueWord: getLocaleText('CMD.aiOptionOneCurword', null, 'SUMM'),
|
|
@@ -170,10 +202,8 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
170
202
|
checked: false
|
|
171
203
|
}
|
|
172
204
|
]);
|
|
173
|
-
|
|
174
|
-
_this.
|
|
175
|
-
var _props_lineEllipsis;
|
|
176
|
-
_this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
|
|
205
|
+
_this.autoHeight = (_ref10 = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _ref10 !== void 0 ? _ref10 : false;
|
|
206
|
+
_this.lineEllipsis = (_ref11 = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _ref11 !== void 0 ? _ref11 : 1;
|
|
177
207
|
return _this;
|
|
178
208
|
}
|
|
179
209
|
return RichTextProperty;
|
|
@@ -141,32 +141,24 @@ 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;
|
|
144
145
|
var _props_explain;
|
|
145
146
|
_this = _call_super(this, ScoreProperty, [
|
|
146
147
|
props
|
|
147
148
|
]), _define_property(_this, "totalScore", void 0), _define_property(_this, "scoreType", void 0), _define_property(_this, "isShowExplain", void 0), _define_property(_this, "explain", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "canHalf", void 0), _define_property(_this, "explainColor", void 0), _define_property(_this, "isShowCurrentScore", void 0);
|
|
148
|
-
|
|
149
|
-
_this.
|
|
150
|
-
|
|
151
|
-
_this.
|
|
152
|
-
var _props_isShowExplain;
|
|
153
|
-
_this.isShowExplain = (_props_isShowExplain = props === null || props === void 0 ? void 0 : props.isShowExplain) !== null && _props_isShowExplain !== void 0 ? _props_isShowExplain : true;
|
|
154
|
-
var _props_explain_map;
|
|
155
|
-
_this.explain = (_props_explain_map = props === null || props === void 0 ? void 0 : (_props_explain = props.explain) === null || _props_explain === void 0 ? void 0 : _props_explain.map(function(item) {
|
|
149
|
+
_this.totalScore = (_ref = props === null || props === void 0 ? void 0 : props.totalScore) !== null && _ref !== void 0 ? _ref : 5;
|
|
150
|
+
_this.scoreType = (_ref1 = props === null || props === void 0 ? void 0 : props.scoreType) !== null && _ref1 !== void 0 ? _ref1 : SCORE_TYPE.STAR;
|
|
151
|
+
_this.isShowExplain = (_ref2 = props === null || props === void 0 ? void 0 : props.isShowExplain) !== null && _ref2 !== void 0 ? _ref2 : true;
|
|
152
|
+
_this.explain = (_ref3 = props === null || props === void 0 ? void 0 : (_props_explain = props.explain) === null || _props_explain === void 0 ? void 0 : _props_explain.map(function(item) {
|
|
156
153
|
return new Explain(item);
|
|
157
|
-
})) !== null &&
|
|
154
|
+
})) !== null && _ref3 !== void 0 ? _ref3 : Array(_this.totalScore).fill(undefined).map(function() {
|
|
158
155
|
return new Explain();
|
|
159
156
|
});
|
|
160
|
-
|
|
161
|
-
_this.
|
|
162
|
-
|
|
163
|
-
_this.
|
|
164
|
-
|
|
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 : '';
|
|
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;
|
|
157
|
+
_this.defaultValue = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref4 !== void 0 ? _ref4 : 0;
|
|
158
|
+
_this.caption = (_ref5 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref5 !== void 0 ? _ref5 : ScoreControl.controlName;
|
|
159
|
+
_this.canHalf = (_ref6 = props === null || props === void 0 ? void 0 : props.canHalf) !== null && _ref6 !== void 0 ? _ref6 : false;
|
|
160
|
+
_this.explainColor = (_ref7 = props === null || props === void 0 ? void 0 : props.explainColor) !== null && _ref7 !== void 0 ? _ref7 : '';
|
|
161
|
+
_this.isShowCurrentScore = (_ref8 = props === null || props === void 0 ? void 0 : props.isShowCurrentScore) !== null && _ref8 !== void 0 ? _ref8 : false;
|
|
170
162
|
return _this;
|
|
171
163
|
}
|
|
172
164
|
return ScoreProperty;
|
|
@@ -114,39 +114,28 @@ var SearchDateRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
114
114
|
function SearchDateRangeProperty(props) {
|
|
115
115
|
_class_call_check(this, SearchDateRangeProperty);
|
|
116
116
|
var _this;
|
|
117
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11;
|
|
117
118
|
var _props_limitDateList;
|
|
118
119
|
_this = _call_super(this, SearchDateRangeProperty, [
|
|
119
120
|
props
|
|
120
121
|
]), _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);
|
|
121
|
-
|
|
122
|
-
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [
|
|
122
|
+
_this.defaultValue = (_ref = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref !== void 0 ? _ref : [
|
|
123
123
|
'',
|
|
124
124
|
''
|
|
125
125
|
];
|
|
126
|
-
|
|
127
|
-
_this.
|
|
128
|
-
|
|
129
|
-
_this.
|
|
130
|
-
|
|
131
|
-
_this.
|
|
132
|
-
|
|
133
|
-
_this.
|
|
134
|
-
|
|
135
|
-
_this.
|
|
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) {
|
|
126
|
+
_this.dateType = (_ref1 = props === null || props === void 0 ? void 0 : props.dateType) !== null && _ref1 !== void 0 ? _ref1 : DateType.DATE;
|
|
127
|
+
_this.dateFormat = (_ref2 = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
128
|
+
_this.commonTimeSetting = (_ref3 = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && _ref3 !== void 0 ? _ref3 : [];
|
|
129
|
+
_this.setValueType = (_ref4 = props === null || props === void 0 ? void 0 : props.setValueType) !== null && _ref4 !== void 0 ? _ref4 : 'custom';
|
|
130
|
+
_this.rangeMin = (_ref5 = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref5 !== void 0 ? _ref5 : '';
|
|
131
|
+
_this.rangeMax = (_ref6 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref6 !== void 0 ? _ref6 : '';
|
|
132
|
+
_this.placeholderStart = (_ref7 = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _ref7 !== void 0 ? _ref7 : getLocaleText('CMD.startDate', null, '开始日期');
|
|
133
|
+
_this.placeholderEnd = (_ref8 = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _ref8 !== void 0 ? _ref8 : getLocaleText('CMD.endDate', null, '结束日期');
|
|
134
|
+
_this.caption = (_ref9 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref9 !== void 0 ? _ref9 : SearchDateRangeControl.controlName;
|
|
135
|
+
_this.limitDateList = (_ref10 = props === null || props === void 0 ? void 0 : (_props_limitDateList = props.limitDateList) === null || _props_limitDateList === void 0 ? void 0 : _props_limitDateList.map(function(item) {
|
|
146
136
|
return new LimitDate(item);
|
|
147
|
-
})) !== null &&
|
|
148
|
-
|
|
149
|
-
_this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
|
|
137
|
+
})) !== null && _ref10 !== void 0 ? _ref10 : [];
|
|
138
|
+
_this.isInternational = (_ref11 = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _ref11 !== void 0 ? _ref11 : false;
|
|
150
139
|
return _this;
|
|
151
140
|
}
|
|
152
141
|
return SearchDateRangeProperty;
|
|
@@ -113,24 +113,19 @@ var SearchNumberRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
113
113
|
function SearchNumberRangeProperty(props) {
|
|
114
114
|
_class_call_check(this, SearchNumberRangeProperty);
|
|
115
115
|
var _this;
|
|
116
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
116
117
|
_this = _call_super(this, SearchNumberRangeProperty, [
|
|
117
118
|
props
|
|
118
119
|
]), _define_property(_this, "rangeMin", void 0), _define_property(_this, "rangeMax", void 0), _define_property(_this, "placeholderStart", void 0), _define_property(_this, "placeholderEnd", void 0), _define_property(_this, "defaultValue", void 0);
|
|
119
|
-
|
|
120
|
-
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [
|
|
120
|
+
_this.defaultValue = (_ref = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref !== void 0 ? _ref : [
|
|
121
121
|
'',
|
|
122
122
|
''
|
|
123
123
|
];
|
|
124
|
-
|
|
125
|
-
_this.
|
|
126
|
-
|
|
127
|
-
_this.
|
|
128
|
-
|
|
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;
|
|
124
|
+
_this.rangeMin = (_ref1 = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
125
|
+
_this.rangeMax = (_ref2 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
126
|
+
_this.placeholderStart = (_ref3 = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _ref3 !== void 0 ? _ref3 : getLocaleText('CMD.min', null, '最小值');
|
|
127
|
+
_this.placeholderEnd = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _ref4 !== void 0 ? _ref4 : getLocaleText('CMD.max', null, '最大值');
|
|
128
|
+
_this.caption = (_ref5 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref5 !== void 0 ? _ref5 : SearchNumberRangeControl.controlName;
|
|
134
129
|
return _this;
|
|
135
130
|
}
|
|
136
131
|
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;
|
|
106
107
|
_this = _call_super(this, SelectProperty, [
|
|
107
108
|
props
|
|
108
109
|
]), _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
|
|
109
110
|
), _define_property(_this, "formBind", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "type", void 0), _define_property(_this, "isUseCustomColor", void 0);
|
|
110
|
-
|
|
111
|
-
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
111
|
+
_this.options = initOptions((_ref = props === null || props === void 0 ? void 0 : props.options) !== null && _ref !== void 0 ? _ref : [
|
|
112
112
|
{
|
|
113
113
|
label: getLocaleText('CMD.optionOne', null, '选项一'),
|
|
114
114
|
value: getLocaleText('CMD.optionOne', null, '选项一')
|
|
@@ -122,25 +122,16 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
122
122
|
value: getLocaleText('CMD.optionThird', null, '选项三')
|
|
123
123
|
}
|
|
124
124
|
]);
|
|
125
|
-
|
|
126
|
-
_this.
|
|
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';
|
|
125
|
+
_this.defaultShowOptions = (_ref1 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref1 !== void 0 ? _ref1 : true;
|
|
126
|
+
_this.optionConfig = (_ref2 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref2 !== void 0 ? _ref2 : 'custom';
|
|
129
127
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
130
|
-
|
|
131
|
-
_this.
|
|
132
|
-
|
|
133
|
-
_this.
|
|
134
|
-
|
|
135
|
-
_this.
|
|
136
|
-
|
|
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;
|
|
128
|
+
_this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : SelectControl.controlName;
|
|
129
|
+
_this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : getLocaleText('CMD.pleaseSelect', null, '请选择');
|
|
130
|
+
_this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : '';
|
|
131
|
+
_this.allowCopyOptions = (_ref6 = props === null || props === void 0 ? void 0 : props.allowCopyOptions) !== null && _ref6 !== void 0 ? _ref6 : false;
|
|
132
|
+
_this.openMultistageFilling = (_ref7 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
133
|
+
_this.type = (_ref8 = props === null || props === void 0 ? void 0 : props.type) !== null && _ref8 !== void 0 ? _ref8 : 'default';
|
|
134
|
+
_this.isUseCustomColor = (_ref9 = props === null || props === void 0 ? void 0 : props.isUseCustomColor) !== null && _ref9 !== void 0 ? _ref9 : false;
|
|
144
135
|
_this.multistageFilling = [];
|
|
145
136
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
146
137
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -148,13 +139,10 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
148
139
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
149
140
|
});
|
|
150
141
|
}
|
|
151
|
-
|
|
152
|
-
_this.
|
|
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';
|
|
142
|
+
_this.canViewForm = (_ref10 = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _ref10 !== void 0 ? _ref10 : false;
|
|
143
|
+
_this.viewFormModelType = (_ref11 = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _ref11 !== void 0 ? _ref11 : 'window';
|
|
155
144
|
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
156
|
-
|
|
157
|
-
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
145
|
+
_this.aiContentSearch = (_ref12 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref12 !== void 0 ? _ref12 : false;
|
|
158
146
|
return _this;
|
|
159
147
|
}
|
|
160
148
|
return SelectProperty;
|