@byteluck-fe/model-driven-controls 6.2.0-1-beta.7 → 6.2.0-1-beta.10
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/formControls/Address/designer.js +9 -0
- package/dist/esm/formControls/Amount/designer.js +9 -0
- package/dist/esm/formControls/Attachment/designer.js +9 -0
- package/dist/esm/formControls/AutoNumber/designer.js +9 -0
- package/dist/esm/formControls/Calc/designer.js +9 -0
- package/dist/esm/formControls/Checkbox/designer.js +9 -0
- package/dist/esm/formControls/DatePicker/designer.js +9 -0
- package/dist/esm/formControls/DateRange/designer.js +9 -0
- package/dist/esm/formControls/Department/designer.js +9 -0
- package/dist/esm/formControls/Department2/designer.js +9 -0
- package/dist/esm/formControls/DisplayText/designer.js +179 -0
- package/dist/esm/formControls/DisplayText/index.js +11 -0
- package/dist/esm/formControls/DisplayText/property.js +109 -0
- package/dist/esm/formControls/DisplayText/runtime.js +112 -0
- package/dist/esm/formControls/DisplayText/types.js +0 -0
- package/dist/esm/formControls/ElectronicSignature/designer.js +9 -0
- package/dist/esm/formControls/Employee/designer.js +9 -0
- package/dist/esm/formControls/Employee2/designer.js +9 -0
- package/dist/esm/formControls/Employee2/property.js +2 -1
- package/dist/esm/formControls/Image/designer.js +9 -0
- package/dist/esm/formControls/Image/property.js +6 -3
- package/dist/esm/formControls/Input/designer.js +9 -0
- package/dist/esm/formControls/Number/designer.js +9 -0
- package/dist/esm/formControls/OrganizationSelection/designer.js +9 -0
- package/dist/esm/formControls/Radio/designer.js +9 -0
- package/dist/esm/formControls/RichText/designer.js +9 -0
- package/dist/esm/formControls/Score/designer.js +9 -0
- package/dist/esm/formControls/SearchDateRange/designer.js +9 -0
- package/dist/esm/formControls/SearchInput/designer.js +9 -0
- package/dist/esm/formControls/SearchNumberRange/designer.js +9 -0
- package/dist/esm/formControls/Select/designer.js +9 -0
- package/dist/esm/formControls/SelectMultiple/designer.js +9 -0
- package/dist/esm/formControls/SelectRelation/designer.js +9 -0
- package/dist/esm/formControls/Textarea/designer.js +9 -0
- package/dist/esm/formControls/Tree/designer.js +9 -0
- package/dist/esm/formControls/VueFormItem/designer.js +9 -0
- package/dist/esm/formControls/WPS/designer.js +9 -0
- package/dist/esm/formControls/index.js +1 -0
- package/dist/esm/framework.js +10 -5
- package/dist/esm/layoutControls/TableLayoutCol/designer.js +146 -0
- package/dist/esm/layoutControls/TableLayoutCol/index.js +11 -0
- package/dist/esm/layoutControls/TableLayoutCol/property.js +111 -0
- package/dist/esm/layoutControls/TableLayoutCol/runtime.js +112 -0
- package/dist/esm/layoutControls/TableLayoutCol/types.js +0 -0
- package/dist/esm/layoutControls/TableLayoutRow/designer.js +136 -0
- package/dist/esm/layoutControls/TableLayoutRow/index.js +11 -0
- package/dist/esm/layoutControls/TableLayoutRow/property.js +92 -0
- package/dist/esm/layoutControls/TableLayoutRow/runtime.js +112 -0
- package/dist/esm/layoutControls/TableLayoutRow/types.js +0 -0
- package/dist/esm/layoutControls/TableLayoutWrapper/designer.js +132 -0
- package/dist/esm/layoutControls/TableLayoutWrapper/index.js +11 -0
- package/dist/esm/layoutControls/TableLayoutWrapper/property.js +93 -0
- package/dist/esm/layoutControls/TableLayoutWrapper/runtime.js +112 -0
- package/dist/esm/layoutControls/TableLayoutWrapper/types.js +0 -0
- package/dist/esm/layoutControls/index.js +3 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/formControls/DisplayText/designer.d.ts +12 -0
- package/dist/types/formControls/DisplayText/index.d.ts +12 -0
- package/dist/types/formControls/DisplayText/property.d.ts +18 -0
- package/dist/types/formControls/DisplayText/runtime.d.ts +10 -0
- package/dist/types/formControls/DisplayText/types.d.ts +0 -0
- package/dist/types/formControls/index.d.ts +1 -0
- package/dist/types/framework.d.ts +19 -19
- package/dist/types/layoutControls/TableLayoutCol/designer.d.ts +15 -0
- package/dist/types/layoutControls/TableLayoutCol/index.d.ts +12 -0
- package/dist/types/layoutControls/TableLayoutCol/property.d.ts +14 -0
- package/dist/types/layoutControls/TableLayoutCol/runtime.d.ts +10 -0
- package/dist/types/layoutControls/TableLayoutCol/types.d.ts +0 -0
- package/dist/types/layoutControls/TableLayoutRow/designer.d.ts +15 -0
- package/dist/types/layoutControls/TableLayoutRow/index.d.ts +12 -0
- package/dist/types/layoutControls/TableLayoutRow/property.d.ts +8 -0
- package/dist/types/layoutControls/TableLayoutRow/runtime.d.ts +11 -0
- package/dist/types/layoutControls/TableLayoutRow/types.d.ts +0 -0
- package/dist/types/layoutControls/TableLayoutWrapper/designer.d.ts +13 -0
- package/dist/types/layoutControls/TableLayoutWrapper/index.d.ts +12 -0
- package/dist/types/layoutControls/TableLayoutWrapper/property.d.ts +8 -0
- package/dist/types/layoutControls/TableLayoutWrapper/runtime.d.ts +10 -0
- package/dist/types/layoutControls/TableLayoutWrapper/types.d.ts +0 -0
- package/dist/types/layoutControls/index.d.ts +3 -0
- package/dist/types/type.d.ts +6 -2
- package/dist/types/wrapControls/GridLayoutWrap/index.d.ts +1 -1
- package/package.json +5 -5
|
@@ -136,6 +136,15 @@ _define_property(AddressControl, "setting", [
|
|
|
136
136
|
],
|
|
137
137
|
visible: true
|
|
138
138
|
},
|
|
139
|
+
{
|
|
140
|
+
key: 'caption-style',
|
|
141
|
+
showItems: [
|
|
142
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
143
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
144
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
145
|
+
],
|
|
146
|
+
visible: true
|
|
147
|
+
},
|
|
139
148
|
{
|
|
140
149
|
key: 'label-position',
|
|
141
150
|
visible: true
|
|
@@ -178,6 +178,15 @@ _define_property(AmountControl, "setting", [
|
|
|
178
178
|
],
|
|
179
179
|
visible: true
|
|
180
180
|
},
|
|
181
|
+
{
|
|
182
|
+
key: 'caption-style',
|
|
183
|
+
showItems: [
|
|
184
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
185
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
186
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
187
|
+
],
|
|
188
|
+
visible: true
|
|
189
|
+
},
|
|
181
190
|
{
|
|
182
191
|
key: 'label-position',
|
|
183
192
|
visible: true
|
|
@@ -140,6 +140,15 @@ _define_property(AttachmentControl, "setting", [
|
|
|
140
140
|
],
|
|
141
141
|
visible: true
|
|
142
142
|
},
|
|
143
|
+
{
|
|
144
|
+
key: 'caption-style',
|
|
145
|
+
showItems: [
|
|
146
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
147
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
148
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
149
|
+
],
|
|
150
|
+
visible: true
|
|
151
|
+
},
|
|
143
152
|
{
|
|
144
153
|
key: 'label-position',
|
|
145
154
|
visible: true
|
|
@@ -139,6 +139,15 @@ _define_property(AutoNumberControl, "setting", [
|
|
|
139
139
|
],
|
|
140
140
|
visible: true
|
|
141
141
|
},
|
|
142
|
+
{
|
|
143
|
+
key: 'caption-style',
|
|
144
|
+
showItems: [
|
|
145
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
146
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
147
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
148
|
+
],
|
|
149
|
+
visible: true
|
|
150
|
+
},
|
|
142
151
|
{
|
|
143
152
|
key: 'label-position',
|
|
144
153
|
visible: true
|
|
@@ -175,6 +175,15 @@ _define_property(CalcControl, "setting", [
|
|
|
175
175
|
],
|
|
176
176
|
visible: true
|
|
177
177
|
},
|
|
178
|
+
{
|
|
179
|
+
key: 'caption-style',
|
|
180
|
+
showItems: [
|
|
181
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
182
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
183
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
184
|
+
],
|
|
185
|
+
visible: true
|
|
186
|
+
},
|
|
178
187
|
{
|
|
179
188
|
key: 'label-position',
|
|
180
189
|
visible: true
|
|
@@ -144,6 +144,15 @@ _define_property(CheckboxControl, "setting", [
|
|
|
144
144
|
],
|
|
145
145
|
visible: true
|
|
146
146
|
},
|
|
147
|
+
{
|
|
148
|
+
key: 'caption-style',
|
|
149
|
+
showItems: [
|
|
150
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
151
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
152
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
153
|
+
],
|
|
154
|
+
visible: true
|
|
155
|
+
},
|
|
147
156
|
{
|
|
148
157
|
key: 'label-position',
|
|
149
158
|
visible: true
|
|
@@ -176,6 +176,15 @@ _define_property(DatePickerControl, "setting", [
|
|
|
176
176
|
],
|
|
177
177
|
visible: true
|
|
178
178
|
},
|
|
179
|
+
{
|
|
180
|
+
key: 'caption-style',
|
|
181
|
+
showItems: [
|
|
182
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
183
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
184
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
185
|
+
],
|
|
186
|
+
visible: true
|
|
187
|
+
},
|
|
179
188
|
{
|
|
180
189
|
key: 'label-position',
|
|
181
190
|
visible: true
|
|
@@ -172,6 +172,15 @@ _define_property(DateRangeControl, "setting", [
|
|
|
172
172
|
],
|
|
173
173
|
visible: true
|
|
174
174
|
},
|
|
175
|
+
{
|
|
176
|
+
key: 'caption-style',
|
|
177
|
+
showItems: [
|
|
178
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
179
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
180
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
181
|
+
],
|
|
182
|
+
visible: true
|
|
183
|
+
},
|
|
175
184
|
{
|
|
176
185
|
key: 'label-position',
|
|
177
186
|
visible: true
|
|
@@ -169,6 +169,15 @@ _define_property(DepartmentControl, "setting", [
|
|
|
169
169
|
],
|
|
170
170
|
visible: true
|
|
171
171
|
},
|
|
172
|
+
{
|
|
173
|
+
key: 'caption-style',
|
|
174
|
+
showItems: [
|
|
175
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
176
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
177
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
178
|
+
],
|
|
179
|
+
visible: true
|
|
180
|
+
},
|
|
172
181
|
{
|
|
173
182
|
key: 'label-position',
|
|
174
183
|
visible: true
|
|
@@ -183,6 +183,15 @@ _define_property(Department2Control, "setting", [
|
|
|
183
183
|
],
|
|
184
184
|
visible: true
|
|
185
185
|
},
|
|
186
|
+
{
|
|
187
|
+
key: 'caption-style',
|
|
188
|
+
showItems: [
|
|
189
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
190
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
191
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
192
|
+
],
|
|
193
|
+
visible: true
|
|
194
|
+
},
|
|
186
195
|
{
|
|
187
196
|
key: 'label-position',
|
|
188
197
|
visible: true
|
|
@@ -0,0 +1,179 @@
|
|
|
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 DisplayTextProperty from './property';
|
|
89
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
|
+
var DisplayTextControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
91
|
+
"use strict";
|
|
92
|
+
_inherits(DisplayTextControl, DesignerFormControl);
|
|
93
|
+
function DisplayTextControl(props) {
|
|
94
|
+
_class_call_check(this, DisplayTextControl);
|
|
95
|
+
var _this;
|
|
96
|
+
_this = _call_super(this, DisplayTextControl, [
|
|
97
|
+
props
|
|
98
|
+
]), _define_property(_this, "props", void 0);
|
|
99
|
+
_this.props = new DisplayTextProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
100
|
+
return _this;
|
|
101
|
+
}
|
|
102
|
+
_create_class(DisplayTextControl, null, [
|
|
103
|
+
{
|
|
104
|
+
key: "controlName",
|
|
105
|
+
get: function get() {
|
|
106
|
+
return getLocaleText('CMD.text', null, '展示文本');
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
key: "controlIcon",
|
|
111
|
+
get: function get() {
|
|
112
|
+
return 'iconwenben';
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
key: "controlType",
|
|
117
|
+
get: function get() {
|
|
118
|
+
return 'display-text';
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
]);
|
|
122
|
+
return DisplayTextControl;
|
|
123
|
+
}(DesignerFormControl);
|
|
124
|
+
_define_property(DisplayTextControl, "setting", [
|
|
125
|
+
{
|
|
126
|
+
key: 'data-bind',
|
|
127
|
+
visible: true
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
key: 'content',
|
|
131
|
+
visible: true
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
key: 'text-font-size',
|
|
135
|
+
visible: true
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
key: 'common-setting',
|
|
139
|
+
visible: true,
|
|
140
|
+
showItems: [
|
|
141
|
+
COMMON_SETTING_TYPE.IS_HIDE
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
key: 'caption-style',
|
|
146
|
+
showItems: [
|
|
147
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
148
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
149
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
150
|
+
],
|
|
151
|
+
visible: true
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
key: 'ai-content-search',
|
|
155
|
+
visible: true
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
key: 'text-color',
|
|
159
|
+
visible: true
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
key: 'dynamic-align',
|
|
163
|
+
visible: true
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
key: 'text-state',
|
|
167
|
+
visible: true
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
key: 'text-icon',
|
|
171
|
+
visible: true
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
key: 'super-setting',
|
|
175
|
+
visible: true
|
|
176
|
+
}
|
|
177
|
+
]);
|
|
178
|
+
export default DisplayTextControl;
|
|
179
|
+
export { DisplayTextControl as DesignerTextControl };
|
|
@@ -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,109 @@
|
|
|
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 { getLocaleText } from '@byteluck-fe/locale-message';
|
|
74
|
+
import { BaseControlProperty } from '@byteluck-fe/model-driven-core';
|
|
75
|
+
var DisplayTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
76
|
+
"use strict";
|
|
77
|
+
_inherits(DisplayTextProperty, BaseControlProperty);
|
|
78
|
+
function DisplayTextProperty(props) {
|
|
79
|
+
_class_call_check(this, DisplayTextProperty);
|
|
80
|
+
var _this;
|
|
81
|
+
_this = _call_super(this, DisplayTextProperty, [
|
|
82
|
+
props
|
|
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), /**
|
|
85
|
+
* ai 显示内容搜索 false | true
|
|
86
|
+
* @defaultValue false
|
|
87
|
+
* @public
|
|
88
|
+
*/ _define_property(_this, "aiContentSearch", void 0);
|
|
89
|
+
var _props_fontSize;
|
|
90
|
+
// this.dataBind = new DataBind(props?.dataBind)
|
|
91
|
+
_this.fontSize = (_props_fontSize = props === null || props === void 0 ? void 0 : props.fontSize) !== null && _props_fontSize !== void 0 ? _props_fontSize : '14px';
|
|
92
|
+
var _props_color;
|
|
93
|
+
_this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : '#646A73';
|
|
94
|
+
var _props_icon;
|
|
95
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : 'page-hint';
|
|
96
|
+
var _props_showState;
|
|
97
|
+
_this.showState = (_props_showState = props === null || props === void 0 ? void 0 : props.showState) !== null && _props_showState !== void 0 ? _props_showState : 'text';
|
|
98
|
+
var _props_content;
|
|
99
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : getLocaleText('CMD.text', null, '说明文字');
|
|
100
|
+
var _props_align;
|
|
101
|
+
_this.align = (_props_align = props === null || props === void 0 ? void 0 : props.align) !== null && _props_align !== void 0 ? _props_align : '';
|
|
102
|
+
var _props_aiContentSearch;
|
|
103
|
+
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
104
|
+
return _this;
|
|
105
|
+
}
|
|
106
|
+
return DisplayTextProperty;
|
|
107
|
+
}(BaseControlProperty);
|
|
108
|
+
export default DisplayTextProperty;
|
|
109
|
+
export { DisplayTextProperty };
|
|
@@ -0,0 +1,112 @@
|
|
|
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 TextProperty from './property';
|
|
89
|
+
var TextControl = /*#__PURE__*/ function(RuntimeFormControl) {
|
|
90
|
+
"use strict";
|
|
91
|
+
_inherits(TextControl, RuntimeFormControl);
|
|
92
|
+
function TextControl(props) {
|
|
93
|
+
_class_call_check(this, TextControl);
|
|
94
|
+
var _this;
|
|
95
|
+
_this = _call_super(this, TextControl, [
|
|
96
|
+
props
|
|
97
|
+
]), _define_property(_this, "props", void 0);
|
|
98
|
+
_this.props = new TextProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
99
|
+
return _this;
|
|
100
|
+
}
|
|
101
|
+
_create_class(TextControl, null, [
|
|
102
|
+
{
|
|
103
|
+
key: "controlType",
|
|
104
|
+
get: function get() {
|
|
105
|
+
return 'display-text';
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]);
|
|
109
|
+
return TextControl;
|
|
110
|
+
}(RuntimeFormControl);
|
|
111
|
+
export default TextControl;
|
|
112
|
+
export { TextControl as RuntimeTextControl };
|
|
File without changes
|
|
@@ -140,6 +140,15 @@ _define_property(ElectronicSignatureControl, "setting", [
|
|
|
140
140
|
],
|
|
141
141
|
visible: true
|
|
142
142
|
},
|
|
143
|
+
{
|
|
144
|
+
key: 'caption-style',
|
|
145
|
+
showItems: [
|
|
146
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
147
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
148
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
149
|
+
],
|
|
150
|
+
visible: true
|
|
151
|
+
},
|
|
143
152
|
{
|
|
144
153
|
key: 'label-position',
|
|
145
154
|
visible: true
|
|
@@ -136,6 +136,15 @@ _define_property(EmployeeControl, "setting", [
|
|
|
136
136
|
],
|
|
137
137
|
visible: true
|
|
138
138
|
},
|
|
139
|
+
{
|
|
140
|
+
key: 'caption-style',
|
|
141
|
+
showItems: [
|
|
142
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
143
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
144
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
145
|
+
],
|
|
146
|
+
visible: true
|
|
147
|
+
},
|
|
139
148
|
{
|
|
140
149
|
key: 'label-position',
|
|
141
150
|
visible: true
|
|
@@ -154,6 +154,15 @@ _define_property(Employee2Control, "setting", [
|
|
|
154
154
|
],
|
|
155
155
|
visible: true
|
|
156
156
|
},
|
|
157
|
+
{
|
|
158
|
+
key: 'caption-style',
|
|
159
|
+
showItems: [
|
|
160
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
161
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
162
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
163
|
+
],
|
|
164
|
+
visible: true
|
|
165
|
+
},
|
|
157
166
|
{
|
|
158
167
|
key: 'label-position',
|
|
159
168
|
visible: true
|
|
@@ -160,7 +160,8 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
160
160
|
attributes: Employee2Control.controlCustomAttributes
|
|
161
161
|
});
|
|
162
162
|
var _props_datasourceType;
|
|
163
|
-
_this.datasourceType = (_props_datasourceType = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _props_datasourceType !== void 0 ? _props_datasourceType : OrganizeType.INTERNAL
|
|
163
|
+
_this.datasourceType = (_props_datasourceType = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _props_datasourceType !== void 0 ? _props_datasourceType : OrganizeType.INTERNAL //默认内部组织 EXTERNAL 外部组织
|
|
164
|
+
;
|
|
164
165
|
var _props_insideType;
|
|
165
166
|
_this.insideType = (_props_insideType = props === null || props === void 0 ? void 0 : props.insideType) !== null && _props_insideType !== void 0 ? _props_insideType : InternalType.ADMIN;
|
|
166
167
|
var _props_externalType;
|
|
@@ -143,6 +143,15 @@ _define_property(ImageControl, "setting", [
|
|
|
143
143
|
],
|
|
144
144
|
visible: true
|
|
145
145
|
},
|
|
146
|
+
{
|
|
147
|
+
key: 'caption-style',
|
|
148
|
+
showItems: [
|
|
149
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
150
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
151
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
152
|
+
],
|
|
153
|
+
visible: true
|
|
154
|
+
},
|
|
146
155
|
{
|
|
147
156
|
key: 'label-position',
|
|
148
157
|
visible: true
|