@byteluck-fe/model-driven-controls 3.0.0-beta.1 → 3.0.0-beta.3

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.
@@ -81,10 +81,10 @@ var TextProperty = /*#__PURE__*/ function(Property) {
81
81
  _this = _call_super(this, TextProperty, [
82
82
  props
83
83
  ]), // public dataBind: DataBind
84
- _define_property(_this, "content", void 0), _define_property(_this, "fontSize", void 0), _define_property(_this, "color", void 0), _define_property(_this, "icon", void 0), _define_property(_this, "align", void 0), _define_property(_this, "showState", void 0), /**
85
- * ai 显示内容搜索 false | true
86
- * @defaultValue false
87
- * @public
84
+ _define_property(_this, "content", void 0), _define_property(_this, "fontSize", void 0), _define_property(_this, "color", void 0), _define_property(_this, "icon", void 0), _define_property(_this, "align", void 0), _define_property(_this, "showState", void 0), /**
85
+ * ai 显示内容搜索 false | true
86
+ * @defaultValue false
87
+ * @public
88
88
  */ _define_property(_this, "aiContentSearch", void 0);
89
89
  var _props_fontSize;
90
90
  // this.dataBind = new DataBind(props?.dataBind)
@@ -1,9 +1,9 @@
1
- /*
2
- * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
- * @Date: 2023-09-14 18:31:51
4
- * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
5
- * @LastEditTime: 2023-09-19 15:49:31
6
- * @FilePath: /model-driven/packages/controls/src/formControls/Attachment/property.ts
1
+ /*
2
+ * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
+ * @Date: 2023-09-14 18:31:51
4
+ * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
5
+ * @LastEditTime: 2023-09-19 15:49:31
6
+ * @FilePath: /model-driven/packages/controls/src/formControls/Attachment/property.ts
7
7
  */ function _assert_this_initialized(self) {
8
8
  if (self === void 0) {
9
9
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
@@ -135,11 +135,12 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
135
135
  props
136
136
  ]), _define_property(_this, "defaultValue", void 0), // 默认格式和列表格式,原应用内是title和table
137
137
  _define_property(_this, "showType", void 0), _define_property(_this, "resultShowType", void 0), _define_property(_this, "attachmentAccept", void 0), _define_property(_this, "maxLimit", void 0), _define_property(_this, "minLimit", void 0), _define_property(_this, "isShowWatermark", void 0 // 是否开启水印
138
- ), _define_property(_this, "watermarkFx", void 0), /**
139
- * maxSize 存储大小,单位为Byte,默认值为100MB
138
+ ), _define_property(_this, "watermarkFx", void 0), /**
139
+ * maxSize 存储大小,单位为Byte,默认值为100MB
140
140
  * */ _define_property(_this, "maxSize", void 0), // 附件按钮操作数组
141
141
  _define_property(_this, "operation", void 0), // 附件ai解释
142
- _define_property(_this, "aiExplanation", void 0);
142
+ _define_property(_this, "aiExplanation", void 0), // 附件ai解释长度
143
+ _define_property(_this, "aiExplanationLength", void 0);
143
144
  var _props_defaultValue;
144
145
  _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
145
146
  var _props_showType;
@@ -170,6 +171,8 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
170
171
  ];
171
172
  var _props_aiExplanation;
172
173
  _this.aiExplanation = (_props_aiExplanation = props === null || props === void 0 ? void 0 : props.aiExplanation) !== null && _props_aiExplanation !== void 0 ? _props_aiExplanation : false;
174
+ var _props_aiExplanationLength;
175
+ _this.aiExplanationLength = (_props_aiExplanationLength = props === null || props === void 0 ? void 0 : props.aiExplanationLength) !== null && _props_aiExplanationLength !== void 0 ? _props_aiExplanationLength : 500;
173
176
  return _this;
174
177
  }
175
178
  return AttachmentProperty;
@@ -136,10 +136,10 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
136
136
  ), _define_property(_this, "optionsFormat", void 0 // 选项布局:竖排/横排
137
137
  ), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "interreaction", void 0 // 数据联动
138
138
  ), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
139
- ), /**
140
- * ai 显示内容搜索 false | true
141
- * @defaultValue false
142
- * @public
139
+ ), /**
140
+ * ai 显示内容搜索 false | true
141
+ * @defaultValue false
142
+ * @public
143
143
  */ _define_property(_this, "aiContentSearch", void 0);
