@byteluck-fe/model-driven-core 2.3.1-beta.7 → 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 +275 -5
- 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,9 +152,10 @@ 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
|
-
|
|
124
|
-
this.mobile = (_ref = new MetaWidth(props === null || props === void 0 ? void 0 : props.mobile)) !== null && _ref !== void 0 ? _ref : new MetaWidth({
|
|
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({
|
|
125
159
|
width: 130,
|
|
126
160
|
minWidth: 180
|
|
127
161
|
});
|
|
@@ -129,6 +163,8 @@ export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
|
129
163
|
export var DataStorageDoc = function DataStorageDoc(props) {
|
|
130
164
|
"use strict";
|
|
131
165
|
_classCallCheck(this, DataStorageDoc);
|
|
166
|
+
_defineProperty(this, "type", void 0);
|
|
167
|
+
_defineProperty(this, "customOptions", void 0);
|
|
132
168
|
var _props_type;
|
|
133
169
|
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "firstThree";
|
|
134
170
|
var _props_customOptions;
|
|
@@ -137,6 +173,9 @@ export var DataStorageDoc = function DataStorageDoc(props) {
|
|
|
137
173
|
export var FormBind = function FormBind(props) {
|
|
138
174
|
"use strict";
|
|
139
175
|
_classCallCheck(this, FormBind);
|
|
176
|
+
_defineProperty(this, "dataCode", void 0);
|
|
177
|
+
_defineProperty(this, "formKey", void 0);
|
|
178
|
+
_defineProperty(this, "appId", void 0);
|
|
140
179
|
var _props_dataCode;
|
|
141
180
|
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
142
181
|
var _props_formKey;
|
|
@@ -152,6 +191,7 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
152
191
|
_classCallCheck(this, FormSelectBind);
|
|
153
192
|
var _this;
|
|
154
193
|
_this = _super.call(this, props);
|
|
194
|
+
_defineProperty(_assertThisInitialized(_this), "primaryControlId", void 0);
|
|
155
195
|
var _props_primaryControlId;
|
|
156
196
|
_this.primaryControlId = (_props_primaryControlId = props === null || props === void 0 ? void 0 : props.primaryControlId) !== null && _props_primaryControlId !== void 0 ? _props_primaryControlId : "";
|
|
157
197
|
return _this;
|
|
@@ -161,6 +201,7 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
161
201
|
var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
162
202
|
"use strict";
|
|
163
203
|
_classCallCheck(this, ListBindHeaderItem);
|
|
204
|
+
_defineProperty(this, "fieldCode", void 0);
|
|
164
205
|
var _props_fieldCode;
|
|
165
206
|
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
166
207
|
};
|
|
@@ -170,6 +211,18 @@ var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
|
170
211
|
"use strict";
|
|
171
212
|
_classCallCheck(this, ListBind);
|
|
172
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);
|
|
173
226
|
var _props_appId;
|
|
174
227
|
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
175
228
|
var _props_formKey;
|
|
@@ -182,6 +235,9 @@ var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
|
182
235
|
export var FieldBindItem = function FieldBindItem(props) {
|
|
183
236
|
"use strict";
|
|
184
237
|
_classCallCheck(this, FieldBindItem);
|
|
238
|
+
_defineProperty(this, "fieldName", void 0);
|
|
239
|
+
_defineProperty(this, "fieldCode", void 0);
|
|
240
|
+
_defineProperty(this, "fieldType", void 0);
|
|
185
241
|
var _props_fieldName;
|
|
186
242
|
this.fieldName = (_props_fieldName = props === null || props === void 0 ? void 0 : props.fieldName) !== null && _props_fieldName !== void 0 ? _props_fieldName : "";
|
|
187
243
|
var _props_fieldCode;
|
|
@@ -197,6 +253,10 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
197
253
|
_classCallCheck(this, SubListItem);
|
|
198
254
|
var _this;
|
|
199
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);
|
|
200
260
|
var _props_title;
|
|
201
261
|
_this.title = (_props_title = props === null || props === void 0 ? void 0 : props.title) !== null && _props_title !== void 0 ? _props_title : "";
|
|
202
262
|
var _props_svcCode;
|
|
@@ -213,7 +273,10 @@ export var SubListPageConfig = function SubListPageConfig(props) {
|
|
|
213
273
|
"use strict";
|
|
214
274
|
_classCallCheck(this, SubListPageConfig);
|
|
215
275
|
var _props_displayFields, _props_sublists;
|
|
216
|
-
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);
|
|
217
280
|
this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
218
281
|
var _props_displayFields_map;
|
|
219
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) {
|
|
@@ -227,12 +290,17 @@ export var SubListPageConfig = function SubListPageConfig(props) {
|
|
|
227
290
|
export var LeftVariable = function LeftVariable(props) {
|
|
228
291
|
"use strict";
|
|
229
292
|
_classCallCheck(this, LeftVariable);
|
|
293
|
+
_defineProperty(this, "type", void 0);
|
|
294
|
+
_defineProperty(this, "value", void 0);
|
|
230
295
|
this.type = props === null || props === void 0 ? void 0 : props.type;
|
|
231
296
|
this.value = props === null || props === void 0 ? void 0 : props.value;
|
|
232
297
|
};
|
|
233
298
|
export var RightVariable = function RightVariable(props) {
|
|
234
299
|
"use strict";
|
|
235
300
|
_classCallCheck(this, RightVariable);
|
|
301
|
+
_defineProperty(this, "type", void 0);
|
|
302
|
+
_defineProperty(this, "value", void 0);
|
|
303
|
+
_defineProperty(this, "displayBos", void 0);
|
|
236
304
|
var _props_type;
|
|
237
305
|
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "custom";
|
|
238
306
|
var _props_value;
|
|
@@ -244,7 +312,12 @@ export var FieldFilterConditions = function FieldFilterConditions(props) {
|
|
|
244
312
|
"use strict";
|
|
245
313
|
var _this = this;
|
|
246
314
|
_classCallCheck(this, FieldFilterConditions);
|
|
247
|
-
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);
|
|
248
321
|
var _props_id;
|
|
249
322
|
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
250
323
|
var _props_ruleId;
|
|
@@ -271,7 +344,14 @@ export var FieldFilterConditions = function FieldFilterConditions(props) {
|
|
|
271
344
|
export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
272
345
|
"use strict";
|
|
273
346
|
_classCallCheck(this, FieldFilterCondition);
|
|
274
|
-
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);
|
|
275
355
|
var _props_id;
|
|
276
356
|
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
277
357
|
var _props_ruleId;
|
|
@@ -291,6 +371,26 @@ export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
|
291
371
|
*/ export var MultistageFillingItem = function MultistageFillingItem(props) {
|
|
292
372
|
"use strict";
|
|
293
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);
|
|
294
394
|
var _props_controlId;
|
|
295
395
|
this.controlId = (_props_controlId = props === null || props === void 0 ? void 0 : props.controlId) !== null && _props_controlId !== void 0 ? _props_controlId : "";
|
|
296
396
|
var _props_fieldCode;
|
|
@@ -303,6 +403,9 @@ export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
|
303
403
|
export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
304
404
|
"use strict";
|
|
305
405
|
_classCallCheck(this, DisplayBoListItem);
|
|
406
|
+
_defineProperty(this, "type", void 0);
|
|
407
|
+
_defineProperty(this, "value", void 0);
|
|
408
|
+
_defineProperty(this, "fieldType", void 0);
|
|
306
409
|
var _props_type;
|
|
307
410
|
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "FIELD";
|
|
308
411
|
var _props_value;
|
|
@@ -312,6 +415,8 @@ export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
|
312
415
|
export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
313
416
|
"use strict";
|
|
314
417
|
_classCallCheck(this, DataSourceOrderItem);
|
|
418
|
+
_defineProperty(this, "columnName", void 0);
|
|
419
|
+
_defineProperty(this, "desc", void 0);
|
|
315
420
|
var _props_columnName;
|
|
316
421
|
this.columnName = (_props_columnName = props.columnName) !== null && _props_columnName !== void 0 ? _props_columnName : "";
|
|
317
422
|
var _props_desc;
|
|
@@ -320,6 +425,12 @@ export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
|
320
425
|
export var DataSourceDataSetValue = function DataSourceDataSetValue(props) {
|
|
321
426
|
"use strict";
|
|
322
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);
|
|
323
434
|
var _props_code;
|
|
324
435
|
this.code = (_props_code = props.code) !== null && _props_code !== void 0 ? _props_code : "";
|
|
325
436
|
var _props_value;
|
|
@@ -331,6 +442,13 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
331
442
|
"use strict";
|
|
332
443
|
_classCallCheck(this, DataSourceParamItem);
|
|
333
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);
|
|
334
452
|
var _props_id;
|
|
335
453
|
//字段ID,不可以当作随机数生成唯一编号
|
|
336
454
|
this.id = (_props_id = props.id) !== null && _props_id !== void 0 ? _props_id : "";
|
|
@@ -373,6 +491,47 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
373
491
|
"use strict";
|
|
374
492
|
var _this = this;
|
|
375
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);
|
|
376
535
|
var _props_dataCode;
|
|
377
536
|
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
378
537
|
var _props_appId;
|
|
@@ -396,6 +555,9 @@ export var CustomAttributeItem = function CustomAttributeItem(props) {
|
|
|
396
555
|
"use strict";
|
|
397
556
|
_classCallCheck(this, CustomAttributeItem);
|
|
398
557
|
var _props_value;
|
|
558
|
+
_defineProperty(this, "name", void 0);
|
|
559
|
+
_defineProperty(this, "key", void 0);
|
|
560
|
+
_defineProperty(this, "value", void 0);
|
|
399
561
|
var _props_name;
|
|
400
562
|
this.name = (_props_name = props === null || props === void 0 ? void 0 : props.name) !== null && _props_name !== void 0 ? _props_name : "";
|
|
401
563
|
var _props_key;
|
|
@@ -414,6 +576,7 @@ export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
414
576
|
var _this;
|
|
415
577
|
var _props_attributes;
|
|
416
578
|
_this = _super.call(this, props);
|
|
579
|
+
_defineProperty(_assertThisInitialized(_this), "attributes", void 0);
|
|
417
580
|
var _props_attributes_map;
|
|
418
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) {
|
|
419
582
|
return new CustomAttributeItem(item);
|
|
@@ -430,6 +593,7 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
430
593
|
_classCallCheck(this, TreeDataSourceBind);
|
|
431
594
|
var _this;
|
|
432
595
|
_this = _super.call(this, props);
|
|
596
|
+
_defineProperty(_assertThisInitialized(_this), "rootNode", void 0);
|
|
433
597
|
_this.rootNode = new RightVariable(props === null || props === void 0 ? void 0 : props.rootNode);
|
|
434
598
|
return _this;
|
|
435
599
|
}
|
|
@@ -439,6 +603,15 @@ var FillBind = function FillBind(props) {
|
|
|
439
603
|
"use strict";
|
|
440
604
|
_classCallCheck(this, FillBind);
|
|
441
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);
|
|
442
615
|
var _props_dataCode;
|
|
443
616
|
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
444
617
|
var _props_appId;
|
|
@@ -460,6 +633,16 @@ var FillBind = function FillBind(props) {
|
|
|
460
633
|
_classCallCheck(this, FillPayloadBind);
|
|
461
634
|
var _this;
|
|
462
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);
|
|
463
646
|
callFiltersAndOrders.call(_assertThisInitialized(_this), props);
|
|
464
647
|
return _this;
|
|
465
648
|
}
|
|
@@ -476,6 +659,16 @@ var FillBind = function FillBind(props) {
|
|
|
476
659
|
_classCallCheck(this, FillBackBind);
|
|
477
660
|
var _this;
|
|
478
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);
|
|
479
672
|
var _props_mode;
|
|
480
673
|
_this.mode = (_props_mode = props === null || props === void 0 ? void 0 : props.mode) !== null && _props_mode !== void 0 ? _props_mode : "current";
|
|
481
674
|
var _props_multiple;
|
|
@@ -487,6 +680,9 @@ var FillBind = function FillBind(props) {
|
|
|
487
680
|
export var Language = function Language(props) {
|
|
488
681
|
"use strict";
|
|
489
682
|
_classCallCheck(this, Language);
|
|
683
|
+
_defineProperty(this, "zh", void 0);
|
|
684
|
+
_defineProperty(this, "en", void 0);
|
|
685
|
+
_defineProperty(this, "ja", void 0);
|
|
490
686
|
var _props_zh;
|
|
491
687
|
this.zh = (_props_zh = props === null || props === void 0 ? void 0 : props.zh) !== null && _props_zh !== void 0 ? _props_zh : "";
|
|
492
688
|
var _props_en;
|
|
@@ -497,6 +693,9 @@ export var Language = function Language(props) {
|
|
|
497
693
|
export var RegularRules = function RegularRules(props) {
|
|
498
694
|
"use strict";
|
|
499
695
|
_classCallCheck(this, RegularRules);
|
|
696
|
+
_defineProperty(this, "stencilName", void 0);
|
|
697
|
+
_defineProperty(this, "expression", void 0);
|
|
698
|
+
_defineProperty(this, "errMessage", void 0);
|
|
500
699
|
var _props_stencilName;
|
|
501
700
|
this.stencilName = (_props_stencilName = props === null || props === void 0 ? void 0 : props.stencilName) !== null && _props_stencilName !== void 0 ? _props_stencilName : "";
|
|
502
701
|
var _props_expression;
|
|
@@ -510,6 +709,17 @@ export var RegularRules = function RegularRules(props) {
|
|
|
510
709
|
*/ export var OptionSetting = function OptionSetting(props) {
|
|
511
710
|
"use strict";
|
|
512
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);
|
|
513
723
|
var _props_id;
|
|
514
724
|
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
515
725
|
var _props_label;
|
|
@@ -525,6 +735,8 @@ export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
525
735
|
_classCallCheck(this, ImageOptionSetting);
|
|
526
736
|
var _this;
|
|
527
737
|
_this = _super.call(this, props);
|
|
738
|
+
_defineProperty(_assertThisInitialized(_this), "image", void 0);
|
|
739
|
+
_defineProperty(_assertThisInitialized(_this), "type", void 0);
|
|
528
740
|
var _props_image;
|
|
529
741
|
_this.image = (_props_image = props === null || props === void 0 ? void 0 : props.image) !== null && _props_image !== void 0 ? _props_image : "";
|
|
530
742
|
var _props_type;
|
|
@@ -557,6 +769,8 @@ export var AmountDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
557
769
|
_classCallCheck(this, AmountDataBind);
|
|
558
770
|
var _this;
|
|
559
771
|
_this = _super.call(this);
|
|
772
|
+
_defineProperty(_assertThisInitialized(_this), "amount", void 0);
|
|
773
|
+
_defineProperty(_assertThisInitialized(_this), "currency", void 0);
|
|
560
774
|
_this.amount = new DataBind(props === null || props === void 0 ? void 0 : props.amount);
|
|
561
775
|
_this.currency = new DataBind(props === null || props === void 0 ? void 0 : props.currency);
|
|
562
776
|
return _this;
|
|
@@ -566,6 +780,8 @@ export var AmountDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
566
780
|
export var AmountValue = function AmountValue(props) {
|
|
567
781
|
"use strict";
|
|
568
782
|
_classCallCheck(this, AmountValue);
|
|
783
|
+
_defineProperty(this, "amount", void 0);
|
|
784
|
+
_defineProperty(this, "currency", void 0);
|
|
569
785
|
var _props_amount;
|
|
570
786
|
this.amount = (_props_amount = props === null || props === void 0 ? void 0 : props.amount) !== null && _props_amount !== void 0 ? _props_amount : "";
|
|
571
787
|
var _props_currency;
|
|
@@ -579,6 +795,8 @@ export var RangeDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
579
795
|
_classCallCheck(this, RangeDataBind);
|
|
580
796
|
var _this;
|
|
581
797
|
_this = _super.call(this);
|
|
798
|
+
_defineProperty(_assertThisInitialized(_this), "min", void 0);
|
|
799
|
+
_defineProperty(_assertThisInitialized(_this), "max", void 0);
|
|
582
800
|
_this.min = new DataBind(props === null || props === void 0 ? void 0 : props.min);
|
|
583
801
|
_this.max = new DataBind(props === null || props === void 0 ? void 0 : props.max);
|
|
584
802
|
return _this;
|
|
@@ -588,6 +806,8 @@ export var RangeDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
588
806
|
export var RangeDateValue = function RangeDateValue(props) {
|
|
589
807
|
"use strict";
|
|
590
808
|
_classCallCheck(this, RangeDateValue);
|
|
809
|
+
_defineProperty(this, "min", void 0);
|
|
810
|
+
_defineProperty(this, "max", void 0);
|
|
591
811
|
var _props_min;
|
|
592
812
|
this.min = (_props_min = props === null || props === void 0 ? void 0 : props.min) !== null && _props_min !== void 0 ? _props_min : "";
|
|
593
813
|
var _props_max;
|
|
@@ -596,6 +816,12 @@ export var RangeDateValue = function RangeDateValue(props) {
|
|
|
596
816
|
export var AddressValue = function AddressValue(props) {
|
|
597
817
|
"use strict";
|
|
598
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);
|
|
599
825
|
var _props_city;
|
|
600
826
|
this.city = (_props_city = props === null || props === void 0 ? void 0 : props.city) !== null && _props_city !== void 0 ? _props_city : "";
|
|
601
827
|
var _props_cityDisplay;
|
|
@@ -617,6 +843,8 @@ export var CalcDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
617
843
|
_classCallCheck(this, CalcDataBind);
|
|
618
844
|
var _this;
|
|
619
845
|
_this = _super.call(this);
|
|
846
|
+
_defineProperty(_assertThisInitialized(_this), "result", void 0);
|
|
847
|
+
_defineProperty(_assertThisInitialized(_this), "unit", void 0);
|
|
620
848
|
_this.result = new DataBind(props === null || props === void 0 ? void 0 : props.result);
|
|
621
849
|
_this.unit = new DataBind(props === null || props === void 0 ? void 0 : props.unit);
|
|
622
850
|
return _this;
|
|
@@ -626,6 +854,8 @@ export var CalcDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
626
854
|
export var CalcValue = function CalcValue(props) {
|
|
627
855
|
"use strict";
|
|
628
856
|
_classCallCheck(this, CalcValue);
|
|
857
|
+
_defineProperty(this, "result", void 0);
|
|
858
|
+
_defineProperty(this, "unit", void 0);
|
|
629
859
|
var _props_result;
|
|
630
860
|
this.result = (_props_result = props === null || props === void 0 ? void 0 : props.result) !== null && _props_result !== void 0 ? _props_result : 0;
|
|
631
861
|
var _props_unit;
|
|
@@ -704,6 +934,32 @@ export var PAGE_STATUS;
|
|
|
704
934
|
*/ export var OperationItem = function OperationItem(props) {
|
|
705
935
|
"use strict";
|
|
706
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);
|
|
707
963
|
var _props_isShow;
|
|
708
964
|
this.isShow = (_props_isShow = props === null || props === void 0 ? void 0 : props.isShow) !== null && _props_isShow !== void 0 ? _props_isShow : true;
|
|
709
965
|
var _props_content;
|
|
@@ -721,6 +977,10 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
721
977
|
"use strict";
|
|
722
978
|
_classCallCheck(this, ViewOperationItem);
|
|
723
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);
|
|
724
984
|
var _props_id;
|
|
725
985
|
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
726
986
|
var _props_title;
|
|
@@ -736,6 +996,12 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
736
996
|
*/ export var CustomPermissionItem = function CustomPermissionItem(props) {
|
|
737
997
|
"use strict";
|
|
738
998
|
_classCallCheck(this, CustomPermissionItem);
|
|
999
|
+
/**
|
|
1000
|
+
* 人工输入的权限key
|
|
1001
|
+
*/ _defineProperty(this, "key", void 0);
|
|
1002
|
+
/**
|
|
1003
|
+
* 权限名称
|
|
1004
|
+
*/ _defineProperty(this, "caption", void 0);
|
|
739
1005
|
var _props_key;
|
|
740
1006
|
this.key = (_props_key = props.key) !== null && _props_key !== void 0 ? _props_key : genNonDuplicateId(8);
|
|
741
1007
|
var _props_caption;
|
|
@@ -744,6 +1010,10 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
744
1010
|
export var BaseStyle = function BaseStyle(props) {
|
|
745
1011
|
"use strict";
|
|
746
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);
|
|
747
1017
|
var _props_width;
|
|
748
1018
|
this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : "";
|
|
749
1019
|
var _props_height;
|