@byteluck-fe/model-driven-controls 5.3.0-1-beta4 → 5.3.1-2-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/OperationButton/property.js +4 -1
- 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/EmployeeColumn/designer.js +1 -1
- 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/Address/runtime.js +1 -2
- package/dist/esm/formControls/Amount/property.js +1 -1
- package/dist/esm/formControls/Department2/designer.js +1 -1
- package/dist/esm/formControls/ElectronicSignature/property.js +0 -13
- package/dist/esm/formControls/Employee/property.js +1 -1
- package/dist/esm/formControls/Employee2/designer.js +1 -7
- 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 +134 -0
- package/dist/esm/formControls/HandSignature/runtime.js +114 -0
- package/dist/esm/formControls/HandSignature/types.js +0 -0
- package/dist/esm/formControls/Input/designer.js +8 -0
- package/dist/esm/formControls/Input/property.js +12 -1
- package/dist/esm/formControls/Number/property.js +1 -1
- package/dist/esm/formControls/OrganizationSelection/designer.js +1 -1
- package/dist/esm/formControls/RichText/designer.js +8 -0
- package/dist/esm/formControls/RichText/property.js +12 -1
- package/dist/esm/formControls/Textarea/designer.js +8 -0
- package/dist/esm/formControls/Textarea/property.js +24 -1
- package/dist/esm/formControls/Tree/designer.js +2 -2
- package/dist/esm/formControls/index.js +1 -0
- package/dist/esm/framework.js +0 -56
- package/dist/esm/layoutControls/AdvancedContainer/Setting.js +3 -4
- package/dist/esm/layoutControls/GridTableColumn/designer.js +1 -2
- package/dist/esm/layoutControls/Page/Setting.js +5 -6
- package/dist/esm/layoutControls/PositioningContainer/Setting.js +3 -4
- package/dist/esm/listControls/SubTable/designer.js +0 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/OperationButton/property.d.ts +1 -0
- 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/Employee2/designer.d.ts +0 -1
- 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/Input/property.d.ts +11 -0
- package/dist/types/formControls/RichText/property.d.ts +11 -0
- package/dist/types/formControls/Textarea/property.d.ts +11 -0
- package/dist/types/formControls/index.d.ts +1 -0
- package/dist/types/framework.d.ts +0 -44
- package/dist/types/layoutControls/GridTableColumn/designer.d.ts +1 -1
- package/dist/types/type.d.ts +4 -2
- package/package.json +5 -5
|
@@ -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';
|
|
@@ -0,0 +1,134 @@
|
|
|
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 { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
74
|
+
import { DesignerHandSignatureControl } from './designer';
|
|
75
|
+
var HandSignaturePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
76
|
+
"use strict";
|
|
77
|
+
_inherits(HandSignaturePropertyRules, BaseControlPropertyRules);
|
|
78
|
+
function HandSignaturePropertyRules(props) {
|
|
79
|
+
_class_call_check(this, HandSignaturePropertyRules);
|
|
80
|
+
return _call_super(this, HandSignaturePropertyRules, [
|
|
81
|
+
props
|
|
82
|
+
]);
|
|
83
|
+
}
|
|
84
|
+
return HandSignaturePropertyRules;
|
|
85
|
+
}(BaseControlPropertyRules);
|
|
86
|
+
var HandSignatureControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeRules) {
|
|
87
|
+
"use strict";
|
|
88
|
+
_inherits(HandSignatureControlPropertyRuntimeRules, BaseControlPropertyRuntimeRules);
|
|
89
|
+
function HandSignatureControlPropertyRuntimeRules(props) {
|
|
90
|
+
_class_call_check(this, HandSignatureControlPropertyRuntimeRules);
|
|
91
|
+
var _this;
|
|
92
|
+
_this = _call_super(this, HandSignatureControlPropertyRuntimeRules, [
|
|
93
|
+
props
|
|
94
|
+
]);
|
|
95
|
+
if (_this[0]) {
|
|
96
|
+
_this[0].type = 'array';
|
|
97
|
+
}
|
|
98
|
+
return _this;
|
|
99
|
+
}
|
|
100
|
+
return HandSignatureControlPropertyRuntimeRules;
|
|
101
|
+
}(BaseControlPropertyRuntimeRules);
|
|
102
|
+
var HandSignatureProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
103
|
+
"use strict";
|
|
104
|
+
_inherits(HandSignatureProperty, BaseControlProperty);
|
|
105
|
+
function HandSignatureProperty(props) {
|
|
106
|
+
_class_call_check(this, HandSignatureProperty);
|
|
107
|
+
var _this;
|
|
108
|
+
_this = _call_super(this, HandSignatureProperty, [
|
|
109
|
+
props
|
|
110
|
+
]), //minWidth:一条线的最小宽度,默认值是0.5
|
|
111
|
+
//maxWidth: 一条线的最大宽度,默认值是2.5
|
|
112
|
+
_define_property(_this, "minWidth", void 0), _define_property(_this, "maxWidth", void 0), _define_property(_this, "backgroundColor", void 0), _define_property(_this, "penColor", void 0), _define_property(_this, "labelPosition", void 0);
|
|
113
|
+
var _props_minWidth;
|
|
114
|
+
_this.minWidth = (_props_minWidth = props === null || props === void 0 ? void 0 : props.minWidth) !== null && _props_minWidth !== void 0 ? _props_minWidth : 0.5;
|
|
115
|
+
var _props_maxWidth;
|
|
116
|
+
_this.maxWidth = (_props_maxWidth = props === null || props === void 0 ? void 0 : props.maxWidth) !== null && _props_maxWidth !== void 0 ? _props_maxWidth : 2.5;
|
|
117
|
+
var _props_backgroundColor;
|
|
118
|
+
_this.backgroundColor = (_props_backgroundColor = props === null || props === void 0 ? void 0 : props.backgroundColor) !== null && _props_backgroundColor !== void 0 ? _props_backgroundColor : 'rgba(0,0,0,0)';
|
|
119
|
+
var _props_penColor;
|
|
120
|
+
_this.penColor = (_props_penColor = props === null || props === void 0 ? void 0 : props.penColor) !== null && _props_penColor !== void 0 ? _props_penColor : 'black';
|
|
121
|
+
var _props_labelPosition;
|
|
122
|
+
_this.labelPosition = (_props_labelPosition = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _props_labelPosition !== void 0 ? _props_labelPosition : 'top';
|
|
123
|
+
var _props_caption;
|
|
124
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerHandSignatureControl.controlName;
|
|
125
|
+
var _props_defaultValue;
|
|
126
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
127
|
+
return _this;
|
|
128
|
+
}
|
|
129
|
+
return HandSignatureProperty;
|
|
130
|
+
}(BaseControlProperty);
|
|
131
|
+
_define_property(HandSignatureProperty, "Rules", HandSignaturePropertyRules);
|
|
132
|
+
_define_property(HandSignatureProperty, "RuntimeRules", HandSignatureControlPropertyRuntimeRules);
|
|
133
|
+
export default HandSignatureProperty;
|
|
134
|
+
export { HandSignatureProperty };
|
|
@@ -0,0 +1,114 @@
|
|
|
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 { RuntimeFormControl } from '@byteluck-fe/model-driven-core';
|
|
88
|
+
import HandSignatureProperty from './property';
|
|
89
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
90
|
+
var HandSignatureControl = /*#__PURE__*/ function(RuntimeFormControl) {
|
|
91
|
+
"use strict";
|
|
92
|
+
_inherits(HandSignatureControl, RuntimeFormControl);
|
|
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: "controlType",
|
|
105
|
+
get: function get() {
|
|
106
|
+
return 'signature';
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
]);
|
|
110
|
+
return HandSignatureControl;
|
|
111
|
+
}(RuntimeFormControl);
|
|
112
|
+
_define_property(HandSignatureControl, "controlFieldType", FieldTypes.SIGNATURE);
|
|
113
|
+
export default HandSignatureControl;
|
|
114
|
+
export { HandSignatureControl as RuntimeHandSignatureControl };
|
|
File without changes
|
|
@@ -169,6 +169,14 @@ _define_property(InputControl, "setting", [
|
|
|
169
169
|
COMMON_SETTING_TYPE.ENCRYPTED
|
|
170
170
|
]
|
|
171
171
|
},
|
|
172
|
+
{
|
|
173
|
+
key: 'column-autoHeight',
|
|
174
|
+
visible: false
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
key: 'column-line-ellipsis',
|
|
178
|
+
visible: false
|
|
179
|
+
},
|
|
172
180
|
{
|
|
173
181
|
key: 'max-length',
|
|
174
182
|
visible: true
|
|
@@ -180,7 +180,14 @@ var InputControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropert
|
|
|
180
180
|
* 密码模式 '' | 'ALL_MASK' | 'LAST_FOUR_MASK'
|
|
181
181
|
* @defaultValue ''
|
|
182
182
|
* @public
|
|
183
|
-
*/ _define_property(_this, "encryptedMode", void 0)
|
|
183
|
+
*/ _define_property(_this, "encryptedMode", void 0), /**
|
|
184
|
+
* 在明细子表中自动高度
|
|
185
|
+
* @defaultValue false
|
|
186
|
+
*/ _define_property(_this, "autoHeight", void 0), /**
|
|
187
|
+
* 在明细子表中行数设置
|
|
188
|
+
* @defaultValue 1
|
|
189
|
+
* @public
|
|
190
|
+
*/ _define_property(_this, "lineEllipsis", void 0);
|
|
184
191
|
var _props_maxLength;
|
|
185
192
|
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 200;
|
|
186
193
|
var _props_minLength;
|
|
@@ -196,6 +203,10 @@ var InputControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropert
|
|
|
196
203
|
_this.encrypted = (_props_encrypted = props === null || props === void 0 ? void 0 : props.encrypted) !== null && _props_encrypted !== void 0 ? _props_encrypted : false;
|
|
197
204
|
var _props_encryptedMode;
|
|
198
205
|
_this.encryptedMode = (_props_encryptedMode = props === null || props === void 0 ? void 0 : props.encryptedMode) !== null && _props_encryptedMode !== void 0 ? _props_encryptedMode : '';
|
|
206
|
+
var _props_autoHeight;
|
|
207
|
+
_this.autoHeight = (_props_autoHeight = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _props_autoHeight !== void 0 ? _props_autoHeight : false;
|
|
208
|
+
var _props_lineEllipsis;
|
|
209
|
+
_this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
|
|
199
210
|
return _this;
|
|
200
211
|
}
|
|
201
212
|
return InputProperty;
|
|
@@ -138,7 +138,7 @@ var NumberControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProper
|
|
|
138
138
|
message: getLocaleText(max === undefined ? 'CMD.pleaseEnterAValueGreaterThanMin' : min === undefined ? 'CMD.pleaseEnterAValueLessThanMax' : 'CMD.pleaseEnterNumberRange', {
|
|
139
139
|
max: max,
|
|
140
140
|
min: min
|
|
141
|
-
}, max === undefined ?
|
|
141
|
+
}, max === undefined ? '请输入大于等于{min}的数值' : min === undefined ? '请输入小于等于{max}的数值' : '请输入大于等于{min}且小于等于{max}的数值')
|
|
142
142
|
});
|
|
143
143
|
if (props.regularRules.expression && props.regularRules.errMessage) {
|
|
144
144
|
_this.push({
|
|
@@ -168,6 +168,14 @@ _define_property(RichTextControl, "setting", [
|
|
|
168
168
|
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
169
169
|
]
|
|
170
170
|
},
|
|
171
|
+
{
|
|
172
|
+
key: 'column-autoHeight',
|
|
173
|
+
visible: false
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
key: 'column-line-ellipsis',
|
|
177
|
+
visible: false
|
|
178
|
+
},
|
|
171
179
|
{
|
|
172
180
|
key: 'max-length',
|
|
173
181
|
visible: true
|
|
@@ -137,7 +137,14 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
137
137
|
var _this;
|
|
138
138
|
_this = _call_super(this, RichTextProperty, [
|
|
139
139
|
props
|
|
140
|
-
]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "defaultValue", void 0)
|
|
140
|
+
]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "defaultValue", void 0), /**
|
|
141
|
+
* 在明细子表中自动高度
|
|
142
|
+
* @defaultValue false
|
|
143
|
+
*/ _define_property(_this, "autoHeight", void 0), /**
|
|
144
|
+
* 在明细子表中行数设置
|
|
145
|
+
* @defaultValue 1
|
|
146
|
+
* @public
|
|
147
|
+
*/ _define_property(_this, "lineEllipsis", void 0);
|
|
141
148
|
var _props_maxLength;
|
|
142
149
|
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
|
|
143
150
|
var _props_minLength;
|
|
@@ -148,6 +155,10 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
148
155
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : RichTextControl.controlName;
|
|
149
156
|
var _props_placeholder;
|
|
150
157
|
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
158
|
+
var _props_autoHeight;
|
|
159
|
+
_this.autoHeight = (_props_autoHeight = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _props_autoHeight !== void 0 ? _props_autoHeight : false;
|
|
160
|
+
var _props_lineEllipsis;
|
|
161
|
+
_this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
|
|
151
162
|
return _this;
|
|
152
163
|
}
|
|
153
164
|
return RichTextProperty;
|
|
@@ -168,6 +168,14 @@ _define_property(TextareaControl, "setting", [
|
|
|
168
168
|
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
169
169
|
]
|
|
170
170
|
},
|
|
171
|
+
{
|
|
172
|
+
key: 'column-autoHeight',
|
|
173
|
+
visible: false
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
key: 'column-line-ellipsis',
|
|
177
|
+
visible: false
|
|
178
|
+
},
|
|
171
179
|
{
|
|
172
180
|
key: 'max-length',
|
|
173
181
|
visible: true
|
|
@@ -162,7 +162,26 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
|
|
|
162
162
|
* 行高设置 分为pc 和 移动 默认值为 RowHeight
|
|
163
163
|
* @defaultValue MetaRowHeight
|
|
164
164
|
* @public
|
|
165
|
-
*/ _define_property(_this, "rowHeightSetting", void 0)
|
|
165
|
+
*/ _define_property(_this, "rowHeightSetting", void 0), // /**
|
|
166
|
+
// * 自适应内容高度
|
|
167
|
+
// * @defaultValue false
|
|
168
|
+
// * @public
|
|
169
|
+
// */
|
|
170
|
+
// public autoSize: boolean
|
|
171
|
+
// /**
|
|
172
|
+
// * 最大适应行数
|
|
173
|
+
// * @defaultValue 无默认值
|
|
174
|
+
// * @public
|
|
175
|
+
// */
|
|
176
|
+
// public maxRows?: Number
|
|
177
|
+
/**
|
|
178
|
+
* 在明细子表中自动高度
|
|
179
|
+
* @defaultValue false
|
|
180
|
+
*/ _define_property(_this, "autoHeight", void 0), /**
|
|
181
|
+
* 在明细子表中行数设置
|
|
182
|
+
* @defaultValue 1
|
|
183
|
+
* @public
|
|
184
|
+
*/ _define_property(_this, "lineEllipsis", void 0);
|
|
166
185
|
var _props_maxLength;
|
|
167
186
|
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
|
|
168
187
|
var _props_minLength;
|
|
@@ -177,6 +196,10 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
|
|
|
177
196
|
// this.autoSize = props?.autoSize ?? false
|
|
178
197
|
// this.maxRows = props?.maxRows
|
|
179
198
|
_this.rowHeightSetting = new MetaRowHeight(props === null || props === void 0 ? void 0 : props.rowHeightSetting);
|
|
199
|
+
var _props_autoHeight;
|
|
200
|
+
_this.autoHeight = (_props_autoHeight = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _props_autoHeight !== void 0 ? _props_autoHeight : false;
|
|
201
|
+
var _props_lineEllipsis;
|
|
202
|
+
_this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
|
|
180
203
|
return _this;
|
|
181
204
|
}
|
|
182
205
|
return TextareaProperty;
|
|
@@ -125,12 +125,12 @@ var TreeControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
125
125
|
return [
|
|
126
126
|
{
|
|
127
127
|
key: 'displayBoList',
|
|
128
|
-
name:
|
|
128
|
+
name: '显示值',
|
|
129
129
|
required: true
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
key: 'parentField',
|
|
133
|
-
name:
|
|
133
|
+
name: '父级字段',
|
|
134
134
|
required: true
|
|
135
135
|
}
|
|
136
136
|
];
|
|
@@ -24,6 +24,7 @@ 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';
|
|
27
28
|
export { default as ElectronicSignature } from './ElectronicSignature';
|
|
28
29
|
export { default as WPS } from './WPS';
|
|
29
30
|
export { default as Department2 } from './Department2';
|