@byteluck-fe/model-driven-controls 1.7.7 → 1.7.8
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 +158 -0
- package/dist/esm/baseControls/BatchDeleteButton/index.js +11 -0
- package/dist/esm/baseControls/BatchDeleteButton/property.js +106 -0
- package/dist/esm/baseControls/BatchDeleteButton/runtime.js +110 -0
- package/dist/esm/baseControls/BatchDeleteButton/types.js +0 -0
- package/dist/esm/baseControls/BatchPrintListButton/property.js +10 -10
- package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +4 -4
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +12 -12
- package/dist/esm/baseControls/Button/property.js +16 -16
- package/dist/esm/baseControls/CreateFormListButton/property.js +8 -8
- package/dist/esm/baseControls/Dashboard/property.js +12 -12
- package/dist/esm/baseControls/Divider/property.js +4 -4
- package/dist/esm/baseControls/ExportListButton/property.js +8 -8
- package/dist/esm/baseControls/ExportRecordListButton/property.js +4 -4
- package/dist/esm/baseControls/FormSelectButton/property.js +6 -6
- package/dist/esm/baseControls/ImportRecordListButton/property.js +8 -8
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +20 -20
- package/dist/esm/baseControls/Link/property.js +6 -6
- package/dist/esm/baseControls/ListSelectButton/property.js +4 -4
- package/dist/esm/baseControls/ListViewSelect/property.js +6 -6
- package/dist/esm/baseControls/SubmissionRecordListButton/property.js +4 -4
- package/dist/esm/baseControls/Text/property.js +10 -10
- package/dist/esm/baseControls/TextOcrButton/property.js +20 -20
- package/dist/esm/baseControls/Title/property.js +4 -4
- package/dist/esm/baseControls/index.js +1 -0
- package/dist/esm/columnControls/ArrayColumn/property.js +6 -6
- package/dist/esm/columnControls/AutoNumberColumn/property.js +2 -2
- package/dist/esm/columnControls/CustomColumn/designer.js +1 -1
- package/dist/esm/columnControls/CustomColumn/property.js +4 -4
- package/dist/esm/columnControls/DecimalColumn/designer.js +1 -1
- package/dist/esm/columnControls/DecimalColumn/property.js +12 -12
- package/dist/esm/columnControls/DepartmentColumn/property.js +4 -4
- package/dist/esm/columnControls/EmployeeColumn/property.js +4 -4
- package/dist/esm/columnControls/FileColumn/property.js +2 -2
- package/dist/esm/columnControls/ImageColumn/property.js +2 -2
- package/dist/esm/columnControls/LocationColumn/property.js +2 -2
- package/dist/esm/columnControls/OperationColumn/property.js +12 -12
- package/dist/esm/columnControls/OrderColumn/property.js +8 -8
- package/dist/esm/columnControls/PeopleColumn/property.js +2 -2
- package/dist/esm/columnControls/TextColumn/property.js +6 -6
- package/dist/esm/columnControls/TimescopeColumn/property.js +4 -4
- package/dist/esm/columnControls/TimestampColumn/property.js +4 -4
- package/dist/esm/columnControls/VarcharColumn/property.js +8 -8
- package/dist/esm/formControls/Address/property.js +10 -10
- package/dist/esm/formControls/Amount/designer.js +1 -1
- package/dist/esm/formControls/Amount/property.js +22 -22
- package/dist/esm/formControls/Attachment/property.js +16 -16
- package/dist/esm/formControls/AutoNumber/property.js +6 -6
- package/dist/esm/formControls/Calc/designer.js +1 -1
- package/dist/esm/formControls/Calc/property.js +14 -14
- package/dist/esm/formControls/Checkbox/property.js +26 -26
- package/dist/esm/formControls/DatePicker/property.js +18 -18
- package/dist/esm/formControls/DateRange/property.js +18 -18
- package/dist/esm/formControls/Department/designer.js +1 -1
- package/dist/esm/formControls/Department/property.js +22 -22
- package/dist/esm/formControls/Department2/designer.js +1 -1
- package/dist/esm/formControls/Department2/property.js +30 -30
- package/dist/esm/formControls/ElectronicSignature/property.js +12 -12
- package/dist/esm/formControls/Employee/property.js +18 -18
- package/dist/esm/formControls/Employee2/property.js +28 -28
- package/dist/esm/formControls/Image/designer.js +5 -5
- package/dist/esm/formControls/Image/runtime.js +7 -7
- package/dist/esm/formControls/Input/property.js +14 -14
- package/dist/esm/formControls/Number/designer.js +1 -1
- package/dist/esm/formControls/Number/property.js +26 -26
- package/dist/esm/formControls/Radio/property.js +22 -22
- package/dist/esm/formControls/RichText/property.js +10 -10
- package/dist/esm/formControls/Score/designer.js +2 -2
- package/dist/esm/formControls/Score/property.js +14 -14
- package/dist/esm/formControls/SearchDateRange/property.js +20 -20
- package/dist/esm/formControls/SearchNumberRange/property.js +12 -12
- package/dist/esm/formControls/Select/property.js +16 -16
- package/dist/esm/formControls/SelectMultiple/property.js +14 -14
- package/dist/esm/formControls/SelectRelation/property.js +14 -14
- package/dist/esm/formControls/Textarea/property.js +12 -12
- package/dist/esm/formControls/Tree/property.js +26 -26
- package/dist/esm/formControls/VueFormItem/property.js +10 -10
- package/dist/esm/formControls/WPS/property.js +24 -24
- package/dist/esm/framework.js +70 -70
- package/dist/esm/layoutControls/CardGroup/property.js +6 -6
- package/dist/esm/layoutControls/Col/property.js +4 -4
- package/dist/esm/layoutControls/DataView/property.js +12 -12
- package/dist/esm/layoutControls/GridTableColumn/property.js +20 -20
- package/dist/esm/layoutControls/ListView/property.js +18 -18
- package/dist/esm/layoutControls/Page/property.js +2 -2
- package/dist/esm/layoutControls/Position/property.js +8 -8
- package/dist/esm/layoutControls/Row/property.js +4 -4
- package/dist/esm/layoutControls/SubTableColumn/property.js +12 -12
- package/dist/esm/layoutControls/Tab/designer.js +2 -2
- package/dist/esm/layoutControls/TabPane/property.js +2 -2
- package/dist/esm/listControls/GridTable/property.js +8 -8
- package/dist/esm/listControls/SubTable/designer.js +2 -2
- package/dist/esm/listControls/SubTable/property.js +42 -42
- package/dist/esm/searchControls/SimpleSearch/property.js +14 -14
- package/dist/esm/searchControls/SimpleSearch/runtime.js +2 -2
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/BatchDeleteButton/designer.d.ts +13 -0
- package/dist/types/baseControls/BatchDeleteButton/index.d.ts +12 -0
- package/dist/types/baseControls/BatchDeleteButton/property.d.ts +14 -0
- package/dist/types/baseControls/BatchDeleteButton/runtime.d.ts +9 -0
- package/dist/types/baseControls/BatchDeleteButton/types.d.ts +0 -0
- package/dist/types/baseControls/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/esm/framework.js
CHANGED
|
@@ -57,10 +57,10 @@ export var SCORE_TYPE;
|
|
|
57
57
|
export var Explain = function Explain(props) {
|
|
58
58
|
"use strict";
|
|
59
59
|
_classCallCheck(this, Explain);
|
|
60
|
-
var
|
|
61
|
-
this.id = (
|
|
62
|
-
var
|
|
63
|
-
this.text = (
|
|
60
|
+
var _props_id;
|
|
61
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
62
|
+
var _props_text;
|
|
63
|
+
this.text = (_props_text = props === null || props === void 0 ? void 0 : props.text) !== null && _props_text !== void 0 ? _props_text : "";
|
|
64
64
|
};
|
|
65
65
|
export var LINE_STYLE;
|
|
66
66
|
(function(LINE_STYLE) {
|
|
@@ -74,85 +74,85 @@ export var LINE_STYLE;
|
|
|
74
74
|
export var UndersignedPerson = function UndersignedPerson(props) {
|
|
75
75
|
"use strict";
|
|
76
76
|
_classCallCheck(this, UndersignedPerson);
|
|
77
|
-
var
|
|
78
|
-
this.type = (
|
|
79
|
-
var
|
|
80
|
-
this.person = new RightVariable((
|
|
77
|
+
var _props_type;
|
|
78
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "private";
|
|
79
|
+
var _props_person;
|
|
80
|
+
this.person = new RightVariable((_props_person = props === null || props === void 0 ? void 0 : props.person) !== null && _props_person !== void 0 ? _props_person : {
|
|
81
81
|
type: "form"
|
|
82
82
|
});
|
|
83
|
-
var
|
|
84
|
-
this.signatureType = (
|
|
85
|
-
var
|
|
86
|
-
this.telephone = (
|
|
83
|
+
var _props_signatureType;
|
|
84
|
+
this.signatureType = (_props_signatureType = props === null || props === void 0 ? void 0 : props.signatureType) !== null && _props_signatureType !== void 0 ? _props_signatureType : [];
|
|
85
|
+
var _props_telephone, _props_telephone1;
|
|
86
|
+
this.telephone = (_props_telephone1 = props === null || props === void 0 ? void 0 : props.telephone) !== null && _props_telephone1 !== void 0 ? _props_telephone1 : new RightVariable((_props_telephone = props === null || props === void 0 ? void 0 : props.telephone) !== null && _props_telephone !== void 0 ? _props_telephone : {
|
|
87
87
|
type: "form"
|
|
88
88
|
});
|
|
89
|
-
var
|
|
90
|
-
this.company = (
|
|
89
|
+
var _props_company, _props_company1;
|
|
90
|
+
this.company = (_props_company1 = props === null || props === void 0 ? void 0 : props.company) !== null && _props_company1 !== void 0 ? _props_company1 : new RightVariable((_props_company = props === null || props === void 0 ? void 0 : props.company) !== null && _props_company !== void 0 ? _props_company : {
|
|
91
91
|
type: "form"
|
|
92
92
|
});
|
|
93
|
-
var
|
|
94
|
-
this.remark = (
|
|
93
|
+
var _props_remark;
|
|
94
|
+
this.remark = (_props_remark = props === null || props === void 0 ? void 0 : props.remark) !== null && _props_remark !== void 0 ? _props_remark : "";
|
|
95
95
|
};
|
|
96
96
|
export var ElectronicSignatureConfig = function ElectronicSignatureConfig(props) {
|
|
97
97
|
"use strict";
|
|
98
98
|
_classCallCheck(this, ElectronicSignatureConfig);
|
|
99
|
-
var
|
|
100
|
-
var
|
|
101
|
-
this.fileControl = (
|
|
102
|
-
var
|
|
103
|
-
this.undersignedList = (
|
|
99
|
+
var _props_undersignedList;
|
|
100
|
+
var _props_fileControl;
|
|
101
|
+
this.fileControl = (_props_fileControl = props === null || props === void 0 ? void 0 : props.fileControl) !== null && _props_fileControl !== void 0 ? _props_fileControl : "";
|
|
102
|
+
var _props_undersignedList_map;
|
|
103
|
+
this.undersignedList = (_props_undersignedList_map = props === null || props === void 0 ? void 0 : (_props_undersignedList = props.undersignedList) === null || _props_undersignedList === void 0 ? void 0 : _props_undersignedList.map(function(item) {
|
|
104
104
|
return new UndersignedPerson(item);
|
|
105
|
-
})) !== null &&
|
|
105
|
+
})) !== null && _props_undersignedList_map !== void 0 ? _props_undersignedList_map : [
|
|
106
106
|
new UndersignedPerson()
|
|
107
107
|
];
|
|
108
|
-
var
|
|
109
|
-
this.statusControl = (
|
|
110
|
-
var
|
|
111
|
-
this.completeControl = (
|
|
112
|
-
var
|
|
113
|
-
this.completeTimeControl = (
|
|
108
|
+
var _props_statusControl;
|
|
109
|
+
this.statusControl = (_props_statusControl = props === null || props === void 0 ? void 0 : props.statusControl) !== null && _props_statusControl !== void 0 ? _props_statusControl : "";
|
|
110
|
+
var _props_completeControl;
|
|
111
|
+
this.completeControl = (_props_completeControl = props === null || props === void 0 ? void 0 : props.completeControl) !== null && _props_completeControl !== void 0 ? _props_completeControl : "";
|
|
112
|
+
var _props_completeTimeControl;
|
|
113
|
+
this.completeTimeControl = (_props_completeTimeControl = props === null || props === void 0 ? void 0 : props.completeTimeControl) !== null && _props_completeTimeControl !== void 0 ? _props_completeTimeControl : "";
|
|
114
114
|
};
|
|
115
115
|
export var ExportTemplate = function ExportTemplate(props) {
|
|
116
116
|
"use strict";
|
|
117
117
|
_classCallCheck(this, ExportTemplate);
|
|
118
|
-
var
|
|
119
|
-
this.id = (
|
|
120
|
-
var
|
|
121
|
-
this.appId = (
|
|
122
|
-
var
|
|
123
|
-
this.dataCode = (
|
|
124
|
-
var
|
|
125
|
-
this.svcCode = (
|
|
126
|
-
var
|
|
127
|
-
this.name = (
|
|
128
|
-
var
|
|
129
|
-
this.fieldList = (
|
|
130
|
-
var
|
|
131
|
-
this.active = (
|
|
118
|
+
var _props_id;
|
|
119
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
120
|
+
var _props_appId;
|
|
121
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
122
|
+
var _props_dataCode;
|
|
123
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
124
|
+
var _props_svcCode;
|
|
125
|
+
this.svcCode = (_props_svcCode = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _props_svcCode !== void 0 ? _props_svcCode : "";
|
|
126
|
+
var _props_name;
|
|
127
|
+
this.name = (_props_name = props === null || props === void 0 ? void 0 : props.name) !== null && _props_name !== void 0 ? _props_name : "";
|
|
128
|
+
var _props_fieldList;
|
|
129
|
+
this.fieldList = (_props_fieldList = props === null || props === void 0 ? void 0 : props.fieldList) !== null && _props_fieldList !== void 0 ? _props_fieldList : [];
|
|
130
|
+
var _props_active;
|
|
131
|
+
this.active = (_props_active = props === null || props === void 0 ? void 0 : props.active) !== null && _props_active !== void 0 ? _props_active : false;
|
|
132
132
|
};
|
|
133
133
|
export var WpsOperationItem = function WpsOperationItem(props) {
|
|
134
134
|
"use strict";
|
|
135
135
|
_classCallCheck(this, WpsOperationItem);
|
|
136
|
-
var
|
|
137
|
-
this.active = (
|
|
138
|
-
var
|
|
139
|
-
this.text = (
|
|
136
|
+
var _props_active;
|
|
137
|
+
this.active = (_props_active = props === null || props === void 0 ? void 0 : props.active) !== null && _props_active !== void 0 ? _props_active : false;
|
|
138
|
+
var _props_text;
|
|
139
|
+
this.text = (_props_text = props === null || props === void 0 ? void 0 : props.text) !== null && _props_text !== void 0 ? _props_text : "";
|
|
140
140
|
};
|
|
141
141
|
export var WPSSetting = function WPSSetting(props) {
|
|
142
142
|
"use strict";
|
|
143
143
|
_classCallCheck(this, WPSSetting);
|
|
144
|
-
var
|
|
145
|
-
this.types = (
|
|
144
|
+
var _props_types;
|
|
145
|
+
this.types = (_props_types = props === null || props === void 0 ? void 0 : props.types) !== null && _props_types !== void 0 ? _props_types : [
|
|
146
146
|
"word",
|
|
147
147
|
"ppt",
|
|
148
148
|
"excel"
|
|
149
149
|
];
|
|
150
|
-
var
|
|
151
|
-
this.history = (
|
|
152
|
-
var
|
|
153
|
-
this.collaborativeRecord = (
|
|
154
|
-
var
|
|
155
|
-
this.logicToDelete = (
|
|
150
|
+
var _props_history;
|
|
151
|
+
this.history = (_props_history = props === null || props === void 0 ? void 0 : props.history) !== null && _props_history !== void 0 ? _props_history : false;
|
|
152
|
+
var _props_collaborativeRecord;
|
|
153
|
+
this.collaborativeRecord = (_props_collaborativeRecord = props === null || props === void 0 ? void 0 : props.collaborativeRecord) !== null && _props_collaborativeRecord !== void 0 ? _props_collaborativeRecord : false;
|
|
154
|
+
var _props_logicToDelete;
|
|
155
|
+
this.logicToDelete = (_props_logicToDelete = props === null || props === void 0 ? void 0 : props.logicToDelete) !== null && _props_logicToDelete !== void 0 ? _props_logicToDelete : true;
|
|
156
156
|
this.watermark = new WpsOperationItem(props === null || props === void 0 ? void 0 : props.watermark);
|
|
157
157
|
this.autoRename = new WpsOperationItem(props === null || props === void 0 ? void 0 : props.autoRename);
|
|
158
158
|
};
|
|
@@ -163,26 +163,26 @@ export function initExpression(expression) {
|
|
|
163
163
|
export var PrintTemplate = function PrintTemplate(props) {
|
|
164
164
|
"use strict";
|
|
165
165
|
_classCallCheck(this, PrintTemplate);
|
|
166
|
-
var
|
|
167
|
-
this.fileId = (
|
|
168
|
-
var
|
|
169
|
-
this.fileName = (
|
|
170
|
-
var
|
|
171
|
-
this.ruleName = (
|
|
172
|
-
var
|
|
173
|
-
this.isDefault = (
|
|
174
|
-
var
|
|
175
|
-
this.rules = (
|
|
166
|
+
var _props_fileId;
|
|
167
|
+
this.fileId = (_props_fileId = props === null || props === void 0 ? void 0 : props.fileId) !== null && _props_fileId !== void 0 ? _props_fileId : "";
|
|
168
|
+
var _props_fileName;
|
|
169
|
+
this.fileName = (_props_fileName = props === null || props === void 0 ? void 0 : props.fileName) !== null && _props_fileName !== void 0 ? _props_fileName : "";
|
|
170
|
+
var _props_ruleName;
|
|
171
|
+
this.ruleName = (_props_ruleName = props === null || props === void 0 ? void 0 : props.ruleName) !== null && _props_ruleName !== void 0 ? _props_ruleName : "";
|
|
172
|
+
var _props_isDefault;
|
|
173
|
+
this.isDefault = (_props_isDefault = props.isDefault) !== null && _props_isDefault !== void 0 ? _props_isDefault : false;
|
|
174
|
+
var _props_rules;
|
|
175
|
+
this.rules = (_props_rules = props.rules) !== null && _props_rules !== void 0 ? _props_rules : [];
|
|
176
176
|
};
|
|
177
177
|
export var FlexStyleConfig = function FlexStyleConfig(props) {
|
|
178
178
|
"use strict";
|
|
179
179
|
_classCallCheck(this, FlexStyleConfig);
|
|
180
|
-
var
|
|
181
|
-
this.direction = (
|
|
182
|
-
var
|
|
183
|
-
this.justifyContent = (
|
|
184
|
-
var
|
|
185
|
-
this.alignItems = (
|
|
180
|
+
var _props_direction;
|
|
181
|
+
this.direction = (_props_direction = props === null || props === void 0 ? void 0 : props.direction) !== null && _props_direction !== void 0 ? _props_direction : "row";
|
|
182
|
+
var _props_justifyContent;
|
|
183
|
+
this.justifyContent = (_props_justifyContent = props === null || props === void 0 ? void 0 : props.justifyContent) !== null && _props_justifyContent !== void 0 ? _props_justifyContent : "flex-start";
|
|
184
|
+
var _props_alignItems;
|
|
185
|
+
this.alignItems = (_props_alignItems = props === null || props === void 0 ? void 0 : props.alignItems) !== null && _props_alignItems !== void 0 ? _props_alignItems : "flex-start";
|
|
186
186
|
};
|
|
187
187
|
export var EncryptTypeEnum;
|
|
188
188
|
(function(EncryptTypeEnum) {
|
|
@@ -71,9 +71,9 @@ function _createSuper(Derived) {
|
|
|
71
71
|
}
|
|
72
72
|
import { LayoutControlProperty } from "@byteluck-fe/model-driven-core";
|
|
73
73
|
import { RulesMessage } from "@byteluck-fe/model-driven-shared";
|
|
74
|
-
var CardGroupControlPropertyRules = /*#__PURE__*/ function(
|
|
74
|
+
var CardGroupControlPropertyRules = /*#__PURE__*/ function(_LayoutControlProperty_Rules) {
|
|
75
75
|
"use strict";
|
|
76
|
-
_inherits(CardGroupControlPropertyRules,
|
|
76
|
+
_inherits(CardGroupControlPropertyRules, _LayoutControlProperty_Rules);
|
|
77
77
|
var _super = _createSuper(CardGroupControlPropertyRules);
|
|
78
78
|
function CardGroupControlPropertyRules() {
|
|
79
79
|
_classCallCheck(this, CardGroupControlPropertyRules);
|
|
@@ -96,10 +96,10 @@ var CardGroupControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
96
96
|
_classCallCheck(this, CardGroupControlProperty);
|
|
97
97
|
var _this;
|
|
98
98
|
_this = _super.call(this, props);
|
|
99
|
-
var
|
|
100
|
-
_this.caption = (
|
|
101
|
-
var
|
|
102
|
-
_this.collapse = (
|
|
99
|
+
var _props_caption;
|
|
100
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : "分组";
|
|
101
|
+
var _props_collapse;
|
|
102
|
+
_this.collapse = (_props_collapse = props === null || props === void 0 ? void 0 : props.collapse) !== null && _props_collapse !== void 0 ? _props_collapse : "none";
|
|
103
103
|
return _this;
|
|
104
104
|
}
|
|
105
105
|
return CardGroupControlProperty;
|
|
@@ -79,10 +79,10 @@ var ColControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
79
79
|
_classCallCheck(this, ColControlProperty);
|
|
80
80
|
var _this;
|
|
81
81
|
_this = _super.call(this, props);
|
|
82
|
-
var
|
|
83
|
-
_this.span = (
|
|
84
|
-
var
|
|
85
|
-
_this.offset = (
|
|
82
|
+
var _props_span;
|
|
83
|
+
_this.span = (_props_span = props === null || props === void 0 ? void 0 : props.span) !== null && _props_span !== void 0 ? _props_span : BASE_SPAN;
|
|
84
|
+
var _props_offset;
|
|
85
|
+
_this.offset = (_props_offset = props === null || props === void 0 ? void 0 : props.offset) !== null && _props_offset !== void 0 ? _props_offset : 0;
|
|
86
86
|
return _this;
|
|
87
87
|
}
|
|
88
88
|
return ColControlProperty;
|
|
@@ -94,36 +94,36 @@ var DataViewControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
94
94
|
_classCallCheck(this, DataViewControlProperty);
|
|
95
95
|
var _this;
|
|
96
96
|
_this = _super.call(this, props);
|
|
97
|
-
var
|
|
98
|
-
_this.save = new OperationItem((
|
|
97
|
+
var _props_save;
|
|
98
|
+
_this.save = new OperationItem((_props_save = props === null || props === void 0 ? void 0 : props.save) !== null && _props_save !== void 0 ? _props_save : {
|
|
99
99
|
content: "保存",
|
|
100
100
|
type: "save",
|
|
101
101
|
isShow: false
|
|
102
102
|
});
|
|
103
|
-
var
|
|
104
|
-
_this.cancel = new OperationItem((
|
|
103
|
+
var _props_cancel;
|
|
104
|
+
_this.cancel = new OperationItem((_props_cancel = props === null || props === void 0 ? void 0 : props.cancel) !== null && _props_cancel !== void 0 ? _props_cancel : {
|
|
105
105
|
content: "取消",
|
|
106
106
|
type: "cancel",
|
|
107
107
|
isShow: false
|
|
108
108
|
});
|
|
109
|
-
var
|
|
110
|
-
_this.saveAs = new OperationItem((
|
|
109
|
+
var _props_saveAs;
|
|
110
|
+
_this.saveAs = new OperationItem((_props_saveAs = props === null || props === void 0 ? void 0 : props.saveAs) !== null && _props_saveAs !== void 0 ? _props_saveAs : {
|
|
111
111
|
content: "保存草稿",
|
|
112
112
|
type: "saveAs",
|
|
113
113
|
isShow: false
|
|
114
114
|
});
|
|
115
|
-
var
|
|
116
|
-
_this.print = new OperationItem((
|
|
115
|
+
var _props_print;
|
|
116
|
+
_this.print = new OperationItem((_props_print = props === null || props === void 0 ? void 0 : props.print) !== null && _props_print !== void 0 ? _props_print : {
|
|
117
117
|
content: "打印",
|
|
118
118
|
type: "print",
|
|
119
119
|
isShow: false
|
|
120
120
|
});
|
|
121
|
-
var
|
|
122
|
-
_this.custom = ((
|
|
121
|
+
var _props_custom;
|
|
122
|
+
_this.custom = ((_props_custom = props === null || props === void 0 ? void 0 : props.custom) !== null && _props_custom !== void 0 ? _props_custom : []).map(function(item) {
|
|
123
123
|
return new OperationItem(item);
|
|
124
124
|
});
|
|
125
|
-
var
|
|
126
|
-
_this.isLoading = (
|
|
125
|
+
var _props_isLoading;
|
|
126
|
+
_this.isLoading = (_props_isLoading = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _props_isLoading !== void 0 ? _props_isLoading : false;
|
|
127
127
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
128
128
|
return _this;
|
|
129
129
|
}
|
|
@@ -79,28 +79,28 @@ var GridTableColumnControlProperty = /*#__PURE__*/ function(LayoutControlPropert
|
|
|
79
79
|
_classCallCheck(this, GridTableColumnControlProperty);
|
|
80
80
|
var _this;
|
|
81
81
|
_this = _super.call(this, props);
|
|
82
|
-
var
|
|
83
|
-
_this.width = (
|
|
82
|
+
var _props_width;
|
|
83
|
+
_this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : 200;
|
|
84
84
|
_this.widthType = (props === null || props === void 0 ? void 0 : props.widthType) || "auto";
|
|
85
|
-
var
|
|
86
|
-
_this.caption = (
|
|
87
|
-
var
|
|
88
|
-
_this.fixed = (
|
|
89
|
-
var
|
|
90
|
-
_this.fieldCode = (
|
|
91
|
-
var
|
|
92
|
-
_this.fieldType = (
|
|
93
|
-
var
|
|
94
|
-
_this.fieldName = (
|
|
85
|
+
var _props_caption;
|
|
86
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : "";
|
|
87
|
+
var _props_fixed;
|
|
88
|
+
_this.fixed = (_props_fixed = props === null || props === void 0 ? void 0 : props.fixed) !== null && _props_fixed !== void 0 ? _props_fixed : false;
|
|
89
|
+
var _props_fieldCode;
|
|
90
|
+
_this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
91
|
+
var _props_fieldType;
|
|
92
|
+
_this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : FieldTypes.VARCHAR;
|
|
93
|
+
var _props_fieldName;
|
|
94
|
+
_this.fieldName = (_props_fieldName = props === null || props === void 0 ? void 0 : props.fieldName) !== null && _props_fieldName !== void 0 ? _props_fieldName : "";
|
|
95
95
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
96
|
-
var
|
|
97
|
-
_this.textCleanFormart = (
|
|
98
|
-
var
|
|
99
|
-
_this.decimalKeepPrecision = (
|
|
100
|
-
var
|
|
101
|
-
_this.timestampDateType = (
|
|
102
|
-
var
|
|
103
|
-
_this.departmentDisplayLevel = (
|
|
96
|
+
var _props_textCleanFormart;
|
|
97
|
+
_this.textCleanFormart = (_props_textCleanFormart = props === null || props === void 0 ? void 0 : props.textCleanFormart) !== null && _props_textCleanFormart !== void 0 ? _props_textCleanFormart : false;
|
|
98
|
+
var _props_decimalKeepPrecision;
|
|
99
|
+
_this.decimalKeepPrecision = (_props_decimalKeepPrecision = props === null || props === void 0 ? void 0 : props.decimalKeepPrecision) !== null && _props_decimalKeepPrecision !== void 0 ? _props_decimalKeepPrecision : 0;
|
|
100
|
+
var _props_timestampDateType;
|
|
101
|
+
_this.timestampDateType = (_props_timestampDateType = props === null || props === void 0 ? void 0 : props.timestampDateType) !== null && _props_timestampDateType !== void 0 ? _props_timestampDateType : DateType.DATE;
|
|
102
|
+
var _props_departmentDisplayLevel;
|
|
103
|
+
_this.departmentDisplayLevel = (_props_departmentDisplayLevel = props === null || props === void 0 ? void 0 : props.departmentDisplayLevel) !== null && _props_departmentDisplayLevel !== void 0 ? _props_departmentDisplayLevel : 1;
|
|
104
104
|
return _this;
|
|
105
105
|
}
|
|
106
106
|
return GridTableColumnControlProperty;
|
|
@@ -141,25 +141,25 @@ var ListViewControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
141
141
|
var _this;
|
|
142
142
|
_this = _super.call(this, props);
|
|
143
143
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
144
|
-
var
|
|
145
|
-
_this.isLoading = (
|
|
146
|
-
var
|
|
147
|
-
_this.isShowSubList = (
|
|
148
|
-
var
|
|
149
|
-
_this.triggerType = (
|
|
150
|
-
var
|
|
151
|
-
_this.triggerFieldCode = (
|
|
144
|
+
var _props_isLoading;
|
|
145
|
+
_this.isLoading = (_props_isLoading = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _props_isLoading !== void 0 ? _props_isLoading : false;
|
|
146
|
+
var _props_isShowSubList;
|
|
147
|
+
_this.isShowSubList = (_props_isShowSubList = props === null || props === void 0 ? void 0 : props.isShowSubList) !== null && _props_isShowSubList !== void 0 ? _props_isShowSubList : false;
|
|
148
|
+
var _props_triggerType;
|
|
149
|
+
_this.triggerType = (_props_triggerType = props === null || props === void 0 ? void 0 : props.triggerType) !== null && _props_triggerType !== void 0 ? _props_triggerType : TriggerType.CLICK_ROW;
|
|
150
|
+
var _props_triggerFieldCode;
|
|
151
|
+
_this.triggerFieldCode = (_props_triggerFieldCode = props === null || props === void 0 ? void 0 : props.triggerFieldCode) !== null && _props_triggerFieldCode !== void 0 ? _props_triggerFieldCode : "";
|
|
152
152
|
_this.sublistPage = new SubListPageConfig(props === null || props === void 0 ? void 0 : props.sublistPage);
|
|
153
|
-
var
|
|
154
|
-
_this.showType = (
|
|
155
|
-
var
|
|
156
|
-
_this.showFullScreen = (
|
|
157
|
-
var
|
|
158
|
-
_this.isFixedHeader = (
|
|
159
|
-
var
|
|
160
|
-
_this.isAllLoaded = (
|
|
161
|
-
var
|
|
162
|
-
_this.countType = (
|
|
153
|
+
var _props_showType;
|
|
154
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : "stretch";
|
|
155
|
+
var _props_showFullScreen;
|
|
156
|
+
_this.showFullScreen = (_props_showFullScreen = props === null || props === void 0 ? void 0 : props.showFullScreen) !== null && _props_showFullScreen !== void 0 ? _props_showFullScreen : false;
|
|
157
|
+
var _props_isFixedHeader;
|
|
158
|
+
_this.isFixedHeader = (_props_isFixedHeader = props === null || props === void 0 ? void 0 : props.isFixedHeader) !== null && _props_isFixedHeader !== void 0 ? _props_isFixedHeader : false;
|
|
159
|
+
var _props_isAllLoaded;
|
|
160
|
+
_this.isAllLoaded = (_props_isAllLoaded = props === null || props === void 0 ? void 0 : props.isAllLoaded) !== null && _props_isAllLoaded !== void 0 ? _props_isAllLoaded : true;
|
|
161
|
+
var _props_countType;
|
|
162
|
+
_this.countType = (_props_countType = props === null || props === void 0 ? void 0 : props.countType) !== null && _props_countType !== void 0 ? _props_countType : "async";
|
|
163
163
|
return _this;
|
|
164
164
|
}
|
|
165
165
|
return ListViewControlProperty;
|
|
@@ -86,8 +86,8 @@ var PageProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
86
86
|
* auto指内容多高它多高
|
|
87
87
|
* fill指最小占一屏幕高
|
|
88
88
|
* */ _this.heightConfig = "auto";
|
|
89
|
-
var
|
|
90
|
-
_this.hideHeader = (
|
|
89
|
+
var _props_hideHeader;
|
|
90
|
+
_this.hideHeader = (_props_hideHeader = props === null || props === void 0 ? void 0 : props.hideHeader) !== null && _props_hideHeader !== void 0 ? _props_hideHeader : false;
|
|
91
91
|
return _this;
|
|
92
92
|
}
|
|
93
93
|
return PageProperty;
|
|
@@ -78,14 +78,14 @@ var PositionProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
78
78
|
_classCallCheck(this, PositionProperty);
|
|
79
79
|
var _this;
|
|
80
80
|
_this = _super.call(this, props);
|
|
81
|
-
var
|
|
82
|
-
_this.widthSpan = (
|
|
83
|
-
var
|
|
84
|
-
_this.heightSpan = (
|
|
85
|
-
var
|
|
86
|
-
_this.left = (
|
|
87
|
-
var
|
|
88
|
-
_this.top = (
|
|
81
|
+
var _props_widthSpan;
|
|
82
|
+
_this.widthSpan = (_props_widthSpan = props === null || props === void 0 ? void 0 : props.widthSpan) !== null && _props_widthSpan !== void 0 ? _props_widthSpan : 12;
|
|
83
|
+
var _props_heightSpan;
|
|
84
|
+
_this.heightSpan = (_props_heightSpan = props === null || props === void 0 ? void 0 : props.heightSpan) !== null && _props_heightSpan !== void 0 ? _props_heightSpan : 12;
|
|
85
|
+
var _props_left;
|
|
86
|
+
_this.left = (_props_left = props === null || props === void 0 ? void 0 : props.left) !== null && _props_left !== void 0 ? _props_left : 0;
|
|
87
|
+
var _props_top;
|
|
88
|
+
_this.top = (_props_top = props === null || props === void 0 ? void 0 : props.top) !== null && _props_top !== void 0 ? _props_top : 0;
|
|
89
89
|
return _this;
|
|
90
90
|
}
|
|
91
91
|
return PositionProperty;
|
|
@@ -78,10 +78,10 @@ var RowControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
78
78
|
_classCallCheck(this, RowControlProperty);
|
|
79
79
|
var _this;
|
|
80
80
|
_this = _super.call(this, props);
|
|
81
|
-
var
|
|
82
|
-
_this.layoutMode = (
|
|
83
|
-
var
|
|
84
|
-
_this.gutter = (
|
|
81
|
+
var _props_layoutMode;
|
|
82
|
+
_this.layoutMode = (_props_layoutMode = props === null || props === void 0 ? void 0 : props.layoutMode) !== null && _props_layoutMode !== void 0 ? _props_layoutMode : "select";
|
|
83
|
+
var _props_gutter;
|
|
84
|
+
_this.gutter = (_props_gutter = props === null || props === void 0 ? void 0 : props.gutter) !== null && _props_gutter !== void 0 ? _props_gutter : 0;
|
|
85
85
|
return _this;
|
|
86
86
|
}
|
|
87
87
|
return RowControlProperty;
|
|
@@ -110,19 +110,19 @@ var SubTableColumnControlProperty = /*#__PURE__*/ function(LayoutControlProperty
|
|
|
110
110
|
_classCallCheck(this, SubTableColumnControlProperty);
|
|
111
111
|
var _this;
|
|
112
112
|
_this = _super.call(this, props);
|
|
113
|
-
var
|
|
114
|
-
_this.width = (
|
|
113
|
+
var _props_width;
|
|
114
|
+
_this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : 240;
|
|
115
115
|
_this.widthType = (props === null || props === void 0 ? void 0 : props.widthType) || "auto";
|
|
116
|
-
var
|
|
117
|
-
_this.caption = (
|
|
118
|
-
var
|
|
119
|
-
_this.fixed = (
|
|
120
|
-
var
|
|
121
|
-
_this.isShowCaptionTip = (
|
|
122
|
-
var
|
|
123
|
-
_this.captionTip = (
|
|
124
|
-
var
|
|
125
|
-
_this.isHideCaption = (
|
|
116
|
+
var _props_caption;
|
|
117
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : "";
|
|
118
|
+
var _props_fixed;
|
|
119
|
+
_this.fixed = (_props_fixed = props === null || props === void 0 ? void 0 : props.fixed) !== null && _props_fixed !== void 0 ? _props_fixed : false;
|
|
120
|
+
var _props_isShowCaptionTip;
|
|
121
|
+
_this.isShowCaptionTip = (_props_isShowCaptionTip = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _props_isShowCaptionTip !== void 0 ? _props_isShowCaptionTip : false;
|
|
122
|
+
var _props_captionTip;
|
|
123
|
+
_this.captionTip = (_props_captionTip = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _props_captionTip !== void 0 ? _props_captionTip : "";
|
|
124
|
+
var _props_isHideCaption;
|
|
125
|
+
_this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
|
|
126
126
|
return _this;
|
|
127
127
|
}
|
|
128
128
|
return SubTableColumnControlProperty;
|
|
@@ -96,8 +96,8 @@ var TabControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
|
96
96
|
var _this;
|
|
97
97
|
_this = _super.call(this, props);
|
|
98
98
|
_this.props = new TabControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
99
|
-
var
|
|
100
|
-
_this.children = (
|
|
99
|
+
var _props_children;
|
|
100
|
+
_this.children = (_props_children = props === null || props === void 0 ? void 0 : props.children) !== null && _props_children !== void 0 ? _props_children : [
|
|
101
101
|
new DesignerTabPaneControl(),
|
|
102
102
|
new DesignerTabPaneControl()
|
|
103
103
|
];
|
|
@@ -97,8 +97,8 @@ var TabPaneControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
97
97
|
_classCallCheck(this, TabPaneControlProperty);
|
|
98
98
|
var _this;
|
|
99
99
|
_this = _super.call(this, props);
|
|
100
|
-
var
|
|
101
|
-
_this.caption = (
|
|
100
|
+
var _props_caption;
|
|
101
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerTabControl.controlName;
|
|
102
102
|
return _this;
|
|
103
103
|
}
|
|
104
104
|
return TabPaneControlProperty;
|
|
@@ -85,15 +85,15 @@ var GridTableControlProperty = /*#__PURE__*/ function(ListControlProperty) {
|
|
|
85
85
|
_classCallCheck(this, GridTableControlProperty);
|
|
86
86
|
var _this;
|
|
87
87
|
_this = _super.call(this, parent, props);
|
|
88
|
-
var
|
|
89
|
-
_this.isFixedHeader = (
|
|
88
|
+
var _props_isFixedHeader;
|
|
89
|
+
_this.isFixedHeader = (_props_isFixedHeader = props === null || props === void 0 ? void 0 : props.isFixedHeader) !== null && _props_isFixedHeader !== void 0 ? _props_isFixedHeader : false;
|
|
90
90
|
_this.selectionType = props === null || props === void 0 ? void 0 : props.selectionType;
|
|
91
|
-
var
|
|
92
|
-
_this.isShowToolbar = (
|
|
93
|
-
var
|
|
94
|
-
_this.isShowSelection = (
|
|
95
|
-
var
|
|
96
|
-
_this.isShowCustomColumns = (
|
|
91
|
+
var _props_isShowToolbar;
|
|
92
|
+
_this.isShowToolbar = (_props_isShowToolbar = props === null || props === void 0 ? void 0 : props.isShowToolbar) !== null && _props_isShowToolbar !== void 0 ? _props_isShowToolbar : true;
|
|
93
|
+
var _props_isShowSelection;
|
|
94
|
+
_this.isShowSelection = (_props_isShowSelection = props === null || props === void 0 ? void 0 : props.isShowSelection) !== null && _props_isShowSelection !== void 0 ? _props_isShowSelection : false;
|
|
95
|
+
var _props_isShowCustomColumns;
|
|
96
|
+
_this.isShowCustomColumns = (_props_isShowCustomColumns = props === null || props === void 0 ? void 0 : props.isShowCustomColumns) !== null && _props_isShowCustomColumns !== void 0 ? _props_isShowCustomColumns : true;
|
|
97
97
|
return _this;
|
|
98
98
|
}
|
|
99
99
|
return GridTableControlProperty;
|
|
@@ -93,11 +93,11 @@ var SubTableControl = /*#__PURE__*/ function(DesignerListControl) {
|
|
|
93
93
|
function SubTableControl(props) {
|
|
94
94
|
_classCallCheck(this, SubTableControl);
|
|
95
95
|
var _this;
|
|
96
|
-
var
|
|
96
|
+
var _props_props;
|
|
97
97
|
_this = _super.call(this, props);
|
|
98
98
|
_this.props = new SubTableControlProperty(_assertThisInitialized(_this), props === null || props === void 0 ? void 0 : props.props);
|
|
99
99
|
// 默认设置三个空列
|
|
100
|
-
if ((props === null || props === void 0 ? void 0 : (
|
|
100
|
+
if ((props === null || props === void 0 ? void 0 : (_props_props = props.props) === null || _props_props === void 0 ? void 0 : _props_props.headers) === undefined) {
|
|
101
101
|
_this.props.headers = [
|
|
102
102
|
new DesignerSubTableColumnControl(),
|
|
103
103
|
new DesignerSubTableColumnControl(),
|