@byteluck-fe/model-driven-core 2.2.7-beta.1 → 2.3.1-beta.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/api-doc-index.js +4 -0
- package/dist/esm/common/BaseControl/designer.js +189 -228
- package/dist/esm/common/BaseControl/property.js +4 -21
- package/dist/esm/common/BaseControl/runtime.js +5 -26
- package/dist/esm/common/ColumnControl/designer.js +1 -15
- package/dist/esm/common/ColumnControl/property.js +15 -35
- package/dist/esm/common/ColumnControl/runtime.js +1 -15
- package/dist/esm/common/FormControl/designer.js +3 -18
- package/dist/esm/common/FormControl/property.js +21 -45
- package/dist/esm/common/FormControl/runtime.js +1 -16
- package/dist/esm/common/LayoutControl/designer.js +70 -104
- package/dist/esm/common/LayoutControl/runtime.js +1 -16
- package/dist/esm/common/ListControl/designer.js +61 -86
- package/dist/esm/common/ListControl/property.js +0 -14
- package/dist/esm/common/ListControl/runtime.js +1 -16
- package/dist/esm/common/SearchViewControl/designer.js +1 -15
- package/dist/esm/common/SearchViewControl/property.js +0 -14
- package/dist/esm/common/SearchViewControl/runtime.js +1 -15
- package/dist/esm/common/WrapControl/designer.js +1 -15
- package/dist/esm/common/WrapControl/runtime.js +1 -15
- package/dist/esm/framework/RegisterControls.js +128 -197
- package/dist/esm/framework/index.js +66 -186
- package/dist/index.umd.js +1 -1
- package/dist/types/api-doc-index.d.ts +4 -0
- package/dist/types/common/ColumnControl/property.d.ts +39 -0
- package/dist/types/common/FormControl/property.d.ts +52 -0
- package/dist/types/framework/index.d.ts +187 -1
- package/package.json +3 -3
|
@@ -9,19 +9,6 @@ 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
|
-
}
|
|
25
12
|
function _getPrototypeOf(o) {
|
|
26
13
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
27
14
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
@@ -91,12 +78,12 @@ function _createSuper(Derived) {
|
|
|
91
78
|
}
|
|
92
79
|
import { FieldTypes, genNonDuplicateId } from "@byteluck-fe/model-driven-shared";
|
|
93
80
|
export * from "./RegisterControls";
|
|
94
|
-
|
|
81
|
+
/**
|
|
82
|
+
* 数据绑定配置
|
|
83
|
+
* @public
|
|
84
|
+
*/ export var DataBind = function DataBind(props) {
|
|
95
85
|
"use strict";
|
|
96
86
|
_classCallCheck(this, DataBind);
|
|
97
|
-
_defineProperty(this, "dataCode", void 0);
|
|
98
|
-
_defineProperty(this, "fieldCode", void 0);
|
|
99
|
-
_defineProperty(this, "fieldType", void 0);
|
|
100
87
|
var _props_dataCode;
|
|
101
88
|
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
102
89
|
var _props_fieldCode;
|
|
@@ -107,21 +94,48 @@ export var DataBind = function DataBind(props) {
|
|
|
107
94
|
export var AutoWidth = function AutoWidth(props) {
|
|
108
95
|
"use strict";
|
|
109
96
|
_classCallCheck(this, AutoWidth);
|
|
110
|
-
_defineProperty(this, "minWidth", void 0);
|
|
111
|
-
_defineProperty(this, "maxWidth", void 0);
|
|
112
|
-
_defineProperty(this, "flex", void 0);
|
|
113
97
|
var _props_minWidth;
|
|
114
98
|
this.minWidth = (_props_minWidth = props === null || props === void 0 ? void 0 : props.minWidth) !== null && _props_minWidth !== void 0 ? _props_minWidth : 150;
|
|
115
99
|
this.maxWidth = props === null || props === void 0 ? void 0 : props.maxWidth;
|
|
116
100
|
var _props_flex;
|
|
117
101
|
this.flex = (_props_flex = props === null || props === void 0 ? void 0 : props.flex) !== null && _props_flex !== void 0 ? _props_flex : 1;
|
|
118
102
|
};
|
|
103
|
+
export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
104
|
+
"use strict";
|
|
105
|
+
_inherits(MetaWidth, AutoWidth);
|
|
106
|
+
var _super = _createSuper(MetaWidth);
|
|
107
|
+
function MetaWidth(props) {
|
|
108
|
+
_classCallCheck(this, MetaWidth);
|
|
109
|
+
var _this;
|
|
110
|
+
_this = _super.call(this, props);
|
|
111
|
+
var _props_width;
|
|
112
|
+
_this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : 240;
|
|
113
|
+
var _props_widthType;
|
|
114
|
+
_this.widthType = (_props_widthType = props === null || props === void 0 ? void 0 : props.widthType) !== null && _props_widthType !== void 0 ? _props_widthType : "auto";
|
|
115
|
+
return _this;
|
|
116
|
+
}
|
|
117
|
+
return MetaWidth;
|
|
118
|
+
}(AutoWidth);
|
|
119
|
+
export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
120
|
+
"use strict";
|
|
121
|
+
_classCallCheck(this, MetaAutoWidth);
|
|
122
|
+
this.pc = new MetaWidth(props === null || props === void 0 ? void 0 : props.pc);
|
|
123
|
+
this.mobile = (props === null || props === void 0 ? void 0 : props.mobile) ? new MetaWidth(props === null || props === void 0 ? void 0 : props.mobile) : new MetaWidth({
|
|
124
|
+
width: 130,
|
|
125
|
+
minWidth: 180
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
export var DataStorageDoc = function DataStorageDoc(props) {
|
|
129
|
+
"use strict";
|
|
130
|
+
_classCallCheck(this, DataStorageDoc);
|
|
131
|
+
var _props_type;
|
|
132
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "firstThree";
|
|
133
|
+
var _props_customOptions;
|
|
134
|
+
this.customOptions = (_props_customOptions = props === null || props === void 0 ? void 0 : props.customOptions) !== null && _props_customOptions !== void 0 ? _props_customOptions : [];
|
|
135
|
+
};
|
|
119
136
|
export var FormBind = function FormBind(props) {
|
|
120
137
|
"use strict";
|
|
121
138
|
_classCallCheck(this, FormBind);
|
|
122
|
-
_defineProperty(this, "dataCode", void 0);
|
|
123
|
-
_defineProperty(this, "formKey", void 0);
|
|
124
|
-
_defineProperty(this, "appId", void 0);
|
|
125
139
|
var _props_dataCode;
|
|
126
140
|
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
127
141
|
var _props_formKey;
|
|
@@ -137,7 +151,6 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
137
151
|
_classCallCheck(this, FormSelectBind);
|
|
138
152
|
var _this;
|
|
139
153
|
_this = _super.call(this, props);
|
|
140
|
-
_defineProperty(_assertThisInitialized(_this), "primaryControlId", void 0);
|
|
141
154
|
var _props_primaryControlId;
|
|
142
155
|
_this.primaryControlId = (_props_primaryControlId = props === null || props === void 0 ? void 0 : props.primaryControlId) !== null && _props_primaryControlId !== void 0 ? _props_primaryControlId : "";
|
|
143
156
|
return _this;
|
|
@@ -147,17 +160,15 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
147
160
|
var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
148
161
|
"use strict";
|
|
149
162
|
_classCallCheck(this, ListBindHeaderItem);
|
|
150
|
-
_defineProperty(this, "fieldCode", void 0);
|
|
151
163
|
var _props_fieldCode;
|
|
152
164
|
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
153
165
|
};
|
|
154
|
-
|
|
166
|
+
/**
|
|
167
|
+
* 列表绑定配置
|
|
168
|
+
*/ export var ListBind = function ListBind(props) {
|
|
155
169
|
"use strict";
|
|
156
170
|
_classCallCheck(this, ListBind);
|
|
157
171
|
var _props_headers;
|
|
158
|
-
_defineProperty(this, "appId", void 0);
|
|
159
|
-
_defineProperty(this, "formKey", void 0);
|
|
160
|
-
_defineProperty(this, "headers", void 0);
|
|
161
172
|
var _props_appId;
|
|
162
173
|
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
163
174
|
var _props_formKey;
|
|
@@ -170,9 +181,6 @@ export var ListBind = function ListBind(props) {
|
|
|
170
181
|
export var FieldBindItem = function FieldBindItem(props) {
|
|
171
182
|
"use strict";
|
|
172
183
|
_classCallCheck(this, FieldBindItem);
|
|
173
|
-
_defineProperty(this, "fieldName", void 0);
|
|
174
|
-
_defineProperty(this, "fieldCode", void 0);
|
|
175
|
-
_defineProperty(this, "fieldType", void 0);
|
|
176
184
|
var _props_fieldName;
|
|
177
185
|
this.fieldName = (_props_fieldName = props === null || props === void 0 ? void 0 : props.fieldName) !== null && _props_fieldName !== void 0 ? _props_fieldName : "";
|
|
178
186
|
var _props_fieldCode;
|
|
@@ -188,10 +196,6 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
188
196
|
_classCallCheck(this, SubListItem);
|
|
189
197
|
var _this;
|
|
190
198
|
_this = _super.call(this, props);
|
|
191
|
-
_defineProperty(_assertThisInitialized(_this), "title", void 0);
|
|
192
|
-
_defineProperty(_assertThisInitialized(_this), "svcCode", void 0);
|
|
193
|
-
_defineProperty(_assertThisInitialized(_this), "isOpenFilter", void 0);
|
|
194
|
-
_defineProperty(_assertThisInitialized(_this), "filters", void 0);
|
|
195
199
|
var _props_title;
|
|
196
200
|
_this.title = (_props_title = props === null || props === void 0 ? void 0 : props.title) !== null && _props_title !== void 0 ? _props_title : "";
|
|
197
201
|
var _props_svcCode;
|
|
@@ -208,10 +212,7 @@ export var SubListPageConfig = function SubListPageConfig(props) {
|
|
|
208
212
|
"use strict";
|
|
209
213
|
_classCallCheck(this, SubListPageConfig);
|
|
210
214
|
var _props_displayFields, _props_sublists;
|
|
211
|
-
|
|
212
|
-
_defineProperty(this, "formBind", void 0);
|
|
213
|
-
_defineProperty(this, "displayFields", void 0);
|
|
214
|
-
_defineProperty(this, "sublists", void 0);
|
|
215
|
+
this.type = "sublist-page";
|
|
215
216
|
this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
216
217
|
var _props_displayFields_map;
|
|
217
218
|
this.displayFields = (_props_displayFields_map = props === null || props === void 0 ? void 0 : (_props_displayFields = props.displayFields) === null || _props_displayFields === void 0 ? void 0 : _props_displayFields.map(function(item) {
|
|
@@ -225,17 +226,12 @@ export var SubListPageConfig = function SubListPageConfig(props) {
|
|
|
225
226
|
export var LeftVariable = function LeftVariable(props) {
|
|
226
227
|
"use strict";
|
|
227
228
|
_classCallCheck(this, LeftVariable);
|
|
228
|
-
_defineProperty(this, "type", void 0);
|
|
229
|
-
_defineProperty(this, "value", void 0);
|
|
230
229
|
this.type = props === null || props === void 0 ? void 0 : props.type;
|
|
231
230
|
this.value = props === null || props === void 0 ? void 0 : props.value;
|
|
232
231
|
};
|
|
233
232
|
export var RightVariable = function RightVariable(props) {
|
|
234
233
|
"use strict";
|
|
235
234
|
_classCallCheck(this, RightVariable);
|
|
236
|
-
_defineProperty(this, "type", void 0);
|
|
237
|
-
_defineProperty(this, "value", void 0);
|
|
238
|
-
_defineProperty(this, "displayBos", void 0);
|
|
239
235
|
var _props_type;
|
|
240
236
|
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "custom";
|
|
241
237
|
var _props_value;
|
|
@@ -247,12 +243,7 @@ export var FieldFilterConditions = function FieldFilterConditions(props) {
|
|
|
247
243
|
"use strict";
|
|
248
244
|
var _this = this;
|
|
249
245
|
_classCallCheck(this, FieldFilterConditions);
|
|
250
|
-
|
|
251
|
-
_defineProperty(this, "ruleId", void 0);
|
|
252
|
-
_defineProperty(this, "type", "conditions");
|
|
253
|
-
_defineProperty(this, "level", void 0);
|
|
254
|
-
_defineProperty(this, "value", void 0);
|
|
255
|
-
_defineProperty(this, "children", void 0);
|
|
246
|
+
this.type = "conditions";
|
|
256
247
|
var _props_id;
|
|
257
248
|
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
258
249
|
var _props_ruleId;
|
|
@@ -279,14 +270,7 @@ export var FieldFilterConditions = function FieldFilterConditions(props) {
|
|
|
279
270
|
export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
280
271
|
"use strict";
|
|
281
272
|
_classCallCheck(this, FieldFilterCondition);
|
|
282
|
-
|
|
283
|
-
_defineProperty(this, "ruleId", void 0);
|
|
284
|
-
_defineProperty(this, "type", "condition");
|
|
285
|
-
_defineProperty(this, "symbol", void 0);
|
|
286
|
-
_defineProperty(this, "checked", void 0);
|
|
287
|
-
_defineProperty(this, "describe", void 0);
|
|
288
|
-
_defineProperty(this, "leftVariableBo", void 0);
|
|
289
|
-
_defineProperty(this, "rightVariableBo", void 0);
|
|
273
|
+
this.type = "condition";
|
|
290
274
|
var _props_id;
|
|
291
275
|
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
292
276
|
var _props_ruleId;
|
|
@@ -300,17 +284,12 @@ export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
|
300
284
|
this.leftVariableBo = new LeftVariable(props === null || props === void 0 ? void 0 : props.leftVariableBo);
|
|
301
285
|
this.rightVariableBo = new RightVariable(props === null || props === void 0 ? void 0 : props.rightVariableBo);
|
|
302
286
|
};
|
|
303
|
-
|
|
287
|
+
/**
|
|
288
|
+
* 数据填充项
|
|
289
|
+
* @public
|
|
290
|
+
*/ export var MultistageFillingItem = function MultistageFillingItem(props) {
|
|
304
291
|
"use strict";
|
|
305
292
|
_classCallCheck(this, MultistageFillingItem);
|
|
306
|
-
_defineProperty(this, "controlId", void 0);
|
|
307
|
-
_defineProperty(this, "fieldCode", void 0);
|
|
308
|
-
/**
|
|
309
|
-
* 事件在填充时,需要根据数据类型进行判断处理动作。
|
|
310
|
-
*/ _defineProperty(this, "fieldType", void 0);
|
|
311
|
-
/*
|
|
312
|
-
* 如果是ObjectDataBind的控件,可以指定填充到哪个数据项
|
|
313
|
-
* */ _defineProperty(this, "propName", void 0);
|
|
314
293
|
var _props_controlId;
|
|
315
294
|
this.controlId = (_props_controlId = props === null || props === void 0 ? void 0 : props.controlId) !== null && _props_controlId !== void 0 ? _props_controlId : "";
|
|
316
295
|
var _props_fieldCode;
|
|
@@ -323,9 +302,6 @@ export var MultistageFillingItem = function MultistageFillingItem(props) {
|
|
|
323
302
|
export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
324
303
|
"use strict";
|
|
325
304
|
_classCallCheck(this, DisplayBoListItem);
|
|
326
|
-
_defineProperty(this, "type", void 0);
|
|
327
|
-
_defineProperty(this, "value", void 0);
|
|
328
|
-
_defineProperty(this, "fieldType", void 0);
|
|
329
305
|
var _props_type;
|
|
330
306
|
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "FIELD";
|
|
331
307
|
var _props_value;
|
|
@@ -335,8 +311,6 @@ export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
|
335
311
|
export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
336
312
|
"use strict";
|
|
337
313
|
_classCallCheck(this, DataSourceOrderItem);
|
|
338
|
-
_defineProperty(this, "columnName", void 0);
|
|
339
|
-
_defineProperty(this, "desc", void 0);
|
|
340
314
|
var _props_columnName;
|
|
341
315
|
this.columnName = (_props_columnName = props.columnName) !== null && _props_columnName !== void 0 ? _props_columnName : "";
|
|
342
316
|
var _props_desc;
|
|
@@ -345,12 +319,6 @@ export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
|
345
319
|
export var DataSourceDataSetValue = function DataSourceDataSetValue(props) {
|
|
346
320
|
"use strict";
|
|
347
321
|
_classCallCheck(this, DataSourceDataSetValue);
|
|
348
|
-
// fieldCode
|
|
349
|
-
_defineProperty(this, "code", void 0);
|
|
350
|
-
// 值
|
|
351
|
-
_defineProperty(this, "value", void 0);
|
|
352
|
-
// 数据类型
|
|
353
|
-
_defineProperty(this, "field_type", void 0);
|
|
354
322
|
var _props_code;
|
|
355
323
|
this.code = (_props_code = props.code) !== null && _props_code !== void 0 ? _props_code : "";
|
|
356
324
|
var _props_value;
|
|
@@ -362,13 +330,6 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
362
330
|
"use strict";
|
|
363
331
|
_classCallCheck(this, DataSourceParamItem);
|
|
364
332
|
var _props_orders, _props_dataSet;
|
|
365
|
-
/**
|
|
366
|
-
* 字段ID
|
|
367
|
-
*/ _defineProperty(this, "id", void 0);
|
|
368
|
-
_defineProperty(this, "limit", void 0);
|
|
369
|
-
_defineProperty(this, "orders", void 0);
|
|
370
|
-
_defineProperty(this, "formKey", void 0);
|
|
371
|
-
_defineProperty(this, "dataSet", void 0);
|
|
372
333
|
var _props_id;
|
|
373
334
|
//字段ID,不可以当作随机数生成唯一编号
|
|
374
335
|
this.id = (_props_id = props.id) !== null && _props_id !== void 0 ? _props_id : "";
|
|
@@ -404,25 +365,13 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
404
365
|
})) !== null && _props_orders_map !== void 0 ? _props_orders_map : [];
|
|
405
366
|
}
|
|
406
367
|
}
|
|
407
|
-
|
|
368
|
+
/**
|
|
369
|
+
* 数据源绑定配置
|
|
370
|
+
* @public
|
|
371
|
+
*/ export var DataSourceBind = function DataSourceBind(props) {
|
|
408
372
|
"use strict";
|
|
409
373
|
var _this = this;
|
|
410
374
|
_classCallCheck(this, DataSourceBind);
|
|
411
|
-
_defineProperty(this, "dataCode", void 0 // 绑定数据源id
|
|
412
|
-
);
|
|
413
|
-
_defineProperty(this, "valueFieldCode", void 0 // 存储值
|
|
414
|
-
);
|
|
415
|
-
_defineProperty(this, "displayBoList", void 0 // 显示值
|
|
416
|
-
);
|
|
417
|
-
_defineProperty(this, "svcCode", void 0 // 绑定服务
|
|
418
|
-
);
|
|
419
|
-
_defineProperty(this, "appId", void 0);
|
|
420
|
-
_defineProperty(this, "filters", void 0);
|
|
421
|
-
// 过滤
|
|
422
|
-
_defineProperty(this, "orders", void 0 // 排序
|
|
423
|
-
);
|
|
424
|
-
_defineProperty(this, "showOrder", void 0 //是否显示排序
|
|
425
|
-
);
|
|
426
375
|
var _props_dataCode;
|
|
427
376
|
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
428
377
|
var _props_appId;
|
|
@@ -446,9 +395,6 @@ export var CustomAttributeItem = function CustomAttributeItem(props) {
|
|
|
446
395
|
"use strict";
|
|
447
396
|
_classCallCheck(this, CustomAttributeItem);
|
|
448
397
|
var _props_value;
|
|
449
|
-
_defineProperty(this, "name", void 0);
|
|
450
|
-
_defineProperty(this, "key", void 0);
|
|
451
|
-
_defineProperty(this, "value", void 0);
|
|
452
398
|
var _props_name;
|
|
453
399
|
this.name = (_props_name = props === null || props === void 0 ? void 0 : props.name) !== null && _props_name !== void 0 ? _props_name : "";
|
|
454
400
|
var _props_key;
|
|
@@ -467,7 +413,6 @@ export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
467
413
|
var _this;
|
|
468
414
|
var _props_attributes;
|
|
469
415
|
_this = _super.call(this, props);
|
|
470
|
-
_defineProperty(_assertThisInitialized(_this), "attributes", void 0);
|
|
471
416
|
var _props_attributes_map;
|
|
472
417
|
_this.attributes = (_props_attributes_map = props === null || props === void 0 ? void 0 : (_props_attributes = props.attributes) === null || _props_attributes === void 0 ? void 0 : _props_attributes.map(function(item) {
|
|
473
418
|
return new CustomAttributeItem(item);
|
|
@@ -484,7 +429,6 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
484
429
|
_classCallCheck(this, TreeDataSourceBind);
|
|
485
430
|
var _this;
|
|
486
431
|
_this = _super.call(this, props);
|
|
487
|
-
_defineProperty(_assertThisInitialized(_this), "rootNode", void 0);
|
|
488
432
|
_this.rootNode = new RightVariable(props === null || props === void 0 ? void 0 : props.rootNode);
|
|
489
433
|
return _this;
|
|
490
434
|
}
|
|
@@ -494,15 +438,6 @@ var FillBind = function FillBind(props) {
|
|
|
494
438
|
"use strict";
|
|
495
439
|
_classCallCheck(this, FillBind);
|
|
496
440
|
var _props_fillList;
|
|
497
|
-
/*
|
|
498
|
-
* 需要被填充的数据源
|
|
499
|
-
* */ _defineProperty(this, "dataCode", void 0);
|
|
500
|
-
/*
|
|
501
|
-
* appId
|
|
502
|
-
* */ _defineProperty(this, "appId", void 0);
|
|
503
|
-
/*
|
|
504
|
-
* 执行填充的数据项和控件
|
|
505
|
-
* */ _defineProperty(this, "fillList", void 0);
|
|
506
441
|
var _props_dataCode;
|
|
507
442
|
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
508
443
|
var _props_appId;
|
|
@@ -512,8 +447,10 @@ var FillBind = function FillBind(props) {
|
|
|
512
447
|
return new MultistageFillingItem(item);
|
|
513
448
|
})) !== null && _props_fillList_map !== void 0 ? _props_fillList_map : [];
|
|
514
449
|
};
|
|
515
|
-
|
|
450
|
+
/**
|
|
451
|
+
* FillPayloadBind 填充配置
|
|
516
452
|
* 填充的配置和需要携带的数据
|
|
453
|
+
* @public
|
|
517
454
|
* */ export var FillPayloadBind = /*#__PURE__*/ function(FillBind) {
|
|
518
455
|
"use strict";
|
|
519
456
|
_inherits(FillPayloadBind, FillBind);
|
|
@@ -522,20 +459,15 @@ var FillBind = function FillBind(props) {
|
|
|
522
459
|
_classCallCheck(this, FillPayloadBind);
|
|
523
460
|
var _this;
|
|
524
461
|
_this = _super.call(this, props);
|
|
525
|
-
/*
|
|
526
|
-
* 数据源过滤条件
|
|
527
|
-
* */ _defineProperty(_assertThisInitialized(_this), "filters", void 0);
|
|
528
|
-
/*
|
|
529
|
-
* 数据源排序条件
|
|
530
|
-
* */ _defineProperty(_assertThisInitialized(_this), "orders", void 0);
|
|
531
462
|
callFiltersAndOrders.call(_assertThisInitialized(_this), props);
|
|
532
463
|
return _this;
|
|
533
464
|
}
|
|
534
465
|
return FillPayloadBind;
|
|
535
466
|
}(FillBind);
|
|
536
|
-
|
|
537
|
-
* 回填需要的配置和参数
|
|
538
|
-
*
|
|
467
|
+
/**
|
|
468
|
+
* FillBackBind 回填需要的配置和参数
|
|
469
|
+
* @public
|
|
470
|
+
*/ export var FillBackBind = /*#__PURE__*/ function(FillBind) {
|
|
539
471
|
"use strict";
|
|
540
472
|
_inherits(FillBackBind, FillBind);
|
|
541
473
|
var _super = _createSuper(FillBackBind);
|
|
@@ -543,14 +475,6 @@ var FillBind = function FillBind(props) {
|
|
|
543
475
|
_classCallCheck(this, FillBackBind);
|
|
544
476
|
var _this;
|
|
545
477
|
_this = _super.call(this, props);
|
|
546
|
-
/*
|
|
547
|
-
* 回填模式
|
|
548
|
-
* current 当前表(根据按钮所在位置来区分,而不是通过主表和子表来区分)
|
|
549
|
-
* subtable 子表
|
|
550
|
-
* */ _defineProperty(_assertThisInitialized(_this), "mode", void 0);
|
|
551
|
-
/*
|
|
552
|
-
* 多选
|
|
553
|
-
* */ _defineProperty(_assertThisInitialized(_this), "multiple", void 0);
|
|
554
478
|
var _props_mode;
|
|
555
479
|
_this.mode = (_props_mode = props === null || props === void 0 ? void 0 : props.mode) !== null && _props_mode !== void 0 ? _props_mode : "current";
|
|
556
480
|
var _props_multiple;
|
|
@@ -562,9 +486,6 @@ var FillBind = function FillBind(props) {
|
|
|
562
486
|
export var Language = function Language(props) {
|
|
563
487
|
"use strict";
|
|
564
488
|
_classCallCheck(this, Language);
|
|
565
|
-
_defineProperty(this, "zh", void 0);
|
|
566
|
-
_defineProperty(this, "en", void 0);
|
|
567
|
-
_defineProperty(this, "ja", void 0);
|
|
568
489
|
var _props_zh;
|
|
569
490
|
this.zh = (_props_zh = props === null || props === void 0 ? void 0 : props.zh) !== null && _props_zh !== void 0 ? _props_zh : "";
|
|
570
491
|
var _props_en;
|
|
@@ -575,9 +496,6 @@ export var Language = function Language(props) {
|
|
|
575
496
|
export var RegularRules = function RegularRules(props) {
|
|
576
497
|
"use strict";
|
|
577
498
|
_classCallCheck(this, RegularRules);
|
|
578
|
-
_defineProperty(this, "stencilName", void 0);
|
|
579
|
-
_defineProperty(this, "expression", void 0);
|
|
580
|
-
_defineProperty(this, "errMessage", void 0);
|
|
581
499
|
var _props_stencilName;
|
|
582
500
|
this.stencilName = (_props_stencilName = props === null || props === void 0 ? void 0 : props.stencilName) !== null && _props_stencilName !== void 0 ? _props_stencilName : "";
|
|
583
501
|
var _props_expression;
|
|
@@ -585,13 +503,12 @@ export var RegularRules = function RegularRules(props) {
|
|
|
585
503
|
var _props_errMessage;
|
|
586
504
|
this.errMessage = (_props_errMessage = props === null || props === void 0 ? void 0 : props.errMessage) !== null && _props_errMessage !== void 0 ? _props_errMessage : "";
|
|
587
505
|
};
|
|
588
|
-
|
|
589
|
-
|
|
506
|
+
/**
|
|
507
|
+
* 选项设置-自定义选项
|
|
508
|
+
* @public
|
|
509
|
+
*/ export var OptionSetting = function OptionSetting(props) {
|
|
590
510
|
"use strict";
|
|
591
511
|
_classCallCheck(this, OptionSetting);
|
|
592
|
-
_defineProperty(this, "id", void 0);
|
|
593
|
-
_defineProperty(this, "label", void 0);
|
|
594
|
-
_defineProperty(this, "value", void 0);
|
|
595
512
|
var _props_id;
|
|
596
513
|
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
597
514
|
var _props_label;
|
|
@@ -607,8 +524,6 @@ export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
607
524
|
_classCallCheck(this, ImageOptionSetting);
|
|
608
525
|
var _this;
|
|
609
526
|
_this = _super.call(this, props);
|
|
610
|
-
_defineProperty(_assertThisInitialized(_this), "image", void 0);
|
|
611
|
-
_defineProperty(_assertThisInitialized(_this), "type", void 0);
|
|
612
527
|
var _props_image;
|
|
613
528
|
_this.image = (_props_image = props === null || props === void 0 ? void 0 : props.image) !== null && _props_image !== void 0 ? _props_image : "";
|
|
614
529
|
var _props_type;
|
|
@@ -641,8 +556,6 @@ export var AmountDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
641
556
|
_classCallCheck(this, AmountDataBind);
|
|
642
557
|
var _this;
|
|
643
558
|
_this = _super.call(this);
|
|
644
|
-
_defineProperty(_assertThisInitialized(_this), "amount", void 0);
|
|
645
|
-
_defineProperty(_assertThisInitialized(_this), "currency", void 0);
|
|
646
559
|
_this.amount = new DataBind(props === null || props === void 0 ? void 0 : props.amount);
|
|
647
560
|
_this.currency = new DataBind(props === null || props === void 0 ? void 0 : props.currency);
|
|
648
561
|
return _this;
|
|
@@ -652,8 +565,6 @@ export var AmountDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
652
565
|
export var AmountValue = function AmountValue(props) {
|
|
653
566
|
"use strict";
|
|
654
567
|
_classCallCheck(this, AmountValue);
|
|
655
|
-
_defineProperty(this, "amount", void 0);
|
|
656
|
-
_defineProperty(this, "currency", void 0);
|
|
657
568
|
var _props_amount;
|
|
658
569
|
this.amount = (_props_amount = props === null || props === void 0 ? void 0 : props.amount) !== null && _props_amount !== void 0 ? _props_amount : "";
|
|
659
570
|
var _props_currency;
|
|
@@ -667,8 +578,6 @@ export var RangeDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
667
578
|
_classCallCheck(this, RangeDataBind);
|
|
668
579
|
var _this;
|
|
669
580
|
_this = _super.call(this);
|
|
670
|
-
_defineProperty(_assertThisInitialized(_this), "min", void 0);
|
|
671
|
-
_defineProperty(_assertThisInitialized(_this), "max", void 0);
|
|
672
581
|
_this.min = new DataBind(props === null || props === void 0 ? void 0 : props.min);
|
|
673
582
|
_this.max = new DataBind(props === null || props === void 0 ? void 0 : props.max);
|
|
674
583
|
return _this;
|
|
@@ -678,8 +587,6 @@ export var RangeDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
678
587
|
export var RangeDateValue = function RangeDateValue(props) {
|
|
679
588
|
"use strict";
|
|
680
589
|
_classCallCheck(this, RangeDateValue);
|
|
681
|
-
_defineProperty(this, "min", void 0);
|
|
682
|
-
_defineProperty(this, "max", void 0);
|
|
683
590
|
var _props_min;
|
|
684
591
|
this.min = (_props_min = props === null || props === void 0 ? void 0 : props.min) !== null && _props_min !== void 0 ? _props_min : "";
|
|
685
592
|
var _props_max;
|
|
@@ -688,12 +595,6 @@ export var RangeDateValue = function RangeDateValue(props) {
|
|
|
688
595
|
export var AddressValue = function AddressValue(props) {
|
|
689
596
|
"use strict";
|
|
690
597
|
_classCallCheck(this, AddressValue);
|
|
691
|
-
_defineProperty(this, "city", void 0);
|
|
692
|
-
_defineProperty(this, "cityDisplay", void 0);
|
|
693
|
-
_defineProperty(this, "district", void 0);
|
|
694
|
-
_defineProperty(this, "districtDisplay", void 0);
|
|
695
|
-
_defineProperty(this, "province", void 0);
|
|
696
|
-
_defineProperty(this, "provinceDisplay", void 0);
|
|
697
598
|
var _props_city;
|
|
698
599
|
this.city = (_props_city = props === null || props === void 0 ? void 0 : props.city) !== null && _props_city !== void 0 ? _props_city : "";
|
|
699
600
|
var _props_cityDisplay;
|
|
@@ -715,8 +616,6 @@ export var CalcDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
715
616
|
_classCallCheck(this, CalcDataBind);
|
|
716
617
|
var _this;
|
|
717
618
|
_this = _super.call(this);
|
|
718
|
-
_defineProperty(_assertThisInitialized(_this), "result", void 0);
|
|
719
|
-
_defineProperty(_assertThisInitialized(_this), "unit", void 0);
|
|
720
619
|
_this.result = new DataBind(props === null || props === void 0 ? void 0 : props.result);
|
|
721
620
|
_this.unit = new DataBind(props === null || props === void 0 ? void 0 : props.unit);
|
|
722
621
|
return _this;
|
|
@@ -726,8 +625,6 @@ export var CalcDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
726
625
|
export var CalcValue = function CalcValue(props) {
|
|
727
626
|
"use strict";
|
|
728
627
|
_classCallCheck(this, CalcValue);
|
|
729
|
-
_defineProperty(this, "result", void 0);
|
|
730
|
-
_defineProperty(this, "unit", void 0);
|
|
731
628
|
var _props_result;
|
|
732
629
|
this.result = (_props_result = props === null || props === void 0 ? void 0 : props.result) !== null && _props_result !== void 0 ? _props_result : 0;
|
|
733
630
|
var _props_unit;
|
|
@@ -800,15 +697,12 @@ export var PAGE_STATUS;
|
|
|
800
697
|
PAGE_STATUS[PAGE_STATUS["EDITABLE"] = 2] = "EDITABLE";
|
|
801
698
|
PAGE_STATUS[PAGE_STATUS["PRINT"] = 5] = "PRINT";
|
|
802
699
|
})(PAGE_STATUS || (PAGE_STATUS = {}));
|
|
803
|
-
|
|
700
|
+
/**
|
|
701
|
+
* 操作按钮
|
|
702
|
+
* @public
|
|
703
|
+
*/ export var OperationItem = function OperationItem(props) {
|
|
804
704
|
"use strict";
|
|
805
705
|
_classCallCheck(this, OperationItem);
|
|
806
|
-
_defineProperty(this, "isShow", void 0);
|
|
807
|
-
_defineProperty(this, "priorityProcess", void 0);
|
|
808
|
-
_defineProperty(this, "formKey", void 0);
|
|
809
|
-
_defineProperty(this, "content", void 0);
|
|
810
|
-
_defineProperty(this, "openType", void 0);
|
|
811
|
-
_defineProperty(this, "type", void 0);
|
|
812
706
|
var _props_isShow;
|
|
813
707
|
this.isShow = (_props_isShow = props === null || props === void 0 ? void 0 : props.isShow) !== null && _props_isShow !== void 0 ? _props_isShow : true;
|
|
814
708
|
var _props_content;
|
|
@@ -826,10 +720,6 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
826
720
|
"use strict";
|
|
827
721
|
_classCallCheck(this, ViewOperationItem);
|
|
828
722
|
var _props_headers;
|
|
829
|
-
_defineProperty(this, "id", void 0);
|
|
830
|
-
_defineProperty(this, "title", void 0);
|
|
831
|
-
_defineProperty(this, "filters", void 0);
|
|
832
|
-
_defineProperty(this, "headers", void 0);
|
|
833
723
|
var _props_id;
|
|
834
724
|
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
835
725
|
var _props_title;
|
|
@@ -845,12 +735,6 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
845
735
|
*/ export var CustomPermissionItem = function CustomPermissionItem(props) {
|
|
846
736
|
"use strict";
|
|
847
737
|
_classCallCheck(this, CustomPermissionItem);
|
|
848
|
-
/**
|
|
849
|
-
* 人工输入的权限key
|
|
850
|
-
*/ _defineProperty(this, "key", void 0);
|
|
851
|
-
/**
|
|
852
|
-
* 权限名称
|
|
853
|
-
*/ _defineProperty(this, "caption", void 0);
|
|
854
738
|
var _props_key;
|
|
855
739
|
this.key = (_props_key = props.key) !== null && _props_key !== void 0 ? _props_key : genNonDuplicateId(8);
|
|
856
740
|
var _props_caption;
|
|
@@ -859,10 +743,6 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
859
743
|
export var BaseStyle = function BaseStyle(props) {
|
|
860
744
|
"use strict";
|
|
861
745
|
_classCallCheck(this, BaseStyle);
|
|
862
|
-
_defineProperty(this, "width", void 0);
|
|
863
|
-
_defineProperty(this, "height", void 0);
|
|
864
|
-
_defineProperty(this, "widthConfig", void 0);
|
|
865
|
-
_defineProperty(this, "heightConfig", void 0);
|
|
866
746
|
var _props_width;
|
|
867
747
|
this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : "";
|
|
868
748
|
var _props_height;
|