@byteluck-fe/model-driven-controls 6.2.0-1-beta.15 → 6.2.0-1-beta.18
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 +7 -6
- package/dist/esm/baseControls/Text/property.js +20 -5
- package/dist/esm/formControls/index.js +0 -1
- package/dist/esm/layoutControls/TableLayout/designer.js +4 -0
- package/dist/esm/layoutControls/TableLayout/property.js +24 -17
- package/dist/esm/layoutControls/TableLayoutCol/designer.js +4 -3
- package/dist/esm/layoutControls/TableLayoutCol/property.js +8 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/Text/property.d.ts +18 -2
- package/dist/types/formControls/index.d.ts +0 -1
- package/dist/types/layoutControls/TableLayout/property.d.ts +13 -12
- package/dist/types/layoutControls/TableLayoutCol/property.d.ts +7 -0
- package/dist/types/type.d.ts +1 -2
- package/package.json +5 -5
- package/dist/esm/formControls/DisplayText/designer.js +0 -171
- package/dist/esm/formControls/DisplayText/index.js +0 -11
- package/dist/esm/formControls/DisplayText/property.js +0 -107
- package/dist/esm/formControls/DisplayText/runtime.js +0 -112
- package/dist/esm/formControls/DisplayText/types.js +0 -0
- package/dist/types/formControls/DisplayText/designer.d.ts +0 -12
- package/dist/types/formControls/DisplayText/index.d.ts +0 -12
- package/dist/types/formControls/DisplayText/property.d.ts +0 -17
- package/dist/types/formControls/DisplayText/runtime.d.ts +0 -10
- package/dist/types/formControls/DisplayText/types.d.ts +0 -0
|
@@ -1,11 +1,27 @@
|
|
|
1
1
|
import { Property } from '@byteluck-fe/model-driven-core';
|
|
2
2
|
declare class TextProperty extends Property {
|
|
3
3
|
content: string;
|
|
4
|
-
fontSize: string;
|
|
5
|
-
color: string;
|
|
6
4
|
icon: string;
|
|
7
5
|
align: string;
|
|
8
6
|
showState: 'text' | 'imageText' | 'image';
|
|
7
|
+
/**
|
|
8
|
+
* 标题大小
|
|
9
|
+
* @defaultValue ''
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
captionSize: string;
|
|
13
|
+
/**
|
|
14
|
+
* 标题颜色
|
|
15
|
+
* @defaultValue ''
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
captionColor: string;
|
|
19
|
+
/**
|
|
20
|
+
* 标题斜体
|
|
21
|
+
* @defaultValue false
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
isCaptionItalic: boolean;
|
|
9
25
|
/**
|
|
10
26
|
* ai 显示内容搜索 false | true
|
|
11
27
|
* @defaultValue false
|
|
@@ -6,7 +6,6 @@ export { default as DatePicker } from './DatePicker';
|
|
|
6
6
|
export { default as DateRange } from './DateRange';
|
|
7
7
|
export { default as Textarea } from './Textarea';
|
|
8
8
|
export { default as RichText } from './RichText';
|
|
9
|
-
export { default as DisplayText } from './DisplayText';
|
|
10
9
|
export { default as Select } from './Select';
|
|
11
10
|
export { default as SelectMultiple } from './SelectMultiple';
|
|
12
11
|
export { default as Employee } from './Employee';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { LayoutControlProperty } from '@byteluck-fe/model-driven-core';
|
|
2
2
|
interface PaddingProperty {
|
|
3
|
-
paddingTop: number;
|
|
4
|
-
paddingRight: number;
|
|
5
|
-
paddingBottom: number;
|
|
6
|
-
paddingLeft: number;
|
|
3
|
+
paddingTop: number | string;
|
|
4
|
+
paddingRight: number | string;
|
|
5
|
+
paddingBottom: number | string;
|
|
6
|
+
paddingLeft: number | string;
|
|
7
7
|
}
|
|
8
8
|
interface MarginProperty {
|
|
9
|
-
marginTop: number;
|
|
10
|
-
marginRight: number;
|
|
11
|
-
marginBottom: number;
|
|
12
|
-
marginLeft: number;
|
|
9
|
+
marginTop: number | string;
|
|
10
|
+
marginRight: number | string;
|
|
11
|
+
marginBottom: number | string;
|
|
12
|
+
marginLeft: number | string;
|
|
13
13
|
}
|
|
14
14
|
interface BorderProperty {
|
|
15
15
|
borderTop: boolean;
|
|
@@ -27,10 +27,10 @@ interface BackgroundProperty {
|
|
|
27
27
|
placementMode: string;
|
|
28
28
|
}
|
|
29
29
|
interface BorderRadiusProperty {
|
|
30
|
-
borderTopLeftRadius: number;
|
|
31
|
-
borderTopRightRadius: number;
|
|
32
|
-
borderBottomRightRadius: number;
|
|
33
|
-
borderBottomLeftRadius: number;
|
|
30
|
+
borderTopLeftRadius: number | string;
|
|
31
|
+
borderTopRightRadius: number | string;
|
|
32
|
+
borderBottomRightRadius: number | string;
|
|
33
|
+
borderBottomLeftRadius: number | string;
|
|
34
34
|
}
|
|
35
35
|
declare class TableLayoutControlProperty extends LayoutControlProperty {
|
|
36
36
|
rowCount: number;
|
|
@@ -45,6 +45,7 @@ declare class TableLayoutControlProperty extends LayoutControlProperty {
|
|
|
45
45
|
background: BackgroundProperty;
|
|
46
46
|
borderRadius: BorderRadiusProperty;
|
|
47
47
|
align: 'left' | 'center' | 'right' | 'justify' | '';
|
|
48
|
+
innerBorder: Object;
|
|
48
49
|
constructor(props?: Partial<TableLayoutControlProperty>);
|
|
49
50
|
}
|
|
50
51
|
export default TableLayoutControlProperty;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { LayoutControlProperty } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
interface BackgroundProperty {
|
|
3
|
+
type: 'backgroundColor' | 'backgroundImage';
|
|
4
|
+
backgroundColor: string;
|
|
5
|
+
backgroundImage: string;
|
|
6
|
+
placementMode: string;
|
|
7
|
+
}
|
|
2
8
|
declare class TableLayoutColControlProperty extends LayoutControlProperty {
|
|
3
9
|
span: number;
|
|
4
10
|
offset: number;
|
|
@@ -8,6 +14,7 @@ declare class TableLayoutColControlProperty extends LayoutControlProperty {
|
|
|
8
14
|
flexDirection: 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
9
15
|
alignItems: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
|
|
10
16
|
justifyContent: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around';
|
|
17
|
+
background: BackgroundProperty;
|
|
11
18
|
constructor(props?: Partial<TableLayoutColControlProperty>);
|
|
12
19
|
}
|
|
13
20
|
export default TableLayoutColControlProperty;
|
package/dist/types/type.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Divider, Text, Link, Button, Title, CreateFormListButton, BatchSubmissionListButton, SubmissionRecordListButton, ImportRecordListButton, ExportRecordListButton, ExportListButton, FormSelectButton, ListSelectButton, Pagination, Dashboard, ListViewSelect, TextOcrButton, InvoiceCheckButton, BatchPrintListButton, BatchPrintRecordListButton, OperationButton, ReferenceList } from './baseControls';
|
|
2
|
-
import { Address, Amount, Attachment, AutoNumber, Checkbox, DatePicker, DateRange, Department, Employee, Image, Input, Number, Radio, Score, Select, SelectMultiple, Textarea, RichText,
|
|
2
|
+
import { Address, Amount, Attachment, AutoNumber, Checkbox, DatePicker, DateRange, Department, Employee, Image, Input, Number, Radio, Score, Select, SelectMultiple, Textarea, RichText, Calc, SearchNumberRange, SearchDateRange, SearchInput, VueFormItem, SelectRelation, Tree, Employee2, ElectronicSignature, WPS, Department2, OrganizationSelection, VuePage } from './formControls';
|
|
3
3
|
import { CardGroup, Col, Grid, GridRow, Row, SubTableColumn, SubTableRow, GridTableColumn, GridLayoutContainer, Tab, TabPane, Toolbox, ListView, DataView, Page, AdvancedContainer, PositioningContainer, Position, ActionBar, Step, StepPane, TableLayout, TableLayoutRow, TableLayoutCol, TableLayoutWrapper } from './layoutControls';
|
|
4
4
|
import { SubTable, GridTable } from './listControls';
|
|
5
5
|
import { VarcharColumn, TextColumn, DecimalColumn, TimescopeColumn, TimestampColumn, ArrayColumn, DepartmentColumn, AutoNumberColumn, FileColumn, ImageColumn, PeopleColumn, LocationColumn, CustomColumn, OrderColumn, OperationColumn, EmployeeColumn, ApprovalStatusColumn } from './columnControls';
|
|
@@ -49,7 +49,6 @@ declare module '@byteluck-fe/model-driven-core' {
|
|
|
49
49
|
score: typeof Score;
|
|
50
50
|
textarea: typeof Textarea;
|
|
51
51
|
'rich-text': typeof RichText;
|
|
52
|
-
'display-text': typeof DisplayText;
|
|
53
52
|
calc: typeof Calc;
|
|
54
53
|
'search-number-range': typeof SearchNumberRange;
|
|
55
54
|
'search-date-range': typeof SearchDateRange;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-controls",
|
|
3
|
-
"version": "6.2.0-1-beta.
|
|
3
|
+
"version": "6.2.0-1-beta.18",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"postpublish": "node ../../scripts/postpublish.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@byteluck-fe/model-driven-core": "6.2.0-1-beta.
|
|
30
|
-
"@byteluck-fe/model-driven-settings": "6.2.0-1-beta.
|
|
31
|
-
"@byteluck-fe/model-driven-shared": "6.2.0-1-beta.
|
|
29
|
+
"@byteluck-fe/model-driven-core": "6.2.0-1-beta.16",
|
|
30
|
+
"@byteluck-fe/model-driven-settings": "6.2.0-1-beta.16",
|
|
31
|
+
"@byteluck-fe/model-driven-shared": "6.2.0-1-beta.16",
|
|
32
32
|
"async-validator": "3.5.1"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "dd6906cf6edeb8c6f076641ee608d8a40e3e9c59"
|
|
35
35
|
}
|
|
@@ -1,171 +0,0 @@
|
|
|
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.diplayText', 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: 'common-setting',
|
|
135
|
-
visible: true,
|
|
136
|
-
showItems: [
|
|
137
|
-
COMMON_SETTING_TYPE.IS_HIDE
|
|
138
|
-
]
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
key: 'caption-style',
|
|
142
|
-
showItems: [
|
|
143
|
-
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
144
|
-
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
145
|
-
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
146
|
-
],
|
|
147
|
-
visible: true
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
key: 'ai-content-search',
|
|
151
|
-
visible: true
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
key: 'text-align',
|
|
155
|
-
visible: true
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
key: 'text-state',
|
|
159
|
-
visible: true
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
key: 'text-icon',
|
|
163
|
-
visible: true
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
key: 'super-setting',
|
|
167
|
-
visible: true
|
|
168
|
-
}
|
|
169
|
-
]);
|
|
170
|
-
export default DisplayTextControl;
|
|
171
|
-
export { DisplayTextControl as DesignerTextControl };
|
|
@@ -1,11 +0,0 @@
|
|
|
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';
|
|
@@ -1,107 +0,0 @@
|
|
|
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, "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), _define_property(_this, "isLabel", void 0);
|
|
89
|
-
var _props_icon;
|
|
90
|
-
// this.dataBind = new DataBind(props?.dataBind)
|
|
91
|
-
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : 'page-hint';
|
|
92
|
-
var _props_showState;
|
|
93
|
-
_this.showState = (_props_showState = props === null || props === void 0 ? void 0 : props.showState) !== null && _props_showState !== void 0 ? _props_showState : 'text';
|
|
94
|
-
var _props_content;
|
|
95
|
-
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : getLocaleText('CMD.displayText', null, '展示文字');
|
|
96
|
-
var _props_align;
|
|
97
|
-
_this.align = (_props_align = props === null || props === void 0 ? void 0 : props.align) !== null && _props_align !== void 0 ? _props_align : '';
|
|
98
|
-
var _props_aiContentSearch;
|
|
99
|
-
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
100
|
-
var _props_isLabel;
|
|
101
|
-
_this.isLabel = (_props_isLabel = props === null || props === void 0 ? void 0 : props.isLabel) !== null && _props_isLabel !== void 0 ? _props_isLabel : false;
|
|
102
|
-
return _this;
|
|
103
|
-
}
|
|
104
|
-
return DisplayTextProperty;
|
|
105
|
-
}(BaseControlProperty);
|
|
106
|
-
export default DisplayTextProperty;
|
|
107
|
-
export { DisplayTextProperty };
|
|
@@ -1,112 +0,0 @@
|
|
|
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
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DesignerFormControl, Schema, SettingOption } from '@byteluck-fe/model-driven-core';
|
|
2
|
-
import DisplayTextProperty from './property';
|
|
3
|
-
declare class DisplayTextControl extends DesignerFormControl {
|
|
4
|
-
static get controlName(): string;
|
|
5
|
-
static get controlIcon(): string;
|
|
6
|
-
static get controlType(): string;
|
|
7
|
-
static readonly setting: SettingOption[];
|
|
8
|
-
readonly props: DisplayTextProperty;
|
|
9
|
-
constructor(props?: Partial<Schema<'display-text'>>);
|
|
10
|
-
}
|
|
11
|
-
export default DisplayTextControl;
|
|
12
|
-
export { DisplayTextControl as DesignerTextControl };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import Designer from './designer';
|
|
2
|
-
import Runtime from './runtime';
|
|
3
|
-
import Property from './property';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
Designer: typeof Designer;
|
|
6
|
-
Runtime: typeof Runtime;
|
|
7
|
-
Property: typeof Property;
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
10
|
-
export * from './designer';
|
|
11
|
-
export * from './runtime';
|
|
12
|
-
export * from './property';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseControlProperty } from '@byteluck-fe/model-driven-core';
|
|
2
|
-
declare class DisplayTextProperty extends BaseControlProperty {
|
|
3
|
-
content: string;
|
|
4
|
-
icon: string;
|
|
5
|
-
align: string;
|
|
6
|
-
showState: 'text' | 'imageText' | 'image';
|
|
7
|
-
/**
|
|
8
|
-
* ai 显示内容搜索 false | true
|
|
9
|
-
* @defaultValue false
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
aiContentSearch: boolean;
|
|
13
|
-
isLabel: boolean;
|
|
14
|
-
constructor(props?: Partial<DisplayTextProperty>);
|
|
15
|
-
}
|
|
16
|
-
export default DisplayTextProperty;
|
|
17
|
-
export { DisplayTextProperty };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { RuntimeFormControl } from '@byteluck-fe/model-driven-core';
|
|
2
|
-
import TextProperty from './property';
|
|
3
|
-
import { Schema } from '@byteluck-fe/model-driven-core';
|
|
4
|
-
declare class TextControl extends RuntimeFormControl {
|
|
5
|
-
static get controlType(): string;
|
|
6
|
-
readonly props: TextProperty;
|
|
7
|
-
constructor(props?: Partial<Schema<'display-text'>>);
|
|
8
|
-
}
|
|
9
|
-
export default TextControl;
|
|
10
|
-
export { TextControl as RuntimeTextControl };
|
|
File without changes
|