@byteluck-fe/model-driven-core 2.3.1-beta.8 → 2.3.1
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 +228 -189
- package/dist/esm/common/BaseControl/property.js +21 -4
- package/dist/esm/common/BaseControl/runtime.js +26 -5
- package/dist/esm/common/ColumnControl/designer.js +15 -1
- package/dist/esm/common/ColumnControl/property.js +59 -11
- package/dist/esm/common/ColumnControl/runtime.js +15 -1
- package/dist/esm/common/FormControl/designer.js +18 -3
- package/dist/esm/common/FormControl/property.js +86 -21
- package/dist/esm/common/FormControl/runtime.js +16 -1
- package/dist/esm/common/LayoutControl/designer.js +104 -70
- package/dist/esm/common/LayoutControl/runtime.js +16 -1
- package/dist/esm/common/ListControl/designer.js +86 -61
- package/dist/esm/common/ListControl/property.js +14 -0
- package/dist/esm/common/ListControl/runtime.js +16 -1
- package/dist/esm/common/SearchViewControl/designer.js +15 -1
- package/dist/esm/common/SearchViewControl/property.js +14 -0
- package/dist/esm/common/SearchViewControl/runtime.js +15 -1
- package/dist/esm/common/WrapControl/designer.js +15 -1
- package/dist/esm/common/WrapControl/runtime.js +15 -1
- package/dist/esm/framework/RegisterControls.js +197 -128
- package/dist/esm/framework/index.js +274 -3
- package/dist/index.umd.js +1 -1
- package/package.json +3 -3
|
@@ -9,6 +9,19 @@ function _classCallCheck(instance, Constructor) {
|
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
+
function _defineProperty(obj, key, value) {
|
|
13
|
+
if (key in obj) {
|
|
14
|
+
Object.defineProperty(obj, key, {
|
|
15
|
+
value: value,
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true
|
|
19
|
+
});
|
|
20
|
+
} else {
|
|
21
|
+
obj[key] = value;
|
|
22
|
+
}
|
|
23
|
+
return obj;
|
|
24
|
+
}
|
|
12
25
|
function _getPrototypeOf(o) {
|
|
13
26
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
14
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
@@ -84,6 +97,21 @@ export * from "./RegisterControls";
|
|
|
84
97
|
*/ export var DataBind = function DataBind(props) {
|
|
85
98
|
"use strict";
|
|
86
99
|
_classCallCheck(this, DataBind);
|
|
100
|
+
/**
|
|
101
|
+
* 数据模型编码
|
|
102
|
+
* @defaultValue ''
|
|
103
|
+
* @public
|
|
104
|
+
*/ _defineProperty(this, "dataCode", void 0);
|
|
105
|
+
/**
|
|
106
|
+
* 字段编码
|
|
107
|
+
* @defaultValue ''
|
|
108
|
+
* @public
|
|
109
|
+
*/ _defineProperty(this, "fieldCode", void 0);
|
|
110
|
+
/**
|
|
111
|
+
* 字段类型
|
|
112
|
+
* @defaultValue ''
|
|
113
|
+
* @public
|
|
114
|
+
*/ _defineProperty(this, "fieldType", void 0);
|
|
87
115
|
var _props_dataCode;
|
|
88
116
|
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
89
117
|
var _props_fieldCode;
|
|
@@ -94,6 +122,9 @@ export * from "./RegisterControls";
|
|
|
94
122
|
export var AutoWidth = function AutoWidth(props) {
|
|
95
123
|
"use strict";
|
|
96
124
|
_classCallCheck(this, AutoWidth);
|
|
125
|
+
_defineProperty(this, "minWidth", void 0);
|
|
126
|
+
_defineProperty(this, "maxWidth", void 0);
|
|
127
|
+
_defineProperty(this, "flex", void 0);
|
|
97
128
|
var _props_minWidth;
|
|
98
129
|
this.minWidth = (_props_minWidth = props === null || props === void 0 ? void 0 : props.minWidth) !== null && _props_minWidth !== void 0 ? _props_minWidth : 150;
|
|
99
130
|
this.maxWidth = props === null || props === void 0 ? void 0 : props.maxWidth;
|
|
@@ -108,6 +139,8 @@ export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
|
108
139
|
_classCallCheck(this, MetaWidth);
|
|
109
140
|
var _this;
|
|
110
141
|
_this = _super.call(this, props);
|
|
142
|
+
_defineProperty(_assertThisInitialized(_this), "width", void 0);
|
|
143
|
+
_defineProperty(_assertThisInitialized(_this), "widthType", void 0);
|
|
111
144
|
var _props_width;
|
|
112
145
|
_this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : 240;
|
|
113
146
|
var _props_widthType;
|
|
@@ -119,6 +152,8 @@ export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
|
119
152
|
export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
120
153
|
"use strict";
|
|
121
154
|
_classCallCheck(this, MetaAutoWidth);
|
|
155
|
+
_defineProperty(this, "pc", void 0);
|
|
156
|
+
_defineProperty(this, "mobile", void 0);
|
|
122
157
|
this.pc = new MetaWidth(props === null || props === void 0 ? void 0 : props.pc);
|
|
123
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({
|
|
124
159
|
width: 130,
|
|
@@ -128,6 +163,8 @@ export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
|
128
163
|
export var DataStorageDoc = function DataStorageDoc(props) {
|
|
129
164
|
"use strict";
|
|
130
165
|
_classCallCheck(this, DataStorageDoc);
|
|
166
|
+
_defineProperty(this, "type", void 0);
|
|
167
|
+
_defineProperty(this, "customOptions", void 0);
|
|
131
168
|
var _props_type;
|
|
132
169
|
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "firstThree";
|
|
133
170
|
var _props_customOptions;
|
|
@@ -136,6 +173,9 @@ export var DataStorageDoc = function DataStorageDoc(props) {
|
|
|
136
173
|
export var FormBind = function FormBind(props) {
|
|
137
174
|
"use strict";
|
|
138
175
|
_classCallCheck(this, FormBind);
|
|
176
|
+
_defineProperty(this, "dataCode", void 0);
|
|
177
|
+
_defineProperty(this, "formKey", void 0);
|
|
178
|
+
_defineProperty(this, "appId", void 0);
|
|
139
179
|
var _props_dataCode;
|
|
140
180
|
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
141
181
|
var _props_formKey;
|
|
@@ -151,6 +191,7 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
151
191
|
_classCallCheck(this, FormSelectBind);
|
|
152
192
|
var _this;
|
|
153
193
|
_this = _super.call(this, props);
|
|
194
|
+
_defineProperty(_assertThisInitialized(_this), "primaryControlId", void 0);
|
|
154
195
|
var _props_primaryControlId;
|
|
155
196
|
_this.primaryControlId = (_props_primaryControlId = props === null || props === void 0 ? void 0 : props.primaryControlId) !== null && _props_primaryControlId !== void 0 ? _props_primaryControlId : "";
|
|
156
197
|
return _this;
|
|
@@ -160,6 +201,7 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
160
201
|
var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
161
202
|
"use strict";
|
|
162
203
|
_classCallCheck(this, ListBindHeaderItem);
|
|
204
|
+
_defineProperty(this, "fieldCode", void 0);
|
|
163
205
|
var _props_fieldCode;
|
|
164
206
|
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
165
207
|
};
|
|
@@ -169,6 +211,18 @@ var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
|
169
211
|
"use strict";
|
|
170
212
|
_classCallCheck(this, ListBind);
|
|
171
213
|
var _props_headers;
|
|
214
|
+
/**
|
|
215
|
+
* 应用ID
|
|
216
|
+
* @public
|
|
217
|
+
*/ _defineProperty(this, "appId", void 0);
|
|
218
|
+
/**
|
|
219
|
+
* 表单ID
|
|
220
|
+
* @public
|
|
221
|
+
*/ _defineProperty(this, "formKey", void 0);
|
|
222
|
+
/**
|
|
223
|
+
* 显示字段
|
|
224
|
+
* @public
|
|
225
|
+
*/ _defineProperty(this, "headers", void 0);
|
|
172
226
|
var _props_appId;
|
|
173
227
|
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
174
228
|
var _props_formKey;
|
|
@@ -181,6 +235,9 @@ var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
|
181
235
|
export var FieldBindItem = function FieldBindItem(props) {
|
|
182
236
|
"use strict";
|
|
183
237
|
_classCallCheck(this, FieldBindItem);
|
|
238
|
+
_defineProperty(this, "fieldName", void 0);
|
|
239
|
+
_defineProperty(this, "fieldCode", void 0);
|
|
240
|
+
_defineProperty(this, "fieldType", void 0);
|
|
184
241
|
var _props_fieldName;
|
|
185
242
|
this.fieldName = (_props_fieldName = props === null || props === void 0 ? void 0 : props.fieldName) !== null && _props_fieldName !== void 0 ? _props_fieldName : "";
|
|
186
243
|
var _props_fieldCode;
|
|
@@ -196,6 +253,10 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
196
253
|
_classCallCheck(this, SubListItem);
|
|
197
254
|
var _this;
|
|
198
255
|
_this = _super.call(this, props);
|
|
256
|
+
_defineProperty(_assertThisInitialized(_this), "title", void 0);
|
|
257
|
+
_defineProperty(_assertThisInitialized(_this), "svcCode", void 0);
|
|
258
|
+
_defineProperty(_assertThisInitialized(_this), "isOpenFilter", void 0);
|
|
259
|
+
_defineProperty(_assertThisInitialized(_this), "filters", void 0);
|
|
199
260
|
var _props_title;
|
|
200
261
|
_this.title = (_props_title = props === null || props === void 0 ? void 0 : props.title) !== null && _props_title !== void 0 ? _props_title : "";
|
|
201
262
|
var _props_svcCode;
|
|
@@ -212,7 +273,10 @@ export var SubListPageConfig = function SubListPageConfig(props) {
|
|
|
212
273
|
"use strict";
|
|
213
274
|
_classCallCheck(this, SubListPageConfig);
|
|
214
275
|
var _props_displayFields, _props_sublists;
|
|
215
|
-
this
|
|
276
|
+
_defineProperty(this, "type", "sublist-page");
|
|
277
|
+
_defineProperty(this, "formBind", void 0);
|
|
278
|
+
_defineProperty(this, "displayFields", void 0);
|
|
279
|
+
_defineProperty(this, "sublists", void 0);
|
|
216
280
|
this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
217
281
|
var _props_displayFields_map;
|
|
218
282
|
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) {
|
|
@@ -226,12 +290,17 @@ export var SubListPageConfig = function SubListPageConfig(props) {
|
|
|
226
290
|
export var LeftVariable = function LeftVariable(props) {
|
|
227
291
|
"use strict";
|
|
228
292
|
_classCallCheck(this, LeftVariable);
|
|
293
|
+
_defineProperty(this, "type", void 0);
|
|
294
|
+
_defineProperty(this, "value", void 0);
|
|
229
295
|
this.type = props === null || props === void 0 ? void 0 : props.type;
|
|
230
296
|
this.value = props === null || props === void 0 ? void 0 : props.value;
|
|
231
297
|
};
|
|
232
298
|
export var RightVariable = function RightVariable(props) {
|
|
233
299
|
"use strict";
|
|
234
300
|
_classCallCheck(this, RightVariable);
|
|
301
|
+
_defineProperty(this, "type", void 0);
|
|
302
|
+
_defineProperty(this, "value", void 0);
|
|
303
|
+
_defineProperty(this, "displayBos", void 0);
|
|
235
304
|
var _props_type;
|
|
236
305
|
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "custom";
|
|
237
306
|
var _props_value;
|
|
@@ -243,7 +312,12 @@ export var FieldFilterConditions = function FieldFilterConditions(props) {
|
|
|
243
312
|
"use strict";
|
|
244
313
|
var _this = this;
|
|
245
314
|
_classCallCheck(this, FieldFilterConditions);
|
|
246
|
-
this
|
|
315
|
+
_defineProperty(this, "id", void 0);
|
|
316
|
+
_defineProperty(this, "ruleId", void 0);
|
|
317
|
+
_defineProperty(this, "type", "conditions");
|
|
318
|
+
_defineProperty(this, "level", void 0);
|
|
319
|
+
_defineProperty(this, "value", void 0);
|
|
320
|
+
_defineProperty(this, "children", void 0);
|
|
247
321
|
var _props_id;
|
|
248
322
|
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
249
323
|
var _props_ruleId;
|
|
@@ -270,7 +344,14 @@ export var FieldFilterConditions = function FieldFilterConditions(props) {
|
|
|
270
344
|
export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
271
345
|
"use strict";
|
|
272
346
|
_classCallCheck(this, FieldFilterCondition);
|
|
273
|
-
this
|
|
347
|
+
_defineProperty(this, "id", void 0);
|
|
348
|
+
_defineProperty(this, "ruleId", void 0);
|
|
349
|
+
_defineProperty(this, "type", "condition");
|
|
350
|
+
_defineProperty(this, "symbol", void 0);
|
|
351
|
+
_defineProperty(this, "checked", void 0);
|
|
352
|
+
_defineProperty(this, "describe", void 0);
|
|
353
|
+
_defineProperty(this, "leftVariableBo", void 0);
|
|
354
|
+
_defineProperty(this, "rightVariableBo", void 0);
|
|
274
355
|
var _props_id;
|
|
275
356
|
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
276
357
|
var _props_ruleId;
|
|
@@ -290,6 +371,26 @@ export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
|
290
371
|
*/ export var MultistageFillingItem = function MultistageFillingItem(props) {
|
|
291
372
|
"use strict";
|
|
292
373
|
_classCallCheck(this, MultistageFillingItem);
|
|
374
|
+
/**
|
|
375
|
+
* 控件ID
|
|
376
|
+
* @defaultValue ''
|
|
377
|
+
* @public
|
|
378
|
+
*/ _defineProperty(this, "controlId", void 0);
|
|
379
|
+
/**
|
|
380
|
+
* 字段
|
|
381
|
+
* @defaultValue ''
|
|
382
|
+
* @public
|
|
383
|
+
*/ _defineProperty(this, "fieldCode", void 0);
|
|
384
|
+
/**
|
|
385
|
+
* 字段类型。事件在填充时,需要根据数据类型进行判断处理动作。
|
|
386
|
+
* @defaultValue ''
|
|
387
|
+
* @public
|
|
388
|
+
*/ _defineProperty(this, "fieldType", void 0);
|
|
389
|
+
/**
|
|
390
|
+
* 属性名称。如果是ObjectDataBind的控件,可以指定填充到哪个数据项。
|
|
391
|
+
* @defaultValue ''
|
|
392
|
+
* @public
|
|
393
|
+
* */ _defineProperty(this, "propName", void 0);
|
|
293
394
|
var _props_controlId;
|
|
294
395
|
this.controlId = (_props_controlId = props === null || props === void 0 ? void 0 : props.controlId) !== null && _props_controlId !== void 0 ? _props_controlId : "";
|
|
295
396
|
var _props_fieldCode;
|
|
@@ -302,6 +403,9 @@ export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
|
302
403
|
export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
303
404
|
"use strict";
|
|
304
405
|
_classCallCheck(this, DisplayBoListItem);
|
|
406
|
+
_defineProperty(this, "type", void 0);
|
|
407
|
+
_defineProperty(this, "value", void 0);
|
|
408
|
+
_defineProperty(this, "fieldType", void 0);
|
|
305
409
|
var _props_type;
|
|
306
410
|
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "FIELD";
|
|
307
411
|
var _props_value;
|
|
@@ -311,6 +415,8 @@ export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
|
311
415
|
export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
312
416
|
"use strict";
|
|
313
417
|
_classCallCheck(this, DataSourceOrderItem);
|
|
418
|
+
_defineProperty(this, "columnName", void 0);
|
|
419
|
+
_defineProperty(this, "desc", void 0);
|
|
314
420
|
var _props_columnName;
|
|
315
421
|
this.columnName = (_props_columnName = props.columnName) !== null && _props_columnName !== void 0 ? _props_columnName : "";
|
|
316
422
|
var _props_desc;
|
|
@@ -319,6 +425,12 @@ export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
|
319
425
|
export var DataSourceDataSetValue = function DataSourceDataSetValue(props) {
|
|
320
426
|
"use strict";
|
|
321
427
|
_classCallCheck(this, DataSourceDataSetValue);
|
|
428
|
+
// fieldCode
|
|
429
|
+
_defineProperty(this, "code", void 0);
|
|
430
|
+
// 值
|
|
431
|
+
_defineProperty(this, "value", void 0);
|
|
432
|
+
// 数据类型
|
|
433
|
+
_defineProperty(this, "field_type", void 0);
|
|
322
434
|
var _props_code;
|
|
323
435
|
this.code = (_props_code = props.code) !== null && _props_code !== void 0 ? _props_code : "";
|
|
324
436
|
var _props_value;
|
|
@@ -330,6 +442,13 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
330
442
|
"use strict";
|
|
331
443
|
_classCallCheck(this, DataSourceParamItem);
|
|
332
444
|
var _props_orders, _props_dataSet;
|
|
445
|
+
/**
|
|
446
|
+
* 字段ID
|
|
447
|
+
*/ _defineProperty(this, "id", void 0);
|
|
448
|
+
_defineProperty(this, "limit", void 0);
|
|
449
|
+
_defineProperty(this, "orders", void 0);
|
|
450
|
+
_defineProperty(this, "formKey", void 0);
|
|
451
|
+
_defineProperty(this, "dataSet", void 0);
|
|
333
452
|
var _props_id;
|
|
334
453
|
//字段ID,不可以当作随机数生成唯一编号
|
|
335
454
|
this.id = (_props_id = props.id) !== null && _props_id !== void 0 ? _props_id : "";
|
|
@@ -372,6 +491,47 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
372
491
|
"use strict";
|
|
373
492
|
var _this = this;
|
|
374
493
|
_classCallCheck(this, DataSourceBind);
|
|
494
|
+
/**
|
|
495
|
+
* 绑定数据源id
|
|
496
|
+
* @defaultValue ''
|
|
497
|
+
* @public
|
|
498
|
+
*/ _defineProperty(this, "dataCode", void 0);
|
|
499
|
+
/**
|
|
500
|
+
* 存储值
|
|
501
|
+
* @defaultValue ''
|
|
502
|
+
* @public
|
|
503
|
+
*/ _defineProperty(this, "valueFieldCode", void 0);
|
|
504
|
+
/**
|
|
505
|
+
* 显示值
|
|
506
|
+
* @defaultValue []
|
|
507
|
+
* @public
|
|
508
|
+
*/ _defineProperty(this, "displayBoList", void 0);
|
|
509
|
+
/**
|
|
510
|
+
* 绑定服务
|
|
511
|
+
* @defaultValue ''
|
|
512
|
+
* @public
|
|
513
|
+
*/ _defineProperty(this, "svcCode", void 0);
|
|
514
|
+
/**
|
|
515
|
+
* 应用Id
|
|
516
|
+
* @defaultValue ''
|
|
517
|
+
* @public
|
|
518
|
+
*/ _defineProperty(this, "appId", void 0);
|
|
519
|
+
/**
|
|
520
|
+
* 过滤条件
|
|
521
|
+
* @defaultValue []
|
|
522
|
+
* @public
|
|
523
|
+
*/ _defineProperty(this, "filters", void 0);
|
|
524
|
+
// 过滤
|
|
525
|
+
/**
|
|
526
|
+
* 排序
|
|
527
|
+
* @defaultValue []
|
|
528
|
+
* @public
|
|
529
|
+
*/ _defineProperty(this, "orders", void 0);
|
|
530
|
+
/**
|
|
531
|
+
* 显示排序
|
|
532
|
+
* @defaultValue true
|
|
533
|
+
* @public
|
|
534
|
+
*/ _defineProperty(this, "showOrder", void 0);
|
|
375
535
|
var _props_dataCode;
|
|
376
536
|
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
377
537
|
var _props_appId;
|
|
@@ -395,6 +555,9 @@ export var CustomAttributeItem = function CustomAttributeItem(props) {
|
|
|
395
555
|
"use strict";
|
|
396
556
|
_classCallCheck(this, CustomAttributeItem);
|
|
397
557
|
var _props_value;
|
|
558
|
+
_defineProperty(this, "name", void 0);
|
|
559
|
+
_defineProperty(this, "key", void 0);
|
|
560
|
+
_defineProperty(this, "value", void 0);
|
|
398
561
|
var _props_name;
|
|
399
562
|
this.name = (_props_name = props === null || props === void 0 ? void 0 : props.name) !== null && _props_name !== void 0 ? _props_name : "";
|
|
400
563
|
var _props_key;
|
|
@@ -413,6 +576,7 @@ export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
413
576
|
var _this;
|
|
414
577
|
var _props_attributes;
|
|
415
578
|
_this = _super.call(this, props);
|
|
579
|
+
_defineProperty(_assertThisInitialized(_this), "attributes", void 0);
|
|
416
580
|
var _props_attributes_map;
|
|
417
581
|
_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) {
|
|
418
582
|
return new CustomAttributeItem(item);
|
|
@@ -429,6 +593,7 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
429
593
|
_classCallCheck(this, TreeDataSourceBind);
|
|
430
594
|
var _this;
|
|
431
595
|
_this = _super.call(this, props);
|
|
596
|
+
_defineProperty(_assertThisInitialized(_this), "rootNode", void 0);
|
|
432
597
|
_this.rootNode = new RightVariable(props === null || props === void 0 ? void 0 : props.rootNode);
|
|
433
598
|
return _this;
|
|
434
599
|
}
|
|
@@ -438,6 +603,15 @@ var FillBind = function FillBind(props) {
|
|
|
438
603
|
"use strict";
|
|
439
604
|
_classCallCheck(this, FillBind);
|
|
440
605
|
var _props_fillList;
|
|
606
|
+
/*
|
|
607
|
+
* 需要被填充的数据源
|
|
608
|
+
* */ _defineProperty(this, "dataCode", void 0);
|
|
609
|
+
/*
|
|
610
|
+
* appId
|
|
611
|
+
* */ _defineProperty(this, "appId", void 0);
|
|
612
|
+
/*
|
|
613
|
+
* 执行填充的数据项和控件
|
|
614
|
+
* */ _defineProperty(this, "fillList", void 0);
|
|
441
615
|
var _props_dataCode;
|
|
442
616
|
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
443
617
|
var _props_appId;
|
|
@@ -459,6 +633,16 @@ var FillBind = function FillBind(props) {
|
|
|
459
633
|
_classCallCheck(this, FillPayloadBind);
|
|
460
634
|
var _this;
|
|
461
635
|
_this = _super.call(this, props);
|
|
636
|
+
/**
|
|
637
|
+
* 数据源过滤条件
|
|
638
|
+
* @defaultValue []
|
|
639
|
+
* @public
|
|
640
|
+
**/ _defineProperty(_assertThisInitialized(_this), "filters", void 0);
|
|
641
|
+
/**
|
|
642
|
+
* 数据源排序条件
|
|
643
|
+
* @defaultValue []
|
|
644
|
+
* @public
|
|
645
|
+
**/ _defineProperty(_assertThisInitialized(_this), "orders", void 0);
|
|
462
646
|
callFiltersAndOrders.call(_assertThisInitialized(_this), props);
|
|
463
647
|
return _this;
|
|
464
648
|
}
|
|
@@ -475,6 +659,16 @@ var FillBind = function FillBind(props) {
|
|
|
475
659
|
_classCallCheck(this, FillBackBind);
|
|
476
660
|
var _this;
|
|
477
661
|
_this = _super.call(this, props);
|
|
662
|
+
/**
|
|
663
|
+
* 回填模式。current 当前表(根据按钮所在位置来区分,而不是通过主表和子表来区分)| subtable 子表
|
|
664
|
+
* @defaultValue 'current'
|
|
665
|
+
* @public
|
|
666
|
+
* */ _defineProperty(_assertThisInitialized(_this), "mode", void 0);
|
|
667
|
+
/**
|
|
668
|
+
* 多选
|
|
669
|
+
* @defaultValue false
|
|
670
|
+
* @public
|
|
671
|
+
*/ _defineProperty(_assertThisInitialized(_this), "multiple", void 0);
|
|
478
672
|
var _props_mode;
|
|
479
673
|
_this.mode = (_props_mode = props === null || props === void 0 ? void 0 : props.mode) !== null && _props_mode !== void 0 ? _props_mode : "current";
|
|
480
674
|
var _props_multiple;
|
|
@@ -486,6 +680,9 @@ var FillBind = function FillBind(props) {
|
|
|
486
680
|
export var Language = function Language(props) {
|
|
487
681
|
"use strict";
|
|
488
682
|
_classCallCheck(this, Language);
|
|
683
|
+
_defineProperty(this, "zh", void 0);
|
|
684
|
+
_defineProperty(this, "en", void 0);
|
|
685
|
+
_defineProperty(this, "ja", void 0);
|
|
489
686
|
var _props_zh;
|
|
490
687
|
this.zh = (_props_zh = props === null || props === void 0 ? void 0 : props.zh) !== null && _props_zh !== void 0 ? _props_zh : "";
|
|
491
688
|
var _props_en;
|
|
@@ -496,6 +693,9 @@ export var Language = function Language(props) {
|
|
|
496
693
|
export var RegularRules = function RegularRules(props) {
|
|
497
694
|
"use strict";
|
|
498
695
|
_classCallCheck(this, RegularRules);
|
|
696
|
+
_defineProperty(this, "stencilName", void 0);
|
|
697
|
+
_defineProperty(this, "expression", void 0);
|
|
698
|
+
_defineProperty(this, "errMessage", void 0);
|
|
499
699
|
var _props_stencilName;
|
|
500
700
|
this.stencilName = (_props_stencilName = props === null || props === void 0 ? void 0 : props.stencilName) !== null && _props_stencilName !== void 0 ? _props_stencilName : "";
|
|
501
701
|
var _props_expression;
|
|
@@ -509,6 +709,17 @@ export var RegularRules = function RegularRules(props) {
|
|
|
509
709
|
*/ export var OptionSetting = function OptionSetting(props) {
|
|
510
710
|
"use strict";
|
|
511
711
|
_classCallCheck(this, OptionSetting);
|
|
712
|
+
_defineProperty(this, "id", void 0);
|
|
713
|
+
/**
|
|
714
|
+
* 显示值
|
|
715
|
+
* @defaultValue ''
|
|
716
|
+
* @public
|
|
717
|
+
*/ _defineProperty(this, "label", void 0);
|
|
718
|
+
/**
|
|
719
|
+
* 选项ID
|
|
720
|
+
* @defaultValue this.label
|
|
721
|
+
* @public
|
|
722
|
+
*/ _defineProperty(this, "value", void 0);
|
|
512
723
|
var _props_id;
|
|
513
724
|
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
514
725
|
var _props_label;
|
|
@@ -524,6 +735,8 @@ export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
524
735
|
_classCallCheck(this, ImageOptionSetting);
|
|
525
736
|
var _this;
|
|
526
737
|
_this = _super.call(this, props);
|
|
738
|
+
_defineProperty(_assertThisInitialized(_this), "image", void 0);
|
|
739
|
+
_defineProperty(_assertThisInitialized(_this), "type", void 0);
|
|
527
740
|
var _props_image;
|
|
528
741
|
_this.image = (_props_image = props === null || props === void 0 ? void 0 : props.image) !== null && _props_image !== void 0 ? _props_image : "";
|
|
529
742
|
var _props_type;
|
|
@@ -556,6 +769,8 @@ export var AmountDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
556
769
|
_classCallCheck(this, AmountDataBind);
|
|
557
770
|
var _this;
|
|
558
771
|
_this = _super.call(this);
|
|
772
|
+
_defineProperty(_assertThisInitialized(_this), "amount", void 0);
|
|
773
|
+
_defineProperty(_assertThisInitialized(_this), "currency", void 0);
|
|
559
774
|
_this.amount = new DataBind(props === null || props === void 0 ? void 0 : props.amount);
|
|
560
775
|
_this.currency = new DataBind(props === null || props === void 0 ? void 0 : props.currency);
|
|
561
776
|
return _this;
|
|
@@ -565,6 +780,8 @@ export var AmountDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
565
780
|
export var AmountValue = function AmountValue(props) {
|
|
566
781
|
"use strict";
|
|
567
782
|
_classCallCheck(this, AmountValue);
|
|
783
|
+
_defineProperty(this, "amount", void 0);
|
|
784
|
+
_defineProperty(this, "currency", void 0);
|
|
568
785
|
var _props_amount;
|
|
569
786
|
this.amount = (_props_amount = props === null || props === void 0 ? void 0 : props.amount) !== null && _props_amount !== void 0 ? _props_amount : "";
|
|
570
787
|
var _props_currency;
|
|
@@ -578,6 +795,8 @@ export var RangeDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
578
795
|
_classCallCheck(this, RangeDataBind);
|
|
579
796
|
var _this;
|
|
580
797
|
_this = _super.call(this);
|
|
798
|
+
_defineProperty(_assertThisInitialized(_this), "min", void 0);
|
|
799
|
+
_defineProperty(_assertThisInitialized(_this), "max", void 0);
|
|
581
800
|
_this.min = new DataBind(props === null || props === void 0 ? void 0 : props.min);
|
|
582
801
|
_this.max = new DataBind(props === null || props === void 0 ? void 0 : props.max);
|
|
583
802
|
return _this;
|
|
@@ -587,6 +806,8 @@ export var RangeDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
587
806
|
export var RangeDateValue = function RangeDateValue(props) {
|
|
588
807
|
"use strict";
|
|
589
808
|
_classCallCheck(this, RangeDateValue);
|
|
809
|
+
_defineProperty(this, "min", void 0);
|
|
810
|
+
_defineProperty(this, "max", void 0);
|
|
590
811
|
var _props_min;
|
|
591
812
|
this.min = (_props_min = props === null || props === void 0 ? void 0 : props.min) !== null && _props_min !== void 0 ? _props_min : "";
|
|
592
813
|
var _props_max;
|
|
@@ -595,6 +816,12 @@ export var RangeDateValue = function RangeDateValue(props) {
|
|
|
595
816
|
export var AddressValue = function AddressValue(props) {
|
|
596
817
|
"use strict";
|
|
597
818
|
_classCallCheck(this, AddressValue);
|
|
819
|
+
_defineProperty(this, "city", void 0);
|
|
820
|
+
_defineProperty(this, "cityDisplay", void 0);
|
|
821
|
+
_defineProperty(this, "district", void 0);
|
|
822
|
+
_defineProperty(this, "districtDisplay", void 0);
|
|
823
|
+
_defineProperty(this, "province", void 0);
|
|
824
|
+
_defineProperty(this, "provinceDisplay", void 0);
|
|
598
825
|
var _props_city;
|
|
599
826
|
this.city = (_props_city = props === null || props === void 0 ? void 0 : props.city) !== null && _props_city !== void 0 ? _props_city : "";
|
|
600
827
|
var _props_cityDisplay;
|
|
@@ -616,6 +843,8 @@ export var CalcDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
616
843
|
_classCallCheck(this, CalcDataBind);
|
|
617
844
|
var _this;
|
|
618
845
|
_this = _super.call(this);
|
|
846
|
+
_defineProperty(_assertThisInitialized(_this), "result", void 0);
|
|
847
|
+
_defineProperty(_assertThisInitialized(_this), "unit", void 0);
|
|
619
848
|
_this.result = new DataBind(props === null || props === void 0 ? void 0 : props.result);
|
|
620
849
|
_this.unit = new DataBind(props === null || props === void 0 ? void 0 : props.unit);
|
|
621
850
|
return _this;
|
|
@@ -625,6 +854,8 @@ export var CalcDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
625
854
|
export var CalcValue = function CalcValue(props) {
|
|
626
855
|
"use strict";
|
|
627
856
|
_classCallCheck(this, CalcValue);
|
|
857
|
+
_defineProperty(this, "result", void 0);
|
|
858
|
+
_defineProperty(this, "unit", void 0);
|
|
628
859
|
var _props_result;
|
|
629
860
|
this.result = (_props_result = props === null || props === void 0 ? void 0 : props.result) !== null && _props_result !== void 0 ? _props_result : 0;
|
|
630
861
|
var _props_unit;
|
|
@@ -703,6 +934,32 @@ export var PAGE_STATUS;
|
|
|
703
934
|
*/ export var OperationItem = function OperationItem(props) {
|
|
704
935
|
"use strict";
|
|
705
936
|
_classCallCheck(this, OperationItem);
|
|
937
|
+
/**
|
|
938
|
+
* 是否显示
|
|
939
|
+
* @defaultValue true
|
|
940
|
+
* @public
|
|
941
|
+
*/ _defineProperty(this, "isShow", void 0);
|
|
942
|
+
/**
|
|
943
|
+
* 优先访问流程表单
|
|
944
|
+
* @defaultValue false
|
|
945
|
+
* @public
|
|
946
|
+
*/ _defineProperty(this, "priorityProcess", void 0);
|
|
947
|
+
/**
|
|
948
|
+
* 表单ID
|
|
949
|
+
* @defaultValue ''
|
|
950
|
+
* @public
|
|
951
|
+
*/ _defineProperty(this, "formKey", void 0);
|
|
952
|
+
/**
|
|
953
|
+
* 显示文字
|
|
954
|
+
* @defaultValue ''
|
|
955
|
+
* @public
|
|
956
|
+
*/ _defineProperty(this, "content", void 0);
|
|
957
|
+
/**
|
|
958
|
+
* 打开方式
|
|
959
|
+
* @defaultValue 'modal'
|
|
960
|
+
* @public
|
|
961
|
+
*/ _defineProperty(this, "openType", void 0);
|
|
962
|
+
_defineProperty(this, "type", void 0);
|
|
706
963
|
var _props_isShow;
|
|
707
964
|
this.isShow = (_props_isShow = props === null || props === void 0 ? void 0 : props.isShow) !== null && _props_isShow !== void 0 ? _props_isShow : true;
|
|
708
965
|
var _props_content;
|
|
@@ -720,6 +977,10 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
720
977
|
"use strict";
|
|
721
978
|
_classCallCheck(this, ViewOperationItem);
|
|
722
979
|
var _props_headers;
|
|
980
|
+
_defineProperty(this, "id", void 0);
|
|
981
|
+
_defineProperty(this, "title", void 0);
|
|
982
|
+
_defineProperty(this, "filters", void 0);
|
|
983
|
+
_defineProperty(this, "headers", void 0);
|
|
723
984
|
var _props_id;
|
|
724
985
|
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
725
986
|
var _props_title;
|
|
@@ -735,6 +996,12 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
735
996
|
*/ export var CustomPermissionItem = function CustomPermissionItem(props) {
|
|
736
997
|
"use strict";
|
|
737
998
|
_classCallCheck(this, CustomPermissionItem);
|
|
999
|
+
/**
|
|
1000
|
+
* 人工输入的权限key
|
|
1001
|
+
*/ _defineProperty(this, "key", void 0);
|
|
1002
|
+
/**
|
|
1003
|
+
* 权限名称
|
|
1004
|
+
*/ _defineProperty(this, "caption", void 0);
|
|
738
1005
|
var _props_key;
|
|
739
1006
|
this.key = (_props_key = props.key) !== null && _props_key !== void 0 ? _props_key : genNonDuplicateId(8);
|
|
740
1007
|
var _props_caption;
|
|
@@ -743,6 +1010,10 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
743
1010
|
export var BaseStyle = function BaseStyle(props) {
|
|
744
1011
|
"use strict";
|
|
745
1012
|
_classCallCheck(this, BaseStyle);
|
|
1013
|
+
_defineProperty(this, "width", void 0);
|
|
1014
|
+
_defineProperty(this, "height", void 0);
|
|
1015
|
+
_defineProperty(this, "widthConfig", void 0);
|
|
1016
|
+
_defineProperty(this, "heightConfig", void 0);
|
|
746
1017
|
var _props_width;
|
|
747
1018
|
this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : "";
|
|
748
1019
|
var _props_height;
|