@byteluck-fe/model-driven-controls 2.23.0-beta.27-zt → 2.23.0-beta.27-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 (43) 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/Attachment/designer.js +4 -0
  7. package/dist/esm/formControls/Attachment/property.js +3 -1
  8. package/dist/esm/formControls/Employee/property.js +1 -1
  9. package/dist/esm/formControls/Employee2/designer.js +6 -0
  10. package/dist/esm/formControls/Employee2/property.js +1 -1
  11. package/dist/esm/formControls/Image/designer.js +4 -0
  12. package/dist/esm/formControls/index.js +0 -1
  13. package/dist/esm/framework.js +30 -44
  14. package/dist/esm/layoutControls/ListView/property.js +3 -5
  15. package/dist/index.umd.js +1 -1
  16. package/dist/types/baseControls/Text/property.d.ts +0 -1
  17. package/dist/types/baseControls/Title/property.d.ts +1 -0
  18. package/dist/types/columnControls/index.d.ts +0 -1
  19. package/dist/types/formControls/Attachment/property.d.ts +1 -0
  20. package/dist/types/formControls/Employee2/designer.d.ts +1 -0
  21. package/dist/types/formControls/index.d.ts +0 -1
  22. package/dist/types/type.d.ts +2 -4
  23. package/package.json +5 -5
  24. package/dist/esm/columnControls/SignatureColumn/designer.js +0 -120
  25. package/dist/esm/columnControls/SignatureColumn/index.js +0 -11
  26. package/dist/esm/columnControls/SignatureColumn/property.js +0 -78
  27. package/dist/esm/columnControls/SignatureColumn/runtime.js +0 -93
  28. package/dist/esm/columnControls/SignatureColumn/types.js +0 -0
  29. package/dist/esm/formControls/HandSignature/designer.js +0 -157
  30. package/dist/esm/formControls/HandSignature/index.js +0 -11
  31. package/dist/esm/formControls/HandSignature/property.js +0 -134
  32. package/dist/esm/formControls/HandSignature/runtime.js +0 -114
  33. package/dist/esm/formControls/HandSignature/types.js +0 -0
  34. package/dist/types/columnControls/SignatureColumn/designer.d.ts +0 -14
  35. package/dist/types/columnControls/SignatureColumn/index.d.ts +0 -12
  36. package/dist/types/columnControls/SignatureColumn/property.d.ts +0 -6
  37. package/dist/types/columnControls/SignatureColumn/runtime.d.ts +0 -12
  38. package/dist/types/columnControls/SignatureColumn/types.d.ts +0 -0
  39. package/dist/types/formControls/HandSignature/designer.d.ts +0 -14
  40. package/dist/types/formControls/HandSignature/index.d.ts +0 -12
  41. package/dist/types/formControls/HandSignature/property.d.ts +0 -19
  42. package/dist/types/formControls/HandSignature/runtime.d.ts +0 -12
  43. 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';
@@ -161,6 +161,10 @@ _define_property(AttachmentControl, "setting", [
161
161
  COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
162
162
  ]
163
163
  },
