@byteluck-fe/model-driven-controls 3.0.0-beta.4 → 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',
@@ -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;
@@ -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
  };