144
144
  var _props_options;
145
145
  _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
@@ -1,9 +1,9 @@
1
- /*
2
- * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
- * @Date: 2022-12-01 14:40:30
4
- * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
5
- * @LastEditTime: 2023-09-19 15:50:38
6
- * @FilePath: /model-driven/packages/controls/src/formControls/Image/designer.ts
1
+ /*
2
+ * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
+ * @Date: 2022-12-01 14:40:30
4
+ * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
5
+ * @LastEditTime: 2023-09-19 15:50:38
6
+ * @FilePath: /model-driven/packages/controls/src/formControls/Image/designer.ts
7
7
  */ function _assert_this_initialized(self) {
8
8
  if (self === void 0) {
9
9
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
@@ -146,9 +146,9 @@ var InputControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropert
146
146
  }
147
147
  return InputControlPropertyRuntimeRules;
148
148
  }(BaseControlPropertyRuntimeRules);
149
- /**
150
- * Input 单行文本
151
- * @public
149
+ /**
150
+ * Input 单行文本
151
+ * @public
152
152
  */ var InputProperty = /*#__PURE__*/ function(BaseControlProperty) {
153
153
  "use strict";
154
154
  _inherits(InputProperty, BaseControlProperty);
@@ -157,33 +157,33 @@ var InputControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropert
157
157
  var _this;
158
158
  _this = _call_super(this, InputProperty, [
159
159
  props
160
- ]), /**
161
- * 最大长度
162
- * @defaultValue 200
163
- * @public
164
- */ _define_property(_this, "maxLength", void 0), /**
165
- * 最小长度
166
- * @defaultValue 0
167
- * @public
168
- */ _define_property(_this, "minLength", void 0), /**
169
- * 正则校验
170
- * @public
171
- */ _define_property(_this, "regularRules", void 0), /**
172
- * 默认值
173
- * @defaultValue ''
174
- * @public
175
- */ _define_property(_this, "defaultValue", void 0), /**
176
- * 开启密码模式
177
- * @defaultValue false
178
- * @public
179
- */ _define_property(_this, "encrypted", void 0), /**
180
- * 密码模式 '' | 'ALL_MASK' | 'LAST_FOUR_MASK'
181
- * @defaultValue ''
182
- * @public
183
- */ _define_property(_this, "encryptedMode", void 0), /**
184
- * ai 显示内容搜索 false | true
185
- * @defaultValue false
186
- * @public
160
+ ]), /**
161
+ * 最大长度
162
+ * @defaultValue 200
163
+ * @public
164
+ */ _define_property(_this, "maxLength", void 0), /**
165
+ * 最小长度
166
+ * @defaultValue 0
167
+ * @public
168
+ */ _define_property(_this, "minLength", void 0), /**
169
+ * 正则校验
170
+ * @public
171
+ */ _define_property(_this, "regularRules", void 0), /**
172
+ * 默认值
173
+ * @defaultValue ''
174
+ * @public
175
+ */ _define_property(_this, "defaultValue", void 0), /**
176
+ * 开启密码模式
177
+ * @defaultValue false
178
+ * @public
179
+ */ _define_property(_this, "encrypted", void 0), /**
180
+ * 密码模式 '' | 'ALL_MASK' | 'LAST_FOUR_MASK'
181
+ * @defaultValue ''
182
+ * @public
183
+ */ _define_property(_this, "encryptedMode", void 0), /**
184
+ * ai 显示内容搜索 false | true
185
+ * @defaultValue false
186
+ * @public
187
187
  */ _define_property(_this, "aiContentSearch", void 0);
188
188
  var _props_maxLength;
189
189
  _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 200;
@@ -99,10 +99,10 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
99
99
  ), _define_property(_this, "optionsOrder", void 0 // 选项排序
100
100
  ), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "interreaction", void 0 // 数据联动
101
101
  ), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
102
- ), /**
103
- * ai 显示内容搜索 false | true
104
- * @defaultValue false
105
- * @public
102
+ ), /**
103
+ * ai 显示内容搜索 false | true
104
+ * @defaultValue false
105
+ * @public
106
106
  */ _define_property(_this, "aiContentSearch", void 0);
107
107
  var _props_options;
108
108
  _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
