@byteluck-fe/model-driven-controls 7.0.0-beta.5 → 7.0.0-beta.6
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/BarChart/designer.js +11 -11
- package/dist/esm/baseControls/BarChart/property.js +73 -22
- package/dist/esm/baseControls/BatchDeleteButton/property.js +23 -15
- package/dist/esm/baseControls/BatchPrintListButton/property.js +14 -11
- package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +9 -8
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +12 -7
- package/dist/esm/baseControls/Button/property.js +27 -17
- package/dist/esm/baseControls/Comment/property.js +7 -7
- package/dist/esm/baseControls/CreateFormListButton/property.js +13 -10
- package/dist/esm/baseControls/Dashboard/property.js +21 -14
- package/dist/esm/baseControls/Divider/property.js +17 -12
- package/dist/esm/baseControls/ExportListButton/property.js +14 -11
- package/dist/esm/baseControls/ExportRecordListButton/property.js +9 -8
- package/dist/esm/baseControls/FormSelectButton/property.js +11 -9
- package/dist/esm/baseControls/Iframe/designer.js +4 -4
- package/dist/esm/baseControls/Iframe/property.js +10 -7
- package/dist/esm/baseControls/ImportRecordListButton/property.js +14 -11
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +24 -16
- package/dist/esm/baseControls/LineChart/designer.js +7 -7
- package/dist/esm/baseControls/LineChart/property.js +73 -22
- package/dist/esm/baseControls/Link/property.js +17 -12
- package/dist/esm/baseControls/ListSelectButton/property.js +15 -11
- package/dist/esm/baseControls/ListViewSelect/property.js +10 -9
- package/dist/esm/baseControls/OperationButton/property.js +17 -12
- package/dist/esm/baseControls/Pagination/property.js +5 -5
- package/dist/esm/baseControls/PieChart/designer.js +10 -10
- package/dist/esm/baseControls/PieChart/property.js +80 -20
- package/dist/esm/baseControls/ReferenceList/property.js +17 -12
- package/dist/esm/baseControls/SubmissionRecordListButton/property.js +9 -8
- package/dist/esm/baseControls/Text/designer.js +1 -1
- package/dist/esm/baseControls/Text/property.js +23 -15
- package/dist/esm/baseControls/TextOcrButton/property.js +24 -16
- package/dist/esm/baseControls/Title/property.js +6 -4
- package/dist/esm/baseControls/utils.js +1 -1
- package/dist/esm/columnControls/ApprovalStatusColumn/property.js +11 -9
- package/dist/esm/columnControls/ArrayColumn/property.js +13 -10
- package/dist/esm/columnControls/AutoNumberColumn/property.js +9 -8
- package/dist/esm/columnControls/CustomColumn/designer.js +0 -1
- package/dist/esm/columnControls/CustomColumn/property.js +11 -9
- package/dist/esm/columnControls/DecimalColumn/property.js +19 -13
- package/dist/esm/columnControls/DepartmentColumn/property.js +9 -8
- package/dist/esm/columnControls/EmployeeColumn/property.js +9 -8
- package/dist/esm/columnControls/FileColumn/property.js +9 -8
- package/dist/esm/columnControls/GroupColumn/property.js +7 -7
- package/dist/esm/columnControls/ImageColumn/property.js +7 -7
- package/dist/esm/columnControls/LocationColumn/property.js +9 -8
- package/dist/esm/columnControls/OperationColumn/designer.js +12 -16
- package/dist/esm/columnControls/OperationColumn/property.js +15 -11
- package/dist/esm/columnControls/OrderColumn/property.js +17 -12
- package/dist/esm/columnControls/PeopleColumn/property.js +7 -7
- package/dist/esm/columnControls/TextColumn/property.js +13 -10
- package/dist/esm/columnControls/TimescopeColumn/property.js +13 -10
- package/dist/esm/columnControls/TimestampColumn/property.js +13 -10
- package/dist/esm/columnControls/VarcharColumn/property.js +17 -12
- package/dist/esm/formControls/Address/property.js +17 -12
- package/dist/esm/formControls/Amount/property.js +29 -18
- package/dist/esm/formControls/Attachment/property.js +39 -23
- package/dist/esm/formControls/AutoNumber/property.js +11 -9
- package/dist/esm/formControls/Barcode/designer.js +41 -21
- package/dist/esm/formControls/Barcode/property.js +21 -13
- package/dist/esm/formControls/Barcode/schema.json +19 -8
- 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 +31 -17
- package/dist/esm/formControls/Counter/property.js +18 -10
- package/dist/esm/formControls/DatePicker/property.js +32 -20
- package/dist/esm/formControls/DateRange/property.js +28 -18
- package/dist/esm/formControls/Department/property.js +27 -17
- package/dist/esm/formControls/Department2/property.js +40 -24
- package/dist/esm/formControls/ElectronicSignature/property.js +17 -12
- package/dist/esm/formControls/Employee/property.js +23 -15
- package/dist/esm/formControls/Employee2/property.js +38 -22
- package/dist/esm/formControls/Image/designer.js +8 -8
- package/dist/esm/formControls/Image/property.js +17 -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 +41 -24
- package/dist/esm/formControls/QrCode/designer.js +47 -27
- package/dist/esm/formControls/QrCode/property.js +24 -17
- package/dist/esm/formControls/QrCode/schema.json +20 -9
- package/dist/esm/formControls/Radio/property.js +33 -20
- package/dist/esm/formControls/RichText/designer.js +1 -1
- package/dist/esm/formControls/RichText/property.js +22 -12
- package/dist/esm/formControls/Score/property.js +17 -10
- package/dist/esm/formControls/SearchDateRange/property.js +30 -19
- package/dist/esm/formControls/SearchInput/property.js +5 -5
- package/dist/esm/formControls/SearchNumberRange/property.js +17 -12
- package/dist/esm/formControls/Select/property.js +29 -18
- package/dist/esm/formControls/SelectMultiple/property.js +27 -17
- package/dist/esm/formControls/SelectRelation/property.js +31 -19
- package/dist/esm/formControls/Slider/designer.js +2 -1
- package/dist/esm/formControls/Slider/property.js +22 -17
- package/dist/esm/formControls/Switch/designer.js +15 -14
- package/dist/esm/formControls/Switch/property.js +19 -10
- package/dist/esm/formControls/Tag/designer.js +14 -13
- package/dist/esm/formControls/Tag/property.js +23 -15
- package/dist/esm/formControls/Textarea/property.js +20 -11
- package/dist/esm/formControls/TimePicker/property.js +20 -14
- package/dist/esm/formControls/TimeRange/property.js +24 -16
- package/dist/esm/formControls/Tree/property.js +39 -21
- package/dist/esm/formControls/VueFormItem/property.js +15 -11
- package/dist/esm/formControls/VuePage/property.js +15 -11
- package/dist/esm/formControls/WPS/designer.js +9 -9
- package/dist/esm/formControls/WPS/property.js +29 -18
- package/dist/esm/framework.js +135 -81
- package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
- package/dist/esm/layoutControls/ActionBar/property.js +11 -9
- package/dist/esm/layoutControls/ActionBar/runtime.js +2 -2
- package/dist/esm/layoutControls/AdvancedContainer/property.js +5 -5
- package/dist/esm/layoutControls/BlankContainer/designer.js +8 -7
- package/dist/esm/layoutControls/BlankContainer/property.js +15 -12
- package/dist/esm/layoutControls/CardGroup/property.js +20 -11
- package/dist/esm/layoutControls/Col/property.js +11 -9
- package/dist/esm/layoutControls/Collapse/designer.js +2 -2
- package/dist/esm/layoutControls/Collapse/property.js +9 -8
- package/dist/esm/layoutControls/CollapsePane/property.js +7 -7
- package/dist/esm/layoutControls/DataView/property.js +19 -13
- package/dist/esm/layoutControls/Grid/property.js +5 -5
- package/dist/esm/layoutControls/GridLayoutContainer/property.js +9 -8
- package/dist/esm/layoutControls/GridRow/property.js +5 -5
- package/dist/esm/layoutControls/GridTableColumn/property.js +25 -16
- package/dist/esm/layoutControls/ListView/property.js +28 -15
- package/dist/esm/layoutControls/Page/property.js +7 -7
- package/dist/esm/layoutControls/Position/property.js +13 -10
- package/dist/esm/layoutControls/PositioningContainer/property.js +5 -5
- package/dist/esm/layoutControls/Row/property.js +15 -11
- package/dist/esm/layoutControls/Step/designer.js +2 -2
- package/dist/esm/layoutControls/Step/property.js +27 -17
- package/dist/esm/layoutControls/StepPane/property.js +21 -14
- package/dist/esm/layoutControls/SubTableColumn/property.js +10 -6
- package/dist/esm/layoutControls/SubTableRow/property.js +5 -5
- package/dist/esm/layoutControls/Tab/designer.js +2 -2
- package/dist/esm/layoutControls/Tab/property.js +15 -11
- package/dist/esm/layoutControls/TabPane/property.js +7 -7
- package/dist/esm/layoutControls/TableLayout/property.js +35 -21
- package/dist/esm/layoutControls/TableLayoutCol/property.js +25 -16
- package/dist/esm/layoutControls/TableLayoutRow/property.js +9 -8
- package/dist/esm/layoutControls/TableLayoutWrapper/property.js +11 -9
- package/dist/esm/layoutControls/Toolbox/property.js +5 -5
- package/dist/esm/listControls/GridTable/designer.js +12 -17
- package/dist/esm/listControls/GridTable/property.js +15 -11
- package/dist/esm/listControls/SubTable/property.js +70 -36
- package/dist/esm/searchControls/SimpleSearch/property.js +29 -18
- 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 +7 -7
- package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +8 -8
- package/dist/index.umd.js +1 -1
- package/dist/types/formControls/Barcode/property.d.ts +5 -10
- package/dist/types/formControls/QrCode/property.d.ts +5 -10
- package/dist/types/layoutControls/BlankContainer/property.d.ts +1 -1
- package/package.json +2 -2
|
@@ -159,27 +159,42 @@ var NumberProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
159
159
|
function NumberProperty(props) {
|
|
160
160
|
_class_call_check(this, NumberProperty);
|
|
161
161
|
var _this;
|
|
162
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15;
|
|
163
162
|
_this = _call_super(this, NumberProperty, [
|
|
164
163
|
props
|
|
165
164
|
]), _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);
|
|
166
|
-
|
|
167
|
-
_this.
|
|
168
|
-
|
|
169
|
-
_this.
|
|
170
|
-
|
|
171
|
-
_this.
|
|
172
|
-
|
|
173
|
-
_this.
|
|
174
|
-
|
|
175
|
-
_this.
|
|
176
|
-
|
|
177
|
-
_this.
|
|
178
|
-
|
|
165
|
+
var _props_rangeMin;
|
|
166
|
+
_this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
|
|
167
|
+
var _props_rangeMax;
|
|
168
|
+
_this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
|
|
169
|
+
var _props_numberType;
|
|
170
|
+
_this.numberType = (_props_numberType = props === null || props === void 0 ? void 0 : props.numberType) !== null && _props_numberType !== void 0 ? _props_numberType : 'number';
|
|
171
|
+
var _props_percentageFormat;
|
|
172
|
+
_this.percentageFormat = (_props_percentageFormat = props === null || props === void 0 ? void 0 : props.percentageFormat) !== null && _props_percentageFormat !== void 0 ? _props_percentageFormat : false;
|
|
173
|
+
var _props_micrometer;
|
|
174
|
+
_this.micrometer = (_props_micrometer = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _props_micrometer !== void 0 ? _props_micrometer : false;
|
|
175
|
+
var _props_precision;
|
|
176
|
+
_this.precision = (_props_precision = props === null || props === void 0 ? void 0 : props.precision) !== null && _props_precision !== void 0 ? _props_precision : 0;
|
|
177
|
+
var _props_showUpperCase;
|
|
178
|
+
_this.showUpperCase = (_props_showUpperCase = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _props_showUpperCase !== void 0 ? _props_showUpperCase : false;
|
|
179
|
+
var _props_isShowUnit;
|
|
180
|
+
_this.isShowUnit = (_props_isShowUnit = props === null || props === void 0 ? void 0 : props.isShowUnit) !== null && _props_isShowUnit !== void 0 ? _props_isShowUnit : false;
|
|
181
|
+
var _props_unitPosition;
|
|
182
|
+
_this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : 'right';
|
|
183
|
+
var _props_unit;
|
|
184
|
+
_this.unit = (_props_unit = props === null || props === void 0 ? void 0 : props.unit) !== null && _props_unit !== void 0 ? _props_unit : '';
|
|
185
|
+
var _props_caption;
|
|
186
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : NumberControl.controlName;
|
|
187
|
+
var _props_placeholder;
|
|
188
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
189
|
+
var _props_defaultValue;
|
|
190
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
179
191
|
_this.regularRules = new RegularRules(props === null || props === void 0 ? void 0 : props.regularRules);
|
|
180
|
-
|
|
181
|
-
_this.
|
|
182
|
-
|
|
192
|
+
var _props_isShowControlButton;
|
|
193
|
+
_this.isShowControlButton = (_props_isShowControlButton = props === null || props === void 0 ? void 0 : props.isShowControlButton) !== null && _props_isShowControlButton !== void 0 ? _props_isShowControlButton : false;
|
|
194
|
+
var _props_controlButtonPosition;
|
|
195
|
+
_this.controlButtonPosition = (_props_controlButtonPosition = props === null || props === void 0 ? void 0 : props.controlButtonPosition) !== null && _props_controlButtonPosition !== void 0 ? _props_controlButtonPosition : 'between';
|
|
196
|
+
var _props_step;
|
|
197
|
+
_this.step = (_props_step = props === null || props === void 0 ? void 0 : props.step) !== null && _props_step !== void 0 ? _props_step : 1;
|
|
183
198
|
return _this;
|
|
184
199
|
}
|
|
185
200
|
return NumberProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_organization_selection
|
|
3
|
+
* description: 组织选择组件,用于选择组织单元并展示已选明细。适合组织归属、业务协同等场景,支持组织视图、数据源绑定、列表页联动、多级填充和已选内容配置。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
2
5
|
if (self === void 0) {
|
|
3
6
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
7
|
}
|
|
@@ -70,10 +73,7 @@ function _is_native_reflect_construct() {
|
|
|
70
73
|
return !!result;
|
|
71
74
|
})();
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
* name: rok_organization_selection
|
|
75
|
-
* description: 组织选择组件,用于选择组织单元并展示已选明细。适合组织归属、业务协同等场景,支持组织视图、数据源绑定、列表页联动、多级填充和已选内容配置。
|
|
76
|
-
*/ import OrganizationSelectionControl from './designer';
|
|
76
|
+
import OrganizationSelectionControl from './designer';
|
|
77
77
|
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, initSuperDataSourceRules, MultistageFillingItem, SelectedContentConfig, OrganizationDataSourceBind, ListBind } from '@byteluck-fe/model-driven-core';
|
|
78
78
|
import { DepartmentType, AssignType } from '../../framework';
|
|
79
79
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
@@ -127,32 +127,49 @@ var OrganizationSelectionProperty = /*#__PURE__*/ function(BaseControlProperty)
|
|
|
127
127
|
function OrganizationSelectionProperty(props) {
|
|
128
128
|
_class_call_check(this, OrganizationSelectionProperty);
|
|
129
129
|
var _this;
|
|
130
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17;
|
|
131
130
|
_this = _call_super(this, OrganizationSelectionProperty, [
|
|
132
131
|
props
|
|
133
132
|
]), _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);
|
|
134
|
-
|
|
135
|
-
_this.
|
|
136
|
-
|
|
133
|
+
var _props_showType;
|
|
134
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'default';
|
|
135
|
+
var _props_multiple;
|
|
136
|
+
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
137
|
+
var _props_range;
|
|
138
|
+
_this.range = (_props_range = props === null || props === void 0 ? void 0 : props.range) !== null && _props_range !== void 0 ? _props_range : 'all';
|
|
137
139
|
_this.listPageBind = new ListBind(props === null || props === void 0 ? void 0 : props.listPageBind);
|
|
138
|
-
|
|
139
|
-
_this.
|
|
140
|
-
|
|
141
|
-
_this.
|
|
142
|
-
|
|
143
|
-
_this.
|
|
144
|
-
|
|
145
|
-
_this.
|
|
140
|
+
var _props_defaultValueType;
|
|
141
|
+
_this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : 'none';
|
|
142
|
+
var _props_rangeOptions;
|
|
143
|
+
_this.rangeOptions = (_props_rangeOptions = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _props_rangeOptions !== void 0 ? _props_rangeOptions : [];
|
|
144
|
+
var _props_defaultValue;
|
|
145
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
146
|
+
var _props_displayLevel;
|
|
147
|
+
_this.displayLevel = (_props_displayLevel = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _props_displayLevel !== void 0 ? _props_displayLevel : 1;
|
|
148
|
+
var _props_showSubDept;
|
|
149
|
+
_this.showSubDept = (_props_showSubDept = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _props_showSubDept !== void 0 ? _props_showSubDept : true;
|
|
150
|
+
var _props_caption;
|
|
151
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : OrganizationSelectionControl.controlName;
|
|
152
|
+
var _props_placeholder;
|
|
153
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelectOrg', null, '请选择组织');
|
|
154
|
+
var _props_datasourceBind;
|
|
155
|
+
_this.datasourceBind = new OrganizationDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
146
156
|
attributes: OrganizationSelectionControl.controlCustomAttributes
|
|
147
157
|
});
|
|
148
|
-
|
|
149
|
-
_this.
|
|
150
|
-
|
|
151
|
-
_this.
|
|
152
|
-
|
|
153
|
-
_this.
|
|
158
|
+
var _props_datasourceType;
|
|
159
|
+
_this.datasourceType = (_props_datasourceType = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _props_datasourceType !== void 0 ? _props_datasourceType : DepartmentType.INTERNAL;
|
|
160
|
+
var _props_businessScope;
|
|
161
|
+
_this.businessScope = (_props_businessScope = props === null || props === void 0 ? void 0 : props.businessScope) !== null && _props_businessScope !== void 0 ? _props_businessScope : [];
|
|
162
|
+
var _props_businessType;
|
|
163
|
+
_this.businessType = (_props_businessType = props === null || props === void 0 ? void 0 : props.businessType) !== null && _props_businessType !== void 0 ? _props_businessType : AssignType.ALL;
|
|
164
|
+
var _props_organizingFunction;
|
|
165
|
+
_this.organizingFunction = (_props_organizingFunction = props === null || props === void 0 ? void 0 : props.organizingFunction) !== null && _props_organizingFunction !== void 0 ? _props_organizingFunction : undefined;
|
|
166
|
+
var _props_organizationView;
|
|
167
|
+
_this.organizationView = (_props_organizationView = props === null || props === void 0 ? void 0 : props.organizationView) !== null && _props_organizationView !== void 0 ? _props_organizationView : undefined;
|
|
168
|
+
var _props_showSelectedDetail;
|
|
169
|
+
_this.showSelectedDetail = (_props_showSelectedDetail = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _props_showSelectedDetail !== void 0 ? _props_showSelectedDetail : false;
|
|
154
170
|
_this.selectedContentConfig = new SelectedContentConfig(props === null || props === void 0 ? void 0 : props.selectedContentConfig);
|
|
155
|
-
|
|
171
|
+
var _props_openMultistageFilling;
|
|
172
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
156
173
|
_this.multistageFilling = [];
|
|
157
174
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
158
175
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -84,6 +84,7 @@ function _is_native_reflect_construct() {
|
|
|
84
84
|
return !!result;
|
|
85
85
|
})();
|
|
86
86
|
}
|
|
87
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
87
88
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
88
89
|
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
89
90
|
import QrCodeProperty from './property';
|
|
@@ -103,7 +104,7 @@ var QrCodeControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
103
104
|
{
|
|
104
105
|
key: "controlName",
|
|
105
106
|
get: function get() {
|
|
106
|
-
return '
|
|
107
|
+
return getLocaleText('CMD.034d1777541747382');
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
{
|
|
@@ -173,18 +174,18 @@ _define_property(QrCodeControl, "setting", [
|
|
|
173
174
|
{
|
|
174
175
|
key: 'common-group',
|
|
175
176
|
visible: true,
|
|
176
|
-
label: '
|
|
177
|
+
label: getLocaleText('CMD.48ab1777541706716'),
|
|
177
178
|
children: [
|
|
178
179
|
{
|
|
179
180
|
key: 'common-select',
|
|
180
181
|
visible: true,
|
|
181
182
|
name: 'qrVersion',
|
|
182
|
-
label: '
|
|
183
|
+
label: getLocaleText('CMD.9f5f1777541682089'),
|
|
183
184
|
default: 'auto',
|
|
184
185
|
options: [
|
|
185
186
|
{
|
|
186
187
|
value: 'auto',
|
|
187
|
-
label: '
|
|
188
|
+
label: getLocaleText('CMD.43211777541760099')
|
|
188
189
|
},
|
|
189
190
|
{
|
|
190
191
|
value: '1',
|
|
@@ -352,24 +353,24 @@ _define_property(QrCodeControl, "setting", [
|
|
|
352
353
|
key: 'common-select',
|
|
353
354
|
visible: true,
|
|
354
355
|
name: 'errorCorrectionLevel',
|
|
355
|
-
label: '
|
|
356
|
+
label: getLocaleText('CMD.a9b81777541718919'),
|
|
356
357
|
default: 'M',
|
|
357
358
|
options: [
|
|
358
359
|
{
|
|
359
360
|
value: 'L',
|
|
360
|
-
label: '
|
|
361
|
+
label: getLocaleText('CMD.3e9b1777541634899')
|
|
361
362
|
},
|
|
362
363
|
{
|
|
363
364
|
value: 'M',
|
|
364
|
-
label: '
|
|
365
|
+
label: getLocaleText('CMD.bc7a1777541617060')
|
|
365
366
|
},
|
|
366
367
|
{
|
|
367
368
|
value: 'Q',
|
|
368
|
-
label: '
|
|
369
|
+
label: getLocaleText('CMD.3ce71777541620174')
|
|
369
370
|
},
|
|
370
371
|
{
|
|
371
372
|
value: 'H',
|
|
372
|
-
label: '
|
|
373
|
+
label: getLocaleText('CMD.b5841777541605769')
|
|
373
374
|
}
|
|
374
375
|
]
|
|
375
376
|
},
|
|
@@ -377,7 +378,7 @@ _define_property(QrCodeControl, "setting", [
|
|
|
377
378
|
key: 'common-select',
|
|
378
379
|
visible: true,
|
|
379
380
|
name: 'codeMode',
|
|
380
|
-
label: '
|
|
381
|
+
label: getLocaleText('CMD.ae891777541761573'),
|
|
381
382
|
default: 'qrCode',
|
|
382
383
|
options: [
|
|
383
384
|
{
|
|
@@ -391,54 +392,73 @@ _define_property(QrCodeControl, "setting", [
|
|
|
391
392
|
visible: true,
|
|
392
393
|
name: 'size',
|
|
393
394
|
layout: 'horizontal',
|
|
394
|
-
label: '
|
|
395
|
+
label: getLocaleText('CMD.dd381777541646923')
|
|
395
396
|
},
|
|
396
397
|
{
|
|
397
398
|
key: 'common-input-number',
|
|
398
399
|
visible: true,
|
|
399
400
|
name: 'codeMargin',
|
|
400
401
|
layout: 'horizontal',
|
|
401
|
-
label: '
|
|
402
|
+
label: getLocaleText('CMD.71a11777541645070')
|
|
402
403
|
}
|
|
403
404
|
]
|
|
404
405
|
},
|
|
405
406
|
{
|
|
406
407
|
key: 'common-group',
|
|
407
408
|
visible: true,
|
|
408
|
-
label: '
|
|
409
|
+
label: getLocaleText('CMD.523e1777541710452'),
|
|
409
410
|
children: [
|
|
410
411
|
{
|
|
411
|
-
key: '
|
|
412
|
-
visible: true,
|
|
413
|
-
name: 'backgroundColor',
|
|
414
|
-
layout: 'horizontal',
|
|
415
|
-
label: '背景色'
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
key: 'color',
|
|
412
|
+
key: 'common-select',
|
|
419
413
|
visible: true,
|
|
420
414
|
name: 'qrColor',
|
|
421
|
-
|
|
422
|
-
|
|
415
|
+
label: getLocaleText('CMD.41081777541683947'),
|
|
416
|
+
default: '#000000',
|
|
417
|
+
options: [
|
|
418
|
+
{
|
|
419
|
+
value: '#000000',
|
|
420
|
+
label: getLocaleText('CMD.a5211777541756178')
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
value: '#001F3F',
|
|
424
|
+
label: getLocaleText('CMD.18241777541714577')
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
value: '#004225',
|
|
428
|
+
label: getLocaleText('CMD.cb4e1777541716843')
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
value: '#4A0404',
|
|
432
|
+
label: getLocaleText('CMD.e0d51777541738692')
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
value: '#2F2F2F',
|
|
436
|
+
label: getLocaleText('CMD.98df1777541740192')
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
value: '#1A237E',
|
|
440
|
+
label: getLocaleText('CMD.9e1f1777541741805')
|
|
441
|
+
}
|
|
442
|
+
]
|
|
423
443
|
},
|
|
424
444
|
{
|
|
425
445
|
key: 'common-button-radio',
|
|
426
446
|
visible: true,
|
|
427
447
|
name: 'align',
|
|
428
|
-
label: '
|
|
448
|
+
label: getLocaleText('CMD.d82e1777541757479'),
|
|
429
449
|
default: 'left',
|
|
430
450
|
options: [
|
|
431
451
|
{
|
|
432
452
|
value: 'left',
|
|
433
|
-
label: '
|
|
453
|
+
label: getLocaleText('CMD.2e381777541743100')
|
|
434
454
|
},
|
|
435
455
|
{
|
|
436
456
|
value: 'center',
|
|
437
|
-
label: '
|
|
457
|
+
label: getLocaleText('CMD.262c1777541758748')
|
|
438
458
|
},
|
|
439
459
|
{
|
|
440
460
|
value: 'right',
|
|
441
|
-
label: '
|
|
461
|
+
label: getLocaleText('CMD.c4ee1777541744538')
|
|
442
462
|
}
|
|
443
463
|
]
|
|
444
464
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_qr_code
|
|
3
|
+
* description: 二维码组件,用于展示或绑定二维码内容。支持尺寸、边距、码点颜色与对齐方式配置,适合链接、单据追溯等场景。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
2
5
|
if (self === void 0) {
|
|
3
6
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
7
|
}
|
|
@@ -70,10 +73,7 @@ function _is_native_reflect_construct() {
|
|
|
70
73
|
return !!result;
|
|
71
74
|
})();
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
* name: rok_qr_code
|
|
75
|
-
* description: 二维码组件,用于展示或绑定二维码内容。支持尺寸、边距、前景/背景色与对齐方式配置,适合链接、单据追溯等场景。
|
|
76
|
-
*/ import QrCodeControl from './designer';
|
|
76
|
+
import QrCodeControl from './designer';
|
|
77
77
|
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
78
78
|
var QrCodePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
79
79
|
"use strict";
|
|
@@ -108,20 +108,27 @@ var QrCodeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
108
108
|
function QrCodeProperty(props) {
|
|
109
109
|
_class_call_check(this, QrCodeProperty);
|
|
110
110
|
var _this;
|
|
111
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
|
|
112
111
|
_this = _call_super(this, QrCodeProperty, [
|
|
113
112
|
props
|
|
114
|
-
]), _define_property(_this, "defaultValue", void 0), _define_property(_this, "qrVersion", void 0), _define_property(_this, "errorCorrectionLevel", void 0), _define_property(_this, "codeMode", void 0), _define_property(_this, "size", void 0), _define_property(_this, "codeMargin", void 0), _define_property(_this, "
|
|
115
|
-
|
|
116
|
-
_this.
|
|
117
|
-
|
|
118
|
-
_this.
|
|
119
|
-
|
|
120
|
-
_this.
|
|
121
|
-
|
|
122
|
-
_this.
|
|
123
|
-
|
|
124
|
-
_this.
|
|
113
|
+
]), _define_property(_this, "defaultValue", void 0), _define_property(_this, "qrVersion", void 0), _define_property(_this, "errorCorrectionLevel", void 0), _define_property(_this, "codeMode", void 0), _define_property(_this, "size", void 0), _define_property(_this, "codeMargin", void 0), _define_property(_this, "qrColor", void 0), _define_property(_this, "align", void 0);
|
|
114
|
+
var _props_caption;
|
|
115
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : QrCodeControl.controlName;
|
|
116
|
+
var _props_defaultValue;
|
|
117
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
118
|
+
var _props_qrVersion;
|
|
119
|
+
_this.qrVersion = (_props_qrVersion = props === null || props === void 0 ? void 0 : props.qrVersion) !== null && _props_qrVersion !== void 0 ? _props_qrVersion : 'auto';
|
|
120
|
+
var _props_errorCorrectionLevel;
|
|
121
|
+
_this.errorCorrectionLevel = (_props_errorCorrectionLevel = props === null || props === void 0 ? void 0 : props.errorCorrectionLevel) !== null && _props_errorCorrectionLevel !== void 0 ? _props_errorCorrectionLevel : 'M';
|
|
122
|
+
var _props_codeMode;
|
|
123
|
+
_this.codeMode = (_props_codeMode = props === null || props === void 0 ? void 0 : props.codeMode) !== null && _props_codeMode !== void 0 ? _props_codeMode : 'qrCode';
|
|
124
|
+
var _props_size;
|
|
125
|
+
_this.size = (_props_size = props === null || props === void 0 ? void 0 : props.size) !== null && _props_size !== void 0 ? _props_size : 160;
|
|
126
|
+
var _props_codeMargin;
|
|
127
|
+
_this.codeMargin = (_props_codeMargin = props === null || props === void 0 ? void 0 : props.codeMargin) !== null && _props_codeMargin !== void 0 ? _props_codeMargin : 0;
|
|
128
|
+
var _props_qrColor;
|
|
129
|
+
_this.qrColor = (_props_qrColor = props === null || props === void 0 ? void 0 : props.qrColor) !== null && _props_qrColor !== void 0 ? _props_qrColor : '#000000';
|
|
130
|
+
var _props_align;
|
|
131
|
+
_this.align = (_props_align = props === null || props === void 0 ? void 0 : props.align) !== null && _props_align !== void 0 ? _props_align : 'left';
|
|
125
132
|
return _this;
|
|
126
133
|
}
|
|
127
134
|
return QrCodeProperty;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rok_qr_code",
|
|
3
|
-
"description": "
|
|
3
|
+
"description": "二维码组件,用于展示或绑定二维码内容。支持尺寸、边距、码点颜色与对齐方式配置,适合链接、单据追溯等场景。",
|
|
4
4
|
"parameters": {
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -287,15 +287,26 @@
|
|
|
287
287
|
"description": "边距;单位 px",
|
|
288
288
|
"default": 0
|
|
289
289
|
},
|
|
290
|
-
"
|
|
290
|
+
"qrColor": {
|
|
291
291
|
"type": "string",
|
|
292
|
-
"
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
292
|
+
"enum": [
|
|
293
|
+
"#000000",
|
|
294
|
+
"#001F3F",
|
|
295
|
+
"#004225",
|
|
296
|
+
"#4A0404",
|
|
297
|
+
"#2F2F2F",
|
|
298
|
+
"#1A237E"
|
|
299
|
+
],
|
|
300
|
+
"description": "二维码颜色;",
|
|
301
|
+
"default": "#000000",
|
|
302
|
+
"enumDescription": [
|
|
303
|
+
"纯黑",
|
|
304
|
+
"深海军蓝",
|
|
305
|
+
"深森林绿",
|
|
306
|
+
"深酒红",
|
|
307
|
+
"深炭灰",
|
|
308
|
+
"深靛青"
|
|
309
|
+
]
|
|
299
310
|
},
|
|
300
311
|
"align": {
|
|
301
312
|
"type": "string",
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_radio
|
|
3
|
+
* description: 单选框组件,用于在多个互斥选项中选择一个值。适合是否判断、分类选择等场景,支持横竖排布局、其他选项、数据源配置、按钮样式和 AI 内容搜索。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
2
5
|
if (self === void 0) {
|
|
3
6
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
7
|
}
|
|
@@ -70,10 +73,7 @@ function _is_native_reflect_construct() {
|
|
|
70
73
|
return !!result;
|
|
71
74
|
})();
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
* name: rok_radio
|
|
75
|
-
* description: 单选框组件,用于在多个互斥选项中选择一个值。适合是否判断、分类选择等场景,支持横竖排布局、其他选项、数据源配置、按钮样式和 AI 内容搜索。
|
|
76
|
-
*/ import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
77
77
|
import RadioControl from './designer';
|
|
78
78
|
import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions } from '@byteluck-fe/model-driven-core';
|
|
79
79
|
var RadioControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules) {
|
|
@@ -93,11 +93,11 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
93
93
|
function RadioProperty(props) {
|
|
94
94
|
_class_call_check(this, RadioProperty);
|
|
95
95
|
var _this;
|
|
96
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13;
|
|
97
96
|
_this = _call_super(this, RadioProperty, [
|
|
98
97
|
props
|
|
99
98
|
]), _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);
|
|
100
|
-
|
|
99
|
+
var _props_options;
|
|
100
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
101
101
|
{
|
|
102
102
|
label: getLocaleText('CMD.optionOne', null, '选项一'),
|
|
103
103
|
value: getLocaleText('CMD.optionOne', null, '选项一')
|
|
@@ -111,19 +111,31 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
111
111
|
value: getLocaleText('CMD.optionThird', null, '选项三')
|
|
112
112
|
}
|
|
113
113
|
]);
|
|
114
|
-
|
|
115
|
-
_this.
|
|
116
|
-
|
|
117
|
-
_this.
|
|
118
|
-
|
|
119
|
-
_this.
|
|
114
|
+
var _props_radioMode;
|
|
115
|
+
_this.radioMode = (_props_radioMode = props === null || props === void 0 ? void 0 : props.radioMode) !== null && _props_radioMode !== void 0 ? _props_radioMode : 'horizontal';
|
|
116
|
+
var _props_optionConfig;
|
|
117
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'custom';
|
|
118
|
+
var _props_otherOption;
|
|
119
|
+
_this.otherOption = (_props_otherOption = props === null || props === void 0 ? void 0 : props.otherOption) !== null && _props_otherOption !== void 0 ? _props_otherOption : false;
|
|
120
|
+
var _props_optionsOrder;
|
|
121
|
+
_this.optionsOrder = (_props_optionsOrder = props === null || props === void 0 ? void 0 : props.optionsOrder) !== null && _props_optionsOrder !== void 0 ? _props_optionsOrder : false;
|
|
122
|
+
var _props_defaultShowOptions;
|
|
123
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
|
|
124
|
+
var _props_optionsFormat;
|
|
125
|
+
_this.optionsFormat = (_props_optionsFormat = props === null || props === void 0 ? void 0 : props.optionsFormat) !== null && _props_optionsFormat !== void 0 ? _props_optionsFormat : 'horizontal';
|
|
120
126
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
121
|
-
|
|
122
|
-
_this.
|
|
123
|
-
|
|
124
|
-
_this.
|
|
125
|
-
|
|
126
|
-
_this.
|
|
127
|
+
var _props_interreaction;
|
|
128
|
+
_this.interreaction = (_props_interreaction = props === null || props === void 0 ? void 0 : props.interreaction) !== null && _props_interreaction !== void 0 ? _props_interreaction : [];
|
|
129
|
+
var _props_caption;
|
|
130
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : RadioControl.controlName;
|
|
131
|
+
var _props_defaultValue;
|
|
132
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
133
|
+
var _props_openMultistageFilling;
|
|
134
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
135
|
+
var _props_type;
|
|
136
|
+
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'default';
|
|
137
|
+
var _props_isUseCustomColor;
|
|
138
|
+
_this.isUseCustomColor = (_props_isUseCustomColor = props === null || props === void 0 ? void 0 : props.isUseCustomColor) !== null && _props_isUseCustomColor !== void 0 ? _props_isUseCustomColor : false;
|
|
127
139
|
_this.multistageFilling = [];
|
|
128
140
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
129
141
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -131,7 +143,8 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
131
143
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
132
144
|
});
|
|
133
145
|
}
|
|
134
|
-
|
|
146
|
+
var _props_aiContentSearch;
|
|
147
|
+
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
135
148
|
return _this;
|
|
136
149
|
}
|
|
137
150
|
return RadioProperty;
|
|
@@ -138,14 +138,17 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
138
138
|
function RichTextProperty(props) {
|
|
139
139
|
_class_call_check(this, RichTextProperty);
|
|
140
140
|
var _this;
|
|
141
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10;
|
|
142
141
|
_this = _call_super(this, RichTextProperty, [
|
|
143
142
|
props
|
|
144
143
|
]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "height", void 0), // public toolbarOptions: Array<string>
|
|
145
144
|
_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);
|
|
146
|
-
|
|
147
|
-
_this.
|
|
148
|
-
|
|
145
|
+
var _props_maxLength;
|
|
146
|
+
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
|
|
147
|
+
var _props_minLength;
|
|
148
|
+
_this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : 0;
|
|
149
|
+
var _props_height;
|
|
150
|
+
_this.height = (_props_height = props === null || props === void 0 ? void 0 : props.height) !== null && _props_height !== void 0 ? _props_height : 300;
|
|
151
|
+
var _props_defaultValue;
|
|
149
152
|
// this.toolbarOptions = props?.toolbarOptions ?? [
|
|
150
153
|
// 'undo', 'redo', '|',
|
|
151
154
|
// 'forecolor', 'backcolor', 'bold', 'italic', 'underline', 'strikethrough', 'link', '|',
|
|
@@ -156,12 +159,17 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
156
159
|
// 'table', 'image', 'hr', 'preview', '|',
|
|
157
160
|
// 'fullscreen'
|
|
158
161
|
// ]
|
|
159
|
-
_this.defaultValue = (
|
|
160
|
-
|
|
161
|
-
_this.
|
|
162
|
-
|
|
163
|
-
_this.
|
|
164
|
-
|
|
162
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
163
|
+
var _props_caption;
|
|
164
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : RichTextControl.controlName;
|
|
165
|
+
var _props_placeholder;
|
|
166
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
167
|
+
var _props_aiContentSearch;
|
|
168
|
+
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
169
|
+
var _props_aiGeneration;
|
|
170
|
+
_this.aiGeneration = (_props_aiGeneration = props === null || props === void 0 ? void 0 : props.aiGeneration) !== null && _props_aiGeneration !== void 0 ? _props_aiGeneration : false;
|
|
171
|
+
var _props_aiOptions;
|
|
172
|
+
_this.aiOptions = initAiOptions((_props_aiOptions = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _props_aiOptions !== void 0 ? _props_aiOptions : [
|
|
165
173
|
{
|
|
166
174
|
label: getLocaleText('CMD.aiOptionOneLabel', null, '总结'),
|
|
167
175
|
cueWord: getLocaleText('CMD.aiOptionOneCurword', null, 'SUMM'),
|
|
@@ -178,8 +186,10 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
178
186
|
checked: false
|
|
179
187
|
}
|
|
180
188
|
]);
|
|
181
|
-
|
|
182
|
-
_this.
|
|
189
|
+
var _props_autoHeight;
|
|
190
|
+
_this.autoHeight = (_props_autoHeight = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _props_autoHeight !== void 0 ? _props_autoHeight : false;
|
|
191
|
+
var _props_lineEllipsis;
|
|
192
|
+
_this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
|
|
183
193
|
return _this;
|
|
184
194
|
}
|
|
185
195
|
return RichTextProperty;
|