@byteluck-fe/model-driven-controls 2.22.2-beta.4 → 2.22.2-beta.7
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/formControls/Address/property.js +12 -12
- package/dist/esm/formControls/Amount/property.js +1 -1
- package/dist/esm/formControls/AutoNumber/property.js +2 -1
- package/dist/esm/formControls/Calc/property.js +1 -1
- package/dist/esm/formControls/DatePicker/property.js +2 -2
- package/dist/esm/formControls/DateRange/property.js +48 -48
- package/dist/esm/formControls/Department/property.js +20 -19
- package/dist/esm/formControls/Department2/property.js +23 -23
- package/dist/esm/formControls/ElectronicSignature/property.js +7 -7
- package/dist/esm/formControls/Employee/property.js +4 -3
- package/dist/esm/formControls/Employee2/property.js +3 -3
- package/dist/esm/formControls/Input/property.js +2 -2
- package/dist/esm/formControls/Number/property.js +1 -1
- package/dist/esm/formControls/OrganizationSelection/designer.js +6 -1
- package/dist/esm/formControls/OrganizationSelection/property.js +26 -26
- package/dist/esm/formControls/RichText/property.js +1 -1
- package/dist/esm/formControls/SearchDateRange/property.js +3 -3
- package/dist/esm/formControls/Select/property.js +13 -13
- package/dist/esm/formControls/SelectMultiple/property.js +13 -13
- package/dist/esm/formControls/SelectRelation/property.js +42 -42
- package/dist/esm/formControls/Textarea/property.js +1 -1
- package/dist/esm/formControls/Tree/property.js +1 -1
- package/dist/esm/framework.js +26 -26
- package/dist/esm/wrapControls/GridLayoutWrap/Setting.js +8 -7
- package/dist/index.umd.js +18 -18
- package/dist/types/formControls/OrganizationSelection/designer.d.ts +1 -1
- package/package.json +5 -5
|
@@ -127,9 +127,9 @@ var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPrope
|
|
|
127
127
|
}
|
|
128
128
|
return AddressControlPropertyRuntimeRules;
|
|
129
129
|
}(BaseControlPropertyRuntimeRules);
|
|
130
|
-
/**
|
|
131
|
-
* Address 地址
|
|
132
|
-
* @public
|
|
130
|
+
/**
|
|
131
|
+
* Address 地址
|
|
132
|
+
* @public
|
|
133
133
|
*/ var AddressProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
134
134
|
"use strict";
|
|
135
135
|
_inherits(AddressProperty, BaseControlProperty);
|
|
@@ -138,16 +138,16 @@ var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPrope
|
|
|
138
138
|
_class_call_check(this, AddressProperty);
|
|
139
139
|
var _this;
|
|
140
140
|
_this = _super.call(this, props);
|
|
141
|
-
/**
|
|
142
|
-
* 默认值类型 default固定地址 current当前定位
|
|
143
|
-
* @defaultValue 'default'
|
|
141
|
+
/**
|
|
142
|
+
* 默认值类型 default固定地址 current当前定位
|
|
143
|
+
* @defaultValue 'default'
|
|
144
144
|
*/ _define_property(_assert_this_initialized(_this), "defaultValueType", void 0);
|
|
145
|
-
/**
|
|
146
|
-
* 默认值
|
|
145
|
+
/**
|
|
146
|
+
* 默认值
|
|
147
147
|
*/ _define_property(_assert_this_initialized(_this), "defaultValue", void 0);
|
|
148
|
-
/**
|
|
149
|
-
* 地址类型
|
|
150
|
-
* @defaultValue ['province', 'city', 'district']
|
|
148
|
+
/**
|
|
149
|
+
* 地址类型
|
|
150
|
+
* @defaultValue ['province', 'city', 'district']
|
|
151
151
|
*/ _define_property(_assert_this_initialized(_this), "addressType", void 0);
|
|
152
152
|
var _props_caption;
|
|
153
153
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AddressControl.controlName;
|
|
@@ -162,7 +162,7 @@ var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPrope
|
|
|
162
162
|
var _props_defaultValue;
|
|
163
163
|
_this.defaultValue = new AddressValue((_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : {});
|
|
164
164
|
var _props_placeholder;
|
|
165
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '
|
|
165
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : RulesMessage.getMessage('pleaseChooseAddress');
|
|
166
166
|
return _this;
|
|
167
167
|
}
|
|
168
168
|
return AddressProperty;
|
|
@@ -290,7 +290,7 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
|
|
|
290
290
|
var _props_caption;
|
|
291
291
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AmountControl.controlName;
|
|
292
292
|
var _props_placeholder;
|
|
293
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '
|
|
293
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : RulesMessage.getMessage('pleaseEnter');
|
|
294
294
|
var _props_submitSelectCurrency;
|
|
295
295
|
_this.submitSelectCurrency = (_props_submitSelectCurrency = props === null || props === void 0 ? void 0 : props.submitSelectCurrency) !== null && _props_submitSelectCurrency !== void 0 ? _props_submitSelectCurrency : false;
|
|
296
296
|
var _props_showUpperCase;
|
|
@@ -84,6 +84,7 @@ function _create_super(Derived) {
|
|
|
84
84
|
}
|
|
85
85
|
import AutoNumberControl from './designer';
|
|
86
86
|
import { BaseControlProperty } from '@byteluck-fe/model-driven-core';
|
|
87
|
+
import { RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
87
88
|
var AutoNumberProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
88
89
|
"use strict";
|
|
89
90
|
_inherits(AutoNumberProperty, BaseControlProperty);
|
|
@@ -98,7 +99,7 @@ var AutoNumberProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
98
99
|
var _props_caption;
|
|
99
100
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AutoNumberControl.controlName;
|
|
100
101
|
var _props_placeholder;
|
|
101
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '
|
|
102
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : RulesMessage.getMessage('pleaseEnterAutonumber');
|
|
102
103
|
return _this;
|
|
103
104
|
}
|
|
104
105
|
return AutoNumberProperty;
|
|
@@ -189,7 +189,7 @@ var CalcProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
189
189
|
var _props_unitPosition;
|
|
190
190
|
_this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : 'right';
|
|
191
191
|
var _props_placeholder;
|
|
192
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '
|
|
192
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : RulesMessage.getMessage('pleaseEnter');
|
|
193
193
|
var _props_scriptEcho;
|
|
194
194
|
_this.scriptEcho = (_props_scriptEcho = props === null || props === void 0 ? void 0 : props.scriptEcho) !== null && _props_scriptEcho !== void 0 ? _props_scriptEcho : [];
|
|
195
195
|
var _props_scriptSrc;
|
|
@@ -84,7 +84,7 @@ function _create_super(Derived) {
|
|
|
84
84
|
}
|
|
85
85
|
import DatePickerControl from './designer';
|
|
86
86
|
import { BaseControlProperty } from '@byteluck-fe/model-driven-core';
|
|
87
|
-
import { DateType } from '@byteluck-fe/model-driven-shared';
|
|
87
|
+
import { DateType, RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
88
88
|
import { LimitDate } from '../../framework';
|
|
89
89
|
var DatePickerProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
90
90
|
"use strict";
|
|
@@ -122,7 +122,7 @@ var DatePickerProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
122
122
|
var _props_caption;
|
|
123
123
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DatePickerControl.controlName;
|
|
124
124
|
var _props_placeholder;
|
|
125
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '
|
|
125
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : RulesMessage.getMessage('pleaseEnterDate');
|
|
126
126
|
var _props_defaultValue;
|
|
127
127
|
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
128
128
|
var _props_limitDateList_map;
|
|
@@ -84,7 +84,7 @@ function _create_super(Derived) {
|
|
|
84
84
|
}
|
|
85
85
|
import { BaseControlProperty, BaseControlPropertyRuntimeRules, RangeDataBind, RangeDateValue } from '@byteluck-fe/model-driven-core';
|
|
86
86
|
import DateRangeControl from './designer';
|
|
87
|
-
import { DateType } from '@byteluck-fe/model-driven-shared';
|
|
87
|
+
import { DateType, RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
88
88
|
import { LimitDate } from '../../framework';
|
|
89
89
|
var DateRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeRules) {
|
|
90
90
|
"use strict";
|
|
@@ -118,9 +118,9 @@ var DateRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRu
|
|
|
118
118
|
}
|
|
119
119
|
return DateRangePropertyRuntimeRules;
|
|
120
120
|
}(BaseControlPropertyRuntimeRules);
|
|
121
|
-
/**
|
|
122
|
-
* DateRange 日期区间
|
|
123
|
-
* @public
|
|
121
|
+
/**
|
|
122
|
+
* DateRange 日期区间
|
|
123
|
+
* @public
|
|
124
124
|
*/ var DateRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
125
125
|
"use strict";
|
|
126
126
|
_inherits(DateRangeProperty, BaseControlProperty);
|
|
@@ -130,58 +130,58 @@ var DateRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRu
|
|
|
130
130
|
var _this;
|
|
131
131
|
var _props_limitDateList;
|
|
132
132
|
_this = _super.call(this, props);
|
|
133
|
-
/**
|
|
134
|
-
* 数据绑定项
|
|
133
|
+
/**
|
|
134
|
+
* 数据绑定项
|
|
135
135
|
*/ _define_property(_assert_this_initialized(_this), "dataBind", void 0);
|
|
136
|
-
/**
|
|
137
|
-
* 开始日期
|
|
138
|
-
* @public
|
|
139
|
-
* @defaultValue ''
|
|
136
|
+
/**
|
|
137
|
+
* 开始日期
|
|
138
|
+
* @public
|
|
139
|
+
* @defaultValue ''
|
|
140
140
|
*/ _define_property(_assert_this_initialized(_this), "rangeMin", void 0);
|
|
141
|
-
/**
|
|
142
|
-
* 结束日期
|
|
143
|
-
* @public
|
|
144
|
-
* @defaultValue ''
|
|
141
|
+
/**
|
|
142
|
+
* 结束日期
|
|
143
|
+
* @public
|
|
144
|
+
* @defaultValue ''
|
|
145
145
|
*/ _define_property(_assert_this_initialized(_this), "rangeMax", void 0);
|
|
146
|
-
/**
|
|
147
|
-
* 日期区间开始的提示文字
|
|
148
|
-
* @defaultValue ''
|
|
149
|
-
* @public
|
|
146
|
+
/**
|
|
147
|
+
* 日期区间开始的提示文字
|
|
148
|
+
* @defaultValue ''
|
|
149
|
+
* @public
|
|
150
150
|
*/ _define_property(_assert_this_initialized(_this), "placeholderStart", void 0);
|
|
151
|
-
/**
|
|
152
|
-
* 日期区结束的提示文字
|
|
153
|
-
* @defaultValue ''
|
|
154
|
-
* @public
|
|
151
|
+
/**
|
|
152
|
+
* 日期区结束的提示文字
|
|
153
|
+
* @defaultValue ''
|
|
154
|
+
* @public
|
|
155
155
|
*/ _define_property(_assert_this_initialized(_this), "placeholderEnd", void 0);
|
|
156
|
-
/**
|
|
157
|
-
* 日期格式化字符串
|
|
158
|
-
* @defaultValue ''
|
|
159
|
-
* @public
|
|
156
|
+
/**
|
|
157
|
+
* 日期格式化字符串
|
|
158
|
+
* @defaultValue ''
|
|
159
|
+
* @public
|
|
160
160
|
*/ _define_property(_assert_this_initialized(_this), "dateFormat", void 0);
|
|
161
|
-
/**
|
|
162
|
-
* 常用时间配置
|
|
163
|
-
* @defaultValue ''
|
|
164
|
-
* @public
|
|
161
|
+
/**
|
|
162
|
+
* 常用时间配置
|
|
163
|
+
* @defaultValue ''
|
|
164
|
+
* @public
|
|
165
165
|
*/ _define_property(_assert_this_initialized(_this), "commonTimeSetting", void 0);
|
|
166
|
-
/**
|
|
167
|
-
* 日期格式 date,datetime
|
|
168
|
-
* @defaultValue 'date'
|
|
169
|
-
* @public
|
|
166
|
+
/**
|
|
167
|
+
* 日期格式 date,datetime
|
|
168
|
+
* @defaultValue 'date'
|
|
169
|
+
* @public
|
|
170
170
|
*/ _define_property(_assert_this_initialized(_this), "dateType", void 0);
|
|
171
|
-
/**
|
|
172
|
-
* 日期默认值设置方式custom,now
|
|
173
|
-
* @defaultValue 'custom'
|
|
174
|
-
* @public
|
|
171
|
+
/**
|
|
172
|
+
* 日期默认值设置方式custom,now
|
|
173
|
+
* @defaultValue 'custom'
|
|
174
|
+
* @public
|
|
175
175
|
*/ _define_property(_assert_this_initialized(_this), "setValueType", void 0);
|
|
176
|
-
/**
|
|
177
|
-
* 默认值
|
|
178
|
-
* @defaultValue ''
|
|
179
|
-
* @public
|
|
176
|
+
/**
|
|
177
|
+
* 默认值
|
|
178
|
+
* @defaultValue ''
|
|
179
|
+
* @public
|
|
180
180
|
*/ _define_property(_assert_this_initialized(_this), "defaultValue", void 0);
|
|
181
|
-
/**
|
|
182
|
-
* 日期限制范围
|
|
183
|
-
* @defaultValue []
|
|
184
|
-
* @public
|
|
181
|
+
/**
|
|
182
|
+
* 日期限制范围
|
|
183
|
+
* @defaultValue []
|
|
184
|
+
* @public
|
|
185
185
|
*/ _define_property(_assert_this_initialized(_this), "limitDateList", void 0);
|
|
186
186
|
_this.dataBind = new RangeDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
187
187
|
_this.defaultValue = new RangeDateValue(props === null || props === void 0 ? void 0 : props.defaultValue);
|
|
@@ -198,9 +198,9 @@ var DateRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRu
|
|
|
198
198
|
var _props_rangeMax;
|
|
199
199
|
_this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
|
|
200
200
|
var _props_placeholderStart;
|
|
201
|
-
_this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : '
|
|
201
|
+
_this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : RulesMessage.getMessage('pleaseSelectStartDate');
|
|
202
202
|
var _props_placeholderEnd;
|
|
203
|
-
_this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : '
|
|
203
|
+
_this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : RulesMessage.getMessage('pleaseSelectEndDate');
|
|
204
204
|
var _props_caption;
|
|
205
205
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DateRangeControl.controlName;
|
|
206
206
|
var _props_limitDateList_map;
|
|
@@ -82,6 +82,7 @@ function _create_super(Derived) {
|
|
|
82
82
|
return _possible_constructor_return(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
+
import { RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
85
86
|
import DepartmentControl from './designer';
|
|
86
87
|
import { BaseControlProperty, BaseControlPropertyRuntimeRules, MultistageFillingItem } from '@byteluck-fe/model-driven-core';
|
|
87
88
|
var DepartmentPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeRules) {
|
|
@@ -107,32 +108,32 @@ var DepartmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
107
108
|
_class_call_check(this, DepartmentProperty);
|
|
108
109
|
var _this;
|
|
109
110
|
_this = _super.call(this, props);
|
|
110
|
-
/**
|
|
111
|
-
* 展示类型: 默认形式 / 树状部门
|
|
111
|
+
/**
|
|
112
|
+
* 展示类型: 默认形式 / 树状部门
|
|
112
113
|
* */ _define_property(_assert_this_initialized(_this), "showType", void 0);
|
|
113
|
-
/**
|
|
114
|
-
* 部门范围: 所有部门 / 指定部门
|
|
114
|
+
/**
|
|
115
|
+
* 部门范围: 所有部门 / 指定部门
|
|
115
116
|
* */ _define_property(_assert_this_initialized(_this), "range", void 0);
|
|
116
|
-
/**
|
|
117
|
-
* 默认值类型:发起人部门/ 指定部门 /无
|
|
117
|
+
/**
|
|
118
|
+
* 默认值类型:发起人部门/ 指定部门 /无
|
|
118
119
|
*/ _define_property(_assert_this_initialized(_this), "defaultValueType", void 0);
|
|
119
|
-
/**
|
|
120
|
-
* 部门多选
|
|
120
|
+
/**
|
|
121
|
+
* 部门多选
|
|
121
122
|
* */ _define_property(_assert_this_initialized(_this), "multiple", void 0);
|
|
122
|
-
/**
|
|
123
|
-
* 指定部门范围
|
|
123
|
+
/**
|
|
124
|
+
* 指定部门范围
|
|
124
125
|
* */ _define_property(_assert_this_initialized(_this), "rangeOptions", void 0);
|
|
125
|
-
/**
|
|
126
|
-
* 默认值
|
|
126
|
+
/**
|
|
127
|
+
* 默认值
|
|
127
128
|
* */ _define_property(_assert_this_initialized(_this), "defaultValue", void 0);
|
|
128
|
-
/**
|
|
129
|
-
* 部门显示层级
|
|
129
|
+
/**
|
|
130
|
+
* 部门显示层级
|
|
130
131
|
* */ _define_property(_assert_this_initialized(_this), "displayLevel", void 0);
|
|
131
|
-
/**
|
|
132
|
-
* 是否展示子部门
|
|
132
|
+
/**
|
|
133
|
+
* 是否展示子部门
|
|
133
134
|
* */ _define_property(_assert_this_initialized(_this), "showSubDept", void 0);
|
|
134
|
-
/**
|
|
135
|
-
* 多级填充
|
|
135
|
+
/**
|
|
136
|
+
* 多级填充
|
|
136
137
|
* */ _define_property(_assert_this_initialized(_this), "multistageFilling", void 0);
|
|
137
138
|
_define_property(_assert_this_initialized(_this), "openMultistageFilling", void 0 //是否开启填充
|
|
138
139
|
);
|
|
@@ -155,7 +156,7 @@ var DepartmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
155
156
|
var _props_caption;
|
|
156
157
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DepartmentControl.controlName;
|
|
157
158
|
var _props_placeholder;
|
|
158
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '
|
|
159
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : RulesMessage.getMessage('pleaseSelectDept');
|
|
159
160
|
var _props_openMultistageFilling;
|
|
160
161
|
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
161
162
|
_this.multistageFilling = [];
|
|
@@ -138,38 +138,38 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
138
138
|
_class_call_check(this, Department2Property);
|
|
139
139
|
var _this;
|
|
140
140
|
_this = _super.call(this, props);
|
|
141
|
-
/**
|
|
142
|
-
* 展示类型: 默认形式 / 树状部门
|
|
141
|
+
/**
|
|
142
|
+
* 展示类型: 默认形式 / 树状部门
|
|
143
143
|
* */ _define_property(_assert_this_initialized(_this), "showType", void 0);
|
|
144
|
-
/**
|
|
145
|
-
* 部门范围: 所有部门 / 指定部门
|
|
144
|
+
/**
|
|
145
|
+
* 部门范围: 所有部门 / 指定部门
|
|
146
146
|
* */ _define_property(_assert_this_initialized(_this), "range", void 0);
|
|
147
|
-
/**
|
|
148
|
-
* 默认值类型:发起人部门/ 指定部门 /无
|
|
147
|
+
/**
|
|
148
|
+
* 默认值类型:发起人部门/ 指定部门 /无
|
|
149
149
|
*/ _define_property(_assert_this_initialized(_this), "defaultValueType", void 0);
|
|
150
|
-
/**
|
|
151
|
-
* 部门多选
|
|
150
|
+
/**
|
|
151
|
+
* 部门多选
|
|
152
152
|
* */ _define_property(_assert_this_initialized(_this), "multiple", void 0);
|
|
153
|
-
/**
|
|
154
|
-
* 指定部门范围
|
|
153
|
+
/**
|
|
154
|
+
* 指定部门范围
|
|
155
155
|
* */ _define_property(_assert_this_initialized(_this), "rangeOptions", void 0);
|
|
156
|
-
/**
|
|
157
|
-
* 默认值
|
|
156
|
+
/**
|
|
157
|
+
* 默认值
|
|
158
158
|
* */ _define_property(_assert_this_initialized(_this), "defaultValue", void 0);
|
|
159
|
-
/**
|
|
160
|
-
* 部门显示层级
|
|
159
|
+
/**
|
|
160
|
+
* 部门显示层级
|
|
161
161
|
* */ _define_property(_assert_this_initialized(_this), "displayLevel", void 0);
|
|
162
|
-
/**
|
|
163
|
-
* 是否展示子部门
|
|
162
|
+
/**
|
|
163
|
+
* 是否展示子部门
|
|
164
164
|
* */ _define_property(_assert_this_initialized(_this), "showSubDept", void 0);
|
|
165
|
-
/**
|
|
166
|
-
* 多级填充
|
|
165
|
+
/**
|
|
166
|
+
* 多级填充
|
|
167
167
|
* */ _define_property(_assert_this_initialized(_this), "multistageFilling", void 0);
|
|
168
|
-
/**
|
|
169
|
-
* 数据设置
|
|
168
|
+
/**
|
|
169
|
+
* 数据设置
|
|
170
170
|
* */ _define_property(_assert_this_initialized(_this), "datasourceBind", void 0);
|
|
171
|
-
/**
|
|
172
|
-
* 数据类型 行政 or 业务
|
|
171
|
+
/**
|
|
172
|
+
* 数据类型 行政 or 业务
|
|
173
173
|
* */ _define_property(_assert_this_initialized(_this), "datasourceType", void 0 //数据类型 行政 'administration'| 业务 'business'
|
|
174
174
|
);
|
|
175
175
|
_define_property(_assert_this_initialized(_this), "businessType", void 0 //业务部门类型 'all' | 'assign'
|
|
@@ -197,7 +197,7 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
197
197
|
var _props_caption;
|
|
198
198
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : Department2Control.controlName;
|
|
199
199
|
var _props_placeholder;
|
|
200
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '
|
|
200
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : RulesMessage.getMessage('pleaseSelectDept');
|
|
201
201
|
var _props_datasourceBind;
|
|
202
202
|
_this.datasourceBind = new SuperDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
203
203
|
attributes: Department2Control.controlCustomAttributes
|
|
@@ -85,7 +85,7 @@ function _create_super(Derived) {
|
|
|
85
85
|
import ElectronicSignatureControl from './designer';
|
|
86
86
|
import { BaseControlProperty, BaseControlPropertyRules } from '@byteluck-fe/model-driven-core';
|
|
87
87
|
import { ElectronicSignatureConfig } from '../../framework';
|
|
88
|
-
import { isArray } from '@byteluck-fe/model-driven-shared';
|
|
88
|
+
import { isArray, RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
89
89
|
var ElectronicSignatureControlPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
90
90
|
"use strict";
|
|
91
91
|
_inherits(ElectronicSignatureControlPropertyRules, BaseControlPropertyRules);
|
|
@@ -101,13 +101,13 @@ var ElectronicSignatureControlPropertyRules = /*#__PURE__*/ function(BaseControl
|
|
|
101
101
|
fileControl: {
|
|
102
102
|
type: 'string',
|
|
103
103
|
required: true,
|
|
104
|
-
message: '
|
|
104
|
+
message: RulesMessage.getMessage('pleaseSelectSignFile')
|
|
105
105
|
},
|
|
106
106
|
undersignedList: {
|
|
107
107
|
type: 'array',
|
|
108
108
|
required: true,
|
|
109
109
|
min: 1,
|
|
110
|
-
message: '
|
|
110
|
+
message: RulesMessage.getMessage('pleaseSelectOnlyOne'),
|
|
111
111
|
fields: props.signatureConfig.undersignedList.reduce(function(result, current, index) {
|
|
112
112
|
result[index] = {
|
|
113
113
|
type: 'object',
|
|
@@ -129,7 +129,7 @@ var ElectronicSignatureControlPropertyRules = /*#__PURE__*/ function(BaseControl
|
|
|
129
129
|
type: 'array',
|
|
130
130
|
required: true,
|
|
131
131
|
min: 1,
|
|
132
|
-
message: '
|
|
132
|
+
message: RulesMessage.getMessage('pleaseSelectSigner')
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
},
|
|
@@ -137,7 +137,7 @@ var ElectronicSignatureControlPropertyRules = /*#__PURE__*/ function(BaseControl
|
|
|
137
137
|
type: 'array',
|
|
138
138
|
required: true,
|
|
139
139
|
min: 1,
|
|
140
|
-
message: '
|
|
140
|
+
message: RulesMessage.getMessage('pleaseSelectSignType')
|
|
141
141
|
},
|
|
142
142
|
telephone: {
|
|
143
143
|
type: 'object',
|
|
@@ -146,7 +146,7 @@ var ElectronicSignatureControlPropertyRules = /*#__PURE__*/ function(BaseControl
|
|
|
146
146
|
// 是外部,就需要校验
|
|
147
147
|
// 数组长度为0,就是错误的
|
|
148
148
|
if (current.type === 'public' && isArray(value.value) && value.value.length === 0) {
|
|
149
|
-
callback('
|
|
149
|
+
callback(RulesMessage.getMessage('pleaseSelectPhoneOrEmail'));
|
|
150
150
|
return;
|
|
151
151
|
}
|
|
152
152
|
callback();
|
|
@@ -159,7 +159,7 @@ var ElectronicSignatureControlPropertyRules = /*#__PURE__*/ function(BaseControl
|
|
|
159
159
|
// 是外部,并且签章类型勾选了公司,就需要校验,
|
|
160
160
|
// 数组长度为0,就是错误的
|
|
161
161
|
if (current.type === 'public' && current.signatureType.includes('company') && isArray(value.value) && value.value.length === 0) {
|
|
162
|
-
callback('
|
|
162
|
+
callback(RulesMessage.getMessage('pleaseSelectCompanyName'));
|
|
163
163
|
return;
|
|
164
164
|
}
|
|
165
165
|
callback();
|
|
@@ -82,6 +82,7 @@ function _create_super(Derived) {
|
|
|
82
82
|
return _possible_constructor_return(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
+
import { RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
85
86
|
import EmployeeControl from './designer';
|
|
86
87
|
import { BaseControlProperty, BaseControlPropertyRuntimeRules, MultistageFillingItem } from '@byteluck-fe/model-driven-core';
|
|
87
88
|
var EmployeeControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeRules) {
|
|
@@ -107,8 +108,8 @@ var EmployeeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
107
108
|
_class_call_check(this, EmployeeProperty);
|
|
108
109
|
var _this;
|
|
109
110
|
_this = _super.call(this, props);
|
|
110
|
-
/**
|
|
111
|
-
* 展示类型: 默认形式 / 树状人员
|
|
111
|
+
/**
|
|
112
|
+
* 展示类型: 默认形式 / 树状人员
|
|
112
113
|
* */ _define_property(_assert_this_initialized(_this), "showType", void 0);
|
|
113
114
|
_define_property(_assert_this_initialized(_this), "range", void 0 // 人员范围: 公司全员 / 指定人员
|
|
114
115
|
);
|
|
@@ -137,7 +138,7 @@ var EmployeeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
137
138
|
var _props_caption;
|
|
138
139
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : EmployeeControl.controlName;
|
|
139
140
|
var _props_placeholder;
|
|
140
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '
|
|
141
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : RulesMessage.getMessage('pleaseEnterNameorEmail');
|
|
141
142
|
var _props_openMultistageFilling;
|
|
142
143
|
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
143
144
|
_this.multistageFilling = [];
|
|
@@ -138,8 +138,8 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
138
138
|
_class_call_check(this, Employee2Property);
|
|
139
139
|
var _this;
|
|
140
140
|
_this = _super.call(this, props);
|
|
141
|
-
/**
|
|
142
|
-
* 展示类型: 默认形式 / 树状人员
|
|
141
|
+
/**
|
|
142
|
+
* 展示类型: 默认形式 / 树状人员
|
|
143
143
|
* */ _define_property(_assert_this_initialized(_this), "showType", void 0);
|
|
144
144
|
_define_property(_assert_this_initialized(_this), "range", void 0 // 人员范围: 公司全员 / 指定人员
|
|
145
145
|
);
|
|
@@ -177,7 +177,7 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
177
177
|
var _props_caption;
|
|
178
178
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : Employee2Control.controlName;
|
|
179
179
|
var _props_placeholder;
|
|
180
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '
|
|
180
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : RulesMessage.getMessage('pleaseEnterNameorEmail');
|
|
181
181
|
var _props_datasourceBind;
|
|
182
182
|
_this.datasourceBind = new SuperDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
183
183
|
attributes: Employee2Control.controlCustomAttributes
|
|
@@ -197,7 +197,7 @@ var InputControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropert
|
|
|
197
197
|
/**
|
|
198
198
|
* 密码模式 '' | 'ALL_MASK' | 'LAST_FOUR_MASK'
|
|
199
199
|
* @defaultValue ''
|
|
200
|
-
* @public
|
|
200
|
+
* @public
|
|
201
201
|
*/ _define_property(_assert_this_initialized(_this), "encryptedMode", void 0);
|
|
202
202
|
var _props_maxLength;
|
|
203
203
|
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 200;
|
|
@@ -209,7 +209,7 @@ var InputControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropert
|
|
|
209
209
|
var _props_caption;
|
|
210
210
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : InputControl.controlName;
|
|
211
211
|
var _props_placeholder;
|
|
212
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '
|
|
212
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : RulesMessage.getMessage('pleaseEnter');
|
|
213
213
|
var _props_encrypted;
|
|
214
214
|
_this.encrypted = (_props_encrypted = props === null || props === void 0 ? void 0 : props.encrypted) !== null && _props_encrypted !== void 0 ? _props_encrypted : false;
|
|
215
215
|
var _props_encryptedMode;
|
|
@@ -255,7 +255,7 @@ var NumberControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProper
|
|
|
255
255
|
var _props_caption;
|
|
256
256
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : NumberControl.controlName;
|
|
257
257
|
var _props_placeholder;
|
|
258
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '
|
|
258
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : RulesMessage.getMessage('pleaseEnter');
|
|
259
259
|
var _props_defaultValue;
|
|
260
260
|
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
261
261
|
_this.regularRules = new RegularRules(props === null || props === void 0 ? void 0 : props.regularRules);
|
|
@@ -148,6 +148,12 @@ var OrganizationSelectionControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
], [
|
|
151
|
+
{
|
|
152
|
+
key: "controlName",
|
|
153
|
+
get: function get() {
|
|
154
|
+
return RulesMessage.getMessage('organizationSelection');
|
|
155
|
+
}
|
|
156
|
+
},
|
|
151
157
|
{
|
|
152
158
|
key: "controlIcon",
|
|
153
159
|
get: function get() {
|
|
@@ -175,7 +181,6 @@ var OrganizationSelectionControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
175
181
|
]);
|
|
176
182
|
return OrganizationSelectionControl;
|
|
177
183
|
}(DesignerFormControl);
|
|
178
|
-
_define_property(OrganizationSelectionControl, "controlName", RulesMessage.getMessage('organizationSelection'));
|
|
179
184
|
_define_property(OrganizationSelectionControl, "controlFieldType", FieldTypes.DEPARTMENTS);
|
|
180
185
|
_define_property(OrganizationSelectionControl, "setting", [
|
|
181
186
|
{
|
|
@@ -138,42 +138,42 @@ var OrganizationSelectionProperty = /*#__PURE__*/ function(BaseControlProperty)
|
|
|
138
138
|
_class_call_check(this, OrganizationSelectionProperty);
|
|
139
139
|
var _this;
|
|
140
140
|
_this = _super.call(this, props);
|
|
141
|
-
/**
|
|
142
|
-
* 展示类型: 默认形式 / 树状部门
|
|
141
|
+
/**
|
|
142
|
+
* 展示类型: 默认形式 / 树状部门
|
|
143
143
|
* */ _define_property(_assert_this_initialized(_this), "showType", void 0);
|
|
144
|
-
/**
|
|
145
|
-
* 部门范围: 所有部门 / 指定部门
|
|
144
|
+
/**
|
|
145
|
+
* 部门范围: 所有部门 / 指定部门
|
|
146
146
|
* */ _define_property(_assert_this_initialized(_this), "range", void 0);
|
|
147
|
-
/**
|
|
148
|
-
* 默认值类型:发起人部门/ 指定部门 /无
|
|
147
|
+
/**
|
|
148
|
+
* 默认值类型:发起人部门/ 指定部门 /无
|
|
149
149
|
*/ _define_property(_assert_this_initialized(_this), "defaultValueType", void 0);
|
|
150
|
-
/**
|
|
151
|
-
* 部门多选
|
|
150
|
+
/**
|
|
151
|
+
* 部门多选
|
|
152
152
|
* */ _define_property(_assert_this_initialized(_this), "multiple", void 0);
|
|
153
|
-
/**
|
|
154
|
-
* 指定部门范围
|
|
153
|
+
/**
|
|
154
|
+
* 指定部门范围
|
|
155
155
|
* */ _define_property(_assert_this_initialized(_this), "rangeOptions", void 0);
|
|
156
|
-
/**
|
|
157
|
-
* 默认值
|
|
156
|
+
/**
|
|
157
|
+
* 默认值
|
|
158
158
|
* */ _define_property(_assert_this_initialized(_this), "defaultValue", void 0);
|
|
159
|
-
/**
|
|
160
|
-
* 部门显示层级
|
|
159
|
+
/**
|
|
160
|
+
* 部门显示层级
|
|
161
161
|
* */ _define_property(_assert_this_initialized(_this), "displayLevel", void 0);
|
|
162
|
-
/**
|
|
163
|
-
* 是否展示子部门
|
|
162
|
+
/**
|
|
163
|
+
* 是否展示子部门
|
|
164
164
|
* */ _define_property(_assert_this_initialized(_this), "showSubDept", void 0);
|
|
165
|
-
/**
|
|
166
|
-
* 多级填充
|
|
165
|
+
/**
|
|
166
|
+
* 多级填充
|
|
167
167
|
* */ _define_property(_assert_this_initialized(_this), "multistageFilling", void 0);
|
|
168
|
-
/**
|
|
169
|
-
* 数据设置
|
|
168
|
+
/**
|
|
169
|
+
* 数据设置
|
|
170
170
|
* */ _define_property(_assert_this_initialized(_this), "datasourceBind", void 0);
|
|
171
|
-
/**
|
|
172
|
-
* 绑定列表页
|
|
173
|
-
* @public
|
|
171
|
+
/**
|
|
172
|
+
* 绑定列表页
|
|
173
|
+
* @public
|
|
174
174
|
*/ _define_property(_assert_this_initialized(_this), "listPageBind", void 0);
|
|
175
|
-
/**
|
|
176
|
-
* 数据类型 行政 or 业务
|
|
175
|
+
/**
|
|
176
|
+
* 数据类型 行政 or 业务
|
|
177
177
|
* */ _define_property(_assert_this_initialized(_this), "datasourceType", void 0 //数据类型 行政 'administration'| 业务 'business'
|
|
178
178
|
);
|
|
179
179
|
_define_property(_assert_this_initialized(_this), "businessType", void 0 //业务部门类型 'all' | 'assign'
|
|
@@ -210,7 +210,7 @@ var OrganizationSelectionProperty = /*#__PURE__*/ function(BaseControlProperty)
|
|
|
210
210
|
var _props_caption;
|
|
211
211
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : OrganizationSelectionControl.controlName;
|
|
212
212
|
var _props_placeholder;
|
|
213
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '
|
|
213
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : RulesMessage.getMessage('pleaseSelectOrg');
|
|
214
214
|
var _props_datasourceBind;
|
|
215
215
|
_this.datasourceBind = new OrganizationDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
216
216
|
attributes: OrganizationSelectionControl.controlCustomAttributes
|
|
@@ -162,7 +162,7 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
162
162
|
var _props_caption;
|
|
163
163
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : RichTextControl.controlName;
|
|
164
164
|
var _props_placeholder;
|
|
165
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '
|
|
165
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : RulesMessage.getMessage('pleaseEnter');
|
|
166
166
|
return _this;
|
|
167
167
|
}
|
|
168
168
|
return RichTextProperty;
|