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

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.
@@ -141,6 +141,19 @@ var ElectronicSignatureControlPropertyRules = /*#__PURE__*/ function(BaseControl
141
141
  callback();
142
142
  }
143
143
  },
144
+ indexSignature: {
145
+ type: 'object',
146
+ required: true,
147
+ validator: function validator(rule, value, callback) {
148
+ // 是外部,就需要校验
149
+ // 数组长度为0,就是错误的
150
+ if ((current === null || current === void 0 ? void 0 : current.signaturePosition) === 'index' && isArray(value.value) && value.value.length === 0) {
151
+ callback(getLocaleText('CMD.pleaseSelect', null, '请选择'));
152
+ return;
153
+ }
154
+ callback();
155
+ }
156
+ },
144
157
  company: {
145
158
  type: 'object',
146
159
  required: true,
@@ -135,6 +135,12 @@ var Employee2Control = /*#__PURE__*/ function(DesignerFormControl) {
135
135
  return Employee2Control;
136
136
  }(DesignerFormControl);
137
137
  _define_property(Employee2Control, "controlFieldType", FieldTypes.EMPLOYEES);
138
+ _define_property(Employee2Control, "controlEventKeys", [
139
+ 'on_change',
140
+ 'on_focus',
141
+ 'on_blur',
142
+ 'on_option_selected'
143
+ ]);
138
144
  _define_property(Employee2Control, "setting", [
139
145
  {
140
146
  key: 'data-bind',
@@ -168,17 +168,17 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
168
168
  _this.aiOptions = initAiOptions((_props_aiOptions = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _props_aiOptions !== void 0 ? _props_aiOptions : [
169
169
  {
170
170
  label: getLocaleText('CMD.aiOptionOneLabel', null, '总结'),
171
- cueWord: getLocaleText('CMD.aiOptionOneCurword', null, '帮我总结一下后面的内容,但是不要随意发挥:'),
171
+ cueWord: getLocaleText('CMD.aiOptionOneCurword', null, 'SUMM'),
172
172
  checked: true
173
173
  },
174
174
  {
175
175
  label: getLocaleText('CMD.aiOptionTwoLabel', null, '丰富'),
176
- cueWord: getLocaleText('CMD.aiOptionTwoCurword', null, '帮我丰富一下后面的内容:'),
176
+ cueWord: getLocaleText('CMD.aiOptionTwoCurword', null, 'RICH'),
177
177
  checked: false
178
178
  },
179
179
  {
180
180
  label: getLocaleText('CMD.aiOptionThreeLabel', null, '翻译'),
181
- cueWord: getLocaleText('CMD.aiOptionThreeCurword', null, '帮我翻译一下后面的内容:'),
181
+ cueWord: getLocaleText('CMD.aiOptionThreeCurword', null, 'TRANS'),
182
182
  checked: false
183
183
  }
184
184
  ]);
@@ -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;
@@ -114,6 +114,39 @@ export var UndersignedPerson = function UndersignedPerson(props) {
114
114
  * 公司名称
115
115
  * */ _define_property(this, "company", void 0);
116
116
  /**
117
+ * 签署位置 自由签署 指定签署
118
+ * */ _define_property(this, "signaturePosition", void 0);
119
+ /**
120
+ * 指定位置
121
+ * */ _define_property(this, "indexSignature", void 0);
122
+ /**
123
+ * 指定X轴位置
124
+ * */ _define_property(this, "posX", void 0);
125
+ /**
126
+ * 指定Y轴位置
127
+ * */ _define_property(this, "posY", void 0);
128
+ /**
129
+ * 平台是否自动签署
130
+ * */ _define_property(this, "platformAutoSign", void 0);
131
+ /**
132
+ * 是否需要添加签署日期 0-禁止 1-必须 2-不限制,默认0
133
+ * */ _define_property(this, "signDateBeanType", void 0);
134
+ /**
135
+ * 签署日期字体大小
136
+ * */ _define_property(this, "signDateFontSize", void 0);
137
+ /**
138
+ * 签署日期格式
139
+ * */ _define_property(this, "signDateFormat", void 0);
140
+ /**
141
+ * 签署顺序
142
+ * */ _define_property(this, "signOrder", void 0);
143
+ /**
144
+ * 强制阅读时间
145
+ * */ _define_property(this, "forceReadTime", void 0);
146
+ /**
147
+ * 印章ID
148
+ * */ _define_property(this, "seal", void 0);
149
+ /**
117
150
  * 备注
118
151
  * */ _define_property(this, "remark", void 0);
119
152
  var _props_type;
@@ -132,6 +165,29 @@ export var UndersignedPerson = function UndersignedPerson(props) {
132
165
  this.company = (_props_company1 = props === null || props === void 0 ? void 0 : props.company) !== null && _props_company1 !== void 0 ? _props_company1 : new RightVariable((_props_company = props === null || props === void 0 ? void 0 : props.company) !== null && _props_company !== void 0 ? _props_company : {
133
166
  type: 'form'
134
167
  });
168
+ var _props_indexSignature, _props_indexSignature1;
169
+ this.indexSignature = (_props_indexSignature1 = props === null || props === void 0 ? void 0 : props.indexSignature) !== null && _props_indexSignature1 !== void 0 ? _props_indexSignature1 : new RightVariable((_props_indexSignature = props === null || props === void 0 ? void 0 : props.indexSignature) !== null && _props_indexSignature !== void 0 ? _props_indexSignature : {
170
+ type: 'form'
171
+ });
172
+ var _props_signaturePosition;
173
+ this.signaturePosition = (_props_signaturePosition = props === null || props === void 0 ? void 0 : props.signaturePosition) !== null && _props_signaturePosition !== void 0 ? _props_signaturePosition : 'free';
174
+ var _props_seal;
175
+ this.seal = new RightVariable((_props_seal = props === null || props === void 0 ? void 0 : props.seal) !== null && _props_seal !== void 0 ? _props_seal : {
176
+ type: 'form'
177
+ });
178
+ var _props_platformAutoSign;
179
+ this.platformAutoSign = (_props_platformAutoSign = props === null || props === void 0 ? void 0 : props.platformAutoSign) !== null && _props_platformAutoSign !== void 0 ? _props_platformAutoSign : false;
180
+ var _props_signDateBeanType;
181
+ this.signDateBeanType = (_props_signDateBeanType = props === null || props === void 0 ? void 0 : props.signDateBeanType) !== null && _props_signDateBeanType !== void 0 ? _props_signDateBeanType : 0;
182
+ var _props_signDateFontSize;
183
+ this.signDateFontSize = (_props_signDateFontSize = props === null || props === void 0 ? void 0 : props.signDateFontSize) !== null && _props_signDateFontSize !== void 0 ? _props_signDateFontSize : 12;
184
+ var _props_signOrder;
185
+ this.signOrder = (_props_signOrder = props === null || props === void 0 ? void 0 : props.signOrder) !== null && _props_signOrder !== void 0 ? _props_signOrder : 1;
186
+ this.forceReadTime = props === null || props === void 0 ? void 0 : props.forceReadTime;
187
+ var _props_posX;
188
+ this.posX = (_props_posX = props === null || props === void 0 ? void 0 : props.posX) !== null && _props_posX !== void 0 ? _props_posX : 0;
189
+ var _props_posY;
190
+ this.posY = (_props_posY = props === null || props === void 0 ? void 0 : props.posY) !== null && _props_posY !== void 0 ? _props_posY : 0;
135
191
  var _props_remark;
136
192
  this.remark = (_props_remark = props === null || props === void 0 ? void 0 : props.remark) !== null && _props_remark !== void 0 ? _props_remark : '';
137
193
  };