@byteluck-fe/model-driven-controls 2.23.0-beta.21-zt → 2.23.0-beta.22-dx

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.
Files changed (38) hide show
  1. package/dist/esm/baseControls/Text/designer.js +0 -4
  2. package/dist/esm/baseControls/Text/property.js +1 -3
  3. package/dist/esm/baseControls/Title/designer.js +4 -9
  4. package/dist/esm/baseControls/Title/property.js +5 -2
  5. package/dist/esm/columnControls/index.js +0 -1
  6. package/dist/esm/formControls/Department2/designer.js +1 -1
  7. package/dist/esm/formControls/Employee/property.js +3 -3
  8. package/dist/esm/formControls/Employee2/designer.js +3 -2
  9. package/dist/esm/formControls/Employee2/property.js +6 -3
  10. package/dist/esm/formControls/index.js +0 -1
  11. package/dist/index.umd.js +1 -1
  12. package/dist/types/baseControls/Text/property.d.ts +0 -1
  13. package/dist/types/baseControls/Title/property.d.ts +1 -0
  14. package/dist/types/columnControls/index.d.ts +0 -1
  15. package/dist/types/formControls/Employee2/property.d.ts +1 -0
  16. package/dist/types/formControls/index.d.ts +0 -1
  17. package/dist/types/type.d.ts +2 -4
  18. package/package.json +5 -5
  19. package/dist/esm/columnControls/SignatureColumn/designer.js +0 -120
  20. package/dist/esm/columnControls/SignatureColumn/index.js +0 -11
  21. package/dist/esm/columnControls/SignatureColumn/property.js +0 -78
  22. package/dist/esm/columnControls/SignatureColumn/runtime.js +0 -93
  23. package/dist/esm/columnControls/SignatureColumn/types.js +0 -0
  24. package/dist/esm/formControls/HandSignature/designer.js +0 -157
  25. package/dist/esm/formControls/HandSignature/index.js +0 -11
  26. package/dist/esm/formControls/HandSignature/property.js +0 -132
  27. package/dist/esm/formControls/HandSignature/runtime.js +0 -114
  28. package/dist/esm/formControls/HandSignature/types.js +0 -0
  29. package/dist/types/columnControls/SignatureColumn/designer.d.ts +0 -14
  30. package/dist/types/columnControls/SignatureColumn/index.d.ts +0 -12
  31. package/dist/types/columnControls/SignatureColumn/property.d.ts +0 -6
  32. package/dist/types/columnControls/SignatureColumn/runtime.d.ts +0 -12
  33. package/dist/types/columnControls/SignatureColumn/types.d.ts +0 -0
  34. package/dist/types/formControls/HandSignature/designer.d.ts +0 -14
  35. package/dist/types/formControls/HandSignature/index.d.ts +0 -12
  36. package/dist/types/formControls/HandSignature/property.d.ts +0 -19
  37. package/dist/types/formControls/HandSignature/runtime.d.ts +0 -12
  38. package/dist/types/formControls/HandSignature/types.d.ts +0 -0
