@byteluck-fe/model-driven-controls 2.23.0-beta.25-dx → 2.23.0-beta.26-zt

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 (36) hide show
  1. package/dist/esm/baseControls/Text/designer.js +4 -0
  2. package/dist/esm/baseControls/Text/property.js +3 -1
  3. package/dist/esm/baseControls/Title/designer.js +9 -4
  4. package/dist/esm/baseControls/Title/property.js +2 -5
  5. package/dist/esm/columnControls/SignatureColumn/designer.js +120 -0
  6. package/dist/esm/columnControls/SignatureColumn/index.js +11 -0
  7. package/dist/esm/columnControls/SignatureColumn/property.js +78 -0
  8. package/dist/esm/columnControls/SignatureColumn/runtime.js +93 -0
  9. package/dist/esm/columnControls/SignatureColumn/types.js +0 -0
  10. package/dist/esm/columnControls/index.js +1 -0
  11. package/dist/esm/formControls/Employee/property.js +1 -1
  12. package/dist/esm/formControls/Employee2/property.js +3 -3
  13. package/dist/esm/formControls/HandSignature/designer.js +157 -0
  14. package/dist/esm/formControls/HandSignature/index.js +11 -0
  15. package/dist/esm/formControls/HandSignature/property.js +132 -0
  16. package/dist/esm/formControls/HandSignature/runtime.js +114 -0
  17. package/dist/esm/formControls/HandSignature/types.js +0 -0
  18. package/dist/esm/formControls/index.js +1 -0
  19. package/dist/esm/layoutControls/ListView/property.js +66 -66
  20. package/dist/index.umd.js +1 -1
  21. package/dist/types/baseControls/Text/property.d.ts +1 -0
  22. package/dist/types/baseControls/Title/property.d.ts +0 -1
  23. package/dist/types/columnControls/SignatureColumn/designer.d.ts +14 -0
  24. package/dist/types/columnControls/SignatureColumn/index.d.ts +12 -0
  25. package/dist/types/columnControls/SignatureColumn/property.d.ts +6 -0
  26. package/dist/types/columnControls/SignatureColumn/runtime.d.ts +12 -0
  27. package/dist/types/columnControls/SignatureColumn/types.d.ts +0 -0
  28. package/dist/types/columnControls/index.d.ts +1 -0
  29. package/dist/types/formControls/HandSignature/designer.d.ts +14 -0
  30. package/dist/types/formControls/HandSignature/index.d.ts +12 -0
  31. package/dist/types/formControls/HandSignature/property.d.ts +19 -0
  32. package/dist/types/formControls/HandSignature/runtime.d.ts +12 -0
  33. package/dist/types/formControls/HandSignature/types.d.ts +0 -0
  34. package/dist/types/formControls/index.d.ts +1 -0
  35. package/dist/types/type.d.ts +4 -2
  36. package/package.json +5 -5
@@ -141,6 +141,10 @@ _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
+ },
144
148
  {
145
149
  key: 'text-state',
146
150
  visible: true
@@ -81,12 +81,14 @@ 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, "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, "bgColor", 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';
90
92
  var _props_icon;
91
93
  _this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : 'page-hint';
92
94
  var _props_showState;
@@ -124,6 +124,11 @@ 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
+ // },
127
132
  {
128
133
  key: 'common-setting',
129
134
  visible: true,
@@ -142,10 +147,10 @@ _define_property(TitleControl, "setting", [
142
147
  key: 'title-setting',
143
148
  visible: true
144
149
  },
145
- {
146
- key: 'position',
147
- visible: true
148
- },
150
+ // {
151
+ // key: 'position',
152
+ // visible: true,
153
+ // },
149
154
  {
150
155
  key: 'super-setting',
151
156
  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), _define_property(_this, "position", void 0);
133
+ ]), _define_property(_this, "dataBind", void 0), _define_property(_this, "caption", void 0), _define_property(_this, "config", 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,13 +138,10 @@ var TitleProperty = /*#__PURE__*/ function(Property) {
138
138
  TitleConfigEnum.ShowSubmitUser,
139
139
  TitleConfigEnum.ShowSubmitDept,
140
140
  TitleConfigEnum.ShowSubmitTime,
141
- TitleConfigEnum.ShowCurrentApprovar,
142
- TitleConfigEnum.ShowTitle
141
+ TitleConfigEnum.ShowCurrentApprovar
143
142
  ];
144
143
  var _props_caption, _ref;
145
144
  _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';
148
145
  return _this;
149
146
  }
150
147
  return TitleProperty;
@@ -0,0 +1,120 @@
1
+ function _assert_this_initialized(self) {
2
+ if (self === void 0) {
3
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
+ }
5
+ return self;
6
+ }
7
+ function _call_super(_this, derived, args) {
8
+ derived = _get_prototype_of(derived);
9
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
+ }
11
+ function _class_call_check(instance, Constructor) {
12
+ if (!(instance instanceof Constructor)) {
13
+ throw new TypeError("Cannot call a class as a function");
14
+ }
15
+ }
16
+ function _define_property(obj, key, value) {
17
+ if (key in obj) {
18
+ Object.defineProperty(obj, key, {
19
+ value: value,
20
+ enumerable: true,
21
+ configurable: true,
22
+ writable: true
23
+ });
24
+ } else {
25
+ obj[key] = value;
26
+ }
27
+ return obj;
28
+ }
29
+ function _get_prototype_of(o) {
30
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
31
+ return o.__proto__ || Object.getPrototypeOf(o);
32
+ };
33
+ return _get_prototype_of(o);
34
+ }
35
+ function _inherits(subClass, superClass) {
36
+ if (typeof superClass !== "function" && superClass !== null) {
37
+ throw new TypeError("Super expression must either be null or a function");
38
+ }
39
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
40
+ constructor: {
41
+ value: subClass,
42
+ writable: true,
43
+ configurable: true
44
+ }
45
+ });
46
+ if (superClass) _set_prototype_of(subClass, superClass);
47
+ }
48
+ function _possible_constructor_return(self, call) {
49
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
50
+ return call;
51
+ }
52
+ return _assert_this_initialized(self);
53
+ }
54
+ function _set_prototype_of(o, p) {
55
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
56
+ o.__proto__ = p;
57
+ return o;
58
+ };
59
+ return _set_prototype_of(o, p);
60
+ }
61
+ function _type_of(obj) {
62
+ "@swc/helpers - typeof";
63
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
64
+ }
65
+ function _is_native_reflect_construct() {
66
+ try {
67
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
68
+ } catch (_) {}
69
+ return (_is_native_reflect_construct = function() {
70
+ return !!result;
71
+ })();
72
+ }
73
+ import { DesignerColumnControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
74
+ import SignatureColumnControlProperty from './property';
75
+ import { FieldTypes } from '@byteluck-fe/model-driven-shared';
76
+ var SignatureColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
77
+ "use strict";
78
+ _inherits(SignatureColumnControl, DesignerColumnControl);
79
+ function SignatureColumnControl(props) {
80
+ _class_call_check(this, SignatureColumnControl);
81
+ var _this;
82
+ _this = _call_super(this, SignatureColumnControl, [
83
+ props
84
+ ]), _define_property(_this, "props", void 0);
85
+ _this.props = new SignatureColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
86
+ return _this;
87
+ }
88
+ return SignatureColumnControl;
89
+ }(DesignerColumnControl);
90
+ _define_property(SignatureColumnControl, "controlType", 'signature-column');
91
+ _define_property(SignatureColumnControl, "controlName", '图片');
92
+ _define_property(SignatureColumnControl, "controlIcon", 'signature-column');
93
+ _define_property(SignatureColumnControl, "controlFieldType", FieldTypes.SIGNATURE);
94
+ _define_property(SignatureColumnControl, "setting", [
95
+ {
96
+ key: 'column-data-bind',
97
+ visible: true
98
+ },
99
+ {
100
+ key: 'caption',
101
+ showItems: [
102
+ COMMON_SETTING_TYPE.CAPTION
103
+ ],
104
+ visible: true
105
+ },
106
+ {
107
+ key: 'column-width',
108
+ visible: true
109
+ },
110
+ {
111
+ key: 'column-fixed',
112
+ visible: true
113
+ },
114
+ {
115
+ key: 'column-sort',
116
+ visible: true
117
+ }
118
+ ]);
119
+ export default SignatureColumnControl;
120
+ export { SignatureColumnControl as DesignerSignatureColumnControl };
@@ -0,0 +1,11 @@
1
+ import Designer from './designer';
2
+ import Runtime from './runtime';
3
+ import Property from './property';
4
+ export default {
5
+ Designer: Designer,
6
+ Runtime: Runtime,
7
+ Property: Property
8
+ };
9
+ export * from './designer';
10
+ export * from './runtime';
11
+ export * from './property';
@@ -0,0 +1,78 @@
1
+ function _assert_this_initialized(self) {
2
+ if (self === void 0) {
3
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
+ }
5
+ return self;
6
+ }
7
+ function _call_super(_this, derived, args) {
8
+ derived = _get_prototype_of(derived);
9
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
+ }
11
+ function _class_call_check(instance, Constructor) {
12
+ if (!(instance instanceof Constructor)) {
13
+ throw new TypeError("Cannot call a class as a function");
14
+ }
15
+ }
16
+ function _get_prototype_of(o) {
17
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
18
+ return o.__proto__ || Object.getPrototypeOf(o);
19
+ };
20
+ return _get_prototype_of(o);
21
+ }
22
+ function _inherits(subClass, superClass) {
23
+ if (typeof superClass !== "function" && superClass !== null) {
24
+ throw new TypeError("Super expression must either be null or a function");
25
+ }
26
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
27
+ constructor: {
28
+ value: subClass,
29
+ writable: true,
30
+ configurable: true
31
+ }
32
+ });
33
+ if (superClass) _set_prototype_of(subClass, superClass);
34
+ }
35
+ function _possible_constructor_return(self, call) {
36
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
37
+ return call;
38
+ }
39
+ return _assert_this_initialized(self);
40
+ }
41
+ function _set_prototype_of(o, p) {
42
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
43
+ o.__proto__ = p;
44
+ return o;
45
+ };
46
+ return _set_prototype_of(o, p);
47
+ }
48
+ function _type_of(obj) {
49
+ "@swc/helpers - typeof";
50
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
51
+ }
52
+ function _is_native_reflect_construct() {
53
+ try {
54
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
55
+ } catch (_) {}
56
+ return (_is_native_reflect_construct = function() {
57
+ return !!result;
58
+ })();
59
+ }
60
+ import { ColumnControlProperty } from '@byteluck-fe/model-driven-core';
61
+ import { DesignerSignatureColumnControl } from './designer';
62
+ var SignatureColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty) {
63
+ "use strict";
64
+ _inherits(SignatureColumnControlProperty, ColumnControlProperty);
65
+ function SignatureColumnControlProperty(props) {
66
+ _class_call_check(this, SignatureColumnControlProperty);
67
+ var _this;
68
+ _this = _call_super(this, SignatureColumnControlProperty, [
69
+ props
70
+ ]);
71
+ var _props_caption;
72
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerSignatureColumnControl.controlName;
73
+ return _this;
74
+ }
75
+ return SignatureColumnControlProperty;
76
+ }(ColumnControlProperty);
77
+ export default SignatureColumnControlProperty;
78
+ export { SignatureColumnControlProperty };
@@ -0,0 +1,93 @@
1
+ function _assert_this_initialized(self) {
2
+ if (self === void 0) {
3
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
+ }
5
+ return self;
6
+ }
7
+ function _call_super(_this, derived, args) {
8
+ derived = _get_prototype_of(derived);
9
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
+ }
11
+ function _class_call_check(instance, Constructor) {
12
+ if (!(instance instanceof Constructor)) {
13
+ throw new TypeError("Cannot call a class as a function");
14
+ }
15
+ }
16
+ function _define_property(obj, key, value) {
17
+ if (key in obj) {
18
+ Object.defineProperty(obj, key, {
19
+ value: value,
20
+ enumerable: true,
21
+ configurable: true,
22
+ writable: true
23
+ });
24
+ } else {
25
+ obj[key] = value;
26
+ }
27
+ return obj;
28
+ }
29
+ function _get_prototype_of(o) {
30
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
31
+ return o.__proto__ || Object.getPrototypeOf(o);
32
+ };
33
+ return _get_prototype_of(o);
34
+ }
35
+ function _inherits(subClass, superClass) {
36
+ if (typeof superClass !== "function" && superClass !== null) {
37
+ throw new TypeError("Super expression must either be null or a function");
38
+ }
39
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
40
+ constructor: {
41
+ value: subClass,
42
+ writable: true,
43
+ configurable: true
44
+ }
45
+ });
46
+ if (superClass) _set_prototype_of(subClass, superClass);
47
+ }
48
+ function _possible_constructor_return(self, call) {
49
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
50
+ return call;
51
+ }
52
+ return _assert_this_initialized(self);
53
+ }
54
+ function _set_prototype_of(o, p) {
55
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
56
+ o.__proto__ = p;
57
+ return o;
58
+ };
59
+ return _set_prototype_of(o, p);
60
+ }
61
+ function _type_of(obj) {
62
+ "@swc/helpers - typeof";
63
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
64
+ }
65
+ function _is_native_reflect_construct() {
66
+ try {
67
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
68
+ } catch (_) {}
69
+ return (_is_native_reflect_construct = function() {
70
+ return !!result;
71
+ })();
72
+ }
73
+ import { RuntimeColumnControl } from '@byteluck-fe/model-driven-core';
74
+ import SignatureColumnControlProperty from './property';
75
+ import { FieldTypes } from '@byteluck-fe/model-driven-shared';
76
+ var SignatureColumnControl = /*#__PURE__*/ function(RuntimeColumnControl) {
77
+ "use strict";
78
+ _inherits(SignatureColumnControl, RuntimeColumnControl);
79
+ function SignatureColumnControl(props) {
80
+ _class_call_check(this, SignatureColumnControl);
81
+ var _this;
82
+ _this = _call_super(this, SignatureColumnControl, [
83
+ props
84
+ ]), _define_property(_this, "props", void 0);
85
+ _this.props = new SignatureColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
86
+ return _this;
87
+ }
88
+ return SignatureColumnControl;
89
+ }(RuntimeColumnControl);
90
+ _define_property(SignatureColumnControl, "controlType", 'signature-column');
91
+ _define_property(SignatureColumnControl, "controlFieldType", FieldTypes.SIGNATURE);
92
+ export default SignatureColumnControl;
93
+ export { SignatureColumnControl as RuntimeSignatureColumnControl };
@@ -8,6 +8,7 @@ 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';
11
12
  export { default as PeopleColumn } from './PeopleColumn';
12
13
  export { default as LocationColumn } from './LocationColumn';
13
14
  export { default as CustomColumn } from './CustomColumn';
@@ -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, '请输入人员姓名或邮箱');
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通账号');
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 = [];
@@ -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 // 是否多选
@@ -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, '请输入人员姓名或邮箱');
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通账号');
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
@@ -0,0 +1,157 @@
1
+ function _assert_this_initialized(self) {
2
+ if (self === void 0) {
3
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
+ }
5
+ return self;
6
+ }
7
+ function _call_super(_this, derived, args) {
8
+ derived = _get_prototype_of(derived);
9
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
+ }
11
+ function _class_call_check(instance, Constructor) {
12
+ if (!(instance instanceof Constructor)) {
13
+ throw new TypeError("Cannot call a class as a function");
14
+ }
15
+ }
16
+ function _defineProperties(target, props) {
17
+ for(var i = 0; i < props.length; i++){
18
+ var descriptor = props[i];
19
+ descriptor.enumerable = descriptor.enumerable || false;
20
+ descriptor.configurable = true;
21
+ if ("value" in descriptor) descriptor.writable = true;
22
+ Object.defineProperty(target, descriptor.key, descriptor);
23
+ }
24
+ }
25
+ function _create_class(Constructor, protoProps, staticProps) {
26
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
27
+ if (staticProps) _defineProperties(Constructor, staticProps);
28
+ return Constructor;
29
+ }
30
+ function _define_property(obj, key, value) {
31
+ if (key in obj) {
32
+ Object.defineProperty(obj, key, {
33
+ value: value,
34
+ enumerable: true,
35
+ configurable: true,
36
+ writable: true
37
+ });
38
+ } else {
39
+ obj[key] = value;
40
+ }
41
+ return obj;
42
+ }
43
+ function _get_prototype_of(o) {
44
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
45
+ return o.__proto__ || Object.getPrototypeOf(o);
46
+ };
47
+ return _get_prototype_of(o);
48
+ }
49
+ function _inherits(subClass, superClass) {
50
+ if (typeof superClass !== "function" && superClass !== null) {
51
+ throw new TypeError("Super expression must either be null or a function");
52
+ }
53
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
54
+ constructor: {
55
+ value: subClass,
56
+ writable: true,
57
+ configurable: true
58
+ }
59
+ });
60
+ if (superClass) _set_prototype_of(subClass, superClass);
61
+ }
62
+ function _possible_constructor_return(self, call) {
63
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
64
+ return call;
65
+ }
66
+ return _assert_this_initialized(self);
67
+ }
68
+ function _set_prototype_of(o, p) {
69
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
70
+ o.__proto__ = p;
71
+ return o;
72
+ };
73
+ return _set_prototype_of(o, p);
74
+ }
75
+ function _type_of(obj) {
76
+ "@swc/helpers - typeof";
77
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
78
+ }
79
+ function _is_native_reflect_construct() {
80
+ try {
81
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
82
+ } catch (_) {}
83
+ return (_is_native_reflect_construct = function() {
84
+ return !!result;
85
+ })();
86
+ }
87
+ import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
88
+ import { FieldTypes } from '@byteluck-fe/model-driven-shared';
89
+ import HandSignatureProperty from './property';
90
+ var HandSignatureControl = /*#__PURE__*/ function(DesignerFormControl) {
91
+ "use strict";
92
+ _inherits(HandSignatureControl, DesignerFormControl);
93
+ function HandSignatureControl(props) {
94
+ _class_call_check(this, HandSignatureControl);
95
+ var _this;
96
+ _this = _call_super(this, HandSignatureControl, [
97
+ props
98
+ ]), _define_property(_this, "props", void 0);
99
+ _this.props = new HandSignatureProperty(props === null || props === void 0 ? void 0 : props.props);
100
+ return _this;
101
+ }
102
+ _create_class(HandSignatureControl, null, [
103
+ {
104
+ key: "controlName",
105
+ get: function get() {
106
+ return '手写签名';
107
+ }
108
+ },
109
+ {
110
+ key: "controlIcon",
111
+ get: function get() {
112
+ return 'iconsignature';
113
+ }
114
+ },
115
+ {
116
+ key: "controlType",
117
+ get: function get() {
118
+ return 'signature';
119
+ }
120
+ }
121
+ ]);
122
+ return HandSignatureControl;
123
+ }(DesignerFormControl);
124
+ _define_property(HandSignatureControl, "controlFieldType", FieldTypes.SIGNATURE);
125
+ _define_property(HandSignatureControl, "setting", [
126
+ {
127
+ key: 'data-bind',
128
+ visible: true
129
+ },
130
+ {
131
+ key: 'caption',
132
+ showItems: [
133
+ COMMON_SETTING_TYPE.CAPTION,
134
+ COMMON_SETTING_TYPE.IS_HIDE_CAPTION
135
+ ],
136
+ visible: true
137
+ },
138
+ {
139
+ key: 'label-position',
140
+ visible: true
141
+ },
142
+ {
143
+ key: 'select-color',
144
+ visible: true
145
+ },
146
+ {
147
+ key: 'common-setting',
148
+ visible: true,
149
+ showItems: [
150
+ COMMON_SETTING_TYPE.REQUIRED,
151
+ COMMON_SETTING_TYPE.IS_HIDE,
152
+ COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
153
+ ]
154
+ }
155
+ ]);
156
+ export default HandSignatureControl;
157
+ export { HandSignatureControl as DesignerHandSignatureControl };
@@ -0,0 +1,11 @@
1
+ import Designer from './designer';
2
+ import Runtime from './runtime';
3
+ import Property from './property';
4
+ export default {
5
+ Designer: Designer,
6
+ Runtime: Runtime,
7
+ Property: Property
8
+ };
9
+ export * from './designer';
10
+ export * from './runtime';
11
+ export * from './property';