@byteluck-fe/model-driven-controls 2.22.2-beta.17 → 2.22.2-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/BatchDeleteButton/designer.js +2 -2
- package/dist/esm/baseControls/BatchPrintListButton/designer.js +2 -2
- package/dist/esm/baseControls/BatchPrintListButton/property.js +2 -2
- package/dist/esm/baseControls/BatchPrintRecordListButton/designer.js +2 -2
- package/dist/esm/baseControls/BatchSubmissionListButton/designer.js +2 -2
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +10 -10
- package/dist/esm/baseControls/Button/designer.js +3 -2
- package/dist/esm/baseControls/Button/property.js +34 -34
- package/dist/esm/baseControls/CreateFormListButton/designer.js +2 -2
- package/dist/esm/baseControls/CreateFormListButton/property.js +2 -2
- package/dist/esm/baseControls/Dashboard/designer.js +2 -2
- package/dist/esm/baseControls/Dashboard/property.js +4 -4
- package/dist/esm/baseControls/Divider/designer.js +2 -2
- package/dist/esm/baseControls/ExportListButton/designer.js +2 -2
- package/dist/esm/baseControls/ExportListButton/property.js +2 -2
- package/dist/esm/baseControls/ExportRecordListButton/designer.js +2 -2
- package/dist/esm/baseControls/FormSelectButton/designer.js +2 -2
- package/dist/esm/baseControls/FormSelectButton/property.js +4 -4
- package/dist/esm/baseControls/ImportRecordListButton/designer.js +2 -2
- package/dist/esm/baseControls/InvoiceCheckButton/designer.js +2 -2
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +4 -4
- package/dist/esm/baseControls/Link/designer.js +2 -2
- package/dist/esm/baseControls/Link/property.js +2 -2
- package/dist/esm/baseControls/ListSelectButton/designer.js +2 -2
- package/dist/esm/baseControls/ListSelectButton/property.js +19 -19
- package/dist/esm/baseControls/ListViewSelect/designer.js +2 -2
- package/dist/esm/baseControls/ListViewSelect/property.js +3 -3
- package/dist/esm/baseControls/OperationButton/designer.js +2 -2
- package/dist/esm/baseControls/OperationButton/property.js +3 -3
- package/dist/esm/baseControls/Pagination/designer.js +2 -2
- package/dist/esm/baseControls/SubmissionRecordListButton/designer.js +2 -2
- package/dist/esm/baseControls/Text/designer.js +2 -2
- package/dist/esm/baseControls/Text/property.js +2 -2
- package/dist/esm/baseControls/TextOcrButton/designer.js +2 -2
- package/dist/esm/baseControls/TextOcrButton/property.js +5 -5
- package/dist/esm/baseControls/Title/designer.js +2 -2
- package/dist/esm/baseControls/Title/property.js +6 -6
- package/dist/esm/baseControls/utils.js +4 -4
- package/dist/esm/columnControls/ApprovalStatusColumn/designer.js +2 -2
- package/dist/esm/columnControls/ArrayColumn/designer.js +3 -2
- package/dist/esm/columnControls/AutoNumberColumn/designer.js +3 -2
- package/dist/esm/columnControls/CustomColumn/designer.js +3 -2
- package/dist/esm/columnControls/CustomColumn/property.js +5 -5
- package/dist/esm/columnControls/DecimalColumn/designer.js +3 -2
- package/dist/esm/columnControls/DepartmentColumn/designer.js +3 -2
- package/dist/esm/columnControls/EmployeeColumn/designer.js +3 -2
- package/dist/esm/columnControls/FileColumn/designer.js +9 -8
- package/dist/esm/columnControls/ImageColumn/designer.js +3 -2
- package/dist/esm/columnControls/LocationColumn/designer.js +3 -2
- package/dist/esm/columnControls/OperationColumn/designer.js +2 -2
- package/dist/esm/columnControls/OperationColumn/property.js +14 -14
- package/dist/esm/columnControls/OrderColumn/designer.js +2 -2
- package/dist/esm/columnControls/PeopleColumn/designer.js +3 -2
- package/dist/esm/columnControls/TextColumn/designer.js +3 -2
- package/dist/esm/columnControls/TimescopeColumn/designer.js +3 -2
- package/dist/esm/columnControls/TimestampColumn/designer.js +3 -2
- package/dist/esm/columnControls/VarcharColumn/designer.js +3 -2
- package/dist/esm/formControls/Address/designer.js +3 -2
- package/dist/esm/formControls/Address/property.js +16 -16
- package/dist/esm/formControls/Amount/designer.js +3 -2
- package/dist/esm/formControls/Amount/property.js +42 -42
- package/dist/esm/formControls/Attachment/designer.js +3 -2
- package/dist/esm/formControls/Attachment/property.js +13 -13
- package/dist/esm/formControls/AutoNumber/designer.js +3 -2
- package/dist/esm/formControls/AutoNumber/property.js +2 -2
- package/dist/esm/formControls/Calc/designer.js +3 -2
- package/dist/esm/formControls/Calc/property.js +30 -30
- package/dist/esm/formControls/Checkbox/designer.js +3 -2
- package/dist/esm/formControls/Checkbox/property.js +2 -2
- package/dist/esm/formControls/DatePicker/designer.js +3 -2
- package/dist/esm/formControls/DatePicker/property.js +3 -2
- package/dist/esm/formControls/DateRange/designer.js +3 -2
- package/dist/esm/formControls/DateRange/property.js +49 -48
- package/dist/esm/formControls/Department/designer.js +3 -2
- package/dist/esm/formControls/Department/property.js +20 -20
- package/dist/esm/formControls/Department2/designer.js +3 -2
- package/dist/esm/formControls/Department2/property.js +26 -26
- package/dist/esm/formControls/ElectronicSignature/designer.js +3 -2
- package/dist/esm/formControls/ElectronicSignature/property.js +9 -8
- package/dist/esm/formControls/Employee/designer.js +3 -2
- package/dist/esm/formControls/Employee/property.js +4 -4
- package/dist/esm/formControls/Employee2/designer.js +3 -2
- package/dist/esm/formControls/Employee2/property.js +6 -6
- package/dist/esm/formControls/Image/designer.js +10 -9
- package/dist/esm/formControls/Image/runtime.js +3 -3
- package/dist/esm/formControls/Input/designer.js +3 -2
- package/dist/esm/formControls/Input/property.js +36 -36
- package/dist/esm/formControls/Number/designer.js +3 -2
- package/dist/esm/formControls/Number/property.js +58 -58
- package/dist/esm/formControls/OrganizationSelection/designer.js +3 -2
- package/dist/esm/formControls/OrganizationSelection/property.js +29 -29
- package/dist/esm/formControls/Radio/designer.js +3 -2
- package/dist/esm/formControls/RichText/designer.js +3 -2
- package/dist/esm/formControls/RichText/property.js +9 -9
- package/dist/esm/formControls/Score/designer.js +3 -2
- package/dist/esm/formControls/Score/property.js +8 -8
- package/dist/esm/formControls/SearchDateRange/designer.js +3 -2
- package/dist/esm/formControls/SearchDateRange/property.js +4 -3
- package/dist/esm/formControls/SearchInput/designer.js +2 -2
- package/dist/esm/formControls/SearchNumberRange/designer.js +3 -2
- package/dist/esm/formControls/SearchNumberRange/property.js +5 -5
- package/dist/esm/formControls/Select/designer.js +3 -2
- package/dist/esm/formControls/Select/property.js +15 -15
- package/dist/esm/formControls/SelectMultiple/designer.js +3 -2
- package/dist/esm/formControls/SelectMultiple/property.js +15 -15
- package/dist/esm/formControls/SelectRelation/designer.js +3 -2
- package/dist/esm/formControls/SelectRelation/property.js +47 -47
- package/dist/esm/formControls/Textarea/designer.js +3 -2
- package/dist/esm/formControls/Textarea/property.js +28 -28
- package/dist/esm/formControls/Tree/designer.js +3 -2
- package/dist/esm/formControls/Tree/property.js +5 -5
- package/dist/esm/formControls/VueFormItem/designer.js +3 -2
- package/dist/esm/formControls/VuePage/designer.js +3 -2
- package/dist/esm/formControls/WPS/designer.js +10 -9
- package/dist/esm/formControls/WPS/property.js +6 -6
- package/dist/esm/framework.js +27 -26
- package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
- package/dist/esm/layoutControls/AdvancedContainer/designer.js +2 -2
- package/dist/esm/layoutControls/CardGroup/designer.js +3 -2
- package/dist/esm/layoutControls/CardGroup/property.js +8 -8
- package/dist/esm/layoutControls/Col/designer.js +3 -2
- package/dist/esm/layoutControls/DataView/designer.js +2 -2
- package/dist/esm/layoutControls/DataView/property.js +17 -17
- package/dist/esm/layoutControls/Grid/designer.js +3 -2
- package/dist/esm/layoutControls/GridLayoutContainer/designer.js +3 -2
- package/dist/esm/layoutControls/GridRow/designer.js +3 -2
- package/dist/esm/layoutControls/ListView/designer.js +3 -2
- package/dist/esm/layoutControls/ListView/property.js +76 -76
- package/dist/esm/layoutControls/Page/designer.js +2 -2
- package/dist/esm/layoutControls/Position/designer.js +2 -2
- package/dist/esm/layoutControls/PositioningContainer/designer.js +2 -2
- package/dist/esm/layoutControls/Row/designer.js +3 -2
- package/dist/esm/layoutControls/SubTableColumn/designer.js +3 -2
- package/dist/esm/layoutControls/SubTableColumn/property.js +17 -17
- package/dist/esm/layoutControls/SubTableRow/designer.js +3 -2
- package/dist/esm/layoutControls/Tab/designer.js +3 -2
- package/dist/esm/layoutControls/TabPane/designer.js +4 -4
- package/dist/esm/layoutControls/TabPane/property.js +2 -2
- package/dist/esm/layoutControls/Toolbox/designer.js +3 -2
- package/dist/esm/listControls/GridTable/designer.js +3 -2
- package/dist/esm/listControls/SubTable/designer.js +2 -2
- package/dist/esm/listControls/SubTable/property.js +128 -128
- package/dist/esm/searchControls/SimpleSearch/property.js +48 -48
- package/dist/esm/wrapControls/GridLayoutWrap/Setting.js +9 -9
- package/dist/esm/wrapControls/GridLayoutWrap/designer.js +8 -8
- package/dist/index.umd.js +1 -1
- package/package.json +5 -5
|
@@ -70,8 +70,8 @@ function _is_native_reflect_construct() {
|
|
|
70
70
|
return !!result;
|
|
71
71
|
})();
|
|
72
72
|
}
|
|
73
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
73
74
|
import { LayoutControlProperty, PropertyRuntimeRules, DataSourceBind, OperationItem } from '@byteluck-fe/model-driven-core';
|
|
74
|
-
import { RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
75
75
|
var DataViewControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
76
76
|
"use strict";
|
|
77
77
|
_inherits(DataViewControlPropertyRuntimeRules, PropertyRuntimeRules);
|
|
@@ -89,9 +89,9 @@ var DataViewControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntime
|
|
|
89
89
|
}
|
|
90
90
|
return DataViewControlPropertyRuntimeRules;
|
|
91
91
|
}(PropertyRuntimeRules);
|
|
92
|
-
/**
|
|
93
|
-
* DataView 表单页
|
|
94
|
-
* @public
|
|
92
|
+
/**
|
|
93
|
+
* DataView 表单页
|
|
94
|
+
* @public
|
|
95
95
|
*/ var DataViewControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
96
96
|
"use strict";
|
|
97
97
|
_inherits(DataViewControlProperty, LayoutControlProperty);
|
|
@@ -100,35 +100,35 @@ var DataViewControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntime
|
|
|
100
100
|
var _this;
|
|
101
101
|
_this = _call_super(this, DataViewControlProperty, [
|
|
102
102
|
props
|
|
103
|
-
]), _define_property(_this, "save", void 0), _define_property(_this, "cancel", void 0), _define_property(_this, "saveAs", void 0), _define_property(_this, "print", void 0), _define_property(_this, "custom", void 0), /**
|
|
104
|
-
* 加载中
|
|
105
|
-
* @defaultValue false
|
|
106
|
-
* @public
|
|
107
|
-
*/ _define_property(_this, "isLoading", void 0), /**
|
|
108
|
-
* 绑定业务模型
|
|
109
|
-
* @public
|
|
103
|
+
]), _define_property(_this, "save", void 0), _define_property(_this, "cancel", void 0), _define_property(_this, "saveAs", void 0), _define_property(_this, "print", void 0), _define_property(_this, "custom", void 0), /**
|
|
104
|
+
* 加载中
|
|
105
|
+
* @defaultValue false
|
|
106
|
+
* @public
|
|
107
|
+
*/ _define_property(_this, "isLoading", void 0), /**
|
|
108
|
+
* 绑定业务模型
|
|
109
|
+
* @public
|
|
110
110
|
*/ _define_property(_this, "datasourceBind", void 0);
|
|
111
111
|
var _props_save;
|
|
112
112
|
_this.save = new OperationItem((_props_save = props === null || props === void 0 ? void 0 : props.save) !== null && _props_save !== void 0 ? _props_save : {
|
|
113
|
-
content:
|
|
113
|
+
content: getLocaleText('CMD.save', null, '保存'),
|
|
114
114
|
type: 'save',
|
|
115
115
|
isShow: false
|
|
116
116
|
});
|
|
117
117
|
var _props_cancel;
|
|
118
118
|
_this.cancel = new OperationItem((_props_cancel = props === null || props === void 0 ? void 0 : props.cancel) !== null && _props_cancel !== void 0 ? _props_cancel : {
|
|
119
|
-
content:
|
|
119
|
+
content: getLocaleText('CMD.cancel', null, '取消'),
|
|
120
120
|
type: 'cancel',
|
|
121
121
|
isShow: false
|
|
122
122
|
});
|
|
123
123
|
var _props_saveAs;
|
|
124
124
|
_this.saveAs = new OperationItem((_props_saveAs = props === null || props === void 0 ? void 0 : props.saveAs) !== null && _props_saveAs !== void 0 ? _props_saveAs : {
|
|
125
|
-
content:
|
|
125
|
+
content: getLocaleText('CMD.draft', null, '保存草稿'),
|
|
126
126
|
type: 'saveAs',
|
|
127
127
|
isShow: false
|
|
128
128
|
});
|
|
129
129
|
var _props_print;
|
|
130
130
|
_this.print = new OperationItem((_props_print = props === null || props === void 0 ? void 0 : props.print) !== null && _props_print !== void 0 ? _props_print : {
|
|
131
|
-
content:
|
|
131
|
+
content: getLocaleText('CMD.print', null, '打印'),
|
|
132
132
|
type: 'print',
|
|
133
133
|
isShow: false
|
|
134
134
|
});
|
|
@@ -143,8 +143,8 @@ var DataViewControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntime
|
|
|
143
143
|
}
|
|
144
144
|
return DataViewControlProperty;
|
|
145
145
|
}(LayoutControlProperty);
|
|
146
|
-
/**
|
|
147
|
-
* @internal
|
|
146
|
+
/**
|
|
147
|
+
* @internal
|
|
148
148
|
*/ _define_property(DataViewControlProperty, "RuntimeRules", DataViewControlPropertyRuntimeRules);
|
|
149
149
|
export default DataViewControlProperty;
|
|
150
150
|
export { DataViewControlProperty, DataViewControlPropertyRuntimeRules };
|
|
@@ -84,8 +84,9 @@ function _is_native_reflect_construct() {
|
|
|
84
84
|
return !!result;
|
|
85
85
|
})();
|
|
86
86
|
}
|
|
87
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
87
88
|
import { DesignerLayoutControl } from '@byteluck-fe/model-driven-core';
|
|
88
|
-
import { CONTROL_TYPE
|
|
89
|
+
import { CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
|
|
89
90
|
var GridControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
90
91
|
"use strict";
|
|
91
92
|
_inherits(GridControl, DesignerLayoutControl);
|
|
@@ -99,7 +100,7 @@ var GridControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
|
99
100
|
{
|
|
100
101
|
key: "controlName",
|
|
101
102
|
get: function get() {
|
|
102
|
-
return
|
|
103
|
+
return getLocaleText('CMD.grid', null, '画布');
|
|
103
104
|
}
|
|
104
105
|
},
|
|
105
106
|
{
|
|
@@ -84,9 +84,10 @@ function _is_native_reflect_construct() {
|
|
|
84
84
|
return !!result;
|
|
85
85
|
})();
|
|
86
86
|
}
|
|
87
|
-
import { CONTROL_TYPE
|
|
87
|
+
import { CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
|
|
88
88
|
import { DesignerLayoutControl } from '@byteluck-fe/model-driven-core';
|
|
89
89
|
import GridLayoutContainerControlProperty from './property';
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
91
|
var GridLayoutContainerControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
91
92
|
"use strict";
|
|
92
93
|
_inherits(GridLayoutContainerControl, DesignerLayoutControl);
|
|
@@ -103,7 +104,7 @@ var GridLayoutContainerControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
|
103
104
|
{
|
|
104
105
|
key: "controlName",
|
|
105
106
|
get: function get() {
|
|
106
|
-
return
|
|
107
|
+
return getLocaleText('CMD.gridLayoutContainer', null, '换行容器');
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
{
|
|
@@ -84,8 +84,9 @@ function _is_native_reflect_construct() {
|
|
|
84
84
|
return !!result;
|
|
85
85
|
})();
|
|
86
86
|
}
|
|
87
|
-
import { CONTROL_TYPE
|
|
87
|
+
import { CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
|
|
88
88
|
import RowControl from '../Row/designer';
|
|
89
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
89
90
|
var CHILDREN_MAX_LENGTH = 4;
|
|
90
91
|
var GridRowControl = /*#__PURE__*/ function(RowControl) {
|
|
91
92
|
"use strict";
|
|
@@ -100,7 +101,7 @@ var GridRowControl = /*#__PURE__*/ function(RowControl) {
|
|
|
100
101
|
{
|
|
101
102
|
key: "controlName",
|
|
102
103
|
get: function get() {
|
|
103
|
-
return
|
|
104
|
+
return getLocaleText('CMD.gridRow', null, '栅格等分行');
|
|
104
105
|
}
|
|
105
106
|
},
|
|
106
107
|
{
|
|
@@ -84,9 +84,10 @@ function _is_native_reflect_construct() {
|
|
|
84
84
|
return !!result;
|
|
85
85
|
})();
|
|
86
86
|
}
|
|
87
|
-
import { CONTROL_TYPE
|
|
87
|
+
import { CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
|
|
88
88
|
import { DesignerLayoutControl } from '@byteluck-fe/model-driven-core';
|
|
89
89
|
import ListViewControlProperty from './property';
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
91
|
var ListViewControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
91
92
|
"use strict";
|
|
92
93
|
_inherits(ListViewControl, DesignerLayoutControl);
|
|
@@ -103,7 +104,7 @@ var ListViewControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
|
103
104
|
{
|
|
104
105
|
key: "controlName",
|
|
105
106
|
get: function get() {
|
|
106
|
-
return
|
|
107
|
+
return getLocaleText('CMD.listView', null, '列表容器');
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
{
|
|
@@ -71,15 +71,15 @@ function _is_native_reflect_construct() {
|
|
|
71
71
|
})();
|
|
72
72
|
}
|
|
73
73
|
import { LayoutControlProperty, PropertyRules, PropertyRuntimeRules, DataSourceBind, SubListPageConfig, JoinRelation, RowStyle } from '@byteluck-fe/model-driven-core';
|
|
74
|
-
import { RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
75
74
|
import { initOptionAndDataSourceRules } from '@byteluck-fe/model-driven-core';
|
|
75
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
76
|
export var TriggerType;
|
|
77
77
|
(function(TriggerType) {
|
|
78
78
|
TriggerType[TriggerType["CLICK_ROW"] = 1] = "CLICK_ROW";
|
|
79
79
|
TriggerType[TriggerType["CLICK_CELL"] = 2] = "CLICK_CELL";
|
|
80
80
|
})(TriggerType || (TriggerType = {}));
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
83
|
*/ var ListViewControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
84
84
|
"use strict";
|
|
85
85
|
_inherits(ListViewControlPropertyRuntimeRules, PropertyRuntimeRules);
|
|
@@ -97,8 +97,8 @@ export var TriggerType;
|
|
|
97
97
|
}
|
|
98
98
|
return ListViewControlPropertyRuntimeRules;
|
|
99
99
|
}(PropertyRuntimeRules);
|
|
100
|
-
/**
|
|
101
|
-
* @internal
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
102
|
*/ var ListViewControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
103
103
|
"use strict";
|
|
104
104
|
_inherits(ListViewControlPropertyRules, PropertyRules);
|
|
@@ -121,14 +121,14 @@ export var TriggerType;
|
|
|
121
121
|
_this.triggerFieldCode = {
|
|
122
122
|
type: 'string',
|
|
123
123
|
required: true,
|
|
124
|
-
message:
|
|
124
|
+
message: getLocaleText('CMD.pleaseEnterFieldCode', null, '请绑定数据项')
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
127
|
if (props.isShowJoinRelation) {
|
|
128
128
|
_this.joinRelation = [
|
|
129
129
|
{
|
|
130
130
|
type: 'object',
|
|
131
|
-
message:
|
|
131
|
+
message: getLocaleText('CMD.isNotObject', null, '请输入一个对象')
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
type: 'object',
|
|
@@ -136,12 +136,12 @@ export var TriggerType;
|
|
|
136
136
|
aliasCode: {
|
|
137
137
|
type: 'string',
|
|
138
138
|
required: true,
|
|
139
|
-
message:
|
|
139
|
+
message: getLocaleText('CMD.pleaseEnterAliasCode', null, '请输入子表别名')
|
|
140
140
|
},
|
|
141
141
|
datasourceBind: [
|
|
142
142
|
{
|
|
143
143
|
type: 'object',
|
|
144
|
-
message:
|
|
144
|
+
message: getLocaleText('CMD.isNotObject', null, '请输入一个对象')
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
type: 'object',
|
|
@@ -149,12 +149,12 @@ export var TriggerType;
|
|
|
149
149
|
dataCode: {
|
|
150
150
|
type: 'string',
|
|
151
151
|
required: true,
|
|
152
|
-
message:
|
|
152
|
+
message: getLocaleText('CMD.pleaseSelectDataCode', null, '请选择关联表设置业务模型')
|
|
153
153
|
},
|
|
154
154
|
svcCode: {
|
|
155
155
|
type: 'string',
|
|
156
156
|
required: true,
|
|
157
|
-
message:
|
|
157
|
+
message: getLocaleText('CMD.pleaseSelectSvcCode', null, '请选择关联表设置绑定服务')
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
}
|
|
@@ -162,7 +162,7 @@ export var TriggerType;
|
|
|
162
162
|
relationFields: [
|
|
163
163
|
{
|
|
164
164
|
type: 'array',
|
|
165
|
-
message:
|
|
165
|
+
message: getLocaleText('CMD.isNotArray', null, '请输入一个数组')
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
type: 'array',
|
|
@@ -172,12 +172,12 @@ export var TriggerType;
|
|
|
172
172
|
joinFieldCode: {
|
|
173
173
|
type: 'string',
|
|
174
174
|
required: true,
|
|
175
|
-
message:
|
|
175
|
+
message: getLocaleText('CMD.pleaseSelectJoinFieldCode', null, '请选择关联子表字段')
|
|
176
176
|
},
|
|
177
177
|
mainFieldCode: {
|
|
178
178
|
type: 'string',
|
|
179
179
|
required: true,
|
|
180
|
-
message:
|
|
180
|
+
message: getLocaleText('CMD.pleaseSelectMainFieldCode', null, '请选择关联主表字段')
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
}
|
|
@@ -205,9 +205,9 @@ export var TriggerType;
|
|
|
205
205
|
}
|
|
206
206
|
return ListViewControlPropertyRules;
|
|
207
207
|
}(PropertyRules);
|
|
208
|
-
/**
|
|
209
|
-
* ListView 列表
|
|
210
|
-
* @public
|
|
208
|
+
/**
|
|
209
|
+
* ListView 列表
|
|
210
|
+
* @public
|
|
211
211
|
*/ var ListViewControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
212
212
|
"use strict";
|
|
213
213
|
_inherits(ListViewControlProperty, LayoutControlProperty);
|
|
@@ -216,68 +216,68 @@ export var TriggerType;
|
|
|
216
216
|
var _this;
|
|
217
217
|
_this = _call_super(this, ListViewControlProperty, [
|
|
218
218
|
props
|
|
219
|
-
]), /**
|
|
220
|
-
* 数据高级设置
|
|
221
|
-
* @public
|
|
222
|
-
*/ _define_property(_this, "datasourceBind", void 0), /**
|
|
223
|
-
* 加载中
|
|
224
|
-
* @defaultValue false
|
|
225
|
-
* @public
|
|
226
|
-
*/ _define_property(_this, "isLoading", void 0), /**
|
|
227
|
-
* 显示明细表
|
|
228
|
-
* @defaultValue false
|
|
229
|
-
* @public
|
|
230
|
-
*/ _define_property(_this, "isShowSubList", void 0), /**
|
|
231
|
-
* 触发时机 1=整行,2=字段
|
|
232
|
-
* @defaultValue 1
|
|
233
|
-
* @public
|
|
234
|
-
*/ _define_property(_this, "triggerType", void 0), /**
|
|
235
|
-
* 触发字段
|
|
236
|
-
* @public
|
|
237
|
-
*/ _define_property(_this, "triggerFieldCode", void 0), /**
|
|
238
|
-
* 抽屉内容配置
|
|
239
|
-
* @public
|
|
240
|
-
*/ _define_property(_this, "sublistPage", void 0), /**
|
|
241
|
-
* 显示连接表
|
|
242
|
-
*/ _define_property(_this, "isShowJoinRelation", void 0), /**
|
|
243
|
-
* 连接表配置
|
|
244
|
-
* @public
|
|
245
|
-
*/ _define_property(_this, "joinRelation", void 0), /**
|
|
246
|
-
* @internal
|
|
219
|
+
]), /**
|
|
220
|
+
* 数据高级设置
|
|
221
|
+
* @public
|
|
222
|
+
*/ _define_property(_this, "datasourceBind", void 0), /**
|
|
223
|
+
* 加载中
|
|
224
|
+
* @defaultValue false
|
|
225
|
+
* @public
|
|
226
|
+
*/ _define_property(_this, "isLoading", void 0), /**
|
|
227
|
+
* 显示明细表
|
|
228
|
+
* @defaultValue false
|
|
229
|
+
* @public
|
|
230
|
+
*/ _define_property(_this, "isShowSubList", void 0), /**
|
|
231
|
+
* 触发时机 1=整行,2=字段
|
|
232
|
+
* @defaultValue 1
|
|
233
|
+
* @public
|
|
234
|
+
*/ _define_property(_this, "triggerType", void 0), /**
|
|
235
|
+
* 触发字段
|
|
236
|
+
* @public
|
|
237
|
+
*/ _define_property(_this, "triggerFieldCode", void 0), /**
|
|
238
|
+
* 抽屉内容配置
|
|
239
|
+
* @public
|
|
240
|
+
*/ _define_property(_this, "sublistPage", void 0), /**
|
|
241
|
+
* 显示连接表
|
|
242
|
+
*/ _define_property(_this, "isShowJoinRelation", void 0), /**
|
|
243
|
+
* 连接表配置
|
|
244
|
+
* @public
|
|
245
|
+
*/ _define_property(_this, "joinRelation", void 0), /**
|
|
246
|
+
* @internal
|
|
247
247
|
*/ _define_property(_this, "showType", void 0 //提供给关联单选中复用list-view的能力
|
|
248
|
-
), /**
|
|
249
|
-
* 全屏显示
|
|
250
|
-
* @defaultValue false
|
|
251
|
-
* @public
|
|
252
|
-
*/ _define_property(_this, "showFullScreen", void 0), /**
|
|
253
|
-
* 固定表头
|
|
254
|
-
* @defaultValue false
|
|
255
|
-
* @public
|
|
256
|
-
*/ _define_property(_this, "isFixedHeader", void 0), /**
|
|
257
|
-
* 显示选择框类型
|
|
258
|
-
* @defaultValue undefined | 'multiple' | 'radio'
|
|
259
|
-
* @public
|
|
260
|
-
*/ _define_property(_this, "selectionType", void 0), /**
|
|
261
|
-
* 显示选择框
|
|
262
|
-
* @defaultValue false
|
|
263
|
-
* @public
|
|
264
|
-
*/ _define_property(_this, "isShowSelection", void 0), /**
|
|
265
|
-
* 加载全部数据
|
|
266
|
-
* @defaultValue true
|
|
267
|
-
* @public
|
|
248
|
+
), /**
|
|
249
|
+
* 全屏显示
|
|
250
|
+
* @defaultValue false
|
|
251
|
+
* @public
|
|
252
|
+
*/ _define_property(_this, "showFullScreen", void 0), /**
|
|
253
|
+
* 固定表头
|
|
254
|
+
* @defaultValue false
|
|
255
|
+
* @public
|
|
256
|
+
*/ _define_property(_this, "isFixedHeader", void 0), /**
|
|
257
|
+
* 显示选择框类型
|
|
258
|
+
* @defaultValue undefined | 'multiple' | 'radio'
|
|
259
|
+
* @public
|
|
260
|
+
*/ _define_property(_this, "selectionType", void 0), /**
|
|
261
|
+
* 显示选择框
|
|
262
|
+
* @defaultValue false
|
|
263
|
+
* @public
|
|
264
|
+
*/ _define_property(_this, "isShowSelection", void 0), /**
|
|
265
|
+
* 加载全部数据
|
|
266
|
+
* @defaultValue true
|
|
267
|
+
* @public
|
|
268
268
|
*/ _define_property(_this, "isAllLoaded", void 0 //数据加载
|
|
269
|
-
), /**
|
|
270
|
-
* 计数模式
|
|
271
|
-
* @defaultValue 'async'
|
|
272
|
-
* @public
|
|
269
|
+
), /**
|
|
270
|
+
* 计数模式
|
|
271
|
+
* @defaultValue 'async'
|
|
272
|
+
* @public
|
|
273
273
|
*/ _define_property(_this, "countType", void 0 //计数模式
|
|
274
|
-
), /**
|
|
275
|
-
* 列表展示最多条数
|
|
276
|
-
* @defaultValue 100000
|
|
277
|
-
* @public
|
|
278
|
-
*/ _define_property(_this, "countLimit", void 0), /**
|
|
279
|
-
* 行背景规则
|
|
280
|
-
* @defaultValue 'none'
|
|
274
|
+
), /**
|
|
275
|
+
* 列表展示最多条数
|
|
276
|
+
* @defaultValue 100000
|
|
277
|
+
* @public
|
|
278
|
+
*/ _define_property(_this, "countLimit", void 0), /**
|
|
279
|
+
* 行背景规则
|
|
280
|
+
* @defaultValue 'none'
|
|
281
281
|
*/ _define_property(_this, "rowStyle", void 0);
|
|
282
282
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
283
283
|
var _props_isLoading;
|
|
@@ -72,7 +72,7 @@ function _is_native_reflect_construct() {
|
|
|
72
72
|
})();
|
|
73
73
|
}
|
|
74
74
|
import { DesignerLayoutControl } from '@byteluck-fe/model-driven-core';
|
|
75
|
-
import {
|
|
75
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
76
|
var PageControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
77
77
|
"use strict";
|
|
78
78
|
_inherits(PageControl, DesignerLayoutControl);
|
|
@@ -86,7 +86,7 @@ var PageControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
|
86
86
|
{
|
|
87
87
|
key: "controlName",
|
|
88
88
|
get: function get() {
|
|
89
|
-
return
|
|
89
|
+
return getLocaleText('CMD.page', null, '自由页面');
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
{
|
|
@@ -72,7 +72,7 @@ function _is_native_reflect_construct() {
|
|
|
72
72
|
})();
|
|
73
73
|
}
|
|
74
74
|
import { DesignerLayoutControl } from '@byteluck-fe/model-driven-core';
|
|
75
|
-
import {
|
|
75
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
76
|
var PositionControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
77
77
|
"use strict";
|
|
78
78
|
_inherits(PositionControl, DesignerLayoutControl);
|
|
@@ -86,7 +86,7 @@ var PositionControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
|
86
86
|
{
|
|
87
87
|
key: "controlName",
|
|
88
88
|
get: function get() {
|
|
89
|
-
return
|
|
89
|
+
return getLocaleText('CMD.position', null, '定位子容器');
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
{
|
|
@@ -72,7 +72,7 @@ function _is_native_reflect_construct() {
|
|
|
72
72
|
})();
|
|
73
73
|
}
|
|
74
74
|
import { DesignerLayoutControl } from '@byteluck-fe/model-driven-core';
|
|
75
|
-
import {
|
|
75
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
76
|
var PositioningContainerControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
77
77
|
"use strict";
|
|
78
78
|
_inherits(PositioningContainerControl, DesignerLayoutControl);
|
|
@@ -86,7 +86,7 @@ var PositioningContainerControl = /*#__PURE__*/ function(DesignerLayoutControl)
|
|
|
86
86
|
{
|
|
87
87
|
key: "controlName",
|
|
88
88
|
get: function get() {
|
|
89
|
-
return
|
|
89
|
+
return getLocaleText('CMD.positioningContainer', null, '定位容器');
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
{
|
|
@@ -84,9 +84,10 @@ function _is_native_reflect_construct() {
|
|
|
84
84
|
return !!result;
|
|
85
85
|
})();
|
|
86
86
|
}
|
|
87
|
-
import { CONTROL_TYPE
|
|
87
|
+
import { CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
|
|
88
88
|
import { DesignerLayoutControl } from '@byteluck-fe/model-driven-core';
|
|
89
89
|
import RowControlProperty from './property';
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
91
|
var RowControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
91
92
|
"use strict";
|
|
92
93
|
_inherits(RowControl, DesignerLayoutControl);
|
|
@@ -103,7 +104,7 @@ var RowControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
|
103
104
|
{
|
|
104
105
|
key: "controlName",
|
|
105
106
|
get: function get() {
|
|
106
|
-
return
|
|
107
|
+
return getLocaleText('CMD.row', null, '栅格布局');
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
{
|
|
@@ -71,8 +71,9 @@ function _is_native_reflect_construct() {
|
|
|
71
71
|
})();
|
|
72
72
|
}
|
|
73
73
|
import { DesignerLayoutControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
74
|
-
import { CONTROL_TYPE
|
|
74
|
+
import { CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
|
|
75
75
|
import SubTableColumnControlProperty from './property';
|
|
76
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
77
|
var SubTableColumnControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
77
78
|
"use strict";
|
|
78
79
|
_inherits(SubTableColumnControl, DesignerLayoutControl);
|
|
@@ -87,7 +88,7 @@ var SubTableColumnControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
|
87
88
|
}
|
|
88
89
|
return SubTableColumnControl;
|
|
89
90
|
}(DesignerLayoutControl);
|
|
90
|
-
_define_property(SubTableColumnControl, "controlName",
|
|
91
|
+
_define_property(SubTableColumnControl, "controlName", getLocaleText('CMD.subtableColumn', null, '明细子表单元格'));
|
|
91
92
|
_define_property(SubTableColumnControl, "controlType", 'subtable-column');
|
|
92
93
|
_define_property(SubTableColumnControl, "controlIcon", 'subtable-column');
|
|
93
94
|
_define_property(SubTableColumnControl, "childrenMaxLength", 1);
|
|
@@ -71,7 +71,7 @@ function _is_native_reflect_construct() {
|
|
|
71
71
|
})();
|
|
72
72
|
}
|
|
73
73
|
import { LayoutControlProperty, PropertyRules, MetaAutoWidth } from '@byteluck-fe/model-driven-core';
|
|
74
|
-
import {
|
|
74
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
75
75
|
var SubTableColumnControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
76
76
|
"use strict";
|
|
77
77
|
_inherits(SubTableColumnControlPropertyRules, PropertyRules);
|
|
@@ -83,15 +83,15 @@ var SubTableColumnControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
83
83
|
]), _define_property(_this, "caption", {
|
|
84
84
|
type: 'string',
|
|
85
85
|
required: true,
|
|
86
|
-
message:
|
|
86
|
+
message: getLocaleText('CMD.pleaseEnterCaption', null, '请输入标题')
|
|
87
87
|
}), _define_property(_this, "width", {
|
|
88
88
|
type: 'number',
|
|
89
89
|
required: false,
|
|
90
|
-
message:
|
|
90
|
+
message: getLocaleText('CMD.pleaseEnterColumnWidth', null, '请输入列宽')
|
|
91
91
|
}), _define_property(_this, "captionTip", {
|
|
92
92
|
type: 'string',
|
|
93
93
|
required: false,
|
|
94
|
-
message:
|
|
94
|
+
message: getLocaleText('CMD.pleaseEnterCaptionTip', null, '请输入气泡提示语')
|
|
95
95
|
});
|
|
96
96
|
if (props.isShowCaptionTip) {
|
|
97
97
|
_this.captionTip.required = true;
|
|
@@ -108,19 +108,19 @@ var SubTableColumnControlProperty = /*#__PURE__*/ function(LayoutControlProperty
|
|
|
108
108
|
var _this;
|
|
109
109
|
_this = _call_super(this, SubTableColumnControlProperty, [
|
|
110
110
|
props
|
|
111
|
-
]), /**
|
|
112
|
-
* 设置宽度在移动和pc - 宽度
|
|
113
|
-
* pc 电脑端 mobile -手机端
|
|
114
|
-
* */ _define_property(_this, "metaAutoWidth", void 0), /**
|
|
115
|
-
* 列标题
|
|
116
|
-
* */ _define_property(_this, "caption", void 0), /**
|
|
117
|
-
* 是否固定列
|
|
118
|
-
* */ _define_property(_this, "fixed", void 0), /**
|
|
119
|
-
* 是否开启气泡提示
|
|
120
|
-
* */ _define_property(_this, "isShowCaptionTip", void 0), /**
|
|
121
|
-
* 气泡提示语
|
|
122
|
-
* */ _define_property(_this, "captionTip", void 0), /**
|
|
123
|
-
* 隐藏标题一直为false
|
|
111
|
+
]), /**
|
|
112
|
+
* 设置宽度在移动和pc - 宽度
|
|
113
|
+
* pc 电脑端 mobile -手机端
|
|
114
|
+
* */ _define_property(_this, "metaAutoWidth", void 0), /**
|
|
115
|
+
* 列标题
|
|
116
|
+
* */ _define_property(_this, "caption", void 0), /**
|
|
117
|
+
* 是否固定列
|
|
118
|
+
* */ _define_property(_this, "fixed", void 0), /**
|
|
119
|
+
* 是否开启气泡提示
|
|
120
|
+
* */ _define_property(_this, "isShowCaptionTip", void 0), /**
|
|
121
|
+
* 气泡提示语
|
|
122
|
+
* */ _define_property(_this, "captionTip", void 0), /**
|
|
123
|
+
* 隐藏标题一直为false
|
|
124
124
|
* */ _define_property(_this, "isHideCaption", void 0);
|
|
125
125
|
var _props_caption;
|
|
126
126
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : '';
|
|
@@ -71,8 +71,9 @@ function _is_native_reflect_construct() {
|
|
|
71
71
|
})();
|
|
72
72
|
}
|
|
73
73
|
import { DesignerLayoutControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
74
|
-
import { CONTROL_TYPE
|
|
74
|
+
import { CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
|
|
75
75
|
import SubTableRowControlProperty from './property';
|
|
76
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
77
|
var SubTableRowControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
77
78
|
"use strict";
|
|
78
79
|
_inherits(SubTableRowControl, DesignerLayoutControl);
|
|
@@ -87,7 +88,7 @@ var SubTableRowControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
|
87
88
|
}
|
|
88
89
|
return SubTableRowControl;
|
|
89
90
|
}(DesignerLayoutControl);
|
|
90
|
-
_define_property(SubTableRowControl, "controlName",
|
|
91
|
+
_define_property(SubTableRowControl, "controlName", getLocaleText('CMD.subtableRow', null, '明细子表行'));
|
|
91
92
|
_define_property(SubTableRowControl, "controlType", 'subtable-row');
|
|
92
93
|
_define_property(SubTableRowControl, "controlIcon", 'subtable-row');
|
|
93
94
|
_define_property(SubTableRowControl, "childrenMaxLength", 1);
|
|
@@ -84,10 +84,11 @@ function _is_native_reflect_construct() {
|
|
|
84
84
|
return !!result;
|
|
85
85
|
})();
|
|
86
86
|
}
|
|
87
|
-
import { CONTROL_TYPE
|
|
87
|
+
import { CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
|
|
88
88
|
import { DesignerLayoutControl } from '@byteluck-fe/model-driven-core';
|
|
89
89
|
import TabControlProperty from './property';
|
|
90
90
|
import { DesignerTabPaneControl } from '../TabPane';
|
|
91
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
91
92
|
var TabControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
92
93
|
"use strict";
|
|
93
94
|
_inherits(TabControl, DesignerLayoutControl);
|
|
@@ -109,7 +110,7 @@ var TabControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
|
109
110
|
{
|
|
110
111
|
key: "controlName",
|
|
111
112
|
get: function get() {
|
|
112
|
-
return
|
|
113
|
+
return getLocaleText('CMD.tab', null, '标签页');
|
|
113
114
|
}
|
|
114
115
|
},
|
|
115
116
|
{
|
|
@@ -84,11 +84,11 @@ function _is_native_reflect_construct() {
|
|
|
84
84
|
return !!result;
|
|
85
85
|
})();
|
|
86
86
|
}
|
|
87
|
-
import { CONTROL_TYPE
|
|
87
|
+
import { CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
|
|
88
88
|
import { DesignerLayoutControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
89
89
|
import TabPaneControlProperty from './property';
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
91
|
// import { RuleItem } from 'async-validator'
|
|
91
|
-
// import { RulesMessage } from '@byteluck-fe/model-driven-shared'
|
|
92
92
|
var TabPaneControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
93
93
|
"use strict";
|
|
94
94
|
_inherits(TabPaneControl, DesignerLayoutControl);
|
|
@@ -105,7 +105,7 @@ var TabPaneControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
|
105
105
|
{
|
|
106
106
|
key: "controlName",
|
|
107
107
|
get: function get() {
|
|
108
|
-
return
|
|
108
|
+
return getLocaleText('CMD.tabPane', null, '标签单元');
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
{
|
|
@@ -150,7 +150,7 @@ _define_property(TabPaneControl, "setting", [
|
|
|
150
150
|
// public caption: RuleItem = {
|
|
151
151
|
// type: 'string',
|
|
152
152
|
// required: true,
|
|
153
|
-
// message:
|
|
153
|
+
// message: getLocaleText('CMD.pleaseEnterCaption'),
|
|
154
154
|
// }
|
|
155
155
|
// constructor(props: TabPaneControlProperty) {
|
|
156
156
|
// super(props)
|