@@ -141,10 +141,6 @@ _define_property(TextControl, "setting", [
141
141
  key: 'text-color',
142
142
  visible: true
143
143
  },
144
- {
145
- key: 'text-bg-color',
146
- visible: true
147
- },
148
144
  {
149
145
  key: 'text-state',
150
146
  visible: true
@@ -81,14 +81,12 @@ 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, "bgColor", void 0), _define_property(_this, "icon", void 0), _define_property(_this, "align", void 0), _define_property(_this, "showState", void 0);
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
85
  var _props_fontSize;
86
86
  // this.dataBind = new DataBind(props?.dataBind)
87
87
  _this.fontSize = (_props_fontSize = props === null || props === void 0 ? void 0 : props.fontSize) !== null && _props_fontSize !== void 0 ? _props_fontSize : '14px';
88
88
  var _props_color;
89
89
  _this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : '#646A73';
90
- var _props_bgColor;
91
- _this.bgColor = (_props_bgColor = props === null || props === void 0 ? void 0 : props.bgColor) !== null && _props_bgColor !== void 0 ? _props_bgColor : '#fff';
92
90
  var _props_icon;
93
91
  _this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : 'page-hint';
94
92
  var _props_showState;
@@ -124,11 +124,6 @@ var TitleControl = /*#__PURE__*/ function(DesignerControl) {
124
124
  }(DesignerControl);
125
125
  _define_property(TitleControl, "controlFieldType", FieldTypes.AUTO_NUMBER);
126
126
  _define_property(TitleControl, "setting", [
127
- // {
128
- // key: 'common-setting',
129
- // visible: true,
130
- // showItems: [COMMON_SETTING_TYPE.IS_HIDE],
131
- // },
132
127
  {
133
128
  key: 'common-setting',
134
129
  visible: true,
@@ -147,10 +142,10 @@ _define_property(TitleControl, "setting", [
147
142
  key: 'title-setting',
148
143
  visible: true
149
144
  },
150
- // {
151
- // key: 'position',
152
- // visible: true,
153
- // },
145
+ {
146
+ key: 'position',
147
+ visible: true
148
+ },
154
149
  {
155
150
  key: 'super-setting',
156
151
  visible: true
@@ -130,7 +130,7 @@ var TitleProperty = /*#__PURE__*/ function(Property) {
130
130
  var _this;
131
131
  _this = _call_super(this, TitleProperty, [
132
132
  props
133
- ]), _define_property(_this, "dataBind", void 0), _define_property(_this, "caption", void 0), _define_property(_this, "config", void 0);
133
+ ]), _define_property(_this, "dataBind", void 0), _define_property(_this, "caption", void 0), _define_property(_this, "config", void 0), _define_property(_this, "position", void 0);
134
134
  _this.dataBind = new DataBind(props === null || props === void 0 ? void 0 : props.dataBind);
135
135
  var _props_config;
136
136
  _this.config = (_props_config = props === null || props === void 0 ? void 0 : props.config) !== null && _props_config !== void 0 ? _props_config : [
@@ -138,10 +138,13 @@ var TitleProperty = /*#__PURE__*/ function(Property) {
138
138
  TitleConfigEnum.ShowSubmitUser,
139
139
  TitleConfigEnum.ShowSubmitDept,
140
140
  TitleConfigEnum.ShowSubmitTime,
141
- TitleConfigEnum.ShowCurrentApprovar
141
+ TitleConfigEnum.ShowCurrentApprovar,
142
+ TitleConfigEnum.ShowTitle
142
143
  ];
143
144
  var _props_caption, _ref;
144
145
  _this.caption = (_ref = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerTitleControl === null || DesignerTitleControl === void 0 ? void 0 : DesignerTitleControl.controlName) !== null && _ref !== void 0 ? _ref : '';
146
+ var _props_position;
147
+ _this.position = (_props_position = props === null || props === void 0 ? void 0 : props.position) !== null && _props_position !== void 0 ? _props_position : 'top';
145
148
  return _this;
146
149
  }
147
150
  return TitleProperty;
@@ -8,7 +8,6 @@ export { default as DepartmentColumn } from './DepartmentColumn';
8
8
  export { default as AutoNumberColumn } from './AutoNumberColumn';
9
9
  export { default as FileColumn } from './FileColumn';
10
10
  export { default as ImageColumn } from './ImageColumn';
11
- export { default as SignatureColumn } from './SignatureColumn';
12
11
  export { default as PeopleColumn } from './PeopleColumn';
13
12
  export { default as LocationColumn } from './LocationColumn';
14
13
  export { default as CustomColumn } from './CustomColumn';
@@ -208,7 +208,7 @@ _define_property(Department2Control, "setting", [
208
208
  },
209
209
  {
210
210
  key: 'department-datasource-setting',
211
- visible: false
211
+ visible: true
212
212
  },
213
213
  {
214
214
  key: 'department-defaultval',
@@ -97,8 +97,8 @@ var EmployeeProperty = /*#__PURE__*/ function(BaseControlProperty) {
97
97
  var _this;
98
98
  _this = _call_super(this, EmployeeProperty, [
99
99
  props
100
- ]), /**
101
- * 展示类型: 默认形式 / 树状人员
100
+ ]), /**
101
+ * 展示类型: 默认形式 / 树状人员
102
102
  * */ _define_property(_this, "showType", void 0), _define_property(_this, "range", void 0 // 人员范围: 公司全员 / 指定人员
103
103
  ), // 选择指定人员时的范围
104
104
  _define_property(_this, "rangeOptions", void 0), _define_property(_this, "multiple", void 0 // 是否多选
@@ -120,7 +120,7 @@ var EmployeeProperty = /*#__PURE__*/ function(BaseControlProperty) {
120
120
  var _props_caption;
121
121
  _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : EmployeeControl.controlName;
122
122
  var _props_placeholder;
123
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnterNameorEmail', null, '请输入姓名或者e通账号');
123
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnterNameorEmail', null, '请输入人员姓名或邮箱');
124
124
  var _props_openMultistageFilling;
125
125
  _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
126
126
  _this.multistageFilling = [];
@@ -167,12 +167,13 @@ _define_property(Employee2Control, "setting", [
167
167
  COMMON_SETTING_TYPE.REQUIRED,
168
168
  COMMON_SETTING_TYPE.IS_HIDE,
169
169
  COMMON_SETTING_TYPE.MULTIPLE,
170
- COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
170
+ COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
171
+ COMMON_SETTING_TYPE.MAIN_DEPT_FLAG
171
172
  ]
172
173
  },
173
174
  {
174
175
  key: 'employee-datasource-setting',
175
- visible: false
176
+ visible: true
176
177
  },
177
178
  {
178
179
  key: 'employee-range',
@@ -126,8 +126,8 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
126
126
  var _this;
127
127
  _this = _call_super(this, Employee2Property, [
128
128
  props
129
- ]), /**
130
- * 展示类型: 默认形式 / 树状人员
129
+ ]), /**
130
+ * 展示类型: 默认形式 / 树状人员
131
131
  * */ _define_property(_this, "showType", void 0), _define_property(_this, "range", void 0 // 人员范围: 公司全员 / 指定人员
132
132
  ), // 选择指定人员时的范围
133
133
  _define_property(_this, "rangeOptions", void 0), _define_property(_this, "multiple", void 0 // 是否多选
@@ -137,6 +137,7 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
137
137
  ), _define_property(_this, "externalType", void 0 // 外部组织:全部 'all' | 指定 'assign'
138
138
  ), _define_property(_this, "externalScope", void 0 //指定外部组织
139
139
  ), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
140
+ ), _define_property(_this, "mainDeptFlag", void 0 //开启查询非主部门人员
140
141
  );
141
142
  var _props_showType;
142
143
  _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'default';
@@ -153,7 +154,7 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
153
154
  var _props_caption;
154
155
  _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : Employee2Control.controlName;
155
156
  var _props_placeholder;
156
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnterNameorEmail', null, '请输入姓名或者e通账号');
157
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnterNameorEmail', null, '请输入人员姓名或邮箱');
157
158
  var _props_datasourceBind;
158
159
  _this.datasourceBind = new SuperDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
159
160
  attributes: Employee2Control.controlCustomAttributes
@@ -169,6 +170,8 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
169
170
  _this.externalScope = (_props_externalScope = props === null || props === void 0 ? void 0 : props.externalScope) !== null && _props_externalScope !== void 0 ? _props_externalScope : [];
170
171
  var _props_openMultistageFilling;
171
172
  _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
173
+ var _props_mainDeptFlag;
174
+ _this.mainDeptFlag = (_props_mainDeptFlag = props === null || props === void 0 ? void 0 : props.mainDeptFlag) !== null && _props_mainDeptFlag !== void 0 ? _props_mainDeptFlag : false;
172
175
  _this.multistageFilling = [];
173
176
  if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
174
177
  props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
@@ -24,7 +24,6 @@ export { default as SelectRelation } from './SelectRelation';
24
24
  export { default as SearchInput } from './SearchInput';
25
25
  export { default as Tree } from './Tree';
26
26
  export { default as Employee2 } from './Employee2';
27
- export { default as HandSignature } from './HandSignature';
28
27
  export { default as ElectronicSignature } from './ElectronicSignature';
29
28
  export { default as WPS } from './WPS';
30
29
  export { default as Department2 } from './Department2';