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

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)
@@ -139,7 +139,8 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
139
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 : [
@@ -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 : []);
@@ -129,9 +129,9 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
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,28 +140,28 @@ 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
161
+ /**
162
+ * 行高设置 分为pc 和 移动 默认值为 RowHeight
163
+ * @defaultValue MetaRowHeight
164
+ * @public
165
165
  */ _define_property(_this, "rowHeightSetting", void 0), // /**
166
166
  // * 自适应内容高度
167
167
  // * @defaultValue false
@@ -174,18 +174,18 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
174
174
  // * @public
175
175
  // */
176
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
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
189
  */ _define_property(_this, "aiOptions", void 0);
190
190
  var _props_maxLength;
191
191
  _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;