164
+ {
165
+ key: 'attachment-storage',
166
+ visible: true
167
+ },
164
168
  {
165
169
  key: 'attachment-state',
166
170
  visible: true
@@ -133,7 +133,7 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
133
133
  var _this;
134
134
  _this = _call_super(this, AttachmentProperty, [
135
135
  props
136
- ]), _define_property(_this, "defaultValue", void 0), // 默认格式和列表格式,原应用内是title和table
136
+ ]), _define_property(_this, "storageType", void 0), _define_property(_this, "defaultValue", void 0), // 默认格式和列表格式,原应用内是title和table
137
137
  _define_property(_this, "showType", void 0), _define_property(_this, "resultShowType", void 0), _define_property(_this, "attachmentAccept", void 0), _define_property(_this, "maxLimit", void 0), _define_property(_this, "minLimit", void 0), _define_property(_this, "isShowWatermark", void 0 // 是否开启水印
138
138
  ), _define_property(_this, "watermarkFx", void 0), /**
139
139
  * maxSize 存储大小,单位为Byte,默认值为100MB
@@ -167,6 +167,8 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
167
167
  'preview',
168
168
  'download'
169
169
  ];
170
+ var _props_storageType;
171
+ _this.storageType = (_props_storageType = props === null || props === void 0 ? void 0 : props.storageType) !== null && _props_storageType !== void 0 ? _props_storageType : 'local';
170
172
  return _this;
171
173
  }
172
174
  return AttachmentProperty;
@@ -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 = [];
@@ -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',
@@ -154,7 +154,7 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
154
154
  var _props_caption;
155
155
  _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : Employee2Control.controlName;
156
156
  var _props_placeholder;
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, '请输入姓名或者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, '请输入人员姓名或邮箱');
158
158
  var _props_datasourceBind;
159
159
  _this.datasourceBind = new SuperDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
160
160
  attributes: Employee2Control.controlCustomAttributes
@@ -170,6 +170,10 @@ _define_property(ImageControl, "setting", [
170
170
  COMMON_SETTING_TYPE.IS_SHOW_WATERMARK
171
171
  ]
172
172
  },
173
+ {
174
+ key: 'attachment-storage',
175
+ visible: true
176
+ },
173
177
  {
174
178
  key: 'attachment-limit',
175
179
  visible: true
@@ -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';
@@ -19,32 +19,28 @@ function _define_property(obj, key, value) {
19
19
  import { genNonDuplicateId } from '@byteluck-fe/model-driven-shared';
20
20
  import { RightVariable } from '@byteluck-fe/model-driven-core';
21
21
  import { getLocaleText } from '@byteluck-fe/locale-message';
22
- export var TitleConfigEnum = /*#__PURE__*/ function(TitleConfigEnum) {
22
+ export var TitleConfigEnum;
23
+ (function(TitleConfigEnum) {
23
24
  TitleConfigEnum["ShowBizKey"] = "is_show_biz_key";
24
25
  TitleConfigEnum["ShowSubmitUser"] = "is_show_submit_user";
25
26
  TitleConfigEnum["ShowSubmitTime"] = "is_show_submit_time";
26
27
  TitleConfigEnum["ShowSubmitDept"] = "is_show_submit_dept";
27
28
  TitleConfigEnum["ShowCurrentApprovar"] = "is_show_current_approvar";
28
29
  TitleConfigEnum["ShowTitle"] = "is_show_title";
29
- return TitleConfigEnum;
30
- }({});
31
- /**
32
- * 时间范围类型
33
- */ export var DATE_CONFIG_TYPE = /*#__PURE__*/ function(DATE_CONFIG_TYPE) {
30
+ })(TitleConfigEnum || (TitleConfigEnum = {}));
31
+ export var DATE_CONFIG_TYPE;
32
+ (function(DATE_CONFIG_TYPE) {
34
33
  DATE_CONFIG_TYPE["EARLY_DATE"] = "earlyDate";
35
34
  DATE_CONFIG_TYPE["LATE_DATE"] = "lateDate";
36
35
  DATE_CONFIG_TYPE["UN_SELECT_ABLE_INTERVAL"] = "unSelectAbleInterval";
37
- return DATE_CONFIG_TYPE;
38
- }({});
39
- /**
40
- * 时间限制类型
41
- */ export var DATE_LIMIT_TYPE = /*#__PURE__*/ function(DATE_LIMIT_TYPE) {
36
+ })(DATE_CONFIG_TYPE || (DATE_CONFIG_TYPE = {}));
37
+ export var DATE_LIMIT_TYPE;
38
+ (function(DATE_LIMIT_TYPE) {
42
39
  DATE_LIMIT_TYPE["FILE_IN_TIME"] = "filledInTime";
43
40
  DATE_LIMIT_TYPE["BEFORE_TIME"] = "beforeTime";
44
41
  DATE_LIMIT_TYPE["AFTER_TIME"] = "afterTime";
45
42
  DATE_LIMIT_TYPE["TIME_SPECIFIED"] = "timeSpecified";
46
- return DATE_LIMIT_TYPE;
47
- }({});
43
+ })(DATE_LIMIT_TYPE || (DATE_LIMIT_TYPE = {}));
48
44
  /**
49
45
  * 时间限制范围
50
46
  */ export var LimitDate = function LimitDate() {
@@ -71,15 +67,15 @@ export var TitleConfigEnum = /*#__PURE__*/ function(TitleConfigEnum) {
71
67
  this.dateLimitType = props.dateLimitType;
72
68
  this.value = props.value;
73
69
  };
74
- export var SCORE_TYPE = /*#__PURE__*/ function(SCORE_TYPE) {
70
+ export var SCORE_TYPE;
71
+ (function(SCORE_TYPE) {
75
72
  SCORE_TYPE["PRAISE"] = "praise";
76
73
  SCORE_TYPE["STAR"] = "star";
77
74
  SCORE_TYPE["FLOWER"] = "flower";
78
75
  SCORE_TYPE["HAND"] = "hand";
79
76
  SCORE_TYPE["HEART"] = "heart";
80
77
  SCORE_TYPE["SMILE"] = "smile";
81
- return SCORE_TYPE;
82
- }({});
78
+ })(SCORE_TYPE || (SCORE_TYPE = {}));
83
79
  export var Explain = function Explain(props) {
84
80
  "use strict";
85
81
  _class_call_check(this, Explain);
@@ -90,15 +86,15 @@ export var Explain = function Explain(props) {
90
86
  var _props_text;
91
87
  this.text = (_props_text = props === null || props === void 0 ? void 0 : props.text) !== null && _props_text !== void 0 ? _props_text : '';
92
88
  };
93
- export var LINE_STYLE = /*#__PURE__*/ function(LINE_STYLE) {
89
+ export var LINE_STYLE;
90
+ (function(LINE_STYLE) {
94
91
  LINE_STYLE["SOLID"] = "solid-line";
95
92
  LINE_STYLE["DASHED"] = "dashed-line";
96
93
  LINE_STYLE["BOLD_SOLID"] = "bold-solid-line";
97
94
  LINE_STYLE["BOLD_DASHED"] = "bold-dashed-line";
98
95
  LINE_STYLE["DOUBLE_SOLID"] = "double-solid-line";
99
96
  LINE_STYLE["DOUBLE_DASHED"] = "double-dashed-line";
100
- return LINE_STYLE;
101
- }({});
97
+ })(LINE_STYLE || (LINE_STYLE = {}));
102
98
  export var UndersignedPerson = function UndersignedPerson(props) {
103
99
  "use strict";
104
100
  _class_call_check(this, UndersignedPerson);
@@ -351,42 +347,32 @@ export var FlexStyleConfig = function FlexStyleConfig(props) {
351
347
  var _props_alignItems;
352
348
  this.alignItems = (_props_alignItems = props === null || props === void 0 ? void 0 : props.alignItems) !== null && _props_alignItems !== void 0 ? _props_alignItems : 'flex-start';
353
349
  };
354
- /**
355
- * 加密类型
356
- */ export var EncryptTypeEnum = /*#__PURE__*/ function(EncryptTypeEnum) {
350
+ export var EncryptTypeEnum;
351
+ (function(EncryptTypeEnum) {
357
352
  EncryptTypeEnum["NO_MASK"] = "NO_MASK";
358
353
  EncryptTypeEnum["LAST_FOUR_MASK"] = "LAST_FOUR_MASK";
359
354
  EncryptTypeEnum["ALL_MASK"] = "ALL_MASK";
360
- return EncryptTypeEnum;
361
- }({});
362
- /**
363
- * 新人员 内部组织 or 外部组织
364
- */ export var OrganizeType = /*#__PURE__*/ function(OrganizeType) {
355
+ })(EncryptTypeEnum || (EncryptTypeEnum = {}));
356
+ export var OrganizeType;
357
+ (function(OrganizeType) {
365
358
  OrganizeType["ALL"] = "ALL";
366
359
  OrganizeType["INTERNAL"] = "INTERNAL";
367
360
  OrganizeType["EXTERNAL"] = "EXTERNAL";
368
361
  OrganizeType["INTERNAL_EXTERNAL"] = "INTERNAL_EXTERNAL";
369
- return OrganizeType;
370
- }({});
371
- /**
372
- * 新部门 行政 or 业务
373
- */ export var DepartmentType = /*#__PURE__*/ function(DepartmentType) {
362
+ })(OrganizeType || (OrganizeType = {}));
363
+ export var DepartmentType;
364
+ (function(DepartmentType) {
374
365
  DepartmentType["INTERNAL_BUSINESS"] = "INTERNAL_BUSINESS";
375
366
  DepartmentType["INTERNAL"] = "INTERNAL";
376
367
  DepartmentType["BUSINESS"] = "BUSINESS";
377
- return DepartmentType;
378
- }({});
379
- /**
380
- * 指定或者全部
381
- */ export var AssignType = /*#__PURE__*/ function(AssignType) {
368
+ })(DepartmentType || (DepartmentType = {}));
369
+ export var AssignType;
370
+ (function(AssignType) {
382
371
  AssignType["ALL"] = "all";
383
372
  AssignType["ASSIGN"] = "assign";
384
- return AssignType;
385
- }({});
386
- /**
387
- * 内部组织类型
388
- */ export var InternalType = /*#__PURE__*/ function(InternalType) {
373
+ })(AssignType || (AssignType = {}));
374
+ export var InternalType;
375
+ (function(InternalType) {
389
376
  InternalType["ALL"] = "all";
390
377
  InternalType["ADMIN"] = "admin";
391
- return InternalType;
392
- }({});
378
+ })(InternalType || (InternalType = {}));
@@ -73,13 +73,11 @@ function _is_native_reflect_construct() {
73
73
  import { LayoutControlProperty, PropertyRules, PropertyRuntimeRules, DataSourceBind, SubListPageConfig, JoinRelation, RowStyle } from '@byteluck-fe/model-driven-core';
74
74
  import { initOptionAndDataSourceRules } from '@byteluck-fe/model-driven-core';
75
75
  import { getLocaleText } from '@byteluck-fe/locale-message';
76
- /**
77
- * @internal
78
- */ export var TriggerType = /*#__PURE__*/ function(TriggerType) {
76
+ export var TriggerType;
77
+ (function(TriggerType) {
79
78
  TriggerType[TriggerType["CLICK_ROW"] = 1] = "CLICK_ROW";
80
79
  TriggerType[TriggerType["CLICK_CELL"] = 2] = "CLICK_CELL";
81
- return TriggerType;
82
- }({});
80
+ })(TriggerType || (TriggerType = {}));
83
81
  /**
84
82
  * @internal
85
83
  */ var ListViewControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {