@byteluck-fe/model-driven-controls 2.23.0-beta.23 → 2.23.0-beta.23-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.
- package/dist/esm/baseControls/Text/designer.js +4 -0
- package/dist/esm/baseControls/Text/property.js +3 -1
- package/dist/esm/baseControls/Title/designer.js +9 -4
- package/dist/esm/baseControls/Title/property.js +2 -5
- package/dist/esm/columnControls/DecimalColumn/property.js +32 -32
- package/dist/esm/columnControls/SignatureColumn/designer.js +120 -0
- package/dist/esm/columnControls/SignatureColumn/index.js +11 -0
- package/dist/esm/columnControls/SignatureColumn/property.js +78 -0
- package/dist/esm/columnControls/SignatureColumn/runtime.js +93 -0
- package/dist/esm/columnControls/SignatureColumn/types.js +0 -0
- package/dist/esm/columnControls/index.js +1 -0
- package/dist/esm/formControls/Department2/designer.js +1 -1
- package/dist/esm/formControls/Employee/property.js +1 -1
- package/dist/esm/formControls/Employee2/designer.js +1 -1
- package/dist/esm/formControls/Employee2/property.js +1 -1
- package/dist/esm/formControls/HandSignature/designer.js +157 -0
- package/dist/esm/formControls/HandSignature/index.js +11 -0
- package/dist/esm/formControls/HandSignature/property.js +132 -0
- package/dist/esm/formControls/HandSignature/runtime.js +114 -0
- package/dist/esm/formControls/HandSignature/types.js +0 -0
- package/dist/esm/formControls/index.js +1 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/Text/property.d.ts +1 -0
- package/dist/types/baseControls/Title/property.d.ts +0 -1
- package/dist/types/columnControls/SignatureColumn/designer.d.ts +14 -0
- package/dist/types/columnControls/SignatureColumn/index.d.ts +12 -0
- package/dist/types/columnControls/SignatureColumn/property.d.ts +6 -0
- package/dist/types/columnControls/SignatureColumn/runtime.d.ts +12 -0
- package/dist/types/columnControls/SignatureColumn/types.d.ts +0 -0
- package/dist/types/columnControls/index.d.ts +1 -0
- package/dist/types/formControls/HandSignature/designer.d.ts +14 -0
- package/dist/types/formControls/HandSignature/index.d.ts +12 -0
- package/dist/types/formControls/HandSignature/property.d.ts +19 -0
- package/dist/types/formControls/HandSignature/runtime.d.ts +12 -0
- package/dist/types/formControls/HandSignature/types.d.ts +0 -0
- package/dist/types/formControls/index.d.ts +1 -0
- package/dist/types/type.d.ts +4 -2
- package/package.json +5 -5
|
@@ -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
|
-
|
|
147
|
-
|
|
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)
|
|
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;
|
|
@@ -86,9 +86,9 @@ var DecimalColumnControlPropertyRules = /*#__PURE__*/ function(ColumnOptionAndDa
|
|
|
86
86
|
}
|
|
87
87
|
return DecimalColumnControlPropertyRules;
|
|
88
88
|
}(ColumnOptionAndDataSourcePropertyRules);
|
|
89
|
-
/**
|
|
90
|
-
* DecimalColumn 数字列
|
|
91
|
-
* @public
|
|
89
|
+
/**
|
|
90
|
+
* DecimalColumn 数字列
|
|
91
|
+
* @public
|
|
92
92
|
*/ var DecimalColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty) {
|
|
93
93
|
"use strict";
|
|
94
94
|
_inherits(DecimalColumnControlProperty, ColumnControlProperty);
|
|
@@ -97,35 +97,35 @@ var DecimalColumnControlPropertyRules = /*#__PURE__*/ function(ColumnOptionAndDa
|
|
|
97
97
|
var _this;
|
|
98
98
|
_this = _call_super(this, DecimalColumnControlProperty, [
|
|
99
99
|
props
|
|
100
|
-
]), /**
|
|
101
|
-
* 选项配置
|
|
102
|
-
* @defaultValue 'none'
|
|
103
|
-
* @public
|
|
104
|
-
* */ _define_property(_this, "optionConfig", void 0), /**
|
|
105
|
-
* 关联数据源
|
|
106
|
-
* @public
|
|
107
|
-
*/ _define_property(_this, "datasourceBind", void 0), /**
|
|
108
|
-
* 是否显示链接操作
|
|
109
|
-
* @public
|
|
110
|
-
*/ _define_property(_this, "showLinkOperation", void 0), /**
|
|
111
|
-
* 链接操作配置
|
|
112
|
-
* @public
|
|
113
|
-
*/ _define_property(_this, "linkOperationOption", void 0), /**
|
|
114
|
-
* 自定义选项
|
|
115
|
-
* @defaultValue []
|
|
116
|
-
* @public
|
|
117
|
-
*/ _define_property(_this, "options", void 0), /**
|
|
118
|
-
* 保留几位小数
|
|
119
|
-
* @defaultValue 0
|
|
120
|
-
* @public
|
|
121
|
-
* */ _define_property(_this, "precision", void 0), /**
|
|
122
|
-
* 千分位展示
|
|
123
|
-
* @defaultValue false
|
|
124
|
-
* @public
|
|
125
|
-
* */ _define_property(_this, "micrometer", void 0), /**
|
|
126
|
-
* 百分比格式化
|
|
127
|
-
* @defaultValue false
|
|
128
|
-
* @public
|
|
100
|
+
]), /**
|
|
101
|
+
* 选项配置
|
|
102
|
+
* @defaultValue 'none'
|
|
103
|
+
* @public
|
|
104
|
+
* */ _define_property(_this, "optionConfig", void 0), /**
|
|
105
|
+
* 关联数据源
|
|
106
|
+
* @public
|
|
107
|
+
*/ _define_property(_this, "datasourceBind", void 0), /**
|
|
108
|
+
* 是否显示链接操作
|
|
109
|
+
* @public
|
|
110
|
+
*/ _define_property(_this, "showLinkOperation", void 0), /**
|
|
111
|
+
* 链接操作配置
|
|
112
|
+
* @public
|
|
113
|
+
*/ _define_property(_this, "linkOperationOption", void 0), /**
|
|
114
|
+
* 自定义选项
|
|
115
|
+
* @defaultValue []
|
|
116
|
+
* @public
|
|
117
|
+
*/ _define_property(_this, "options", void 0), /**
|
|
118
|
+
* 保留几位小数
|
|
119
|
+
* @defaultValue 0
|
|
120
|
+
* @public
|
|
121
|
+
* */ _define_property(_this, "precision", void 0), /**
|
|
122
|
+
* 千分位展示
|
|
123
|
+
* @defaultValue false
|
|
124
|
+
* @public
|
|
125
|
+
* */ _define_property(_this, "micrometer", void 0), /**
|
|
126
|
+
* 百分比格式化
|
|
127
|
+
* @defaultValue false
|
|
128
|
+
* @public
|
|
129
129
|
* */ _define_property(_this, "percentageFormat", void 0);
|
|
130
130
|
var _props_caption;
|
|
131
131
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerDecimalColumnControl.controlName;
|
|
@@ -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 };
|
|
File without changes
|
|
@@ -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 = [];
|
|
@@ -153,7 +153,7 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
153
153
|
var _props_caption;
|
|
154
154
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : Employee2Control.controlName;
|
|
155
155
|
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, '
|
|
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
157
|
var _props_datasourceBind;
|
|
158
158
|
_this.datasourceBind = new SuperDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
159
159
|
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 };
|