@byteluck-fe/model-driven-core 2.7.0-beta → 2.7.0-beta.4
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/common/BaseControl/designer.js +5 -6
- package/dist/esm/common/BaseControl/property.js +3 -4
- package/dist/esm/common/BaseControl/runtime.js +6 -7
- package/dist/esm/common/ColumnControl/designer.js +1 -2
- package/dist/esm/common/ColumnControl/property.js +10 -11
- package/dist/esm/common/ColumnControl/runtime.js +1 -2
- package/dist/esm/common/FormControl/designer.js +1 -2
- package/dist/esm/common/FormControl/property.js +11 -12
- package/dist/esm/common/FormControl/runtime.js +1 -2
- package/dist/esm/common/LayoutControl/designer.js +2 -3
- package/dist/esm/common/LayoutControl/runtime.js +2 -3
- package/dist/esm/common/ListControl/designer.js +1 -2
- package/dist/esm/common/ListControl/property.js +1 -2
- package/dist/esm/common/ListControl/runtime.js +2 -3
- package/dist/esm/common/SearchViewControl/designer.js +1 -2
- package/dist/esm/common/SearchViewControl/property.js +1 -2
- package/dist/esm/common/SearchViewControl/runtime.js +1 -2
- package/dist/esm/common/WrapControl/designer.js +1 -2
- package/dist/esm/common/WrapControl/runtime.js +1 -2
- package/dist/esm/framework/index.js +145 -183
- package/dist/index.umd.js +1 -1
- package/package.json +3 -3
|
@@ -97,7 +97,6 @@ export * from "./RegisterControls";
|
|
|
97
97
|
*/ export var DataBind = function DataBind(props) {
|
|
98
98
|
"use strict";
|
|
99
99
|
_class_call_check(this, DataBind);
|
|
100
|
-
var _props, _props1, _props2;
|
|
101
100
|
/**
|
|
102
101
|
* 数据模型编码
|
|
103
102
|
* @defaultValue ''
|
|
@@ -114,24 +113,23 @@ export * from "./RegisterControls";
|
|
|
114
113
|
* @public
|
|
115
114
|
*/ _define_property(this, "fieldType", void 0);
|
|
116
115
|
var _props_dataCode;
|
|
117
|
-
this.dataCode = (_props_dataCode =
|
|
116
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
118
117
|
var _props_fieldCode;
|
|
119
|
-
this.fieldCode = (_props_fieldCode =
|
|
118
|
+
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
120
119
|
var _props_fieldType;
|
|
121
|
-
this.fieldType = (_props_fieldType =
|
|
120
|
+
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : "";
|
|
122
121
|
};
|
|
123
122
|
export var AutoWidth = function AutoWidth(props) {
|
|
124
123
|
"use strict";
|
|
125
124
|
_class_call_check(this, AutoWidth);
|
|
126
|
-
var _props, _props1, _props2;
|
|
127
125
|
_define_property(this, "minWidth", void 0);
|
|
128
126
|
_define_property(this, "maxWidth", void 0);
|
|
129
127
|
_define_property(this, "flex", void 0);
|
|
130
128
|
var _props_minWidth;
|
|
131
|
-
this.minWidth = (_props_minWidth =
|
|
132
|
-
this.maxWidth =
|
|
129
|
+
this.minWidth = (_props_minWidth = props === null || props === void 0 ? void 0 : props.minWidth) !== null && _props_minWidth !== void 0 ? _props_minWidth : 150;
|
|
130
|
+
this.maxWidth = props === null || props === void 0 ? void 0 : props.maxWidth;
|
|
133
131
|
var _props_flex;
|
|
134
|
-
this.flex = (_props_flex =
|
|
132
|
+
this.flex = (_props_flex = props === null || props === void 0 ? void 0 : props.flex) !== null && _props_flex !== void 0 ? _props_flex : 1;
|
|
135
133
|
};
|
|
136
134
|
export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
137
135
|
"use strict";
|
|
@@ -140,14 +138,13 @@ export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
|
140
138
|
function MetaWidth(props) {
|
|
141
139
|
_class_call_check(this, MetaWidth);
|
|
142
140
|
var _this;
|
|
143
|
-
var _props, _props1;
|
|
144
141
|
_this = _super.call(this, props);
|
|
145
142
|
_define_property(_assert_this_initialized(_this), "width", void 0);
|
|
146
143
|
_define_property(_assert_this_initialized(_this), "widthType", void 0);
|
|
147
144
|
var _props_width;
|
|
148
|
-
_this.width = (_props_width =
|
|
145
|
+
_this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : 240;
|
|
149
146
|
var _props_widthType;
|
|
150
|
-
_this.widthType = (_props_widthType =
|
|
147
|
+
_this.widthType = (_props_widthType = props === null || props === void 0 ? void 0 : props.widthType) !== null && _props_widthType !== void 0 ? _props_widthType : "auto";
|
|
151
148
|
return _this;
|
|
152
149
|
}
|
|
153
150
|
return MetaWidth;
|
|
@@ -155,11 +152,10 @@ export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
|
155
152
|
export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
156
153
|
"use strict";
|
|
157
154
|
_class_call_check(this, MetaAutoWidth);
|
|
158
|
-
var _props, _props1, _props2;
|
|
159
155
|
_define_property(this, "pc", void 0);
|
|
160
156
|
_define_property(this, "mobile", void 0);
|
|
161
|
-
this.pc = new MetaWidth(
|
|
162
|
-
this.mobile = (
|
|
157
|
+
this.pc = new MetaWidth(props === null || props === void 0 ? void 0 : props.pc);
|
|
158
|
+
this.mobile = (props === null || props === void 0 ? void 0 : props.mobile) ? new MetaWidth(props === null || props === void 0 ? void 0 : props.mobile) : new MetaWidth({
|
|
163
159
|
width: 130,
|
|
164
160
|
minWidth: 180
|
|
165
161
|
});
|
|
@@ -167,27 +163,25 @@ export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
|
167
163
|
export var DataStorageDoc = function DataStorageDoc(props) {
|
|
168
164
|
"use strict";
|
|
169
165
|
_class_call_check(this, DataStorageDoc);
|
|
170
|
-
var _props, _props1;
|
|
171
166
|
_define_property(this, "type", void 0);
|
|
172
167
|
_define_property(this, "customOptions", void 0);
|
|
173
168
|
var _props_type;
|
|
174
|
-
this.type = (_props_type =
|
|
169
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "firstThree";
|
|
175
170
|
var _props_customOptions;
|
|
176
|
-
this.customOptions = (_props_customOptions =
|
|
171
|
+
this.customOptions = (_props_customOptions = props === null || props === void 0 ? void 0 : props.customOptions) !== null && _props_customOptions !== void 0 ? _props_customOptions : [];
|
|
177
172
|
};
|
|
178
173
|
export var FormBind = function FormBind(props) {
|
|
179
174
|
"use strict";
|
|
180
175
|
_class_call_check(this, FormBind);
|
|
181
|
-
var _props, _props1, _props2;
|
|
182
176
|
_define_property(this, "dataCode", void 0);
|
|
183
177
|
_define_property(this, "formKey", void 0);
|
|
184
178
|
_define_property(this, "appId", void 0);
|
|
185
179
|
var _props_dataCode;
|
|
186
|
-
this.dataCode = (_props_dataCode =
|
|
180
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
187
181
|
var _props_formKey;
|
|
188
|
-
this.formKey = (_props_formKey =
|
|
182
|
+
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
189
183
|
var _props_appId;
|
|
190
|
-
this.appId = (_props_appId =
|
|
184
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
191
185
|
};
|
|
192
186
|
export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
193
187
|
"use strict";
|
|
@@ -196,11 +190,10 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
196
190
|
function FormSelectBind(props) {
|
|
197
191
|
_class_call_check(this, FormSelectBind);
|
|
198
192
|
var _this;
|
|
199
|
-
var _props;
|
|
200
193
|
_this = _super.call(this, props);
|
|
201
194
|
_define_property(_assert_this_initialized(_this), "primaryControlId", void 0);
|
|
202
195
|
var _props_primaryControlId;
|
|
203
|
-
_this.primaryControlId = (_props_primaryControlId =
|
|
196
|
+
_this.primaryControlId = (_props_primaryControlId = props === null || props === void 0 ? void 0 : props.primaryControlId) !== null && _props_primaryControlId !== void 0 ? _props_primaryControlId : "";
|
|
204
197
|
return _this;
|
|
205
198
|
}
|
|
206
199
|
return FormSelectBind;
|
|
@@ -211,20 +204,19 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
211
204
|
*/ var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
212
205
|
"use strict";
|
|
213
206
|
_class_call_check(this, ListBindHeaderItem);
|
|
214
|
-
var _props;
|
|
215
207
|
/**
|
|
216
208
|
* 字段
|
|
217
209
|
* @defaultValue ''
|
|
218
210
|
*/ _define_property(this, "fieldCode", void 0);
|
|
219
211
|
var _props_fieldCode;
|
|
220
|
-
this.fieldCode = (_props_fieldCode =
|
|
212
|
+
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
221
213
|
};
|
|
222
214
|
/**
|
|
223
215
|
* 列表绑定配置
|
|
224
216
|
*/ export var ListBind = function ListBind(props) {
|
|
225
217
|
"use strict";
|
|
226
218
|
_class_call_check(this, ListBind);
|
|
227
|
-
var
|
|
219
|
+
var _props_headers;
|
|
228
220
|
/**
|
|
229
221
|
* 应用ID
|
|
230
222
|
* @public
|
|
@@ -238,27 +230,26 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
238
230
|
* @public
|
|
239
231
|
*/ _define_property(this, "headers", void 0);
|
|
240
232
|
var _props_appId;
|
|
241
|
-
this.appId = (_props_appId =
|
|
233
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
242
234
|
var _props_formKey;
|
|
243
|
-
this.formKey = (_props_formKey =
|
|
235
|
+
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
244
236
|
var _props_headers_map;
|
|
245
|
-
this.headers = (_props_headers_map =
|
|
237
|
+
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) {
|
|
246
238
|
return new ListBindHeaderItem(item);
|
|
247
239
|
})) !== null && _props_headers_map !== void 0 ? _props_headers_map : [];
|
|
248
240
|
};
|
|
249
241
|
export var FieldBindItem = function FieldBindItem(props) {
|
|
250
242
|
"use strict";
|
|
251
243
|
_class_call_check(this, FieldBindItem);
|
|
252
|
-
var _props, _props1, _props2;
|
|
253
244
|
_define_property(this, "fieldName", void 0);
|
|
254
245
|
_define_property(this, "fieldCode", void 0);
|
|
255
246
|
_define_property(this, "fieldType", void 0);
|
|
256
247
|
var _props_fieldName;
|
|
257
|
-
this.fieldName = (_props_fieldName =
|
|
248
|
+
this.fieldName = (_props_fieldName = props === null || props === void 0 ? void 0 : props.fieldName) !== null && _props_fieldName !== void 0 ? _props_fieldName : "";
|
|
258
249
|
var _props_fieldCode;
|
|
259
|
-
this.fieldCode = (_props_fieldCode =
|
|
250
|
+
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
260
251
|
var _props_fieldType;
|
|
261
|
-
this.fieldType = (_props_fieldType =
|
|
252
|
+
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : FieldTypes.VARCHAR;
|
|
262
253
|
};
|
|
263
254
|
export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
264
255
|
"use strict";
|
|
@@ -267,20 +258,19 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
267
258
|
function SubListItem(props) {
|
|
268
259
|
_class_call_check(this, SubListItem);
|
|
269
260
|
var _this;
|
|
270
|
-
var _props, _props1, _props2, _props3;
|
|
271
261
|
_this = _super.call(this, props);
|
|
272
262
|
_define_property(_assert_this_initialized(_this), "title", void 0);
|
|
273
263
|
_define_property(_assert_this_initialized(_this), "svcCode", void 0);
|
|
274
264
|
_define_property(_assert_this_initialized(_this), "isOpenFilter", void 0);
|
|
275
265
|
_define_property(_assert_this_initialized(_this), "filters", void 0);
|
|
276
266
|
var _props_title;
|
|
277
|
-
_this.title = (_props_title =
|
|
267
|
+
_this.title = (_props_title = props === null || props === void 0 ? void 0 : props.title) !== null && _props_title !== void 0 ? _props_title : "";
|
|
278
268
|
var _props_svcCode;
|
|
279
|
-
_this.svcCode = (_props_svcCode =
|
|
269
|
+
_this.svcCode = (_props_svcCode = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _props_svcCode !== void 0 ? _props_svcCode : "";
|
|
280
270
|
var _props_isOpenFilter;
|
|
281
|
-
_this.isOpenFilter = (_props_isOpenFilter =
|
|
271
|
+
_this.isOpenFilter = (_props_isOpenFilter = props === null || props === void 0 ? void 0 : props.isOpenFilter) !== null && _props_isOpenFilter !== void 0 ? _props_isOpenFilter : false;
|
|
282
272
|
var _props_filters;
|
|
283
|
-
_this.filters = (_props_filters =
|
|
273
|
+
_this.filters = (_props_filters = props === null || props === void 0 ? void 0 : props.filters) !== null && _props_filters !== void 0 ? _props_filters : [];
|
|
284
274
|
return _this;
|
|
285
275
|
}
|
|
286
276
|
return SubListItem;
|
|
@@ -288,43 +278,41 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
288
278
|
export var SubListPageConfig = function SubListPageConfig(props) {
|
|
289
279
|
"use strict";
|
|
290
280
|
_class_call_check(this, SubListPageConfig);
|
|
291
|
-
var
|
|
281
|
+
var _props_displayFields, _props_sublists;
|
|
292
282
|
_define_property(this, "type", "sublist-page");
|
|
293
283
|
_define_property(this, "formBind", void 0);
|
|
294
284
|
_define_property(this, "displayFields", void 0);
|
|
295
285
|
_define_property(this, "sublists", void 0);
|
|
296
|
-
this.formBind = new FormBind(
|
|
286
|
+
this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
297
287
|
var _props_displayFields_map;
|
|
298
|
-
this.displayFields = (_props_displayFields_map =
|
|
288
|
+
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) {
|
|
299
289
|
return new FieldBindItem(item);
|
|
300
290
|
})) !== null && _props_displayFields_map !== void 0 ? _props_displayFields_map : [];
|
|
301
291
|
var _props_sublists_map;
|
|
302
|
-
this.sublists = (_props_sublists_map =
|
|
292
|
+
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) {
|
|
303
293
|
return new SubListItem(item);
|
|
304
294
|
})) !== null && _props_sublists_map !== void 0 ? _props_sublists_map : [];
|
|
305
295
|
};
|
|
306
296
|
export var LeftVariable = function LeftVariable(props) {
|
|
307
297
|
"use strict";
|
|
308
298
|
_class_call_check(this, LeftVariable);
|
|
309
|
-
var _props, _props1;
|
|
310
299
|
_define_property(this, "type", void 0);
|
|
311
300
|
_define_property(this, "value", void 0);
|
|
312
|
-
this.type =
|
|
313
|
-
this.value =
|
|
301
|
+
this.type = props === null || props === void 0 ? void 0 : props.type;
|
|
302
|
+
this.value = props === null || props === void 0 ? void 0 : props.value;
|
|
314
303
|
};
|
|
315
304
|
export var RightVariable = function RightVariable(props) {
|
|
316
305
|
"use strict";
|
|
317
306
|
_class_call_check(this, RightVariable);
|
|
318
|
-
var _props, _props1, _props2;
|
|
319
307
|
_define_property(this, "type", void 0);
|
|
320
308
|
_define_property(this, "value", void 0);
|
|
321
309
|
_define_property(this, "displayBos", void 0);
|
|
322
310
|
var _props_type;
|
|
323
|
-
this.type = (_props_type =
|
|
311
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "custom";
|
|
324
312
|
var _props_value;
|
|
325
|
-
this.value = (_props_value =
|
|
313
|
+
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : [];
|
|
326
314
|
var _props_displayBos;
|
|
327
|
-
this.displayBos = (_props_displayBos =
|
|
315
|
+
this.displayBos = (_props_displayBos = props === null || props === void 0 ? void 0 : props.displayBos) !== null && _props_displayBos !== void 0 ? _props_displayBos : [];
|
|
328
316
|
};
|
|
329
317
|
/**
|
|
330
318
|
* 连接符条件
|
|
@@ -333,7 +321,6 @@ export var RightVariable = function RightVariable(props) {
|
|
|
333
321
|
"use strict";
|
|
334
322
|
var _this = this;
|
|
335
323
|
_class_call_check(this, FieldFilterConditions);
|
|
336
|
-
var _props, _props1, _props2, _props3, _props4;
|
|
337
324
|
/**
|
|
338
325
|
* 编号
|
|
339
326
|
* @defaultValue ''
|
|
@@ -359,17 +346,16 @@ export var RightVariable = function RightVariable(props) {
|
|
|
359
346
|
* @defaultValue []
|
|
360
347
|
*/ _define_property(this, "children", void 0);
|
|
361
348
|
var _props_id;
|
|
362
|
-
this.id = (_props_id =
|
|
349
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
363
350
|
var _props_ruleId;
|
|
364
|
-
this.ruleId = (_props_ruleId =
|
|
351
|
+
this.ruleId = (_props_ruleId = props === null || props === void 0 ? void 0 : props.ruleId) !== null && _props_ruleId !== void 0 ? _props_ruleId : new Date().valueOf();
|
|
365
352
|
var _props_level;
|
|
366
|
-
this.level = (_props_level =
|
|
353
|
+
this.level = (_props_level = props === null || props === void 0 ? void 0 : props.level) !== null && _props_level !== void 0 ? _props_level : 0;
|
|
367
354
|
var _props_value;
|
|
368
|
-
this.value = (_props_value =
|
|
355
|
+
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : "and";
|
|
369
356
|
this.children = [];
|
|
370
|
-
if (Array.isArray(
|
|
371
|
-
|
|
372
|
-
(_props5 = props) === null || _props5 === void 0 ? void 0 : _props5.children.map(function(item) {
|
|
357
|
+
if (Array.isArray(props === null || props === void 0 ? void 0 : props.children)) {
|
|
358
|
+
props === null || props === void 0 ? void 0 : props.children.map(function(item) {
|
|
373
359
|
if (item.children !== undefined) {
|
|
374
360
|
var _this_children;
|
|
375
361
|
var filter = new FieldFilterConditions(item);
|
|
@@ -388,7 +374,6 @@ export var RightVariable = function RightVariable(props) {
|
|
|
388
374
|
*/ export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
389
375
|
"use strict";
|
|
390
376
|
_class_call_check(this, FieldFilterCondition);
|
|
391
|
-
var _props, _props1, _props2, _props3, _props4, _props5, _props6;
|
|
392
377
|
/**
|
|
393
378
|
* 唯一编号
|
|
394
379
|
* @defaultValue ''
|
|
@@ -413,17 +398,17 @@ export var RightVariable = function RightVariable(props) {
|
|
|
413
398
|
* 右值
|
|
414
399
|
*/ _define_property(this, "rightVariableBo", void 0);
|
|
415
400
|
var _props_id;
|
|
416
|
-
this.id = (_props_id =
|
|
401
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
417
402
|
var _props_ruleId;
|
|
418
|
-
this.ruleId = (_props_ruleId =
|
|
403
|
+
this.ruleId = (_props_ruleId = props === null || props === void 0 ? void 0 : props.ruleId) !== null && _props_ruleId !== void 0 ? _props_ruleId : new Date().valueOf();
|
|
419
404
|
var _props_symbol;
|
|
420
|
-
this.symbol = (_props_symbol =
|
|
405
|
+
this.symbol = (_props_symbol = props === null || props === void 0 ? void 0 : props.symbol) !== null && _props_symbol !== void 0 ? _props_symbol : "";
|
|
421
406
|
var _props_checked;
|
|
422
|
-
this.checked = (_props_checked =
|
|
407
|
+
this.checked = (_props_checked = props === null || props === void 0 ? void 0 : props.checked) !== null && _props_checked !== void 0 ? _props_checked : false;
|
|
423
408
|
var _props_describe;
|
|
424
|
-
this.describe = (_props_describe =
|
|
425
|
-
this.leftVariableBo = new LeftVariable(
|
|
426
|
-
this.rightVariableBo = new RightVariable(
|
|
409
|
+
this.describe = (_props_describe = props === null || props === void 0 ? void 0 : props.describe) !== null && _props_describe !== void 0 ? _props_describe : "";
|
|
410
|
+
this.leftVariableBo = new LeftVariable(props === null || props === void 0 ? void 0 : props.leftVariableBo);
|
|
411
|
+
this.rightVariableBo = new RightVariable(props === null || props === void 0 ? void 0 : props.rightVariableBo);
|
|
427
412
|
};
|
|
428
413
|
/**
|
|
429
414
|
* 数据填充项
|
|
@@ -431,7 +416,6 @@ export var RightVariable = function RightVariable(props) {
|
|
|
431
416
|
*/ export var MultistageFillingItem = function MultistageFillingItem(props) {
|
|
432
417
|
"use strict";
|
|
433
418
|
_class_call_check(this, MultistageFillingItem);
|
|
434
|
-
var _props, _props1, _props2, _props3;
|
|
435
419
|
/**
|
|
436
420
|
* 控件ID
|
|
437
421
|
* @defaultValue ''
|
|
@@ -453,13 +437,13 @@ export var RightVariable = function RightVariable(props) {
|
|
|
453
437
|
* @public
|
|
454
438
|
* */ _define_property(this, "propName", void 0);
|
|
455
439
|
var _props_controlId;
|
|
456
|
-
this.controlId = (_props_controlId =
|
|
440
|
+
this.controlId = (_props_controlId = props === null || props === void 0 ? void 0 : props.controlId) !== null && _props_controlId !== void 0 ? _props_controlId : "";
|
|
457
441
|
var _props_fieldCode;
|
|
458
|
-
this.fieldCode = (_props_fieldCode =
|
|
442
|
+
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
459
443
|
var _props_fieldType;
|
|
460
|
-
this.fieldType = (_props_fieldType =
|
|
444
|
+
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : "";
|
|
461
445
|
var _props_propName;
|
|
462
|
-
this.propName = (_props_propName =
|
|
446
|
+
this.propName = (_props_propName = props === null || props === void 0 ? void 0 : props.propName) !== null && _props_propName !== void 0 ? _props_propName : "";
|
|
463
447
|
};
|
|
464
448
|
/**
|
|
465
449
|
* 显示项
|
|
@@ -467,7 +451,6 @@ export var RightVariable = function RightVariable(props) {
|
|
|
467
451
|
*/ export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
468
452
|
"use strict";
|
|
469
453
|
_class_call_check(this, DisplayBoListItem);
|
|
470
|
-
var _props, _props1, _props2;
|
|
471
454
|
/**
|
|
472
455
|
* 显示项类型:字段 | 符号
|
|
473
456
|
* @defaultValue 'FIELD'
|
|
@@ -480,10 +463,10 @@ export var RightVariable = function RightVariable(props) {
|
|
|
480
463
|
* 字段数据类型
|
|
481
464
|
*/ _define_property(this, "fieldType", void 0);
|
|
482
465
|
var _props_type;
|
|
483
|
-
this.type = (_props_type =
|
|
466
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "FIELD";
|
|
484
467
|
var _props_value;
|
|
485
|
-
this.value = (_props_value =
|
|
486
|
-
this.fieldType =
|
|
468
|
+
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : "";
|
|
469
|
+
this.fieldType = props === null || props === void 0 ? void 0 : props.fieldType;
|
|
487
470
|
};
|
|
488
471
|
/**
|
|
489
472
|
* 数据源排序项
|
|
@@ -550,25 +533,25 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
550
533
|
/**
|
|
551
534
|
* 给filters和orders赋值
|
|
552
535
|
* */ function callFiltersAndOrders(props) {
|
|
553
|
-
var _props_filters,
|
|
536
|
+
var _props_filters, _props_viewFilters;
|
|
554
537
|
var _props_filters_map;
|
|
555
|
-
this.filters = (_props_filters_map =
|
|
538
|
+
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) {
|
|
556
539
|
if (item.children !== undefined) {
|
|
557
540
|
return new FieldFilterConditions(item);
|
|
558
541
|
}
|
|
559
542
|
return new FieldFilterCondition(item);
|
|
560
543
|
})) !== null && _props_filters_map !== void 0 ? _props_filters_map : [];
|
|
561
544
|
var _props_viewFilters_map;
|
|
562
|
-
this.viewFilters = (_props_viewFilters_map =
|
|
545
|
+
this.viewFilters = (_props_viewFilters_map = props === null || props === void 0 ? void 0 : (_props_viewFilters = props.viewFilters) === null || _props_viewFilters === void 0 ? void 0 : _props_viewFilters.map(function(item) {
|
|
563
546
|
if (item.children !== undefined) {
|
|
564
547
|
return new FieldFilterConditions(item);
|
|
565
548
|
}
|
|
566
549
|
return new FieldFilterCondition(item);
|
|
567
550
|
})) !== null && _props_viewFilters_map !== void 0 ? _props_viewFilters_map : [];
|
|
568
551
|
if (_instanceof(this, DataSourceBind) || _instanceof(this, FillPayloadBind)) {
|
|
569
|
-
var _props_orders
|
|
552
|
+
var _props_orders;
|
|
570
553
|
var _props_orders_map;
|
|
571
|
-
this.orders = (_props_orders_map =
|
|
554
|
+
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) {
|
|
572
555
|
return new DataSourceOrderItem(item);
|
|
573
556
|
})) !== null && _props_orders_map !== void 0 ? _props_orders_map : [];
|
|
574
557
|
}
|
|
@@ -580,7 +563,6 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
580
563
|
"use strict";
|
|
581
564
|
var _this = this;
|
|
582
565
|
_class_call_check(this, DataSourceBind);
|
|
583
|
-
var _props, _props1, _props2, _props3, _props4, _props5, _props6, _props7;
|
|
584
566
|
/**
|
|
585
567
|
* 绑定数据源id
|
|
586
568
|
* @defaultValue ''
|
|
@@ -638,33 +620,31 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
638
620
|
* @public
|
|
639
621
|
*/ _define_property(this, "showOrder", void 0);
|
|
640
622
|
var _props_dataCode;
|
|
641
|
-
this.dataCode = (_props_dataCode =
|
|
623
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
642
624
|
var _props_appId;
|
|
643
|
-
this.appId = (_props_appId =
|
|
625
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
644
626
|
var _props_valueFieldCode;
|
|
645
|
-
this.valueFieldCode = (_props_valueFieldCode =
|
|
627
|
+
this.valueFieldCode = (_props_valueFieldCode = props === null || props === void 0 ? void 0 : props.valueFieldCode) !== null && _props_valueFieldCode !== void 0 ? _props_valueFieldCode : "";
|
|
646
628
|
this.displayBoList = [];
|
|
647
629
|
var _props_isOpenViewFilters;
|
|
648
|
-
this.isOpenViewFilters = (_props_isOpenViewFilters =
|
|
649
|
-
if (Array.isArray(
|
|
650
|
-
|
|
651
|
-
(_props8 = props) === null || _props8 === void 0 ? void 0 : _props8.displayBoList.map(function(item) {
|
|
630
|
+
this.isOpenViewFilters = (_props_isOpenViewFilters = props === null || props === void 0 ? void 0 : props.isOpenViewFilters) !== null && _props_isOpenViewFilters !== void 0 ? _props_isOpenViewFilters : 0;
|
|
631
|
+
if (Array.isArray(props === null || props === void 0 ? void 0 : props.displayBoList)) {
|
|
632
|
+
props === null || props === void 0 ? void 0 : props.displayBoList.map(function(item) {
|
|
652
633
|
var _this_displayBoList;
|
|
653
634
|
(_this_displayBoList = _this.displayBoList) === null || _this_displayBoList === void 0 ? void 0 : _this_displayBoList.push(new DisplayBoListItem(item));
|
|
654
635
|
});
|
|
655
636
|
}
|
|
656
637
|
var _props_keywordMapping;
|
|
657
|
-
this.keywordMapping = (_props_keywordMapping =
|
|
638
|
+
this.keywordMapping = (_props_keywordMapping = props === null || props === void 0 ? void 0 : props.keywordMapping) !== null && _props_keywordMapping !== void 0 ? _props_keywordMapping : "";
|
|
658
639
|
var _props_showOrder;
|
|
659
|
-
this.showOrder = (_props_showOrder =
|
|
640
|
+
this.showOrder = (_props_showOrder = props === null || props === void 0 ? void 0 : props.showOrder) !== null && _props_showOrder !== void 0 ? _props_showOrder : true;
|
|
660
641
|
var _props_svcCode;
|
|
661
|
-
this.svcCode = (_props_svcCode =
|
|
642
|
+
this.svcCode = (_props_svcCode = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _props_svcCode !== void 0 ? _props_svcCode : "";
|
|
662
643
|
callFiltersAndOrders.call(this, props);
|
|
663
644
|
};
|
|
664
645
|
export var SelectedContentConfig = function SelectedContentConfig(props) {
|
|
665
646
|
"use strict";
|
|
666
647
|
_class_call_check(this, SelectedContentConfig);
|
|
667
|
-
var _props, _props1;
|
|
668
648
|
/**
|
|
669
649
|
* 展示已选内容
|
|
670
650
|
* @defaultValue ''
|
|
@@ -676,14 +656,13 @@ export var SelectedContentConfig = function SelectedContentConfig(props) {
|
|
|
676
656
|
* @public
|
|
677
657
|
*/ _define_property(this, "displayBoList", void 0);
|
|
678
658
|
var _props_dataCode;
|
|
679
|
-
this.dataCode = (_props_dataCode =
|
|
659
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
680
660
|
var _props_displayBoList;
|
|
681
|
-
this.displayBoList = (_props_displayBoList =
|
|
661
|
+
this.displayBoList = (_props_displayBoList = props === null || props === void 0 ? void 0 : props.displayBoList) !== null && _props_displayBoList !== void 0 ? _props_displayBoList : [];
|
|
682
662
|
};
|
|
683
663
|
export var LinkOperationOption = function LinkOperationOption(props) {
|
|
684
664
|
"use strict";
|
|
685
665
|
_class_call_check(this, LinkOperationOption);
|
|
686
|
-
var _props, _props1, _props2, _props3, _props4, _props5, _props6, _props7, _props8, _props9;
|
|
687
666
|
_define_property(this, "code", void 0);
|
|
688
667
|
_define_property(this, "color", void 0);
|
|
689
668
|
_define_property(this, "command", void 0);
|
|
@@ -695,39 +674,39 @@ export var LinkOperationOption = function LinkOperationOption(props) {
|
|
|
695
674
|
_define_property(this, "openType", void 0);
|
|
696
675
|
_define_property(this, "priorityProcess", void 0);
|
|
697
676
|
var _props_code;
|
|
698
|
-
this.code = (_props_code =
|
|
677
|
+
this.code = (_props_code = props === null || props === void 0 ? void 0 : props.code) !== null && _props_code !== void 0 ? _props_code : "view";
|
|
699
678
|
var _props_color;
|
|
700
|
-
this.color = (_props_color =
|
|
679
|
+
this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : "primary";
|
|
701
680
|
var _props_command;
|
|
702
|
-
this.command = (_props_command =
|
|
681
|
+
this.command = (_props_command = props === null || props === void 0 ? void 0 : props.command) !== null && _props_command !== void 0 ? _props_command : "view";
|
|
703
682
|
var _props_confirmMessage;
|
|
704
|
-
this.confirmMessage = (_props_confirmMessage =
|
|
683
|
+
this.confirmMessage = (_props_confirmMessage = props === null || props === void 0 ? void 0 : props.confirmMessage) !== null && _props_confirmMessage !== void 0 ? _props_confirmMessage : undefined;
|
|
705
684
|
var _props_defaultState;
|
|
706
|
-
this.defaultState = (_props_defaultState =
|
|
685
|
+
this.defaultState = (_props_defaultState = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _props_defaultState !== void 0 ? _props_defaultState : "default";
|
|
707
686
|
var _props_formKey;
|
|
708
|
-
this.formKey = (_props_formKey =
|
|
687
|
+
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : undefined;
|
|
709
688
|
var _props_icon;
|
|
710
|
-
this.icon = (_props_icon =
|
|
689
|
+
this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : "iconliulan1";
|
|
711
690
|
var _props_needConfirm;
|
|
712
|
-
this.needConfirm = (_props_needConfirm =
|
|
691
|
+
this.needConfirm = (_props_needConfirm = props === null || props === void 0 ? void 0 : props.needConfirm) !== null && _props_needConfirm !== void 0 ? _props_needConfirm : false;
|
|
713
692
|
var _props_openType;
|
|
714
|
-
this.openType = (_props_openType =
|
|
693
|
+
this.openType = (_props_openType = props === null || props === void 0 ? void 0 : props.openType) !== null && _props_openType !== void 0 ? _props_openType : "modal";
|
|
715
694
|
var _props_priorityProcess;
|
|
716
|
-
this.priorityProcess = (_props_priorityProcess =
|
|
695
|
+
this.priorityProcess = (_props_priorityProcess = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _props_priorityProcess !== void 0 ? _props_priorityProcess : true;
|
|
717
696
|
};
|
|
718
697
|
export var CustomAttributeItem = function CustomAttributeItem(props) {
|
|
719
698
|
"use strict";
|
|
720
699
|
_class_call_check(this, CustomAttributeItem);
|
|
721
|
-
var
|
|
700
|
+
var _props_value;
|
|
722
701
|
_define_property(this, "name", void 0);
|
|
723
702
|
_define_property(this, "key", void 0);
|
|
724
703
|
_define_property(this, "value", void 0);
|
|
725
704
|
var _props_name;
|
|
726
|
-
this.name = (_props_name =
|
|
705
|
+
this.name = (_props_name = props === null || props === void 0 ? void 0 : props.name) !== null && _props_name !== void 0 ? _props_name : "";
|
|
727
706
|
var _props_key;
|
|
728
|
-
this.key = (_props_key =
|
|
707
|
+
this.key = (_props_key = props === null || props === void 0 ? void 0 : props.key) !== null && _props_key !== void 0 ? _props_key : "";
|
|
729
708
|
var _props_value_map;
|
|
730
|
-
this.value = (_props_value_map =
|
|
709
|
+
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) {
|
|
731
710
|
return new DisplayBoListItem(item);
|
|
732
711
|
})) !== null && _props_value_map !== void 0 ? _props_value_map : [];
|
|
733
712
|
};
|
|
@@ -738,11 +717,11 @@ export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
738
717
|
function SuperDataSourceBind(props) {
|
|
739
718
|
_class_call_check(this, SuperDataSourceBind);
|
|
740
719
|
var _this;
|
|
741
|
-
var _props_attributes
|
|
720
|
+
var _props_attributes;
|
|
742
721
|
_this = _super.call(this, props);
|
|
743
722
|
_define_property(_assert_this_initialized(_this), "attributes", void 0);
|
|
744
723
|
var _props_attributes_map;
|
|
745
|
-
_this.attributes = (_props_attributes_map =
|
|
724
|
+
_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) {
|
|
746
725
|
return new CustomAttributeItem(item);
|
|
747
726
|
})) !== null && _props_attributes_map !== void 0 ? _props_attributes_map : [];
|
|
748
727
|
return _this;
|
|
@@ -756,16 +735,16 @@ export var OrganizationDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
756
735
|
function OrganizationDataSourceBind(props) {
|
|
757
736
|
_class_call_check(this, OrganizationDataSourceBind);
|
|
758
737
|
var _this;
|
|
759
|
-
var _props_attributes
|
|
738
|
+
var _props_attributes;
|
|
760
739
|
_this = _super.call(this, props);
|
|
761
740
|
_define_property(_assert_this_initialized(_this), "attributes", void 0);
|
|
762
741
|
_define_property(_assert_this_initialized(_this), "formCode", void 0);
|
|
763
742
|
var _props_attributes_map;
|
|
764
|
-
_this.attributes = (_props_attributes_map =
|
|
743
|
+
_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) {
|
|
765
744
|
return new CustomAttributeItem(item);
|
|
766
745
|
})) !== null && _props_attributes_map !== void 0 ? _props_attributes_map : [];
|
|
767
746
|
var _props_formCode;
|
|
768
|
-
_this.formCode = (_props_formCode =
|
|
747
|
+
_this.formCode = (_props_formCode = props === null || props === void 0 ? void 0 : props.formCode) !== null && _props_formCode !== void 0 ? _props_formCode : "";
|
|
769
748
|
return _this;
|
|
770
749
|
}
|
|
771
750
|
return OrganizationDataSourceBind;
|
|
@@ -777,13 +756,12 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
777
756
|
function TreeDataSourceBind(props) {
|
|
778
757
|
_class_call_check(this, TreeDataSourceBind);
|
|
779
758
|
var _this;
|
|
780
|
-
var _props, _props1;
|
|
781
759
|
_this = _super.call(this, props);
|
|
782
760
|
_define_property(_assert_this_initialized(_this), "rootNode", void 0);
|
|
783
761
|
_define_property(_assert_this_initialized(_this), "filterCode", void 0);
|
|
784
|
-
_this.rootNode = new RightVariable(
|
|
762
|
+
_this.rootNode = new RightVariable(props === null || props === void 0 ? void 0 : props.rootNode);
|
|
785
763
|
var _props_filterCode;
|
|
786
|
-
_this.filterCode = (_props_filterCode =
|
|
764
|
+
_this.filterCode = (_props_filterCode = props === null || props === void 0 ? void 0 : props.filterCode) !== null && _props_filterCode !== void 0 ? _props_filterCode : "";
|
|
787
765
|
return _this;
|
|
788
766
|
}
|
|
789
767
|
return TreeDataSourceBind;
|
|
@@ -791,7 +769,7 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
791
769
|
var FillBind = function FillBind(props) {
|
|
792
770
|
"use strict";
|
|
793
771
|
_class_call_check(this, FillBind);
|
|
794
|
-
var
|
|
772
|
+
var _props_fillList;
|
|
795
773
|
/*
|
|
796
774
|
* 需要被填充的数据源
|
|
797
775
|
* */ _define_property(this, "dataCode", void 0);
|
|
@@ -802,11 +780,11 @@ var FillBind = function FillBind(props) {
|
|
|
802
780
|
* 执行填充的数据项和控件
|
|
803
781
|
* */ _define_property(this, "fillList", void 0);
|
|
804
782
|
var _props_dataCode;
|
|
805
|
-
this.dataCode = (_props_dataCode =
|
|
783
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
806
784
|
var _props_appId;
|
|
807
|
-
this.appId = (_props_appId =
|
|
785
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
808
786
|
var _props_fillList_map;
|
|
809
|
-
this.fillList = (_props_fillList_map =
|
|
787
|
+
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) {
|
|
810
788
|
return new MultistageFillingItem(item);
|
|
811
789
|
})) !== null && _props_fillList_map !== void 0 ? _props_fillList_map : [];
|
|
812
790
|
};
|
|
@@ -852,7 +830,6 @@ var FillBind = function FillBind(props) {
|
|
|
852
830
|
function FillBackBind(props) {
|
|
853
831
|
_class_call_check(this, FillBackBind);
|
|
854
832
|
var _this;
|
|
855
|
-
var _props, _props1;
|
|
856
833
|
_this = _super.call(this, props);
|
|
857
834
|
/**
|
|
858
835
|
* 回填模式。current 当前表(根据按钮所在位置来区分,而不是通过主表和子表来区分)| subtable 子表
|
|
@@ -865,9 +842,9 @@ var FillBind = function FillBind(props) {
|
|
|
865
842
|
* @public
|
|
866
843
|
*/ _define_property(_assert_this_initialized(_this), "multiple", void 0);
|
|
867
844
|
var _props_mode;
|
|
868
|
-
_this.mode = (_props_mode =
|
|
845
|
+
_this.mode = (_props_mode = props === null || props === void 0 ? void 0 : props.mode) !== null && _props_mode !== void 0 ? _props_mode : "current";
|
|
869
846
|
var _props_multiple;
|
|
870
|
-
_this.multiple = (_props_multiple =
|
|
847
|
+
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
871
848
|
return _this;
|
|
872
849
|
}
|
|
873
850
|
return FillBackBind;
|
|
@@ -875,16 +852,15 @@ var FillBind = function FillBind(props) {
|
|
|
875
852
|
export var Language = function Language(props) {
|
|
876
853
|
"use strict";
|
|
877
854
|
_class_call_check(this, Language);
|
|
878
|
-
var _props, _props1, _props2;
|
|
879
855
|
_define_property(this, "zh", void 0);
|
|
880
856
|
_define_property(this, "en", void 0);
|
|
881
857
|
_define_property(this, "ja", void 0);
|
|
882
858
|
var _props_zh;
|
|
883
|
-
this.zh = (_props_zh =
|
|
859
|
+
this.zh = (_props_zh = props === null || props === void 0 ? void 0 : props.zh) !== null && _props_zh !== void 0 ? _props_zh : "";
|
|
884
860
|
var _props_en;
|
|
885
|
-
this.en = (_props_en =
|
|
861
|
+
this.en = (_props_en = props === null || props === void 0 ? void 0 : props.en) !== null && _props_en !== void 0 ? _props_en : "";
|
|
886
862
|
var _props_ja;
|
|
887
|
-
this.ja = (_props_ja =
|
|
863
|
+
this.ja = (_props_ja = props === null || props === void 0 ? void 0 : props.ja) !== null && _props_ja !== void 0 ? _props_ja : "";
|
|
888
864
|
};
|
|
889
865
|
/**
|
|
890
866
|
* 正则校验
|
|
@@ -892,7 +868,6 @@ export var Language = function Language(props) {
|
|
|
892
868
|
*/ export var RegularRules = function RegularRules(props) {
|
|
893
869
|
"use strict";
|
|
894
870
|
_class_call_check(this, RegularRules);
|
|
895
|
-
var _props, _props1, _props2;
|
|
896
871
|
/**
|
|
897
872
|
* 内置模版
|
|
898
873
|
* @defaultValue ''
|
|
@@ -906,11 +881,11 @@ export var Language = function Language(props) {
|
|
|
906
881
|
* @defaultValue ''
|
|
907
882
|
*/ _define_property(this, "errMessage", void 0);
|
|
908
883
|
var _props_stencilName;
|
|
909
|
-
this.stencilName = (_props_stencilName =
|
|
884
|
+
this.stencilName = (_props_stencilName = props === null || props === void 0 ? void 0 : props.stencilName) !== null && _props_stencilName !== void 0 ? _props_stencilName : "";
|
|
910
885
|
var _props_expression;
|
|
911
|
-
this.expression = (_props_expression =
|
|
886
|
+
this.expression = (_props_expression = props === null || props === void 0 ? void 0 : props.expression) !== null && _props_expression !== void 0 ? _props_expression : "";
|
|
912
887
|
var _props_errMessage;
|
|
913
|
-
this.errMessage = (_props_errMessage =
|
|
888
|
+
this.errMessage = (_props_errMessage = props === null || props === void 0 ? void 0 : props.errMessage) !== null && _props_errMessage !== void 0 ? _props_errMessage : "";
|
|
914
889
|
};
|
|
915
890
|
/**
|
|
916
891
|
* 选项设置-自定义选项
|
|
@@ -918,7 +893,6 @@ export var Language = function Language(props) {
|
|
|
918
893
|
*/ export var OptionSetting = function OptionSetting(props) {
|
|
919
894
|
"use strict";
|
|
920
895
|
_class_call_check(this, OptionSetting);
|
|
921
|
-
var _props, _props1, _props2;
|
|
922
896
|
_define_property(this, "id", void 0);
|
|
923
897
|
/**
|
|
924
898
|
* 显示值
|
|
@@ -931,11 +905,11 @@ export var Language = function Language(props) {
|
|
|
931
905
|
* @public
|
|
932
906
|
*/ _define_property(this, "value", void 0);
|
|
933
907
|
var _props_id;
|
|
934
|
-
this.id = (_props_id =
|
|
908
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
935
909
|
var _props_label;
|
|
936
|
-
this.label = (_props_label =
|
|
910
|
+
this.label = (_props_label = props === null || props === void 0 ? void 0 : props.label) !== null && _props_label !== void 0 ? _props_label : "";
|
|
937
911
|
var _props_value;
|
|
938
|
-
this.value = (_props_value =
|
|
912
|
+
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : this.label;
|
|
939
913
|
};
|
|
940
914
|
export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
941
915
|
"use strict";
|
|
@@ -944,29 +918,26 @@ export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
944
918
|
function ImageOptionSetting(props) {
|
|
945
919
|
_class_call_check(this, ImageOptionSetting);
|
|
946
920
|
var _this;
|
|
947
|
-
var _props, _props1;
|
|
948
921
|
_this = _super.call(this, props);
|
|
949
922
|
_define_property(_assert_this_initialized(_this), "image", void 0);
|
|
950
923
|
_define_property(_assert_this_initialized(_this), "type", void 0);
|
|
951
924
|
var _props_image;
|
|
952
|
-
_this.image = (_props_image =
|
|
925
|
+
_this.image = (_props_image = props === null || props === void 0 ? void 0 : props.image) !== null && _props_image !== void 0 ? _props_image : "";
|
|
953
926
|
var _props_type;
|
|
954
|
-
_this.type = (_props_type =
|
|
927
|
+
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "src";
|
|
955
928
|
return _this;
|
|
956
929
|
}
|
|
957
930
|
return ImageOptionSetting;
|
|
958
931
|
}(OptionSetting);
|
|
959
932
|
export function initOptions(options) {
|
|
960
|
-
var _options;
|
|
961
933
|
var _options_map;
|
|
962
|
-
return (_options_map =
|
|
934
|
+
return (_options_map = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
963
935
|
return new OptionSetting(item);
|
|
964
936
|
})) !== null && _options_map !== void 0 ? _options_map : [];
|
|
965
937
|
}
|
|
966
938
|
export function initImageOptions(options) {
|
|
967
|
-
var _options;
|
|
968
939
|
var _options_map;
|
|
969
|
-
return (_options_map =
|
|
940
|
+
return (_options_map = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
970
941
|
return new ImageOptionSetting(item);
|
|
971
942
|
})) !== null && _options_map !== void 0 ? _options_map : [];
|
|
972
943
|
}
|
|
@@ -987,7 +958,6 @@ export function initImageOptions(options) {
|
|
|
987
958
|
function AmountDataBind(props) {
|
|
988
959
|
_class_call_check(this, AmountDataBind);
|
|
989
960
|
var _this;
|
|
990
|
-
var _props, _props1;
|
|
991
961
|
_this = _super.call(this);
|
|
992
962
|
/**
|
|
993
963
|
* 金额字段绑定配置
|
|
@@ -995,8 +965,8 @@ export function initImageOptions(options) {
|
|
|
995
965
|
/**
|
|
996
966
|
* 币种字段绑定配置
|
|
997
967
|
*/ _define_property(_assert_this_initialized(_this), "currency", void 0);
|
|
998
|
-
_this.amount = new DataBind(
|
|
999
|
-
_this.currency = new DataBind(
|
|
968
|
+
_this.amount = new DataBind(props === null || props === void 0 ? void 0 : props.amount);
|
|
969
|
+
_this.currency = new DataBind(props === null || props === void 0 ? void 0 : props.currency);
|
|
1000
970
|
return _this;
|
|
1001
971
|
}
|
|
1002
972
|
return AmountDataBind;
|
|
@@ -1007,7 +977,6 @@ export function initImageOptions(options) {
|
|
|
1007
977
|
*/ export var AmountValue = function AmountValue(props) {
|
|
1008
978
|
"use strict";
|
|
1009
979
|
_class_call_check(this, AmountValue);
|
|
1010
|
-
var _props, _props1;
|
|
1011
980
|
/**
|
|
1012
981
|
* 金额值
|
|
1013
982
|
* @defaultValue ''
|
|
@@ -1017,9 +986,9 @@ export function initImageOptions(options) {
|
|
|
1017
986
|
* @defaultValue 'CNY'
|
|
1018
987
|
*/ _define_property(this, "currency", void 0);
|
|
1019
988
|
var _props_amount;
|
|
1020
|
-
this.amount = (_props_amount =
|
|
989
|
+
this.amount = (_props_amount = props === null || props === void 0 ? void 0 : props.amount) !== null && _props_amount !== void 0 ? _props_amount : "";
|
|
1021
990
|
var _props_currency;
|
|
1022
|
-
this.currency = (_props_currency =
|
|
991
|
+
this.currency = (_props_currency = props === null || props === void 0 ? void 0 : props.currency) !== null && _props_currency !== void 0 ? _props_currency : AMOUNT_TYPE.CNY;
|
|
1023
992
|
};
|
|
1024
993
|
/**
|
|
1025
994
|
* 日期区间数据绑定项
|
|
@@ -1031,7 +1000,6 @@ export function initImageOptions(options) {
|
|
|
1031
1000
|
function RangeDataBind(props) {
|
|
1032
1001
|
_class_call_check(this, RangeDataBind);
|
|
1033
1002
|
var _this;
|
|
1034
|
-
var _props, _props1;
|
|
1035
1003
|
_this = _super.call(this);
|
|
1036
1004
|
/**
|
|
1037
1005
|
* 开始日期字段绑定项
|
|
@@ -1039,8 +1007,8 @@ export function initImageOptions(options) {
|
|
|
1039
1007
|
/**
|
|
1040
1008
|
* 结束日期字段绑定项
|
|
1041
1009
|
*/ _define_property(_assert_this_initialized(_this), "max", void 0);
|
|
1042
|
-
_this.min = new DataBind(
|
|
1043
|
-
_this.max = new DataBind(
|
|
1010
|
+
_this.min = new DataBind(props === null || props === void 0 ? void 0 : props.min);
|
|
1011
|
+
_this.max = new DataBind(props === null || props === void 0 ? void 0 : props.max);
|
|
1044
1012
|
return _this;
|
|
1045
1013
|
}
|
|
1046
1014
|
return RangeDataBind;
|
|
@@ -1051,7 +1019,6 @@ export function initImageOptions(options) {
|
|
|
1051
1019
|
*/ export var RangeDateValue = function RangeDateValue(props) {
|
|
1052
1020
|
"use strict";
|
|
1053
1021
|
_class_call_check(this, RangeDateValue);
|
|
1054
|
-
var _props, _props1;
|
|
1055
1022
|
/**
|
|
1056
1023
|
* 开始日期值
|
|
1057
1024
|
* @defaultValue ''
|
|
@@ -1061,9 +1028,9 @@ export function initImageOptions(options) {
|
|
|
1061
1028
|
* @defaultValue ''
|
|
1062
1029
|
*/ _define_property(this, "max", void 0);
|
|
1063
1030
|
var _props_min;
|
|
1064
|
-
this.min = (_props_min =
|
|
1031
|
+
this.min = (_props_min = props === null || props === void 0 ? void 0 : props.min) !== null && _props_min !== void 0 ? _props_min : "";
|
|
1065
1032
|
var _props_max;
|
|
1066
|
-
this.max = (_props_max =
|
|
1033
|
+
this.max = (_props_max = props === null || props === void 0 ? void 0 : props.max) !== null && _props_max !== void 0 ? _props_max : "";
|
|
1067
1034
|
};
|
|
1068
1035
|
/**
|
|
1069
1036
|
* 地址值
|
|
@@ -1071,7 +1038,6 @@ export function initImageOptions(options) {
|
|
|
1071
1038
|
*/ export var AddressValue = function AddressValue(props) {
|
|
1072
1039
|
"use strict";
|
|
1073
1040
|
_class_call_check(this, AddressValue);
|
|
1074
|
-
var _props, _props1, _props2, _props3, _props4, _props5;
|
|
1075
1041
|
/**
|
|
1076
1042
|
* 市编码
|
|
1077
1043
|
* @defaultValue ''
|
|
@@ -1097,17 +1063,17 @@ export function initImageOptions(options) {
|
|
|
1097
1063
|
* @defaultValue ''
|
|
1098
1064
|
*/ _define_property(this, "provinceDisplay", void 0);
|
|
1099
1065
|
var _props_city;
|
|
1100
|
-
this.city = (_props_city =
|
|
1066
|
+
this.city = (_props_city = props === null || props === void 0 ? void 0 : props.city) !== null && _props_city !== void 0 ? _props_city : "";
|
|
1101
1067
|
var _props_cityDisplay;
|
|
1102
|
-
this.cityDisplay = (_props_cityDisplay =
|
|
1068
|
+
this.cityDisplay = (_props_cityDisplay = props === null || props === void 0 ? void 0 : props.cityDisplay) !== null && _props_cityDisplay !== void 0 ? _props_cityDisplay : "";
|
|
1103
1069
|
var _props_district;
|
|
1104
|
-
this.district = (_props_district =
|
|
1070
|
+
this.district = (_props_district = props === null || props === void 0 ? void 0 : props.district) !== null && _props_district !== void 0 ? _props_district : "";
|
|
1105
1071
|
var _props_districtDisplay;
|
|
1106
|
-
this.districtDisplay = (_props_districtDisplay =
|
|
1072
|
+
this.districtDisplay = (_props_districtDisplay = props === null || props === void 0 ? void 0 : props.districtDisplay) !== null && _props_districtDisplay !== void 0 ? _props_districtDisplay : "";
|
|
1107
1073
|
var _props_province;
|
|
1108
|
-
this.province = (_props_province =
|
|
1074
|
+
this.province = (_props_province = props === null || props === void 0 ? void 0 : props.province) !== null && _props_province !== void 0 ? _props_province : "";
|
|
1109
1075
|
var _props_provinceDisplay;
|
|
1110
|
-
this.provinceDisplay = (_props_provinceDisplay =
|
|
1076
|
+
this.provinceDisplay = (_props_provinceDisplay = props === null || props === void 0 ? void 0 : props.provinceDisplay) !== null && _props_provinceDisplay !== void 0 ? _props_provinceDisplay : "";
|
|
1111
1077
|
};
|
|
1112
1078
|
/**
|
|
1113
1079
|
* 计算公式数据绑定项
|
|
@@ -1119,7 +1085,6 @@ export function initImageOptions(options) {
|
|
|
1119
1085
|
function CalcDataBind(props) {
|
|
1120
1086
|
_class_call_check(this, CalcDataBind);
|
|
1121
1087
|
var _this;
|
|
1122
|
-
var _props, _props1;
|
|
1123
1088
|
_this = _super.call(this);
|
|
1124
1089
|
/**
|
|
1125
1090
|
* 计算结果字段绑定项
|
|
@@ -1127,8 +1092,8 @@ export function initImageOptions(options) {
|
|
|
1127
1092
|
/**
|
|
1128
1093
|
* 单位字段绑定项
|
|
1129
1094
|
*/ _define_property(_assert_this_initialized(_this), "unit", void 0);
|
|
1130
|
-
_this.result = new DataBind(
|
|
1131
|
-
_this.unit = new DataBind(
|
|
1095
|
+
_this.result = new DataBind(props === null || props === void 0 ? void 0 : props.result);
|
|
1096
|
+
_this.unit = new DataBind(props === null || props === void 0 ? void 0 : props.unit);
|
|
1132
1097
|
return _this;
|
|
1133
1098
|
}
|
|
1134
1099
|
return CalcDataBind;
|
|
@@ -1139,7 +1104,6 @@ export function initImageOptions(options) {
|
|
|
1139
1104
|
*/ export var CalcValue = function CalcValue(props) {
|
|
1140
1105
|
"use strict";
|
|
1141
1106
|
_class_call_check(this, CalcValue);
|
|
1142
|
-
var _props, _props1;
|
|
1143
1107
|
/**
|
|
1144
1108
|
* 计算结果值
|
|
1145
1109
|
* @defaultValue 0
|
|
@@ -1149,9 +1113,9 @@ export function initImageOptions(options) {
|
|
|
1149
1113
|
* @defaultValue ''
|
|
1150
1114
|
*/ _define_property(this, "unit", void 0);
|
|
1151
1115
|
var _props_result;
|
|
1152
|
-
this.result = (_props_result =
|
|
1116
|
+
this.result = (_props_result = props === null || props === void 0 ? void 0 : props.result) !== null && _props_result !== void 0 ? _props_result : 0;
|
|
1153
1117
|
var _props_unit;
|
|
1154
|
-
this.unit = (_props_unit =
|
|
1118
|
+
this.unit = (_props_unit = props === null || props === void 0 ? void 0 : props.unit) !== null && _props_unit !== void 0 ? _props_unit : "";
|
|
1155
1119
|
};
|
|
1156
1120
|
export var AMOUNT_TYPE;
|
|
1157
1121
|
(function(AMOUNT_TYPE) {
|
|
@@ -1230,7 +1194,6 @@ export var PAGE_STATUS;
|
|
|
1230
1194
|
*/ export var OperationItem = function OperationItem(props) {
|
|
1231
1195
|
"use strict";
|
|
1232
1196
|
_class_call_check(this, OperationItem);
|
|
1233
|
-
var _props, _props1, _props2, _props3, _props4, _props5;
|
|
1234
1197
|
/**
|
|
1235
1198
|
* 是否显示
|
|
1236
1199
|
* @defaultValue true
|
|
@@ -1258,33 +1221,33 @@ export var PAGE_STATUS;
|
|
|
1258
1221
|
*/ _define_property(this, "openType", void 0);
|
|
1259
1222
|
_define_property(this, "type", void 0);
|
|
1260
1223
|
var _props_isShow;
|
|
1261
|
-
this.isShow = (_props_isShow =
|
|
1224
|
+
this.isShow = (_props_isShow = props === null || props === void 0 ? void 0 : props.isShow) !== null && _props_isShow !== void 0 ? _props_isShow : true;
|
|
1262
1225
|
var _props_content;
|
|
1263
|
-
this.content = (_props_content =
|
|
1226
|
+
this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : "";
|
|
1264
1227
|
var _props_formKey;
|
|
1265
|
-
this.formKey = (_props_formKey =
|
|
1228
|
+
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
1266
1229
|
var _props_openType;
|
|
1267
|
-
this.openType = (_props_openType =
|
|
1230
|
+
this.openType = (_props_openType = props === null || props === void 0 ? void 0 : props.openType) !== null && _props_openType !== void 0 ? _props_openType : "modal";
|
|
1268
1231
|
var _props_type;
|
|
1269
|
-
this.type = (_props_type =
|
|
1232
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "";
|
|
1270
1233
|
var _props_priorityProcess;
|
|
1271
|
-
this.priorityProcess = (_props_priorityProcess =
|
|
1234
|
+
this.priorityProcess = (_props_priorityProcess = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _props_priorityProcess !== void 0 ? _props_priorityProcess : false;
|
|
1272
1235
|
};
|
|
1273
1236
|
export var ViewOperationItem = function ViewOperationItem(props) {
|
|
1274
1237
|
"use strict";
|
|
1275
1238
|
_class_call_check(this, ViewOperationItem);
|
|
1276
|
-
var
|
|
1239
|
+
var _props_headers;
|
|
1277
1240
|
_define_property(this, "id", void 0);
|
|
1278
1241
|
_define_property(this, "title", void 0);
|
|
1279
1242
|
_define_property(this, "filters", void 0);
|
|
1280
1243
|
_define_property(this, "viewFilters", void 0);
|
|
1281
1244
|
_define_property(this, "headers", void 0);
|
|
1282
1245
|
var _props_id;
|
|
1283
|
-
this.id = (_props_id =
|
|
1246
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
1284
1247
|
var _props_title;
|
|
1285
|
-
this.title = (_props_title =
|
|
1248
|
+
this.title = (_props_title = props === null || props === void 0 ? void 0 : props.title) !== null && _props_title !== void 0 ? _props_title : "";
|
|
1286
1249
|
var _props_headers_map;
|
|
1287
|
-
this.headers = (_props_headers_map =
|
|
1250
|
+
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) {
|
|
1288
1251
|
return new ListBindHeaderItem(item);
|
|
1289
1252
|
})) !== null && _props_headers_map !== void 0 ? _props_headers_map : [];
|
|
1290
1253
|
callFiltersAndOrders.call(this, props);
|
|
@@ -1308,17 +1271,16 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
1308
1271
|
export var BaseStyle = function BaseStyle(props) {
|
|
1309
1272
|
"use strict";
|
|
1310
1273
|
_class_call_check(this, BaseStyle);
|
|
1311
|
-
var _props, _props1, _props2, _props3;
|
|
1312
1274
|
_define_property(this, "width", void 0);
|
|
1313
1275
|
_define_property(this, "height", void 0);
|
|
1314
1276
|
_define_property(this, "widthConfig", void 0);
|
|
1315
1277
|
_define_property(this, "heightConfig", void 0);
|
|
1316
1278
|
var _props_width;
|
|
1317
|
-
this.width = (_props_width =
|
|
1279
|
+
this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : "";
|
|
1318
1280
|
var _props_height;
|
|
1319
|
-
this.height = (_props_height =
|
|
1281
|
+
this.height = (_props_height = props === null || props === void 0 ? void 0 : props.height) !== null && _props_height !== void 0 ? _props_height : "";
|
|
1320
1282
|
var _props_widthConfig;
|
|
1321
|
-
this.widthConfig = (_props_widthConfig =
|
|
1283
|
+
this.widthConfig = (_props_widthConfig = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && _props_widthConfig !== void 0 ? _props_widthConfig : "fill";
|
|
1322
1284
|
var _props_heightConfig;
|
|
1323
|
-
this.heightConfig = (_props_heightConfig =
|
|
1285
|
+
this.heightConfig = (_props_heightConfig = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && _props_heightConfig !== void 0 ? _props_heightConfig : "fill";
|
|
1324
1286
|
};
|