@byteluck-fe/model-driven-core 2.3.1-beta.2 → 2.3.1-beta.22
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/api-doc-index.js +4 -0
- package/dist/esm/common/BaseControl/designer.js +174 -68
- package/dist/esm/common/BaseControl/property.js +4 -4
- package/dist/esm/common/BaseControl/runtime.js +11 -11
- package/dist/esm/common/ColumnControl/property.js +16 -13
- package/dist/esm/common/ControlArray.js +4 -4
- package/dist/esm/common/FormControl/designer.js +1 -1
- package/dist/esm/common/FormControl/property.js +22 -22
- package/dist/esm/common/LayoutControl/designer.js +118 -18
- package/dist/esm/common/ListControl/designer.js +117 -17
- package/dist/esm/common/initOptionAndDataSourceRules.js +8 -8
- package/dist/esm/framework/index.js +279 -261
- package/dist/esm/index.js +0 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/api-doc-index.d.ts +4 -0
- package/dist/types/common/ColumnControl/property.d.ts +39 -0
- package/dist/types/common/FormControl/property.d.ts +52 -0
- package/dist/types/common/Validator.d.ts +1 -1
- package/dist/types/common/controlHooksEmitter.d.ts +1 -1
- package/dist/types/framework/index.d.ts +172 -1
- package/dist/types/type.d.ts +23 -23
- package/package.json +3 -3
|
@@ -78,24 +78,27 @@ function _createSuper(Derived) {
|
|
|
78
78
|
}
|
|
79
79
|
import { FieldTypes, genNonDuplicateId } from "@byteluck-fe/model-driven-shared";
|
|
80
80
|
export * from "./RegisterControls";
|
|
81
|
-
|
|
81
|
+
/**
|
|
82
|
+
* 数据绑定配置
|
|
83
|
+
* @public
|
|
84
|
+
*/ export var DataBind = function DataBind(props) {
|
|
82
85
|
"use strict";
|
|
83
86
|
_classCallCheck(this, DataBind);
|
|
84
|
-
var
|
|
85
|
-
this.dataCode = (
|
|
86
|
-
var
|
|
87
|
-
this.fieldCode = (
|
|
88
|
-
var
|
|
89
|
-
this.fieldType = (
|
|
87
|
+
var _props_dataCode;
|
|
88
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
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 : "";
|
|
90
93
|
};
|
|
91
94
|
export var AutoWidth = function AutoWidth(props) {
|
|
92
95
|
"use strict";
|
|
93
96
|
_classCallCheck(this, AutoWidth);
|
|
94
|
-
var
|
|
95
|
-
this.minWidth = (
|
|
97
|
+
var _props_minWidth;
|
|
98
|
+
this.minWidth = (_props_minWidth = props === null || props === void 0 ? void 0 : props.minWidth) !== null && _props_minWidth !== void 0 ? _props_minWidth : 150;
|
|
96
99
|
this.maxWidth = props === null || props === void 0 ? void 0 : props.maxWidth;
|
|
97
|
-
var
|
|
98
|
-
this.flex = (
|
|
100
|
+
var _props_flex;
|
|
101
|
+
this.flex = (_props_flex = props === null || props === void 0 ? void 0 : props.flex) !== null && _props_flex !== void 0 ? _props_flex : 1;
|
|
99
102
|
};
|
|
100
103
|
export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
101
104
|
"use strict";
|
|
@@ -105,10 +108,10 @@ export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
|
105
108
|
_classCallCheck(this, MetaWidth);
|
|
106
109
|
var _this;
|
|
107
110
|
_this = _super.call(this, props);
|
|
108
|
-
var
|
|
109
|
-
_this.width = (
|
|
110
|
-
var
|
|
111
|
-
_this.widthType = (
|
|
111
|
+
var _props_width;
|
|
112
|
+
_this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : 240;
|
|
113
|
+
var _props_widthType;
|
|
114
|
+
_this.widthType = (_props_widthType = props === null || props === void 0 ? void 0 : props.widthType) !== null && _props_widthType !== void 0 ? _props_widthType : "auto";
|
|
112
115
|
return _this;
|
|
113
116
|
}
|
|
114
117
|
return MetaWidth;
|
|
@@ -117,8 +120,7 @@ export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
|
117
120
|
"use strict";
|
|
118
121
|
_classCallCheck(this, MetaAutoWidth);
|
|
119
122
|
this.pc = new MetaWidth(props === null || props === void 0 ? void 0 : props.pc);
|
|
120
|
-
|
|
121
|
-
this.mobile = (ref = props === null || props === void 0 ? void 0 : props.mobile) !== null && ref !== void 0 ? ref : new MetaWidth({
|
|
123
|
+
this.mobile = (props === null || props === void 0 ? void 0 : props.mobile) ? new MetaWidth(props === null || props === void 0 ? void 0 : props.mobile) : new MetaWidth({
|
|
122
124
|
width: 130,
|
|
123
125
|
minWidth: 180
|
|
124
126
|
});
|
|
@@ -126,20 +128,20 @@ export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
|
126
128
|
export var DataStorageDoc = function DataStorageDoc(props) {
|
|
127
129
|
"use strict";
|
|
128
130
|
_classCallCheck(this, DataStorageDoc);
|
|
129
|
-
var
|
|
130
|
-
this.type = (
|
|
131
|
-
var
|
|
132
|
-
this.customOptions = (
|
|
131
|
+
var _props_type;
|
|
132
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "firstThree";
|
|
133
|
+
var _props_customOptions;
|
|
134
|
+
this.customOptions = (_props_customOptions = props === null || props === void 0 ? void 0 : props.customOptions) !== null && _props_customOptions !== void 0 ? _props_customOptions : [];
|
|
133
135
|
};
|
|
134
136
|
export var FormBind = function FormBind(props) {
|
|
135
137
|
"use strict";
|
|
136
138
|
_classCallCheck(this, FormBind);
|
|
137
|
-
var
|
|
138
|
-
this.dataCode = (
|
|
139
|
-
var
|
|
140
|
-
this.formKey = (
|
|
141
|
-
var
|
|
142
|
-
this.appId = (
|
|
139
|
+
var _props_dataCode;
|
|
140
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
141
|
+
var _props_formKey;
|
|
142
|
+
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
143
|
+
var _props_appId;
|
|
144
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
143
145
|
};
|
|
144
146
|
export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
145
147
|
"use strict";
|
|
@@ -149,8 +151,8 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
149
151
|
_classCallCheck(this, FormSelectBind);
|
|
150
152
|
var _this;
|
|
151
153
|
_this = _super.call(this, props);
|
|
152
|
-
var
|
|
153
|
-
_this.primaryControlId = (
|
|
154
|
+
var _props_primaryControlId;
|
|
155
|
+
_this.primaryControlId = (_props_primaryControlId = props === null || props === void 0 ? void 0 : props.primaryControlId) !== null && _props_primaryControlId !== void 0 ? _props_primaryControlId : "";
|
|
154
156
|
return _this;
|
|
155
157
|
}
|
|
156
158
|
return FormSelectBind;
|
|
@@ -158,31 +160,33 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
158
160
|
var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
159
161
|
"use strict";
|
|
160
162
|
_classCallCheck(this, ListBindHeaderItem);
|
|
161
|
-
var
|
|
162
|
-
this.fieldCode = (
|
|
163
|
+
var _props_fieldCode;
|
|
164
|
+
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
163
165
|
};
|
|
164
|
-
|
|
166
|
+
/**
|
|
167
|
+
* 列表绑定配置
|
|
168
|
+
*/ export var ListBind = function ListBind(props) {
|
|
165
169
|
"use strict";
|
|
166
170
|
_classCallCheck(this, ListBind);
|
|
167
|
-
var
|
|
168
|
-
var
|
|
169
|
-
this.appId = (
|
|
170
|
-
var
|
|
171
|
-
this.formKey = (
|
|
172
|
-
var
|
|
173
|
-
this.headers = (
|
|
171
|
+
var _props_headers;
|
|
172
|
+
var _props_appId;
|
|
173
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
174
|
+
var _props_formKey;
|
|
175
|
+
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
176
|
+
var _props_headers_map;
|
|
177
|
+
this.headers = (_props_headers_map = props === null || props === void 0 ? void 0 : (_props_headers = props.headers) === null || _props_headers === void 0 ? void 0 : _props_headers.map(function(item) {
|
|
174
178
|
return new ListBindHeaderItem(item);
|
|
175
|
-
})) !== null &&
|
|
179
|
+
})) !== null && _props_headers_map !== void 0 ? _props_headers_map : [];
|
|
176
180
|
};
|
|
177
181
|
export var FieldBindItem = function FieldBindItem(props) {
|
|
178
182
|
"use strict";
|
|
179
183
|
_classCallCheck(this, FieldBindItem);
|
|
180
|
-
var
|
|
181
|
-
this.fieldName = (
|
|
182
|
-
var
|
|
183
|
-
this.fieldCode = (
|
|
184
|
-
var
|
|
185
|
-
this.fieldType = (
|
|
184
|
+
var _props_fieldName;
|
|
185
|
+
this.fieldName = (_props_fieldName = props === null || props === void 0 ? void 0 : props.fieldName) !== null && _props_fieldName !== void 0 ? _props_fieldName : "";
|
|
186
|
+
var _props_fieldCode;
|
|
187
|
+
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
188
|
+
var _props_fieldType;
|
|
189
|
+
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : FieldTypes.VARCHAR;
|
|
186
190
|
};
|
|
187
191
|
export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
188
192
|
"use strict";
|
|
@@ -192,14 +196,14 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
192
196
|
_classCallCheck(this, SubListItem);
|
|
193
197
|
var _this;
|
|
194
198
|
_this = _super.call(this, props);
|
|
195
|
-
var
|
|
196
|
-
_this.title = (
|
|
197
|
-
var
|
|
198
|
-
_this.svcCode = (
|
|
199
|
-
var
|
|
200
|
-
_this.isOpenFilter = (
|
|
201
|
-
var
|
|
202
|
-
_this.filters = (
|
|
199
|
+
var _props_title;
|
|
200
|
+
_this.title = (_props_title = props === null || props === void 0 ? void 0 : props.title) !== null && _props_title !== void 0 ? _props_title : "";
|
|
201
|
+
var _props_svcCode;
|
|
202
|
+
_this.svcCode = (_props_svcCode = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _props_svcCode !== void 0 ? _props_svcCode : "";
|
|
203
|
+
var _props_isOpenFilter;
|
|
204
|
+
_this.isOpenFilter = (_props_isOpenFilter = props === null || props === void 0 ? void 0 : props.isOpenFilter) !== null && _props_isOpenFilter !== void 0 ? _props_isOpenFilter : false;
|
|
205
|
+
var _props_filters;
|
|
206
|
+
_this.filters = (_props_filters = props === null || props === void 0 ? void 0 : props.filters) !== null && _props_filters !== void 0 ? _props_filters : [];
|
|
203
207
|
return _this;
|
|
204
208
|
}
|
|
205
209
|
return SubListItem;
|
|
@@ -207,17 +211,17 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
207
211
|
export var SubListPageConfig = function SubListPageConfig(props) {
|
|
208
212
|
"use strict";
|
|
209
213
|
_classCallCheck(this, SubListPageConfig);
|
|
210
|
-
var
|
|
214
|
+
var _props_displayFields, _props_sublists;
|
|
211
215
|
this.type = "sublist-page";
|
|
212
216
|
this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
213
|
-
var
|
|
214
|
-
this.displayFields = (
|
|
217
|
+
var _props_displayFields_map;
|
|
218
|
+
this.displayFields = (_props_displayFields_map = props === null || props === void 0 ? void 0 : (_props_displayFields = props.displayFields) === null || _props_displayFields === void 0 ? void 0 : _props_displayFields.map(function(item) {
|
|
215
219
|
return new FieldBindItem(item);
|
|
216
|
-
})) !== null &&
|
|
217
|
-
var
|
|
218
|
-
this.sublists = (
|
|
220
|
+
})) !== null && _props_displayFields_map !== void 0 ? _props_displayFields_map : [];
|
|
221
|
+
var _props_sublists_map;
|
|
222
|
+
this.sublists = (_props_sublists_map = props === null || props === void 0 ? void 0 : (_props_sublists = props.sublists) === null || _props_sublists === void 0 ? void 0 : _props_sublists.map(function(item) {
|
|
219
223
|
return new SubListItem(item);
|
|
220
|
-
})) !== null &&
|
|
224
|
+
})) !== null && _props_sublists_map !== void 0 ? _props_sublists_map : [];
|
|
221
225
|
};
|
|
222
226
|
export var LeftVariable = function LeftVariable(props) {
|
|
223
227
|
"use strict";
|
|
@@ -228,37 +232,37 @@ export var LeftVariable = function LeftVariable(props) {
|
|
|
228
232
|
export var RightVariable = function RightVariable(props) {
|
|
229
233
|
"use strict";
|
|
230
234
|
_classCallCheck(this, RightVariable);
|
|
231
|
-
var
|
|
232
|
-
this.type = (
|
|
233
|
-
var
|
|
234
|
-
this.value = (
|
|
235
|
-
var
|
|
236
|
-
this.displayBos = (
|
|
235
|
+
var _props_type;
|
|
236
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "custom";
|
|
237
|
+
var _props_value;
|
|
238
|
+
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : [];
|
|
239
|
+
var _props_displayBos;
|
|
240
|
+
this.displayBos = (_props_displayBos = props === null || props === void 0 ? void 0 : props.displayBos) !== null && _props_displayBos !== void 0 ? _props_displayBos : [];
|
|
237
241
|
};
|
|
238
242
|
export var FieldFilterConditions = function FieldFilterConditions(props) {
|
|
239
243
|
"use strict";
|
|
240
244
|
var _this = this;
|
|
241
245
|
_classCallCheck(this, FieldFilterConditions);
|
|
242
246
|
this.type = "conditions";
|
|
243
|
-
var
|
|
244
|
-
this.id = (
|
|
245
|
-
var
|
|
246
|
-
this.ruleId = (
|
|
247
|
-
var
|
|
248
|
-
this.level = (
|
|
249
|
-
var
|
|
250
|
-
this.value = (
|
|
247
|
+
var _props_id;
|
|
248
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
249
|
+
var _props_ruleId;
|
|
250
|
+
this.ruleId = (_props_ruleId = props === null || props === void 0 ? void 0 : props.ruleId) !== null && _props_ruleId !== void 0 ? _props_ruleId : new Date().valueOf();
|
|
251
|
+
var _props_level;
|
|
252
|
+
this.level = (_props_level = props === null || props === void 0 ? void 0 : props.level) !== null && _props_level !== void 0 ? _props_level : 0;
|
|
253
|
+
var _props_value;
|
|
254
|
+
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : "and";
|
|
251
255
|
this.children = [];
|
|
252
256
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.children)) {
|
|
253
257
|
props === null || props === void 0 ? void 0 : props.children.map(function(item) {
|
|
254
258
|
if (item.children !== undefined) {
|
|
255
|
-
var
|
|
259
|
+
var _this_children;
|
|
256
260
|
var filter = new FieldFilterConditions(item);
|
|
257
|
-
(
|
|
261
|
+
(_this_children = _this.children) === null || _this_children === void 0 ? void 0 : _this_children.push(filter);
|
|
258
262
|
} else {
|
|
259
|
-
var
|
|
263
|
+
var _this_children1;
|
|
260
264
|
var filter1 = new FieldFilterCondition(item);
|
|
261
|
-
(
|
|
265
|
+
(_this_children1 = _this.children) === null || _this_children1 === void 0 ? void 0 : _this_children1.push(filter1);
|
|
262
266
|
}
|
|
263
267
|
});
|
|
264
268
|
}
|
|
@@ -267,132 +271,138 @@ export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
|
267
271
|
"use strict";
|
|
268
272
|
_classCallCheck(this, FieldFilterCondition);
|
|
269
273
|
this.type = "condition";
|
|
270
|
-
var
|
|
271
|
-
this.id = (
|
|
272
|
-
var
|
|
273
|
-
this.ruleId = (
|
|
274
|
-
var
|
|
275
|
-
this.symbol = (
|
|
276
|
-
var
|
|
277
|
-
this.checked = (
|
|
278
|
-
var
|
|
279
|
-
this.describe = (
|
|
274
|
+
var _props_id;
|
|
275
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
276
|
+
var _props_ruleId;
|
|
277
|
+
this.ruleId = (_props_ruleId = props === null || props === void 0 ? void 0 : props.ruleId) !== null && _props_ruleId !== void 0 ? _props_ruleId : new Date().valueOf();
|
|
278
|
+
var _props_symbol;
|
|
279
|
+
this.symbol = (_props_symbol = props === null || props === void 0 ? void 0 : props.symbol) !== null && _props_symbol !== void 0 ? _props_symbol : "";
|
|
280
|
+
var _props_checked;
|
|
281
|
+
this.checked = (_props_checked = props === null || props === void 0 ? void 0 : props.checked) !== null && _props_checked !== void 0 ? _props_checked : false;
|
|
282
|
+
var _props_describe;
|
|
283
|
+
this.describe = (_props_describe = props === null || props === void 0 ? void 0 : props.describe) !== null && _props_describe !== void 0 ? _props_describe : "";
|
|
280
284
|
this.leftVariableBo = new LeftVariable(props === null || props === void 0 ? void 0 : props.leftVariableBo);
|
|
281
285
|
this.rightVariableBo = new RightVariable(props === null || props === void 0 ? void 0 : props.rightVariableBo);
|
|
282
286
|
};
|
|
283
|
-
|
|
287
|
+
/**
|
|
288
|
+
* 数据填充项
|
|
289
|
+
* @public
|
|
290
|
+
*/ export var MultistageFillingItem = function MultistageFillingItem(props) {
|
|
284
291
|
"use strict";
|
|
285
292
|
_classCallCheck(this, MultistageFillingItem);
|
|
286
|
-
var
|
|
287
|
-
this.controlId = (
|
|
288
|
-
var
|
|
289
|
-
this.fieldCode = (
|
|
290
|
-
var
|
|
291
|
-
this.fieldType = (
|
|
292
|
-
var
|
|
293
|
-
this.propName = (
|
|
293
|
+
var _props_controlId;
|
|
294
|
+
this.controlId = (_props_controlId = props === null || props === void 0 ? void 0 : props.controlId) !== null && _props_controlId !== void 0 ? _props_controlId : "";
|
|
295
|
+
var _props_fieldCode;
|
|
296
|
+
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
297
|
+
var _props_fieldType;
|
|
298
|
+
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : "";
|
|
299
|
+
var _props_propName;
|
|
300
|
+
this.propName = (_props_propName = props === null || props === void 0 ? void 0 : props.propName) !== null && _props_propName !== void 0 ? _props_propName : "";
|
|
294
301
|
};
|
|
295
302
|
export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
296
303
|
"use strict";
|
|
297
304
|
_classCallCheck(this, DisplayBoListItem);
|
|
298
|
-
var
|
|
299
|
-
this.type = (
|
|
300
|
-
var
|
|
301
|
-
this.value = (
|
|
305
|
+
var _props_type;
|
|
306
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "FIELD";
|
|
307
|
+
var _props_value;
|
|
308
|
+
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : "";
|
|
302
309
|
this.fieldType = props === null || props === void 0 ? void 0 : props.fieldType;
|
|
303
310
|
};
|
|
304
311
|
export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
305
312
|
"use strict";
|
|
306
313
|
_classCallCheck(this, DataSourceOrderItem);
|
|
307
|
-
var
|
|
308
|
-
this.columnName = (
|
|
309
|
-
var
|
|
310
|
-
this.desc = (
|
|
314
|
+
var _props_columnName;
|
|
315
|
+
this.columnName = (_props_columnName = props.columnName) !== null && _props_columnName !== void 0 ? _props_columnName : "";
|
|
316
|
+
var _props_desc;
|
|
317
|
+
this.desc = (_props_desc = props.desc) !== null && _props_desc !== void 0 ? _props_desc : false;
|
|
311
318
|
};
|
|
312
319
|
export var DataSourceDataSetValue = function DataSourceDataSetValue(props) {
|
|
313
320
|
"use strict";
|
|
314
321
|
_classCallCheck(this, DataSourceDataSetValue);
|
|
315
|
-
var
|
|
316
|
-
this.code = (
|
|
317
|
-
var
|
|
318
|
-
this.value = (
|
|
319
|
-
var
|
|
320
|
-
this.field_type = (
|
|
322
|
+
var _props_code;
|
|
323
|
+
this.code = (_props_code = props.code) !== null && _props_code !== void 0 ? _props_code : "";
|
|
324
|
+
var _props_value;
|
|
325
|
+
this.value = (_props_value = props.value) !== null && _props_value !== void 0 ? _props_value : "";
|
|
326
|
+
var _props_field_type;
|
|
327
|
+
this.field_type = (_props_field_type = props.field_type) !== null && _props_field_type !== void 0 ? _props_field_type : FieldTypes.ANY;
|
|
321
328
|
};
|
|
322
329
|
export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
323
330
|
"use strict";
|
|
324
331
|
_classCallCheck(this, DataSourceParamItem);
|
|
325
|
-
var
|
|
326
|
-
var
|
|
332
|
+
var _props_orders, _props_dataSet;
|
|
333
|
+
var _props_id;
|
|
327
334
|
//字段ID,不可以当作随机数生成唯一编号
|
|
328
|
-
this.id = (
|
|
329
|
-
var
|
|
330
|
-
this.limit = (
|
|
331
|
-
var
|
|
332
|
-
this.formKey = (
|
|
333
|
-
var
|
|
334
|
-
this.orders = (
|
|
335
|
+
this.id = (_props_id = props.id) !== null && _props_id !== void 0 ? _props_id : "";
|
|
336
|
+
var _props_limit;
|
|
337
|
+
this.limit = (_props_limit = props.limit) !== null && _props_limit !== void 0 ? _props_limit : 20;
|
|
338
|
+
var _props_formKey;
|
|
339
|
+
this.formKey = (_props_formKey = props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
340
|
+
var _props_orders_map;
|
|
341
|
+
this.orders = (_props_orders_map = (_props_orders = props.orders) === null || _props_orders === void 0 ? void 0 : _props_orders.map(function(item) {
|
|
335
342
|
return new DataSourceOrderItem(item);
|
|
336
|
-
})) !== null &&
|
|
337
|
-
var
|
|
338
|
-
this.dataSet = (
|
|
343
|
+
})) !== null && _props_orders_map !== void 0 ? _props_orders_map : [];
|
|
344
|
+
var _props_dataSet_map;
|
|
345
|
+
this.dataSet = (_props_dataSet_map = (_props_dataSet = props.dataSet) === null || _props_dataSet === void 0 ? void 0 : _props_dataSet.map(function(item) {
|
|
339
346
|
return new DataSourceDataSetValue(item);
|
|
340
|
-
})) !== null &&
|
|
347
|
+
})) !== null && _props_dataSet_map !== void 0 ? _props_dataSet_map : [];
|
|
341
348
|
};
|
|
342
349
|
/**
|
|
343
350
|
* 给filters和orders赋值
|
|
344
351
|
* */ function callFiltersAndOrders(props) {
|
|
345
|
-
var
|
|
346
|
-
var
|
|
347
|
-
this.filters = (
|
|
352
|
+
var _props_filters;
|
|
353
|
+
var _props_filters_map;
|
|
354
|
+
this.filters = (_props_filters_map = props === null || props === void 0 ? void 0 : (_props_filters = props.filters) === null || _props_filters === void 0 ? void 0 : _props_filters.map(function(item) {
|
|
348
355
|
if (item.children !== undefined) {
|
|
349
356
|
return new FieldFilterConditions(item);
|
|
350
357
|
}
|
|
351
358
|
return new FieldFilterCondition(item);
|
|
352
|
-
})) !== null &&
|
|
359
|
+
})) !== null && _props_filters_map !== void 0 ? _props_filters_map : [];
|
|
353
360
|
if (_instanceof(this, DataSourceBind) || _instanceof(this, FillPayloadBind)) {
|
|
354
|
-
var
|
|
355
|
-
var
|
|
356
|
-
this.orders = (
|
|
361
|
+
var _props_orders;
|
|
362
|
+
var _props_orders_map;
|
|
363
|
+
this.orders = (_props_orders_map = props === null || props === void 0 ? void 0 : (_props_orders = props.orders) === null || _props_orders === void 0 ? void 0 : _props_orders.map(function(item) {
|
|
357
364
|
return new DataSourceOrderItem(item);
|
|
358
|
-
})) !== null &&
|
|
365
|
+
})) !== null && _props_orders_map !== void 0 ? _props_orders_map : [];
|
|
359
366
|
}
|
|
360
367
|
}
|
|
361
|
-
|
|
368
|
+
/**
|
|
369
|
+
* 数据源绑定配置
|
|
370
|
+
* @public
|
|
371
|
+
*/ export var DataSourceBind = function DataSourceBind(props) {
|
|
362
372
|
"use strict";
|
|
363
373
|
var _this = this;
|
|
364
374
|
_classCallCheck(this, DataSourceBind);
|
|
365
|
-
var
|
|
366
|
-
this.dataCode = (
|
|
367
|
-
var
|
|
368
|
-
this.appId = (
|
|
369
|
-
var
|
|
370
|
-
this.valueFieldCode = (
|
|
375
|
+
var _props_dataCode;
|
|
376
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
377
|
+
var _props_appId;
|
|
378
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
379
|
+
var _props_valueFieldCode;
|
|
380
|
+
this.valueFieldCode = (_props_valueFieldCode = props === null || props === void 0 ? void 0 : props.valueFieldCode) !== null && _props_valueFieldCode !== void 0 ? _props_valueFieldCode : "";
|
|
371
381
|
this.displayBoList = [];
|
|
372
382
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.displayBoList)) {
|
|
373
383
|
props === null || props === void 0 ? void 0 : props.displayBoList.map(function(item) {
|
|
374
|
-
var
|
|
375
|
-
(
|
|
384
|
+
var _this_displayBoList;
|
|
385
|
+
(_this_displayBoList = _this.displayBoList) === null || _this_displayBoList === void 0 ? void 0 : _this_displayBoList.push(new DisplayBoListItem(item));
|
|
376
386
|
});
|
|
377
387
|
}
|
|
378
|
-
var
|
|
379
|
-
this.showOrder = (
|
|
380
|
-
var
|
|
381
|
-
this.svcCode = (
|
|
388
|
+
var _props_showOrder;
|
|
389
|
+
this.showOrder = (_props_showOrder = props === null || props === void 0 ? void 0 : props.showOrder) !== null && _props_showOrder !== void 0 ? _props_showOrder : true;
|
|
390
|
+
var _props_svcCode;
|
|
391
|
+
this.svcCode = (_props_svcCode = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _props_svcCode !== void 0 ? _props_svcCode : "";
|
|
382
392
|
callFiltersAndOrders.call(this, props);
|
|
383
393
|
};
|
|
384
394
|
export var CustomAttributeItem = function CustomAttributeItem(props) {
|
|
385
395
|
"use strict";
|
|
386
396
|
_classCallCheck(this, CustomAttributeItem);
|
|
387
|
-
var
|
|
388
|
-
var
|
|
389
|
-
this.name = (
|
|
390
|
-
var
|
|
391
|
-
this.key = (
|
|
392
|
-
var
|
|
393
|
-
this.value = (
|
|
397
|
+
var _props_value;
|
|
398
|
+
var _props_name;
|
|
399
|
+
this.name = (_props_name = props === null || props === void 0 ? void 0 : props.name) !== null && _props_name !== void 0 ? _props_name : "";
|
|
400
|
+
var _props_key;
|
|
401
|
+
this.key = (_props_key = props === null || props === void 0 ? void 0 : props.key) !== null && _props_key !== void 0 ? _props_key : "";
|
|
402
|
+
var _props_value_map;
|
|
403
|
+
this.value = (_props_value_map = props === null || props === void 0 ? void 0 : (_props_value = props.value) === null || _props_value === void 0 ? void 0 : _props_value.map(function(item) {
|
|
394
404
|
return new DisplayBoListItem(item);
|
|
395
|
-
})) !== null &&
|
|
405
|
+
})) !== null && _props_value_map !== void 0 ? _props_value_map : [];
|
|
396
406
|
};
|
|
397
407
|
export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
398
408
|
"use strict";
|
|
@@ -401,12 +411,12 @@ export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
401
411
|
function SuperDataSourceBind(props) {
|
|
402
412
|
_classCallCheck(this, SuperDataSourceBind);
|
|
403
413
|
var _this;
|
|
404
|
-
var
|
|
414
|
+
var _props_attributes;
|
|
405
415
|
_this = _super.call(this, props);
|
|
406
|
-
var
|
|
407
|
-
_this.attributes = (
|
|
416
|
+
var _props_attributes_map;
|
|
417
|
+
_this.attributes = (_props_attributes_map = props === null || props === void 0 ? void 0 : (_props_attributes = props.attributes) === null || _props_attributes === void 0 ? void 0 : _props_attributes.map(function(item) {
|
|
408
418
|
return new CustomAttributeItem(item);
|
|
409
|
-
})) !== null &&
|
|
419
|
+
})) !== null && _props_attributes_map !== void 0 ? _props_attributes_map : [];
|
|
410
420
|
return _this;
|
|
411
421
|
}
|
|
412
422
|
return SuperDataSourceBind;
|
|
@@ -427,18 +437,20 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
427
437
|
var FillBind = function FillBind(props) {
|
|
428
438
|
"use strict";
|
|
429
439
|
_classCallCheck(this, FillBind);
|
|
430
|
-
var
|
|
431
|
-
var
|
|
432
|
-
this.dataCode = (
|
|
433
|
-
var
|
|
434
|
-
this.appId = (
|
|
435
|
-
var
|
|
436
|
-
this.fillList = (
|
|
440
|
+
var _props_fillList;
|
|
441
|
+
var _props_dataCode;
|
|
442
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
443
|
+
var _props_appId;
|
|
444
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
445
|
+
var _props_fillList_map;
|
|
446
|
+
this.fillList = (_props_fillList_map = props === null || props === void 0 ? void 0 : (_props_fillList = props.fillList) === null || _props_fillList === void 0 ? void 0 : _props_fillList.map(function(item) {
|
|
437
447
|
return new MultistageFillingItem(item);
|
|
438
|
-
})) !== null &&
|
|
448
|
+
})) !== null && _props_fillList_map !== void 0 ? _props_fillList_map : [];
|
|
439
449
|
};
|
|
440
|
-
|
|
450
|
+
/**
|
|
451
|
+
* FillPayloadBind 填充配置
|
|
441
452
|
* 填充的配置和需要携带的数据
|
|
453
|
+
* @public
|
|
442
454
|
* */ export var FillPayloadBind = /*#__PURE__*/ function(FillBind) {
|
|
443
455
|
"use strict";
|
|
444
456
|
_inherits(FillPayloadBind, FillBind);
|
|
@@ -452,9 +464,10 @@ var FillBind = function FillBind(props) {
|
|
|
452
464
|
}
|
|
453
465
|
return FillPayloadBind;
|
|
454
466
|
}(FillBind);
|
|
455
|
-
|
|
456
|
-
* 回填需要的配置和参数
|
|
457
|
-
*
|
|
467
|
+
/**
|
|
468
|
+
* FillBackBind 回填需要的配置和参数
|
|
469
|
+
* @public
|
|
470
|
+
*/ export var FillBackBind = /*#__PURE__*/ function(FillBind) {
|
|
458
471
|
"use strict";
|
|
459
472
|
_inherits(FillBackBind, FillBind);
|
|
460
473
|
var _super = _createSuper(FillBackBind);
|
|
@@ -462,10 +475,10 @@ var FillBind = function FillBind(props) {
|
|
|
462
475
|
_classCallCheck(this, FillBackBind);
|
|
463
476
|
var _this;
|
|
464
477
|
_this = _super.call(this, props);
|
|
465
|
-
var
|
|
466
|
-
_this.mode = (
|
|
467
|
-
var
|
|
468
|
-
_this.multiple = (
|
|
478
|
+
var _props_mode;
|
|
479
|
+
_this.mode = (_props_mode = props === null || props === void 0 ? void 0 : props.mode) !== null && _props_mode !== void 0 ? _props_mode : "current";
|
|
480
|
+
var _props_multiple;
|
|
481
|
+
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
469
482
|
return _this;
|
|
470
483
|
}
|
|
471
484
|
return FillBackBind;
|
|
@@ -473,33 +486,35 @@ var FillBind = function FillBind(props) {
|
|
|
473
486
|
export var Language = function Language(props) {
|
|
474
487
|
"use strict";
|
|
475
488
|
_classCallCheck(this, Language);
|
|
476
|
-
var
|
|
477
|
-
this.zh = (
|
|
478
|
-
var
|
|
479
|
-
this.en = (
|
|
480
|
-
var
|
|
481
|
-
this.ja = (
|
|
489
|
+
var _props_zh;
|
|
490
|
+
this.zh = (_props_zh = props === null || props === void 0 ? void 0 : props.zh) !== null && _props_zh !== void 0 ? _props_zh : "";
|
|
491
|
+
var _props_en;
|
|
492
|
+
this.en = (_props_en = props === null || props === void 0 ? void 0 : props.en) !== null && _props_en !== void 0 ? _props_en : "";
|
|
493
|
+
var _props_ja;
|
|
494
|
+
this.ja = (_props_ja = props === null || props === void 0 ? void 0 : props.ja) !== null && _props_ja !== void 0 ? _props_ja : "";
|
|
482
495
|
};
|
|
483
496
|
export var RegularRules = function RegularRules(props) {
|
|
484
497
|
"use strict";
|
|
485
498
|
_classCallCheck(this, RegularRules);
|
|
486
|
-
var
|
|
487
|
-
this.stencilName = (
|
|
488
|
-
var
|
|
489
|
-
this.expression = (
|
|
490
|
-
var
|
|
491
|
-
this.errMessage = (
|
|
499
|
+
var _props_stencilName;
|
|
500
|
+
this.stencilName = (_props_stencilName = props === null || props === void 0 ? void 0 : props.stencilName) !== null && _props_stencilName !== void 0 ? _props_stencilName : "";
|
|
501
|
+
var _props_expression;
|
|
502
|
+
this.expression = (_props_expression = props === null || props === void 0 ? void 0 : props.expression) !== null && _props_expression !== void 0 ? _props_expression : "";
|
|
503
|
+
var _props_errMessage;
|
|
504
|
+
this.errMessage = (_props_errMessage = props === null || props === void 0 ? void 0 : props.errMessage) !== null && _props_errMessage !== void 0 ? _props_errMessage : "";
|
|
492
505
|
};
|
|
493
|
-
|
|
494
|
-
|
|
506
|
+
/**
|
|
507
|
+
* 选项设置-自定义选项
|
|
508
|
+
* @public
|
|
509
|
+
*/ export var OptionSetting = function OptionSetting(props) {
|
|
495
510
|
"use strict";
|
|
496
511
|
_classCallCheck(this, OptionSetting);
|
|
497
|
-
var
|
|
498
|
-
this.id = (
|
|
499
|
-
var
|
|
500
|
-
this.label = (
|
|
501
|
-
var
|
|
502
|
-
this.value = (
|
|
512
|
+
var _props_id;
|
|
513
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
514
|
+
var _props_label;
|
|
515
|
+
this.label = (_props_label = props === null || props === void 0 ? void 0 : props.label) !== null && _props_label !== void 0 ? _props_label : "";
|
|
516
|
+
var _props_value;
|
|
517
|
+
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : this.label;
|
|
503
518
|
};
|
|
504
519
|
export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
505
520
|
"use strict";
|
|
@@ -509,25 +524,25 @@ export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
509
524
|
_classCallCheck(this, ImageOptionSetting);
|
|
510
525
|
var _this;
|
|
511
526
|
_this = _super.call(this, props);
|
|
512
|
-
var
|
|
513
|
-
_this.image = (
|
|
514
|
-
var
|
|
515
|
-
_this.type = (
|
|
527
|
+
var _props_image;
|
|
528
|
+
_this.image = (_props_image = props === null || props === void 0 ? void 0 : props.image) !== null && _props_image !== void 0 ? _props_image : "";
|
|
529
|
+
var _props_type;
|
|
530
|
+
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "src";
|
|
516
531
|
return _this;
|
|
517
532
|
}
|
|
518
533
|
return ImageOptionSetting;
|
|
519
534
|
}(OptionSetting);
|
|
520
535
|
export function initOptions(options) {
|
|
521
|
-
var
|
|
522
|
-
return (
|
|
536
|
+
var _options_map;
|
|
537
|
+
return (_options_map = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
523
538
|
return new OptionSetting(item);
|
|
524
|
-
})) !== null &&
|
|
539
|
+
})) !== null && _options_map !== void 0 ? _options_map : [];
|
|
525
540
|
}
|
|
526
541
|
export function initImageOptions(options) {
|
|
527
|
-
var
|
|
528
|
-
return (
|
|
542
|
+
var _options_map;
|
|
543
|
+
return (_options_map = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
529
544
|
return new ImageOptionSetting(item);
|
|
530
|
-
})) !== null &&
|
|
545
|
+
})) !== null && _options_map !== void 0 ? _options_map : [];
|
|
531
546
|
}
|
|
532
547
|
export var ObjectDataBind = function ObjectDataBind() {
|
|
533
548
|
"use strict";
|
|
@@ -550,10 +565,10 @@ export var AmountDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
550
565
|
export var AmountValue = function AmountValue(props) {
|
|
551
566
|
"use strict";
|
|
552
567
|
_classCallCheck(this, AmountValue);
|
|
553
|
-
var
|
|
554
|
-
this.amount = (
|
|
555
|
-
var
|
|
556
|
-
this.currency = (
|
|
568
|
+
var _props_amount;
|
|
569
|
+
this.amount = (_props_amount = props === null || props === void 0 ? void 0 : props.amount) !== null && _props_amount !== void 0 ? _props_amount : "";
|
|
570
|
+
var _props_currency;
|
|
571
|
+
this.currency = (_props_currency = props === null || props === void 0 ? void 0 : props.currency) !== null && _props_currency !== void 0 ? _props_currency : AMOUNT_TYPE.CNY;
|
|
557
572
|
};
|
|
558
573
|
export var RangeDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
559
574
|
"use strict";
|
|
@@ -572,26 +587,26 @@ export var RangeDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
572
587
|
export var RangeDateValue = function RangeDateValue(props) {
|
|
573
588
|
"use strict";
|
|
574
589
|
_classCallCheck(this, RangeDateValue);
|
|
575
|
-
var
|
|
576
|
-
this.min = (
|
|
577
|
-
var
|
|
578
|
-
this.max = (
|
|
590
|
+
var _props_min;
|
|
591
|
+
this.min = (_props_min = props === null || props === void 0 ? void 0 : props.min) !== null && _props_min !== void 0 ? _props_min : "";
|
|
592
|
+
var _props_max;
|
|
593
|
+
this.max = (_props_max = props === null || props === void 0 ? void 0 : props.max) !== null && _props_max !== void 0 ? _props_max : "";
|
|
579
594
|
};
|
|
580
595
|
export var AddressValue = function AddressValue(props) {
|
|
581
596
|
"use strict";
|
|
582
597
|
_classCallCheck(this, AddressValue);
|
|
583
|
-
var
|
|
584
|
-
this.city = (
|
|
585
|
-
var
|
|
586
|
-
this.cityDisplay = (
|
|
587
|
-
var
|
|
588
|
-
this.district = (
|
|
589
|
-
var
|
|
590
|
-
this.districtDisplay = (
|
|
591
|
-
var
|
|
592
|
-
this.province = (
|
|
593
|
-
var
|
|
594
|
-
this.provinceDisplay = (
|
|
598
|
+
var _props_city;
|
|
599
|
+
this.city = (_props_city = props === null || props === void 0 ? void 0 : props.city) !== null && _props_city !== void 0 ? _props_city : "";
|
|
600
|
+
var _props_cityDisplay;
|
|
601
|
+
this.cityDisplay = (_props_cityDisplay = props === null || props === void 0 ? void 0 : props.cityDisplay) !== null && _props_cityDisplay !== void 0 ? _props_cityDisplay : "";
|
|
602
|
+
var _props_district;
|
|
603
|
+
this.district = (_props_district = props === null || props === void 0 ? void 0 : props.district) !== null && _props_district !== void 0 ? _props_district : "";
|
|
604
|
+
var _props_districtDisplay;
|
|
605
|
+
this.districtDisplay = (_props_districtDisplay = props === null || props === void 0 ? void 0 : props.districtDisplay) !== null && _props_districtDisplay !== void 0 ? _props_districtDisplay : "";
|
|
606
|
+
var _props_province;
|
|
607
|
+
this.province = (_props_province = props === null || props === void 0 ? void 0 : props.province) !== null && _props_province !== void 0 ? _props_province : "";
|
|
608
|
+
var _props_provinceDisplay;
|
|
609
|
+
this.provinceDisplay = (_props_provinceDisplay = props === null || props === void 0 ? void 0 : props.provinceDisplay) !== null && _props_provinceDisplay !== void 0 ? _props_provinceDisplay : "";
|
|
595
610
|
};
|
|
596
611
|
export var CalcDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
597
612
|
"use strict";
|
|
@@ -610,10 +625,10 @@ export var CalcDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
610
625
|
export var CalcValue = function CalcValue(props) {
|
|
611
626
|
"use strict";
|
|
612
627
|
_classCallCheck(this, CalcValue);
|
|
613
|
-
var
|
|
614
|
-
this.result = (
|
|
615
|
-
var
|
|
616
|
-
this.unit = (
|
|
628
|
+
var _props_result;
|
|
629
|
+
this.result = (_props_result = props === null || props === void 0 ? void 0 : props.result) !== null && _props_result !== void 0 ? _props_result : 0;
|
|
630
|
+
var _props_unit;
|
|
631
|
+
this.unit = (_props_unit = props === null || props === void 0 ? void 0 : props.unit) !== null && _props_unit !== void 0 ? _props_unit : "";
|
|
617
632
|
};
|
|
618
633
|
export var AMOUNT_TYPE;
|
|
619
634
|
(function(AMOUNT_TYPE) {
|
|
@@ -682,34 +697,37 @@ export var PAGE_STATUS;
|
|
|
682
697
|
PAGE_STATUS[PAGE_STATUS["EDITABLE"] = 2] = "EDITABLE";
|
|
683
698
|
PAGE_STATUS[PAGE_STATUS["PRINT"] = 5] = "PRINT";
|
|
684
699
|
})(PAGE_STATUS || (PAGE_STATUS = {}));
|
|
685
|
-
|
|
700
|
+
/**
|
|
701
|
+
* 操作按钮
|
|
702
|
+
* @public
|
|
703
|
+
*/ export var OperationItem = function OperationItem(props) {
|
|
686
704
|
"use strict";
|
|
687
705
|
_classCallCheck(this, OperationItem);
|
|
688
|
-
var
|
|
689
|
-
this.isShow = (
|
|
690
|
-
var
|
|
691
|
-
this.content = (
|
|
692
|
-
var
|
|
693
|
-
this.formKey = (
|
|
694
|
-
var
|
|
695
|
-
this.openType = (
|
|
696
|
-
var
|
|
697
|
-
this.type = (
|
|
698
|
-
var
|
|
699
|
-
this.priorityProcess = (
|
|
706
|
+
var _props_isShow;
|
|
707
|
+
this.isShow = (_props_isShow = props === null || props === void 0 ? void 0 : props.isShow) !== null && _props_isShow !== void 0 ? _props_isShow : true;
|
|
708
|
+
var _props_content;
|
|
709
|
+
this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : "";
|
|
710
|
+
var _props_formKey;
|
|
711
|
+
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
712
|
+
var _props_openType;
|
|
713
|
+
this.openType = (_props_openType = props === null || props === void 0 ? void 0 : props.openType) !== null && _props_openType !== void 0 ? _props_openType : "modal";
|
|
714
|
+
var _props_type;
|
|
715
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "";
|
|
716
|
+
var _props_priorityProcess;
|
|
717
|
+
this.priorityProcess = (_props_priorityProcess = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _props_priorityProcess !== void 0 ? _props_priorityProcess : false;
|
|
700
718
|
};
|
|
701
719
|
export var ViewOperationItem = function ViewOperationItem(props) {
|
|
702
720
|
"use strict";
|
|
703
721
|
_classCallCheck(this, ViewOperationItem);
|
|
704
|
-
var
|
|
705
|
-
var
|
|
706
|
-
this.id = (
|
|
707
|
-
var
|
|
708
|
-
this.title = (
|
|
709
|
-
var
|
|
710
|
-
this.headers = (
|
|
722
|
+
var _props_headers;
|
|
723
|
+
var _props_id;
|
|
724
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
725
|
+
var _props_title;
|
|
726
|
+
this.title = (_props_title = props === null || props === void 0 ? void 0 : props.title) !== null && _props_title !== void 0 ? _props_title : "";
|
|
727
|
+
var _props_headers_map;
|
|
728
|
+
this.headers = (_props_headers_map = props === null || props === void 0 ? void 0 : (_props_headers = props.headers) === null || _props_headers === void 0 ? void 0 : _props_headers.map(function(item) {
|
|
711
729
|
return new ListBindHeaderItem(item);
|
|
712
|
-
})) !== null &&
|
|
730
|
+
})) !== null && _props_headers_map !== void 0 ? _props_headers_map : [];
|
|
713
731
|
callFiltersAndOrders.call(this, props);
|
|
714
732
|
};
|
|
715
733
|
/**
|
|
@@ -717,20 +735,20 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
717
735
|
*/ export var CustomPermissionItem = function CustomPermissionItem(props) {
|
|
718
736
|
"use strict";
|
|
719
737
|
_classCallCheck(this, CustomPermissionItem);
|
|
720
|
-
var
|
|
721
|
-
this.key = (
|
|
722
|
-
var
|
|
723
|
-
this.caption = (
|
|
738
|
+
var _props_key;
|
|
739
|
+
this.key = (_props_key = props.key) !== null && _props_key !== void 0 ? _props_key : genNonDuplicateId(8);
|
|
740
|
+
var _props_caption;
|
|
741
|
+
this.caption = (_props_caption = props.caption) !== null && _props_caption !== void 0 ? _props_caption : "";
|
|
724
742
|
};
|
|
725
743
|
export var BaseStyle = function BaseStyle(props) {
|
|
726
744
|
"use strict";
|
|
727
745
|
_classCallCheck(this, BaseStyle);
|
|
728
|
-
var
|
|
729
|
-
this.width = (
|
|
730
|
-
var
|
|
731
|
-
this.height = (
|
|
732
|
-
var
|
|
733
|
-
this.widthConfig = (
|
|
734
|
-
var
|
|
735
|
-
this.heightConfig = (
|
|
746
|
+
var _props_width;
|
|
747
|
+
this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : "";
|
|
748
|
+
var _props_height;
|
|
749
|
+
this.height = (_props_height = props === null || props === void 0 ? void 0 : props.height) !== null && _props_height !== void 0 ? _props_height : "";
|
|
750
|
+
var _props_widthConfig;
|
|
751
|
+
this.widthConfig = (_props_widthConfig = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && _props_widthConfig !== void 0 ? _props_widthConfig : "fill";
|
|
752
|
+
var _props_heightConfig;
|
|
753
|
+
this.heightConfig = (_props_heightConfig = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && _props_heightConfig !== void 0 ? _props_heightConfig : "fill";
|
|
736
754
|
};
|