@@ -170,7 +170,7 @@ _define_property(RichTextControl, "setting", [
170
170
  },
171
171
  {
172
172
  key: 'ai-content-search',
173
- visible: true
173
+ visible: false
174
174
  },
175
175
  {
176
176
  key: 'ai-generation',
@@ -137,18 +137,18 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
137
137
  var _this;
138
138
  _this = _call_super(this, RichTextProperty, [
139
139
  props
140
- ]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "defaultValue", void 0), /**
141
- * ai 显示内容搜索 false | true
142
- * @defaultValue false
143
- * @public
144
- */ _define_property(_this, "aiContentSearch", void 0), /**
145
- * ai 生成 false | true
146
- * @defaultValue false
147
- * @public
148
- */ _define_property(_this, "aiGeneration", void 0), /**
149
- * ai 生成对应的总结、丰富、翻译等options
150
- * @defaultValue []
151
- * @public
140
+ ]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "defaultValue", void 0), /**
141
+ * ai 显示内容搜索 false | true
142
+ * @defaultValue false
143
+ * @public
144
+ */ _define_property(_this, "aiContentSearch", void 0), /**
145
+ * ai 生成 false | true
146
+ * @defaultValue false
147
+ * @public
148
+ */ _define_property(_this, "aiGeneration", void 0), /**
149
+ * ai 生成对应的总结、丰富、翻译等options
150
+ * @defaultValue []
151
+ * @public
152
152
  */ _define_property(_this, "aiOptions", void 0);
153
153
  var _props_maxLength;
154
154
  _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
@@ -108,23 +108,23 @@ 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), /**
125
- * ai 显示内容搜索 false | true
126
- * @defaultValue false
127
- * @public
120
+ ), /**
121
+ * 选择表单
122
+ * @defaultValue 空
123
+ * @public
124
+ */ _define_property(_this, "formBind", void 0), /**
125
+ * ai 显示内容搜索 false | true
126
+ * @defaultValue false
127
+ * @public
128
128
  */ _define_property(_this, "aiContentSearch", void 0);
129
129
  var _props_options;
130
130
  _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
@@ -123,23 +123,23 @@ 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), /**
140
- * ai 显示内容搜索 false | true
141
- * @defaultValue false
142
- * @public
135
+ ), /**
136
+ * 选择表单
137
+ * @defaultValue 空
138
+ * @public
139
+ */ _define_property(_this, "formBind", void 0), /**
140
+ * ai 显示内容搜索 false | true
141
+ * @defaultValue false
142
+ * @public
143
143
  */ _define_property(_this, "aiContentSearch", void 0);
144
144
  var _props_options;
145
145
  _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
@@ -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,53 +131,53 @@ 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), /**
178
- * ai 显示内容搜索 false | true
179
- * @defaultValue false
180
- * @public
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
181
  */ _define_property(_this, "aiContentSearch", void 0);
182
182
  var _props_options;
183
183
  _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : []);
@@ -170,7 +170,7 @@ _define_property(TextareaControl, "setting", [
170
170
  },
171
171
  {
172
172
  key: 'ai-content-search',
173
- visible: true
173
+ visible: false
174
174
  },
175
175
  {
176
176
  key: 'ai-generation',
@@ -209,17 +209,17 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
209
209
  _this.aiOptions = initAiOptions((_props_aiOptions = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _props_aiOptions !== void 0 ? _props_aiOptions : [
210
210
  {
211
211
  label: getLocaleText('CMD.aiOptionOneLabel', null, '总结'),
212
- cueWord: getLocaleText('CMD.aiOptionOneCurword', null, '帮我总结一下后面的内容,但是不要随意发挥:'),
212
+ cueWord: getLocaleText('CMD.aiOptionOneCurword', null, 'SUMM'),
213
213
  checked: true
214
214
  },
215
215
  {
216
216
  label: getLocaleText('CMD.aiOptionTwoLabel', null, '丰富'),
217
- cueWord: getLocaleText('CMD.aiOptionTwoCurword', null, '帮我丰富一下后面的内容:'),
217
+ cueWord: getLocaleText('CMD.aiOptionTwoCurword', null, 'RICH'),
218
218
  checked: false
219
219
  },
220
220
  {
221
221
  label: getLocaleText('CMD.aiOptionThreeLabel', null, '翻译'),
222
- cueWord: getLocaleText('CMD.aiOptionThreeCurword', null, '帮我翻译一下后面的内容:'),
222
+ cueWord: getLocaleText('CMD.aiOptionThreeCurword', null, 'TRANS'),
223
223
  checked: false
224
224
  }
225
225
  ]);