@byteluck-fe/model-driven-controls 2.23.0-beta.9 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/baseControls/BatchDeleteButton/designer.js +2 -2
- package/dist/esm/baseControls/BatchPrintListButton/designer.js +2 -2
- package/dist/esm/baseControls/BatchPrintListButton/property.js +2 -2
- package/dist/esm/baseControls/BatchPrintRecordListButton/designer.js +2 -2
- package/dist/esm/baseControls/BatchSubmissionListButton/designer.js +2 -2
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +3 -3
- package/dist/esm/baseControls/Button/designer.js +3 -2
- package/dist/esm/baseControls/Button/property.js +2 -2
- package/dist/esm/baseControls/CreateFormListButton/designer.js +2 -2
- package/dist/esm/baseControls/CreateFormListButton/property.js +2 -2
- package/dist/esm/baseControls/Dashboard/designer.js +2 -2
- package/dist/esm/baseControls/Dashboard/property.js +4 -4
- package/dist/esm/baseControls/Divider/designer.js +2 -2
- package/dist/esm/baseControls/ExportListButton/designer.js +2 -2
- package/dist/esm/baseControls/ExportListButton/property.js +2 -2
- package/dist/esm/baseControls/ExportRecordListButton/designer.js +2 -2
- package/dist/esm/baseControls/FormSelectButton/designer.js +2 -2
- package/dist/esm/baseControls/FormSelectButton/property.js +4 -4
- package/dist/esm/baseControls/ImportRecordListButton/designer.js +2 -2
- package/dist/esm/baseControls/InvoiceCheckButton/designer.js +2 -2
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +4 -4
- package/dist/esm/baseControls/Link/designer.js +2 -2
- package/dist/esm/baseControls/Link/property.js +2 -2
- package/dist/esm/baseControls/ListSelectButton/designer.js +2 -2
- package/dist/esm/baseControls/ListSelectButton/property.js +4 -4
- package/dist/esm/baseControls/ListViewSelect/designer.js +2 -2
- package/dist/esm/baseControls/ListViewSelect/property.js +3 -3
- package/dist/esm/baseControls/OperationButton/designer.js +2 -2
- package/dist/esm/baseControls/OperationButton/property.js +3 -3
- package/dist/esm/baseControls/Pagination/designer.js +2 -2
- package/dist/esm/baseControls/ReferenceList/designer.js +158 -0
- package/dist/esm/baseControls/ReferenceList/index.js +11 -0
- package/dist/esm/baseControls/ReferenceList/property.js +139 -0
- package/dist/esm/baseControls/ReferenceList/runtime.js +112 -0
- package/dist/esm/baseControls/ReferenceList/types.js +0 -0
- package/dist/esm/baseControls/SubmissionRecordListButton/designer.js +2 -2
- package/dist/esm/baseControls/Text/designer.js +6 -2
- package/dist/esm/baseControls/Text/property.js +9 -3
- package/dist/esm/baseControls/TextOcrButton/designer.js +2 -2
- package/dist/esm/baseControls/TextOcrButton/property.js +5 -5
- package/dist/esm/baseControls/Title/designer.js +2 -2
- package/dist/esm/baseControls/Title/property.js +6 -6
- package/dist/esm/baseControls/index.js +1 -0
- package/dist/esm/baseControls/utils.js +4 -4
- package/dist/esm/columnControls/ApprovalStatusColumn/designer.js +6 -2
- package/dist/esm/columnControls/ArrayColumn/designer.js +7 -2
- package/dist/esm/columnControls/AutoNumberColumn/designer.js +7 -2
- package/dist/esm/columnControls/CustomColumn/designer.js +7 -2
- package/dist/esm/columnControls/CustomColumn/property.js +2 -2
- package/dist/esm/columnControls/DecimalColumn/designer.js +7 -2
- package/dist/esm/columnControls/DecimalColumn/property.js +4 -4
- package/dist/esm/columnControls/DepartmentColumn/designer.js +7 -2
- package/dist/esm/columnControls/EmployeeColumn/designer.js +7 -2
- package/dist/esm/columnControls/FileColumn/designer.js +12 -9
- package/dist/esm/columnControls/FileColumn/property.js +21 -1
- package/dist/esm/columnControls/ImageColumn/designer.js +7 -2
- package/dist/esm/columnControls/LocationColumn/designer.js +7 -2
- package/dist/esm/columnControls/OperationColumn/designer.js +6 -2
- package/dist/esm/columnControls/OperationColumn/property.js +3 -3
- package/dist/esm/columnControls/OrderColumn/designer.js +6 -2
- package/dist/esm/columnControls/PeopleColumn/designer.js +7 -2
- package/dist/esm/columnControls/TextColumn/designer.js +7 -2
- package/dist/esm/columnControls/TimescopeColumn/designer.js +7 -2
- package/dist/esm/columnControls/TimestampColumn/designer.js +7 -2
- package/dist/esm/columnControls/VarcharColumn/designer.js +8 -2
- package/dist/esm/formControls/Address/designer.js +3 -2
- package/dist/esm/formControls/Address/property.js +5 -5
- package/dist/esm/formControls/Amount/designer.js +3 -2
- package/dist/esm/formControls/Amount/property.js +8 -8
- package/dist/esm/formControls/Attachment/designer.js +11 -2
- package/dist/esm/formControls/Attachment/property.js +24 -14
- package/dist/esm/formControls/AutoNumber/designer.js +3 -2
- package/dist/esm/formControls/AutoNumber/property.js +2 -2
- package/dist/esm/formControls/Calc/designer.js +3 -2
- package/dist/esm/formControls/Calc/property.js +5 -5
- package/dist/esm/formControls/Checkbox/designer.js +7 -2
- package/dist/esm/formControls/Checkbox/property.js +15 -9
- package/dist/esm/formControls/DatePicker/designer.js +3 -2
- package/dist/esm/formControls/DatePicker/property.js +3 -2
- package/dist/esm/formControls/DateRange/designer.js +3 -2
- package/dist/esm/formControls/DateRange/property.js +4 -3
- package/dist/esm/formControls/Department/designer.js +3 -2
- package/dist/esm/formControls/Department/property.js +2 -2
- package/dist/esm/formControls/Department2/designer.js +3 -2
- package/dist/esm/formControls/Department2/property.js +4 -4
- package/dist/esm/formControls/ElectronicSignature/designer.js +3 -2
- package/dist/esm/formControls/ElectronicSignature/property.js +9 -8
- package/dist/esm/formControls/Employee/designer.js +3 -2
- package/dist/esm/formControls/Employee/property.js +2 -2
- package/dist/esm/formControls/Employee2/designer.js +5 -3
- package/dist/esm/formControls/Employee2/property.js +7 -4
- package/dist/esm/formControls/Image/designer.js +14 -9
- package/dist/esm/formControls/Image/runtime.js +3 -3
- package/dist/esm/formControls/Input/designer.js +7 -2
- package/dist/esm/formControls/Input/property.js +43 -37
- package/dist/esm/formControls/Number/designer.js +3 -2
- package/dist/esm/formControls/Number/property.js +8 -8
- package/dist/esm/formControls/OrganizationSelection/designer.js +3 -2
- package/dist/esm/formControls/OrganizationSelection/property.js +4 -4
- package/dist/esm/formControls/Radio/designer.js +7 -2
- package/dist/esm/formControls/Radio/property.js +14 -7
- package/dist/esm/formControls/RichText/designer.js +11 -2
- package/dist/esm/formControls/RichText/property.js +45 -11
- package/dist/esm/formControls/Score/designer.js +3 -2
- package/dist/esm/formControls/Score/property.js +8 -8
- package/dist/esm/formControls/SearchDateRange/designer.js +3 -2
- package/dist/esm/formControls/SearchDateRange/property.js +4 -3
- package/dist/esm/formControls/SearchInput/designer.js +2 -2
- package/dist/esm/formControls/SearchNumberRange/designer.js +3 -2
- package/dist/esm/formControls/SearchNumberRange/property.js +5 -5
- package/dist/esm/formControls/Select/designer.js +7 -2
- package/dist/esm/formControls/Select/property.js +28 -22
- package/dist/esm/formControls/SelectMultiple/designer.js +7 -2
- package/dist/esm/formControls/SelectMultiple/property.js +28 -22
- package/dist/esm/formControls/SelectRelation/designer.js +7 -2
- package/dist/esm/formControls/SelectRelation/property.js +54 -48
- package/dist/esm/formControls/Textarea/designer.js +11 -2
- package/dist/esm/formControls/Textarea/property.js +76 -30
- package/dist/esm/formControls/Tree/designer.js +3 -2
- package/dist/esm/formControls/Tree/property.js +5 -5
- package/dist/esm/formControls/VueFormItem/designer.js +3 -2
- package/dist/esm/formControls/VuePage/designer.js +3 -2
- package/dist/esm/formControls/WPS/designer.js +3 -2
- package/dist/esm/formControls/WPS/property.js +6 -6
- package/dist/esm/framework.js +40 -2
- package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
- package/dist/esm/layoutControls/AdvancedContainer/designer.js +2 -2
- package/dist/esm/layoutControls/CardGroup/designer.js +3 -2
- package/dist/esm/layoutControls/CardGroup/property.js +3 -3
- package/dist/esm/layoutControls/Col/designer.js +3 -2
- package/dist/esm/layoutControls/DataView/designer.js +2 -2
- package/dist/esm/layoutControls/DataView/property.js +5 -5
- package/dist/esm/layoutControls/Grid/designer.js +3 -2
- package/dist/esm/layoutControls/GridLayoutContainer/designer.js +3 -2
- package/dist/esm/layoutControls/GridRow/designer.js +3 -2
- package/dist/esm/layoutControls/ListView/designer.js +3 -2
- package/dist/esm/layoutControls/ListView/property.js +10 -10
- package/dist/esm/layoutControls/Page/designer.js +2 -2
- package/dist/esm/layoutControls/Position/designer.js +2 -2
- package/dist/esm/layoutControls/PositioningContainer/designer.js +2 -2
- package/dist/esm/layoutControls/Row/designer.js +3 -2
- package/dist/esm/layoutControls/SubTableColumn/designer.js +3 -2
- package/dist/esm/layoutControls/SubTableColumn/property.js +4 -4
- package/dist/esm/layoutControls/SubTableRow/designer.js +3 -2
- package/dist/esm/layoutControls/Tab/designer.js +3 -2
- package/dist/esm/layoutControls/TabPane/designer.js +4 -4
- package/dist/esm/layoutControls/TabPane/property.js +2 -2
- package/dist/esm/layoutControls/Toolbox/designer.js +3 -2
- package/dist/esm/listControls/GridTable/designer.js +3 -2
- package/dist/esm/listControls/SubTable/designer.js +2 -2
- package/dist/esm/listControls/SubTable/property.js +15 -15
- package/dist/esm/searchControls/SimpleSearch/property.js +3 -3
- package/dist/esm/wrapControls/GridLayoutWrap/Setting.js +3 -3
- package/dist/esm/wrapControls/GridLayoutWrap/designer.js +2 -2
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/ReferenceList/designer.d.ts +14 -0
- package/dist/types/baseControls/ReferenceList/index.d.ts +12 -0
- package/dist/types/baseControls/ReferenceList/property.d.ts +22 -0
- package/dist/types/baseControls/ReferenceList/runtime.d.ts +9 -0
- package/dist/types/baseControls/ReferenceList/types.d.ts +0 -0
- package/dist/types/baseControls/Text/property.d.ts +6 -0
- package/dist/types/baseControls/index.d.ts +1 -0
- package/dist/types/columnControls/DecimalColumn/property.d.ts +2 -2
- package/dist/types/columnControls/FileColumn/property.d.ts +1 -0
- package/dist/types/formControls/Attachment/property.d.ts +2 -0
- package/dist/types/formControls/Checkbox/property.d.ts +6 -0
- package/dist/types/formControls/Employee2/property.d.ts +1 -0
- package/dist/types/formControls/Input/property.d.ts +6 -0
- package/dist/types/formControls/Radio/property.d.ts +6 -0
- package/dist/types/formControls/RichText/property.d.ts +19 -1
- package/dist/types/formControls/Select/property.d.ts +6 -0
- package/dist/types/formControls/SelectMultiple/property.d.ts +6 -0
- package/dist/types/formControls/SelectRelation/property.d.ts +6 -0
- package/dist/types/formControls/Textarea/property.d.ts +19 -1
- package/dist/types/framework.d.ts +17 -1
- package/dist/types/type.d.ts +2 -1
- package/package.json +5 -5
|
@@ -72,7 +72,7 @@ function _is_native_reflect_construct() {
|
|
|
72
72
|
}
|
|
73
73
|
import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions, FormBind } from '@byteluck-fe/model-driven-core';
|
|
74
74
|
import SelectControl from './designer';
|
|
75
|
-
import {
|
|
75
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
76
|
var SelectControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules) {
|
|
77
77
|
"use strict";
|
|
78
78
|
_inherits(SelectControlPropertyRules, OptionAndDataSourcePropertyRules);
|
|
@@ -86,7 +86,7 @@ var SelectControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePrope
|
|
|
86
86
|
fields: {
|
|
87
87
|
formKey: {
|
|
88
88
|
type: 'string',
|
|
89
|
-
message:
|
|
89
|
+
message: getLocaleText('CMD.pleaseEnterForm', null, '请绑定表单')
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
});
|
|
@@ -108,33 +108,37 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
108
108
|
]), _define_property(_this, "options", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "optionConfig", void 0 // 选项配置 custom datasource
|
|
109
109
|
), _define_property(_this, "defaultValue", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "allowCopyOptions", void 0 //允许复制选项
|
|
110
110
|
), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
|
|
111
|
-
), /**
|
|
112
|
-
* 表单打开方式
|
|
113
|
-
* @defaultValue []
|
|
114
|
-
* @public
|
|
115
|
-
*/ _define_property(_this, "viewFormModelType", void 0), /**
|
|
116
|
-
* 查看详情
|
|
117
|
-
* @defaultValue false
|
|
118
|
-
* @public
|
|
111
|
+
), /**
|
|
112
|
+
* 表单打开方式
|
|
113
|
+
* @defaultValue []
|
|
114
|
+
* @public
|
|
115
|
+
*/ _define_property(_this, "viewFormModelType", void 0), /**
|
|
116
|
+
* 查看详情
|
|
117
|
+
* @defaultValue false
|
|
118
|
+
* @public
|
|
119
119
|
*/ _define_property(_this, "canViewForm", void 0 //https://www.tapd.cn/49877295/prong/stories/view/1149877295001003559
|
|
120
|
-
), /**
|
|
121
|
-
* 选择表单
|
|
122
|
-
* @defaultValue 空
|
|
123
|
-
* @public
|
|
124
|
-
*/ _define_property(_this, "formBind", void 0)
|
|
120
|
+
), /**
|
|
121
|
+
* 选择表单
|
|
122
|
+
* @defaultValue 空
|
|
123
|
+
* @public
|
|
124
|
+
*/ _define_property(_this, "formBind", void 0), /**
|
|
125
|
+
* ai 显示内容搜索 false | true
|
|
126
|
+
* @defaultValue false
|
|
127
|
+
* @public
|
|
128
|
+
*/ _define_property(_this, "aiContentSearch", void 0);
|
|
125
129
|
var _props_options;
|
|
126
130
|
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
127
131
|
{
|
|
128
|
-
label: '选项一',
|
|
129
|
-
value: '选项一'
|
|
132
|
+
label: getLocaleText('CMD.optionOne', null, '选项一'),
|
|
133
|
+
value: getLocaleText('CMD.optionOne', null, '选项一')
|
|
130
134
|
},
|
|
131
135
|
{
|
|
132
|
-
label: '选项二',
|
|
133
|
-
value: '选项二'
|
|
136
|
+
label: getLocaleText('CMD.optionTwo', null, '选项二'),
|
|
137
|
+
value: getLocaleText('CMD.optionTwo', null, '选项二')
|
|
134
138
|
},
|
|
135
139
|
{
|
|
136
|
-
label: '选项三',
|
|
137
|
-
value: '选项三'
|
|
140
|
+
label: getLocaleText('CMD.optionThird', null, '选项三'),
|
|
141
|
+
value: getLocaleText('CMD.optionThird', null, '选项三')
|
|
138
142
|
}
|
|
139
143
|
]);
|
|
140
144
|
var _props_defaultShowOptions;
|
|
@@ -145,7 +149,7 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
145
149
|
var _props_caption;
|
|
146
150
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectControl.controlName;
|
|
147
151
|
var _props_placeholder;
|
|
148
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder :
|
|
152
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
|
|
149
153
|
var _props_defaultValue;
|
|
150
154
|
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
151
155
|
var _props_allowCopyOptions;
|
|
@@ -164,6 +168,8 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
164
168
|
var _props_viewFormModelType;
|
|
165
169
|
_this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : 'window';
|
|
166
170
|
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
171
|
+
var _props_aiContentSearch;
|
|
172
|
+
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
167
173
|
return _this;
|
|
168
174
|
}
|
|
169
175
|
return SelectProperty;
|
|
@@ -85,8 +85,9 @@ function _is_native_reflect_construct() {
|
|
|
85
85
|
})();
|
|
86
86
|
}
|
|
87
87
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
88
|
-
import { FieldTypes
|
|
88
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
89
89
|
import SelectMultipleProperty from './property';
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
91
|
var SelectMultipleControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
91
92
|
"use strict";
|
|
92
93
|
_inherits(SelectMultipleControl, DesignerFormControl);
|
|
@@ -103,7 +104,7 @@ var SelectMultipleControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
103
104
|
{
|
|
104
105
|
key: "controlName",
|
|
105
106
|
get: function get() {
|
|
106
|
-
return
|
|
107
|
+
return getLocaleText('CMD.selectMultiple', null, '下拉多选');
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
{
|
|
@@ -162,6 +163,10 @@ _define_property(SelectMultipleControl, "setting", [
|
|
|
162
163
|
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
163
164
|
]
|
|
164
165
|
},
|
|
166
|
+
{
|
|
167
|
+
key: 'ai-content-search',
|
|
168
|
+
visible: true
|
|
169
|
+
},
|
|
165
170
|
{
|
|
166
171
|
key: 'options-setting',
|
|
167
172
|
visible: true,
|
|
@@ -72,7 +72,7 @@ function _is_native_reflect_construct() {
|
|
|
72
72
|
}
|
|
73
73
|
import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions, FormBind } from '@byteluck-fe/model-driven-core';
|
|
74
74
|
import SelectMultipleControl from './designer';
|
|
75
|
-
import {
|
|
75
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
76
|
var SelectMultipleControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules) {
|
|
77
77
|
"use strict";
|
|
78
78
|
_inherits(SelectMultipleControlPropertyRules, OptionAndDataSourcePropertyRules);
|
|
@@ -86,7 +86,7 @@ var SelectMultipleControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
86
86
|
fields: {
|
|
87
87
|
formKey: {
|
|
88
88
|
type: 'string',
|
|
89
|
-
message:
|
|
89
|
+
message: getLocaleText('CMD.pleaseEnterForm', null, '请绑定表单')
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
});
|
|
@@ -123,33 +123,37 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
123
123
|
props
|
|
124
124
|
]), _define_property(_this, "options", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "optionConfig", void 0 // 选项配置 custom datasource
|
|
125
125
|
), _define_property(_this, "defaultValue", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
|
|
126
|
-
), /**
|
|
127
|
-
* 表单打开方式
|
|
128
|
-
* @defaultValue []
|
|
129
|
-
* @public
|
|
130
|
-
*/ _define_property(_this, "viewFormModelType", void 0), /**
|
|
131
|
-
* 查看详情
|
|
132
|
-
* @defaultValue false
|
|
133
|
-
* @public
|
|
126
|
+
), /**
|
|
127
|
+
* 表单打开方式
|
|
128
|
+
* @defaultValue []
|
|
129
|
+
* @public
|
|
130
|
+
*/ _define_property(_this, "viewFormModelType", void 0), /**
|
|
131
|
+
* 查看详情
|
|
132
|
+
* @defaultValue false
|
|
133
|
+
* @public
|
|
134
134
|
*/ _define_property(_this, "canViewForm", void 0 //https://www.tapd.cn/49877295/prong/stories/view/1149877295001003559
|
|
135
|
-
), /**
|
|
136
|
-
* 选择表单
|
|
137
|
-
* @defaultValue 空
|
|
138
|
-
* @public
|
|
139
|
-
*/ _define_property(_this, "formBind", void 0)
|
|
135
|
+
), /**
|
|
136
|
+
* 选择表单
|
|
137
|
+
* @defaultValue 空
|
|
138
|
+
* @public
|
|
139
|
+
*/ _define_property(_this, "formBind", void 0), /**
|
|
140
|
+
* ai 显示内容搜索 false | true
|
|
141
|
+
* @defaultValue false
|
|
142
|
+
* @public
|
|
143
|
+
*/ _define_property(_this, "aiContentSearch", void 0);
|
|
140
144
|
var _props_options;
|
|
141
145
|
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
142
146
|
{
|
|
143
|
-
label: '选项一',
|
|
144
|
-
value: '选项一'
|
|
147
|
+
label: getLocaleText('CMD.optionOne', null, '选项一'),
|
|
148
|
+
value: getLocaleText('CMD.optionOne', null, '选项一')
|
|
145
149
|
},
|
|
146
150
|
{
|
|
147
|
-
label: '选项二',
|
|
148
|
-
value: '选项二'
|
|
151
|
+
label: getLocaleText('CMD.optionTwo', null, '选项二'),
|
|
152
|
+
value: getLocaleText('CMD.optionTwo', null, '选项二')
|
|
149
153
|
},
|
|
150
154
|
{
|
|
151
|
-
label: '选项三',
|
|
152
|
-
value: '选项三'
|
|
155
|
+
label: getLocaleText('CMD.optionThird', null, '选项三'),
|
|
156
|
+
value: getLocaleText('CMD.optionThird', null, '选项三')
|
|
153
157
|
}
|
|
154
158
|
]);
|
|
155
159
|
var _props_defaultShowOptions;
|
|
@@ -160,7 +164,7 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
160
164
|
var _props_caption;
|
|
161
165
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectMultipleControl.controlName;
|
|
162
166
|
var _props_placeholder;
|
|
163
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder :
|
|
167
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
|
|
164
168
|
var _props_defaultValue;
|
|
165
169
|
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
166
170
|
var _props_openMultistageFilling;
|
|
@@ -177,6 +181,8 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
177
181
|
var _props_viewFormModelType;
|
|
178
182
|
_this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : 'window';
|
|
179
183
|
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
184
|
+
var _props_aiContentSearch;
|
|
185
|
+
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
180
186
|
return _this;
|
|
181
187
|
}
|
|
182
188
|
return SelectMultipleProperty;
|
|
@@ -108,8 +108,9 @@ function _is_native_reflect_construct() {
|
|
|
108
108
|
})();
|
|
109
109
|
}
|
|
110
110
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
111
|
-
import { FieldTypes
|
|
111
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
112
112
|
import SelectRelationProperty from './property';
|
|
113
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
113
114
|
var SelectRelationControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
114
115
|
"use strict";
|
|
115
116
|
_inherits(SelectRelationControl, DesignerFormControl);
|
|
@@ -138,7 +139,7 @@ var SelectRelationControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
138
139
|
{
|
|
139
140
|
key: "controlName",
|
|
140
141
|
get: function get() {
|
|
141
|
-
return
|
|
142
|
+
return getLocaleText('CMD.selectRelation', null, '关联单选');
|
|
142
143
|
}
|
|
143
144
|
},
|
|
144
145
|
{
|
|
@@ -196,6 +197,10 @@ _define_property(SelectRelationControl, "setting", [
|
|
|
196
197
|
COMMON_SETTING_TYPE.CAN_SEARCH
|
|
197
198
|
]
|
|
198
199
|
},
|
|
200
|
+
{
|
|
201
|
+
key: 'ai-content-search',
|
|
202
|
+
visible: true
|
|
203
|
+
},
|
|
199
204
|
{
|
|
200
205
|
key: 'relation-setting',
|
|
201
206
|
visible: true,
|
|
@@ -72,7 +72,7 @@ function _is_native_reflect_construct() {
|
|
|
72
72
|
}
|
|
73
73
|
import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, SelectedContentConfig, initOptions, ListBind, FormBind } from '@byteluck-fe/model-driven-core';
|
|
74
74
|
import SelectRelationControl from './designer';
|
|
75
|
-
import {
|
|
75
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
76
|
var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules) {
|
|
77
77
|
"use strict";
|
|
78
78
|
_inherits(SelectRelationControlPropertyRules, OptionAndDataSourcePropertyRules);
|
|
@@ -84,7 +84,7 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
84
84
|
]), _define_property(_this, "listPageBind", [
|
|
85
85
|
{
|
|
86
86
|
type: 'object',
|
|
87
|
-
message:
|
|
87
|
+
message: getLocaleText('CMD.isNotObject', null, '请输入一个对象')
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
type: 'object',
|
|
@@ -93,12 +93,12 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
93
93
|
formKey: [
|
|
94
94
|
{
|
|
95
95
|
type: 'string',
|
|
96
|
-
message:
|
|
96
|
+
message: getLocaleText('CMD.isNotString', null, '请输入一个字符串')
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
type: 'string',
|
|
100
100
|
required: true,
|
|
101
|
-
message:
|
|
101
|
+
message: getLocaleText('CMD.pleaseEnterList', null, '请绑定列表')
|
|
102
102
|
}
|
|
103
103
|
]
|
|
104
104
|
}
|
|
@@ -108,7 +108,7 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
108
108
|
fields: {
|
|
109
109
|
formKey: {
|
|
110
110
|
type: 'string',
|
|
111
|
-
message:
|
|
111
|
+
message: getLocaleText('CMD.pleaseEnterForm', null, '请绑定表单')
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
});
|
|
@@ -120,9 +120,9 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
120
120
|
}
|
|
121
121
|
return SelectRelationControlPropertyRules;
|
|
122
122
|
}(OptionAndDataSourcePropertyRules);
|
|
123
|
-
/**
|
|
124
|
-
* SelectRelation 关联单选
|
|
125
|
-
* @public
|
|
123
|
+
/**
|
|
124
|
+
* SelectRelation 关联单选
|
|
125
|
+
* @public
|
|
126
126
|
*/ var SelectRelationProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
127
127
|
"use strict";
|
|
128
128
|
_inherits(SelectRelationProperty, BaseControlProperty);
|
|
@@ -131,50 +131,54 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
131
131
|
var _this;
|
|
132
132
|
_this = _call_super(this, SelectRelationProperty, [
|
|
133
133
|
props
|
|
134
|
-
]), /**
|
|
135
|
-
* 自定义选项
|
|
136
|
-
* @defaultValue []
|
|
137
|
-
* @public
|
|
138
|
-
*/ _define_property(_this, "options", void 0), /**
|
|
139
|
-
* 选项配置
|
|
140
|
-
* @defaultValue 'datasource'
|
|
141
|
-
* @public
|
|
134
|
+
]), /**
|
|
135
|
+
* 自定义选项
|
|
136
|
+
* @defaultValue []
|
|
137
|
+
* @public
|
|
138
|
+
*/ _define_property(_this, "options", void 0), /**
|
|
139
|
+
* 选项配置
|
|
140
|
+
* @defaultValue 'datasource'
|
|
141
|
+
* @public
|
|
142
142
|
* */ _define_property(_this, "optionConfig", void 0 // 选项配置 custom datasource
|
|
143
|
-
), /**
|
|
144
|
-
* 默认值
|
|
145
|
-
* @defaultValue ''
|
|
146
|
-
* @public
|
|
147
|
-
*/ _define_property(_this, "defaultValue", void 0), /**
|
|
148
|
-
* 绑定列表页
|
|
149
|
-
* @public
|
|
150
|
-
*/ _define_property(_this, "listPageBind", void 0), /**
|
|
151
|
-
* 关联数据源
|
|
152
|
-
* @public
|
|
153
|
-
*/ _define_property(_this, "datasourceBind", void 0), /**
|
|
154
|
-
* 数据填充
|
|
155
|
-
* @defaultValue []
|
|
156
|
-
* @public
|
|
157
|
-
*/ _define_property(_this, "multistageFilling", void 0), /**
|
|
158
|
-
* 表单打开方式
|
|
159
|
-
* @defaultValue []
|
|
160
|
-
* @public
|
|
161
|
-
*/ _define_property(_this, "viewFormModelType", void 0), /**
|
|
162
|
-
* 查看详情
|
|
163
|
-
* @defaultValue false
|
|
164
|
-
* @public
|
|
143
|
+
), /**
|
|
144
|
+
* 默认值
|
|
145
|
+
* @defaultValue ''
|
|
146
|
+
* @public
|
|
147
|
+
*/ _define_property(_this, "defaultValue", void 0), /**
|
|
148
|
+
* 绑定列表页
|
|
149
|
+
* @public
|
|
150
|
+
*/ _define_property(_this, "listPageBind", void 0), /**
|
|
151
|
+
* 关联数据源
|
|
152
|
+
* @public
|
|
153
|
+
*/ _define_property(_this, "datasourceBind", void 0), /**
|
|
154
|
+
* 数据填充
|
|
155
|
+
* @defaultValue []
|
|
156
|
+
* @public
|
|
157
|
+
*/ _define_property(_this, "multistageFilling", void 0), /**
|
|
158
|
+
* 表单打开方式
|
|
159
|
+
* @defaultValue []
|
|
160
|
+
* @public
|
|
161
|
+
*/ _define_property(_this, "viewFormModelType", void 0), /**
|
|
162
|
+
* 查看详情
|
|
163
|
+
* @defaultValue false
|
|
164
|
+
* @public
|
|
165
165
|
*/ _define_property(_this, "canViewForm", void 0 //https://www.tapd.cn/49877295/prong/stories/view/1149877295001003559
|
|
166
|
-
), /**
|
|
167
|
-
* 选择表单
|
|
168
|
-
* @defaultValue 空
|
|
169
|
-
* @public
|
|
170
|
-
*/ _define_property(_this, "formBind", void 0), /**
|
|
171
|
-
* 数据填充-查看/编辑页面生效
|
|
172
|
-
* @defaultValue false
|
|
173
|
-
* @public
|
|
166
|
+
), /**
|
|
167
|
+
* 选择表单
|
|
168
|
+
* @defaultValue 空
|
|
169
|
+
* @public
|
|
170
|
+
*/ _define_property(_this, "formBind", void 0), /**
|
|
171
|
+
* 数据填充-查看/编辑页面生效
|
|
172
|
+
* @defaultValue false
|
|
173
|
+
* @public
|
|
174
174
|
*/ _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
|
|
175
175
|
), // 展示已选明细
|
|
176
176
|
_define_property(_this, "showSelectedDetail", void 0), // 展示已选内容配置字段
|
|
177
|
-
_define_property(_this, "selectedContentConfig", void 0), _define_property(_this, "optionDisplayConfig", void 0), _define_property(_this, "canSearch", void 0)
|
|
177
|
+
_define_property(_this, "selectedContentConfig", void 0), _define_property(_this, "optionDisplayConfig", void 0), _define_property(_this, "canSearch", void 0), /**
|
|
178
|
+
* ai 显示内容搜索 false | true
|
|
179
|
+
* @defaultValue false
|
|
180
|
+
* @public
|
|
181
|
+
*/ _define_property(_this, "aiContentSearch", void 0);
|
|
178
182
|
var _props_options;
|
|
179
183
|
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : []);
|
|
180
184
|
var _props_optionConfig;
|
|
@@ -184,7 +188,7 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
184
188
|
var _props_caption;
|
|
185
189
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectRelationControl.controlName;
|
|
186
190
|
var _props_placeholder;
|
|
187
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder :
|
|
191
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
|
|
188
192
|
var _props_defaultValue;
|
|
189
193
|
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
190
194
|
var _props_openMultistageFilling;
|
|
@@ -208,6 +212,8 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
208
212
|
_this.optionDisplayConfig = (_props_optionDisplayConfig = props === null || props === void 0 ? void 0 : props.optionDisplayConfig) !== null && _props_optionDisplayConfig !== void 0 ? _props_optionDisplayConfig : [];
|
|
209
213
|
var _props_canSearch;
|
|
210
214
|
_this.canSearch = (_props_canSearch = props === null || props === void 0 ? void 0 : props.canSearch) !== null && _props_canSearch !== void 0 ? _props_canSearch : false;
|
|
215
|
+
var _props_aiContentSearch;
|
|
216
|
+
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
211
217
|
return _this;
|
|
212
218
|
}
|
|
213
219
|
return SelectRelationProperty;
|
|
@@ -85,8 +85,9 @@ function _is_native_reflect_construct() {
|
|
|
85
85
|
})();
|
|
86
86
|
}
|
|
87
87
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
88
|
-
import { FieldTypes
|
|
88
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
89
89
|
import TextareaProperty from './property';
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
91
|
var TextareaControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
91
92
|
"use strict";
|
|
92
93
|
_inherits(TextareaControl, DesignerFormControl);
|
|
@@ -103,7 +104,7 @@ var TextareaControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
103
104
|
{
|
|
104
105
|
key: "controlName",
|
|
105
106
|
get: function get() {
|
|
106
|
-
return
|
|
107
|
+
return getLocaleText('CMD.textarea', null, '多行文本');
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
{
|
|
@@ -167,6 +168,14 @@ _define_property(TextareaControl, "setting", [
|
|
|
167
168
|
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
168
169
|
]
|
|
169
170
|
},
|
|
171
|
+
{
|
|
172
|
+
key: 'ai-content-search',
|
|
173
|
+
visible: true
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
key: 'ai-generation',
|
|
177
|
+
visible: true
|
|
178
|
+
},
|
|
170
179
|
{
|
|
171
180
|
key: 'max-length',
|
|
172
181
|
visible: true
|
|
@@ -70,9 +70,9 @@ function _is_native_reflect_construct() {
|
|
|
70
70
|
return !!result;
|
|
71
71
|
})();
|
|
72
72
|
}
|
|
73
|
-
import { BaseControlProperty, BaseControlPropertyRules, MetaRowHeight, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
73
|
+
import { BaseControlProperty, BaseControlPropertyRules, MetaRowHeight, BaseControlPropertyRuntimeRules, initAiOptions } from '@byteluck-fe/model-driven-core';
|
|
74
74
|
import TextareaControl from './designer';
|
|
75
|
-
import {
|
|
75
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
76
|
var TextareaControlPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
77
77
|
"use strict";
|
|
78
78
|
_inherits(TextareaControlPropertyRules, BaseControlPropertyRules);
|
|
@@ -84,25 +84,25 @@ var TextareaControlPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRul
|
|
|
84
84
|
]), _define_property(_this, "maxLength", {
|
|
85
85
|
type: 'number',
|
|
86
86
|
min: 0,
|
|
87
|
-
message:
|
|
87
|
+
message: getLocaleText('CMD.TheMaximumLengthIsGreaterThanTheMinimumLength', null, '该控件最大长度需大于最小长度')
|
|
88
88
|
}), _define_property(_this, "minLength", {
|
|
89
89
|
type: 'number',
|
|
90
90
|
max: 1000000,
|
|
91
|
-
message:
|
|
91
|
+
message: getLocaleText('CMD.TheMinimumLengthIsGreaterThanTheMaximumLength', null, '该控件最小长度需小于最大长度')
|
|
92
92
|
}), _define_property(_this, "defaultValue", {
|
|
93
93
|
type: 'string',
|
|
94
94
|
max: 200,
|
|
95
95
|
min: 0,
|
|
96
|
-
message:
|
|
96
|
+
message: getLocaleText('CMD.stringRangeError', null, '请输入长度大于等于{min}且小于等于{max}的值')
|
|
97
97
|
});
|
|
98
98
|
_this.maxLength.min = props.minLength;
|
|
99
99
|
_this.minLength.max = props.maxLength;
|
|
100
100
|
_this.defaultValue.max = props.maxLength;
|
|
101
101
|
_this.defaultValue.min = props.minLength;
|
|
102
|
-
_this.defaultValue.message =
|
|
102
|
+
_this.defaultValue.message = getLocaleText('CMD.stringRangeError', {
|
|
103
103
|
max: props.maxLength,
|
|
104
104
|
min: props.minLength
|
|
105
|
-
});
|
|
105
|
+
}, '请输入长度大于等于{min}且小于等于{max}的值');
|
|
106
106
|
return _this;
|
|
107
107
|
}
|
|
108
108
|
return TextareaControlPropertyRules;
|
|
@@ -120,18 +120,18 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
|
|
|
120
120
|
type: 'string',
|
|
121
121
|
max: props.maxLength,
|
|
122
122
|
min: props.minLength,
|
|
123
|
-
message:
|
|
123
|
+
message: getLocaleText('CMD.stringRangeError', {
|
|
124
124
|
max: props.maxLength,
|
|
125
125
|
min: props.minLength
|
|
126
|
-
})
|
|
126
|
+
}, '请输入长度大于等于{min}且小于等于{max}的值')
|
|
127
127
|
});
|
|
128
128
|
return _this;
|
|
129
129
|
}
|
|
130
130
|
return TextareaControlPropertyRuntimeRules;
|
|
131
131
|
}(BaseControlPropertyRuntimeRules);
|
|
132
|
-
/**
|
|
133
|
-
* Textarea 多行文本
|
|
134
|
-
* @public
|
|
132
|
+
/**
|
|
133
|
+
* Textarea 多行文本
|
|
134
|
+
* @public
|
|
135
135
|
*/ var TextareaProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
136
136
|
"use strict";
|
|
137
137
|
_inherits(TextareaProperty, BaseControlProperty);
|
|
@@ -140,29 +140,53 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
|
|
|
140
140
|
var _this;
|
|
141
141
|
_this = _call_super(this, TextareaProperty, [
|
|
142
142
|
props
|
|
143
|
-
]), /**
|
|
144
|
-
* 最大长度
|
|
145
|
-
* @defaultValue 50000
|
|
146
|
-
* @public
|
|
147
|
-
*/ _define_property(_this, "maxLength", void 0), /**
|
|
148
|
-
* 最小长度
|
|
149
|
-
* @defaultValue 0
|
|
150
|
-
* @public
|
|
151
|
-
*/ _define_property(_this, "minLength", void 0), /**
|
|
152
|
-
* 默认值
|
|
153
|
-
* @defaultValue ''
|
|
154
|
-
* @public
|
|
143
|
+
]), /**
|
|
144
|
+
* 最大长度
|
|
145
|
+
* @defaultValue 50000
|
|
146
|
+
* @public
|
|
147
|
+
*/ _define_property(_this, "maxLength", void 0), /**
|
|
148
|
+
* 最小长度
|
|
149
|
+
* @defaultValue 0
|
|
150
|
+
* @public
|
|
151
|
+
*/ _define_property(_this, "minLength", void 0), /**
|
|
152
|
+
* 默认值
|
|
153
|
+
* @defaultValue ''
|
|
154
|
+
* @public
|
|
155
155
|
*/ _define_property(_this, "defaultValue", void 0), // /**
|
|
156
156
|
// * 行数设置,开启自适应高度开启时,为最小行数
|
|
157
157
|
// * @defaultValue 4
|
|
158
158
|
// * @public
|
|
159
159
|
// */
|
|
160
160
|
// public lineEllipsis: number
|
|
161
|
-
/**
|
|
162
|
-
* 行高设置 分为pc 和 移动 默认值为 RowHeight
|
|
163
|
-
* @defaultValue MetaRowHeight
|
|
164
|
-
* @public
|
|
165
|
-
*/ _define_property(_this, "rowHeightSetting", void 0)
|
|
161
|
+
/**
|
|
162
|
+
* 行高设置 分为pc 和 移动 默认值为 RowHeight
|
|
163
|
+
* @defaultValue MetaRowHeight
|
|
164
|
+
* @public
|
|
165
|
+
*/ _define_property(_this, "rowHeightSetting", void 0), // /**
|
|
166
|
+
// * 自适应内容高度
|
|
167
|
+
// * @defaultValue false
|
|
168
|
+
// * @public
|
|
169
|
+
// */
|
|
170
|
+
// public autoSize: boolean
|
|
171
|
+
// /**
|
|
172
|
+
// * 最大适应行数
|
|
173
|
+
// * @defaultValue 无默认值
|
|
174
|
+
// * @public
|
|
175
|
+
// */
|
|
176
|
+
// public maxRows?: Number
|
|
177
|
+
/**
|
|
178
|
+
* ai 显示内容搜索 false | true
|
|
179
|
+
* @defaultValue false
|
|
180
|
+
* @public
|
|
181
|
+
*/ _define_property(_this, "aiContentSearch", void 0), /**
|
|
182
|
+
* ai 生成 false | true
|
|
183
|
+
* @defaultValue false
|
|
184
|
+
* @public
|
|
185
|
+
*/ _define_property(_this, "aiGeneration", void 0), /**
|
|
186
|
+
* ai 生成options
|
|
187
|
+
* @defaultValue []
|
|
188
|
+
* @public
|
|
189
|
+
*/ _define_property(_this, "aiOptions", void 0);
|
|
166
190
|
var _props_maxLength;
|
|
167
191
|
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
|
|
168
192
|
var _props_minLength;
|
|
@@ -172,11 +196,33 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
|
|
|
172
196
|
var _props_caption;
|
|
173
197
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TextareaControl.controlName;
|
|
174
198
|
var _props_placeholder;
|
|
175
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder :
|
|
199
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
176
200
|
// this.lineEllipsis = props?.lineEllipsis ?? 4
|
|
177
201
|
// this.autoSize = props?.autoSize ?? false
|
|
178
202
|
// this.maxRows = props?.maxRows
|
|
179
203
|
_this.rowHeightSetting = new MetaRowHeight(props === null || props === void 0 ? void 0 : props.rowHeightSetting);
|
|
204
|
+
var _props_aiContentSearch;
|
|
205
|
+
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
206
|
+
var _props_aiGeneration;
|
|
207
|
+
_this.aiGeneration = (_props_aiGeneration = props === null || props === void 0 ? void 0 : props.aiGeneration) !== null && _props_aiGeneration !== void 0 ? _props_aiGeneration : false;
|
|
208
|
+
var _props_aiOptions;
|
|
209
|
+
_this.aiOptions = initAiOptions((_props_aiOptions = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _props_aiOptions !== void 0 ? _props_aiOptions : [
|
|
210
|
+
{
|
|
211
|
+
label: getLocaleText('CMD.aiOptionOneLabel', null, '总结'),
|
|
212
|
+
cueWord: getLocaleText('CMD.aiOptionOneCurword', null, '帮我总结一下后面的内容,但是不要随意发挥:'),
|
|
213
|
+
checked: true
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
label: getLocaleText('CMD.aiOptionTwoLabel', null, '丰富'),
|
|
217
|
+
cueWord: getLocaleText('CMD.aiOptionTwoCurword', null, '帮我丰富一下后面的内容:'),
|
|
218
|
+
checked: false
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
label: getLocaleText('CMD.aiOptionThreeLabel', null, '翻译'),
|
|
222
|
+
cueWord: getLocaleText('CMD.aiOptionThreeCurword', null, '帮我翻译一下后面的内容:'),
|
|
223
|
+
checked: false
|
|
224
|
+
}
|
|
225
|
+
]);
|
|
180
226
|
return _this;
|
|
181
227
|
}
|
|
182
228
|
return TextareaProperty;
|
|
@@ -85,8 +85,9 @@ function _is_native_reflect_construct() {
|
|
|
85
85
|
})();
|
|
86
86
|
}
|
|
87
87
|
import { COMMON_SETTING_TYPE, DesignerFormControl } from '@byteluck-fe/model-driven-core';
|
|
88
|
-
import { FieldTypes
|
|
88
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
89
89
|
import TreeProperty from './property';
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
91
|
var TreeControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
91
92
|
"use strict";
|
|
92
93
|
_inherits(TreeControl, DesignerFormControl);
|
|
@@ -103,7 +104,7 @@ var TreeControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
103
104
|
{
|
|
104
105
|
key: "controlName",
|
|
105
106
|
get: function get() {
|
|
106
|
-
return
|
|
107
|
+
return getLocaleText('CMD.tree', null, '树');
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
{
|